hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e893d53c07918bdf7bb57e6a2ea013cca971683c
3,602
py
Python
tests/test_db.py
gth2103/spot-me
604fd0906b4e84ea5c9010b944e64b9af6c40343
[ "Apache-2.0" ]
null
null
null
tests/test_db.py
gth2103/spot-me
604fd0906b4e84ea5c9010b944e64b9af6c40343
[ "Apache-2.0" ]
null
null
null
tests/test_db.py
gth2103/spot-me
604fd0906b4e84ea5c9010b944e64b9af6c40343
[ "Apache-2.0" ]
null
null
null
import unittest from main import app from app.models import * from sample_db import example_data from app.friends import * from app.messages import * class FlaskTestDatabase(unittest.TestCase): def setUp(self): """Do before every test""" # Get the Flask test client self.client = app.test_client() app.confi...
31.596491
175
0.746252
e893eef1a6720304a9bfe4da76d9a51e559e70ad
5,179
gyp
Python
rlz/rlz.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
rlz/rlz.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
rlz/rlz.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, 'variables': { # Force rlz to use chrome's networking stack. 'force_rlz_use_chrome_net%': 1, ...
27.547872
94
0.514964
e8943323d70e05edeefb8abc73419148529899ce
654
py
Python
chess/constants.py
lestherll/chess
68c8da3f8dc7e47cc96dc87f5792ed2abab78ecb
[ "MIT" ]
2
2021-10-17T03:07:08.000Z
2021-12-27T07:01:27.000Z
chess/constants.py
lestherll/chess
68c8da3f8dc7e47cc96dc87f5792ed2abab78ecb
[ "MIT" ]
null
null
null
chess/constants.py
lestherll/chess
68c8da3f8dc7e47cc96dc87f5792ed2abab78ecb
[ "MIT" ]
null
null
null
from chess.custom_typehints import Coord2DSet BLACK_PAWN_DIRECTIONS: Coord2DSet = {(0, 1)} BLACK_PAWN_ATTACK_DIRECTIONS: Coord2DSet = {(-1, 1), (1, 1)} WHITE_PAWN_DIRECTIONS: Coord2DSet = {(0, -1)} WHITE_PAWN_ATTACK_DIRECTIONS: Coord2DSet = {(-1, -1), (1, -1)} KNIGHT_DIRECTIONS: Coord2DSet = {(-2, -1), (-1, -2), (1, ...
46.714286
71
0.620795
e8943f858ea8ecb8f3a395e70fe1601eb410c527
81,509
py
Python
win32-vc/kiki.py
triffid/kiki
b64b8524063c149a5cc9118f48d80afec1d8a942
[ "Unlicense" ]
2
2020-01-04T23:44:10.000Z
2020-07-12T17:10:09.000Z
win32-vc/kiki.py
triffid/kiki
b64b8524063c149a5cc9118f48d80afec1d8a942
[ "Unlicense" ]
null
null
null
win32-vc/kiki.py
triffid/kiki
b64b8524063c149a5cc9118f48d80afec1d8a942
[ "Unlicense" ]
1
2022-03-16T05:43:33.000Z
2022-03-16T05:43:33.000Z
# This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _kiki def _swig_setattr(self,class_type,name,value): if (name == "this"): if isinstance(value, class_type): ...
53.169602
122
0.739513
e8951d282c2ee03603a910f69fb4a0778aaad6dd
31,352
py
Python
mslib/msui/kmloverlay_dockwidget.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
33
2020-12-04T04:29:28.000Z
2022-03-05T17:11:49.000Z
mslib/msui/kmloverlay_dockwidget.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
614
2020-12-06T16:54:44.000Z
2022-03-31T07:41:02.000Z
mslib/msui/kmloverlay_dockwidget.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
51
2020-12-04T15:10:46.000Z
2022-03-20T02:02:11.000Z
# -*- coding: utf-8 -*- """ mslib.msui.kmloverlay_dockwidget ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Control widget to configure kml overlays. This file is part of mss. :copyright: Copyright 2017 Joern Ungermann :copyright: Copyright 2017-2021 by the mss team, see AUTHORS. :license: APACHE-2.0,...
48.382716
120
0.593168
e8951d39dec22e8607114d2330fb72eefc25fcc4
433
py
Python
bot/urls.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
1
2020-01-13T13:49:53.000Z
2020-01-13T13:49:53.000Z
bot/urls.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
8
2020-06-05T21:53:54.000Z
2022-03-11T23:53:42.000Z
bot/urls.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
1
2022-03-13T18:08:48.000Z
2022-03-13T18:08:48.000Z
from django.contrib import admin from django.conf.urls import url from bot.views import bot, get_response from . import views from django.conf.urls.static import static from django.conf import settings urlpatterns = [ url(r'^$', views.bot, name="home"), url(r'^get-response/$', views.get_response,name="respon...
27.0625
77
0.752887
e8955df7dd391c307a96b1fc001818455df02831
939
py
Python
objconfig/util/countable.py
asherwunk/objconfig
97243fa00a9e39d1167dc1e07a84578e20072c37
[ "MIT" ]
null
null
null
objconfig/util/countable.py
asherwunk/objconfig
97243fa00a9e39d1167dc1e07a84578e20072c37
[ "MIT" ]
null
null
null
objconfig/util/countable.py
asherwunk/objconfig
97243fa00a9e39d1167dc1e07a84578e20072c37
[ "MIT" ]
null
null
null
""" IGNORE: Author: Asher Wolfstein Copyright 2017 Blog: http://wunk.me/ E-Mail: asherwunk@gmail.com Twitter: https://twitter.com/asherwolfstein Send Me Some Love! Package Homepage: http://wunk.me/programming-projects/objconfig-python/ GitHub: http://github.com/asherwunk/objconfig for the source...
31.3
83
0.693291
e8957e493b84778335143ad9176bbfeca96dd47a
4,543
py
Python
python/example/render_tendon_routing_3d.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
4
2022-02-10T02:28:42.000Z
2022-02-10T07:28:35.000Z
python/example/render_tendon_routing_3d.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
python/example/render_tendon_routing_3d.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
import sys sys.path.append('../') from pathlib import Path import numpy as np import pickle import shutil from py_diff_pd.common.common import ndarray, create_folder from py_diff_pd.common.common import print_info, print_ok, print_error from py_diff_pd.common.hex_mesh import filter_hex, hex2obj_with_textures from py_...
35.492188
122
0.618534
e895a3d80e09cfe480a186dbe26d4154038d1f5e
25,529
py
Python
statsmodels/robust/robust_linear_model.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/robust/robust_linear_model.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/robust/robust_linear_model.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
""" Robust linear models with support for the M-estimators listed under :ref:`norms <norms>`. References ---------- PJ Huber. 'Robust Statistics' John Wiley and Sons, Inc., New York. 1981. PJ Huber. 1973, 'The 1972 Wald Memorial Lectures: Robust Regression: Asymptotics, Conjectures, and Monte Carlo.' The An...
37.432551
137
0.598026
e895c466ff86b839bc74591b943d6c0b8902f73f
1,245
py
Python
tests/tests_with_server_and_cached_results/model_tests_with_server/test_inventory_on_server/test_item_save.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
5
2019-01-21T11:12:05.000Z
2020-03-05T20:52:14.000Z
tests/tests_with_server_and_cached_results/model_tests_with_server/test_inventory_on_server/test_item_save.py
aquariumbio/pydent
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
28
2020-11-18T02:07:09.000Z
2021-06-08T15:49:41.000Z
tests/tests_with_server_and_cached_results/model_tests_with_server/test_inventory_on_server/test_item_save.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
2
2021-02-27T19:23:45.000Z
2021-09-14T10:29:07.000Z
from pydent import models def test_create_item(session): st = session.SampleType.find_by_name("Fragment") s = st.samples[-10] ot = session.ObjectType.find_by_name("Fragment Stock") i = session.Item.new(sample_id=s.id, object_type_id=ot.id) i.create() assert i.id def test_save_item(session): ...
26.489362
62
0.677912
e895c8ed0cf2d8cb0be79edd9c4cfffcee8b4410
86,513
py
Python
pandas/core/common.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/common.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/common.py
hhuuggoo/pandas
f87ab95c2ecd1be6a3e3acec8f5d81e7f3c8e4bd
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Misc tools for implementing data structures """ import re import collections import numbers import codecs import csv import types from datetime import datetime, timedelta from numpy.lib.format import read_array, write_array import numpy as np import pandas as pd import pandas.algos as algos import pandas.lib as ...
31.74789
110
0.60147
e895ca0d3707c353d3981975624d3d597b2b8767
736
py
Python
migrations/versions/11173529546a_.py
gth2103/spot-me
604fd0906b4e84ea5c9010b944e64b9af6c40343
[ "Apache-2.0" ]
null
null
null
migrations/versions/11173529546a_.py
gth2103/spot-me
604fd0906b4e84ea5c9010b944e64b9af6c40343
[ "Apache-2.0" ]
null
null
null
migrations/versions/11173529546a_.py
gth2103/spot-me
604fd0906b4e84ea5c9010b944e64b9af6c40343
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: 11173529546a Revises: 638af47648d3 Create Date: 2018-03-07 23:58:55.948672 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '11173529546a' down_revision = '638af47648d3' branch_labels = None depends_on = None def upgrade(): # ...
22.30303
65
0.677989
e895dd6e05528c8b9bf666258f43f0a0b4cbcddb
38,234
py
Python
tensorflow/python/data/experimental/ops/data_service_ops.py
operationcanard/tensorflow
55e65d43f103a6dac2b4c4d274de7a8352e13528
[ "Apache-2.0" ]
3
2021-03-15T05:31:57.000Z
2021-12-14T07:29:31.000Z
tensorflow/python/data/experimental/ops/data_service_ops.py
operationcanard/tensorflow
55e65d43f103a6dac2b4c4d274de7a8352e13528
[ "Apache-2.0" ]
7
2021-11-10T20:21:23.000Z
2022-03-22T19:18:39.000Z
tensorflow/python/data/experimental/ops/data_service_ops.py
operationcanard/tensorflow
55e65d43f103a6dac2b4c4d274de7a8352e13528
[ "Apache-2.0" ]
3
2021-05-09T13:41:29.000Z
2021-06-24T06:12:05.000Z
# Copyright 2020 The TensorFlow Authors. 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 applica...
46.683761
90
0.720144
e8964eafe6fc4fd3006cc796a3505114894468f5
2,396
py
Python
oscar/apps/customer/auth_backends.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/customer/auth_backends.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/customer/auth_backends.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.backends import ModelBackend from django.core.mail import mail_admins from django.core.exceptions import ImproperlyConfigured from oscar.apps.customer.utils import normalise_email from oscar.core.compat import get_user_model User = get_user_model() if hasattr(User, 'REQUIRED_FIELDS'): if...
41.310345
98
0.639399
e896528a7c09afc538033ac02454a6d9736af349
5,269
py
Python
merge_plugins.py
hickb/dwa_usd_plugins
dba7f65c080fc70c55e1cccf70f9fe944ab53b07
[ "Apache-2.0" ]
85
2019-07-27T04:21:19.000Z
2021-12-16T04:06:29.000Z
merge_plugins.py
hickb/dwa_usd_plugins
dba7f65c080fc70c55e1cccf70f9fe944ab53b07
[ "Apache-2.0" ]
10
2019-07-31T14:45:46.000Z
2020-09-02T18:15:51.000Z
merge_plugins.py
hickb/dwa_usd_plugins
dba7f65c080fc70c55e1cccf70f9fe944ab53b07
[ "Apache-2.0" ]
16
2019-07-28T06:53:02.000Z
2021-08-11T23:51:40.000Z
#!/usr/bin/env python # # Copyright 2019 DreamWorks Animation L.L.C. # # 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 ...
28.63587
90
0.635225
e8966e9ea0b73f7e85fd4203f9cd54cd9dff5103
3,286
py
Python
mandala/tests/funcs.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
9
2022-02-22T19:24:01.000Z
2022-03-23T04:46:41.000Z
mandala/tests/funcs.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
null
null
null
mandala/tests/funcs.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
null
null
null
from .utils import * Any = Var(annotation=typing.Any) AnyList = Var(annotation=list) Int = Var(annotation=int) Float = Var(annotation=float) Str = Var(annotation=str) Array = Var(annotation=np.ndarray, name='Array') ArrayList = Var(annotation=TList[Array], name='ArrayList') FloatDict = Var(annotation=TDict[str, float]...
26.5
81
0.586427
e8968073d872895e5dbb8934ddd839b8a9ad6f2e
554
py
Python
src/server.py
nobillygreen/recollect
5ecbf9e26193f35e3ee45b83f41ea55a50b1c4d4
[ "MIT" ]
null
null
null
src/server.py
nobillygreen/recollect
5ecbf9e26193f35e3ee45b83f41ea55a50b1c4d4
[ "MIT" ]
null
null
null
src/server.py
nobillygreen/recollect
5ecbf9e26193f35e3ee45b83f41ea55a50b1c4d4
[ "MIT" ]
null
null
null
import json from flask import Flask, request from doc_store import DocStore doc_store = None app = Flask(__name__) def main(): global doc_store print("Making doc store") doc_store = DocStore() doc_store.load_documents('./documents') print("Starting Server") start_server() def start_serv...
15.388889
44
0.6787
e8968ed3a5f91ea0f3f3ebf0864bda0ab2f02f28
4,231
py
Python
marner/gui.py
FergusonTG/marner
2b90a8396d365244101ea17bf24964bf445599fc
[ "MIT" ]
null
null
null
marner/gui.py
FergusonTG/marner
2b90a8396d365244101ea17bf24964bf445599fc
[ "MIT" ]
null
null
null
marner/gui.py
FergusonTG/marner
2b90a8396d365244101ea17bf24964bf445599fc
[ "MIT" ]
null
null
null
"""Create a dialog to collect imap server and folder details.""" import tkinter as tk from tkinter import ttk __version__ = "0.1.0" class App(ttk.Frame): # pylint: disable=too-many-ancestors """ Frame sits inside a Tk() root to collect email server info. Parameter: master: tkinter.Tk() obje...
31.340741
72
0.554715
e8969e603ddda23cac3a053b3390d54a5869a953
14,264
py
Python
contact_calc/compute_contacts.py
mchonofsky/getcontacts
4afcbe50a35e5f4c56a21615004fb6e2a5e2c469
[ "Apache-2.0" ]
null
null
null
contact_calc/compute_contacts.py
mchonofsky/getcontacts
4afcbe50a35e5f4c56a21615004fb6e2a5e2c469
[ "Apache-2.0" ]
null
null
null
contact_calc/compute_contacts.py
mchonofsky/getcontacts
4afcbe50a35e5f4c56a21615004fb6e2a5e2c469
[ "Apache-2.0" ]
null
null
null
############################################################################ # Copyright 2018 Anthony Ma & Stanford University # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may no...
40.407932
126
0.602987
e896a8b0c8f62f9e1e368744ce0daf06c0bd0596
2,195
py
Python
tests/test_celery_mock.py
Colin-b/flasynk
373d0adb2a0ab70705962c5ccd9dea3460b1c8d2
[ "MIT" ]
null
null
null
tests/test_celery_mock.py
Colin-b/flasynk
373d0adb2a0ab70705962c5ccd9dea3460b1c8d2
[ "MIT" ]
null
null
null
tests/test_celery_mock.py
Colin-b/flasynk
373d0adb2a0ab70705962c5ccd9dea3460b1c8d2
[ "MIT" ]
null
null
null
import re import celery import flask import pytest import flasynk.celery_mock @pytest.fixture def app(): celery_app = flasynk.celery_mock.CeleryMock( celery.Celery( "celery_server", broker="memory://localhost/", backend="memory://localhost/", namespace="py...
30.068493
85
0.650569
e896c662eba921e766d419af1ba615ddf29edbc3
1,264
py
Python
contrib/performance/test_httpauth.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
contrib/performance/test_httpauth.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
contrib/performance/test_httpauth.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2012-2015 Apple 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 applicab...
30.829268
74
0.64557
e896e1a93b64570db9fc8a76e51f539d18beaed9
6,959
py
Python
pix2pix/models/G_template_L2_500_regress_model.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pix2pix/models/G_template_L2_500_regress_model.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pix2pix/models/G_template_L2_500_regress_model.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
import torch from .base_model import BaseModel from . import networks '''siamrpn++''' from siamRPNPP import SiamRPNPP from data_utils import normalize '''hyper-parameters, which may need to be tuned''' cls_thres = 0.7 class GtemplateL2500regressModel(BaseModel): """ This class implements the pix2pix model, for l...
49.35461
150
0.651099
e896e1fe8e8d90141f02b82d5a875e8bf33d51a7
331
py
Python
cli/commands/cmd_test.py
danielemingolla/BLOG_WEBAPP_FLASK
19eaad5a674ac255723e0118f5d80eefd5cb08b8
[ "MIT" ]
1
2019-09-10T14:11:40.000Z
2019-09-10T14:11:40.000Z
cli/commands/cmd_test.py
danielemingolla/BLOG_WEBAPP_FLASK
19eaad5a674ac255723e0118f5d80eefd5cb08b8
[ "MIT" ]
7
2019-09-11T21:17:01.000Z
2022-01-13T01:38:40.000Z
cli/commands/cmd_test.py
danielemingolla/ARTICLEES_WEBAPP_FLASK
19eaad5a674ac255723e0118f5d80eefd5cb08b8
[ "MIT" ]
null
null
null
import os import subprocess import click @click.command() @click.argument('path', default=os.path.join('articlee', 'tests')) def cli(path): """ Run tests with Pytest. :param path: Test path :return: Subprocess call result """ cmd = 'py.test {0}'.format(path) return subprocess.call(cmd, s...
18.388889
66
0.655589
e896f6b86b1255db33b32b314d8bd16b905e5845
5,380
py
Python
Code/lsd/migrations/0002_auto_20191001_1427.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
2
2021-12-15T21:58:43.000Z
2021-12-15T22:17:26.000Z
Code/lsd/migrations/0002_auto_20191001_1427.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
null
null
null
Code/lsd/migrations/0002_auto_20191001_1427.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
1
2021-12-19T17:02:02.000Z
2021-12-19T17:02:02.000Z
# Generated by Django 2.1.7 on 2019-10-01 14:27 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
35.394737
85
0.435874
e8972d31e74fbc28faf6fe204424e80499ed8036
7,187
py
Python
assets.py
dgketchum/irr_impacts
4a09296eb5cc6f36b63ecd4ca2a82b075e1581d5
[ "Apache-2.0" ]
null
null
null
assets.py
dgketchum/irr_impacts
4a09296eb5cc6f36b63ecd4ca2a82b075e1581d5
[ "Apache-2.0" ]
null
null
null
assets.py
dgketchum/irr_impacts
4a09296eb5cc6f36b63ecd4ca2a82b075e1581d5
[ "Apache-2.0" ]
null
null
null
import csv import os import subprocess from subprocess import Popen, PIPE, check_call import json import ee EDIT_STATES = ['KS', 'ND', 'NE', 'OK', 'SD'] TEST_YEARS = [1986, 1996, 2006, 2016] home = os.path.expanduser('~') EXEC = os.path.join(home, 'miniconda3', 'envs', 'gcs', 'bin', 'earthengine') def change_permi...
31.384279
110
0.55336
e897323d68fcdb0839789b71aed50b485ef639ff
15,267
py
Python
weatherplugin/src/setup.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
weatherplugin/src/setup.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
weatherplugin/src/setup.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
# -*- coding: utf-8 -*- # # WeatherPlugin E2 # # Coded by Dr.Best (c) 2012 # Support: www.dreambox-tools.info # E-Mail: dr.best@dreambox-tools.info # # This plugin is open source but it is NOT free software. # # This plugin may only be distributed to and executed on hardware which # is licensed by Dream Multimedia GmbH...
43.372159
250
0.721687
e8974cd079813efe853bc9dfe5ff66f85d52f182
7,044
py
Python
tests/kubernetes/runner/test_runner.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
tests/kubernetes/runner/test_runner.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
3
2020-02-07T19:51:40.000Z
2022-03-21T05:06:29.000Z
tests/kubernetes/runner/test_runner.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
import dis import inspect import os import unittest from pathlib import Path from checkov.runner_filter import RunnerFilter from checkov.kubernetes.runner import Runner class TestRunnerValid(unittest.TestCase): def test_record_relative_path_with_relative_dir(self): # test whether the record's repo_file...
47.275168
108
0.676036
e8976e12f1cd345b1cf842d8e223f51caeadcc78
3,612
py
Python
pandas/tests/io/parser/test_multi_thread.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
1
2019-03-25T09:31:34.000Z
2019-03-25T09:31:34.000Z
pandas/tests/io/parser/test_multi_thread.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/parser/test_multi_thread.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Tests multithreading behaviour for reading and parsing files for each parser defined in parsers.py """ from __future__ import division from multiprocessing.pool import ThreadPool import numpy as np from pandas.compat import BytesIO import pandas as pd from pandas import DataFrame impor...
24.739726
79
0.584441
e8985f715c3711f5e6b369f50e8bbb8e2921205c
13,009
py
Python
tools/pip-compile-wrapper.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
null
null
null
tools/pip-compile-wrapper.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
null
null
null
tools/pip-compile-wrapper.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Helper utility to compile / upgrade requirements files from templates. This only manages dependencies between requirements sources. The actual compiling is delegated to ``pip-compile`` from the ``pip-tools` package. NOTE: This utility *must only* use stdlib imports in order to be runnable ev...
36.542135
99
0.645707
e898615208a2307d177cb26cb5b2ffa76712c11c
2,837
py
Python
end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined.py
JamesHinshelwood/openapi-python-client
08bc2acf91d50d4fcdd7f0e50a8b0d3f00a187d9
[ "MIT" ]
1
2022-02-17T11:45:13.000Z
2022-02-17T11:45:13.000Z
end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
null
null
null
end_to_end_tests/golden-record/my_test_api_client/models/model_with_union_property_inlined.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
null
null
null
from typing import Any, Dict, Type, TypeVar, Union import attr from ..models.model_with_union_property_inlined_fruit_type_0 import ModelWithUnionPropertyInlinedFruitType0 from ..models.model_with_union_property_inlined_fruit_type_1 import ModelWithUnionPropertyInlinedFruitType1 from ..types import UNSET, Unset T = T...
34.180723
113
0.632006
e8989bea208965c46073a6b187da4561e02cc548
18,573
py
Python
src/models/regressors.py
LeanderLXZ/intelligent-analysis-of-financial-statements
38bab5bea3c2f22f71020020c8325f6b6b014853
[ "Apache-2.0" ]
null
null
null
src/models/regressors.py
LeanderLXZ/intelligent-analysis-of-financial-statements
38bab5bea3c2f22f71020020c8325f6b6b014853
[ "Apache-2.0" ]
null
null
null
src/models/regressors.py
LeanderLXZ/intelligent-analysis-of-financial-statements
38bab5bea3c2f22f71020020c8325f6b6b014853
[ "Apache-2.0" ]
1
2021-12-15T02:09:16.000Z
2021-12-15T02:09:16.000Z
import numpy as np from models import utils from sklearn.neighbors import KNeighborsRegressor from sklearn.svm import SVR from sklearn.tree import DecisionTreeRegressor from sklearn.ensemble import RandomForestRegressor from sklearn.ensemble import ExtraTreesRegressor from sklearn.ensemble import AdaBoostRegressor from...
36.633136
75
0.473375
e898ba512d8cd138d3f5db9699abac8e117aed2c
244
py
Python
tests/test_errors.py
hasgeek/wtforms3-json
8df950724c43c7717c8be8fbd832def4bee8a08a
[ "BSD-3-Clause" ]
null
null
null
tests/test_errors.py
hasgeek/wtforms3-json
8df950724c43c7717c8be8fbd832def4bee8a08a
[ "BSD-3-Clause" ]
null
null
null
tests/test_errors.py
hasgeek/wtforms3-json
8df950724c43c7717c8be8fbd832def4bee8a08a
[ "BSD-3-Clause" ]
null
null
null
from wtforms import Form, IntegerField class MyForm(Form): a = IntegerField() def test_errors(): form = MyForm.from_json({'a': 'not an integer!'}) form.validate() assert form.errors == {'a': [u'Not a valid integer value.']}
20.333333
64
0.647541
e898ea4c2b4139aa5a5e96de1fdb3137d56854e1
2,942
py
Python
tests/test_deteriorate.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
1
2021-03-24T13:25:54.000Z
2021-03-24T13:25:54.000Z
tests/test_deteriorate.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
tests/test_deteriorate.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for deterioration workflow.""" import unittest from pykeen.datasets.base import Dataset from pykeen.datasets.nations import Nations from pykeen.triples.triples_factory import splits_steps from pykeen.utils import ensure_torch_random_state class TestDeterioration(unittest.TestCase):...
40.861111
112
0.615908
e8990cd3b44a884ad763960b772bf4bfc43d6cb0
2,961
py
Python
alipay/aop/api/domain/MybankCreditLoantradePaySignCancelModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MybankCreditLoantradePaySignCancelModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MybankCreditLoantradePaySignCancelModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MybankCreditLoantradePaySignCancelModel(object): def __init__(self): self._alipay_user_id = None self._biz_scene = None self._site = None self._site_user_id = None...
29.316832
79
0.596758
e89918e275bcabd3f465c66fdc320c7ebb1fe047
7,208
py
Python
v0.95/dc/utils/commun.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.95/dc/utils/commun.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.95/dc/utils/commun.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
import os import json import string import random import shutil import ntpath import time import traceback from time import mktime from datetime import timedelta from datetime import datetime class Commun: """Commun unspecific funcs """ upper = list(string.ascii_uppercase) lower = list(s...
33.682243
124
0.562986
e8996ca0653e54bc87d424c5e1b783c83a6ac679
5,990
py
Python
src/ggrc_workflows/models/cycle_task_group.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_workflows/models/cycle_task_group.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_workflows/models/cycle_task_group.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Module for cycle task group model. """ import itertools from sqlalchemy import orm, inspect from ggrc import db from ggrc.models import mixins from ggrc.models import reflection from ggrc.fulltext impo...
29.653465
78
0.597663
e89985e1c1e46a273657ca39974b4d4ac1ac791e
2,029
py
Python
constants/constants.py
marshuang80/ml-scl
ca6a3cbd82a7afa4f3d1e5e3385ddea7376da653
[ "Apache-2.0" ]
2
2020-11-09T20:35:41.000Z
2021-10-05T15:35:55.000Z
constants/constants.py
marshuang80/ml-scl
ca6a3cbd82a7afa4f3d1e5e3385ddea7376da653
[ "Apache-2.0" ]
1
2021-10-10T09:51:47.000Z
2021-10-10T09:51:47.000Z
constants/constants.py
marshuang80/ml-scl
ca6a3cbd82a7afa4f3d1e5e3385ddea7376da653
[ "Apache-2.0" ]
1
2021-10-20T11:41:27.000Z
2021-10-20T11:41:27.000Z
from pathlib import Path from torchvision import models as models_2d # Directories #PROJECT_DIR = Path("/data/CheXpertToy/") # change to temp #PROJECT_DATA_DIR = PROJECT_DIR / "chexpert" #CHEXPERT_DIR = PROJECT_DATA_DIR / "CheXpert" #CHEXPERT_DATA_DIR = CHEXPERT_DIR / "CheXpert-v1.0" PROJECT_DATA_DIR = Path("/d...
31.215385
77
0.611138
e899c01802925b9180de3b7a9085fb3703b24ff0
2,851
py
Python
pollination_sdk/models/package_sort_key.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
pollination_sdk/models/package_sort_key.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
pollination_sdk/models/package_sort_key.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from pollination_sdk.configu...
27.679612
74
0.578394
e899ceb68dd803375869d2ad2611b226be27e7cd
8,025
py
Python
do.py
gcali/do_automation
8181958f1922170ed755227e25ba800ae5294611
[ "MIT" ]
null
null
null
do.py
gcali/do_automation
8181958f1922170ed755227e25ba800ae5294611
[ "MIT" ]
null
null
null
do.py
gcali/do_automation
8181958f1922170ed755227e25ba800ae5294611
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys, json, socket, datetime from dopy.manager import DoManager from key_reader import get_key from collections import defaultdict from rsa_key_handler import get_rsa_key def _pretty_print(o): if isinstance(o, str): print(o) else: print(st...
28.257042
275
0.622928
e899ddd19942af63571332e9289dc681f8e1e6d4
2,684
py
Python
gym_molecule/envs/env_utils_graph.py
AITRICS/FREED
ff75e903808edc57f01ef6d0d198b44a56dcdf4b
[ "Apache-2.0" ]
29
2021-11-03T09:27:41.000Z
2022-03-29T00:49:00.000Z
gym_molecule/envs/env_utils_graph.py
doxxitxxyoung/FREED
f7fed79dd98c0ea2ea66ae9b03de63fc57083995
[ "Apache-2.0" ]
1
2022-01-11T08:02:58.000Z
2022-03-06T05:49:54.000Z
gym_molecule/envs/env_utils_graph.py
doxxitxxyoung/FREED
f7fed79dd98c0ea2ea66ae9b03de63fc57083995
[ "Apache-2.0" ]
7
2021-12-09T07:13:06.000Z
2022-02-15T11:15:47.000Z
import os import copy import csv import numpy as np from rdkit import Chem def get_att_points(mol): att_points = [] for a in mol.GetAtoms(): if a.GetSymbol() == '*': att_points.append(a.GetIdx()) return att_points ATOM_VOCAB = ['C', 'N', 'O', 'S', 'P', 'F', 'I', 'Cl','Br', '*'] FRAG...
36.27027
123
0.64307
e899de93ea5bc6d5ba47dde580bca716e6ce363e
5,785
py
Python
tests_dsert.py
paxosglobal/dsert
73e59721f48dc3fab14090fe24707a09fc7b6541
[ "MIT" ]
2
2018-11-03T17:09:22.000Z
2021-11-08T11:20:54.000Z
tests_dsert.py
paxosglobal/dsert
73e59721f48dc3fab14090fe24707a09fc7b6541
[ "MIT" ]
null
null
null
tests_dsert.py
paxosglobal/dsert
73e59721f48dc3fab14090fe24707a09fc7b6541
[ "MIT" ]
null
null
null
from dsert import assert_valid_dict from unittest import TestCase class BasicTestCase(TestCase): def setUp(self): self.basic_dict = {'foo': 'bar'} class TestKnownContents(BasicTestCase): def test_correct_values_should_not_raise_an_error(self): assert_valid_dict(to_validate=self.basic_dict,...
33.439306
94
0.643388
e899df929b5d68b521958a205e5510d872c69844
5,840
py
Python
pyqmc/obdm.py
YiqingZhouKelly/pyqmc
ec14c7b3cceb01d287cb09ebc5d2af37014c1c8e
[ "MIT" ]
null
null
null
pyqmc/obdm.py
YiqingZhouKelly/pyqmc
ec14c7b3cceb01d287cb09ebc5d2af37014c1c8e
[ "MIT" ]
null
null
null
pyqmc/obdm.py
YiqingZhouKelly/pyqmc
ec14c7b3cceb01d287cb09ebc5d2af37014c1c8e
[ "MIT" ]
null
null
null
""" Evaluate the OBDM for a wave function object. """ import numpy as np from copy import deepcopy from pyqmc.mc import initial_guess class OBDMAccumulator: """ Return the obdm as an array with indices rho[spin][i][k] = <c_{spin,i}c^+_{spin,j}> Args: mol (Mole): PySCF Mole object. configs (array): ele...
33.563218
101
0.568664
e899e7a0c12cfe75b7480abcd82bd6cbc747460c
7,773
py
Python
src/data/validator.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
2
2020-09-17T20:51:18.000Z
2020-11-03T15:58:10.000Z
src/data/validator.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
97
2020-08-26T05:07:08.000Z
2022-03-28T16:01:49.000Z
src/data/validator.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
null
null
null
# run is the most important function. # one function for one checking algorithm and call all of them in run # targetguimodel and aplmodel are the two things # action is the parent object # actionpipeline, component action and action wrapper all inherited from it # actionpipeline could have component actions or action...
35.493151
139
0.727132
e89a226e6e088357a77835b04760b6953c3c4ae1
327
py
Python
nonDecreasingArrayWithSingleModification.py
anishmo99/DailyInterviewPro
d8724e8feec558ab1882d22c9ca63b850b767753
[ "MIT" ]
1
2020-08-09T07:07:53.000Z
2020-08-09T07:07:53.000Z
nonDecreasingArrayWithSingleModification.py
anishmo99/DailyInterviewPro
d8724e8feec558ab1882d22c9ca63b850b767753
[ "MIT" ]
null
null
null
nonDecreasingArrayWithSingleModification.py
anishmo99/DailyInterviewPro
d8724e8feec558ab1882d22c9ca63b850b767753
[ "MIT" ]
1
2020-06-06T20:56:33.000Z
2020-06-06T20:56:33.000Z
def checkPossibility(self, nums: List[int]) -> bool: modified = False for i in range(1, len(nums)): if nums[i] < nums[i - 1]: if modified: return False if i >= 2 and nums[i] < nums[i - 2]: nums[i] = nums[i - 1] modified = True retur...
29.727273
52
0.474006
e89a3ddf2eaa2c2d3b81b666029b05be50ac8886
5,454
py
Python
figure_3/model_II/sobolev_alignment/same_model_calibration_source.py
saroudant/sobolev_alignment_manuscript
2b4d7ce4bbdac3a32ad8c02b950b4d1c91cda193
[ "MIT" ]
null
null
null
figure_3/model_II/sobolev_alignment/same_model_calibration_source.py
saroudant/sobolev_alignment_manuscript
2b4d7ce4bbdac3a32ad8c02b950b4d1c91cda193
[ "MIT" ]
null
null
null
figure_3/model_II/sobolev_alignment/same_model_calibration_source.py
saroudant/sobolev_alignment_manuscript
2b4d7ce4bbdac3a32ad8c02b950b4d1c91cda193
[ "MIT" ]
null
null
null
""" ANALYSIS OF APPROXIMATION WHEN COMPARISON SOURCE-SOURCE AND TARGET-TARGET SOURCE ELEMENT Model II The idea here is to see whether penalization has an impact on the alignment. 2021/11/05 """ import os, sys, getopt import pandas as pd import numpy as np import re from anndata import AnnData import torch import sci...
31.344828
125
0.733957
e89a4972ebeda78481b4573dc3b74403aca88b74
9,299
py
Python
utils/builder_utils.py
msieb1/LTCN
c9432891327774edf8193e885cc4f10f53fcaa60
[ "MIT" ]
1
2020-08-21T03:47:33.000Z
2020-08-21T03:47:33.000Z
utils/builder_utils.py
msieb1/LTCN
c9432891327774edf8193e885cc4f10f53fcaa60
[ "MIT" ]
null
null
null
utils/builder_utils.py
msieb1/LTCN
c9432891327774edf8193e885cc4f10f53fcaa60
[ "MIT" ]
null
null
null
import os import functools import imageio import numpy as np import math from PIL import Image import torch from torch.utils.data import Dataset, TensorDataset from torch import Tensor from torch.autograd import Variable import logging import nltk import sys import matplotlib.pyplot as plt import pickle import datetime...
35.357414
178
0.631896
e89aa29a782c14ded335b1a38f44fbd0e90583e2
17,262
py
Python
S2SRL/retriever_pretrain.py
DevinJake/MARL
cafbc0411ab70f68652029832cd65127d4be5f94
[ "MIT" ]
9
2020-04-29T00:49:59.000Z
2022-01-15T08:56:28.000Z
S2SRL/retriever_pretrain.py
DevinJake/MARL
cafbc0411ab70f68652029832cd65127d4be5f94
[ "MIT" ]
1
2020-07-19T09:04:47.000Z
2020-10-08T12:23:03.000Z
S2SRL/retriever_pretrain.py
DevinJake/MARL
cafbc0411ab70f68652029832cd65127d4be5f94
[ "MIT" ]
6
2020-07-19T09:01:05.000Z
2021-11-11T07:58:07.000Z
import os import json import torch import random from datetime import datetime from statistics import mean from libbots import adabound, data, model, metalearner, retriever_module MAX_TOKENS = 40 MAX_MAP = 1000000 DIC_PATH = '../data/auto_QA_data/share.question' SAVES_DIR = '../data/saves/retriever' QID_RANGE = '../da...
52.468085
158
0.654501
e89acc12abaf699a3edbb240441aa86a85fbc80a
9,186
py
Python
round02/02_dQN_6act_debug/30_11_dDQN_light_tweak75.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
round02/02_dQN_6act_debug/30_11_dDQN_light_tweak75.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
1
2022-02-10T02:27:10.000Z
2022-02-10T02:27:10.000Z
round02/02_dQN_6act_debug/30_11_dDQN_light_tweak75.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
######################################## # Changes compared to 30_11_dDQN_light_tweak71.py # 01. # lr_optimizer = 7.3e-4 # 02. # discount_rate = 0.98 # 03. # max_replay_len = 30_000 ######################################## import sys import numpy as np #import pandas as pd import datetime import json from ar...
38.116183
289
0.686588
e89ad411064a27f033b4a84f9b7958438712410f
2,367
py
Python
tools/bump-version.py
colbylwilliams/lab-gateway
49c054060a654a3d43b586dfa51aab5659b0385b
[ "MIT" ]
null
null
null
tools/bump-version.py
colbylwilliams/lab-gateway
49c054060a654a3d43b586dfa51aab5659b0385b
[ "MIT" ]
1
2022-01-30T04:05:08.000Z
2022-01-30T04:05:08.000Z
tools/bump-version.py
colbylwilliams/lab-gateway
49c054060a654a3d43b586dfa51aab5659b0385b
[ "MIT" ]
null
null
null
import argparse from re import search from pathlib import Path from packaging.version import parse parser = argparse.ArgumentParser() parser.add_argument('--major', action='store_true', help='bump major version') parser.add_argument('--minor', action='store_true', help='bump minor version') parser.add_argument('--note...
28.865854
146
0.648923
e89ae895964b616422f58c9adeeb806d5a3bc85b
1,930
py
Python
fridge/driver/reactorMaker.py
SoftwareDevEngResearch/FRIDGe
70ebe31e27b805a935e919e94325b501bdeb3cf6
[ "MIT" ]
1
2018-04-26T00:33:55.000Z
2018-04-26T00:33:55.000Z
fridge/driver/reactorMaker.py
SoftwareDevEngResearch/FRIDGe
70ebe31e27b805a935e919e94325b501bdeb3cf6
[ "MIT" ]
2
2018-05-07T02:58:33.000Z
2019-04-22T17:10:13.000Z
fridge/driver/reactorMaker.py
SoftwareDevEngResearch/FRIDGe
70ebe31e27b805a935e919e94325b501bdeb3cf6
[ "MIT" ]
null
null
null
import fridge.Assembly.FuelAssembly as FuelAssembly import fridge.Assembly.Assembly as Assembly import fridge.Assembly.BlankAssembly as BlankAssembly import fridge.utilities.mcnpCreatorFunctions as mcf import fridge.Core.Core as Core import copy def singleAssemblyMaker(global_vars): assemblyInfo = [global_vars.fi...
41.956522
84
0.740933
e89b23ce2abfa3639c46ca5431128d76e475b067
12,745
py
Python
salt/modules/ini_manage.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2020-02-22T07:11:24.000Z
2020-02-22T07:11:24.000Z
salt/modules/ini_manage.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
salt/modules/ini_manage.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2019-08-01T15:14:19.000Z
2019-08-01T15:14:19.000Z
# -*- coding: utf-8 -*- ''' Edit ini files :maintainer: <akilesh1597@gmail.com> :maturity: new :depends: re :platform: all (for example /etc/sysctl.conf) ''' # Import Python libs from __future__ import print_function from __future__ import absolute_import import os import re import json # Import Salt libs import sa...
31.314496
82
0.569557
e89b5f8cb4618ddbf653e27fd679411be48d42e7
121
py
Python
connectedcars/exceptions.py
heslegrave/connectedcars-python
29dca7bb33d549dbb4803688032ae3a13b932eba
[ "MIT" ]
4
2019-11-11T00:21:33.000Z
2020-10-27T19:47:35.000Z
connectedcars/exceptions.py
heslegrave/connectedcars-python
29dca7bb33d549dbb4803688032ae3a13b932eba
[ "MIT" ]
2
2020-06-29T20:17:55.000Z
2020-10-25T19:17:38.000Z
connectedcars/exceptions.py
heslegrave/connectedcars-python
29dca7bb33d549dbb4803688032ae3a13b932eba
[ "MIT" ]
2
2020-07-20T16:08:48.000Z
2020-11-01T14:55:20.000Z
class ConnectedCarsException(Exception): pass class ConnectedCarsInvalidResponse(ConnectedCarsException): pass
17.285714
59
0.818182
e89b7e385fa9ad82205ccb3690d9fd52ae80e5a4
19,987
py
Python
test/core/test_op.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
test/core/test_op.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
test/core/test_op.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
1
2019-02-14T13:49:37.000Z
2019-02-14T13:49:37.000Z
import os.path import sys from collections import OrderedDict from unittest import TestCase import xarray as xr from cate.core.op import OpRegistry, op, op_input, op_return, op_output, OP_REGISTRY from cate.core.op import new_subprocess_op, new_expression_op from cate.core.types import FileLike, VarName from cate.uti...
44.613839
108
0.548406
e89b8a3df5845e5210620285df66c3e72c9e7481
5,811
py
Python
mmdet/datasets/xml_style.py
flyingTan/QuantMmdetection
6126cd7725dcd0c4d3ad68f016908c500a0adbb9
[ "Apache-2.0" ]
2
2021-08-28T06:43:03.000Z
2022-01-17T00:04:23.000Z
mmdet/datasets/xml_style.py
flyingTan/QuantMmdetection
6126cd7725dcd0c4d3ad68f016908c500a0adbb9
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/xml_style.py
flyingTan/QuantMmdetection
6126cd7725dcd0c4d3ad68f016908c500a0adbb9
[ "Apache-2.0" ]
null
null
null
import os.path as osp import xml.etree.ElementTree as ET import mmcv import numpy as np from PIL import Image from .builder import DATASETS from .custom import CustomDataset @DATASETS.register_module() class XMLDataset(CustomDataset): """XML dataset for detection. Args: min_size (int | float, optio...
33.982456
79
0.525039
e89bdd0fd56d9c509fb04f64a2ae614070cc060b
3,218
py
Python
third_party/rules_pkg-0.7.0/distro/packaging_test.py
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
62
2021-09-21T18:58:02.000Z
2022-03-07T02:17:43.000Z
third_party/rules_pkg-0.7.0/distro/packaging_test.py
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
third_party/rules_pkg-0.7.0/distro/packaging_test.py
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Bazel Authors. 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 la...
36.157303
80
0.69018
e89c17cb05bb69589a7f759ccfe5918ecafbc13f
52
py
Python
fs/azblob/__init__.py
turing-complet/fs-azureblob
b27549303a23fc016f67abff91a5cec2ab34e726
[ "MIT" ]
2
2021-12-21T10:44:29.000Z
2022-01-04T17:25:12.000Z
fs/azblob/__init__.py
turing-complet/fs-azureblob
b27549303a23fc016f67abff91a5cec2ab34e726
[ "MIT" ]
11
2021-09-16T23:39:42.000Z
2022-02-11T02:42:45.000Z
fs/azblob/__init__.py
turing-complet/fs-azureblob
b27549303a23fc016f67abff91a5cec2ab34e726
[ "MIT" ]
1
2021-11-07T22:15:57.000Z
2021-11-07T22:15:57.000Z
from .blob_fs import BlobFile, BlobFS # noqa: F401
26
51
0.75
e89c91ccb0640a162e8ff2d17616accd24a00ef8
691
py
Python
tests/unmarshalling/util.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
1
2019-04-24T19:50:03.000Z
2019-04-24T19:50:03.000Z
tests/unmarshalling/util.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
3
2019-10-11T20:31:57.000Z
2020-04-13T16:06:43.000Z
tests/unmarshalling/util.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
null
null
null
def dict_obj_diff(dict_: dict, obj): for key, value in dict_.items(): if isinstance(value, list): o_value = getattr(obj, key) for d_item, o_item in zip(value, o_value): if isinstance(d_item, dict): dict_obj_diff(d_item, o_item) ...
36.368421
55
0.520984
e89cbbd8728c5eb755449ae324cebf93cd2931d5
5,258
py
Python
CH341WindllDriver.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
CH341WindllDriver.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
CH341WindllDriver.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
from ctypes import * from CH341DriverBase import * # MIT License. class CH341Driver: """ This is basic interface code for a CH341 to be run in EPP 1.9 mode. """ def __init__(self, index=-1, bus=-1, address=-1, serial=-1, chipv=-1, state_listener=None): if state_listener is No...
35.053333
96
0.572081
e89cfe9725af681de793a213c413eaa7a04339df
780
py
Python
tests/test_layers/test_1d/test_1d.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
1
2021-11-02T14:00:27.000Z
2021-11-02T14:00:27.000Z
tests/test_layers/test_1d/test_1d.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
tests/test_layers/test_1d/test_1d.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- import pytest from colossalai.core import global_context as gpc from colossalai.initialize import init_dist from test_layer import check_linear_col, check_linear_row CONFIG = dict( parallel=dict( pipeline=dict(size=1), tensor=dict( ...
20
107
0.624359
e89d38841d5e2fedebd49c0040d9b7999b708901
6,983
py
Python
2019/9/intcode.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/9/intcode.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/9/intcode.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
import sys from collections import defaultdict from copy import copy from typing import Any, Dict, Callable, List JUMPS = { 1: 4, 2: 4, 3: 2, 4: 2, 5: 3, 6: 3, 7: 4, 8: 4, 9: 2, } class Operator: """An Intcode operator with potential parameters. Attributes: c...
29.217573
75
0.478877
e89d57cd684c676c435c73d1b328c0c12e900629
1,502
py
Python
superset/migrations/versions/19a814813610_adding_metric_warning_text.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/migrations/versions/19a814813610_adding_metric_warning_text.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
112
2018-01-25T22:57:21.000Z
2019-08-22T20:08:48.000Z
superset/migrations/versions/19a814813610_adding_metric_warning_text.py
zhwXF/Superset
14c3488c79f8f3cdbd1123e8f7a92f8746c2db09
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04:25.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 u...
34.930233
85
0.761651
e89d79cb32fbc9ca96dcd1b835c2471c20fac89c
11,109
py
Python
pycellid/images.py
pyCellID/pyCellID
bd53e84a9b20742214768b195c1992a98e5e3616
[ "MIT" ]
null
null
null
pycellid/images.py
pyCellID/pyCellID
bd53e84a9b20742214768b195c1992a98e5e3616
[ "MIT" ]
1
2021-10-30T15:09:17.000Z
2021-12-19T01:40:34.000Z
pycellid/images.py
pyCellID/pyCellID
bd53e84a9b20742214768b195c1992a98e5e3616
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the # PyCellID Project ( # https://github.com/pyCellID, # https://github.com/darksideoftheshmoo # ). # Copyright (c) 2021. Clemente, Jose # License: MIT # Full Text: https://github.com/pyCellID/pyCellID/blob/main/LICENSE # ===========...
30.603306
79
0.589432
e89d85bb96958838d5ad7edb421c96c26c9ff2dd
1,178
py
Python
Semana 4/Proyecto corte 1/funciones.py
adageran2418/ProgramacionG320182
21573f67b7dada4fd6fa2bd3b92ed450570c8f8d
[ "MIT" ]
null
null
null
Semana 4/Proyecto corte 1/funciones.py
adageran2418/ProgramacionG320182
21573f67b7dada4fd6fa2bd3b92ed450570c8f8d
[ "MIT" ]
1
2018-08-23T23:46:08.000Z
2018-08-23T23:46:08.000Z
Semana 4/Proyecto corte 1/funciones.py
adageran2418/ProgramacionG320182
21573f67b7dada4fd6fa2bd3b92ed450570c8f8d
[ "MIT" ]
1
2018-08-23T23:33:59.000Z
2018-08-23T23:33:59.000Z
def calcular_precio_producto(coste_producto): """ vfsdgsdfgfasdg :param coste_producto: :return: """ pass def calcular_precio_servicio(cantidad_horas): pass def calcular_precio_servicio_extras(cantidad_horas): pass def calcular_costo_envio(kilometros): pass def calcular_precio...
19.966102
54
0.581494
e89d94de5834fe425388da377cae1429c05a1da8
4,854
py
Python
appengine/monorail/features/test/send_notifications_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/features/test/send_notifications_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/features/test/send_notifications_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Tests for prepareandsend.py""" from __future__ import print_function from __future__ import ...
35.691176
79
0.698805
e89da8cbb739e328c48aa12c7e30c83a8504b5ab
5,436
py
Python
Examples/asposeimagingcloudexamples/AI/imaging_ai_base.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
1
2022-01-14T10:06:26.000Z
2022-01-14T10:06:26.000Z
Examples/asposeimagingcloudexamples/AI/imaging_ai_base.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
3
2019-07-17T15:01:31.000Z
2020-12-29T09:16:10.000Z
Examples/asposeimagingcloudexamples/AI/imaging_ai_base.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="imaging_ai_base.py"> # Copyright (c) 2019 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining ...
45.3
127
0.660964
e89e34bef627035ca6af77e24bd649b87fa419c8
1,787
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ble_midi_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ble_midi_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ble_midi_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """ This example sends MIDI out. It sends NoteOn and then NoteOff with a random pitch bend. """ import time import random import adafruit_ble from adafruit_ble.advertising.standard import ProvideServicesAdvertisement import ...
30.810345
87
0.736989
e89e554ed8a292c93f40b07148408a48463aaf4e
7,586
py
Python
sciwing/models/sectlabel.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/models/sectlabel.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/models/sectlabel.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
import sciwing.constants as constants from sciwing.datasets.classification.text_classification_dataset import ( TextClassificationDatasetManager, ) from sciwing.modules.embedders.bow_elmo_embedder import BowElmoEmbedder from sciwing.modules.embedders.word_embedder import WordEmbedder from sciwing.modules.embedders....
34.325792
101
0.630767
e89e62486e3348117683c42c726b637e1b6f4d9f
7,556
py
Python
pyannote/audio/pipelines/resegmentation.py
suissemaxx/pyannote-audio-develop_colab
e9499372a1771c21e1604424a6dd041337111093
[ "MIT" ]
null
null
null
pyannote/audio/pipelines/resegmentation.py
suissemaxx/pyannote-audio-develop_colab
e9499372a1771c21e1604424a6dd041337111093
[ "MIT" ]
null
null
null
pyannote/audio/pipelines/resegmentation.py
suissemaxx/pyannote-audio-develop_colab
e9499372a1771c21e1604424a6dd041337111093
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2018-2021 CNRS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
38.748718
96
0.686077
e89e6c4f73c30ee11221d6d49b36554e61560838
2,775
py
Python
codes/3 title match/title_match_749/datamanage.py
QiyuanMa/trailer_research
5276e0f422aeb9ef6bccb4ffd348a600dacc2f75
[ "MIT" ]
null
null
null
codes/3 title match/title_match_749/datamanage.py
QiyuanMa/trailer_research
5276e0f422aeb9ef6bccb4ffd348a600dacc2f75
[ "MIT" ]
null
null
null
codes/3 title match/title_match_749/datamanage.py
QiyuanMa/trailer_research
5276e0f422aeb9ef6bccb4ffd348a600dacc2f75
[ "MIT" ]
1
2020-12-14T04:56:43.000Z
2020-12-14T04:56:43.000Z
# Mysql Database,PORT:3306,Assure the client is activated # install pymysql:pip install pymysql(or File->Setting->Project Interpreter->add...) import pymysql import threading from settings import MYSQL_HOST ,MYSQL_DB ,MYSQL_PWD ,MYSQL_USER class DataManager(): # The singleton mode ensures that an object is ca...
45.491803
116
0.625946
e89e73fb687297e80c49520eee93ea5b9c117cff
2,731
py
Python
examples/electro_hyperelastic_explicit_dynamics/electro_hyperelastic_explicit_dynamics.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
examples/electro_hyperelastic_explicit_dynamics/electro_hyperelastic_explicit_dynamics.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
examples/electro_hyperelastic_explicit_dynamics/electro_hyperelastic_explicit_dynamics.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
import numpy as np from Florence import * def electro_hyperelastic_explicit_dynamics(recompute_sparsity_pattern=True, squeeze_sparsity_pattern=False): """A an example of multiphysics nonlinear explicit dynamics with nonlinear electro-hyperelastic material """ mesh = Mesh() mesh.Parallelepipe...
39.014286
131
0.705602
e89e8d3fd13e485c7891cbb99bb27b99421f9209
29
py
Python
hive/indexer/__init__.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
78
2017-03-09T15:33:08.000Z
2022-03-30T06:01:19.000Z
hive/indexer/__init__.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
193
2017-04-25T19:39:20.000Z
2021-06-29T01:53:53.000Z
hive/indexer/__init__.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
68
2017-05-07T17:31:08.000Z
2021-08-23T01:17:00.000Z
"""Hive indexing service."""
14.5
28
0.655172
e89eaab37cad9904f24368619cfa2d8b02ffd1b1
1,315
py
Python
week3/extra/dabase_IO.py
MathAdventurer/Data_Mining
b0a06b5f7c13a3762a07eb84518aa4ee56896516
[ "MIT" ]
1
2021-02-27T18:35:39.000Z
2021-02-27T18:35:39.000Z
week3/extra/dabase_IO.py
MathAdventurer/Data_Mining
b0a06b5f7c13a3762a07eb84518aa4ee56896516
[ "MIT" ]
null
null
null
week3/extra/dabase_IO.py
MathAdventurer/Data_Mining
b0a06b5f7c13a3762a07eb84518aa4ee56896516
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 20 17:44:35 2018 @author: Neal """ import sqlite3 import os db_file='./data/stock_orders.db' if os.path.isfile(db_file):#delete existing database file os.remove(db_file) #connect to database conn = sqlite3.connect(db_file) #create cursor ...
28.586957
76
0.602281
e89ee745e36a842bcb9c438820957d768b8d2db8
3,476
py
Python
rally/common/plugin/meta.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
2
2015-02-06T11:03:12.000Z
2015-03-02T10:39:44.000Z
rally/common/plugin/meta.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
rally/common/plugin/meta.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
2
2016-03-16T03:52:13.000Z
2020-10-02T07:58:50.000Z
# Copyright 2015: Mirantis 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 b...
32.485981
78
0.575374
e89eea51a01e0f8103c024c6ab660044f6d8f93e
993
py
Python
venv/Lib/site-packages/tests/test_130_PrepExecuteSelectStmt.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_130_PrepExecuteSelectStmt.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_130_PrepExecuteSelectStmt.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # import unittest, sys import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_130_PrepExecuteSelectStmt(self): obj = IbmDbTestFunctions() obj.assert_expect(se...
18.388889
93
0.642497
e89eefddb902c1dfcea88bb668eca3fc25e128a2
20,290
py
Python
snsapi/plugin_trial/renren.py
wcyz666/snsapi
19fcf5ca48bc709db50f8f622a30dc4d55924d4e
[ "Unlicense" ]
1
2015-11-08T09:04:38.000Z
2015-11-08T09:04:38.000Z
snsapi/plugin_trial/renren.py
wcyz666/snsapi
19fcf5ca48bc709db50f8f622a30dc4d55924d4e
[ "Unlicense" ]
null
null
null
snsapi/plugin_trial/renren.py
wcyz666/snsapi
19fcf5ca48bc709db50f8f622a30dc4d55924d4e
[ "Unlicense" ]
null
null
null
#-*- encoding: utf-8 -*- ''' Renren Client ''' if __name__ == '__main__': import sys sys.path.append('..') from snslog import SNSLog as logger from snsbase import SNSBase, require_authed import snstype from snstype import BooleanWrappedData import utils import time import urllib e...
32.10443
112
0.524643
e89ef13af03039e98df53f0f1f43e41ca0b1faf9
8,280
py
Python
posthog/test/test_utils.py
PostHog/posthog-foss
ea18305bba5c49d3823ee2f304b0476a2f1addef
[ "MIT" ]
58
2020-08-26T16:26:18.000Z
2022-03-30T05:32:23.000Z
posthog/test/test_utils.py
PostHog/posthog-foss
ea18305bba5c49d3823ee2f304b0476a2f1addef
[ "MIT" ]
2
2021-01-12T14:25:06.000Z
2021-08-28T04:45:33.000Z
posthog/test/test_utils.py
PostHog/posthog-foss
ea18305bba5c49d3823ee2f304b0476a2f1addef
[ "MIT" ]
13
2020-09-08T13:27:07.000Z
2022-03-19T17:27:10.000Z
from typing import Any, List, Optional, Sequence, Tuple from unittest.mock import call, patch from django.http import HttpRequest from django.test import TestCase from django.test.client import RequestFactory from freezegun import freeze_time from rest_framework.request import Request from posthog.api.test.mock_sentr...
45.494505
112
0.663164
e89efacf31fddf1e2aa1cc7425869b3b4fd26163
598
py
Python
abc/abc183/c/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc183/c/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc183/c/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import itertools import sys import math from collections import defaultdict, deque sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N, K = na() T = [] paths = [] for i in range(N): ...
18.121212
53
0.586957
e89efd40a50f77d02563bddb881ee8b15cce7140
1,732
py
Python
Network/DataBase/PSQL.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
Network/DataBase/PSQL.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
Network/DataBase/PSQL.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3.4 # -*- coding=utf-8 -*- #本脚由亁颐堂现任明教教主编写,用于乾颐盾Python课程! #教主QQ:605658506 #亁颐堂官网www.qytang.com #乾颐盾是由亁颐堂现任明教教主开发的综合性安全课程 #包括传统网络安全(防火墙,IPS...)与Python语言和黑客渗透课程! import sys sys.path.append('/usr/local/lib/python3.4/dist-packages/PyQYT/ExtentionPackages') sys.path.append('/usr/lib/python3.4/site-packages...
27.492063
112
0.713048
e89efe732e2ed85b2f0c422e8fe3570e0afec5dd
68,433
py
Python
pypeit/core/skysub.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
pypeit/core/skysub.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
pypeit/core/skysub.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Module for sky subtraction .. include common links, assuming primary doc root is up one directory .. include:: ../include/links.rst """ import numpy as np from scipy import ndimage from scipy.special import ndtr from matplotlib import pyplot as plt from IPython import embed from pypeit.images import imagebitma...
51.222305
176
0.605205
e89f37ff8c1fc09929543d97ff491892ec7eb41d
10,770
py
Python
src/sage/combinat/crystals/affinization.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
3
2016-06-19T14:48:31.000Z
2022-01-28T08:46:01.000Z
src/sage/combinat/crystals/affinization.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/crystals/affinization.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
r""" Affinization Crystals """ #***************************************************************************** # Copyright (C) 2015 Travis Scrimshaw <tscrim at ucdavis.edu> # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will be useful, ...
32.735562
104
0.473166
e89f48e26d5083ff7f6e7aa0c941c869af38c833
5,753
gyp
Python
third_party/libphonenumber/libphonenumber.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
third_party/libphonenumber/libphonenumber.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/libphonenumber/libphonenumber.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'target_defaults': { 'include_dirs': [ 'dist/cpp/src', 'dist/cpp/test', # The libphonenumber source (and test code) expects the...
34.866667
95
0.631844
e89f5b1acd92eaddf7e6a2e5cb59d3db7afb5e77
3,491
py
Python
BCC__BCC36B__P[1]__HenriqueMarcuzzo_2046334/impl/tppLex.py
hmarcuzzo/compiler_project
2463d19c2b81ba28a943974828e8bb5954424cac
[ "Apache-2.0" ]
null
null
null
BCC__BCC36B__P[1]__HenriqueMarcuzzo_2046334/impl/tppLex.py
hmarcuzzo/compiler_project
2463d19c2b81ba28a943974828e8bb5954424cac
[ "Apache-2.0" ]
null
null
null
BCC__BCC36B__P[1]__HenriqueMarcuzzo_2046334/impl/tppLex.py
hmarcuzzo/compiler_project
2463d19c2b81ba28a943974828e8bb5954424cac
[ "Apache-2.0" ]
null
null
null
import ply.lex as lex from ply.lex import TOKEN class tppLex(): # Variáveis digito = r"([0-9])" letra = r"([a-zA-ZáÁãÃàÀéÉíÍóÓõÕ])" sinal = r"([\-\+]?)" # Tokens e simblos da linguagens tokens = [ "ID", # identificador # numerais "NUM_NOTACAO_CIENTIFICA", # pon...
25.115108
76
0.515898
e89f7043e6708f0ca9041dbc24970bf3d01b9daa
13,428
py
Python
ynote/__init__.py
daniellee219/youdaonotepy
e685269157914223d2d6a14cff5446f6f6bdacca
[ "Apache-2.0" ]
6
2017-09-22T08:13:03.000Z
2020-05-18T01:09:15.000Z
ynote/__init__.py
daniellee219/youdaonotepy
e685269157914223d2d6a14cff5446f6f6bdacca
[ "Apache-2.0" ]
null
null
null
ynote/__init__.py
daniellee219/youdaonotepy
e685269157914223d2d6a14cff5446f6f6bdacca
[ "Apache-2.0" ]
5
2015-04-11T03:59:03.000Z
2020-12-22T17:04:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __version__ = "1.0b" __author__ = "Li Chuan (daniellee0219@gmail.com)" ''' Python client SDK for Youdao Note API using OAuth 2. ''' try: import json except ImportError: import simplejson as json import urllib2, oauth2, time ENCODING = 'utf-8' BASE_URL = 'http:/...
35.52381
116
0.611632
e89f735a06abc7e660573d50345facb2c5d0432a
7,441
py
Python
ptlflow/utils/correlation.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
78
2021-06-15T03:11:33.000Z
2022-03-25T05:51:25.000Z
ptlflow/utils/correlation.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
12
2021-07-04T17:02:57.000Z
2022-02-09T09:30:43.000Z
ptlflow/utils/correlation.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
3
2021-07-27T21:28:51.000Z
2021-09-17T10:06:27.000Z
"""Perform spatial correlation to generate a cost volume. This is meant to be a simplified version of the SpatialCorrelationSampler from https://github.com/ClementPinard/Pytorch-Correlation-extension. This version is implemented purely in PyTorch. However, it only supports correlation with 1x1 kernels. It is also not...
42.278409
127
0.651929
e89fa40ddd6f76c59c8539bdd34b1843ac4bc1bc
4,969
py
Python
dataprep/clean/clean_lt_pvm.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/clean_lt_pvm.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/clean_lt_pvm.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" Clean and validate a DataFrame column containing Lithuanian PVM numbers (PVMs). """ # pylint: disable=too-many-lines, too-many-arguments, too-many-branches from typing import Any, Union from operator import itemgetter import dask.dataframe as dd import numpy as np import pandas as pd from stdnum.lt import pvm fro...
30.67284
99
0.612799
e89faefedc39045f6a123d036ce762be99b21b03
3,057
py
Python
examples/plotting/Finding_Local_Peaks_in_Solar_Data.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-01-03T16:39:28.000Z
2020-04-24T15:12:08.000Z
examples/plotting/Finding_Local_Peaks_in_Solar_Data.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
examples/plotting/Finding_Local_Peaks_in_Solar_Data.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
""" ================================= Finding Local Peaks in Solar Data ================================= Detecting intensity peaks in solar images can be useful, for example as a simple flare identification mechanism. This example illustrates detection of areas where there is a spike in solar intensity. We use the `~...
38.696203
90
0.628721
e89fca672c4fa59b084845b97a9f5eb9af0ce7f1
4,143
py
Python
download.py
mccannjb/Wistia-video-fetcher
eb439c96833ca130be4187468581faf13504c86e
[ "MIT" ]
2
2020-10-05T09:01:02.000Z
2021-08-07T18:55:40.000Z
download.py
mccannjb/Wistia-video-fetcher
eb439c96833ca130be4187468581faf13504c86e
[ "MIT" ]
1
2020-05-23T13:56:36.000Z
2020-05-23T13:56:36.000Z
download.py
mccannjb/Wistia-video-fetcher
eb439c96833ca130be4187468581faf13504c86e
[ "MIT" ]
1
2021-01-13T09:25:18.000Z
2021-01-13T09:25:18.000Z
import json from multiprocessing.pool import ThreadPool import re import shutil import time import pandas as pd import requests class AssetNotFoundError(Exception): """ Exception for when asset information is not found on a page. """ pass class Video(object): """ Video object that can identify and downlo...
34.239669
102
0.582428
e89ffc2b16d4078104af81ae64a94a672d07685f
9,711
py
Python
tests/test_so2.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
6
2020-09-25T07:38:00.000Z
2022-03-11T09:09:22.000Z
tests/test_so2.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
1
2020-10-29T08:39:34.000Z
2021-02-09T14:07:09.000Z
tests/test_so2.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
1
2020-11-21T12:33:44.000Z
2020-11-21T12:33:44.000Z
import numpy as np from pylie import SO2 def test_construct_identity_with_no_args(): so2 = SO2() np.testing.assert_equal(so2.angle, 0.0) np.testing.assert_array_equal(so2.to_matrix(), np.identity(2)) def test_construct_from_matrix(): theta = np.pi/3 R = SO2(theta).to_matrix() so2 = SO2.from...
27.745714
99
0.668211
e8a01e8877fa24f01fa4db860f4be4f68c5ab167
3,885
py
Python
tests_tf/test_defenses.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
21
2019-06-07T17:05:30.000Z
2022-02-07T03:25:15.000Z
tests_tf/test_defenses.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
1
2021-03-01T15:06:09.000Z
2021-03-01T15:06:09.000Z
tests_tf/test_defenses.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
8
2019-06-11T03:06:29.000Z
2022-01-18T04:18:27.000Z
# pylint: disable=missing-docstring from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import numpy as np import tensorflow as tf from cleverhans.attacks import FastGradientMethod from cleverhans.loss im...
35.972222
74
0.63269
e8a025e39a4150690fac2c43654185baaeebfc93
1,580
py
Python
src/type_output.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-03-07T03:38:09.000Z
2022-03-07T03:38:09.000Z
src/type_output.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
null
null
null
src/type_output.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-01-12T05:30:40.000Z
2022-01-12T05:30:40.000Z
import json import argparse import os def run(args): func_name = args.func_name type_inputs = args.type_inputs.replace(" ", "") dir = os.path.join(args.curr_dir, ".vscode", "tool_json_files", "user_input.json") line_nb = int(args.line_nb) code_file = args.code_file api_params = args.api_params....
37.619048
108
0.656329
e8a03d36b9afa945aea9b0d3d3b3e203a4ff9f0d
364
py
Python
migrations/versions/0305a_merge.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0305a_merge.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0305a_merge.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0305a_merge Revises: 0305_add_gp_org_type, 0304a_merge Create Date: 2019-09-04 16:18:27.467361 """ # revision identifiers, used by Alembic. revision = "0305a_merge" down_revision = ("0305_add_gp_org_type", "0304a_merge") branch_labels = None import sqlalchemy as sa from alembic import op def upgr...
15.166667
55
0.741758
e8a043e682ca66c4ca4bba07799ad4d95db3db84
1,695
py
Python
setup.py
hypebeast/surfraw-pinboard
7b0618d2b9b250133119f049feb835f3622dd470
[ "MIT" ]
6
2017-05-08T20:58:47.000Z
2019-09-05T06:20:22.000Z
setup.py
hypebeast/surfraw-pinboard
7b0618d2b9b250133119f049feb835f3622dd470
[ "MIT" ]
1
2021-11-15T17:46:57.000Z
2021-11-15T17:46:57.000Z
setup.py
hypebeast/surfraw-pinboard
7b0618d2b9b250133119f049feb835f3622dd470
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'Click>=6.0', 'pinboard>=1.0' ] test_requirements = [ # TODO: p...
28.25
103
0.624779
e8a0529cfc5a6503742f33034edb453394063196
296
py
Python
dskc/visualization/graphs/shortcuts/util.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/visualization/graphs/shortcuts/util.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/visualization/graphs/shortcuts/util.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
from dskc.visualization.terminal import markdown_h2 def header(section, sub_section, text, increment_sub_section=True): print("\n") markdown_h2("{}.{} {}".format(section, sub_section, text)) print("\n") if increment_sub_section: sub_section += 1 return sub_section
24.666667
67
0.692568
e8a0747db4faaeabf3e56350efb66412b1a097e6
124
py
Python
utils/__init__.py
naivete5656/WSISPDR
1dc4d1bf24a6ebf7efd3c75d3f1a9edbe849d38b
[ "MIT" ]
37
2019-10-09T09:42:24.000Z
2022-03-29T09:57:29.000Z
utils/__init__.py
naivete5656/WSISPDR
1dc4d1bf24a6ebf7efd3c75d3f1a9edbe849d38b
[ "MIT" ]
4
2020-02-26T06:49:02.000Z
2021-10-17T16:29:24.000Z
utils/__init__.py
naivete5656/WSISPDR
1dc4d1bf24a6ebf7efd3c75d3f1a9edbe849d38b
[ "MIT" ]
4
2019-10-18T07:34:30.000Z
2020-04-10T03:35:34.000Z
from .load import * from .matching import local_maxim, target_peaks_gen, optimum, remove_outside_plot, show_res, gaus_filter
62
104
0.83871
e8a07cfcf7049f40ddca428fa0de9dff03742239
1,405
py
Python
Ranking/Baselines/pytorch_test.py
vincentami/MSMARCO
d575d33264c1afd37acb941f0a193b8af533d778
[ "MIT" ]
null
null
null
Ranking/Baselines/pytorch_test.py
vincentami/MSMARCO
d575d33264c1afd37acb941f0a193b8af533d778
[ "MIT" ]
null
null
null
Ranking/Baselines/pytorch_test.py
vincentami/MSMARCO
d575d33264c1afd37acb941f0a193b8af533d778
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import os import os.path import csv import re import random import datetime import numpy as np import pandas as pd import copy import math import torch import torch.nn as nn from torch.autograd import Variable import torch.optim as optim def print_message(s): print...
17.5625
98
0.535231
e8a09640950cc1e0200819b085471ecf610db385
447
py
Python
sfepy/solvers/setup.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
sfepy/solvers/setup.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
sfepy/solvers/setup.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
#!/usr/bin/env python def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration import os.path as op auto_name = op.split(op.dirname(__file__))[-1] config = Configuration(auto_name, parent_package, top_path) # config.add_data_dir('tests') return ...
26.294118
63
0.718121
e8a0ab4c11c081a9ef73480dde191855045e9c59
3,674
py
Python
perceptron/benchmarks/additive_noise.py
jiayunhan/perceptron-benchmark
39958a15e9f8bfa82938a3f81d4f216457744b22
[ "Apache-2.0" ]
38
2019-06-10T04:19:42.000Z
2022-02-15T05:21:23.000Z
perceptron/benchmarks/additive_noise.py
jiayunhan/perceptron-benchmark
39958a15e9f8bfa82938a3f81d4f216457744b22
[ "Apache-2.0" ]
4
2019-07-30T19:00:23.000Z
2019-09-26T01:35:05.000Z
perceptron/benchmarks/additive_noise.py
jiayunhan/perceptron-benchmark
39958a15e9f8bfa82938a3f81d4f216457744b22
[ "Apache-2.0" ]
10
2019-06-10T05:45:33.000Z
2021-04-22T08:33:28.000Z
# Copyright 2019 Baidu Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
35.669903
77
0.639085
e8a0ae9d51a591418d100217adad52606dcca94f
2,852
py
Python
storage.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
storage.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
storage.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.utils._os import safe_join from django.utils.module_loading import import_string from mighty.functions import setting, get_logger import os logger = get_logger() storage_default = "django.core.files.storage.FileSystemStorage" storage_choice = setting("STORAGE", storage_default) Storage = import_string(stor...
37.526316
104
0.568022
e8a0dfd8dcebb4ff7a52cf641ea20855925c7228
4,567
py
Python
dash_bio/utils/chem_structure_reader.py
brybackGMet/dash-bio
31cc7828e26094c4c49b08374dc515ef25637834
[ "MIT" ]
null
null
null
dash_bio/utils/chem_structure_reader.py
brybackGMet/dash-bio
31cc7828e26094c4c49b08374dc515ef25637834
[ "MIT" ]
null
null
null
dash_bio/utils/chem_structure_reader.py
brybackGMet/dash-bio
31cc7828e26094c4c49b08374dc515ef25637834
[ "MIT" ]
null
null
null
"""Chem structure reader This module contains functions that extract data from JSON files for compatibility with the Dash Bio Molecule2dViewer component. Attributes: _ELEMENTS (dict): A dictionary that maps the atomic numbers of elements to their corresponding symbols.""" import json import numpy as np from per...
34.862595
99
0.529231
e8a0ed07d479212103738ae02913d3ed23d59c57
23,897
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_character_lcd/character_lcd.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_character_lcd/character_lcd.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_character_lcd/character_lcd.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2017 Brent Rubell for Adafruit Industries # SPDX-FileCopyrightText: 2018 Kattni Rembor for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_character_lcd.character_lcd` ==================================================== Module for interfacing with monochromatic character ...
33.563202
99
0.612378