hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
5bd21e77793736f8913d3aa19ac9d0ef524c25eb
2,351
py
Python
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/CancelImportRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/CancelImportRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/CancelImportRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# 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...
35.089552
74
0.772437
284238a091a7eea0d5394b8a2e086f707d21c007
16,110
py
Python
benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/3-sender_receiver_7.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/3-sender_receiver_7.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/3-sender_receiver_7.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
40.275
89
0.567163
a6da7aad4b9c9676545131a486c4275ce487a6e6
5,136
py
Python
homeassistant/components/switcher_kis/switch.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
homeassistant/components/switcher_kis/switch.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
homeassistant/components/switcher_kis/switch.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
2
2018-08-15T03:59:35.000Z
2018-10-18T12:20:05.000Z
"""Home Assistant Switcher Component Switch platform.""" from logging import getLogger from typing import Callable, Dict, TYPE_CHECKING from homeassistant.components.switch import ATTR_CURRENT_POWER_W, SwitchDevice from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.typing...
35.666667
79
0.654206
dadbed94367190a6c1df74a890c81d0eba76a9dd
1,127
py
Python
webpanel/urls.py
csk17k/WebPanel
fdb0ae1b2fd12d006fbca65c779369e2d3d62928
[ "Apache-2.0" ]
null
null
null
webpanel/urls.py
csk17k/WebPanel
fdb0ae1b2fd12d006fbca65c779369e2d3d62928
[ "Apache-2.0" ]
null
null
null
webpanel/urls.py
csk17k/WebPanel
fdb0ae1b2fd12d006fbca65c779369e2d3d62928
[ "Apache-2.0" ]
1
2021-06-24T13:38:23.000Z
2021-06-24T13:38:23.000Z
"""webpanel URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/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') Class-b...
40.25
79
0.680568
7ab31a8b39cc868dbd8b7c379ccf1cc71d10ca0c
6,992
py
Python
.ipynb_checkpoints/opt-checkpoint.py
chuktuk/Alzheimers_Disease_Analysis
1fd5ac72035c68117214beb38d2ba41e1e8699c3
[ "MIT" ]
8
2020-01-03T00:33:19.000Z
2021-05-13T15:50:40.000Z
.ipynb_checkpoints/opt-checkpoint.py
chuktuk/Alzheimers_Disease_Analysis
1fd5ac72035c68117214beb38d2ba41e1e8699c3
[ "MIT" ]
null
null
null
.ipynb_checkpoints/opt-checkpoint.py
chuktuk/Alzheimers_Disease_Analysis
1fd5ac72035c68117214beb38d2ba41e1e8699c3
[ "MIT" ]
6
2020-01-02T23:21:45.000Z
2021-05-13T15:50:49.000Z
if 'pd' not in globals(): import pandas as pd if 'np' not in globals(): import numpy as np if 'plt' not in globals(): import matplotlib.pyplot as plt if 'sns' not in globals(): import seaborn as sns if 'scipy.stats' not in globals(): import scipy.stats sns.set() def optimize(fe...
47.564626
118
0.562214
187ccc6de8b965e0ebd13e80351ff738c503c026
9,154
py
Python
model/LwFModel.py
gyeongmoon/CNN-DM
5b71307fa41096bc439d480283c0c4c0200164be
[ "MIT" ]
2
2021-05-31T04:43:12.000Z
2021-10-06T07:48:21.000Z
model/LwFModel.py
gyeongmoon/CNN-DM
5b71307fa41096bc439d480283c0c4c0200164be
[ "MIT" ]
null
null
null
model/LwFModel.py
gyeongmoon/CNN-DM
5b71307fa41096bc439d480283c0c4c0200164be
[ "MIT" ]
null
null
null
import time import torch import torch.nn as nn from model import utils from model import LwFLoss from torchvision import models from torch.autograd import Variable ####################################################### # Defining the Learning without Forgetting (LwF) model. # ----------------------------------------...
38.141667
116
0.575377
a395350e5fce83a5c07ea131f63660ac541e3517
1,144
py
Python
FatherSon/HelloWorld2_source_code/Listing_23-9.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
FatherSon/HelloWorld2_source_code/Listing_23-9.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
FatherSon/HelloWorld2_source_code/Listing_23-9.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
# Listing_23-9.py # Copyright Warren & Csrter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Crazy Eights - getting the new suit when the player plays an 8 # Note that this is not a complete program. It needs to ...
36.903226
120
0.546329
6d76028b0ae8fcee36c5a5cc36fbcb4f59179c46
222
py
Python
inn/inn_hotels/doctype/inn_package_detail/test_inn_package_detail.py
vinhnguyent090/front-desk
7384642e9206e30855986465a7ef63c8fd76ef2a
[ "MIT" ]
4
2021-08-19T03:33:36.000Z
2021-08-28T16:37:52.000Z
inn/inn_hotels/doctype/inn_package_detail/test_inn_package_detail.py
vinhnguyent090/front-desk
7384642e9206e30855986465a7ef63c8fd76ef2a
[ "MIT" ]
98
2020-02-24T08:12:47.000Z
2021-08-21T07:54:03.000Z
inn/inn_hotels/doctype/inn_package_detail/test_inn_package_detail.py
vinhnguyent090/front-desk
7384642e9206e30855986465a7ef63c8fd76ef2a
[ "MIT" ]
13
2021-01-24T18:08:43.000Z
2022-03-29T09:23:25.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Core Initiative and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestInnPackageDetail(unittest.TestCase): pass
20.181818
54
0.779279
bf1770ab5a06d4ec74e8ff38f6a57b98e345c8a4
6,557
py
Python
Replication Codes/code/python/estimate_R/estimate_R_KF.py
3dgiordano/TrackingR
2cb43988f8598d519de341f48754132bf095b33e
[ "MIT" ]
20
2021-02-19T01:47:41.000Z
2022-03-07T05:58:38.000Z
Replication Codes/code/python/estimate_R/estimate_R_KF.py
3dgiordano/TrackingR
2cb43988f8598d519de341f48754132bf095b33e
[ "MIT" ]
6
2021-02-15T09:06:12.000Z
2022-01-31T02:24:29.000Z
Replication Codes/code/python/estimate_R/estimate_R_KF.py
3dgiordano/TrackingR
2cb43988f8598d519de341f48754132bf095b33e
[ "MIT" ]
12
2021-04-01T20:38:03.000Z
2022-02-14T21:22:05.000Z
import os import sys sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '../..')) import numpy as np import pandas as pd import matplotlib.pyplot as plt import statsmodels.api as sm import statsmodels.formula.api as smf import scipy import warnings from python.tools import ( clean_folder ) def est...
35.63587
130
0.613543
a1f337b69b98f2671185b496492ecba1e65d44dc
4,353
py
Python
src/pyjen/build.py
TheFriendlyCoder/pyjen
a3d7e8f69cb53f80f627300f8d3aa0d4302a5ac1
[ "Apache-2.0" ]
5
2017-12-14T13:39:04.000Z
2020-07-06T09:46:02.000Z
src/pyjen/build.py
TheFriendlyCoder/pyjen
a3d7e8f69cb53f80f627300f8d3aa0d4302a5ac1
[ "Apache-2.0" ]
119
2016-09-13T01:39:31.000Z
2020-08-31T03:06:19.000Z
src/pyjen/build.py
TheFriendlyCoder/pyjen
a3d7e8f69cb53f80f627300f8d3aa0d4302a5ac1
[ "Apache-2.0" ]
3
2015-03-17T18:49:22.000Z
2019-07-03T14:10:27.000Z
"""Primitives for interacting with Jenkins builds""" from datetime import datetime import logging from urllib.parse import urljoin from pyjen.changeset import Changeset class Build: """information about a single build / run of a :class:`~.job.Job`""" def __init__(self, api): """ Args: ...
26.705521
80
0.583735
abf5d732dfb9c002341fa69d085a75dc9ffe9e41
1,755
py
Python
moonrock/sites/localhost/index.py
ToyokoLabs/moonrock
abd5de575713796d9b19a48fa447cdd7cef520cc
[ "BSD-2-Clause" ]
null
null
null
moonrock/sites/localhost/index.py
ToyokoLabs/moonrock
abd5de575713796d9b19a48fa447cdd7cef520cc
[ "BSD-2-Clause" ]
null
null
null
moonrock/sites/localhost/index.py
ToyokoLabs/moonrock
abd5de575713796d9b19a48fa447cdd7cef520cc
[ "BSD-2-Clause" ]
null
null
null
from datetime import date from flask import Flask, request, url_for, render_template app = Flask(__name__) @app.route('/explore') def indexblog(): return render_template('indexblog.html', blog=True) @app.route('/') def carousel(): return render_template('carousel.html', home=True) @app.route('/checkout/<...
30.789474
73
0.630769
10df35bb052357ccd0747e4660956b11d0ab43c5
4,062
py
Python
tests/data/primitives/test_primitives/fail.py
tods-doc/axolotl
6fc87bedb514677db09c039d492d1d3c7864913d
[ "Apache-2.0" ]
null
null
null
tests/data/primitives/test_primitives/fail.py
tods-doc/axolotl
6fc87bedb514677db09c039d492d1d3c7864913d
[ "Apache-2.0" ]
null
null
null
tests/data/primitives/test_primitives/fail.py
tods-doc/axolotl
6fc87bedb514677db09c039d492d1d3c7864913d
[ "Apache-2.0" ]
null
null
null
import os.path import typing from d3m import container, exceptions, utils from d3m.metadata import hyperparams, base as metadata_base from d3m.primitive_interfaces import base, transformer from . import __author__, __version__ __all__ = ('FailPrimitive',) Inputs = container.DataFrame Outputs = container.DataFrame ...
37.962617
151
0.667159
8dc555f36672ba61d7e7d5609965298c09f72e12
1,123
py
Python
test/test_day12.py
frangiz/AdventOfCode2017
5fc171d4a83bfb9a408b4647ded4cb3efd12247e
[ "MIT" ]
null
null
null
test/test_day12.py
frangiz/AdventOfCode2017
5fc171d4a83bfb9a408b4647ded4cb3efd12247e
[ "MIT" ]
null
null
null
test/test_day12.py
frangiz/AdventOfCode2017
5fc171d4a83bfb9a408b4647ded4cb3efd12247e
[ "MIT" ]
null
null
null
from days import day12 from ddt import ddt, data, unpack import unittest import util @ddt class MyTestCase(unittest.TestCase): @data([['0 <-> 2', '1 <-> 1', '2 <-> 0, 3, 4', '3 <-> 2, 4', '4 <-> 2, 3, 6', '5 <-> 6', '6 <-> 4, 5'...
28.075
67
0.485307
7bf77386b18141e7e942f86c953718dcfab057d7
399
py
Python
api_courses/api_courses/wsgi.py
Bincha3000/API-Online-Courses
f8f23d8e2605d0b689b6548b02cd845de614c470
[ "MIT" ]
null
null
null
api_courses/api_courses/wsgi.py
Bincha3000/API-Online-Courses
f8f23d8e2605d0b689b6548b02cd845de614c470
[ "MIT" ]
6
2020-02-12T00:52:25.000Z
2022-01-13T01:36:21.000Z
api_courses/api_courses/wsgi.py
gladunvv/api-online-courses
f8f23d8e2605d0b689b6548b02cd845de614c470
[ "MIT" ]
null
null
null
""" WSGI config for api_courses project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
e552907b1e2c2d5c81903811e96b9c1489bd40ab
1,081
bzl
Python
ubuntu1604_webtest/revisions.bzl
ash2k/container-definitions
753fbbee3d26d63e500036d4c1ce6d95bc47031c
[ "Apache-2.0" ]
null
null
null
ubuntu1604_webtest/revisions.bzl
ash2k/container-definitions
753fbbee3d26d63e500036d4c1ce6d95bc47031c
[ "Apache-2.0" ]
null
null
null
ubuntu1604_webtest/revisions.bzl
ash2k/container-definitions
753fbbee3d26d63e500036d4c1ce6d95bc47031c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.037037
98
0.786309
e5aac79794358b0f420e2bb6615337bb72ba48e0
334
py
Python
safergpy/code/bench/exps_config/methods/gpy_mle0132.py
johncoltrane1/saferGPMLE
b86fbd329eaad0b6374a1b28cae43b2a7f81eb61
[ "BSD-3-Clause" ]
null
null
null
safergpy/code/bench/exps_config/methods/gpy_mle0132.py
johncoltrane1/saferGPMLE
b86fbd329eaad0b6374a1b28cae43b2a7f81eb61
[ "BSD-3-Clause" ]
10
2021-06-25T15:10:26.000Z
2021-07-15T12:50:21.000Z
safergpy/code/bench/exps_config/methods/gpy_mle0132.py
johncoltrane1/saferGPMLE
b86fbd329eaad0b6374a1b28cae43b2a7f81eb61
[ "BSD-3-Clause" ]
3
2021-06-16T07:39:05.000Z
2022-03-16T09:31:55.000Z
method_args = { "param": "log", "init": "classic_profiled", "stopping_criterion": "soft", "do_profiling": False, "optim_scheme": ...
41.75
63
0.278443
4ccaf23c4cb15bca8adca39437c57ccfa3e80898
5,496
py
Python
tests/test_states.py
meysam81/transitions
02076d3f259efd1a2c066a823547ecd7083a49b7
[ "MIT" ]
3
2019-12-06T15:27:59.000Z
2020-01-14T15:15:27.000Z
tests/test_states.py
v1k45/transitions
02076d3f259efd1a2c066a823547ecd7083a49b7
[ "MIT" ]
null
null
null
tests/test_states.py
v1k45/transitions
02076d3f259efd1a2c066a823547ecd7083a49b7
[ "MIT" ]
null
null
null
from transitions import Machine from transitions.extensions.states import * from transitions.extensions.factory import LockedHierarchicalGraphMachine from time import sleep from unittest import TestCase from .test_graphviz import TestDiagramsLockedNested try: from unittest.mock import MagicMock except ImportError...
29.234043
102
0.576237
0f2afdca8183c0212d764254f2faa8ce4ed0cc98
1,301
py
Python
tests/unit/test_main.py
depop/sloc_report
0e65ece3f5c95e6ab38313b38c110fea275326b2
[ "MIT" ]
1
2016-11-08T13:57:42.000Z
2016-11-08T13:57:42.000Z
tests/unit/test_main.py
depop/sloc_report
0e65ece3f5c95e6ab38313b38c110fea275326b2
[ "MIT" ]
null
null
null
tests/unit/test_main.py
depop/sloc_report
0e65ece3f5c95e6ab38313b38c110fea275326b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pytest import raises # The parametrize function is generated, so this doesn't work: # # from pytest.mark import parametrize # import pytest parametrize = pytest.mark.parametrize from sloc_report import metadata from sloc_report.main import main class TestMain(object): @parametri...
33.358974
76
0.64412
6d0c94b3675e72c080039399c68f3d9925d92af2
2,316
py
Python
load_data.py
ckyeungac/DeepIRT
7749767d30adb4ef12889ea47e0bcfefedafb046
[ "MIT" ]
38
2019-10-09T12:34:37.000Z
2022-03-31T02:39:56.000Z
load_data.py
ckyeungac/DeepIRT
7749767d30adb4ef12889ea47e0bcfefedafb046
[ "MIT" ]
4
2020-01-28T23:01:19.000Z
2022-02-10T00:32:22.000Z
load_data.py
ckyeungac/DeepIRT
7749767d30adb4ef12889ea47e0bcfefedafb046
[ "MIT" ]
15
2019-12-16T15:28:51.000Z
2022-03-31T02:40:01.000Z
import numpy as np from utils import getLogger class DataLoader(): def __init__(self, n_questions, seq_len, separate_char): self.separate_char = separate_char self.n_questions = n_questions self.seq_len = seq_len def load_data(self, path): q_data = [] qa_data = [] ...
39.931034
76
0.49266
b1067eb8e20a059de2883214f2e61fd6115496cd
1,284
py
Python
checkers_engine/competition.py
Nikita2305/checkersAI
aee26e3573c60d9ce19bb7af8c8af86f19593f0c
[ "MIT" ]
null
null
null
checkers_engine/competition.py
Nikita2305/checkersAI
aee26e3573c60d9ce19bb7af8c8af86f19593f0c
[ "MIT" ]
null
null
null
checkers_engine/competition.py
Nikita2305/checkersAI
aee26e3573c60d9ce19bb7af8c8af86f19593f0c
[ "MIT" ]
null
null
null
class Competition: def __init__(self, player1, player2): player1.set_player_id(1) player2.set_player_id(2) self.players = [None, player1, player2] self.player_index = 1 self.moves = [] def draw_check(self): n = len(self.moves) max_eq = 3 for r in ...
31.317073
70
0.543614
e5223b13b01b238edc15d0e1334f32cf5aefacd8
2,926
py
Python
homeassistant/components/twitch/sensor.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
homeassistant/components/twitch/sensor.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
homeassistant/components/twitch/sensor.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
3
2016-08-26T12:32:49.000Z
2020-02-26T21:01:35.000Z
"""Support for the Twitch stream status.""" import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) ATTR_GAME = 'game' ATTR_TITLE = '...
27.603774
78
0.644908
ff52f9893f037aaa3d57fe0ef957b09fc3532f6d
828
py
Python
var/spack/repos/builtin/packages/r-rlang/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-08-20T06:55:11.000Z
2018-08-20T06:55:11.000Z
var/spack/repos/builtin/packages/r-rlang/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-04-29T22:36:27.000Z
2019-04-30T12:51:38.000Z
var/spack/repos/builtin/packages/r-rlang/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-12T19:27:17.000Z
2020-03-12T19:27:17.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RRlang(RPackage): """A toolbox for working with base types, core R features like the ...
39.428571
79
0.725845
0609c3b21f5e6444494c60d18bb8321d8de0bdfc
8,514
py
Python
tensorflow_federated/python/core/impl/wrappers/computation_wrapper_instances.py
ESWZY/federated
4e5738666cfe5498ab1538e9dd6dc886917acf46
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/wrappers/computation_wrapper_instances.py
ESWZY/federated
4e5738666cfe5498ab1538e9dd6dc886917acf46
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/wrappers/computation_wrapper_instances.py
ESWZY/federated
4e5738666cfe5498ab1538e9dd6dc886917acf46
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, The TensorFlow Federated 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 o...
41.940887
95
0.738431
b9badfac338c558f75221a1234ac33caa554e6d2
1,508
py
Python
learning/algorithms/nb/naive_bayse.py
dmytroKarataiev/MachineLearningIntro
a115a04b7313ef1550fa77f2233b659cae414cf4
[ "MIT" ]
1
2016-09-27T10:17:29.000Z
2016-09-27T10:17:29.000Z
learning/algorithms/nb/naive_bayse.py
dmytroKarataiev/MachineLearningIntro
a115a04b7313ef1550fa77f2233b659cae414cf4
[ "MIT" ]
null
null
null
learning/algorithms/nb/naive_bayse.py
dmytroKarataiev/MachineLearningIntro
a115a04b7313ef1550fa77f2233b659cae414cf4
[ "MIT" ]
1
2018-09-08T14:41:27.000Z
2018-09-08T14:41:27.000Z
#!/usr/bin/python """ Complete the code in ClassifyNB.py with the sklearn Naive Bayes classifier to classify the terrain data. The objective of this exercise is to recreate the decision boundary found in the lesson video, and make a plot that visually shows the decision boundary """ from class_vis im...
38.666667
99
0.764589
59d948ba2f4eb3ee8f7cdcf6e1217ed7fd4f8278
2,163
py
Python
demo/configs/config_template_rna_atac_ka_knn.py
mukamel-lab/SingleCellFusion_EnhancerPaper
acbfa5184667ca57c333c04c310b0712a0e8e15e
[ "MIT" ]
null
null
null
demo/configs/config_template_rna_atac_ka_knn.py
mukamel-lab/SingleCellFusion_EnhancerPaper
acbfa5184667ca57c333c04c310b0712a0e8e15e
[ "MIT" ]
null
null
null
demo/configs/config_template_rna_atac_ka_knn.py
mukamel-lab/SingleCellFusion_EnhancerPaper
acbfa5184667ca57c333c04c310b0712a0e8e15e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """An example configuration file """ import sys import os # Assuming the cell order in the metadata tables are the same as those in the gene level matrices # The output knn matrices follow such order as well dir_path = os.path.dirname(os.path.realpath(__file__)) ka_smooth = TOBEFILLED knn = T...
27.730769
97
0.691632
ca9b9cfbf03f699456378c577a676b9b1d44db2b
2,567
py
Python
tests/test_run.py
blacktanktop/vivid
e85837bcd86575f8a275517250dd026aac3e451f
[ "BSD-2-Clause-FreeBSD" ]
39
2020-05-13T18:13:25.000Z
2022-03-02T10:46:53.000Z
tests/test_run.py
blacktanktop/vivid
e85837bcd86575f8a275517250dd026aac3e451f
[ "BSD-2-Clause-FreeBSD" ]
29
2020-05-13T18:04:09.000Z
2022-02-27T04:43:18.000Z
tests/test_run.py
blacktanktop/vivid
e85837bcd86575f8a275517250dd026aac3e451f
[ "BSD-2-Clause-FreeBSD" ]
3
2020-05-13T19:17:01.000Z
2020-10-28T21:29:42.000Z
import os import shutil import pandas as pd import pytest from vivid.core import BaseBlock from vivid.runner import Runner from .conftest import CounterBlock def test_block_transform_count(regression_set): a = CounterBlock(name='a') b = CounterBlock(name='b') c = CounterBlock(name='c') d = CounterB...
28.208791
78
0.634982
4d06a0043605d2bc0d2c76d247fd92667dbd2811
7,410
py
Python
objsamples/sample_folder.py
jmartinezbernet/FuelSDK-Python
bc0f3f61e20d84e8d0600e8adb13e121d2cea047
[ "MIT" ]
91
2015-12-04T23:33:50.000Z
2022-03-18T15:53:02.000Z
objsamples/sample_folder.py
jmartinezbernet/FuelSDK-Python
bc0f3f61e20d84e8d0600e8adb13e121d2cea047
[ "MIT" ]
70
2015-11-30T21:33:32.000Z
2022-03-17T09:10:14.000Z
objsamples/sample_folder.py
jmartinezbernet/FuelSDK-Python
bc0f3f61e20d84e8d0600e8adb13e121d2cea047
[ "MIT" ]
155
2015-10-23T00:25:21.000Z
2022-03-30T09:42:36.000Z
import ET_Client try: debug = False stubObj = ET_Client.ET_Client(False, debug) # Retrieve All Folder with GetMoreResults print('>>> Retrieve All Folder with GetMoreResults') getFolder = ET_Client.ET_Folder() getFolder.auth_stub = stubObj getFolder.props = ["ID", "Client.ID", "ParentFol...
57
477
0.68664
1f885dd99be1eac6cf9d37c48fe924c57a79662e
399
py
Python
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/core/helpers.py
jacebrowning/template-django
bc284d7f7df0c3ff897fc5312cbcaf8396cdce5d
[ "Unlicense" ]
8
2018-03-23T10:15:35.000Z
2021-03-23T18:41:04.000Z
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/core/helpers.py
jacebrowning/template-django
bc284d7f7df0c3ff897fc5312cbcaf8396cdce5d
[ "Unlicense" ]
28
2017-02-16T03:51:45.000Z
2022-02-18T16:09:35.000Z
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/core/helpers.py
jacebrowning/template-django
bc284d7f7df0c3ff897fc5312cbcaf8396cdce5d
[ "Unlicense" ]
1
2021-03-23T18:41:05.000Z
2021-03-23T18:41:05.000Z
from django.conf import settings def build_url(path: str) -> str: assert settings.BASE_URL assert path.startswith('/') return settings.BASE_URL + path def allow_debug(request) -> bool: if not settings.ALLOW_DEBUG: return False if request.GET.get("debug") == "false": return False ...
22.166667
43
0.659148
dbf3192d13bce59bda94086f38aed5ea6907cfa3
7,835
py
Python
pattern/web/pdf/latin_enc.py
PenTesting/pattern
820cccf33c6ac4a4f1564a273137171cfa6ab7cb
[ "BSD-3-Clause" ]
1,103
2018-04-20T14:08:11.000Z
2022-03-29T06:22:43.000Z
pattern/web/pdf/latin_enc.py
PenTesting/pattern
820cccf33c6ac4a4f1564a273137171cfa6ab7cb
[ "BSD-3-Clause" ]
29
2019-04-03T14:52:38.000Z
2022-03-24T12:33:05.000Z
pattern/web/pdf/latin_enc.py
PenTesting/pattern
820cccf33c6ac4a4f1564a273137171cfa6ab7cb
[ "BSD-3-Clause" ]
262
2017-09-16T22:15:50.000Z
2022-03-31T00:38:42.000Z
#!/usr/bin/env python2 """ Standard encoding tables used in PDF. This table is extracted from PDF Reference Manual 1.6, pp.925 "D.1 Latin Character Set and Encodings" """ ENCODING = [ # (name, std, mac, win, pdf) ('A', 65, 65, 65, 65), ('AE', 225, 174, 198, 198), ('Aacute', None, 231, 193, 193), ('Acirc...
32.376033
61
0.523165
b9b6c62c212642794e62bbfe399359333f13c1d4
420
py
Python
script popolamento DB/env/lib/python3.7/site-packages/setuptools/_vendor/packaging/utils.py
2dadsgn/Smart-vase-webapp-flask-
0714d960ec21c77be069dd07b1bc8407f33e0b72
[ "Apache-2.0" ]
1
2020-10-21T04:51:46.000Z
2020-10-21T04:51:46.000Z
script popolamento DB/env/lib/python3.7/site-packages/setuptools/_vendor/packaging/utils.py
2dadsgn/Smart-vase-webapp-flask-
0714d960ec21c77be069dd07b1bc8407f33e0b72
[ "Apache-2.0" ]
2
2020-10-23T06:51:04.000Z
2020-11-12T07:03:37.000Z
script popolamento DB/env/lib/python3.7/site-packages/setuptools/_vendor/packaging/utils.py
2dadsgn/Smart-vase-webapp-flask-
0714d960ec21c77be069dd07b1bc8407f33e0b72
[ "Apache-2.0" ]
1
2020-10-24T05:21:20.000Z
2020-10-24T05:21:20.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import re _canonicalize_regex = re.compile(r"[-_.]+") def canonicalize_...
30
79
0.75
090df65b7b555f4dd970592b82c45e38057681af
8,013
py
Python
tools/random_graph.py
rujiewu/pose_lcn
70f2f76a1c3c94510483c30ee33d8917386d002b
[ "MIT" ]
25
2020-03-31T05:36:50.000Z
2022-03-03T03:20:16.000Z
tools/random_graph.py
rujiewu/pose_lcn
70f2f76a1c3c94510483c30ee33d8917386d002b
[ "MIT" ]
3
2020-05-08T03:17:14.000Z
2021-11-10T07:48:36.000Z
tools/random_graph.py
rujiewu/pose_lcn
70f2f76a1c3c94510483c30ee33d8917386d002b
[ "MIT" ]
4
2020-07-07T09:41:17.000Z
2021-01-30T09:09:14.000Z
import random import argparse from pprint import pprint class Graph(object): def __init__(self, nodes, edges=None, loops=False, multigraph=False, digraph=False): self.nodes = nodes if edges: self.edges = edges self.edge_set = self._compute_edge_set() ...
35.613333
111
0.623861
503ce8f2a996a180d9ec40b534afaf375b6e30c3
792
py
Python
backend/api/views/annotation.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
backend/api/views/annotation.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
backend/api/views/annotation.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404 from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from members.permissions import IsAnnotationApprover, IsProjectAdmin from ..models import Example from ..serializers import Approv...
37.714286
84
0.780303
78164a00dc6c8569957941a8c8b534a193f02f71
11,534
py
Python
tensorflow_probability/python/math/scan_associative.py
mrksr/probability
242731a9b2b42d4eb676539658a8d5e8267c0720
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/scan_associative.py
mrksr/probability
242731a9b2b42d4eb676539658a8d5e8267c0720
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/scan_associative.py
mrksr/probability
242731a9b2b42d4eb676539658a8d5e8267c0720
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Probability 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 o...
42.877323
81
0.599792
1b5575fd137c632d4cc1e21106e58dc620816422
3,494
py
Python
tests/test_ymlmd.py
cisagov/log4j-md-yml
ed00ae7765f6c2af6c0b3b609651ef29aef8f09c
[ "CC0-1.0" ]
2
2021-12-31T16:29:53.000Z
2022-01-07T12:21:52.000Z
tests/test_ymlmd.py
cisagov/md-table-to-yml
ed00ae7765f6c2af6c0b3b609651ef29aef8f09c
[ "CC0-1.0" ]
18
2021-12-28T17:10:16.000Z
2022-03-21T20:17:12.000Z
tests/test_ymlmd.py
cisagov/md-table-to-yml
ed00ae7765f6c2af6c0b3b609651ef29aef8f09c
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env pytest -vs """Tests for ymlmd.""" # Standard Python Libraries import os import sys from unittest.mock import patch # Third-Party Libraries import pytest # cisagov Libraries import ymlmd import ymlmd.yml2md log_levels = ( "debug", "info", "warning", "error", "critical", ) # define...
33.92233
89
0.621351
86e17153cbaffb37aa948a16ead0b7d9d6a80a53
1,338
py
Python
corehq/apps/hqcase/management/commands/migrate_case_export_tags.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/hqcase/management/commands/migrate_case_export_tags.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/hqcase/management/commands/migrate_case_export_tags.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import LabelCommand, CommandError from casexml.apps.case.models import CommCareCase from optparse import make_option from couchexport.models import SavedExportSchema from dimagi.utils.couch.database import get_db class Command(LabelCommand): help = "." args = "" label = ""...
41.8125
90
0.593423
85b4be756730e6b009199e8eb678ae0646e7263e
113
py
Python
src_3d/__init__.py
xzluo97/MvMM-RegNet
c08d5df14b4a9c4a98c66973ff4950aba7f416e4
[ "MIT" ]
19
2020-07-14T02:23:58.000Z
2022-03-15T12:22:49.000Z
src_3d/__init__.py
xzluo97/MvMM-RegNet
c08d5df14b4a9c4a98c66973ff4950aba7f416e4
[ "MIT" ]
4
2020-09-25T22:42:40.000Z
2021-08-25T15:03:29.000Z
src_3d/__init__.py
xzluo97/MvMM-RegNet
c08d5df14b4a9c4a98c66973ff4950aba7f416e4
[ "MIT" ]
7
2020-08-29T15:46:13.000Z
2021-07-16T01:51:28.000Z
__author__ = 'Xinzhe Luo, Fudan University' __version__ = '0.1' __credits__ = 'Xiahai Zhuang, Fudan University'
37.666667
47
0.752212
eb1a6c102fd32f083388381afbd5fd399563199e
391
py
Python
petl/config.py
OptionMetrics/petl
ee0a196f40c07218249be0d279b72e57d177a7fd
[ "MIT" ]
null
null
null
petl/config.py
OptionMetrics/petl
ee0a196f40c07218249be0d279b72e57d177a7fd
[ "MIT" ]
null
null
null
petl/config.py
OptionMetrics/petl
ee0a196f40c07218249be0d279b72e57d177a7fd
[ "MIT" ]
null
null
null
from __future__ import division, print_function, absolute_import from petl.compat import text_type look_style = 'grid' # alternatives: 'simple', 'minimal' look_limit = 5 look_index_header = False look_vrepr = repr look_width = None see_limit = 5 see_index_header = False see_vrepr = repr display_limit = 5 display_i...
20.578947
64
0.797954
72219e324749d8d230c665528f452145d6dba287
678
py
Python
maddrive_adas/sign_det/base.py
lsd-maddrive/adas_system
0352d59a500aebbd68fbf45f416fb98d1b850e13
[ "MIT" ]
null
null
null
maddrive_adas/sign_det/base.py
lsd-maddrive/adas_system
0352d59a500aebbd68fbf45f416fb98d1b850e13
[ "MIT" ]
14
2021-10-02T10:10:45.000Z
2022-03-26T08:32:48.000Z
maddrive_adas/sign_det/base.py
lsd-maddrive/adas_system
0352d59a500aebbd68fbf45f416fb98d1b850e13
[ "MIT" ]
null
null
null
import numpy as np from typing import List class DetectedSign: """ Class to control detected sign operations. We define one point of signs retectino contract for communication """ def __init__(self, bbox: List[float]) -> None: self._bbox = np.array(bbox, dtype=np.float32) def as_dic...
23.37931
69
0.647493
649eef8e1623d5f6b11c11e3ae0b36b840745758
638
py
Python
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/applications/Resource.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
1
2019-04-24T13:32:23.000Z
2019-04-24T13:32:23.000Z
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/applications/Resource.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/applications/Resource.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2003 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~...
20.580645
83
0.380878
58a5e346a811e18c758bc542d14f40e0a59027bb
56,837
py
Python
astropy/coordinates/tests/test_representation.py
fardal/astropy
642a7768b4ec2e3ab9fd9acdf53632a3c7eca372
[ "BSD-3-Clause" ]
8
2019-04-27T01:19:45.000Z
2020-09-21T03:31:01.000Z
astropy/coordinates/tests/test_representation.py
fardal/astropy
642a7768b4ec2e3ab9fd9acdf53632a3c7eca372
[ "BSD-3-Clause" ]
null
null
null
astropy/coordinates/tests/test_representation.py
fardal/astropy
642a7768b4ec2e3ab9fd9acdf53632a3c7eca372
[ "BSD-3-Clause" ]
5
2019-04-27T01:19:47.000Z
2020-09-20T15:15:19.000Z
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from copy import deepcopy from collections import OrderedDict import pytest import numpy as np from numpy.testing import assert_allclose from astropy import units as u from astropy.tests.helper import (assert_quantity_allclose as...
37.221349
103
0.558685
9bf7f3ef7516df730b96af06883e1cbd6e0a51c7
9,356
py
Python
tests/sentry/search/django/tests.py
Munyola/sentry
ab8923b2801d7d72d6903e0d9180584817bb1b9a
[ "BSD-3-Clause" ]
1
2017-10-18T19:40:14.000Z
2017-10-18T19:40:14.000Z
tests/sentry/search/django/tests.py
Munyola/sentry
ab8923b2801d7d72d6903e0d9180584817bb1b9a
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/search/django/tests.py
Munyola/sentry
ab8923b2801d7d72d6903e0d9180584817bb1b9a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from datetime import datetime, timedelta from sentry import tagstore from sentry.models import ( GroupAssignee, GroupBookmark, GroupStatus, GroupSubscription ) from sentry.search.base import ANY from sentry.search.django.backend import DjangoSearchBa...
32.262069
97
0.564771
dd42b7a9c898a075f7f75f3652de2f58685137af
4,642
py
Python
game.py
ricardombrodriguez/Tetris-AI-Bot
ab1ccc37946b815ab87e4bb553a44938941ad511
[ "MIT" ]
null
null
null
game.py
ricardombrodriguez/Tetris-AI-Bot
ab1ccc37946b815ab87e4bb553a44938941ad511
[ "MIT" ]
null
null
null
game.py
ricardombrodriguez/Tetris-AI-Bot
ab1ccc37946b815ab87e4bb553a44938941ad511
[ "MIT" ]
2
2022-02-19T21:16:38.000Z
2022-02-20T01:28:04.000Z
from asyncio.queues import Queue import logging import random import asyncio from common import Dimensions from copy import deepcopy from shape import SHAPES from collections import Counter logger = logging.getLogger("Game") logger.setLevel(logging.DEBUG) GAME_SPEED = 10 SPEED_STEP = 10 # points class Game: def...
33.883212
142
0.562688
50fbe764637461f46f93df552766f99b8770a87e
18,329
py
Python
test/functional/wallet_multiwallet.py
rebitcoin/rebitcoin
87a39edad2362c3f196a98d4703f6f23cde9c13e
[ "MIT" ]
1
2019-12-05T08:16:41.000Z
2019-12-05T08:16:41.000Z
test/functional/wallet_multiwallet.py
rebitcoin/rebitcoin
87a39edad2362c3f196a98d4703f6f23cde9c13e
[ "MIT" ]
null
null
null
test/functional/wallet_multiwallet.py
rebitcoin/rebitcoin
87a39edad2362c3f196a98d4703f6f23cde9c13e
[ "MIT" ]
1
2020-11-04T06:59:41.000Z
2020-11-04T06:59:41.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The ReBitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multiwallet. Verify that a rebitcoind node can load multiple wallet files """ import os import ...
52.368571
195
0.672268
c953274553e9d5c453365fba6904e6134aba5e13
4,812
py
Python
extensions.py
brenden17/Realtime-Poll-with-Flask-on-Redis
f259ec65797b643ef59ff509f4d701ba4cbb9e3a
[ "MIT" ]
null
null
null
extensions.py
brenden17/Realtime-Poll-with-Flask-on-Redis
f259ec65797b643ef59ff509f4d701ba4cbb9e3a
[ "MIT" ]
null
null
null
extensions.py
brenden17/Realtime-Poll-with-Flask-on-Redis
f259ec65797b643ef59ff509f4d701ba4cbb9e3a
[ "MIT" ]
null
null
null
import json from random import getrandbits from datetime import datetime, timedelta from redis import Redis from flask import session from flask import request from flask import Blueprint from flask import render_template from flask import Markup from flask.views import View redis = Redis() class PollSession(object...
28.305882
98
0.58084
e17f7152a308383234182044311a06b382bf0127
1,483
py
Python
api/endpoints/user.py
saffist3r/Achba7-Back
2edd18375d792179aa3ce0940e633f5d08f8a9c0
[ "MIT" ]
1
2021-02-07T23:32:07.000Z
2021-02-07T23:32:07.000Z
api/endpoints/user.py
saffist3r/Achba7-Back
2edd18375d792179aa3ce0940e633f5d08f8a9c0
[ "MIT" ]
null
null
null
api/endpoints/user.py
saffist3r/Achba7-Back
2edd18375d792179aa3ce0940e633f5d08f8a9c0
[ "MIT" ]
null
null
null
from typing import List from fastapi import APIRouter, Depends, HTTPException from starlette.requests import Request from starlette.responses import PlainTextResponse, JSONResponse from sqlalchemy.orm import Session from db import crud, models, schemas from db.database import SessionLocal, engine models.Base.metadat...
29.66
109
0.712744
33ca0a4261c6d0f4647ff383255f02c6767cd5a2
1,829
py
Python
ask-smapi-model/ask_smapi_model/v1/isp/editable_state.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
2
2021-10-30T06:52:48.000Z
2021-11-16T12:34:16.000Z
ask-smapi-model/ask_smapi_model/v1/isp/editable_state.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/isp/editable_state.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
27.298507
96
0.650082
d842ff7b305887fed5ef118d90076798b55b7090
796
py
Python
migrations/versions/47c2999a1506_update_user_model.py
kiza054/woodhall-scout-blog-prototype
bc7dc0b766263bb7a1a4d342d27c57d7989ff152
[ "MIT" ]
null
null
null
migrations/versions/47c2999a1506_update_user_model.py
kiza054/woodhall-scout-blog-prototype
bc7dc0b766263bb7a1a4d342d27c57d7989ff152
[ "MIT" ]
null
null
null
migrations/versions/47c2999a1506_update_user_model.py
kiza054/woodhall-scout-blog-prototype
bc7dc0b766263bb7a1a4d342d27c57d7989ff152
[ "MIT" ]
null
null
null
"""update user model Revision ID: 47c2999a1506 Revises: 6a93be8d57c4 Create Date: 2019-11-24 17:48:00.972670 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '47c2999a1506' down_revision = '6a93be8d57c4' branch_labels = None depends_on = None def upgrade(): ...
25.677419
91
0.693467
643fb328cce7daac23bc3063087987c96d97bf96
724
py
Python
raven/contrib/django/middleware/wsgi.py
opengovt/openroads-geostore
336bdc352252ae34a66746e632ae0b8df66c04c0
[ "MIT" ]
1
2019-10-11T14:43:53.000Z
2019-10-11T14:43:53.000Z
raven/contrib/django/middleware/wsgi.py
opengovt/openroads-geostore
336bdc352252ae34a66746e632ae0b8df66c04c0
[ "MIT" ]
null
null
null
raven/contrib/django/middleware/wsgi.py
opengovt/openroads-geostore
336bdc352252ae34a66746e632ae0b8df66c04c0
[ "MIT" ]
null
null
null
""" raven.contrib.django.middleware.wsgi ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from raven.middleware import Sentry class Sentry(Sentry): """ Iden...
25.857143
75
0.676796
ccaac54e97357e4384ceba4e5effa30879132670
767
py
Python
Visualization/hillshade.py
cclauss/qgis-earthengine-examples
02a417f524875f5e6033b65cca8417ff2cfb03e6
[ "MIT" ]
null
null
null
Visualization/hillshade.py
cclauss/qgis-earthengine-examples
02a417f524875f5e6033b65cca8417ff2cfb03e6
[ "MIT" ]
null
null
null
Visualization/hillshade.py
cclauss/qgis-earthengine-examples
02a417f524875f5e6033b65cca8417ff2cfb03e6
[ "MIT" ]
null
null
null
import math import ee from ee_plugin import Map def Radians(img): return img.toFloat().multiply(math.pi).divide(180) def Hillshade(az, ze, slope, aspect): """Compute hillshade for the given illumination az, el.""" azimuth = Radians(ee.Image(az)) zenith = Radians(ee.Image(ze)) # Hillshade = cos(Azimuth - A...
28.407407
66
0.666232
d7508907df985f87eb678b2150f55889e5a76a24
4,264
py
Python
scripts/src/link.py
9999years/dotfiles
763c2ca5f8aeb3b64eb28262e6708135e6cd2005
[ "MIT" ]
1
2020-09-09T15:06:43.000Z
2020-09-09T15:06:43.000Z
scripts/src/link.py
9999years/dotfiles
763c2ca5f8aeb3b64eb28262e6708135e6cd2005
[ "MIT" ]
2
2020-09-09T14:16:21.000Z
2020-09-29T17:31:15.000Z
scripts/src/link.py
9999years/dotfiles
763c2ca5f8aeb3b64eb28262e6708135e6cd2005
[ "MIT" ]
2
2020-09-04T14:55:57.000Z
2020-10-30T19:08:58.000Z
"""Linking the dotfiles themselves. """ import enum import filecmp import os from dataclasses import dataclass from enum import Enum from typing import List from . import actions from . import color as co from . import log, prompt from .actions import ActionResult, mklink from .schema import ResolvedDotfile, Status f...
30.028169
91
0.601782
768925fa7ccda3ea42f15dd665dcf39fdf6bb12c
5,646
py
Python
train_caption.py
keio-smilab22/RelationalFutureCaptioningModel
447980d1c1d6fd16d54b05feedebdef974a66c08
[ "Apache-2.0" ]
2
2022-03-20T09:50:40.000Z
2022-03-27T18:27:54.000Z
train_caption.py
keio-smilab22/RelationalFutureCaptioningModel
447980d1c1d6fd16d54b05feedebdef974a66c08
[ "Apache-2.0" ]
null
null
null
train_caption.py
keio-smilab22/RelationalFutureCaptioningModel
447980d1c1d6fd16d54b05feedebdef974a66c08
[ "Apache-2.0" ]
null
null
null
""" Train captioning with MART. Originally published by https://github.com/jayleicn/recurrent-transformer under MIT license Reworked by https://github.com/gingsi/coot-videotext under Apache 2 license """ import numpy as np from coot.configs_retrieval import ExperimentTypesConst from mart import arguments_m...
44.809524
122
0.666667
79ca253ecc8cb15fe7e971090b2393d0a99ef47c
1,257
py
Python
TimeSeriesTools/Regime_detection/pattern_matching_detection.py
Psicowired87/TimeSeriesTools
de42dbcc5371ee576df6c9521b1c79a47c147dd1
[ "MIT" ]
1
2015-05-01T14:14:02.000Z
2015-05-01T14:14:02.000Z
TimeSeriesTools/Regime_detection/pattern_matching_detection.py
Psicowired87/TimeSeriesTools
de42dbcc5371ee576df6c9521b1c79a47c147dd1
[ "MIT" ]
null
null
null
TimeSeriesTools/Regime_detection/pattern_matching_detection.py
Psicowired87/TimeSeriesTools
de42dbcc5371ee576df6c9521b1c79a47c147dd1
[ "MIT" ]
1
2015-05-01T14:15:03.000Z
2015-05-01T14:15:03.000Z
""" Pattern matching detection. """ import numpy as np import pandas as pd def pattern_matching_detection(activation, patterns, method, **kwargs): """General function to perform pattern matching based detection. Parameters ---------- activation: array_like description of the activity of the...
24.173077
77
0.682578
7da1fc50cc66eebf39e17f406c23e0d25c18afae
291
py
Python
docs/examples/models_signature_custom_init.py
jasujm/pydantic
cc1cb4826c74ac5b651ef2d80c3478428a9950ca
[ "MIT" ]
6
2021-08-11T11:37:59.000Z
2021-11-12T01:33:11.000Z
docs/examples/models_signature_custom_init.py
jasujm/pydantic
cc1cb4826c74ac5b651ef2d80c3478428a9950ca
[ "MIT" ]
197
2020-08-31T06:20:39.000Z
2022-03-29T10:04:22.000Z
docs/examples/models_signature_custom_init.py
jasujm/pydantic
cc1cb4826c74ac5b651ef2d80c3478428a9950ca
[ "MIT" ]
2
2021-11-23T16:28:21.000Z
2021-11-23T16:28:33.000Z
import inspect from pydantic import BaseModel class MyModel(BaseModel): id: int info: str = 'Foo' def __init__(self, id: int = 1, *, bar: str, **data) -> None: """My custom init!""" super().__init__(id=id, bar=bar, **data) print(inspect.signature(MyModel))
18.1875
65
0.611684
007fc6df764d4a621202600a8b4bcc52e7ac38be
445
py
Python
SimGeneral/MixingModule/test/read_Input_PCFcfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SimGeneral/MixingModule/test/read_Input_PCFcfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SimGeneral/MixingModule/test/read_Input_PCFcfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("PROInputA") process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('file:/tmp/ebecheva/PCFwriter2.root') ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.Analyzer = cms.EDAnalyzer("InputAn...
22.25
74
0.723596
bc89576ff01cbc78729d572ef4081fe88e17e673
5,529
py
Python
azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2021-06-02T00:24:51.000Z
2021-06-02T00:24:51.000Z
azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2020-07-25T20:36:02.000Z
2020-07-25T20:36:02.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 ...
51.672897
326
0.70302
7a6f00ad1ed295042614f8ffaa9f2eb61bc6b8b5
214
py
Python
5-smallest +ve.py
svamja/learning_assignments
fa1b2279250a6a7f9dbfee86fdacfe8609e6ad7d
[ "MIT" ]
null
null
null
5-smallest +ve.py
svamja/learning_assignments
fa1b2279250a6a7f9dbfee86fdacfe8609e6ad7d
[ "MIT" ]
null
null
null
5-smallest +ve.py
svamja/learning_assignments
fa1b2279250a6a7f9dbfee86fdacfe8609e6ad7d
[ "MIT" ]
null
null
null
def is_divisible(n): for divisor in range(2, 21): if n % divisor != 0: return False return True number = 1 while not is_divisible(number): number += 1 print(number)
17.833333
33
0.556075
2d112de2e42886eae4c49ecd1fd828431a61718a
38,726
py
Python
.venv/Lib/site-packages/pyparsing/helpers.py
mehfoos/Nuclear-Fusion
9540997fcfc0768b9e2ce16e0a091ea38997d32a
[ "BSD-3-Clause" ]
null
null
null
.venv/Lib/site-packages/pyparsing/helpers.py
mehfoos/Nuclear-Fusion
9540997fcfc0768b9e2ce16e0a091ea38997d32a
[ "BSD-3-Clause" ]
null
null
null
.venv/Lib/site-packages/pyparsing/helpers.py
mehfoos/Nuclear-Fusion
9540997fcfc0768b9e2ce16e0a091ea38997d32a
[ "BSD-3-Clause" ]
null
null
null
# helpers.py import html.entities from . import __diag__ from .core import * from .util import _bslash, _flatten, _escapeRegexRangeChars # # global helpers # def delimited_list( expr: ParserElement, delim: Union[str, ParserElement] = ",", combine: bool = False, *, allow_trailing_delim: bool = Fal...
36.024186
120
0.598668
ce6ebc630ce8df77202baa85d46a2c2fb1b8c57f
3,392
py
Python
tests/edit_data/data_management/test_row_create.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
33
2019-05-27T13:04:35.000Z
2022-03-17T13:33:05.000Z
tests/edit_data/data_management/test_row_create.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
31
2019-06-10T01:55:47.000Z
2022-03-09T07:27:49.000Z
tests/edit_data/data_management/test_row_create.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
25
2019-05-13T18:39:24.000Z
2021-11-16T03:07:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
35.333333
117
0.67158
baa196b0cef6d4241e1847d0cced1b7e59467133
3,754
py
Python
clip/ViT-B-32-cpu/code/__torch__/torch/nn/modules/activation/___torch_mangle_9450.py
shawwn/CLIP
ba33b4eb956e6f507b4b39468b3b7336ac2260a1
[ "MIT" ]
6
2021-01-09T14:34:17.000Z
2021-06-13T06:46:43.000Z
clip/ViT-B-32-cpu/code/__torch__/torch/nn/modules/activation/___torch_mangle_9450.py
shawwn/CLIP
ba33b4eb956e6f507b4b39468b3b7336ac2260a1
[ "MIT" ]
null
null
null
clip/ViT-B-32-cpu/code/__torch__/torch/nn/modules/activation/___torch_mangle_9450.py
shawwn/CLIP
ba33b4eb956e6f507b4b39468b3b7336ac2260a1
[ "MIT" ]
2
2021-01-09T10:30:04.000Z
2021-01-09T18:43:29.000Z
class MultiheadAttention(Module): __parameters__ = ["in_proj_weight", "in_proj_bias", ] __buffers__ = [] in_proj_weight : Tensor in_proj_bias : Tensor training : bool out_proj : __torch__.torch.nn.modules.linear.___torch_mangle_9449._LinearWithBias def forward(self: __torch__.torch.nn.modules.activation._...
44.690476
99
0.677944
4fb6ee8e0ad7c316cae9dae3c0f7669096d93038
2,339
py
Python
Basenji/dataloader.py
jeffmylife/models
30f398518ea1709245a9de445fcff8071528e400
[ "MIT" ]
null
null
null
Basenji/dataloader.py
jeffmylife/models
30f398518ea1709245a9de445fcff8071528e400
[ "MIT" ]
null
null
null
Basenji/dataloader.py
jeffmylife/models
30f398518ea1709245a9de445fcff8071528e400
[ "MIT" ]
null
null
null
"""Basenji dataloader """ # python2, 3 compatibility from __future__ import absolute_import, division, print_function import numpy as np import pandas as pd import pybedtools from pybedtools import BedTool from genomelake.extractors import FastaExtractor from kipoi.data import Dataset from kipoi.metadata import Genomi...
30.376623
97
0.624198
e32735f98015c97efbbfebfeedf39cdaa4bfe867
5,827
py
Python
app/auth.py
HyperBCS/RedditNotify
11a67b41ef46d002a0a2de03b303a4d9118470f9
[ "MIT" ]
null
null
null
app/auth.py
HyperBCS/RedditNotify
11a67b41ef46d002a0a2de03b303a4d9118470f9
[ "MIT" ]
null
null
null
app/auth.py
HyperBCS/RedditNotify
11a67b41ef46d002a0a2de03b303a4d9118470f9
[ "MIT" ]
1
2020-10-06T10:33:30.000Z
2020-10-06T10:33:30.000Z
import app.models as models import redis import pickle import requests import flask_login import config from flask import Blueprint, render_template, url_for, redirect, request, flash from app import LM as login_manager from flask_login import UserMixin from datetime import timedelta from urllib.parse import ...
37.837662
196
0.666209
1e7da334cedc33f6961ffdbe2ba6d4d45ba57612
122,978
py
Python
pypeit/core/trace_slits.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/trace_slits.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/trace_slits.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
""" Module for core algorithms related to tracing slits/orders These should primarily be called by the TraceSlits class """ import inspect import copy from collections import Counter import numpy as np from scipy import ndimage from scipy.special import erf from scipy import signal import matplotlib.pyplot as plt fr...
37.75806
151
0.561613
a1486ae7953d56ee1a39d35fef2de50e71de273a
4,222
py
Python
library/inky/eeprom.py
mfraser/inky
431b5a1fed119904cdb0fb472382949b2ab2725f
[ "MIT" ]
null
null
null
library/inky/eeprom.py
mfraser/inky
431b5a1fed119904cdb0fb472382949b2ab2725f
[ "MIT" ]
null
null
null
library/inky/eeprom.py
mfraser/inky
431b5a1fed119904cdb0fb472382949b2ab2725f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Inky display-type EEPROM tools.""" import datetime import struct EEP_ADRESS = 0x50 EEP_WP = 12 DISPLAY_VARIANT = [ None, 'Red pHAT (High-Temp)', 'Yellow wHAT', 'Black wHAT', 'Black pHAT', 'Yellow pHAT', 'Red wHAT', 'Red wHAT (High-Te...
29.117241
115
0.600663
acc1ff7a925a3b0195196456b40980d6fbc47749
8,469
py
Python
ionoscloud/models/kubernetes_node_metadata.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
ionoscloud/models/kubernetes_node_metadata.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
ionoscloud/models/kubernetes_node_metadata.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ CLOUD API IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the \"Data Center Designer\" (DCD) browser-based tool. Both methods employ consistent concepts and features, deliver similar power and ...
33.741036
438
0.638092
0fd60c4a351dda166f14e7eaa72f76832dbbf683
7,358
py
Python
samples/client/petstore/python/petstore_api/models/enum_test.py
netfarma/openapi-generator
8ac80203ec557a7198e48adc66e9c1961c4cd6ce
[ "Apache-2.0" ]
5
2019-12-03T13:50:09.000Z
2021-11-14T12:59:48.000Z
samples/client/petstore/python/petstore_api/models/enum_test.py
netfarma/openapi-generator
8ac80203ec557a7198e48adc66e9c1961c4cd6ce
[ "Apache-2.0" ]
7
2021-03-01T21:26:03.000Z
2022-02-27T10:10:20.000Z
samples/client/petstore/python/petstore_api/models/enum_test.py
netfarma/openapi-generator
8ac80203ec557a7198e48adc66e9c1961c4cd6ce
[ "Apache-2.0" ]
4
2019-04-08T17:06:09.000Z
2020-06-09T18:16:08.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://openapi-generator.tech """ import pprint ...
30.404959
174
0.589155
3d247d93f6560c3eb371b439c37ac153ff2db1b4
5,535
py
Python
models/uncertainty/unet_gaussian/train.py
seansegal/fastMRI
44ebd517d792c5f6e66c64c004d0e0603057e7e1
[ "MIT" ]
2
2019-04-17T22:31:21.000Z
2019-05-28T10:28:01.000Z
models/uncertainty/unet_gaussian/train.py
seansegal/fastMRI
44ebd517d792c5f6e66c64c004d0e0603057e7e1
[ "MIT" ]
null
null
null
models/uncertainty/unet_gaussian/train.py
seansegal/fastMRI
44ebd517d792c5f6e66c64c004d0e0603057e7e1
[ "MIT" ]
null
null
null
import logging import numpy as np import torch from common.subsample import MaskFunc from data import transforms from models.uncertainty.unet_gaussian.unet_model import UnetModel from models.mri_model import MRIModel logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) class DataTransform: ...
39.820144
105
0.639024
a925c75951a7fab660151bec6ed785d6b62e7bae
1,226
py
Python
2_LoadingData/load_csv_exercise.py
felker/BigDataCourse
4f3937e94623e4171016fb5e1f03a0fa254757f7
[ "Apache-2.0" ]
31
2015-12-04T20:44:48.000Z
2021-08-31T16:33:51.000Z
2_LoadingData/load_csv_exercise.py
felker/BigDataCourse
4f3937e94623e4171016fb5e1f03a0fa254757f7
[ "Apache-2.0" ]
3
2016-04-04T16:42:11.000Z
2017-07-06T01:23:47.000Z
2_LoadingData/load_csv_exercise.py
felker/BigDataCourse
4f3937e94623e4171016fb5e1f03a0fa254757f7
[ "Apache-2.0" ]
16
2015-12-06T18:21:47.000Z
2021-04-22T16:50:12.000Z
from pyspark.sql import SparkSession import sys import time import os #Exercise: use what you have learned in the LoadingData.ipynb notebook to load a set of CSV datasets #and find movies where Tom Hanks played in def main(args): start = time.time() spark = SparkSession.builder.appName("LoadCsv").getOrCr...
30.65
156
0.699837
dcd53f4239a9d48b4a90d3e801bd511356730e86
427
py
Python
common/migrations/0002_auto_20180506_0109.py
greenelabwustl/greenelabsite
f5c798540ab06fbee260d56ebb012990e6dee962
[ "MIT" ]
null
null
null
common/migrations/0002_auto_20180506_0109.py
greenelabwustl/greenelabsite
f5c798540ab06fbee260d56ebb012990e6dee962
[ "MIT" ]
null
null
null
common/migrations/0002_auto_20180506_0109.py
greenelabwustl/greenelabsite
f5c798540ab06fbee260d56ebb012990e6dee962
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-06 06:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('common', '0001_initial'), ] operations = [ migrations.AlterField( model_name='publication_link', name='name', ...
22.473684
95
0.611241
3e9f06f5d5dcfbe43b00c7135a8653736c60b756
25,756
py
Python
test/dialect/oracle/test_dialect.py
ewengillies/sqlalchemy
cbfa1363d7201848a56e7209146e81b9c51aa8af
[ "MIT" ]
6
2019-02-18T12:42:44.000Z
2020-11-11T23:10:17.000Z
test/dialect/oracle/test_dialect.py
oladimejiala/sqlalchemy
cbfa1363d7201848a56e7209146e81b9c51aa8af
[ "MIT" ]
null
null
null
test/dialect/oracle/test_dialect.py
oladimejiala/sqlalchemy
cbfa1363d7201848a56e7209146e81b9c51aa8af
[ "MIT" ]
2
2021-06-12T01:38:00.000Z
2021-09-05T21:18:29.000Z
# coding: utf-8 import re from sqlalchemy import bindparam from sqlalchemy import Computed from sqlalchemy import create_engine from sqlalchemy import exc from sqlalchemy import Float from sqlalchemy import Integer from sqlalchemy import literal_column from sqlalchemy import outparam from sqlalchemy import select fro...
31.955335
79
0.607082
a22323ee475a6683d606d5551a5c4748c47a5237
637
py
Python
config.py
yuanqili/ModernFlask
bf75ce9b6bafa9f1c1e942ab34ceb01a80e1c16d
[ "BSD-4-Clause-UC" ]
null
null
null
config.py
yuanqili/ModernFlask
bf75ce9b6bafa9f1c1e942ab34ceb01a80e1c16d
[ "BSD-4-Clause-UC" ]
null
null
null
config.py
yuanqili/ModernFlask
bf75ce9b6bafa9f1c1e942ab34ceb01a80e1c16d
[ "BSD-4-Clause-UC" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess secret key' SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'app.db') SQLALCHEMY_TRACK_MODIFICATIONS = False ...
33.526316
110
0.704867
77090d497d4538fe78ddae36b6460a70e1f6d8bf
429
py
Python
todotxt-sort-priority-then-number.py
ChrisDavison/scripts
ebbe52626aac041f37a1143607dc0cc74515a198
[ "MIT" ]
null
null
null
todotxt-sort-priority-then-number.py
ChrisDavison/scripts
ebbe52626aac041f37a1143607dc0cc74515a198
[ "MIT" ]
null
null
null
todotxt-sort-priority-then-number.py
ChrisDavison/scripts
ebbe52626aac041f37a1143607dc0cc74515a198
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re import sys re_pri = re.compile("\d+ \(([A-Z])\)") tasks_with_priority = [] tasks_no_priority = [] for line in sys.stdin: pri = re_pri.match(line) if pri: tasks_with_priority.append((pri.group(1), line.strip())) else: tasks_no_priority.append(line.strip()) f...
22.578947
64
0.671329
c726fa113a313d9a347f71e8121653a3c5c8edd0
4,619
py
Python
tests/test_ref_coors.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
tests/test_ref_coors.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
tests/test_ref_coors.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
import os.path as op import numpy as nm import sfepy from sfepy.discrete.common import Field import sfepy.discrete.common.global_interp as gi from sfepy.base.testing import TestCommon class Test(TestCommon): @staticmethod def from_conf(conf, options): test = Test(conf=conf, options=options) ...
33.471014
75
0.497294
bf24a75b96a00d53db2a9cb2ce48f7f90546ceab
4,132
py
Python
tests/test_her.py
DonsetPG/stable-baselines
7048a63841a3808a14ae5bc8643ee8a83ae64a21
[ "MIT" ]
2
2021-04-20T18:04:53.000Z
2021-04-20T18:04:55.000Z
tests/test_her.py
DonsetPG/stable-baselines
7048a63841a3808a14ae5bc8643ee8a83ae64a21
[ "MIT" ]
null
null
null
tests/test_her.py
DonsetPG/stable-baselines
7048a63841a3808a14ae5bc8643ee8a83ae64a21
[ "MIT" ]
3
2020-05-21T11:36:54.000Z
2022-01-10T12:08:36.000Z
import os import pytest from stable_baselines import HER, DQN, SAC, DDPG, TD3 from stable_baselines.her import GoalSelectionStrategy, HERGoalEnvWrapper from stable_baselines.her.replay_buffer import KEY_TO_GOAL_STRATEGY from stable_baselines.common.bit_flipping_env import BitFlippingEnv from stable_baselines.common.v...
34.433333
113
0.693127
93993b527516dce8623e428779f704c153a40671
1,019
py
Python
test/functional/rpc_bip38.py
MichaelHDesigns/HodlCash
c3ca85c436ba40afadfda11db207068a16527379
[ "MIT" ]
null
null
null
test/functional/rpc_bip38.py
MichaelHDesigns/HodlCash
c3ca85c436ba40afadfda11db207068a16527379
[ "MIT" ]
null
null
null
test/functional/rpc_bip38.py
MichaelHDesigns/HodlCash
c3ca85c436ba40afadfda11db207068a16527379
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The HodlCash developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC commands for BIP38 encrypting and decrypting addresses.""" from test_framework.test_framework imp...
36.392857
88
0.712463
f731cba9a9650e31323b7b28e22fc1895735634d
9,219
py
Python
code/combine_sectors.py
jradavenport/helloTESS
1bd4680640e7b92ae3b2eeba19cc63e8b834eead
[ "MIT" ]
null
null
null
code/combine_sectors.py
jradavenport/helloTESS
1bd4680640e7b92ae3b2eeba19cc63e8b834eead
[ "MIT" ]
null
null
null
code/combine_sectors.py
jradavenport/helloTESS
1bd4680640e7b92ae3b2eeba19cc63e8b834eead
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.cm as cm import matplotlib import os from glob import glob from matplotlib.colors import LogNorm from scipy.optimize import curve_fit from astropy.table import Table import astropy.io.fits as fits from astropy.stats import LombSc...
38.735294
126
0.574574
14373c503399e2dd76bab8076de19f6ed6a033d1
598
py
Python
Arase/MEPe/RebuildDataIndex.py
mattkjames7/Arase
996167be35a13bbb1fdddfbe75e3a06d124b1d25
[ "MIT" ]
null
null
null
Arase/MEPe/RebuildDataIndex.py
mattkjames7/Arase
996167be35a13bbb1fdddfbe75e3a06d124b1d25
[ "MIT" ]
1
2021-06-10T22:51:09.000Z
2021-06-10T22:51:09.000Z
Arase/MEPe/RebuildDataIndex.py
mattkjames7/Arase
996167be35a13bbb1fdddfbe75e3a06d124b1d25
[ "MIT" ]
null
null
null
import numpy as np from .. import Globals from ..Tools.Downloading._RebuildDataIndex import _RebuildDataIndex def RebuildDataIndex(L,prod): ''' Rebuilds the data index for a data product. Inputs ====== L : int Level of data to download prod : str Data product to download Available data products ========...
19.933333
75
0.662207
df1913bce449880ea8b822e4852bafc04c84f649
63,176
py
Python
atom/nucleus/python/nucleus_api/api/utils_api.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/api/utils_api.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/api/utils_api.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Atom API The Hydrogen Atom API # noqa: E501 OpenAPI spec version: 1.7.0 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 ...
40.917098
150
0.623987
7d5ea9d3d3a28ca6d1ba52cef1dd150e30ba098b
3,126
py
Python
oldVersion/main_2stage_enumeration.py
zhuzhich/13_CBM
4fd98ce621b106a6db6b4849463261ebd19713c4
[ "FSFAP" ]
null
null
null
oldVersion/main_2stage_enumeration.py
zhuzhich/13_CBM
4fd98ce621b106a6db6b4849463261ebd19713c4
[ "FSFAP" ]
null
null
null
oldVersion/main_2stage_enumeration.py
zhuzhich/13_CBM
4fd98ce621b106a6db6b4849463261ebd19713c4
[ "FSFAP" ]
null
null
null
#Author: Zhicheng Zhu #Email: zhicheng.zhu@ttu.edu, yisha.xiang@ttu.edu #copyright @ 2019: Zhicheng Zhu. All right reserved. #Info: # enumeration of two-stage, no solver # #Last update: 02/17/2019 #!/usr/bin/python from __future__ import print_function import sys import itertools import time import class_info ####...
24.614173
73
0.618682
9554b3594f252bb33337b5ef928d39c9cd96cb45
2,492
py
Python
src/pybel/manager/utils.py
cthoyt/pybel
ed66f013a77f9cbc513892b0dad1025b8f68bb46
[ "Apache-2.0" ]
null
null
null
src/pybel/manager/utils.py
cthoyt/pybel
ed66f013a77f9cbc513892b0dad1025b8f68bb46
[ "Apache-2.0" ]
11
2017-12-28T08:03:14.000Z
2019-01-15T02:13:58.000Z
src/pybel/manager/utils.py
cthoyt/pybel
ed66f013a77f9cbc513892b0dad1025b8f68bb46
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Utilities for the PyBEL database manager.""" from typing import Dict, Mapping, Optional, Tuple, Union from ..utils import parse_datetime def extract_shared_required(config, definition_header: str = "Namespace"): """Get the required annotations shared by BEL namespace and annotation r...
35.098592
96
0.680979
7039fd8778c3146409f383f84ad34a4da436bf6c
1,109
py
Python
Traffic Modeling Real Vision Based/tail_length.py
pb-10/Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision
511746246434f4c199df8118c66d318ac39a02c8
[ "MIT" ]
140
2019-05-16T11:15:14.000Z
2022-03-28T18:29:12.000Z
Traffic Modeling Real Vision Based/tail_length.py
DaScientist/Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision
511746246434f4c199df8118c66d318ac39a02c8
[ "MIT" ]
2
2019-11-05T10:13:57.000Z
2020-07-02T06:56:53.000Z
Traffic Modeling Real Vision Based/tail_length.py
DaScientist/Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision
511746246434f4c199df8118c66d318ac39a02c8
[ "MIT" ]
46
2019-05-25T09:42:56.000Z
2022-03-21T06:01:07.000Z
import numpy as np import cv2 cap = cv2.VideoCapture('out-1.ogv') fgbg = cv2.createBackgroundSubtractorMOG2() checker = np.zeros((810),dtype=int) while(1): ret, frame = cap.read() roi = frame[438:465,959:1770] #print(checker) start = 0 for i in range(810): ...
16.80303
58
0.481515
17ee41ae59ba810df4eea53a34c549e703beed04
489
py
Python
sudolver_api/app/sudolver/image_binary.py
andrinmeier/sudolver
3eed7688cd884bc0fd5cd88c7d93e1558f528f47
[ "MIT" ]
null
null
null
sudolver_api/app/sudolver/image_binary.py
andrinmeier/sudolver
3eed7688cd884bc0fd5cd88c7d93e1558f528f47
[ "MIT" ]
4
2022-03-26T08:58:24.000Z
2022-03-30T20:45:35.000Z
sudolver_api/app/sudolver/image_binary.py
andrinmeier/sudolver
3eed7688cd884bc0fd5cd88c7d93e1558f528f47
[ "MIT" ]
null
null
null
from typing import Any import cv2 import numpy as np class ImageBinary: def __init__(self, image_bytes) -> None: self.image_bytes = image_bytes def get_bytes(self) -> Any: return self.image_bytes def find_contours(self) -> Any: contours, _ = cv2.findContours( self.ima...
23.285714
68
0.652352
d4c3799b2d2da387f43e376d0f7a6e5ac97e1c40
2,901
py
Python
tests/unit/admin/views/test_emails.py
leoz0610/warehouse
58d569b864d0a9b0627d21a15f4ffe92540752f5
[ "Apache-2.0" ]
2
2015-04-08T20:48:40.000Z
2016-04-23T00:14:49.000Z
tests/unit/admin/views/test_emails.py
leoz0610/warehouse
58d569b864d0a9b0627d21a15f4ffe92540752f5
[ "Apache-2.0" ]
14
2018-10-11T01:00:52.000Z
2018-10-16T23:01:23.000Z
tests/unit/admin/views/test_emails.py
leoz0610/warehouse
58d569b864d0a9b0627d21a15f4ffe92540752f5
[ "Apache-2.0" ]
1
2015-04-08T20:48:41.000Z
2015-04-08T20:48:41.000Z
# 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 writing, software # distributed under the Li...
31.879121
88
0.640814
1a68fdc38be640382a35b56a5ca4a631e1954d3f
5,727
py
Python
ValidationQ.py
Arcadianlee/Deep-Learning-Design-Photonic-Crystals
163090c9e25c160a1a994af6eea72fe28f2aa987
[ "Apache-2.0" ]
2
2021-12-22T05:23:18.000Z
2022-03-23T19:32:06.000Z
ValidationQ.py
Arcadianlee/Deep-Learning-Design-Photonic-Crystals
163090c9e25c160a1a994af6eea72fe28f2aa987
[ "Apache-2.0" ]
null
null
null
ValidationQ.py
Arcadianlee/Deep-Learning-Design-Photonic-Crystals
163090c9e25c160a1a994af6eea72fe28f2aa987
[ "Apache-2.0" ]
2
2022-02-06T18:22:26.000Z
2022-03-08T16:53:12.000Z
#Code for the validation of trained model on Q #Apr 2021 Renjie Li, NOEL @ CUHK SZ import torch import torchvision import matplotlib.pyplot as plt import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import pandas as pd import numpy as np import h5py import torchvision.transforms as ...
30.956757
121
0.688493
0a05791196aea740b7efe7f44cc4960d05a6883b
15,444
py
Python
pylistener/tests.py
CCallahanIV/CF401-Project-1---PyListener
1c31d0b26e373dfac5c0a38fe554a835b71e75e8
[ "MIT" ]
null
null
null
pylistener/tests.py
CCallahanIV/CF401-Project-1---PyListener
1c31d0b26e373dfac5c0a38fe554a835b71e75e8
[ "MIT" ]
null
null
null
pylistener/tests.py
CCallahanIV/CF401-Project-1---PyListener
1c31d0b26e373dfac5c0a38fe554a835b71e75e8
[ "MIT" ]
null
null
null
"""Tests for Pylistener.""" import pytest import transaction import os import cgi from pyramid import testing from pylistener.models import User, AddressBook, Category, Attribute, UserAttributeLink, get_tm_session from pylistener.models.meta import Base from passlib.apps import custom_app_context as pwd_context TE...
32.041494
103
0.702732
a5b41e605422b7568cdf7f609cb3cbb8651de56b
3,464
py
Python
graphql/core/language/printer.py
jhgg/graphql-py
47ad2ca029954423e4b13f5b4ef84f788e865f6f
[ "MIT" ]
1
2021-04-28T21:35:02.000Z
2021-04-28T21:35:02.000Z
graphql/core/language/printer.py
jhgg/graphql-py
47ad2ca029954423e4b13f5b4ef84f788e865f6f
[ "MIT" ]
null
null
null
graphql/core/language/printer.py
jhgg/graphql-py
47ad2ca029954423e4b13f5b4ef84f788e865f6f
[ "MIT" ]
1
2021-02-09T10:10:11.000Z
2021-02-09T10:10:11.000Z
import json from .visitor import visit, Visitor __all__ = ['print_ast'] def print_ast(ast): return visit(ast, PrintingVisitor()) class PrintingVisitor(Visitor): def leave_Name(self, node, *args): return node.value def leave_Variable(self, node, *args): return '$' + node.name def l...
27.275591
96
0.582564
d76729e7d0caa26dffb810b16c42b69beb9b0a0c
2,237
py
Python
meniscus/tests/personas/common/publish_stats_test.py
ProjectMeniscus/meniscus
1df9efe33ead702d0f53dfc227b5da385ba9cf23
[ "Apache-2.0" ]
12
2015-01-14T03:40:05.000Z
2018-08-20T13:19:07.000Z
meniscus/tests/personas/common/publish_stats_test.py
ProjectMeniscus/meniscus
1df9efe33ead702d0f53dfc227b5da385ba9cf23
[ "Apache-2.0" ]
1
2015-07-02T17:03:47.000Z
2015-07-02T17:03:47.000Z
meniscus/tests/personas/common/publish_stats_test.py
ProjectMeniscus/meniscus
1df9efe33ead702d0f53dfc227b5da385ba9cf23
[ "Apache-2.0" ]
4
2015-05-12T12:04:44.000Z
2020-11-17T19:08:43.000Z
import unittest import requests from mock import MagicMock from mock import patch from meniscus.openstack.common import jsonutils from meniscus.personas.common.publish_stats import ConfigCache from meniscus.personas.common.publish_stats import publish_worker_stats from meniscus.data.model.worker import SystemInfo fro...
33.893939
77
0.668306
73445f4dcb1f3761f4315ad29fc30d6df6729615
23,487
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/netapp_e_host.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/netapp_e_host.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/netapp_e_host.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2018, NetApp Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'sta...
43.73743
143
0.548346
f1bc07e7c72b177310cbabcbf43079cbda423418
209,116
py
Python
tencentcloud/tsf/v20180326/tsf_client.py
HS-Gray/tencentcloud-sdk-python
b28b19c4beebc9f361aa3221afa36ad1ee047ccc
[ "Apache-2.0" ]
null
null
null
tencentcloud/tsf/v20180326/tsf_client.py
HS-Gray/tencentcloud-sdk-python
b28b19c4beebc9f361aa3221afa36ad1ee047ccc
[ "Apache-2.0" ]
null
null
null
tencentcloud/tsf/v20180326/tsf_client.py
HS-Gray/tencentcloud-sdk-python
b28b19c4beebc9f361aa3221afa36ad1ee047ccc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
41.019223
110
0.588099
b61921c4dc9308ca53e6dc40ecb38223ddd48b4d
1,753
py
Python
baiduspider/core/_spider.py
samzhangjy/GSSpider
344d9c9053a5d5bf08692e0c817d30763dbd8ab7
[ "MIT" ]
31
2020-07-17T08:26:37.000Z
2021-08-24T02:28:50.000Z
baiduspider/core/_spider.py
samzhangjy/GSSpider
344d9c9053a5d5bf08692e0c817d30763dbd8ab7
[ "MIT" ]
6
2020-07-14T17:13:17.000Z
2020-09-12T06:02:01.000Z
baiduspider/core/_spider.py
samzhangjy/GSSpider
344d9c9053a5d5bf08692e0c817d30763dbd8ab7
[ "MIT" ]
12
2020-07-27T08:38:26.000Z
2021-07-28T16:05:58.000Z
import re from htmlmin import minify import requests from baiduspider.errors import ParseError, UnknownError class BaseSpider(object): # pragma: no cover def __init__(self) -> None: """所有爬虫的基类 此类包括了常用的util和自定义方法,继承自`object`。 """ super().__init__() self.spider_name = 'BaseS...
22.766234
73
0.524815
c412a76e03f768da6abb21beeb5da4f138fe8c8c
3,693
py
Python
rowcounter.py
graeme-winter/rpi-pico
be497016c1151e9249bb8565223e52ce55e5864e
[ "BSD-3-Clause" ]
null
null
null
rowcounter.py
graeme-winter/rpi-pico
be497016c1151e9249bb8565223e52ce55e5864e
[ "BSD-3-Clause" ]
null
null
null
rowcounter.py
graeme-winter/rpi-pico
be497016c1151e9249bb8565223e52ce55e5864e
[ "BSD-3-Clause" ]
null
null
null
# rowcounter.py # # Counter for counting rows when knitting, which includes a time indicator # which counts for ~ 12 minutes since count was last changed, to answer the # question "did I just count that row?" # # (C) Graeme Winter, 2021 # # UI: # # A X # +------------------+ # | | # +-...
21.723529
75
0.522069
681058e35e1e758457014ca95826f59c83fc978c
3,884
py
Python
OSMHelper.py
EsriDE/EsriDE-python-osm2arcgis-
c0ec5b8128688b1daa9863b9524088998346b6cf
[ "Apache-2.0" ]
7
2017-10-26T10:46:46.000Z
2020-03-06T17:56:35.000Z
OSMHelper.py
EsriDE/EsriDE-python-osm2arcgis-
c0ec5b8128688b1daa9863b9524088998346b6cf
[ "Apache-2.0" ]
null
null
null
OSMHelper.py
EsriDE/EsriDE-python-osm2arcgis-
c0ec5b8128688b1daa9863b9524088998346b6cf
[ "Apache-2.0" ]
4
2017-11-15T07:51:59.000Z
2021-05-22T05:41:39.000Z
__version__ = "1.4" ''' __author__ = "Lukas Bug" __copyright__ = "Copyright 2018, Esri Deutschland GmbH" __license__ = "Apache-2.0" __version__ = "1.4" __email__ = "lukas.bug@aol.de" ''' from osm_runner import gen_osm_sdf from osm_runner_utils import Filters from threading import Thread from ExceptionHelper import OSM...
42.217391
119
0.655252
3096e62fc795b3664bbbb47928d04949ea162bc0
563
py
Python
marco/portal/ocean_stories/migrations/0012_auto_20160225_0012.py
Ecotrust/marco-portal2
13bb1b444c7605e1de3c88313d36abc1f463d1f5
[ "0BSD" ]
4
2016-09-24T00:57:45.000Z
2019-07-28T23:35:15.000Z
marco/portal/ocean_stories/migrations/0012_auto_20160225_0012.py
MidAtlanticPortal/marco-portal2
b47e7bfa171e98a6cf499b2d411fc743caae91c2
[ "0BSD" ]
146
2016-09-27T23:16:52.000Z
2022-03-09T16:55:32.000Z
marco/portal/ocean_stories/migrations/0012_auto_20160225_0012.py
Ecotrust/marco-portal2
13bb1b444c7605e1de3c88313d36abc1f463d1f5
[ "0BSD" ]
1
2019-07-03T23:42:05.000Z
2019-07-03T23:42:05.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('ocean_stories', '0011_oceanstory_display_home_page'), ] operations = [ migrations.AlterField( model_name='oceans...
26.809524
140
0.642984
13350a73da938487dbd5e166ca4e9e9026b8cafa
7,944
py
Python
problems/vrp/problem_vrp.py
fmxFranky/attention-learn-to-route
dd0d945c93f4a924244dd71edd9c1a836793adbb
[ "MIT" ]
null
null
null
problems/vrp/problem_vrp.py
fmxFranky/attention-learn-to-route
dd0d945c93f4a924244dd71edd9c1a836793adbb
[ "MIT" ]
null
null
null
problems/vrp/problem_vrp.py
fmxFranky/attention-learn-to-route
dd0d945c93f4a924244dd71edd9c1a836793adbb
[ "MIT" ]
null
null
null
import os import pickle import torch from torch.utils.data import Dataset from problems.vrp.state_cvrp import StateCVRP from problems.vrp.state_sdvrp import StateSDVRP from utils.beam_search import beam_search class CVRP(object): NAME = 'cvrp' # Capacitated Vehicle Routing Problem VEHICLE_CAPACITY = 1.0 ...
35.623318
117
0.549975
9feb994e715844950134a595ea2b9b779335f3bb
9,581
py
Python
tests/python/unittest/test_tir_schedule_tensorize_ldmatrix_mma.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/python/unittest/test_tir_schedule_tensorize_ldmatrix_mma.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/python/unittest/test_tir_schedule_tensorize_ldmatrix_mma.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# 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...
27.141643
103
0.614028
50b03b85adb9a91023a7de8a135b4a4877230876
3,258
py
Python
selfdrive/car/toyota/tunes.py
KexianShen/openpilot
bf58e2f7edce20e4fed5bb8c147aca40cd1d91bc
[ "MIT" ]
null
null
null
selfdrive/car/toyota/tunes.py
KexianShen/openpilot
bf58e2f7edce20e4fed5bb8c147aca40cd1d91bc
[ "MIT" ]
null
null
null
selfdrive/car/toyota/tunes.py
KexianShen/openpilot
bf58e2f7edce20e4fed5bb8c147aca40cd1d91bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from enum import Enum class LongTunes(Enum): PEDAL = 0 TSS2 = 1 TSS = 2 class LatTunes(Enum): INDI_PRIUS = 0 LQR_RAV4 = 1 PID_A = 2 PID_B = 3 PID_C = 4 PID_D = 5 PID_E = 6 PID_F = 7 PID_G = 8 PID_I = 9 PID_H = 10 PID_J = 11 PID_K = 12 PID_L = 13 PID_M = 14 ...
26.487805
70
0.579497
41cb25771bb90e7e334f4d31d5c1a88cb4ee641a
30,293
py
Python
autograder/autograder/execution_environments/container_network.py
sballance/Submitty
457fd3bf176960194985a067b9f32b3a653e3ff4
[ "BSD-3-Clause" ]
null
null
null
autograder/autograder/execution_environments/container_network.py
sballance/Submitty
457fd3bf176960194985a067b9f32b3a653e3ff4
[ "BSD-3-Clause" ]
null
null
null
autograder/autograder/execution_environments/container_network.py
sballance/Submitty
457fd3bf176960194985a067b9f32b3a653e3ff4
[ "BSD-3-Clause" ]
null
null
null
import json import os import subprocess import traceback import time from pwd import getpwnam import shutil import docker from submitty_utils import dateutils from . import secure_execution_environment, rlimit_utils from .. import autograding_utils class Container(): """ Containers are the building blocks of a co...
43.524425
195
0.706005
26f4bb098483f615774fc2ffc420209f29027904
993
py
Python
examples/nova/v2/12_backup.py
hustbeta/openstack-juno-api-adventure
0c62cdc33599256ca7063478bb1e2906a8a6c2a2
[ "MIT" ]
4
2015-08-27T08:39:15.000Z
2020-06-24T01:47:30.000Z
examples/nova/v2/12_backup.py
hustbeta/openstack-juno-api-adventure
0c62cdc33599256ca7063478bb1e2906a8a6c2a2
[ "MIT" ]
null
null
null
examples/nova/v2/12_backup.py
hustbeta/openstack-juno-api-adventure
0c62cdc33599256ca7063478bb1e2906a8a6c2a2
[ "MIT" ]
2
2015-08-27T08:39:20.000Z
2018-11-20T08:48:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import keystoneclient import keystoneclient.auth.identity.v3 import keystoneclient.session import keystoneclient.v3.client import novaclient.client import local_settings auth = keystoneclient.auth.identity.v3.Password(auth_url=local_settings.auth_url_v3, ...
36.777778
88
0.6143
a7234f31e06aab8f678936abae6d4c1c2c41424d
32,287
py
Python
desktop/libs/notebook/src/notebook/api_tests.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1
2021-05-08T20:00:03.000Z
2021-05-08T20:00:03.000Z
desktop/libs/notebook/src/notebook/api_tests.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1
2021-05-10T02:32:57.000Z
2021-05-10T02:32:57.000Z
desktop/libs/notebook/src/notebook/api_tests.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1
2021-02-01T19:55:11.000Z
2021-02-01T19:55:11.000Z
#!/usr/bin/env python ## -*- coding: utf-8 -*- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 ...
37.984706
131
0.632917
dd11d17a3ab45dcaf4fa32b09510892593569e97
647
py
Python
models/Checkpoint.py
pdfop/Geschichte-Vernetzt-Backend
48a8ae0c323c8bc607fc8ad035d5773cb8dbb279
[ "MIT" ]
null
null
null
models/Checkpoint.py
pdfop/Geschichte-Vernetzt-Backend
48a8ae0c323c8bc607fc8ad035d5773cb8dbb279
[ "MIT" ]
null
null
null
models/Checkpoint.py
pdfop/Geschichte-Vernetzt-Backend
48a8ae0c323c8bc607fc8ad035d5773cb8dbb279
[ "MIT" ]
null
null
null
from mongoengine import * from models.Tour import Tour class Checkpoint(Document): """ Parent class for all checkpoints. All other checkpoints inherit all fields and may or may not overwrite them. Serves as the most basic checkpoint for texts. """ meta = {'db_alias': 'tour', 'collectio...
34.052632
113
0.703246
a43e09adc1c684fd3fa5414abc476738bffe03f1
110,055
py
Python
ciscoaxl/axl.py
levensailor/ciscoaxl
f3a78ef39fba011c8bb0fdc6184a53d879e2d049
[ "MIT" ]
16
2019-04-18T17:16:48.000Z
2020-05-27T13:39:41.000Z
ciscoaxl/axl.py
levensailor/ciscoaxl
f3a78ef39fba011c8bb0fdc6184a53d879e2d049
[ "MIT" ]
2
2020-03-16T14:26:46.000Z
2020-05-28T09:23:11.000Z
ciscoaxl/axl.py
levensailor/ciscoaxl
f3a78ef39fba011c8bb0fdc6184a53d879e2d049
[ "MIT" ]
10
2019-09-29T16:21:11.000Z
2020-05-22T20:07:33.000Z
""" Class to interface with cisco ucm axl api. Author: Jeff Levensailor Version: 0.1 Dependencies: - zeep: https://python-zeep.readthedocs.io/en/master/ Links: - https://developer.cisco.com/site/axl/ """ import sys from pathlib import Path import os import json from requests import Session from requests.exceptions ...
32.22694
107
0.530498