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
7967b028a27db57b81333aa90a48de1eddce7387
931
py
Python
core/polyaxon/proxies/generators/streams.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
3,200
2017-05-09T11:35:31.000Z
2022-03-28T05:43:22.000Z
core/polyaxon/proxies/generators/streams.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
1,324
2017-06-29T07:21:27.000Z
2022-03-27T12:41:10.000Z
core/polyaxon/proxies/generators/streams.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
341
2017-01-10T23:06:53.000Z
2022-03-10T08:15:18.000Z
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
40.478261
77
0.777658
7967b06eb80d4fcdf6671bd5876a212a06a1ee87
676
py
Python
Year1Term1/IntroductionToProgramming/bookreturn.py
linzexinmasterchief/University-Courseworks
e07b4b117941837108b0922dc0d5e32303cf66a3
[ "Unlicense" ]
null
null
null
Year1Term1/IntroductionToProgramming/bookreturn.py
linzexinmasterchief/University-Courseworks
e07b4b117941837108b0922dc0d5e32303cf66a3
[ "Unlicense" ]
null
null
null
Year1Term1/IntroductionToProgramming/bookreturn.py
linzexinmasterchief/University-Courseworks
e07b4b117941837108b0922dc0d5e32303cf66a3
[ "Unlicense" ]
null
null
null
""" This file handles the return of books, with log entry added """ import database as db def go(book_id): """ This function takes in a list of books then modify the database.txt file so that these books are marked as returned """ result = db.modify_member_id(book_id, "0") if result == 0: ...
28.166667
113
0.610947
7967b1d028c8f00ec4c5132456011b5c236fe85f
62,269
py
Python
tensorflow/python/util/nest.py
deerluffy/tensorflow
73e9dc4e1eae1589c8ea4a7cf1e8398c1eff3ab1
[ "Apache-2.0" ]
1
2020-09-30T07:40:55.000Z
2020-09-30T07:40:55.000Z
tensorflow/python/util/nest.py
deerluffy/tensorflow
73e9dc4e1eae1589c8ea4a7cf1e8398c1eff3ab1
[ "Apache-2.0" ]
2
2019-11-12T00:57:43.000Z
2020-02-07T21:02:50.000Z
tensorflow/python/util/nest.py
deerluffy/tensorflow
73e9dc4e1eae1589c8ea4a7cf1e8398c1eff3ab1
[ "Apache-2.0" ]
1
2021-03-28T10:02:51.000Z
2021-03-28T10:02:51.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.628412
111
0.671088
7967b1f320374fb057b64387e22ccb6b7f5bb407
5,243
py
Python
ros/src/waypoint_updater/waypoint_updater.py
marcin-sielski/CarND-Capstone
9d305fef9a908604809d5b0056a19ce8ff2e1edd
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
marcin-sielski/CarND-Capstone
9d305fef9a908604809d5b0056a19ce8ff2e1edd
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
marcin-sielski/CarND-Capstone
9d305fef9a908604809d5b0056a19ce8ff2e1edd
[ "MIT" ]
1
2020-01-13T20:02:31.000Z
2020-01-13T20:02:31.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import PoseStamped from styx_msgs.msg import Lane, Waypoint from std_msgs.msg import Int32 from scipy.spatial import KDTree import numpy as np import math ''' This node will publish waypoints from the car's current position to some `x` distance ahead. As men...
35.187919
132
0.662598
7967b22fa5b737e4c5b6aa629f367b92d07cd06d
7,450
py
Python
utils/build_swift/tests/test_presets.py
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
5
2016-11-20T18:33:05.000Z
2018-10-18T19:15:45.000Z
utils/build_swift/tests/test_presets.py
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
1
2019-08-12T02:33:42.000Z
2019-08-12T02:33:58.000Z
utils/build_swift/tests/test_presets.py
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
4
2016-05-14T13:32:03.000Z
2016-09-22T21:23:46.000Z
# This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swift.org/CONTRIBUTORS.txt for the list o...
26.232394
79
0.633154
7967b3ad7820175411c4e749109ae8a3a831a87f
8,609
py
Python
analyze_bayesian_comparative.py
bwilder0/covid_abm_release
fdaa0f8667733a729c76785123c3e2ebda7d5d5f
[ "MIT" ]
5
2020-09-11T15:16:39.000Z
2021-07-16T08:55:49.000Z
analyze_bayesian_comparative.py
bwilder0/covid_abm_release
fdaa0f8667733a729c76785123c3e2ebda7d5d5f
[ "MIT" ]
1
2021-11-24T11:21:23.000Z
2022-02-10T15:59:55.000Z
analyze_bayesian_comparative.py
bwilder0/covid_abm_release
fdaa0f8667733a729c76785123c3e2ebda7d5d5f
[ "MIT" ]
5
2020-09-24T19:34:26.000Z
2021-02-08T02:33:20.000Z
import numpy as np import pandas as pd import datetime import json import matplotlib.pyplot as plt from numba import jit files = ['inputs/lombardy_bayesian.json', 'inputs/hubei_bayesian.json', 'inputs/nyc_bayesian.json'] all_ifr = {} all_r0 = {} all_dmult = {} all_doc = {} all_susceptible = {} italy_deaths_scale = ...
39.672811
272
0.641422
7967b3e91d2bf769bb1906c90c92daec1472af76
357
py
Python
dapodik/rest/alasan_layak_pip.py
hexatester/dapodik
d89c0fb899c89e866527f6b7b57f741abd6444ea
[ "MIT" ]
4
2021-02-01T15:19:35.000Z
2022-01-26T02:47:21.000Z
dapodik/rest/alasan_layak_pip.py
hexatester/dapodik
d89c0fb899c89e866527f6b7b57f741abd6444ea
[ "MIT" ]
3
2020-01-08T17:07:15.000Z
2020-01-08T18:05:12.000Z
dapodik/rest/alasan_layak_pip.py
hexatester/dapodik
d89c0fb899c89e866527f6b7b57f741abd6444ea
[ "MIT" ]
2
2021-08-04T13:48:08.000Z
2021-12-25T02:36:49.000Z
import attr from datetime import datetime from typing import Optional @attr.dataclass(frozen=True, slots=True) class AlasanLayakPip: id_layak_pip: int alasan_layak_pip: str create_date: datetime last_update: datetime expired_date: Optional[datetime] last_sync: datetime def __str__(self): ...
21
40
0.7507
7967b3f90a7d69b869651354258f655a23718f57
17,596
py
Python
tutorials/machine-learning/plot_sensors_decoding.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
1
2021-02-16T13:33:13.000Z
2021-02-16T13:33:13.000Z
tutorials/machine-learning/plot_sensors_decoding.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
28
2020-05-07T00:58:34.000Z
2020-08-29T23:02:17.000Z
tutorials/machine-learning/plot_sensors_decoding.py
hichamjanati/mne-python
b8f5e5ce0da8acfeb7298c8eb1d26a75d5526eac
[ "BSD-3-Clause" ]
1
2020-07-29T15:48:58.000Z
2020-07-29T15:48:58.000Z
r""" =============== Decoding (MVPA) =============== .. contents:: Contents :local: :depth: 3 .. include:: ../../links.inc Design philosophy ================= Decoding (a.k.a. MVPA) in MNE largely follows the machine learning API of the scikit-learn package. Each estimator implements ``fit``, ``transform``, ``...
40.92093
79
0.67845
7967b3fb07209d1945b23093eb076cffdf0d2bd0
6,266
py
Python
pypi_resource/common.py
Pix4D/concourse-pypi-resource
4561f7ec46f5ffa909f996ab3ee7b9d6a1543918
[ "Apache-2.0" ]
null
null
null
pypi_resource/common.py
Pix4D/concourse-pypi-resource
4561f7ec46f5ffa909f996ab3ee7b9d6a1543918
[ "Apache-2.0" ]
null
null
null
pypi_resource/common.py
Pix4D/concourse-pypi-resource
4561f7ec46f5ffa909f996ab3ee7b9d6a1543918
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016-Present Pivotal Software, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
32.635417
114
0.617459
7967b447d09cdc0b52f980071f12cc3341a8ad87
1,013
py
Python
genevieve/views.py
emilysa/genevieve
d390d4f79e240628a001491035570750ddb6265a
[ "MIT" ]
1
2015-05-27T19:52:32.000Z
2015-05-27T19:52:32.000Z
genevieve/views.py
emilysa/genevieve
d390d4f79e240628a001491035570750ddb6265a
[ "MIT" ]
null
null
null
genevieve/views.py
emilysa/genevieve
d390d4f79e240628a001491035570750ddb6265a
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.views.generic.edit import CreateView def home(request): re...
27.378378
75
0.70385
7967b4d7d0637b10f362f5524b3b7d3e64927687
7,181
py
Python
nyiso_sql/sql_utils.py
joe-cipolla/nyiso_sql
f2f8473c9bb1791d1a02994143677e4ed225ef2a
[ "MIT" ]
null
null
null
nyiso_sql/sql_utils.py
joe-cipolla/nyiso_sql
f2f8473c9bb1791d1a02994143677e4ed225ef2a
[ "MIT" ]
null
null
null
nyiso_sql/sql_utils.py
joe-cipolla/nyiso_sql
f2f8473c9bb1791d1a02994143677e4ed225ef2a
[ "MIT" ]
null
null
null
"""sql worker functions and queries""" import psycopg2 import pandas as pd import nyiso_sql.global_vars as gvars conn_closed_msg = "PostgreSQL connection is close." def insert_row(table_name, record, conn=None, pkey_id=None, cur=None): """ inserts single row into table :param table_name - string :param ...
32.789954
119
0.628185
7967b563a3566c5502b7994c82c942466d518c87
2,035
py
Python
src/spaceone/repository/api/v1/schema.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
6
2020-06-04T23:00:33.000Z
2020-08-10T02:45:43.000Z
src/spaceone/repository/api/v1/schema.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
4
2020-10-09T07:02:27.000Z
2022-02-28T04:43:01.000Z
src/spaceone/repository/api/v1/schema.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
6
2020-06-01T10:10:57.000Z
2021-10-05T03:03:00.000Z
from spaceone.api.repository.v1 import schema_pb2, schema_pb2_grpc from spaceone.core.pygrpc import BaseAPI class Schema(BaseAPI, schema_pb2_grpc.SchemaServicer): pb2 = schema_pb2 pb2_grpc = schema_pb2_grpc def create(self, request, context): params, metadata = self.parse_request(request, contex...
46.25
116
0.704668
7967b5e6e3a3b666f1c07b2ad2378c58db0eeb62
371
py
Python
djangoblogapp/urls.py
artur-zaripov/djangoblogapp
67074870274a229ee7abc828f6409d9305910614
[ "MIT" ]
null
null
null
djangoblogapp/urls.py
artur-zaripov/djangoblogapp
67074870274a229ee7abc828f6409d9305910614
[ "MIT" ]
null
null
null
djangoblogapp/urls.py
artur-zaripov/djangoblogapp
67074870274a229ee7abc828f6409d9305910614
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import include, path from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from blog import views urlpatterns = [ url(r'^$', views.api_root), path('admin/', admin.site.urls), path('api/v1/', include('blog.urls')), ] ...
26.5
61
0.754717
7967b6bda7d2a29ad0a5bf979331665c97952b83
2,083
py
Python
setup.py
tuanho27/FCOS
56208b318f81acd51e7e3d079ce3c416133a11ed
[ "BSD-2-Clause" ]
null
null
null
setup.py
tuanho27/FCOS
56208b318f81acd51e7e3d079ce3c416133a11ed
[ "BSD-2-Clause" ]
null
null
null
setup.py
tuanho27/FCOS
56208b318f81acd51e7e3d079ce3c416133a11ed
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #!/usr/bin/env python import glob import os import torch from setuptools import find_packages from setuptools import setup from torch.utils.cpp_extension import CUDA_HOME from torch.utils.cpp_extension import CppExtension from torch.utils.cpp_ext...
30.188406
100
0.674988
7967b70491f13effd1d8cef2aece4143eba0dd0b
6,808
py
Python
tensornet/model/Model.py
felixbrf/tensornet
f45a04f5afe990154a15c24d387386370332821e
[ "Apache-2.0" ]
null
null
null
tensornet/model/Model.py
felixbrf/tensornet
f45a04f5afe990154a15c24d387386370332821e
[ "Apache-2.0" ]
null
null
null
tensornet/model/Model.py
felixbrf/tensornet
f45a04f5afe990154a15c24d387386370332821e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, Qihoo, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
34.734694
118
0.651439
7967b800011b068fbfaaeb451d51ab9289fe328d
16,072
py
Python
splinedist/splinedist/utils.py
antoinehabis/Histopathology
87fe328522f1a61415c7e643c61230df4571565c
[ "MIT" ]
null
null
null
splinedist/splinedist/utils.py
antoinehabis/Histopathology
87fe328522f1a61415c7e643c61230df4571565c
[ "MIT" ]
null
null
null
splinedist/splinedist/utils.py
antoinehabis/Histopathology
87fe328522f1a61415c7e643c61230df4571565c
[ "MIT" ]
null
null
null
from __future__ import print_function, unicode_literals, absolute_import, division import numpy as np import warnings import os import datetime from tqdm import tqdm from zipfile import ZipFile, ZIP_DEFLATED from scipy.ndimage.morphology import distance_transform_edt, binary_fill_holes from scipy.ndimage.measurements ...
37.816471
167
0.615356
7967b848aecf5549771e4369522e945f4c83c2a4
13,658
py
Python
test/new_tests/test_scan.py
indigo-tribe/aerospike-client-python
1526bc3e47327dfcc2eabbf8729bee0b5f66bbd9
[ "Apache-2.0" ]
null
null
null
test/new_tests/test_scan.py
indigo-tribe/aerospike-client-python
1526bc3e47327dfcc2eabbf8729bee0b5f66bbd9
[ "Apache-2.0" ]
null
null
null
test/new_tests/test_scan.py
indigo-tribe/aerospike-client-python
1526bc3e47327dfcc2eabbf8729bee0b5f66bbd9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import sys from .test_base_class import TestBaseClass from aerospike import exception as e from aerospike import predexp as as_predexp from .as_status_codes import AerospikeStatus aerospike = pytest.importorskip("aerospike") try: import aerospike except: print("Please ins...
26.833006
77
0.593279
7967b86d3d36a424cc38734f2cd2f4a37ee409e7
1,687
py
Python
dashboard/covid/migrations/0003_auto_20210128_1009.py
guiyshd/new-dashboard
78e43b066f153a902514a97a7e66349d2ffc9f36
[ "MIT" ]
null
null
null
dashboard/covid/migrations/0003_auto_20210128_1009.py
guiyshd/new-dashboard
78e43b066f153a902514a97a7e66349d2ffc9f36
[ "MIT" ]
null
null
null
dashboard/covid/migrations/0003_auto_20210128_1009.py
guiyshd/new-dashboard
78e43b066f153a902514a97a7e66349d2ffc9f36
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-28 13:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('covid', '0002_delete_test'), ] operations = [ migrations.AlterField( model_name='wcotabasenacional', name='cod_regia...
28.59322
51
0.557795
7967b8bf9d1d5a922321617b4f9f46631a8396bc
4,798
py
Python
app/user/tests/test_user_api.py
jenhaoyang/recipe-app-api
5ac8bdd1eec2e73c65af751636ad47dcdee2ef3d
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
jenhaoyang/recipe-app-api
5ac8bdd1eec2e73c65af751636ad47dcdee2ef3d
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
jenhaoyang/recipe-app-api
5ac8bdd1eec2e73c65af751636ad47dcdee2ef3d
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params...
36.075188
77
0.658816
7967b90e4b0df871b0b47722ad5d5e16be3835cf
760
py
Python
libs/utkar.py
Ozan-Alp/labelImg
a66d7546f11ee1d475780cd6d020792299da4ef9
[ "MIT" ]
null
null
null
libs/utkar.py
Ozan-Alp/labelImg
a66d7546f11ee1d475780cd6d020792299da4ef9
[ "MIT" ]
null
null
null
libs/utkar.py
Ozan-Alp/labelImg
a66d7546f11ee1d475780cd6d020792299da4ef9
[ "MIT" ]
null
null
null
import image_dehazer # Load the library import cv2 from datetime import datetime lol=datetime.now() HazeImg = cv2.imread('/home/ozan/Desktop/resler/train/9.jpg') HazeImg1=cv2.bitwise_not(HazeImg) # read input image -- (**must be a color image**) HazeCorrectedImg = image_dehazer.remove_haze(HazeImg1) # Re...
44.705882
88
0.765789
7967b9189eb7c9a1d622dde8099c24d788fc4aef
1,594
py
Python
nobrainer/metrics_test.py
soichih/kwyk_neuronet
850b77a2af1ea7438737636b5eda8bd52d1cc323
[ "Apache-2.0" ]
3
2019-08-24T17:14:42.000Z
2020-06-28T07:47:43.000Z
nobrainer/metrics_test.py
soichih/kwyk_neuronet
850b77a2af1ea7438737636b5eda8bd52d1cc323
[ "Apache-2.0" ]
4
2019-09-28T20:36:18.000Z
2021-04-27T23:22:37.000Z
nobrainer/metrics_test.py
soichih/kwyk_neuronet
850b77a2af1ea7438737636b5eda8bd52d1cc323
[ "Apache-2.0" ]
1
2019-08-20T20:45:36.000Z
2019-08-20T20:45:36.000Z
# -*- coding: utf-8 -*- """Tests for `nobrainer.metrics`.""" import numpy as np import scipy as sp import tensorflow as tf from nobrainer.metrics import dice from nobrainer.metrics import hamming def test_dice(): shape = (2, 10) foo = np.zeros(shape, dtype=np.float64) foo[:, 4:] = 1 bar = np.zeros...
26.131148
72
0.617315
7967ba2f58d2121ca4e52d9df89f8619c5edea57
5,453
py
Python
nipype/interfaces/fsl/aroma.py
fgiuste7/nipype
f2df20951434bbd92aa07c1b64527710de1c510f
[ "Apache-2.0" ]
7
2017-02-17T08:54:26.000Z
2022-03-10T20:57:23.000Z
nipype/interfaces/fsl/aroma.py
fgiuste7/nipype
f2df20951434bbd92aa07c1b64527710de1c510f
[ "Apache-2.0" ]
1
2016-04-25T15:07:09.000Z
2016-04-25T15:07:09.000Z
nipype/interfaces/fsl/aroma.py
fgiuste7/nipype
f2df20951434bbd92aa07c1b64527710de1c510f
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """This commandline module provides classes for interfacing with the `ICA-AROMA.py<https://github.com/rhr-pruim/ICA-AROMA>`_ command line tool. """ from __future__ import (print_fun...
38.401408
150
0.638731
7967bdf19f0026f2829f505c5348e6ccd473db6f
7,287
py
Python
data/cnndm/3_text_to_traindevtest.py
ErikHumphrey/sustain-seq2seq
c4787f0ca1047d01385e4fa4ffde59c6a8ab4cc4
[ "Apache-2.0" ]
4
2019-05-09T19:47:48.000Z
2020-04-11T13:58:31.000Z
data/cnndm/3_text_to_traindevtest.py
ErikHumphrey/sustain-seq2seq
c4787f0ca1047d01385e4fa4ffde59c6a8ab4cc4
[ "Apache-2.0" ]
null
null
null
data/cnndm/3_text_to_traindevtest.py
ErikHumphrey/sustain-seq2seq
c4787f0ca1047d01385e4fa4ffde59c6a8ab4cc4
[ "Apache-2.0" ]
4
2018-12-05T01:52:22.000Z
2019-11-01T01:01:52.000Z
""" This script creates a vocabulary based on the input folder. Set input parameters below: """ import os arg = {} arg["fresh_start"] = False # set to True to overwrite everything. This will take a while. arg["input_folder"] = os.path.abspath("../../data/processed") # where the cnn and dm folders contain the process...
40.038462
133
0.630438
7967bdf40927b119c8e8d80292bf62c021288e33
26,478
py
Python
scikits/crab/recommenders/knn/classes.py
tadejs/crab
ba3899f965061770b86fa27f3ffa5906e0afdf25
[ "BSD-3-Clause" ]
1
2015-07-15T15:29:02.000Z
2015-07-15T15:29:02.000Z
scikits/crab/recommenders/knn/classes.py
tadejs/crab
ba3899f965061770b86fa27f3ffa5906e0afdf25
[ "BSD-3-Clause" ]
null
null
null
scikits/crab/recommenders/knn/classes.py
tadejs/crab
ba3899f965061770b86fa27f3ffa5906e0afdf25
[ "BSD-3-Clause" ]
null
null
null
""" Generalized Recommender models. This module contains basic memory recommender interfaces used throughout the whole scikit-crab package. The interfaces are realized as abstract base classes (ie., some optional functionality is provided in the interface itself, so that the interfaces can be subclassed). """ # Aut...
37.345557
98
0.62584
7967be5cc66318e0fe42e3896b01f6251a12aff8
275
py
Python
T1/code/plot_ex1data2.py
andersonmanhaes/ml_mestrado
d737d80e07d9392895e4455e49a33b8700080cf1
[ "MIT" ]
null
null
null
T1/code/plot_ex1data2.py
andersonmanhaes/ml_mestrado
d737d80e07d9392895e4455e49a33b8700080cf1
[ "MIT" ]
null
null
null
T1/code/plot_ex1data2.py
andersonmanhaes/ml_mestrado
d737d80e07d9392895e4455e49a33b8700080cf1
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt def importarDados(filepath): path = os.getcwd() + filepath data = pd.read_csv(path, header=None) X = data.iloc[:, 0:-1].values y = data.iloc[:, -1:].values return X, y
18.333333
41
0.650909
7967be69851b97707eca82fc0be90f3e437867a1
5,155
py
Python
cs229/annotation.py
sgherbst/cs229-project
ed4a3131f8f5dc3d3ab097b692d0ff10ebb20015
[ "MIT" ]
4
2019-12-19T08:35:09.000Z
2020-09-15T11:12:06.000Z
cs229/annotation.py
sgherbst/cs229-project
ed4a3131f8f5dc3d3ab097b692d0ff10ebb20015
[ "MIT" ]
null
null
null
cs229/annotation.py
sgherbst/cs229-project
ed4a3131f8f5dc3d3ab097b692d0ff10ebb20015
[ "MIT" ]
null
null
null
import json import numpy as np import os import os.path from glob import glob from itertools import chain from cs229.files import get_dir def project(a, b, c): """ Project (c-a) onto (b-a) and return the projection coefficient. If this coefficient is between 0 and 1, then c can be interpreted as being be...
30.868263
115
0.545684
7967beae17d72840f07fe9bda899a13dfec120c5
2,160
py
Python
tests/pipeline/test_mpca_trainer.py
Be-Secure/pykale
f8d479e9861639773de603ffaa20127a0ce66e58
[ "MIT" ]
null
null
null
tests/pipeline/test_mpca_trainer.py
Be-Secure/pykale
f8d479e9861639773de603ffaa20127a0ce66e58
[ "MIT" ]
null
null
null
tests/pipeline/test_mpca_trainer.py
Be-Secure/pykale
f8d479e9861639773de603ffaa20127a0ce66e58
[ "MIT" ]
null
null
null
import matplotlib.figure import numpy as np import pytest from numpy import testing from sklearn.metrics import accuracy_score, roc_auc_score from kale.interpret import model_weights from kale.pipeline.mpca_trainer import MPCATrainer CLASSIFIERS = ["svc", "linear_svc", "lr"] PARAMS = [ {"classifier_params": "auto...
34.285714
98
0.662037
7967bf7bab83505a4c198d364d3ca8085cc27e02
13,125
py
Python
zbmessung/lido3_launcher.py
ashvardanian/sacabench
ca85526b8df633a67874ffb44f5697f174c22e1b
[ "BSD-3-Clause" ]
10
2019-03-01T11:41:43.000Z
2021-06-17T21:50:24.000Z
zbmessung/lido3_launcher.py
ashvardanian/sacabench
ca85526b8df633a67874ffb44f5697f174c22e1b
[ "BSD-3-Clause" ]
1
2021-05-14T16:45:13.000Z
2021-05-14T16:45:13.000Z
zbmessung/lido3_launcher.py
ashvardanian/sacabench
ca85526b8df633a67874ffb44f5697f174c22e1b
[ "BSD-3-Clause" ]
1
2019-10-03T20:25:03.000Z
2019-10-03T20:25:03.000Z
#!/usr/bin/env python3 import subprocess import argparse from pathlib import Path import time import os import datetime import json from pprint import pprint def load_json(path): with open(path, 'r') as f: return json.loads(f.read()) def write_json(path, data): with open(path, 'w') as f: f.wr...
30.955189
162
0.545371
7967c00204c9d9c3579603c0435737c2a5a909a9
7,554
py
Python
openpifpaf/encoder/annrescaler.py
anhvth/openpifpaf
a88edd744b50f76dfdae9dbb180d4a403cbfd060
[ "CC-BY-2.0", "CC-BY-4.0" ]
null
null
null
openpifpaf/encoder/annrescaler.py
anhvth/openpifpaf
a88edd744b50f76dfdae9dbb180d4a403cbfd060
[ "CC-BY-2.0", "CC-BY-4.0" ]
null
null
null
openpifpaf/encoder/annrescaler.py
anhvth/openpifpaf
a88edd744b50f76dfdae9dbb180d4a403cbfd060
[ "CC-BY-2.0", "CC-BY-4.0" ]
null
null
null
import logging import numpy as np LOG = logging.getLogger(__name__) class AnnRescaler(): suppress_selfhidden = True def __init__(self, stride, pose=None): self.stride = stride self.pose = pose self.pose_total_area = None self.pose_45 = None self.pose_45_total_area =...
37.77
91
0.490733
7967c023312b15ac3ce56b4d8f18a62b48636698
33,023
py
Python
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/traffic_engineering/config/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
64
2016-10-20T15:47:18.000Z
2021-11-11T11:57:32.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/traffic_engineering/config/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
126
2016-10-05T10:36:14.000Z
2019-05-15T08:43:23.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/traffic_engineering/config/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
63
2016-11-07T15:23:08.000Z
2021-09-22T14:41:16.000Z
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
44.686062
715
0.563183
7967c023d7eec74376ee1026abff4f1c60a06d67
3,833
py
Python
worker/lars_caffe/examples/cifar100/scripts/convert_cifar100_lmdb.py
XinYao1994/FluentPS-paper
a83570c6c96cabd4f1dd5f47ce1bb06532a78e16
[ "Apache-2.0" ]
null
null
null
worker/lars_caffe/examples/cifar100/scripts/convert_cifar100_lmdb.py
XinYao1994/FluentPS-paper
a83570c6c96cabd4f1dd5f47ce1bb06532a78e16
[ "Apache-2.0" ]
null
null
null
worker/lars_caffe/examples/cifar100/scripts/convert_cifar100_lmdb.py
XinYao1994/FluentPS-paper
a83570c6c96cabd4f1dd5f47ce1bb06532a78e16
[ "Apache-2.0" ]
null
null
null
import os from os.path import dirname, join import cPickle import numpy as np import sklearn import sklearn.linear_model from sklearn.model_selection import train_test_split import lmdb import sys print(dirname(os.path.realpath(__file__))+"/../../../python/") sys.path.append(dirname(os.path.realpath(__file__))+"/../....
31.677686
111
0.626141
7967c05728e11512b925112701c7bce86652f9c9
3,608
py
Python
droidbot/rl/configs.py
Jasonwangsonghe/droidbot
abfc061745b7ee091a19d241d47b619a7a9bf9b8
[ "MIT" ]
null
null
null
droidbot/rl/configs.py
Jasonwangsonghe/droidbot
abfc061745b7ee091a19d241d47b619a7a9bf9b8
[ "MIT" ]
null
null
null
droidbot/rl/configs.py
Jasonwangsonghe/droidbot
abfc061745b7ee091a19d241d47b619a7a9bf9b8
[ "MIT" ]
null
null
null
SCREEN_H = 180 SCREEN_W = 120 INTERESTED_PERMISSIONS = [ 'ACCEPT_HANDOVER', 'ACCESS_BACKGROUND_LOCATION', 'ACCESS_CALL_AUDIO', 'ACCESS_CHECKIN_PROPERTIES', 'ACCESS_COARSE_LOCATION', 'ACCESS_FINE_LOCATION', 'ACCESS_LOCATION_EXTRA_COMMANDS', 'ACCESS_MEDIA_LOCATION', 'ACCESS_NETWORK_ST...
23.581699
72
0.691242
7967c05795763aca0b834da930555c8a82459e48
892
py
Python
const.py
xraver/mercedes_me_api
ee6446270925836969a462a7f38be75c57bb70ac
[ "MIT" ]
34
2020-10-06T21:55:13.000Z
2022-02-14T19:01:18.000Z
const.py
xraver/mercedes_me_api
ee6446270925836969a462a7f38be75c57bb70ac
[ "MIT" ]
29
2020-11-11T13:07:00.000Z
2021-06-16T09:18:11.000Z
const.py
xraver/mercedes_me_api
ee6446270925836969a462a7f38be75c57bb70ac
[ "MIT" ]
10
2020-11-09T20:49:34.000Z
2022-03-14T20:24:53.000Z
""" Mercedes Me APIs Author: G. Ravera For more details about this component, please refer to the documentation at https://github.com/xraver/mercedes_me_api/ """ # Software Name & Version NAME = "Mercedes Me API" DOMAIN = "mercedesmeapi" VERSION = "0.11" # Software Parameters TOKEN_FILE = ".mercedesme_token" CONFIG_F...
33.037037
184
0.80157
7967c1e2ed05f6d505f6829f1fbb654fc9daa951
10,865
py
Python
schedule/views.py
DrewUniversityCS/CS3
b7b195ef94bfe737ec17815533f1e2b3ffde24d7
[ "MIT" ]
3
2021-02-17T04:43:29.000Z
2021-03-30T15:12:30.000Z
schedule/views.py
DrewUniversityCS/CS3
b7b195ef94bfe737ec17815533f1e2b3ffde24d7
[ "MIT" ]
12
2021-02-17T15:59:10.000Z
2021-05-08T01:56:46.000Z
schedule/views.py
DrewUniversityCS/CourseManager
b7b195ef94bfe737ec17815533f1e2b3ffde24d7
[ "MIT" ]
null
null
null
import json from collections import defaultdict from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseRedirect from django.urls import reverse from django.utils.http import urlencode from django.views.generic import FormView, TemplateView, CreateView from database.models.sched...
42.112403
119
0.587023
7967c2638d9bd8192ae73f79e7006e392995c62c
21,830
py
Python
sponsors/tests/test_models.py
wassafshahzad/pythondotorg
7556542b58d9c90717757c9fa997637752d6dd85
[ "Apache-2.0" ]
null
null
null
sponsors/tests/test_models.py
wassafshahzad/pythondotorg
7556542b58d9c90717757c9fa997637752d6dd85
[ "Apache-2.0" ]
null
null
null
sponsors/tests/test_models.py
wassafshahzad/pythondotorg
7556542b58d9c90717757c9fa997637752d6dd85
[ "Apache-2.0" ]
null
null
null
from datetime import date, timedelta from model_bakery import baker, seq from django.conf import settings from django.test import TestCase from django.utils import timezone from ..models import ( Sponsor, SponsorshipBenefit, Sponsorship, Contract, SponsorContact, SponsorBenefit, LegalClaus...
39.908592
113
0.695007
7967c451e28ae7c3c157f8b14f81c89acb336bed
6,688
py
Python
pypy/module/_cffi_backend/wrapper.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
pypy/module/_cffi_backend/wrapper.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
pypy/module/_cffi_backend/wrapper.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
30
2018-08-20T03:16:34.000Z
2022-01-12T17:39:22.000Z
from pypy.interpreter.error import oefmt from pypy.interpreter.baseobjspace import W_Root from pypy.interpreter.typedef import TypeDef, interp_attrproperty from pypy.interpreter.typedef import GetSetProperty from pypy.interpreter.gateway import interp2app from rpython.rlib import jit from pypy.module._cffi_backend.cda...
44.586667
96
0.642344
7967c58218f0c5991abe7574429ea96f0e251453
1,931
py
Python
face_recognition/face_recognition_service/app/test.py
EdgeGallery/example-apps
3187505e65b420ec5dac331894db35c290fb7cb3
[ "Apache-2.0" ]
20
2021-03-12T09:13:07.000Z
2021-06-23T23:11:02.000Z
face_recognition/face_recognition_service/app/test.py
EdgeGallery/example-apps
3187505e65b420ec5dac331894db35c290fb7cb3
[ "Apache-2.0" ]
null
null
null
face_recognition/face_recognition_service/app/test.py
EdgeGallery/example-apps
3187505e65b420ec5dac331894db35c290fb7cb3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # test face_recognition_app.py # import requests # Input host = "http://face-recognition:32111" # url = host+"/v1/face-recognition/upload" # # path_upload = '../test/biden.jpg' # split_path1 = path_upload.split('/') # filename1 = split_path1[-1] # # path_upload_2 = '../test/o...
24.75641
96
0.658726
7967c64ba1f1517d41a6ffb68feda5bc2df46aab
15,793
py
Python
armi/physics/thermalHydraulics/parameters.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
armi/physics/thermalHydraulics/parameters.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
armi/physics/thermalHydraulics/parameters.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 TerraPower, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
31.088583
129
0.569683
7967c6b5ee2e9f01c3e57057a064c6b4f7462b1c
193
py
Python
src/mathlib1/decorators.py
PartehDev/mathlib1
65047d1d5c4ecddee4c889786552592be1d1ea94
[ "MIT" ]
null
null
null
src/mathlib1/decorators.py
PartehDev/mathlib1
65047d1d5c4ecddee4c889786552592be1d1ea94
[ "MIT" ]
null
null
null
src/mathlib1/decorators.py
PartehDev/mathlib1
65047d1d5c4ecddee4c889786552592be1d1ea94
[ "MIT" ]
null
null
null
class Decorators(): def divby0(func): def inside(a,b): if a==0 or b==0: print("Cannot divide by 0...");return else: return func() return inside
32.166667
67
0.512953
7967c743f1f0e9e643b0fa73819f0f3429b7a9d4
728
py
Python
win_unc/sanitizors.py
CovenantEyes/py_win_unc
e46256560cb6acfdbfbe8992d454e7ea492cb6ba
[ "MIT" ]
10
2015-08-14T06:34:28.000Z
2020-10-03T17:48:09.000Z
win_unc/sanitizors.py
CovenantEyes/py_win_unc
e46256560cb6acfdbfbe8992d454e7ea492cb6ba
[ "MIT" ]
11
2017-01-12T23:43:56.000Z
2020-06-19T18:32:56.000Z
win_unc/sanitizors.py
CovenantEyes/py_win_unc
e46256560cb6acfdbfbe8992d454e7ea492cb6ba
[ "MIT" ]
8
2015-09-25T20:44:33.000Z
2018-10-04T03:19:42.000Z
def sanitize_for_shell(string): """ Return `string` with double quotes escaped for use in a Windows shell command. """ return string.replace('"', r'\"') def sanitize_username(name): """ This applies only to Windows usernames (logons). """ return name.translate(None, r'"/[]:;|=,+*?<>' +...
23.483871
82
0.622253
7967c847cf6a7ce38db88fef618d7165ad10cd1f
778
py
Python
course_flow/migrations/0057_auto_20210505_1753.py
SALTISES4/CourseFlow
a55b5966acd6babf688224ec2f57b2ff59545272
[ "Apache-2.0" ]
null
null
null
course_flow/migrations/0057_auto_20210505_1753.py
SALTISES4/CourseFlow
a55b5966acd6babf688224ec2f57b2ff59545272
[ "Apache-2.0" ]
2
2021-04-20T17:38:27.000Z
2021-12-12T21:38:27.000Z
course_flow/migrations/0057_auto_20210505_1753.py
SALTISES4/CourseFlow
a55b5966acd6babf688224ec2f57b2ff59545272
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.20 on 2021-05-05 17:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('course_flow', '0056_auto_20210427_2228'), ] operations = [ migrations.AddField( model_name='ou...
31.12
149
0.660668
7967c8b7abae803a2d3dec354417dda20a068894
6,150
py
Python
tests/tests.py
wekko/bove
8f89e00f7367bc6e86783e3c3fea50b800df57c9
[ "MIT" ]
null
null
null
tests/tests.py
wekko/bove
8f89e00f7367bc6e86783e3c3fea50b800df57c9
[ "MIT" ]
null
null
null
tests/tests.py
wekko/bove
8f89e00f7367bc6e86783e3c3fea50b800df57c9
[ "MIT" ]
null
null
null
import sys, os sys.path.append(os.path.abspath(".")) import unittest from bot import Bot from vk.plus import asyncio, Wait from vk.data import Message, MAX_LENGHT from vk.helpers import upload_doc, upload_photo try: from settings_real import BotSettings except ImportError: from settings import BotSettings ...
34.745763
446
0.608618
7967c96106af2326dfb920a563ec148e38cf40e4
17
py
Python
InstagramAutomations/Sweepstakes/Data/users.py
tofolo17/ScrapingNAutomationPackage
67080b809286085039e8d21b9bd44d63ef0f2874
[ "MIT" ]
null
null
null
InstagramAutomations/Sweepstakes/Data/users.py
tofolo17/ScrapingNAutomationPackage
67080b809286085039e8d21b9bd44d63ef0f2874
[ "MIT" ]
null
null
null
InstagramAutomations/Sweepstakes/Data/users.py
tofolo17/ScrapingNAutomationPackage
67080b809286085039e8d21b9bd44d63ef0f2874
[ "MIT" ]
1
2021-05-24T17:24:23.000Z
2021-05-24T17:24:23.000Z
lista_users = []
8.5
16
0.647059
7967c96949b4c90db0b39b8b8cab2d4e714fd3e5
14,429
py
Python
tests/unit/test_solvers/test_base_solver.py
emptylkj/PyBaMM
9280577deef09507452beafb56d1231fbfaaf110
[ "BSD-3-Clause" ]
1
2021-04-25T09:53:40.000Z
2021-04-25T09:53:40.000Z
tests/unit/test_solvers/test_base_solver.py
brosaplanella/PyBaMM
1e81493048d5e50e8eaac61bb774d8a2e6019c10
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_solvers/test_base_solver.py
brosaplanella/PyBaMM
1e81493048d5e50e8eaac61bb774d8a2e6019c10
[ "BSD-3-Clause" ]
null
null
null
# # Tests for the Base Solver class # import casadi import pybamm import numpy as np from scipy.sparse import csr_matrix import unittest class TestBaseSolver(unittest.TestCase): def test_base_solver_init(self): solver = pybamm.BaseSolver(rtol=1e-2, atol=1e-4) self.assertEqual(solver.rtol, 1e-2) ...
37.092545
87
0.563518
7967c96be41e5080222290fd3b2a16b5e91064e3
6,465
py
Python
NoClass/firstTetris.py
Eun0/Tetris
4fd62917ef9a952412d07851f6605f8e50f2da13
[ "MIT" ]
null
null
null
NoClass/firstTetris.py
Eun0/Tetris
4fd62917ef9a952412d07851f6605f8e50f2da13
[ "MIT" ]
3
2018-07-25T09:38:42.000Z
2018-08-03T11:01:36.000Z
NoClass/firstTetris.py
Eun0/Tetris
4fd62917ef9a952412d07851f6605f8e50f2da13
[ "MIT" ]
null
null
null
import pygame import firstShape import random import copy # 경계 있는 정사각형 그리기 (block) def draw(x,y,color): # outside.png 크기 20*20 solid=pygame.image.load("outside.png").convert() solid.fill(color,(1,1,18,18)) screen.blit(solid,(x,y)) # 가로 줄 체크 # 다 찼으면 그 줄 지운다 def line_check(board): for row in range(len(board)):...
19.770642
87
0.639288
7967ca4e8bb1789ba7fc01b8e7cbb9328d1b5d1a
8,633
py
Python
tfx/orchestration/portable/beam_dag_runner_test.py
Mikehem/tfx
e803ea6778d8550ec77dcc92bc8172f1a3a90f38
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/portable/beam_dag_runner_test.py
Mikehem/tfx
e803ea6778d8550ec77dcc92bc8172f1a3a90f38
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/portable/beam_dag_runner_test.py
Mikehem/tfx
e803ea6778d8550ec77dcc92bc8172f1a3a90f38
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
36.73617
91
0.673578
7967cb21011faaf01f8de34adb8b3dac8cbed9d3
429
py
Python
invenio_vocabularies/version.py
lnielsen/invenio-vocabularies
43ab989d4e52bbe6c57a056acc015c5afae46d63
[ "MIT" ]
null
null
null
invenio_vocabularies/version.py
lnielsen/invenio-vocabularies
43ab989d4e52bbe6c57a056acc015c5afae46d63
[ "MIT" ]
null
null
null
invenio_vocabularies/version.py
lnielsen/invenio-vocabularies
43ab989d4e52bbe6c57a056acc015c5afae46d63
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020-2021 CERN. # Copyright (C) 2021 Northwestern University. # # Invenio-Vocabularies is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. """Version information for Invenio-Vocabularies. This f...
25.235294
73
0.722611
7967cc31e03fcb34f9410e10fb235bb4cfe39f35
246
py
Python
plugins/tools/visualInterpreter/examples/robotsCodeGeneration/reactionsStorage/TimerGenerator.py
anastasia143/qreal
9bd224b41e569c9c50ab88848a5746a010c65ad7
[ "Apache-2.0" ]
39
2015-01-26T16:18:43.000Z
2021-12-20T23:36:41.000Z
plugins/tools/visualInterpreter/examples/robotsCodeGeneration/reactionsStorage/TimerGenerator.py
anastasia143/qreal
9bd224b41e569c9c50ab88848a5746a010c65ad7
[ "Apache-2.0" ]
1,248
2019-02-21T19:32:09.000Z
2022-03-29T16:50:04.000Z
plugins/tools/visualInterpreter/examples/robotsCodeGeneration/reactionsStorage/TimerGenerator.py
anastasia143/qreal
9bd224b41e569c9c50ab88848a5746a010c65ad7
[ "Apache-2.0" ]
58
2015-03-03T12:57:28.000Z
2020-05-09T15:54:42.000Z
# Application condition timer.id == max_used_id and not cur_node_is_processed # Reaction timer_code = "systick_wait_ms(" + timer.Delay + ");\n" code.append([timer_code]) id_to_pos_in_code[timer.id] = len(code) - 1 cur_node_is_processed = True
22.363636
54
0.756098
7967cc552ec685d9d4a469e2769c3cee27effc8f
14,440
py
Python
stix_shifter_modules/azure_sentinel/tests/stix_translation/test_azure_sentinel_stix_to_query.py
isstabb/stix-shifter
cd2c580e637f163de43714435c3d84b3c78b7c8d
[ "Apache-2.0" ]
null
null
null
stix_shifter_modules/azure_sentinel/tests/stix_translation/test_azure_sentinel_stix_to_query.py
isstabb/stix-shifter
cd2c580e637f163de43714435c3d84b3c78b7c8d
[ "Apache-2.0" ]
1
2021-04-29T15:06:01.000Z
2021-04-29T15:42:20.000Z
stix_shifter_modules/azure_sentinel/tests/stix_translation/test_azure_sentinel_stix_to_query.py
isstabb/stix-shifter
cd2c580e637f163de43714435c3d84b3c78b7c8d
[ "Apache-2.0" ]
1
2021-08-22T06:54:34.000Z
2021-08-22T06:54:34.000Z
from stix_shifter.stix_translation import stix_translation import unittest import re translation = stix_translation.StixTranslation() def _remove_timestamp_from_query(queries): pattern = r'eventDateTime \w{2} \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z' if isinstance(queries, list): return [re.sub(p...
61.709402
183
0.628393
7967cd1ba1b2718b04cfbb8826d86bbeb6725ea5
10,326
py
Python
tests/test_graph_tensor_backend.py
ruth-ann/deepsnap
35eeb5abdb304c53b2e0a68cbbeeaa55dca286a0
[ "MIT" ]
412
2020-06-20T01:37:29.000Z
2022-03-29T11:32:55.000Z
tests/test_graph_tensor_backend.py
ruth-ann/deepsnap
35eeb5abdb304c53b2e0a68cbbeeaa55dca286a0
[ "MIT" ]
43
2020-06-21T09:16:10.000Z
2022-02-28T03:07:50.000Z
tests/test_graph_tensor_backend.py
ruth-ann/deepsnap
35eeb5abdb304c53b2e0a68cbbeeaa55dca286a0
[ "MIT" ]
46
2020-06-20T02:00:48.000Z
2022-03-16T21:25:20.000Z
import copy import torch import unittest import numpy as np from tests.utils import simple_networkx_graph from deepsnap.graph import Graph from torch_geometric.datasets import Planetoid class TestGraphTensorBackend(unittest.TestCase): def test_graph_basics(self): G, x, y, edge_x, edge_y, edge_index, grap...
34.42
79
0.56934
7967cde64102692b90639d1c0dcdcf71738e2dee
302
py
Python
module_01/unique_char.py
IvanJL/2021_python_selenium
52ad0afa43664308437658966ec5d989a2db9c02
[ "Unlicense" ]
null
null
null
module_01/unique_char.py
IvanJL/2021_python_selenium
52ad0afa43664308437658966ec5d989a2db9c02
[ "Unlicense" ]
null
null
null
module_01/unique_char.py
IvanJL/2021_python_selenium
52ad0afa43664308437658966ec5d989a2db9c02
[ "Unlicense" ]
null
null
null
def unique_char(word): listword = [] listword[:0] = word print(listword) for index in range(len(listword)): if listword.count(listword[index]) == 1: return index elif index == len(listword)-1: return -1 word = "alphabet" print(unique_char(word))
25.166667
48
0.589404
7967cdef35e57e5c196fd16176ccab0153582dd6
437
py
Python
reflib/apps/library/forms.py
Jonothompson/reflib
0eec49efd0ac53b1eca29e22a8f52cf65b2baef6
[ "BSD-3-Clause" ]
null
null
null
reflib/apps/library/forms.py
Jonothompson/reflib
0eec49efd0ac53b1eca29e22a8f52cf65b2baef6
[ "BSD-3-Clause" ]
null
null
null
reflib/apps/library/forms.py
Jonothompson/reflib
0eec49efd0ac53b1eca29e22a8f52cf65b2baef6
[ "BSD-3-Clause" ]
null
null
null
from authtools.forms import UserCreationForm from django import forms from authtools.models import User class UserCreateForm(UserCreationForm): email = forms.EmailField(required=True) class Meta: model = User fields = ("name", "email", "password1", "password2") def clean_email(self): ...
24.277778
60
0.659039
7967cdffe70e5888a7ddbcc446755f85e541cdf3
8,524
py
Python
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/models/_azure_blob_storage_enums.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/models/_azure_blob_storage_enums.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
1
2019-06-04T18:12:16.000Z
2019-06-04T18:12:16.000Z
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/models/_azure_blob_storage_enums.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
35.22314
114
0.763726
7967ce5f2c194ffda77f6ca1e104a2cb099ff9ee
54
py
Python
debugger_protocol/schema/__init__.py
rozuur/ptvsd
046fd0f054b2eed91ec5df02e5f36151b71e36b1
[ "MIT" ]
null
null
null
debugger_protocol/schema/__init__.py
rozuur/ptvsd
046fd0f054b2eed91ec5df02e5f36151b71e36b1
[ "MIT" ]
null
null
null
debugger_protocol/schema/__init__.py
rozuur/ptvsd
046fd0f054b2eed91ec5df02e5f36151b71e36b1
[ "MIT" ]
null
null
null
import os.path DATA_DIR = os.path.dirname(__file__)
10.8
36
0.759259
7967ce674936171849353b7da0cc0ce0cb8fbbb4
690
py
Python
photo_face_classifier.py
Abezzam10/Deep-learning-TensorFlow_Keras
38901310d44e7f92a1c8c977260d58ffc97af9dc
[ "MIT" ]
null
null
null
photo_face_classifier.py
Abezzam10/Deep-learning-TensorFlow_Keras
38901310d44e7f92a1c8c977260d58ffc97af9dc
[ "MIT" ]
null
null
null
photo_face_classifier.py
Abezzam10/Deep-learning-TensorFlow_Keras
38901310d44e7f92a1c8c977260d58ffc97af9dc
[ "MIT" ]
null
null
null
import cv2 import sys import numpy as np imagePath = sys.argv[1] cascPath = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(cascPath) # Read the image image = cv2.imread(imagePath) gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) np.array(image, dtype=np.uint8) # Detect faces i...
26.538462
127
0.7
7967cec92f8e2adf64f584a18f483c689236c74e
10,347
py
Python
electrum/gui/qt/address_list.py
bdrcoin/electrum-bdrcoin
176ea57674462d8514cdcaaa174274b4e82739d0
[ "MIT" ]
null
null
null
electrum/gui/qt/address_list.py
bdrcoin/electrum-bdrcoin
176ea57674462d8514cdcaaa174274b4e82739d0
[ "MIT" ]
null
null
null
electrum/gui/qt/address_list.py
bdrcoin/electrum-bdrcoin
176ea57674462d8514cdcaaa174274b4e82739d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum-BDRcoin - lightweight BDRcoin client # Copyright (C) 2015 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including...
43.84322
114
0.642988
7967d140035d39fc740d44ce63a94b5889751b5f
13,066
py
Python
slyd/slyd/plugins/scrapely_annotations/annotations.py
suntrian/portia
2e216203264f17d4b08a37a30137a6622d2c3bc1
[ "BSD-3-Clause" ]
null
null
null
slyd/slyd/plugins/scrapely_annotations/annotations.py
suntrian/portia
2e216203264f17d4b08a37a30137a6622d2c3bc1
[ "BSD-3-Clause" ]
null
null
null
slyd/slyd/plugins/scrapely_annotations/annotations.py
suntrian/portia
2e216203264f17d4b08a37a30137a6622d2c3bc1
[ "BSD-3-Clause" ]
1
2018-07-04T10:55:23.000Z
2018-07-04T10:55:23.000Z
import json from scrapely.htmlpage import parse_html, HtmlTag, HtmlDataFragment from collections import defaultdict from itertools import tee, count from uuid import uuid4 from slyd.utils import (serialize_tag, add_tagids, remove_tagids, TAGID, OPEN_TAG, CLOSE_TAG, UNPAIRED_TAG, GENERATEDTAGI...
40.32716
79
0.541864
7967d231ff939539a0565371aa2d984c767313d8
697
py
Python
meiduo_34/mall/apps/goods/search_indexes.py
codedaliu/meiduo-store
4654ff9737b941ce9945a0c92187beea27bb0fc3
[ "MIT" ]
null
null
null
meiduo_34/mall/apps/goods/search_indexes.py
codedaliu/meiduo-store
4654ff9737b941ce9945a0c92187beea27bb0fc3
[ "MIT" ]
null
null
null
meiduo_34/mall/apps/goods/search_indexes.py
codedaliu/meiduo-store
4654ff9737b941ce9945a0c92187beea27bb0fc3
[ "MIT" ]
null
null
null
from haystack import indexes from .models import SKU class SKUIndex(indexes.SearchIndex, indexes.Indexable): """ SKU索引数据模型类 """ # text = indexes.CharField(document=True, use_template=True) id = indexes.IntegerField(model_attr='id') name = indexes.CharField(model_attr='name') price = ...
26.807692
73
0.691535
7967d2f4adfcc8f2b7c25e1afdb7b72243d23aa7
5,059
py
Python
capture.py
khsk/Python-App-Capture
a0b893765558f144399ec31f1f11fb0b30025cc7
[ "MIT" ]
null
null
null
capture.py
khsk/Python-App-Capture
a0b893765558f144399ec31f1f11fb0b30025cc7
[ "MIT" ]
null
null
null
capture.py
khsk/Python-App-Capture
a0b893765558f144399ec31f1f11fb0b30025cc7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 12 15:01:44 2017 @author: """ import sys reload(sys) sys.setdefaultencoding('cp932') tes = sys.getdefaultencoding() import os import cv2 import numpy as np import pyws as m import winxpgui from PIL import ImageGrab from PyQt4 import QtGui, QtCore ...
28.908571
115
0.641826
7967d37720465490d683ac9cdaa7bff8ebc1a8e9
2,009
py
Python
softlearning/models/dynamics_model.py
abhishekunique/RND-ashwin
f8bcf3c593df2dacc0efba0875533be71ccb5011
[ "MIT" ]
5
2021-09-23T07:35:58.000Z
2022-01-07T21:23:06.000Z
MTRF/algorithms/softlearning/models/dynamics_model.py
facebookresearch/MTRF
2fee8f3f1c2150fcecc2db2fa9e122a664a72d72
[ "Apache-2.0" ]
7
2020-09-25T22:41:46.000Z
2022-03-12T00:37:25.000Z
softlearning/models/dynamics_model.py
abhishekunique/RND-ashwin
f8bcf3c593df2dacc0efba0875533be71ccb5011
[ "MIT" ]
1
2021-12-10T20:01:16.000Z
2021-12-10T20:01:16.000Z
from softlearning.models.feedforward import feedforward_model from softlearning.models.utils import flatten_input_structure, create_inputs from softlearning.utils.keras import PicklableModel def create_dynamics_model(input_shapes, dynamics_latent_dim, *args, ...
34.637931
94
0.645097
7967d5deda30b330a5ee231981e0176126d84fcf
8,402
py
Python
cornac/models/ncf/recom_gmf.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
null
null
null
cornac/models/ncf/recom_gmf.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
null
null
null
cornac/models/ncf/recom_gmf.py
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
[ "Apache-2.0" ]
1
2020-03-19T13:58:33.000Z
2020-03-19T13:58:33.000Z
# Copyright 2018 The Cornac Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
38.365297
119
0.604499
7967d788a2e57782c89a2cd30bd44b565721a181
6,126
py
Python
chiadoge/rpc/wallet_rpc_client.py
sengexyz/chiadoge-blockchain
d2b6963876ad81d5f058a6d33e26c884a0d0b201
[ "Apache-2.0" ]
2
2021-07-05T14:34:35.000Z
2022-01-01T21:27:52.000Z
chiadoge/rpc/wallet_rpc_client.py
sengexyz/chiadoge-blockchain
d2b6963876ad81d5f058a6d33e26c884a0d0b201
[ "Apache-2.0" ]
null
null
null
chiadoge/rpc/wallet_rpc_client.py
sengexyz/chiadoge-blockchain
d2b6963876ad81d5f058a6d33e26c884a0d0b201
[ "Apache-2.0" ]
1
2021-07-07T11:08:36.000Z
2021-07-07T11:08:36.000Z
from pathlib import Path from typing import Dict, List from chiadoge.rpc.rpc_client import RpcClient from chiadoge.types.blockchain_format.coin import Coin from chiadoge.types.blockchain_format.sized_bytes import bytes32 from chiadoge.util.bech32m import decode_puzzle_hash from chiadoge.util.ints import uint32, uint64...
40.569536
118
0.635162
7967d79b019378d0f760b36d9cddcf87e38fd959
6,937
py
Python
selfdrive/test/test_models.py
Zapman69/openpilot2
cbf7d8a4450c4f187e6e4ccc5fc3b1ff9854f888
[ "MIT" ]
1
2021-08-15T18:21:45.000Z
2021-08-15T18:21:45.000Z
selfdrive/test/test_models.py
Zapman69/openpilot2
cbf7d8a4450c4f187e6e4ccc5fc3b1ff9854f888
[ "MIT" ]
null
null
null
selfdrive/test/test_models.py
Zapman69/openpilot2
cbf7d8a4450c4f187e6e4ccc5fc3b1ff9854f888
[ "MIT" ]
2
2021-08-13T08:23:51.000Z
2021-08-16T06:56:03.000Z
#!/usr/bin/env python3 # pylint: disable=E1101 import os import importlib import unittest from collections import defaultdict, Counter from parameterized import parameterized_class from cereal import log, car from selfdrive.car.fingerprints import all_known_cars from selfdrive.car.car_helpers import interfaces from se...
36.703704
113
0.706646
7967d8f3793053096e9e7af073c3d163eb3f7994
10,828
py
Python
ikalog/utils/matcher.py
joythegreat/IkaLog
541eb9e910829e2247409f65aa0e684667614403
[ "Apache-2.0" ]
null
null
null
ikalog/utils/matcher.py
joythegreat/IkaLog
541eb9e910829e2247409f65aa0e684667614403
[ "Apache-2.0" ]
null
null
null
ikalog/utils/matcher.py
joythegreat/IkaLog
541eb9e910829e2247409f65aa0e684667614403
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # IkaLog # ====== # Copyright (C) 2015 Takeshi HASEGAWA, Junki MIZUSHIMA # # 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:/...
34.374603
166
0.594477
7967d9fc037ac92b6bd93a5445be917056d4a46a
2,417
py
Python
airbyte-integrations/connectors/source-exchangeratesapi-singer/source_exchangeratesapi_singer/source.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-exchangeratesapi-singer/source_exchangeratesapi_singer/source.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-exchangeratesapi-singer/source_exchangeratesapi_singer/source.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 Airbyte Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
43.945455
140
0.732727
7967da08ea9fdd2878608f10aaf881e49a4d916a
2,723
py
Python
benchmark/baseline/cold_start_learning/cold_start.py
snubeaver/pytorch_geo
6c533ebac29c08eafe9171eba470a6aaa09d1b45
[ "MIT" ]
2
2020-09-08T15:22:08.000Z
2020-09-08T15:22:09.000Z
benchmark/baseline/cold_start_learning/cold_start.py
snubeaver/pytorch_geo
6c533ebac29c08eafe9171eba470a6aaa09d1b45
[ "MIT" ]
null
null
null
benchmark/baseline/cold_start_learning/cold_start.py
snubeaver/pytorch_geo
6c533ebac29c08eafe9171eba470a6aaa09d1b45
[ "MIT" ]
null
null
null
import argparse import torch import torch.nn.functional as F from gat_score import GATScore from torch.nn import Linear from datasets import get_planetoid_dataset from train_eval_cs import random_planetoid_splits, run import pdb from torch_geometric.nn import GCNConv parser = argparse.ArgumentParser() parser.add_argum...
40.044118
126
0.702901
7967da88b56dc72cbbcefc2ae1d961f19db5d146
5,226
py
Python
vivint/jobs.py
7ooL/web_home_auto
66d1a96359154a2a8015fb8ebfabfedcf38f69a9
[ "MIT" ]
null
null
null
vivint/jobs.py
7ooL/web_home_auto
66d1a96359154a2a8015fb8ebfabfedcf38f69a9
[ "MIT" ]
8
2020-12-30T17:41:41.000Z
2021-01-24T19:16:54.000Z
vivint/jobs.py
7ooL/HomeAuto
66d1a96359154a2a8015fb8ebfabfedcf38f69a9
[ "MIT" ]
null
null
null
from api_vivint.pyvivintsky.vivint_sky import VivintSky from django.core.exceptions import ObjectDoesNotExist from django.contrib import admin from vivint.models import Panel, Device, Account from jobs.jobs import build_jobs import asyncio, logging, warnings, time, multiprocessing, traceback, aiohttp logger = logging.g...
41.47619
100
0.608496
7967dabf44992eed12703425d26c2847d9f05ea3
8,038
py
Python
qa/pull-tester/rpc-tests.py
mirzaei-ce/core-najafbit
6de34210a9ba9cc3f21fee631bc1a1f4d12d445d
[ "MIT" ]
null
null
null
qa/pull-tester/rpc-tests.py
mirzaei-ce/core-najafbit
6de34210a9ba9cc3f21fee631bc1a1f4d12d445d
[ "MIT" ]
null
null
null
qa/pull-tester/rpc-tests.py
mirzaei-ce/core-najafbit
6de34210a9ba9cc3f21fee631bc1a1f4d12d445d
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Run Regression Test Suite This module calls down into individual test cases via subprocess. It will ...
29.992537
91
0.617815
7967dae712ebac5e4ff3b9cf0584787140742bc9
662
py
Python
kerlescan/rbac_service_interface.py
eherget/kerlescan
19aed245e9b5a470774ee9818f95ab28e9096fcc
[ "MIT" ]
null
null
null
kerlescan/rbac_service_interface.py
eherget/kerlescan
19aed245e9b5a470774ee9818f95ab28e9096fcc
[ "MIT" ]
null
null
null
kerlescan/rbac_service_interface.py
eherget/kerlescan
19aed245e9b5a470774ee9818f95ab28e9096fcc
[ "MIT" ]
null
null
null
from urllib.parse import urljoin from kerlescan import config from kerlescan.service_interface import fetch_url from kerlescan.constants import AUTH_HEADER_NAME, RBAC_SVC_ENDPOINT def get_perms(application, service_auth_key, logger, request_metric, exception_metric): """ check if user has a permission ""...
28.782609
87
0.765861
7967db45051f7734bce500c876a75b9ee6ca03f0
5,994
py
Python
music.py
ISEAGE-ISU/isetunes
50b5af2e48f31ace70829e36d79ba9a8b1a8919e
[ "MIT" ]
1
2019-02-01T23:04:02.000Z
2019-02-01T23:04:02.000Z
music.py
k3an3/isetunes
d8b6bde970c9cc962bcd6275d4ac6fa37bfa835d
[ "MIT" ]
null
null
null
music.py
k3an3/isetunes
d8b6bde970c9cc962bcd6275d4ac6fa37bfa835d
[ "MIT" ]
3
2018-10-19T12:47:37.000Z
2020-08-26T01:14:43.000Z
""" mopidy.py ~~~~~~~~~ Websocket JSONRPC client for the Mopidy media server """ import json import random from time import sleep, time import requests from requests.auth import HTTPBasicAuth UNAUTH_COMMANDS = ( 'search', 'get_tracks', 'add_track', 'get_state', 'get_current_track', 'get_time_...
30.426396
112
0.598098
7967dbae9d4d943abef2d5476deb56d6f603d7da
2,328
py
Python
demo.py
kphmd/WCSPH_Fountain
93895406f4ff14ee13a7ca916c1d193b3575c07d
[ "MIT" ]
3
2022-01-02T03:35:36.000Z
2022-01-03T04:17:09.000Z
demo.py
kphmd/WCSPH_Fountain
93895406f4ff14ee13a7ca916c1d193b3575c07d
[ "MIT" ]
null
null
null
demo.py
kphmd/WCSPH_Fountain
93895406f4ff14ee13a7ca916c1d193b3575c07d
[ "MIT" ]
null
null
null
import taichi as ti import numpy as np from particle_system import ParticleSystem from wcsph import WCSPHSolver ti.init(arch=ti.cpu) # ti.init(arch=ti.cpu,kernel_profiler=True) # Use GPU for higher peformance if available # ti.init(arch=ti.gpu, device_memory_GB=1, packed=True, default_fp=ti.f32) # ti.init(arch=ti.gpu...
32.788732
87
0.574742
7967dc11da804b517a61237c36cb5b3e6ece07f5
2,420
py
Python
tests/models/validators/v2_2_2_3/jsd_e1bd67a1a0225713ab23f0d0d3ceb4f6.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
tests/models/validators/v2_2_2_3/jsd_e1bd67a1a0225713ab23f0d0d3ceb4f6.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
tests/models/validators/v2_2_2_3/jsd_e1bd67a1a0225713ab23f0d0d3ceb4f6.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center GetStatusAPIForEvents data model. Copyright (c) 2019-2021 Cisco Systems. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including...
35.072464
83
0.659917
7967dc3ceedbcd2c5bd581c93b5be84867704b00
7,305
py
Python
beer/cli/subcommands/shmm/mksphoneloop.py
desh2608/beer
57ccbd3cf5c415d854d02d2b114143f61a63305d
[ "MIT" ]
null
null
null
beer/cli/subcommands/shmm/mksphoneloop.py
desh2608/beer
57ccbd3cf5c415d854d02d2b114143f61a63305d
[ "MIT" ]
null
null
null
beer/cli/subcommands/shmm/mksphoneloop.py
desh2608/beer
57ccbd3cf5c415d854d02d2b114143f61a63305d
[ "MIT" ]
null
null
null
'create a subspace phone-loop model' import argparse import copy import pickle import sys import torch import yaml import beer # Create a view of the emissions (aka modelset) for each units. def iterate_units(modelset, nunits, nstates): for idx in range(nunits): start, end = idx * nstates, (idx + 1) *...
37.461538
86
0.631485
7967dcb8666eb095d61f95fbb2c92b0de0b10f6d
3,513
py
Python
invite.py
dmitriy34555/parsredact
dbf44ff3056ff7a874410816be506ba4d1518662
[ "MIT" ]
null
null
null
invite.py
dmitriy34555/parsredact
dbf44ff3056ff7a874410816be506ba4d1518662
[ "MIT" ]
null
null
null
invite.py
dmitriy34555/parsredact
dbf44ff3056ff7a874410816be506ba4d1518662
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from telethon.sync import TelegramClient from telethon.tl.functions.messages import GetDialogsRequest from telethon.tl.types import InputPeerEmpty, InputPeerChannel, InputPeerUser from telethon.errors.rpcerrorlist import PeerFloodError, UserPrivacyRestrictedError from telethon.tl.functions.channe...
27.880952
129
0.613436
7967dd69cf41783781683f25b25c17d1f728c96c
2,240
py
Python
tests/test_log.py
barretobrock/easylogger
68bc54d30494abfd2627a690e46bc226a7bcd3d7
[ "MIT" ]
null
null
null
tests/test_log.py
barretobrock/easylogger
68bc54d30494abfd2627a690e46bc226a7bcd3d7
[ "MIT" ]
null
null
null
tests/test_log.py
barretobrock/easylogger
68bc54d30494abfd2627a690e46bc226a7bcd3d7
[ "MIT" ]
null
null
null
import unittest from easylogger import Log class TestLogger(unittest.TestCase): def setUp(self) -> None: pass def test_child_log(self): parent = Log('parent', log_level_str='DEBUG') # Regular child - should inherit level child_1 = Log(parent, child_name='child_1') # Ch...
32.941176
88
0.60625
7967ddfab9e869726e87117b5c128a15a81f164c
11,113
py
Python
sonarqube/utils/config.py
0x646e78/python-sonarqube-api
c641ab4dd180b4184f2663bd28277aa796b36417
[ "MIT" ]
null
null
null
sonarqube/utils/config.py
0x646e78/python-sonarqube-api
c641ab4dd180b4184f2663bd28277aa796b36417
[ "MIT" ]
null
null
null
sonarqube/utils/config.py
0x646e78/python-sonarqube-api
c641ab4dd180b4184f2663bd28277aa796b36417
[ "MIT" ]
null
null
null
API_COMPONENTS_SHOW_ENDPOINT = '/api/components/show' API_PROJECTS_BULK_DELETE_ENDPOINT = '/api/projects/bulk_delete' API_PROJECTS_SEARCH_ENDPOINT = '/api/projects/search' API_PROJECTS_CREATE_ENDPOINT = '/api/projects/create' API_PROJECTS_DELETE_ENDPOINT = '/api/projects/delete' API_PROJECTS_UPDATE_VISIBILITY_ENDPOINT...
53.946602
119
0.857014
7967de62b0269fc6cf24a401a4be79fa46d98685
739
py
Python
buildscripts/s3del.py
sayfullah/MongoPi
8205c77e634a2db210938ae97dbe09fdaaa43736
[ "Apache-2.0" ]
5
2015-02-02T04:51:58.000Z
2019-01-22T03:01:38.000Z
buildscripts/s3del.py
sayfullah/MongoPi
8205c77e634a2db210938ae97dbe09fdaaa43736
[ "Apache-2.0" ]
null
null
null
buildscripts/s3del.py
sayfullah/MongoPi
8205c77e634a2db210938ae97dbe09fdaaa43736
[ "Apache-2.0" ]
2
2015-02-19T10:19:03.000Z
2020-10-29T07:00:33.000Z
import os import sys import time sys.path.append( "." ) sys.path.append( ".." ) sys.path.append( "../../" ) sys.path.append( "../../../" ) import simples3 import settings import subprocess # check s3 for md5 hashes def check_dir( bucket , prefix , todel ): for ( key , modify , etag , size ) in bucket.list...
19.972973
78
0.573748
7967de78429d731dd2c956ed4a18b7784cf04354
4,935
py
Python
examples/campaign_management/set_ad_parameters.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
examples/campaign_management/set_ad_parameters.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
examples/campaign_management/set_ad_parameters.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # 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 ...
36.021898
108
0.687943
7967de7fe4ddda5afdb6a69dc44a3f78d3fbeabc
3,216
py
Python
recipes/boost-ext-ut/all/conanfile.py
tonyseek/conan-center-index
c3dd1506f897c2e4b6e10128edb044a6964c070a
[ "MIT" ]
1
2020-01-31T22:47:14.000Z
2020-01-31T22:47:14.000Z
recipes/boost-ext-ut/all/conanfile.py
tonyseek/conan-center-index
c3dd1506f897c2e4b6e10128edb044a6964c070a
[ "MIT" ]
1
2021-08-10T20:24:22.000Z
2021-08-11T06:19:18.000Z
recipes/boost-ext-ut/all/conanfile.py
tonyseek/conan-center-index
c3dd1506f897c2e4b6e10128edb044a6964c070a
[ "MIT" ]
null
null
null
from conans import ConanFile, tools from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.36.0" class UTConan(ConanFile): name = "boost-ext-ut" description = ("C++17/20 single header/single module, " "macro-free micro Unit Testing Framework") topic...
39.703704
83
0.602612
7967e0c09575f0883027390de9488288a0246358
5,971
py
Python
tests/loggers/test_tensorboard.py
Joel-hanson/pytorch-lightning
83ab3eadb6bd32a761fd2e710a7a28778efa0360
[ "Apache-2.0" ]
1
2020-09-18T16:30:53.000Z
2020-09-18T16:30:53.000Z
tests/loggers/test_tensorboard.py
Joel-hanson/pytorch-lightning
83ab3eadb6bd32a761fd2e710a7a28778efa0360
[ "Apache-2.0" ]
null
null
null
tests/loggers/test_tensorboard.py
Joel-hanson/pytorch-lightning
83ab3eadb6bd32a761fd2e710a7a28778efa0360
[ "Apache-2.0" ]
null
null
null
import os from argparse import Namespace import pytest import torch import yaml from omegaconf import OmegaConf from packaging import version from pytorch_lightning import Trainer from pytorch_lightning.loggers import TensorBoardLogger from tests.base import EvalModelTemplate @pytest.mark.skipif( version.parse(...
32.451087
100
0.667057
7967e1ab4768379eae916db8a3a25fd1c253b3c4
11,241
py
Python
src/ch10/red_black_tree.py
shaqsnake/Data-Structures-and-Algorithm-in-Python
a9ff1609524a16ad4946a852694cc69d597e3638
[ "MIT" ]
47
2018-12-03T09:30:14.000Z
2022-03-23T02:24:01.000Z
src/ch10/red_black_tree.py
shaqsnake/Data-Structures-and-Algorithm-in-Python
a9ff1609524a16ad4946a852694cc69d597e3638
[ "MIT" ]
1
2019-03-27T03:30:27.000Z
2019-03-27T03:30:27.000Z
src/ch10/red_black_tree.py
loong520/Data-Structures-and-Algorithms-in-Python
2e2ad21c42ea80774898cfdb86796a7e9d2931a3
[ "MIT" ]
24
2018-12-18T01:59:15.000Z
2022-01-30T09:26:58.000Z
class RBNode: def __init__(self, val, is_red, parent=None, left=None, right=None): self.val = val self.parent = parent self.left = left self.right = right self.color = is_red class RBTree: def __init__(self): self.root = None def left_rotate(self, node): ...
38.628866
103
0.520683
7967e1bce22fb8ba67dfaedad14630ec26aa04e5
711
py
Python
test/python/functional_tests/test_disable.py
hyperskill/hyperstyle
bf3c6e2dc42290ad27f2d30ce42d84a53241544b
[ "Apache-2.0" ]
18
2020-10-05T16:48:11.000Z
2022-03-22T04:15:38.000Z
test/python/functional_tests/test_disable.py
hyperskill/hyperstyle
bf3c6e2dc42290ad27f2d30ce42d84a53241544b
[ "Apache-2.0" ]
60
2020-10-05T17:01:05.000Z
2022-01-27T12:46:14.000Z
test/python/functional_tests/test_disable.py
hyperskill/hyperstyle
bf3c6e2dc42290ad27f2d30ce42d84a53241544b
[ "Apache-2.0" ]
6
2021-02-09T09:31:19.000Z
2021-08-13T07:45:51.000Z
import subprocess from test.python.functional_tests.conftest import DATA_PATH, LocalCommandBuilder def test_disable_works(local_command: LocalCommandBuilder): file_path = DATA_PATH / 'disable' / 'contains_flake8_issues.py' local_command.path = file_path process = subprocess.run( local_command.bui...
26.333333
80
0.699015
7967e22d6a0319a530cb2f00e54872f022ac0095
8,463
py
Python
tensorflow/examples/tutorials/mnist/mnist_with_summaries.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/examples/tutorials/mnist/mnist_with_summaries.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/examples/tutorials/mnist/mnist_with_summaries.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.546729
80
0.675292
7967e24bf68fb4ca3a78b7a1393cbcb1eba30a42
9,812
py
Python
resources/scripts/startup/Shotgun_menu.py
danbradham/tk-blender
4698fefeda09b9370c47c7213d719f62bf98e3f0
[ "Apache-2.0" ]
null
null
null
resources/scripts/startup/Shotgun_menu.py
danbradham/tk-blender
4698fefeda09b9370c47c7213d719f62bf98e3f0
[ "Apache-2.0" ]
null
null
null
resources/scripts/startup/Shotgun_menu.py
danbradham/tk-blender
4698fefeda09b9370c47c7213d719f62bf98e3f0
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2020, Diego Garcia Huerta. # # Your use of this software as distributed in this GitHub repository, is # governed by the Apache License 2.0 # # Your use of the Shotgun Pipeline Toolkit is governed by the applicable # license a...
30.190769
92
0.672951
7967e28c7c0066a9885c72054c5f21abd96f4830
5,825
py
Python
h1/models/invoice_seller_address.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/models/invoice_seller_address.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/models/invoice_seller_address.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
# coding: utf-8 """ HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from h1.configuration import Configuration class InvoiceSellerAddress(object): """NOTE: This c...
28.694581
120
0.588155
7967e3597914adf7297d57dceac6e854323349e6
2,927
py
Python
Jumpscale/tools/timer/Timer.py
threefoldtech/JumpscaleX
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
2
2019-05-09T07:21:25.000Z
2019-08-05T06:37:53.000Z
Jumpscale/tools/timer/Timer.py
threefoldtech/JumpscaleX
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
664
2018-12-19T12:43:44.000Z
2019-08-23T04:24:42.000Z
Jumpscale/tools/timer/Timer.py
threefoldtech/jumpscale10
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
7
2019-05-03T07:14:37.000Z
2019-08-05T12:36:52.000Z
import time from Jumpscale import j JSBASE = j.application.JSBaseClass class TIMER(j.application.JSBaseClass): def __init__(self): self.__jslocation__ = "j.tools.timer" JSBASE.__init__(self) @staticmethod def execute_until(callback, timeout=60, interval=0.2): """ Check pe...
30.175258
113
0.571917
7967e48178e87b3a606d537e6bbd7abce6be27ee
5,841
py
Python
copyparty/httpconn.py
Daedren/copyparty
b9cf8f3973cc4be1df4cd50ad3b2a6ef38a99eb5
[ "MIT" ]
47
2020-06-24T19:00:40.000Z
2022-03-23T03:57:40.000Z
copyparty/httpconn.py
Daedren/copyparty
b9cf8f3973cc4be1df4cd50ad3b2a6ef38a99eb5
[ "MIT" ]
7
2021-02-21T03:11:28.000Z
2021-12-03T01:09:56.000Z
copyparty/httpconn.py
Daedren/copyparty
b9cf8f3973cc4be1df4cd50ad3b2a6ef38a99eb5
[ "MIT" ]
5
2021-06-30T17:42:40.000Z
2022-01-24T04:59:07.000Z
# coding: utf-8 from __future__ import print_function, unicode_literals import re import os import time import socket HAVE_SSL = True try: import ssl except: HAVE_SSL = False from .__init__ import E from .util import Unrecv from .httpcli import HttpCli from .u2idx import U2idx from .th_cli import ThumbCli fr...
30.581152
86
0.505735
7967e490ae88d56f43fa5bf9e3c297d15b8e8a57
2,111
py
Python
src/3-train_subset.py
Brokenice0415/CASIA-HWDB1.1-cnn
35fb7f87893c51a651705cd4dbb6b6f05e37fee2
[ "MIT" ]
95
2016-06-09T12:39:28.000Z
2022-03-26T23:49:52.000Z
src/3-train_subset.py
Brokenice0415/CASIA-HWDB1.1-cnn
35fb7f87893c51a651705cd4dbb6b6f05e37fee2
[ "MIT" ]
2
2019-12-14T07:52:09.000Z
2020-02-24T16:28:08.000Z
src/3-train_subset.py
Brokenice0415/CASIA-HWDB1.1-cnn
35fb7f87893c51a651705cd4dbb6b6f05e37fee2
[ "MIT" ]
32
2016-10-19T08:19:28.000Z
2022-01-20T10:37:55.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json import sys import time import numpy as np np.random.seed(1337) import h5py from keras.layers.convolutional import Conv2D, MaxPooling2D from keras.layers.core import Dense, Dropout, Flatten from keras.models import Sequential from keras.regularizers import l2 ...
34.606557
104
0.643771
7967e593a5b2ea3061788fb4cd49317a11cbd4f2
7,598
py
Python
winlib/pyreadline/console/ansi.py
netsec/pytan
29a3484d21cb90d8896275febd1c535e4f3cdc7e
[ "MIT" ]
5
2018-07-02T19:10:39.000Z
2021-09-27T04:05:10.000Z
winlib/pyreadline/console/ansi.py
c1rdan/pytan
5e537a6dcf4136e3b9c3905a39f073396e7f044f
[ "MIT" ]
3
2018-06-10T06:28:06.000Z
2021-09-24T13:54:19.000Z
winlib/pyreadline/console/ansi.py
c1rdan/pytan
5e537a6dcf4136e3b9c3905a39f073396e7f044f
[ "MIT" ]
null
null
null
# -*- coding: ISO-8859-1 -*- from __future__ import print_function, unicode_literals, absolute_import import re, sys, os terminal_escape = re.compile('(\001?\033\\[[0-9;]*m\002?)') escape_parts = re.compile('\001?\033\\[([0-9;]*)m\002?') class AnsiState(object): def __init__(self, bold=False, inverse=Fa...
39.572917
136
0.5408
7967e5c6117c36dd78cb57ac1b5bc16a47f3f6c9
7,960
py
Python
tools/w3af/w3af/plugins/infrastructure/frontpage_version.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/infrastructure/frontpage_version.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/infrastructure/frontpage_version.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" frontpage_version.py Copyright 2006 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the hop...
38.269231
84
0.623995
7967e6024d8595c5de4e8079345bfb522d730066
129
py
Python
problems/algorithms/reorder.py
getsling/interviews
67fc3598568a5cb34beec565d7d761aadc084100
[ "MIT" ]
2
2015-08-28T13:28:01.000Z
2021-11-11T16:04:17.000Z
problems/algorithms/reorder.py
getsling/interviews
67fc3598568a5cb34beec565d7d761aadc084100
[ "MIT" ]
null
null
null
problems/algorithms/reorder.py
getsling/interviews
67fc3598568a5cb34beec565d7d761aadc084100
[ "MIT" ]
4
2015-01-06T10:59:53.000Z
2021-11-10T10:27:13.000Z
''' Problem: Given a string, reorder the characters in priority order: Example: string: banana priority: can result: aaannb '''
12.9
57
0.744186
7967e77279f7ccd4f40260ca16f5c434ad603da9
5,081
py
Python
tests/io/test_csv_http.py
ANA-POTJE/kedro
cba5f4577e17d51346c719da0fa12bb784acffc8
[ "Apache-2.0" ]
null
null
null
tests/io/test_csv_http.py
ANA-POTJE/kedro
cba5f4577e17d51346c719da0fa12bb784acffc8
[ "Apache-2.0" ]
null
null
null
tests/io/test_csv_http.py
ANA-POTJE/kedro
cba5f4577e17d51346c719da0fa12bb784acffc8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS", WIT...
34.564626
86
0.669947
7967e8ab32cdaa16df1228105f214bf2875afc33
2,804
py
Python
stixcore/processing/tests/test_processing.py
i4Ds/STIXCore
9a765a33f2e924ead669b9b99afc1e41a4d2d8e8
[ "BSD-3-Clause" ]
1
2022-03-31T13:42:43.000Z
2022-03-31T13:42:43.000Z
stixcore/processing/tests/test_processing.py
i4Ds/STIXCore
9a765a33f2e924ead669b9b99afc1e41a4d2d8e8
[ "BSD-3-Clause" ]
192
2020-11-03T22:40:19.000Z
2022-03-31T15:17:13.000Z
stixcore/processing/tests/test_processing.py
i4Ds/STIXCore
9a765a33f2e924ead669b9b99afc1e41a4d2d8e8
[ "BSD-3-Clause" ]
3
2020-11-09T15:05:18.000Z
2022-01-21T07:52:51.000Z
import sys from pathlib import Path import numpy as np import pytest from astropy.io.fits.diff import FITSDiff from stixcore.data.test import test_data from stixcore.idb.idb import IDBPolynomialCalibration from stixcore.idb.manager import IDBManager from stixcore.io.soc.manager import SOCManager from stixcore.proces...
33.783133
99
0.689729
7967e94e658ff134cf69111390506cd511452e34
123
py
Python
tests/unit/management/test_urls.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
tests/unit/management/test_urls.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
tests/unit/management/test_urls.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
""" This module contains the unit tests related to the urls in app ``management``. """ # from django.test import TestCase
17.571429
46
0.723577
7967e97ad1e98de3b6f333a03eacaf818bb3637b
11,720
py
Python
config/settings/base.py
vinyasmusic/price-alert
8781bb567898ee9a60164994ceedbcf4372d6357
[ "MIT" ]
5
2018-08-02T15:00:53.000Z
2022-01-15T07:56:27.000Z
config/settings/base.py
vinyasmusic/price-alert
8781bb567898ee9a60164994ceedbcf4372d6357
[ "MIT" ]
8
2018-08-06T18:45:30.000Z
2018-08-15T17:28:44.000Z
config/settings/base.py
vinyasmusic/price-alert
8781bb567898ee9a60164994ceedbcf4372d6357
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (stock_price_alert/config/settings/base.py - 3 = stock_price_alert/) APPS_DIR = ROOT_DIR.path('stock_price_alert') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=Fa...
41.413428
109
0.658191
7967ea11a7f9fe7c9c9930f7ea99fa65df7b45c8
11,854
py
Python
intersight/model/cloud_availability_zone.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/cloud_availability_zone.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/cloud_availability_zone.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
47.606426
1,678
0.632107
7967ea7491105e3bc264c337236c07ec60643a00
167
py
Python
enci/f2g/doctype/furniture_to_go_product_group/test_furniture_to_go_product_group.py
artykbasar/enci
e65ed17ff3414f04db54ee53b83ddcd3808811d2
[ "MIT" ]
null
null
null
enci/f2g/doctype/furniture_to_go_product_group/test_furniture_to_go_product_group.py
artykbasar/enci
e65ed17ff3414f04db54ee53b83ddcd3808811d2
[ "MIT" ]
null
null
null
enci/f2g/doctype/furniture_to_go_product_group/test_furniture_to_go_product_group.py
artykbasar/enci
e65ed17ff3414f04db54ee53b83ddcd3808811d2
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Artyk Basarov and Contributors # See license.txt # import frappe import unittest class TestFurnitureToGoProductGroup(unittest.TestCase): pass
18.555556
55
0.802395
7967eb9ab29295899f023eb1d09f8042abf5ee06
71
py
Python
checkov/helm/registry.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
checkov/helm/registry.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
checkov/helm/registry.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
from checkov.helm.base_registry import Registry registry = Registry()
17.75
47
0.816901
7967ecae9895a27018071390205ad15562822e64
4,681
py
Python
tests/functional/test_api.py
rickyhan/h
d13cbc3ec5cf92fbfb40ad360c7a5e0d937fbd14
[ "MIT" ]
2
2021-11-07T23:14:54.000Z
2021-11-17T10:11:55.000Z
tests/functional/test_api.py
0b01/h
d13cbc3ec5cf92fbfb40ad360c7a5e0d937fbd14
[ "MIT" ]
null
null
null
tests/functional/test_api.py
0b01/h
d13cbc3ec5cf92fbfb40ad360c7a5e0d937fbd14
[ "MIT" ]
1
2017-03-12T00:18:33.000Z
2017-03-12T00:18:33.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import pytest @pytest.mark.functional class TestAPI(object): def test_annotation_read(self, app, annotation): """Fetch an annotation by ID.""" res = app.get('/api/annotations/' + annotation.id, headers={b'accep...
31.206667
98
0.644093
7967ede642b73998f1d0e767f528303db696b3e2
943
py
Python
Backend/app/helpers/model_helper.py
WrathTitan/twentyone
22665214b2e7699d9c785b22174bdab8992cbb7d
[ "MIT" ]
9
2020-11-10T14:21:44.000Z
2021-10-02T13:12:50.000Z
Backend/app/helpers/model_helper.py
WrathTitan/twentyone
22665214b2e7699d9c785b22174bdab8992cbb7d
[ "MIT" ]
null
null
null
Backend/app/helpers/model_helper.py
WrathTitan/twentyone
22665214b2e7699d9c785b22174bdab8992cbb7d
[ "MIT" ]
7
2020-11-14T08:19:53.000Z
2021-08-11T14:41:37.000Z
from Backend.app.helpers.allhelpers import serialiseDict from Backend.app.config import settings import random def create_model_id(Project21Database): id = random.randint(10000,99999) result=Project21Database.find_one(settings.DB_COLLECTION_MODEL,{"modelID":id}) if result: id=create_model_id() ...
36.269231
91
0.673383