hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7949b46abf93a8c89542a41e9995cdcc77854a17
2,053
py
Python
binding-python/runtime/src/main/python/etch/binding/support/Validator_long.py
apache/etch
5a875755019a7f342a07c8c368a50e3efb6ae68c
[ "ECL-2.0", "Apache-2.0" ]
9
2015-02-14T15:09:54.000Z
2021-11-10T15:09:45.000Z
binding-python/runtime/src/main/python/etch/binding/support/Validator_long.py
apache/etch
5a875755019a7f342a07c8c368a50e3efb6ae68c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
binding-python/runtime/src/main/python/etch/binding/support/Validator_long.py
apache/etch
5a875755019a7f342a07c8c368a50e3efb6ae68c
[ "ECL-2.0", "Apache-2.0" ]
14
2015-04-20T10:35:00.000Z
2021-11-10T15:09:35.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...
39.480769
121
0.608865
7949b651a739be2fbff05378bef3ae2f5f118b99
613
py
Python
scaffold/wsgi.py
wooojtek/una
d06a15f763aebe25a1111ff69ffcd2a84b707df4
[ "Apache-2.0" ]
null
null
null
scaffold/wsgi.py
wooojtek/una
d06a15f763aebe25a1111ff69ffcd2a84b707df4
[ "Apache-2.0" ]
null
null
null
scaffold/wsgi.py
wooojtek/una
d06a15f763aebe25a1111ff69ffcd2a84b707df4
[ "Apache-2.0" ]
null
null
null
""" WSGI config for scaffold 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/1.6/howto/deployment/wsgi/ """ from scaffold.boot import fix_path fix_path() import os from django.core.wsgi import get_wsgi_...
26.652174
79
0.807504
7949b6d520b99186591675ae19340aa7c18660d6
3,609
py
Python
pid_control/src/pid_control/PID.py
andrewtron3000/hacdc-ros-pkg
f3178ebc5a71889066db102e3b57beb0dcc1a204
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pid_control/src/pid_control/PID.py
andrewtron3000/hacdc-ros-pkg
f3178ebc5a71889066db102e3b57beb0dcc1a204
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pid_control/src/pid_control/PID.py
andrewtron3000/hacdc-ros-pkg
f3178ebc5a71889066db102e3b57beb0dcc1a204
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/env python #********************************************************************* # Software License Agreement (BSD License) # # Copyright (c) 2011 andrewtron3000 # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
39.659341
91
0.636741
7949b6f36f9d405d6bf081ad66bdf7a1db847cc3
1,410
py
Python
core/arxiv/submission/domain/event/versioning/version_0_0_0_example.py
woutersj/arxiv-submission-core
6077ce4e0685d67ce7010800083a898857158112
[ "MIT" ]
14
2019-05-26T22:52:17.000Z
2021-11-05T12:26:46.000Z
core/arxiv/submission/domain/event/versioning/version_0_0_0_example.py
woutersj/arxiv-submission-core
6077ce4e0685d67ce7010800083a898857158112
[ "MIT" ]
30
2018-01-31T19:16:08.000Z
2018-12-08T08:41:04.000Z
core/arxiv/submission/domain/event/versioning/version_0_0_0_example.py
cul-it/arxiv-submission-core
6077ce4e0685d67ce7010800083a898857158112
[ "MIT" ]
8
2019-01-10T22:01:39.000Z
2021-11-20T21:44:51.000Z
""" An example version mapping module. This module gathers together all event mappings for version 0.0.0. The mappings in this module will never be used, since there are no data prior to version 0.0.0. """ from typing import Tuple from ._base import BaseVersionMapping, EventData VERSION = '0.0.0' class SetTitleExa...
30
74
0.580142
7949b72832334e04c07b9843f516d96b6d8a57f1
2,837
py
Python
code/sa_experiment1b.py
mliang1987/Traveling-Salesman-Project
ed3789e37aafb5d254ce7fdbc512711db3d8351c
[ "MIT" ]
1
2020-01-12T02:05:31.000Z
2020-01-12T02:05:31.000Z
code/sa_experiment1b.py
mliang1987/Traveling-Salesman-Project
ed3789e37aafb5d254ce7fdbc512711db3d8351c
[ "MIT" ]
null
null
null
code/sa_experiment1b.py
mliang1987/Traveling-Salesman-Project
ed3789e37aafb5d254ce7fdbc512711db3d8351c
[ "MIT" ]
null
null
null
#################################################################################################### # CSE 6140 - Fall 2019 # Rodrigo Alves Lima # Shichao Liang # Jeevanjot Singh # Kevin Tynes #################################################################################################### """ This file co...
37.328947
143
0.602749
7949b73271ed69e12688ec79bc36cf4e7bfc27d7
5,038
py
Python
pyflux/gas/tests/gas_llt_tests_skewt.py
ThomasHoppe/pyflux
297f2afc2095acd97c12e827dd500e8ea5da0c0f
[ "BSD-3-Clause" ]
2,091
2016-04-01T02:52:10.000Z
2022-03-29T11:38:15.000Z
pyflux/gas/tests/gas_llt_tests_skewt.py
EricSchles/pyflux
297f2afc2095acd97c12e827dd500e8ea5da0c0f
[ "BSD-3-Clause" ]
160
2016-04-26T14:52:18.000Z
2022-03-15T02:09:07.000Z
pyflux/gas/tests/gas_llt_tests_skewt.py
EricSchles/pyflux
297f2afc2095acd97c12e827dd500e8ea5da0c0f
[ "BSD-3-Clause" ]
264
2016-05-02T14:03:31.000Z
2022-03-29T07:48:20.000Z
import numpy as np import pyflux as pf noise = np.random.normal(0,1,200) data = np.zeros(200) for i in range(1,len(data)): data[i] = 1.0*data[i-1] + noise[i] countdata = np.random.poisson(3,200) def test_skewt_couple_terms(): """ Tests latent variable list length is correct, and that the estimated l...
33.364238
90
0.665939
7949b8a55d67807673992517aa6c7d22f6466fba
4,293
py
Python
torch_glow/tests/nodes/quantized_linear_test.py
YonginKwon/glow
7d316d028e1792534416755bf80af422adccdaa9
[ "Apache-2.0" ]
2
2020-03-23T21:04:00.000Z
2020-04-02T22:49:49.000Z
torch_glow/tests/nodes/quantized_linear_test.py
YonginKwon/glow
7d316d028e1792534416755bf80af422adccdaa9
[ "Apache-2.0" ]
null
null
null
torch_glow/tests/nodes/quantized_linear_test.py
YonginKwon/glow
7d316d028e1792534416755bf80af422adccdaa9
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import torch from tests.utils import jitVsGlow import unittest class TestQuantizedLinear(unittest.TestCase): def test_quantized_linear_packed(self): """Basic test of the PyTorch quantized::linear Node on Glow.""" ...
33.023077
98
0.566271
7949bb2e19e10dd58a78aecae386dd1caffc6181
768
py
Python
tests/demo/demoproject/urls.py
GigiusB/djaxei
2fd181acd8c10c259d4ffdfbcef03ea959222d6f
[ "MIT" ]
null
null
null
tests/demo/demoproject/urls.py
GigiusB/djaxei
2fd181acd8c10c259d4ffdfbcef03ea959222d6f
[ "MIT" ]
null
null
null
tests/demo/demoproject/urls.py
GigiusB/djaxei
2fd181acd8c10c259d4ffdfbcef03ea959222d6f
[ "MIT" ]
null
null
null
"""demoproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
34.909091
79
0.705729
7949bb95a685cce66419d9bac0f8a6396dd72ecb
1,071
py
Python
ait/dsn/sle/__init__.py
kmarwah/AIT-DSN
338614dfef6713431f79d6daaffc0e4303be0ced
[ "MIT" ]
12
2019-01-30T17:43:51.000Z
2022-02-23T03:36:57.000Z
ait/dsn/sle/__init__.py
kmarwah/AIT-DSN
338614dfef6713431f79d6daaffc0e4303be0ced
[ "MIT" ]
117
2018-04-16T16:11:48.000Z
2022-03-31T18:21:24.000Z
ait/dsn/sle/__init__.py
kmarwah/AIT-DSN
338614dfef6713431f79d6daaffc0e4303be0ced
[ "MIT" ]
12
2018-08-30T15:52:56.000Z
2022-01-12T19:52:04.000Z
# Advanced Multi-Mission Operations System (AMMOS) Instrument Toolkit (AIT) # Bespoke Link to Instruments and Small Satellites (BLISS) # # Copyright 2017, by the California Institute of Technology. ALL RIGHTS # RESERVED. United States Government Sponsorship acknowledged. Any # commercial use must be negotiated with the...
41.192308
78
0.79085
7949bbec5becbee936601c098d76b594bc90d038
453
py
Python
conanfile.py
rossb34/wildcat-ws
f1636982fcbac21ce6231858555f4544641c88b8
[ "MIT" ]
null
null
null
conanfile.py
rossb34/wildcat-ws
f1636982fcbac21ce6231858555f4544641c88b8
[ "MIT" ]
null
null
null
conanfile.py
rossb34/wildcat-ws
f1636982fcbac21ce6231858555f4544641c88b8
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools class NetConan(ConanFile): name = "wildcat-ws" version = "0.2.2" license = "MIT" author = "<Ross Bennett> <rossbennett34@gmail.com>" url = "https://github.com/rossb34/wildcat-ws" description = "Web socket library" exports_sources = "include/*" ...
23.842105
55
0.637969
7949bbfd4758f87e5c6fed7fe3d7bd5c2b97c2e2
778
py
Python
anstoss3k/engine/definitions.py
ericziethen/anstoss3k-poc
e28424556258b24ad4e513011b7597f150ad9719
[ "MIT" ]
null
null
null
anstoss3k/engine/definitions.py
ericziethen/anstoss3k-poc
e28424556258b24ad4e513011b7597f150ad9719
[ "MIT" ]
36
2020-02-13T09:23:36.000Z
2022-03-12T00:16:20.000Z
anstoss3k/engine/definitions.py
ericziethen/anstoss3k-poc
e28424556258b24ad4e513011b7597f150ad9719
[ "MIT" ]
null
null
null
import enum @enum.unique class GameAction(enum.Enum): # pylint: disable=invalid-name FINISH_MOVE = 'Finish Move' @enum.unique class GameState(enum.Enum): # pylint: disable=invalid-name UNKNOWN = 'Unknown State' TEAM_SELECTION = 'Team Selection' PROGRESS_WEEK = 'Week Progress' MATCH_DAY_...
22.882353
61
0.670951
7949bc1912f9eb09f3739364371cf20d489c2051
6,502
py
Python
pyEX/client.py
jay-johnson/pyEX
b326cfeffa06c3699bc15168b539323f4fd9dec8
[ "Apache-2.0" ]
null
null
null
pyEX/client.py
jay-johnson/pyEX
b326cfeffa06c3699bc15168b539323f4fd9dec8
[ "Apache-2.0" ]
null
null
null
pyEX/client.py
jay-johnson/pyEX
b326cfeffa06c3699bc15168b539323f4fd9dec8
[ "Apache-2.0" ]
null
null
null
import os from functools import partial from .common import PyEXception, _getJson, _USAGE_TYPES from .refdata import symbols, iexSymbols, symbolsDF, iexSymbolsDF, \ symbolsList, iexSymbolsList, corporateActions, corporateActionsDF, dividends as refDividends, dividendsDF as refDividendsDF, nextDayExtDate, nextDayExt...
38.702381
185
0.675177
7949bc23e335994e38769e22908011bccccd621f
27,183
py
Python
conga/tcrdist/make_10x_clones_file.py
scfurl/conga
eaf7b0a583180a72f7c81f981b29b53781507a12
[ "MIT" ]
null
null
null
conga/tcrdist/make_10x_clones_file.py
scfurl/conga
eaf7b0a583180a72f7c81f981b29b53781507a12
[ "MIT" ]
null
null
null
conga/tcrdist/make_10x_clones_file.py
scfurl/conga
eaf7b0a583180a72f7c81f981b29b53781507a12
[ "MIT" ]
null
null
null
from .basic import * from .all_genes import all_genes #import parse_tsv from collections import Counter from itertools import chain import sys import pandas as pd from ..util import organism2vdj_type, IG_VDJ_TYPE MIN_CDR3_LEN = 6 # otherwise tcrdist barfs; actually we could also set this to 5 and be OK def show(tcr):...
40.211538
229
0.588125
7949bc75d3c7d1b8a78edddba0cc11fba159845c
1,214
py
Python
ginger/app/api/v1/token.py
MiracleWong/flask-api
a3e14c666284a39b3a9992558c494b869f9d864f
[ "MIT" ]
null
null
null
ginger/app/api/v1/token.py
MiracleWong/flask-api
a3e14c666284a39b3a9992558c494b869f9d864f
[ "MIT" ]
null
null
null
ginger/app/api/v1/token.py
MiracleWong/flask-api
a3e14c666284a39b3a9992558c494b869f9d864f
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- ''' created by MiracleWong on 2019/2/8 ''' from flask import current_app, jsonify from app.libs.enums import ClientTypeEnum from app.libs.redprint import Redprint from app.modules.user import User from app.validators.forms import ClientForm from itsdangerous import TimedJSONWebSignatureSerialize...
26.977778
70
0.652389
7949bd1d0f14c8e86af0468e100e1aa311170d9d
10,084
py
Python
firexapp/submit/arguments.py
FireXStuff/firexapp
04be9f087ca405582be6107b2b345923e25e6f5f
[ "BSD-3-Clause" ]
7
2019-02-15T22:00:10.000Z
2022-02-02T02:12:35.000Z
firexapp/submit/arguments.py
FireXStuff/firexapp
04be9f087ca405582be6107b2b345923e25e6f5f
[ "BSD-3-Clause" ]
13
2019-03-11T20:28:08.000Z
2021-02-22T16:12:59.000Z
firexapp/submit/arguments.py
FireXStuff/firexapp
04be9f087ca405582be6107b2b345923e25e6f5f
[ "BSD-3-Clause" ]
null
null
null
import os import sys import re from firexkit.argument_conversion import ConverterRegister from typing import Union from firexapp.submit.console import setup_console_logging logger = setup_console_logging(__name__) def get_chain_args(other_args: []): """This function converts a flat list of --key value pairs int...
37.76779
119
0.640916
7949bd7c87d9717796d5d7dc76f3dac2d087527d
9,263
py
Python
test/tasks_classification_task_test.py
jlin27/ClassyVision-1
113ddb0b66471eb84add9af53751d9067786a7f0
[ "MIT" ]
null
null
null
test/tasks_classification_task_test.py
jlin27/ClassyVision-1
113ddb0b66471eb84add9af53751d9067786a7f0
[ "MIT" ]
null
null
null
test/tasks_classification_task_test.py
jlin27/ClassyVision-1
113ddb0b66471eb84add9af53751d9067786a7f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy import shutil import tempfile import unittest from test.generic.config_utils import get_fast_test_task_conf...
35.220532
87
0.665227
7949bda533828f1e8fdf163b488d976fb9c63c61
23,268
py
Python
pyxdsm/XDSM.py
eirikurj/pyXDSM
6c631150f6b78e367127c0b7f4e273c3bb37f6ce
[ "Apache-2.0" ]
30
2018-09-30T11:47:05.000Z
2021-11-11T18:04:32.000Z
pyxdsm/XDSM.py
eirikurj/pyXDSM
6c631150f6b78e367127c0b7f4e273c3bb37f6ce
[ "Apache-2.0" ]
20
2018-06-08T15:44:36.000Z
2022-01-05T19:43:50.000Z
pyxdsm/XDSM.py
eirikurj/pyXDSM
6c631150f6b78e367127c0b7f4e273c3bb37f6ce
[ "Apache-2.0" ]
32
2017-11-29T09:55:35.000Z
2022-03-06T12:15:41.000Z
from __future__ import print_function import os import numpy as np import json import subprocess from collections import namedtuple from pyxdsm import __version__ as pyxdsm_version OPT = "Optimization" SUBOPT = "SubOptimization" SOLVER = "MDA" DOE = "DOE" IFUNC = "ImplicitFunction" FUNC = "Function" GROUP = "Group" I...
37.169329
119
0.598204
7949be3a9ff9c4ac43a60bb4593001ffd25163e4
16,208
py
Python
venv/Lib/site-packages/twilio/rest/supersim/v1/network_access_profile/network_access_profile_network.py
syt1209/PythonProjects
0409dbd3c0b0ddf00debc38875059c828eb31dec
[ "MIT" ]
1
2021-02-16T00:59:29.000Z
2021-02-16T00:59:29.000Z
venv/Lib/site-packages/twilio/rest/supersim/v1/network_access_profile/network_access_profile_network.py
syt1209/PythonProjects
0409dbd3c0b0ddf00debc38875059c828eb31dec
[ "MIT" ]
null
null
null
venv/Lib/site-packages/twilio/rest/supersim/v1/network_access_profile/network_access_profile_network.py
syt1209/PythonProjects
0409dbd3c0b0ddf00debc38875059c828eb31dec
[ "MIT" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource f...
40.52
135
0.687068
7949be69c09b29524e5240125420a9df8f942647
607
py
Python
python/anyascii/_data/_245.py
casept/anyascii
d4f426b91751254b68eaa84c6cd23099edd668e6
[ "ISC" ]
null
null
null
python/anyascii/_data/_245.py
casept/anyascii
d4f426b91751254b68eaa84c6cd23099edd668e6
[ "ISC" ]
null
null
null
python/anyascii/_data/_245.py
casept/anyascii
d4f426b91751254b68eaa84c6cd23099edd668e6
[ "ISC" ]
null
null
null
b='Na Dit Pao Ju Luo Shua Shang Su Luo Fen Wai Bao Li Xiong Vuot Dang Danh Mong Mong Mong Cheng Zhang Sou Shen Ge Cha Yu Hui Che Jiao Zhu Shu Xiao Ning Pan Jiang Jiang Diao Zong Qiang Qiu Feng Zhan Ke Die Ze Guang Se...
607
607
0.574959
7949bfdb05efe16fbab5fc34fb448a282c8c1e7c
1,211
py
Python
cvxpy/reductions/dcp2cone/atom_canonicalizers/mul_canon.py
mostafaelaraby/cvxpy
078e025be8b8315b5f579bd0209e8e3a1e2a2a19
[ "ECL-2.0", "Apache-2.0" ]
1
2020-10-21T22:15:55.000Z
2020-10-21T22:15:55.000Z
cvxpy/reductions/dcp2cone/atom_canonicalizers/mul_canon.py
mostafaelaraby/cvxpy
078e025be8b8315b5f579bd0209e8e3a1e2a2a19
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cvxpy/reductions/dcp2cone/atom_canonicalizers/mul_canon.py
mostafaelaraby/cvxpy
078e025be8b8315b5f579bd0209e8e3a1e2a2a19
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-16T08:43:33.000Z
2020-11-16T08:43:33.000Z
from cvxpy.expressions.variable import Variable from cvxpy.utilities import scopes # TODO(akshayka): expose as a reduction for user's convenience def mul_canon(expr, args): # Only allow param * var (not var * param). Associate right to left. # TODO: Only descend if both sides have parameters lhs = args[0]...
30.275
72
0.615194
7949c04b52334035e4a93de37c2afd940e8d7ba3
5,272
py
Python
dataent/commands/scheduler.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
dataent/commands/scheduler.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
6
2020-03-24T17:15:56.000Z
2022-02-10T18:41:31.000Z
dataent/commands/scheduler.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, absolute_import, print_function import click import sys import dataent from dataent.utils import cint from dataent.commands import pass_context, get_site def _is_scheduler_enabled(): enable_scheduler = False try: dataent.connect() enable_scheduler = cint(dataent.db.get_si...
26.761421
128
0.743361
7949c0897a2ff802477791b7589b0eb77d8a7ca1
62,075
py
Python
untitled.py
Steve-YJ/sagemaker-studio-end-to-end
2227bd22d531b2b41e3abcc4778a3e4d2b7aada8
[ "MIT" ]
1
2021-04-15T00:47:16.000Z
2021-04-15T00:47:16.000Z
untitled.py
Steve-YJ/sagemaker-studio-end-to-end
2227bd22d531b2b41e3abcc4778a3e4d2b7aada8
[ "MIT" ]
null
null
null
untitled.py
Steve-YJ/sagemaker-studio-end-to-end
2227bd22d531b2b41e3abcc4778a3e4d2b7aada8
[ "MIT" ]
null
null
null
from pyspark.sql.session import SparkSession from pyspark.sql.dataframe import DataFrame # You may want to configure the Spark Context with the right credentials provider. spark = SparkSession.builder.master('local').getOrCreate() mode = None def capture_stdout(func, *args, **kwargs): """Capture standard output ...
40.545395
387
0.679613
7949c22e3d0f8a9f1429ac74fb8b1711cc87c423
5,906
py
Python
assignment5/linkshort/linkshort_test.py
rahulraj/web_projects
4d16cb7d7a9c0e408d5f44165dbdc050bbaceddd
[ "MIT" ]
1
2017-04-25T07:06:22.000Z
2017-04-25T07:06:22.000Z
assignment5/linkshort/linkshort_test.py
rahulraj/web_projects
4d16cb7d7a9c0e408d5f44165dbdc050bbaceddd
[ "MIT" ]
null
null
null
assignment5/linkshort/linkshort_test.py
rahulraj/web_projects
4d16cb7d7a9c0e408d5f44165dbdc050bbaceddd
[ "MIT" ]
null
null
null
import unittest import tempfile import os import simplejson as json from functools import partial import __init__ as linkshort class LinkShortTest(unittest.TestCase): def setUp(self): self.database_handle, linkshort.app.database = tempfile.mkstemp() self.app = linkshort.app.test_client() linkshort.initia...
35.154762
83
0.734677
7949c24318db3531fe578c4e1d6e70e7aa965cb8
1,133
py
Python
IntroToCS_ex4/check_update_word_pattern.py
nadavWeisler/IntroToCS
725fc8822eeb34f6917692846689dee29b24af55
[ "MIT" ]
null
null
null
IntroToCS_ex4/check_update_word_pattern.py
nadavWeisler/IntroToCS
725fc8822eeb34f6917692846689dee29b24af55
[ "MIT" ]
null
null
null
IntroToCS_ex4/check_update_word_pattern.py
nadavWeisler/IntroToCS
725fc8822eeb34f6917692846689dee29b24af55
[ "MIT" ]
null
null
null
############################################################# # FILE : check_update_word_pattern.py # WRITER : Nadav Weisler , weisler , 316493758 # EXERCISE : intro2cs ex4 2019 - Hangman # DESCRIPTION: test several inputs for the # function "update_word_pattern from hangman.py #####################################...
22.66
80
0.494263
7949c3ba293422c43e32702126015f51b411990d
7,664
py
Python
pet_ct/data/labeler.py
seyuboglu/weakly-supervised-petct
182821ae6b6abe1bc3623692aeba85da8083b27b
[ "Apache-2.0" ]
9
2020-08-09T23:25:41.000Z
2022-03-09T20:24:02.000Z
pet_ct/data/labeler.py
seyuboglu/weakly-supervised-petct
182821ae6b6abe1bc3623692aeba85da8083b27b
[ "Apache-2.0" ]
4
2020-09-17T10:47:09.000Z
2022-03-12T00:20:26.000Z
pet_ct/data/labeler.py
geoffreyangus/pet-ct
fa96a07734afade475f6a1e1587ec14965fe2de3
[ "Apache-2.0" ]
1
2021-04-12T17:42:02.000Z
2021-04-12T17:42:02.000Z
""" noisy labeling functions to be used for weak supervision tasks. """ import re import pet_ct.data.term_graphs as term_graphs import pet_ct.data.match_fns as match_fns class Labeler(object): """ Labeler must always return a tuple of `labels` and a list of `edges`, denoting each label by its index in `l...
35.813084
99
0.522573
7949c607dd0195abd13aec31c53174d3358c5e0e
3,062
py
Python
src/rock_rhino_image_processor/rock_rhino_image_processor/robot_enable.py
househear/_ws_moveit2
ea5c43ddd412ade6b4bebbdb929b6e08b7a5e888
[ "Apache-2.0" ]
null
null
null
src/rock_rhino_image_processor/rock_rhino_image_processor/robot_enable.py
househear/_ws_moveit2
ea5c43ddd412ade6b4bebbdb929b6e08b7a5e888
[ "Apache-2.0" ]
null
null
null
src/rock_rhino_image_processor/rock_rhino_image_processor/robot_enable.py
househear/_ws_moveit2
ea5c43ddd412ade6b4bebbdb929b6e08b7a5e888
[ "Apache-2.0" ]
null
null
null
# Copyright 1996-2020 Soft_illusion. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
35.195402
74
0.683867
7949c67473b9681ec59a45d555e98a842a31b776
4,419
py
Python
data/stuff.py
loganstone/rogue
ffcdd6073178e4fe5ae4774ef9d98b185cf1cc9e
[ "MIT" ]
null
null
null
data/stuff.py
loganstone/rogue
ffcdd6073178e4fe5ae4774ef9d98b185cf1cc9e
[ "MIT" ]
null
null
null
data/stuff.py
loganstone/rogue
ffcdd6073178e4fe5ae4774ef9d98b185cf1cc9e
[ "MIT" ]
null
null
null
import tcod from random import randint from components.equipment import EquipmentSlots from components.equippable import Equippable from components.item import Item from entity import Entity from render_functions import RenderOrder from game_messages import Message from item_functions import (cast_confuse, ...
24.016304
69
0.572301
7949c82dd193e835afd703e167c31176ce1d93c9
3,938
py
Python
tests/unit/states/grafana_datasource_test.py
preoctopus/salt
aceaaa0e2f2f2ff29a694393bd82bba0d88fa44d
[ "Apache-2.0" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
tests/unit/states/grafana_datasource_test.py
preoctopus/salt
aceaaa0e2f2f2ff29a694393bd82bba0d88fa44d
[ "Apache-2.0" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
tests/unit/states/grafana_datasource_test.py
preoctopus/salt
aceaaa0e2f2f2ff29a694393bd82bba0d88fa44d
[ "Apache-2.0" ]
2
2017-01-05T16:14:59.000Z
2019-01-31T23:15:25.000Z
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting import skipIf, TestCase from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON, Mock, MagicMock, patch ) from salttesting.helpers import ensure_in_syspath ensure_in_sysp...
40.597938
99
0.579736
7949c87e8954ad60872aa0ad909597e63eadba92
2,425
py
Python
multi-scale-economic-dynamics/control.py
sitar777/math-modeling-2022
cea86c26eac5002f31a69414059e593143598f77
[ "Apache-2.0" ]
null
null
null
multi-scale-economic-dynamics/control.py
sitar777/math-modeling-2022
cea86c26eac5002f31a69414059e593143598f77
[ "Apache-2.0" ]
null
null
null
multi-scale-economic-dynamics/control.py
sitar777/math-modeling-2022
cea86c26eac5002f31a69414059e593143598f77
[ "Apache-2.0" ]
null
null
null
from scipy.integrate import RK45 import matplotlib.pyplot as plt COEFFS_FRANCE = [ .0221, .4608, -.0077, .5585, -2.0733, .1453, .0067, 1.1813, -0.51, ] def ode_system(t, v): coeffs = COEFFS_FRANCE control = [ [-0.016, 0], [-15, 0.1], [0, 0], ]...
24.744898
118
0.489072
7949c8853532a536be5126e01c4f6b29fb279038
14,319
py
Python
StichensisTest/TreeCalcs.py
northcoastmountainrat/Sitchensis
8e292dd91dd915495a04ab0abd9a606db7fd9ab4
[ "MIT" ]
null
null
null
StichensisTest/TreeCalcs.py
northcoastmountainrat/Sitchensis
8e292dd91dd915495a04ab0abd9a606db7fd9ab4
[ "MIT" ]
12
2018-04-04T20:27:52.000Z
2018-05-02T17:42:59.000Z
StichensisTest/TreeCalcs.py
northcoastmountainrat/Sitchensis
8e292dd91dd915495a04ab0abd9a606db7fd9ab4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 13 12:46:48 2017 @author: rdk10 """ import numpy as np import pandas as pd #For storing data as a data.frame #import os, sys ##import numpy as np #os.chdir('C:/Users/rdk10/Desktop/ComputerProgramming/Python/TreeCalcs') #use t...
55.933594
226
0.507019
7949c8f0c73e255221fba021043f4afdc24dd1c0
338
py
Python
tests/test_data_extractor.py
DavidRobertQuinn/IV
eaa22b0ee98cb7186f461f0ca464299c96f0f189
[ "Apache-2.0" ]
null
null
null
tests/test_data_extractor.py
DavidRobertQuinn/IV
eaa22b0ee98cb7186f461f0ca464299c96f0f189
[ "Apache-2.0" ]
null
null
null
tests/test_data_extractor.py
DavidRobertQuinn/IV
eaa22b0ee98cb7186f461f0ca464299c96f0f189
[ "Apache-2.0" ]
1
2019-07-12T16:14:01.000Z
2019-07-12T16:14:01.000Z
from IV.data_extractor import create_PV_dataframe import pandas as pd import os HERE = os.path.dirname(__file__) test_data_loc = os.path.join(HERE, "test_data") def test_create_PV_dataframe(): df = create_PV_dataframe( "test", "test", test_data_loc, light=True, force_analysis=True) assert isinstance(...
26
71
0.754438
7949c96c2527ef50872a663a1bb8d924022350ce
8,544
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/_express_route_links_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/_express_route_links_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/_express_route_links_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.466667
198
0.668656
7949c9870f617671d4eb3fb0eb74359d2a70f649
770
py
Python
sample_app/_verify_user.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
sample_app/_verify_user.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
sample_app/_verify_user.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
import click from accelbyte_py_sdk.api.iam import admin_verify_user_without_verification_code_v3 from ._utils import login_as as login_as_internal @click.command() @click.argument("user_id") @click.option("--namespace") @click.option("--doc", type=bool) @click.option("--login_as", type=click.Choice(["client", "user...
26.551724
88
0.709091
7949ca2865027ea0e1f90df1d73a9c9921501aac
11,477
py
Python
lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_aaa_server_host.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_aaa_server_host.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_aaa_server_host.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
29.888021
83
0.611658
7949ca9863e34ed9d0c57c8edc8383e5102957d6
541
py
Python
mail_alias_manager/util/debug_routes/__init__.py
stuvusIT/mail_alias_manager
260b6d1da4db03079afee159c23c3f83f4e75937
[ "MIT" ]
3
2020-11-21T13:10:13.000Z
2021-06-04T12:58:21.000Z
mail_alias_manager/util/debug_routes/__init__.py
stuvusIT/mail_alias_manager
260b6d1da4db03079afee159c23c3f83f4e75937
[ "MIT" ]
1
2021-11-14T18:55:44.000Z
2021-11-14T18:55:44.000Z
mail_alias_manager/util/debug_routes/__init__.py
stuvusIT/mail_alias_manager
260b6d1da4db03079afee159c23c3f83f4e75937
[ "MIT" ]
2
2020-11-21T13:20:10.000Z
2021-06-04T13:03:27.000Z
""" Module containing Debug Methods and sites. This Module should only be loaded in debug Mode. """ from flask.app import Flask from . import root # noqa from . import routes # noqa def register_debug_routes(app: Flask): """Register the debug routes blueprint with the flask app.""" if not app.config["DEBU...
30.055556
88
0.719039
7949caa0b3baa8d2fe9618104a4c52a16005a9c8
5,079
py
Python
script/runTazer.py
jstrube/tazer
18a6d66ad2c20376609f1af7940e43b2031e4fd0
[ "BSD-3-Clause" ]
null
null
null
script/runTazer.py
jstrube/tazer
18a6d66ad2c20376609f1af7940e43b2031e4fd0
[ "BSD-3-Clause" ]
null
null
null
script/runTazer.py
jstrube/tazer
18a6d66ad2c20376609f1af7940e43b2031e4fd0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import sys import argparse import tazerUtil as tu # Check python version def checkPython(): if sys.version_info.major < 3: print("This script was tested with python version 3.7. Thus it requires python 3") ver = "python " + str(sys.version_info.major) + "." + str(sys.version_info....
44.165217
131
0.692065
7949cae2cafb04608c997156a078a9263c806b47
146
py
Python
app/backend/emailtemplates/admin.py
NicholasCF/meridien
dd00caf341d4c9979b89dc8441224ff2b97eac7f
[ "MIT" ]
null
null
null
app/backend/emailtemplates/admin.py
NicholasCF/meridien
dd00caf341d4c9979b89dc8441224ff2b97eac7f
[ "MIT" ]
41
2020-05-24T06:47:53.000Z
2022-02-27T11:10:41.000Z
app/backend/emailtemplates/admin.py
NicholasCF/meridien
dd00caf341d4c9979b89dc8441224ff2b97eac7f
[ "MIT" ]
2
2020-11-26T12:19:30.000Z
2020-12-19T01:14:02.000Z
from django.contrib import admin from emailtemplates.models import EmailTemplate # Register your models here. admin.site.register(EmailTemplate)
24.333333
47
0.842466
7949cb841e60289f7b5204ce7764e11ba9ab5b77
71,250
py
Python
QMTest/TestCommonTests.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2017-01-28T15:39:07.000Z
2017-01-28T15:39:07.000Z
QMTest/TestCommonTests.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2020-05-19T02:59:19.000Z
2020-05-21T09:05:19.000Z
QMTest/TestCommonTests.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
2
2018-01-16T11:29:16.000Z
2020-05-13T16:48:26.000Z
#!/usr/bin/env python """ TestCommonTests.py: Unit tests for the TestCommon.py module. Copyright 2000-2010 Steven Knight This module is free software, and you may redistribute it and/or modify it under the same terms as Python itself, so long as this copyright message and disclaimer are retained in their original for...
30.435711
111
0.525235
7949cc2babbaaaffa5e411764d29ed573a0c7c69
8,092
py
Python
test/test_database.py
darcyabjones/acc-to-tax
608651a4f055c75839eef26a9b4a0582f5840ed2
[ "MIT" ]
null
null
null
test/test_database.py
darcyabjones/acc-to-tax
608651a4f055c75839eef26a9b4a0582f5840ed2
[ "MIT" ]
null
null
null
test/test_database.py
darcyabjones/acc-to-tax
608651a4f055c75839eef26a9b4a0582f5840ed2
[ "MIT" ]
null
null
null
""" """ import os import re from unittest.mock import MagicMock import pytest from acc2tax.database import int2bool from acc2tax.database import bool2int from acc2tax.database import Base from acc2tax.database import BaseTable from acc2tax.database import Acc2Tax from acc2tax.database import Nodes from acc2tax.datab...
30.421053
96
0.498023
7949cd037e31307fbc988a596decd4ecf4e0dfad
6,702
py
Python
lib/surface/compute/url_maps/remove_host_rule.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/url_maps/remove_host_rule.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/url_maps/remove_host_rule.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2014 Google 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 requir...
35.839572
79
0.693524
7949ce4693772bd404fef33280f01f30cf041320
3,135
py
Python
pt_bt/pso.py
LukeKort/Opp_lite
e47b0a1e38dc1e675663c83dc2d75f4506a859e5
[ "MIT" ]
null
null
null
pt_bt/pso.py
LukeKort/Opp_lite
e47b0a1e38dc1e675663c83dc2d75f4506a859e5
[ "MIT" ]
null
null
null
pt_bt/pso.py
LukeKort/Opp_lite
e47b0a1e38dc1e675663c83dc2d75f4506a859e5
[ "MIT" ]
null
null
null
# Particle Swarm (Aug. 04, 2021) import time import numpy as np import random as rand from importlib import reload #to reload a previuly loaded file def pso(n_particles,n_variables,n_iterations,tolerance,a,b,pso_only_w,pso_only_c1,pso_only_c2): from random_matrix import radom_generator #random generator. takes x...
49.761905
152
0.610845
7949ced8450baf9835425acb6c6215ccc23e19c3
7,723
py
Python
cvlib/object_detection.py
wajahatali93/cvlib
2722470f22b44141b989c31acbaa1ec08d694050
[ "MIT" ]
null
null
null
cvlib/object_detection.py
wajahatali93/cvlib
2722470f22b44141b989c31acbaa1ec08d694050
[ "MIT" ]
null
null
null
cvlib/object_detection.py
wajahatali93/cvlib
2722470f22b44141b989c31acbaa1ec08d694050
[ "MIT" ]
null
null
null
import cv2 import os import numpy as np from .utils import download_file initialize = True net = None dest_dir = os.path.expanduser('~') + os.path.sep + '.cvlib' + os.path.sep + 'object_detection' + os.path.sep + 'yolo' + os.path.sep + 'yolov3' classes = None COLORS = np.random.uniform(0, 255, size=(80, 3)) def popul...
31.522449
142
0.582546
7949cef9db58642cf4708cbd41d38ef4a91abb86
252
py
Python
falmer/matte/utils.py
sussexstudent/services-api
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
2
2017-04-27T19:35:59.000Z
2017-06-13T16:19:33.000Z
falmer/matte/utils.py
sussexstudent/falmer
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
975
2017-04-13T11:31:07.000Z
2022-02-10T07:46:18.000Z
falmer/matte/utils.py
sussexstudent/services-api
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
3
2018-05-09T06:42:25.000Z
2020-12-10T18:29:30.000Z
def create_image_from_bytes(file, file_name, internal_source): from .models import MatteImage image = MatteImage() image.file = file image.title = file_name image.internal_source = internal_source image.save() return image
25.2
62
0.722222
7949cf3833d15ea38a31bff5eebb536f90a0a27f
16,396
py
Python
scripts/initial.py
thunlp/HNRE
ab34ed9849f761d7e69d3dc42e3095d0e567b63c
[ "MIT" ]
96
2018-08-29T08:57:25.000Z
2021-12-26T08:19:48.000Z
scripts/initial.py
thunlp/HNRE
ab34ed9849f761d7e69d3dc42e3095d0e567b63c
[ "MIT" ]
14
2018-10-19T10:33:40.000Z
2022-01-08T23:37:26.000Z
scripts/initial.py
thunlp/HNRE
ab34ed9849f761d7e69d3dc42e3095d0e567b63c
[ "MIT" ]
25
2018-10-18T09:46:24.000Z
2021-12-01T09:10:48.000Z
import numpy as np import os import sys import json def makedirs(path): if not os.path.exists(path): os.makedirs(path) makedirs('data/pn/') makedirs('outputs/summary/') makedirs('outputs/ckpt/') makedirs('outputs/logits/') # folder of training datasets if len(sys.argv) > 1: data_path = sys.argv[1] el...
34.517895
136
0.582886
7949cf3e53dc7fa3d65da4affdc230ffc54a5f82
1,302
py
Python
test.py
samadams13/Linux-Email-Automation
202fcac287f3c4cb71892d85b47a7c8a6dd6dc42
[ "MIT" ]
null
null
null
test.py
samadams13/Linux-Email-Automation
202fcac287f3c4cb71892d85b47a7c8a6dd6dc42
[ "MIT" ]
null
null
null
test.py
samadams13/Linux-Email-Automation
202fcac287f3c4cb71892d85b47a7c8a6dd6dc42
[ "MIT" ]
null
null
null
import smtplib, ssl, time, os from email.mime.text import MIMEText from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart ''' This file takes the SMTP Sender Email address, Receiver Email address as inputs and sends a mail with a specific message using GMail as the SMTP server. This fi...
36.166667
105
0.764209
7949cf46c6daf77a9c65c056672897139376c8b0
4,127
py
Python
mypy/erasetype.py
crusaderky/mypy
b29a4330d2d7d1032c30a1990e7f1c477db070fd
[ "PSF-2.0" ]
null
null
null
mypy/erasetype.py
crusaderky/mypy
b29a4330d2d7d1032c30a1990e7f1c477db070fd
[ "PSF-2.0" ]
null
null
null
mypy/erasetype.py
crusaderky/mypy
b29a4330d2d7d1032c30a1990e7f1c477db070fd
[ "PSF-2.0" ]
null
null
null
from typing import Optional, Container, Callable from mypy.types import ( Type, TypeVisitor, UnboundType, AnyType, NoneType, TypeVarId, Instance, TypeVarType, CallableType, TupleType, TypedDictType, UnionType, Overloaded, ErasedType, PartialType, DeletedType, TypeTranslator, UninhabitedType, TypeType, Type...
33.827869
91
0.665617
7949d04136353b10331d93a21f465e4406fa8185
1,573
py
Python
setup.py
tspp520/PaddleX
5f3974c7ba7b378cc2969b8609a7ee682e59a5c1
[ "Apache-2.0" ]
1
2020-05-06T13:07:18.000Z
2020-05-06T13:07:18.000Z
setup.py
chunfeng0301/PaddleX
5f3974c7ba7b378cc2969b8609a7ee682e59a5c1
[ "Apache-2.0" ]
null
null
null
setup.py
chunfeng0301/PaddleX
5f3974c7ba7b378cc2969b8609a7ee682e59a5c1
[ "Apache-2.0" ]
null
null
null
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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...
35.75
106
0.699936
7949d06455dc32bde6b56923227a5e16ecd95225
577
py
Python
Python/venv/lib/python3.6/site-packages/png/__init__.py
Nyahmi/ET-WorldGenerator
7506102ca1116536ebcdcdb352cf96b93cd53120
[ "MIT" ]
null
null
null
Python/venv/lib/python3.6/site-packages/png/__init__.py
Nyahmi/ET-WorldGenerator
7506102ca1116536ebcdcdb352cf96b93cd53120
[ "MIT" ]
null
null
null
Python/venv/lib/python3.6/site-packages/png/__init__.py
Nyahmi/ET-WorldGenerator
7506102ca1116536ebcdcdb352cf96b93cd53120
[ "MIT" ]
null
null
null
try: exec("from .png import *", globals(), locals()) # Following methods are not parts of API and imports only for unittest exec("from .png import _main", globals(), locals()) exec("from .png import strtobytes", globals(), locals()) exec("from .png import array", globals(), locals()) except S...
41.214286
76
0.668977
7949d0c48c5314b5696589328376a79ccc061186
5,131
py
Python
colossus/apps/campaigns/api.py
hrithik098/colossus
9544838dfc2ab75895d8605d1480fd019b107828
[ "MIT" ]
6
2021-02-08T02:46:48.000Z
2021-03-29T10:26:58.000Z
colossus/apps/campaigns/api.py
qube-ai/colossus
9544838dfc2ab75895d8605d1480fd019b107828
[ "MIT" ]
null
null
null
colossus/apps/campaigns/api.py
qube-ai/colossus
9544838dfc2ab75895d8605d1480fd019b107828
[ "MIT" ]
null
null
null
import logging import re from smtplib import SMTPException import html2text from django.contrib.sites.shortcuts import get_current_site from django.core.mail import EmailMultiAlternatives from django.utils import timezone from django.utils.translation import gettext as _ from colossus.apps.campaigns.constants import ...
36.913669
116
0.682908
7949d0da585f467394c19cbf96fb5353ce29be6d
1,076
py
Python
src/games/domino/module/players/strategies/alphazero.py
2kodevs/cooperAItive
910c4c1cb356e3c404ce4b9a64c812cab3333742
[ "MIT" ]
1
2021-09-16T12:58:24.000Z
2021-09-16T12:58:24.000Z
src/games/domino/module/players/strategies/alphazero.py
2kodevs/cooperAItive
910c4c1cb356e3c404ce4b9a64c812cab3333742
[ "MIT" ]
3
2021-09-08T23:20:20.000Z
2022-01-30T22:45:44.000Z
src/games/domino/module/players/strategies/alphazero.py
2kodevs/cooperAItive
910c4c1cb356e3c404ce4b9a64c812cab3333742
[ "MIT" ]
null
null
null
from ..player import BasePlayer from .utils.alphazero import encoder_generator, rollout_maker, selector_maker from .utils.mc import monte_carlo from .models import AlphaZeroNet from .utils import parse_bool class AlphaZero(BasePlayer): def __init__(self, name, handouts, rollouts, NN, tag='', load_model=True): ...
30.742857
112
0.618959
7949d1c2f88e8fdb6e561cdfd1e2e96f9ed13e1f
779
py
Python
qmpy/analysis/thermodynamics/tests.py
tachyontraveler/qmpy
f024de3aa85d4367cd31775bd53eede30c74c083
[ "MIT" ]
103
2015-02-13T16:51:59.000Z
2022-03-24T22:08:54.000Z
qmpy/analysis/thermodynamics/tests.py
tachyontraveler/qmpy
f024de3aa85d4367cd31775bd53eede30c74c083
[ "MIT" ]
59
2015-12-02T22:43:21.000Z
2022-03-28T03:54:44.000Z
qmpy/analysis/thermodynamics/tests.py
tachyontraveler/qmpy
f024de3aa85d4367cd31775bd53eede30c74c083
[ "MIT" ]
62
2015-02-24T21:58:59.000Z
2022-03-21T16:49:09.000Z
from django.test import TestCase from qmpy.analysis.thermodynamics import * class PhaseTestCase(TestCase): def test_create(self): test = Phase(composition={"Li": 2, "Fe": 4, "O": 6}, energy=-1.2345) self.assertEqual(test.name, "LiFe2O3") self.assertEqual(test.space, set(["Fe", "Li", "O"]))...
35.409091
77
0.591784
7949d1ccac73ed84545ab848531e848ec4474175
3,421
py
Python
pympler/mprofile.py
mrJean1/pympler
a24dd8f22c427e9acd7ebfd8525b3db2f4b9abfe
[ "Apache-2.0" ]
null
null
null
pympler/mprofile.py
mrJean1/pympler
a24dd8f22c427e9acd7ebfd8525b3db2f4b9abfe
[ "Apache-2.0" ]
null
null
null
pympler/mprofile.py
mrJean1/pympler
a24dd8f22c427e9acd7ebfd8525b3db2f4b9abfe
[ "Apache-2.0" ]
2
2018-04-04T17:13:01.000Z
2018-04-17T21:15:25.000Z
""" Memory usage profiler for Python. """ import inspect import sys from pympler import muppy class MProfiler(object): """A memory usage profiler class. Memory data for each function is stored as a 3-element list in the dictionary self.memories. The index is always a codepoint (see below). The foll...
35.268041
78
0.590763
7949d218e56a09f778ca6ed4aeefa53bf31bdd01
5,147
py
Python
pl_bolts/datamodules/ssl_imagenet_datamodule.py
btwardow/pytorch-lightning-bolts
4a7b6ffe0fcbeee37f8bac6af1e926469b2052bf
[ "Apache-2.0" ]
1
2021-06-28T03:24:11.000Z
2021-06-28T03:24:11.000Z
pl_bolts/datamodules/ssl_imagenet_datamodule.py
btwardow/pytorch-lightning-bolts
4a7b6ffe0fcbeee37f8bac6af1e926469b2052bf
[ "Apache-2.0" ]
null
null
null
pl_bolts/datamodules/ssl_imagenet_datamodule.py
btwardow/pytorch-lightning-bolts
4a7b6ffe0fcbeee37f8bac6af1e926469b2052bf
[ "Apache-2.0" ]
null
null
null
import os from pytorch_lightning import LightningDataModule from torch.utils.data import DataLoader from pl_bolts.datasets.imagenet_dataset import UnlabeledImagenet from pl_bolts.transforms.dataset_normalizations import imagenet_normalization from pl_bolts.utils import _TORCHVISION_AVAILABLE from pl_bolts.utils.warni...
34.543624
107
0.628133
7949d26e5a187b3306ad26f86ec2b4816ea9b988
25,225
py
Python
Integrations/python/test/testTableTools.py
AlSpinks/deephaven-core
19686fb518229fd7e331071205cc56fca42ad943
[ "MIT" ]
null
null
null
Integrations/python/test/testTableTools.py
AlSpinks/deephaven-core
19686fb518229fd7e331071205cc56fca42ad943
[ "MIT" ]
1
2022-03-03T21:24:40.000Z
2022-03-03T21:24:54.000Z
Integrations/python/test/testTableTools.py
AlSpinks/deephaven-core
19686fb518229fd7e331071205cc56fca42ad943
[ "MIT" ]
null
null
null
# # Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending # ############################################################################## # NOTE: the jvm should have been initialized, or this test will certainly fail ############################################################################## import sys i...
49.075875
126
0.614073
7949d279bf67566ef448917878b1798a9c6560fc
221
py
Python
contrib/wallettools/walletchangepass.py
thachpv91/bapcoin85
3f889681d8487846f98f1b077ff03928b15038d8
[ "MIT" ]
null
null
null
contrib/wallettools/walletchangepass.py
thachpv91/bapcoin85
3f889681d8487846f98f1b077ff03928b15038d8
[ "MIT" ]
null
null
null
contrib/wallettools/walletchangepass.py
thachpv91/bapcoin85
3f889681d8487846f98f1b077ff03928b15038d8
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:45882") pwd = raw_input("Enter old wallet passphrase: ") pwd2 = raw_input("Enter new wallet passphrase: ") access.walletpassphrasechange(pwd, pwd2)
36.833333
49
0.769231
7949d37ea786d83a734f17e4bc7fcfa9ab835b97
1,292
bzl
Python
dotnet/private/deps/nunit.bzl
lb5tr/rules_dotnet
43479c10ef07156a29a4265caa72db33279219db
[ "Apache-2.0" ]
null
null
null
dotnet/private/deps/nunit.bzl
lb5tr/rules_dotnet
43479c10ef07156a29a4265caa72db33279219db
[ "Apache-2.0" ]
null
null
null
dotnet/private/deps/nunit.bzl
lb5tr/rules_dotnet
43479c10ef07156a29a4265caa72db33279219db
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") def dotnet_repositories_nunit(): http_file( name = "nuget", urls = ["https://dist.nuget.org/win-x86-commandline/v4.6.2/nuget.exe"], sha256 = "2c562c1a18d720d4885546083ec8eaad6773a6b80befb02564088cc1e55b304e", ...
39.151515
91
0.674923
7949d43fef3b196646bb8660a2bf6d9f524e0e1f
17,283
py
Python
omnibot/processor.py
lyft/omnibot
8e9000e872595010e4c3e294e2df39a33f05d491
[ "Apache-2.0" ]
72
2019-11-21T00:02:18.000Z
2022-01-20T02:23:09.000Z
omnibot/processor.py
lyft/omnibot
8e9000e872595010e4c3e294e2df39a33f05d491
[ "Apache-2.0" ]
30
2019-11-22T04:24:57.000Z
2021-09-24T22:50:12.000Z
omnibot/processor.py
lyft/omnibot
8e9000e872595010e4c3e294e2df39a33f05d491
[ "Apache-2.0" ]
6
2019-12-26T00:37:41.000Z
2021-04-09T04:21:17.000Z
""" Core processing logic. """ import re import json import importlib import requests from omnibot import logging from omnibot import settings from omnibot.services import slack from omnibot.services.slack.message import Message, MessageUnsupportedError from omnibot.services.slack.slash_command import SlashCommand fr...
33.690058
113
0.567494
7949d51ef0576402bbde4f048ab92655db724063
7,646
py
Python
tests/extras/test_postgres.py
bharel/Yellowbox
d397d878ccd074af21f552cb1375714ba97e9e22
[ "MIT" ]
1
2020-08-07T20:02:12.000Z
2020-08-07T20:02:12.000Z
tests/extras/test_postgres.py
bharel/yellowbox
d397d878ccd074af21f552cb1375714ba97e9e22
[ "MIT" ]
null
null
null
tests/extras/test_postgres.py
bharel/yellowbox
d397d878ccd074af21f552cb1375714ba97e9e22
[ "MIT" ]
null
null
null
from pytest import fixture, mark from sqlalchemy import Column, Integer, MetaData, String, Table, create_engine, select from tests.util import unique_name_generator from yellowbox import connect, temp_network from yellowbox.containers import upload_file from yellowbox.extras.postgresql import POSTGRES_INTERNAL_PORT, P...
34.754545
100
0.59639
7949d6aa835152feeeb100320ea47f2697bff0aa
744
py
Python
language/Basics/dictionaries3.py
Binary-bug/Python
233425ded6abc26c889599a82a181487789e3bab
[ "MIT" ]
null
null
null
language/Basics/dictionaries3.py
Binary-bug/Python
233425ded6abc26c889599a82a181487789e3bab
[ "MIT" ]
null
null
null
language/Basics/dictionaries3.py
Binary-bug/Python
233425ded6abc26c889599a82a181487789e3bab
[ "MIT" ]
null
null
null
fruit = {"orange":"a sweet, orange, citrus fruit", "apple": " good for making cider", "lemon":"a sour, yellow citrus fruit", "grape":"a small, sweet fruit growing in bunches", "lime": "a sour, green citrus fruit", "lime":"its yellow"} print(fruit) # .items will pr...
25.655172
85
0.642473
7949d6d5a03d611505284f723cda9b7838fa3f81
578
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_AX.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_AX.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
5
2020-03-24T16:37:25.000Z
2021-06-10T21:24:54.000Z
upibo-venv/Lib/site-packages/phonenumbers/shortdata/region_AX.py
smbpgroup/upibo
625dcda9f9692c62aeb9fe8f7123a5d407c610ae
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. AX metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AX = PhoneMetadata(id='AX', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2}|75[12]\\d{2}', possible_length=...
64.222222
121
0.766436
7949d6d8c6e513d0c3d178447a46b48751790cd4
10,688
py
Python
fanficfare/writers/base_writer.py
C133742/FanFicFare
66b7de966825ddf1b44f53ea72f8ebcdeeeab73b
[ "Apache-2.0" ]
1
2020-08-27T03:49:02.000Z
2020-08-27T03:49:02.000Z
fanficfare/writers/base_writer.py
C133742/FanFicFare
66b7de966825ddf1b44f53ea72f8ebcdeeeab73b
[ "Apache-2.0" ]
null
null
null
fanficfare/writers/base_writer.py
C133742/FanFicFare
66b7de966825ddf1b44f53ea72f8ebcdeeeab73b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2011 Fanficdownloader team, 2018 FanFicFare team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
40.950192
139
0.573915
7949d73dc8abd8b23ca090be1eca08da0142d808
972
py
Python
mmseg/datasets/pipelines/__init__.py
Togal-ai-Team/mmsegmentation
55f50ec84865270024d847b6e2a787693b90835d
[ "Apache-2.0" ]
null
null
null
mmseg/datasets/pipelines/__init__.py
Togal-ai-Team/mmsegmentation
55f50ec84865270024d847b6e2a787693b90835d
[ "Apache-2.0" ]
null
null
null
mmseg/datasets/pipelines/__init__.py
Togal-ai-Team/mmsegmentation
55f50ec84865270024d847b6e2a787693b90835d
[ "Apache-2.0" ]
1
2022-01-04T01:16:12.000Z
2022-01-04T01:16:12.000Z
# Copyright (c) OpenMMLab. All rights reserved. from .compose import Compose from .formatting import (Collect, ImageToTensor, ToDataContainer, ToTensor, Transpose, to_tensor) from .loading import LoadAnnotations, LoadImageFromFile from .test_time_aug import MultiScaleFlipAug from .transforms im...
48.6
75
0.679012
7949d7bd3525ca9e3e3fbff3c6337b5c402d6886
41,857
py
Python
cup/util/conf.py
0xflotus/CUP
5e4330cb2e4ccdc67ad94f0084e745eed6f96d6b
[ "Apache-2.0" ]
null
null
null
cup/util/conf.py
0xflotus/CUP
5e4330cb2e4ccdc67ad94f0084e745eed6f96d6b
[ "Apache-2.0" ]
null
null
null
cup/util/conf.py
0xflotus/CUP
5e4330cb2e4ccdc67ad94f0084e745eed6f96d6b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -* # Copyright: [CUP] - See LICENSE for details. # Authors: Liu.Jia@baidu, Guannan Ma (@mythmgn), """ :description: Complex and constructive conf support """ import os import time import copy import shutil from xml.dom import minidom # import subprocess import json import...
33.62008
83
0.488855
7949d814ca2438d5469a43697e6e0f18d9762aca
3,353
py
Python
Lab2/Lab.py
GnomGad/PythonLabs
e04e03aee2e3f1c6960e7af707f1c56887c45d32
[ "MIT" ]
null
null
null
Lab2/Lab.py
GnomGad/PythonLabs
e04e03aee2e3f1c6960e7af707f1c56887c45d32
[ "MIT" ]
null
null
null
Lab2/Lab.py
GnomGad/PythonLabs
e04e03aee2e3f1c6960e7af707f1c56887c45d32
[ "MIT" ]
null
null
null
import os import hashlib import random import re import subprocess def Ex1(): rus = "йцукенгшщзхъфывапролджэячсмитьбюё" eng = "qwertyuiopasdfghjklzxcvbnm" Ex1_Result(rus,"Ex1Text.txt") def Ex1_Result(lang,path): with open(path, "r") as file: text = file.read().lower() dtext = {i:text...
28.415254
133
0.555025
7949d8337ed3b54a85fec27c1c99e5e140f0754c
2,345
py
Python
tests/test_env_spec.py
bobh66/hera-workflows
7dc94de3725b13fcba7ff54cd96cb90119ae2591
[ "MIT" ]
null
null
null
tests/test_env_spec.py
bobh66/hera-workflows
7dc94de3725b13fcba7ff54cd96cb90119ae2591
[ "MIT" ]
null
null
null
tests/test_env_spec.py
bobh66/hera-workflows
7dc94de3725b13fcba7ff54cd96cb90119ae2591
[ "MIT" ]
null
null
null
import json from argo_workflows.models import ConfigMapKeySelector, EnvVarSource, SecretKeySelector from pydantic import BaseModel from hera.env import ConfigMapEnvSpec, EnvSpec, SecretEnvSpec class MockModel(BaseModel): field1: int = 1 field2: int = 2 def test_env_spec_sets_base_model(mock_model): m ...
33.985507
88
0.725373
7949d83a10c2a20ae19d5a513ffe3561de54084b
6,356
py
Python
sygnal/helper/context_factory.py
kibablu/sygnal
4f4d7ce014d680a9336bc0723014c40f87393b91
[ "Apache-2.0" ]
98
2015-02-04T21:30:52.000Z
2022-02-27T18:44:40.000Z
sygnal/helper/context_factory.py
kibablu/sygnal
4f4d7ce014d680a9336bc0723014c40f87393b91
[ "Apache-2.0" ]
224
2015-02-21T12:54:29.000Z
2022-03-28T18:52:47.000Z
sygnal/helper/context_factory.py
kibablu/sygnal
4f4d7ce014d680a9336bc0723014c40f87393b91
[ "Apache-2.0" ]
94
2015-02-21T12:49:04.000Z
2022-02-17T12:11:46.000Z
# Copyright 2014-2016 OpenMarket Ltd # Copyright 2019 New Vector Ltd # # 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 ...
40.484076
124
0.708779
7949d889d1b95927344aaf68774b0c6e011afe1b
87
py
Python
spektral/__init__.py
sjiang87/spektral
cef8575f9aa5a724fb125fc5596f52f71580793d
[ "MIT" ]
1
2020-06-25T02:08:40.000Z
2020-06-25T02:08:40.000Z
spektral/__init__.py
sjiang87/spektral
cef8575f9aa5a724fb125fc5596f52f71580793d
[ "MIT" ]
null
null
null
spektral/__init__.py
sjiang87/spektral
cef8575f9aa5a724fb125fc5596f52f71580793d
[ "MIT" ]
null
null
null
from . import datasets from . import layers from . import utils __version__ = '0.5.1'
14.5
22
0.724138
7949d8f0c43df42defb1c222051cdc77687524a5
3,145
py
Python
mistral/db/sqlalchemy/types.py
soda-research/mistral
550a3de9c2defc7ce26336cb705d9c8d87bbaddd
[ "Apache-2.0" ]
3
2015-08-28T04:57:56.000Z
2017-03-27T10:59:56.000Z
mistral/db/sqlalchemy/types.py
soda-research/mistral
550a3de9c2defc7ce26336cb705d9c8d87bbaddd
[ "Apache-2.0" ]
21
2015-04-14T22:41:53.000Z
2019-02-20T09:30:10.000Z
mistral/db/sqlalchemy/types.py
soda-research/mistral
550a3de9c2defc7ce26336cb705d9c8d87bbaddd
[ "Apache-2.0" ]
12
2015-08-14T02:27:37.000Z
2020-12-31T10:09:21.000Z
# Copyright 2013 - Mirantis, 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 ag...
29.12037
77
0.683625
7949d981499b6ba8071165c493de24027ed6ba54
1,025
py
Python
test/test_v1_access_credential_secret_source.py
gabriel-samfira/client-python
c2e184c3cad6797af35b0160a36ffcbba77284a7
[ "Apache-2.0" ]
21
2018-02-21T23:59:28.000Z
2021-12-08T05:47:37.000Z
test/test_v1_access_credential_secret_source.py
gabriel-samfira/client-python
c2e184c3cad6797af35b0160a36ffcbba77284a7
[ "Apache-2.0" ]
47
2018-02-01T15:35:01.000Z
2022-02-11T07:45:54.000Z
test/test_v1_access_credential_secret_source.py
gabriel-samfira/client-python
c2e184c3cad6797af35b0160a36ffcbba77284a7
[ "Apache-2.0" ]
19
2018-04-03T09:20:52.000Z
2021-06-01T06:07:28.000Z
# coding: utf-8 """ KubeVirt API This is KubeVirt API an add-on for Kubernetes. OpenAPI spec version: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest i...
22.777778
100
0.732683
7949da0a237a80e832d317063c1bc70ac02b8909
8,260
py
Python
cairis/test/test_DependencyAPI.py
RachelLar/Cairis
93498fb5334ef1f88f16554823a3b9121c3675b8
[ "Apache-2.0" ]
null
null
null
cairis/test/test_DependencyAPI.py
RachelLar/Cairis
93498fb5334ef1f88f16554823a3b9121c3675b8
[ "Apache-2.0" ]
null
null
null
cairis/test/test_DependencyAPI.py
RachelLar/Cairis
93498fb5334ef1f88f16554823a3b9121c3675b8
[ "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...
44.648649
120
0.719492
7949dab1f6e0425bb2f4eb025f7238d57b02b5b3
19,705
py
Python
multiagent/environment.py
RavenPillmann/multiagent-particle-envs
466cc6953dfc57a0bfba5c37609db3ee7e2508a8
[ "MIT" ]
null
null
null
multiagent/environment.py
RavenPillmann/multiagent-particle-envs
466cc6953dfc57a0bfba5c37609db3ee7e2508a8
[ "MIT" ]
null
null
null
multiagent/environment.py
RavenPillmann/multiagent-particle-envs
466cc6953dfc57a0bfba5c37609db3ee7e2508a8
[ "MIT" ]
null
null
null
import gym from gym import spaces from gym.envs.registration import EnvSpec import numpy as np from multiagent.multi_discrete import MultiDiscrete from multiagent.scenarios.constants import D_LINE, O_LINE, Q_BACK NOT_DONE = 0 Q_BACK_FIRST_DOWN_LINE = 1 AGENT_OUT_OF_BOUNDS = 2 D_LINE_REACHED_Q_BACK = 3 Q_BACK_NOT_IN_BO...
38.713163
147
0.574372
7949db00de54c07f91399857d4370b1f9dde9ead
8,430
py
Python
tfx/orchestration/experimental/interactive/interactive_context_test.py
rtg0795/tfx
63c31b719896eef645df3850d0e6b946e44cd059
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/experimental/interactive/interactive_context_test.py
rtg0795/tfx
63c31b719896eef645df3850d0e6b946e44cd059
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/experimental/interactive/interactive_context_test.py
rtg0795/tfx
63c31b719896eef645df3850d0e6b946e44cd059
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.834711
95
0.681851
7949dcc654078584a7db402a3f685b97bc1a40e0
7,150
py
Python
experiments/murtaza/off_policy_ssl/gym/sac.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/murtaza/off_policy_ssl/gym/sac.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/murtaza/off_policy_ssl/gym/sac.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
""" Test twin sac against various environments. """ import gym from railrl.data_management.env_replay_buffer import EnvReplayBuffer from railrl.launchers.launcher_util import run_experiment import railrl.torch.pytorch_util as ptu from railrl.samplers.data_collector import MdpPathCollector from railrl.samplers.data_coll...
30.952381
83
0.614965
7949dceb549381f448a11eab464a933b8176a3b0
987
py
Python
src/dashboards/context_processors.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
2
2021-09-10T19:40:30.000Z
2022-01-31T07:15:51.000Z
src/dashboards/context_processors.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
null
null
null
src/dashboards/context_processors.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
1
2021-09-10T19:40:42.000Z
2021-09-10T19:40:42.000Z
from django.contrib.auth.models import AnonymousUser from django.core.cache import cache from dashboards.models import Dashboard def dashboards(request): """Fetch and cache data required to render the dashboards menu.""" user = getattr(request, "user") context = {} if not isinstance(user, AnonymousU...
27.416667
76
0.646403
7949dd0d3e2864e058e3c1c9efd9731adcf25e32
326
py
Python
setup.py
Nimphal/world-news
a424603c55245e0922d1b887f4cd7dd0711e6305
[ "MIT" ]
null
null
null
setup.py
Nimphal/world-news
a424603c55245e0922d1b887f4cd7dd0711e6305
[ "MIT" ]
null
null
null
setup.py
Nimphal/world-news
a424603c55245e0922d1b887f4cd7dd0711e6305
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name = 'world-news', version = '1.0.0', packages = find_packages(), install_requires = [ "Flask" ], author = 'Nevelina Aleksandrova', author_email = 'nevelina.aleksandrova@gmail.com', description = 'Map-based world news aggregat...
23.285714
53
0.650307
7949dd2e40fb0cd1649823ac0e3c4c83fbeb354c
2,554
py
Python
test_toolbox.py
atravitz/toolbox
3c98d1a107110655529caa40f1c768466ce52421
[ "MIT" ]
null
null
null
test_toolbox.py
atravitz/toolbox
3c98d1a107110655529caa40f1c768466ce52421
[ "MIT" ]
null
null
null
test_toolbox.py
atravitz/toolbox
3c98d1a107110655529caa40f1c768466ce52421
[ "MIT" ]
null
null
null
"""tests for toolbox.py module.""" import numpy as np from toolbox import * import unittest import numpy.testing as nptest import os import matplotlib.pyplot as plt class PotentialTests(unittest.TestCase): def setUp(self): self.epsilon = 1.0 self.sigma = 1.0 self.R = 0 self.r_values...
34.053333
73
0.612373
7949ddd4fff0edadc9cca18b4de1cea87ad8f725
1,436
py
Python
example/test.py
movingpictures83/OTUSummary
2cc84a2beca4b3ed217a6b6d3d0498fa1c8f24e4
[ "MIT" ]
null
null
null
example/test.py
movingpictures83/OTUSummary
2cc84a2beca4b3ed217a6b6d3d0498fa1c8f24e4
[ "MIT" ]
null
null
null
example/test.py
movingpictures83/OTUSummary
2cc84a2beca4b3ed217a6b6d3d0498fa1c8f24e4
[ "MIT" ]
null
null
null
def isnumber(mystring): digitcount = 0 for i in range(0, len(mystring)): c = mystring[i] if ((not c.isdigit()) and (c != '.') and (not (i == 0 and c == '-'))): return False elif (c.isdigit()): digitcount += 1 if (digitcount != 0): return True def test(...
30.553191
78
0.491643
7949dfc2b5c18d7de0268d2f3a2ed448d884b61c
78
py
Python
Python/01.py
Jose0Cicero1Ribeiro0Junior/Python_Praticas
ad7ae517735e51f25c40d9c38d3efc214d749dfb
[ "MIT" ]
null
null
null
Python/01.py
Jose0Cicero1Ribeiro0Junior/Python_Praticas
ad7ae517735e51f25c40d9c38d3efc214d749dfb
[ "MIT" ]
null
null
null
Python/01.py
Jose0Cicero1Ribeiro0Junior/Python_Praticas
ad7ae517735e51f25c40d9c38d3efc214d749dfb
[ "MIT" ]
null
null
null
# Faça um programa que leia um número inteiro e o imprima n = int(6) print(n)
19.5
57
0.717949
7949dfdfd88eb377da76287b249cdae853691acb
2,127
py
Python
integrationtest/vm/virtualrouter/volume/test_crt_data_volume_tmpt_from_d.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
2
2016-03-23T08:45:44.000Z
2017-06-26T02:40:46.000Z
integrationtest/vm/virtualrouter/volume/test_crt_data_volume_tmpt_from_d.py
KevinDavidMitnick/zstack-woodpecker
96257faaf3c362168d008bdb47002025ad669b24
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/virtualrouter/volume/test_crt_data_volume_tmpt_from_d.py
KevinDavidMitnick/zstack-woodpecker
96257faaf3c362168d008bdb47002025ad669b24
[ "Apache-2.0" ]
2
2020-03-12T03:11:28.000Z
2021-07-26T01:57:58.000Z
''' Create Volume Template from Data Volume @author: Youyk ''' import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import os test_stub = test_lib.lib_get_test_stub() test_obj_dict = test_state.TestStateDict() def ...
31.279412
100
0.728256
7949e01866ac1973fb577ee31a5d5f5847d8ca52
1,117
py
Python
steamapi/getleaguelisting.py
NNTin/Dota-2-Meta-Analyzer
ce19ab414cbe0a8ff720539fd766db69604e3488
[ "MIT" ]
22
2016-03-27T21:28:18.000Z
2021-09-13T14:48:43.000Z
steamapi/getleaguelisting.py
NNTin/Dota-2-Meta-Analyzer
ce19ab414cbe0a8ff720539fd766db69604e3488
[ "MIT" ]
24
2016-03-28T09:39:41.000Z
2018-11-06T20:42:30.000Z
steamapi/getleaguelisting.py
NNTin/Reply-Dota-2-Reddit
e47d20f3d5bfacc9f39625324e57781e8d3f029a
[ "MIT" ]
null
null
null
import requests import time from steamapi.steamapikey import SteamAPIKey #message = True leagueListingDictionary = {} def requestGetLeagueListing(): keyValues = ['name', 'description', 'tournament_url', 'itemdef'] response = {} attempt = 0 while response == {}: URL = "https://api.steamp...
26.595238
99
0.606088
7949e0ae3310068542e313570a433cc3f6fee63e
5,339
py
Python
kubernetes/client/models/v1beta1_network_policy_egress_rule.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
11
2020-10-13T05:27:59.000Z
2021-09-23T02:56:32.000Z
kubernetes/client/models/v1beta1_network_policy_egress_rule.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
48
2020-10-15T09:53:36.000Z
2021-07-05T15:33:24.000Z
kubernetes/client/models/v1beta1_network_policy_egress_rule.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
4
2020-12-04T08:51:35.000Z
2022-03-27T09:42:20.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
34.445161
398
0.622588
7949e0e3ffeae813308c77f2755779fdaf13cf1c
355
py
Python
src/anyconfig/api/datatypes.py
Terrance-forks/python-anyconfig
21d7c0e30287569b394972557b5a54fab03bcd5c
[ "MIT" ]
213
2015-01-14T22:09:20.000Z
2022-02-02T17:23:41.000Z
src/anyconfig/api/datatypes.py
Terrance-forks/python-anyconfig
21d7c0e30287569b394972557b5a54fab03bcd5c
[ "MIT" ]
120
2015-03-13T15:47:43.000Z
2022-03-31T01:55:34.000Z
src/anyconfig/api/datatypes.py
Terrance-forks/python-anyconfig
21d7c0e30287569b394972557b5a54fab03bcd5c
[ "MIT" ]
34
2015-01-12T05:03:30.000Z
2021-09-09T14:40:56.000Z
# # Copyright (C) 2012 Satoru SATOH <satoru.satoh@gmail.com> # SPDX-License-Identifier: MIT # # pylint: disable=unused-import,import-error,invalid-name r"""Public APIs to dump configurations data. """ import typing from ..backend import base from ..common import InDataT MaybeDataT = typing.Optional[InDataT] ParserT ...
19.722222
58
0.746479
7949e11430f9258dd2a181a66625fa88cfe610ac
1,892
py
Python
url_tldr.py
AmanKishore/GPT3-Experiments
ea661b66d6cab843e406c65f7a1db1de41c62a57
[ "MIT" ]
null
null
null
url_tldr.py
AmanKishore/GPT3-Experiments
ea661b66d6cab843e406c65f7a1db1de41c62a57
[ "MIT" ]
null
null
null
url_tldr.py
AmanKishore/GPT3-Experiments
ea661b66d6cab843e406c65f7a1db1de41c62a57
[ "MIT" ]
null
null
null
import os import openai import re from collections import OrderedDict import requests, PyPDF2 from io import BytesIO from WebScraper import scraper openai.api_key = os.environ["OPENAI_API_KEY"] def getTLDRfromURL(): # creating a pdf file object url = input("Enter the pdf url: ") response = requests.ge...
30.031746
83
0.534355
7949e19e91d9d1b850a38856ca4f3f5948f99af4
1,624
py
Python
main_api/migrations/0004_auto_20180917_1332.py
connorrunyan1/ragnarok
4c8e7754a6b3c316da982d142f461775cc25d644
[ "MIT" ]
6
2018-08-11T14:52:40.000Z
2021-01-06T01:39:15.000Z
main_api/migrations/0004_auto_20180917_1332.py
connorrunyan1/ragnarok
4c8e7754a6b3c316da982d142f461775cc25d644
[ "MIT" ]
10
2018-10-25T18:31:36.000Z
2022-02-10T07:28:39.000Z
main_api/migrations/0004_auto_20180917_1332.py
connorrunyan1/ragnarok
4c8e7754a6b3c316da982d142f461775cc25d644
[ "MIT" ]
5
2018-10-25T19:41:07.000Z
2020-07-11T09:26:50.000Z
# Generated by Django 2.1 on 2018-09-17 10:32 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('main_api', '0003_auto_2018...
38.666667
173
0.632389
7949e1a5a81f7da54eb5a73694f6d6c8335363b3
544
py
Python
administrator/logger.py
flifloo/BotBDE
9c508b81b0f5cbde80f29a8d1972d6c901478e41
[ "MIT" ]
null
null
null
administrator/logger.py
flifloo/BotBDE
9c508b81b0f5cbde80f29a8d1972d6c901478e41
[ "MIT" ]
2
2020-04-10T16:43:50.000Z
2020-05-28T15:49:46.000Z
administrator/logger.py
flifloo/BotBDE
9c508b81b0f5cbde80f29a8d1972d6c901478e41
[ "MIT" ]
null
null
null
import logging from logging import handlers from os import mkdir from os.path import isdir if not isdir("../logs"): mkdir("../logs") log_format = "{%(levelname)s}[%(asctime)s]: %(name)s | %(message)s" logging.basicConfig( format=log_format, level=logging.INFO ) logger = logging.getLogger("Administrator")...
25.904762
88
0.731618
7949e226b7a80d0d404a2d9be9a4bb57c091f6f4
304
py
Python
main.py
jaideng1/self-deletion
74b7ac42757e3c8313843bbe3629c852eedb74b8
[ "MIT" ]
null
null
null
main.py
jaideng1/self-deletion
74b7ac42757e3c8313843bbe3629c852eedb74b8
[ "MIT" ]
null
null
null
main.py
jaideng1/self-deletion
74b7ac42757e3c8313843bbe3629c852eedb74b8
[ "MIT" ]
null
null
null
import os inp = str(raw_input("Do you want to delete this program? ")) if inp.lower() == "yes" or inp.lower() == "y": if os.path.exists("main.py"): print("cya <o/") os.remove("main.py") else: print("doesn't exist.") else: print("oh. ok. guess i live another day.")
21.714286
60
0.5625
7949e249e2d536248b4cd881d61f4c4f6ef7b04d
40,811
py
Python
05-data_acquisition/telegram_bot/echo_bot/myvenv/lib/python3.8/site-packages/telegram/user.py
sachinpr0001/data_science
d028233ff7bbcbbb6b26f01806d1c5ccf788df9a
[ "MIT" ]
null
null
null
05-data_acquisition/telegram_bot/echo_bot/myvenv/lib/python3.8/site-packages/telegram/user.py
sachinpr0001/data_science
d028233ff7bbcbbb6b26f01806d1c5ccf788df9a
[ "MIT" ]
null
null
null
05-data_acquisition/telegram_bot/echo_bot/myvenv/lib/python3.8/site-packages/telegram/user.py
sachinpr0001/data_science
d028233ff7bbcbbb6b26f01806d1c5ccf788df9a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # pylint: disable=W0622 # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2021 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public L...
35.705162
99
0.613879
7949e33b8ccab2e1d3483759e84c0ea1967b2a51
972
py
Python
kubernetes/test/test_v1_stateful_set_list.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_stateful_set_list.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_stateful_set_list.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
21.6
105
0.711934
7949e46e353f23ae7af80c14510eff90961e1175
737
py
Python
setup.py
znstrider/speedo
238d591bbf374596b22fb44abba5ba849b4ed32b
[ "MIT" ]
4
2021-02-08T11:52:59.000Z
2021-03-15T13:01:13.000Z
setup.py
znstrider/speedo
238d591bbf374596b22fb44abba5ba849b4ed32b
[ "MIT" ]
null
null
null
setup.py
znstrider/speedo
238d591bbf374596b22fb44abba5ba849b4ed32b
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="speedo", version="0.0.1", author="znstrider", author_email="mindfulstrider@gmail.com", description="Class to make speedometer plots", long_description=long_description, long_descri...
29.48
58
0.658073
7949e4aefdb1df4f55956456aa8c9de081acfe30
752
py
Python
spinup/user_config.py
liushunyu/stable-spinningup
7ece777a564b05334c78005eda094ed729d31304
[ "MIT" ]
null
null
null
spinup/user_config.py
liushunyu/stable-spinningup
7ece777a564b05334c78005eda094ed729d31304
[ "MIT" ]
null
null
null
spinup/user_config.py
liushunyu/stable-spinningup
7ece777a564b05334c78005eda094ed729d31304
[ "MIT" ]
null
null
null
import os import os.path as osp # Default neural network backend for each algo # (Must be either 'tf1' or 'pytorch') DEFAULT_BACKEND = { 'vpg': 'pytorch', 'trpo': 'tf1', 'ppo': 'pytorch', 'ddpg': 'pytorch', 'td3': 'pytorch', 'sac': 'pytorch', 'dqn': 'pytorch' } # Where experiment outputs a...
26.857143
83
0.716755
7949e6a877eca0756074bee0ab2b3ea9c3bdd100
13,062
py
Python
tests/linear/goland_wing/test_goland_flutter.py
jomorlier/sharpy-1
9800df617efd046d4c4af048bbab17f88a91e6a8
[ "BSD-3-Clause" ]
null
null
null
tests/linear/goland_wing/test_goland_flutter.py
jomorlier/sharpy-1
9800df617efd046d4c4af048bbab17f88a91e6a8
[ "BSD-3-Clause" ]
null
null
null
tests/linear/goland_wing/test_goland_flutter.py
jomorlier/sharpy-1
9800df617efd046d4c4af048bbab17f88a91e6a8
[ "BSD-3-Clause" ]
1
2020-05-25T17:11:09.000Z
2020-05-25T17:11:09.000Z
import numpy as np import os import unittest import cases.templates.flying_wings as wings import sharpy.sharpy_main import sharpy.utils.sharpydir as sharpydir class TestGolandFlutter(unittest.TestCase): def setup(self): # Problem Set up u_inf = 1. alpha_deg = 0. rho = 1.02 ...
46.65
118
0.406752
7949e6c6d66e40b8dbb8c03e6b01e4be940f4e2a
19,120
py
Python
qface/idl/domain.py
Gagi2k/qface
5069fdc5f406495590a83a799ecbe30009436f1d
[ "MIT" ]
38
2016-11-30T10:36:56.000Z
2022-02-19T14:58:00.000Z
qface/idl/domain.py
Gagi2k/qface
5069fdc5f406495590a83a799ecbe30009436f1d
[ "MIT" ]
70
2016-11-30T09:12:58.000Z
2022-01-27T12:52:41.000Z
qface/idl/domain.py
Gagi2k/qface
5069fdc5f406495590a83a799ecbe30009436f1d
[ "MIT" ]
23
2016-12-07T15:23:15.000Z
2021-06-07T08:32:40.000Z
# Copyright (c) Pelagicore AB 2016 '''The domian module contains an object hierachy which resembles the QFace grammar as a domain model. It is created from the QFace and the main input for the code generation templates. .. note:: Changes on this API will result into broken templates .. code-block:: text System ...
31.344262
91
0.59864
7949e7b97b49f6f33ffd53efa087359927e2e82f
2,139
py
Python
2020/11/2/solution.py
twsh/Advent-of-Code
69f394f6740a32825bc847ca18d91f53fbcccb10
[ "MIT" ]
null
null
null
2020/11/2/solution.py
twsh/Advent-of-Code
69f394f6740a32825bc847ca18d91f53fbcccb10
[ "MIT" ]
null
null
null
2020/11/2/solution.py
twsh/Advent-of-Code
69f394f6740a32825bc847ca18d91f53fbcccb10
[ "MIT" ]
null
null
null
def parse_map(in_file): with open(in_file) as f: lines = f.read().splitlines() width = len(lines[0]) height = len(lines) points = {} for x in range(width): for y in range(height): points[(x, y)] = lines[y][x] return points def look(seat, grid, direction): (x, y)...
22.28125
67
0.462366
7949e7ea48d128d1f4f5d097e15dbcc77c909a21
42,413
py
Python
tests/test_exh.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
6
2015-12-15T04:09:08.000Z
2020-02-21T01:40:57.000Z
tests/test_exh.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
null
null
null
tests/test_exh.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
2
2016-01-21T23:29:17.000Z
2020-02-21T01:41:05.000Z
# test_exh.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0103,C0111,C0302,C0413,E0611,F0401,R0201,R0204,R0903,R0912 # pylint: disable=R0914,R0915,W0108,W0122,W0123,W0212,W0612,W0631,W0640 # Standard library imports from __future__ import print_function import collecti...
40.3549
79
0.544833
7949e826c413c242d31fecc441782f399f92ab57
63,706
bzl
Python
tools/build_variables.bzl
Zhaopudark/pytorch
8559d39cf032a9118c470ebe3a5047f89d94fe5c
[ "Intel" ]
1
2022-02-05T18:15:29.000Z
2022-02-05T18:15:29.000Z
tools/build_variables.bzl
Zhaopudark/pytorch
8559d39cf032a9118c470ebe3a5047f89d94fe5c
[ "Intel" ]
null
null
null
tools/build_variables.bzl
Zhaopudark/pytorch
8559d39cf032a9118c470ebe3a5047f89d94fe5c
[ "Intel" ]
null
null
null
# In both open-source and fbcode builds, these are generated into # torch/csrc/{autgrad,jit}/generated.i GENERATED_CPP = [ "autograd/generated/Functions.cpp", "autograd/generated/VariableType_0.cpp", "autograd/generated/VariableType_1.cpp", "autograd/generated/VariableType_2.cpp", "autograd/generate...
46.980826
134
0.738518
7949e9e4d35f72be7d201ee700812b575f35f904
143,340
py
Python
virtual/lib/python3.8/site-packages/sqlalchemy/orm/relationships.py
Lenus254/personal_blog
aac38e4b5372c86efa8e24db2e051fef8e5feef8
[ "Unlicense" ]
4
2022-02-06T00:54:58.000Z
2022-02-25T12:44:43.000Z
virtual/lib/python3.8/site-packages/sqlalchemy/orm/relationships.py
Lenus254/personal_blog
aac38e4b5372c86efa8e24db2e051fef8e5feef8
[ "Unlicense" ]
1
2022-03-12T06:00:21.000Z
2022-03-12T07:07:55.000Z
virtual/lib/python3.8/site-packages/sqlalchemy/orm/relationships.py
Lenus254/personal_blog
aac38e4b5372c86efa8e24db2e051fef8e5feef8
[ "Unlicense" ]
1
2022-02-08T13:43:20.000Z
2022-02-08T13:43:20.000Z
# orm/relationships.py # Copyright (C) 2005-2022 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php """Heuristics related to join conditions as used in :func:`_orm.relationship`....
38.845528
79
0.579413
7949e9fa4b0fdd2d2c6caf9583dd4670734d5fa9
3,024
py
Python
compare_gan/src/gans/ops.py
hwalsuklee/compare_gan
d6c5976ba2b9d19dbff42f439c20b48565d10235
[ "Apache-2.0" ]
2
2018-10-03T09:52:44.000Z
2022-03-03T03:00:23.000Z
compare_gan/src/gans/ops.py
hwalsuklee/compare_gan
d6c5976ba2b9d19dbff42f439c20b48565d10235
[ "Apache-2.0" ]
null
null
null
compare_gan/src/gans/ops.py
hwalsuklee/compare_gan
d6c5976ba2b9d19dbff42f439c20b48565d10235
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 Google LLC & Hwalsuk Lee. # # 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 ...
32.516129
79
0.689153
7949eb93941a7a360b1a0c0636271378a03b6570
435
py
Python
src/Backend/query_DT_candidates.py
uhh-lt/cam-hci
dd402322bb37470963c5cc46765592f952e2c3f0
[ "MIT" ]
null
null
null
src/Backend/query_DT_candidates.py
uhh-lt/cam-hci
dd402322bb37470963c5cc46765592f952e2c3f0
[ "MIT" ]
42
2018-02-23T14:54:35.000Z
2018-03-09T10:50:56.000Z
src/Backend/query_DT_candidates.py
uhh-lt/cam-hci
dd402322bb37470963c5cc46765592f952e2c3f0
[ "MIT" ]
null
null
null
from elasticsearch import Elasticsearch ES_HOST = {"host": "localhost", "port": 9200} INDEX_NAME = 'dt-index' es = Elasticsearch(hosts=[ES_HOST], timeout=300) def get_all_similarities(comparison_object): # print(comparison_object) res = es.search(index=INDEX_NAME, size=10000, body={"query": {"match": {"firs...
31.071429
106
0.698851
7949ed6258a82d36cfa6f81a12d715f3313d6b56
6,074
py
Python
popbl_servicesapp/flask_app/delivery/application/routes.py
xetxezarreta/master-popbl1
253880b9ba358f63f666893cdbbffe7391fcd096
[ "MIT" ]
null
null
null
popbl_servicesapp/flask_app/delivery/application/routes.py
xetxezarreta/master-popbl1
253880b9ba358f63f666893cdbbffe7391fcd096
[ "MIT" ]
1
2021-06-02T00:57:11.000Z
2021-06-02T00:57:11.000Z
popbl_servicesapp/flask_app/delivery/application/routes.py
xetxezarreta/master-popbl1
253880b9ba358f63f666893cdbbffe7391fcd096
[ "MIT" ]
null
null
null
from flask import request, jsonify, abort from flask import current_app as app from .models import Delivery from werkzeug.exceptions import NotFound, InternalServerError, BadRequest, UnsupportedMediaType import traceback from . import Session from .BLConsul import BLConsul from .config import Config import requests fr...
27.73516
120
0.651465
7949ee2058ba85e5da1d839fef8119f0f84ff0b0
1,172
py
Python
quiz_master/quiz_app/tests/models/test_QuizModel.py
DiyanKalaydzhiev23/quiz_master
d8624a59d5bfc52c13ede72b024d1178c17c1780
[ "MIT" ]
null
null
null
quiz_master/quiz_app/tests/models/test_QuizModel.py
DiyanKalaydzhiev23/quiz_master
d8624a59d5bfc52c13ede72b024d1178c17c1780
[ "MIT" ]
null
null
null
quiz_master/quiz_app/tests/models/test_QuizModel.py
DiyanKalaydzhiev23/quiz_master
d8624a59d5bfc52c13ede72b024d1178c17c1780
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.test import TestCase from quiz_master.quiz_app.models import Quiz UserModel = get_user_model() class QuizModelTests(TestCase): def setUp(self): self.user = UserModel( username='Meto'...
24.93617
70
0.62884