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
795f3e177932bbb7a9dc6d7bed5922b2b41de75d
7,710
py
Python
homeassistant/components/lifx_legacy/light.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
1
2020-12-18T12:23:04.000Z
2020-12-18T12:23:04.000Z
homeassistant/components/lifx_legacy/light.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
60
2020-08-03T07:32:56.000Z
2022-03-31T06:02:07.000Z
homeassistant/components/lifx_legacy/light.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
""" Support for the LIFX platform that implements lights. This is a legacy platform, included because the current lifx platform does not yet support Windows. """ import logging import liffylights import voluptuous as vol from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_...
27.634409
88
0.594682
795f3eb39a7bc588f8dfb4eeb5f4d16db57abed5
82
py
Python
organization_app/www/featured.py
TIJANI0826/frappeOrg
32af8dab8dd9bdb31eae2fae853d72fa4742a382
[ "MIT" ]
null
null
null
organization_app/www/featured.py
TIJANI0826/frappeOrg
32af8dab8dd9bdb31eae2fae853d72fa4742a382
[ "MIT" ]
null
null
null
organization_app/www/featured.py
TIJANI0826/frappeOrg
32af8dab8dd9bdb31eae2fae853d72fa4742a382
[ "MIT" ]
null
null
null
import frappe def get_content(context): context['users'] = frappe.get_all('User')
27.333333
42
0.756098
795f3ebc2f09df5fcd92b1d58d3339e960cf8cb3
8,087
py
Python
site_scons/site_tools/command_output.py
bluebellzhy/chromium
008c4fef2676506869a0404239da31e83fd6ccc7
[ "BSD-3-Clause" ]
1
2016-05-08T15:35:17.000Z
2016-05-08T15:35:17.000Z
site_scons/site_tools/command_output.py
bluebellzhy/chromium
008c4fef2676506869a0404239da31e83fd6ccc7
[ "BSD-3-Clause" ]
null
null
null
site_scons/site_tools/command_output.py
bluebellzhy/chromium
008c4fef2676506869a0404239da31e83fd6ccc7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python2.4 # Copyright 2008, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
34.412766
90
0.683072
795f3ed3fd2647db481acad58011814a496be72f
19,915
py
Python
run_update_from_new_legs_parallel.py
mehrdad-bm/mobility_shift
242f12b60dc8e07e3da13b5f1199456fd0fd697e
[ "MIT" ]
1
2020-06-24T12:49:49.000Z
2020-06-24T12:49:49.000Z
run_update_from_new_legs_parallel.py
mehrdad-bm/mobility_shift
242f12b60dc8e07e3da13b5f1199456fd0fd697e
[ "MIT" ]
null
null
null
run_update_from_new_legs_parallel.py
mehrdad-bm/mobility_shift
242f12b60dc8e07e3da13b5f1199456fd0fd697e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 25 23:19:48 2020 @author: mehrdad """ import threading import tslib.threads import tslib.common import tslib.trip_computation import datetime import pickle import numpy as np import tslib.server_app import tslib.database import tslib.common import ...
50.037688
368
0.670148
795f3f834fd439a069faa4fe9b879694981b5f97
364
py
Python
madLibs.py
Squidjigg/pythonProjects
172de7e0fa8cd5d4c1360456e769461245560369
[ "MIT" ]
null
null
null
madLibs.py
Squidjigg/pythonProjects
172de7e0fa8cd5d4c1360456e769461245560369
[ "MIT" ]
null
null
null
madLibs.py
Squidjigg/pythonProjects
172de7e0fa8cd5d4c1360456e769461245560369
[ "MIT" ]
null
null
null
# define var for inputs. colour = input("Enter a colour: ") pluralNoun = input("Enter a plural noun: ") item = input("Enter an item: ") celebrity = input("Enter a celebrity name: " ) # print out results. print(f"\nRoses are {colour},") print(f"{pluralNoun.capitalize()} are blue.") print(f"{item.capitalize()} is sweet,...
33.090909
46
0.684066
795f4099853fe518352d573027fd63bc6d680004
2,185
py
Python
ros/src/twist_controller/twist_controller_bkp.py
harithatavarthy/CarND-Capstone
1c32cb465b7825361b95a61907ed639998b9d5f0
[ "MIT" ]
1
2019-05-20T22:08:25.000Z
2019-05-20T22:08:25.000Z
ros/src/twist_controller/twist_controller_bkp.py
harithatavarthy/CarND-Capstone
1c32cb465b7825361b95a61907ed639998b9d5f0
[ "MIT" ]
null
null
null
ros/src/twist_controller/twist_controller_bkp.py
harithatavarthy/CarND-Capstone
1c32cb465b7825361b95a61907ed639998b9d5f0
[ "MIT" ]
null
null
null
import rospy from yaw_controller import YawController from pid import PID from lowpass import LowPassFilter GAS_DENSITY = 2.858 ONE_MPH = 0.44704 class Controller(object): #def __init__(self, *args, **kwargs): # TODO: Implement # pass def __init__(self, vehicle_mass, fuel_capacity, brake_dea...
29.527027
164
0.730435
795f4150ab4c8739bea3d928c08a43f64827f14e
20,452
py
Python
habitat_baselines/rl/ppo/ppo_trainer.py
alexandrugavril/habitat-api
95106a965355e024dc7ebd109519799a64530660
[ "MIT" ]
null
null
null
habitat_baselines/rl/ppo/ppo_trainer.py
alexandrugavril/habitat-api
95106a965355e024dc7ebd109519799a64530660
[ "MIT" ]
null
null
null
habitat_baselines/rl/ppo/ppo_trainer.py
alexandrugavril/habitat-api
95106a965355e024dc7ebd109519799a64530660
[ "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 os import time from collections import deque from typing import Dict, List import numpy as np import torch from ...
34.547297
93
0.54958
795f41e0b309eacc199fbc7be0db8a133e6c6a1a
628
py
Python
tests/detector/detector_test.py
ldfrancis/faster_rcnn
35b1ea5d16e669088e73bc741a7ea294221e6516
[ "MIT" ]
null
null
null
tests/detector/detector_test.py
ldfrancis/faster_rcnn
35b1ea5d16e669088e73bc741a7ea294221e6516
[ "MIT" ]
1
2021-11-01T20:07:09.000Z
2021-11-01T20:07:09.000Z
tests/detector/detector_test.py
ldfrancis/faster_rcnn
35b1ea5d16e669088e73bc741a7ea294221e6516
[ "MIT" ]
1
2021-09-06T04:38:01.000Z
2021-09-06T04:38:01.000Z
import tensorflow as tf from fasterrcnn.detection import Detector class TestDetector: def test_detector(self, processed_roi, cfg): detector_cfg = cfg["detector"] detector = Detector(detector_cfg) assert detector.num_classes == detector_cfg["num_classes"] assert detector.input_chan...
31.4
72
0.652866
795f421fb375c2fab908b75f1a4d7e16bf9c300e
8,892
py
Python
src/graceful/resources/generic.py
anlcnydn/graceful
d4678cb6349a5c843a5e58002fc80140821609e4
[ "BSD-3-Clause" ]
83
2015-06-18T18:08:50.000Z
2021-05-21T06:12:46.000Z
src/graceful/resources/generic.py
anlcnydn/graceful
d4678cb6349a5c843a5e58002fc80140821609e4
[ "BSD-3-Clause" ]
59
2015-07-02T12:28:50.000Z
2019-01-21T18:32:47.000Z
src/graceful/resources/generic.py
anlcnydn/graceful
d4678cb6349a5c843a5e58002fc80140821609e4
[ "BSD-3-Clause" ]
14
2015-08-26T22:43:47.000Z
2020-04-17T11:00:37.000Z
from functools import partial from graceful.resources.base import BaseResource from graceful.resources.mixins import ( RetrieveMixin, ListMixin, UpdateMixin, CreateMixin, DeleteMixin, PaginatedMixin, CreateBulkMixin ) class Resource(RetrieveMixin, BaseResource): """Basic retrieval of ...
31.090909
79
0.660256
795f43d68bd040be219ec40a06e06dcf43d2eeef
18,027
py
Python
tests/unit/ops/test_categorify.py
SimonCW/NVTabular
229d6da5cfcf26dece7867ff43a1414b711b07be
[ "Apache-2.0" ]
null
null
null
tests/unit/ops/test_categorify.py
SimonCW/NVTabular
229d6da5cfcf26dece7867ff43a1414b711b07be
[ "Apache-2.0" ]
null
null
null
tests/unit/ops/test_categorify.py
SimonCW/NVTabular
229d6da5cfcf26dece7867ff43a1414b711b07be
[ "Apache-2.0" ]
1
2020-08-17T05:41:28.000Z
2020-08-17T05:41:28.000Z
# # Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
35.982036
100
0.58895
795f444e92de176b75240cadb7f8ad941e171a6d
1,383
py
Python
PythonCode/03/3.5.4_SupportVectorMachine.py
whlll-coder/Python-
89ef9a85e6b985f7f991695c8838a0356888cb76
[ "MIT" ]
null
null
null
PythonCode/03/3.5.4_SupportVectorMachine.py
whlll-coder/Python-
89ef9a85e6b985f7f991695c8838a0356888cb76
[ "MIT" ]
null
null
null
PythonCode/03/3.5.4_SupportVectorMachine.py
whlll-coder/Python-
89ef9a85e6b985f7f991695c8838a0356888cb76
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt from sklearn import datasets from sklearn import svm from sklearn.metrics import accuracy_score, confusion_matrix from sklearn.metrics import precision_score, recall_score, f1_score # 加载digits数据 digits = datasets.load_digits() # 在第2行第5列显示图像 for label, img in zi...
27.66
67
0.723066
795f447c4bc9e2ff9bbcd836e0ebaba2b5eec21a
2,211
py
Python
farms2face/userregistration/migrations/0006_auto_20170406_0850.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/userregistration/migrations/0006_auto_20170406_0850.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/userregistration/migrations/0006_auto_20170406_0850.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
2
2018-06-19T12:12:08.000Z
2018-06-25T18:45:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-06 15:50 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('userregistration', '0005_auto...
36.245902
251
0.579376
795f45c28a071e4f6734533ffc11e8def26cb405
24,482
py
Python
tests/hs2/test_hs2.py
twmarshall/impala
bdd904922a220c37326928ac674779acaef5f6fa
[ "Apache-2.0" ]
null
null
null
tests/hs2/test_hs2.py
twmarshall/impala
bdd904922a220c37326928ac674779acaef5f6fa
[ "Apache-2.0" ]
null
null
null
tests/hs2/test_hs2.py
twmarshall/impala
bdd904922a220c37326928ac674779acaef5f6fa
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
45.675373
90
0.766972
795f460aa62a2f8bf6acef1218232692a0109695
7,190
py
Python
plugins/luminos/luminos.py
linuxaddict89/luminos
cd525173bd6766eb109c4409581f6c6273d1c1bd
[ "MIT" ]
null
null
null
plugins/luminos/luminos.py
linuxaddict89/luminos
cd525173bd6766eb109c4409581f6c6273d1c1bd
[ "MIT" ]
2
2021-10-03T08:44:45.000Z
2021-10-03T08:49:49.000Z
plugins/luminos/luminos.py
linuxaddict89/luminos
cd525173bd6766eb109c4409581f6c6273d1c1bd
[ "MIT" ]
null
null
null
import os from luminos.utils import version, constants, standarddir from luminos.core.Bridge import BridgeObject, Bridge, Variant from luminos.Application import Application from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import QPalette, QColor versionInstance = None pluginManagerInstance = None directoryI...
31.26087
115
0.696662
795f46d77fe445757bcb841034429c44cc1ac202
1,189
py
Python
var/spack/repos/builtin/packages/stacks/package.py
RemoteConnectionManager/spack
f2967b6c16effd26ce007cf86cadbb645c574f50
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/stacks/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/stacks/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Stacks(AutotoolsPackage): """Stacks is a software pipeline for building loci from short-re...
36.030303
98
0.686291
795f46e1b152e47f50205724249ac6878c6b7f27
6,352
py
Python
tfx/components/trainer/rewriting/tflite_rewriter.py
joshtemple/tfx
169519c8149534294f1f9bc39a6597d6a3fcefb2
[ "Apache-2.0" ]
1
2020-11-24T16:59:37.000Z
2020-11-24T16:59:37.000Z
tfx/components/trainer/rewriting/tflite_rewriter.py
fsx950223/tfx
527fe2bab6e4f62febfe1a2029358fabe55f418c
[ "Apache-2.0" ]
null
null
null
tfx/components/trainer/rewriting/tflite_rewriter.py
fsx950223/tfx
527fe2bab6e4f62febfe1a2029358fabe55f418c
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # 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 req...
36.716763
80
0.72182
795f46f24c5d387346122c370f3b6970e293e8d4
2,242
py
Python
ProducerConsumer/Chang_Producer.py
Rukundo725/speech-to-text-data-collection
61c3d4858febc81980c854b5112bb629191e45af
[ "MIT", "Unlicense" ]
3
2021-12-03T09:06:31.000Z
2022-03-31T06:13:47.000Z
ProducerConsumer/Chang_Producer.py
Rukundo725/speech-to-text-data-collection
61c3d4858febc81980c854b5112bb629191e45af
[ "MIT", "Unlicense" ]
16
2021-09-06T20:19:25.000Z
2021-09-09T20:29:42.000Z
ProducerConsumer/Chang_Producer.py
Rukundo725/speech-to-text-data-collection
61c3d4858febc81980c854b5112bb629191e45af
[ "MIT", "Unlicense" ]
4
2021-09-06T19:46:45.000Z
2021-09-08T19:05:31.000Z
from kafka import KafkaProducer from kafka.admin import KafkaAdminClient, NewTopic import json def json_serializer(data): return json.dumps(data).encode("utf-8") class Chang_Producer: def __init__(self, broker: str, client_id: str ="group__1"): self.broker = broker self.admin_client = Kaf...
32.492754
114
0.622212
795f479e6ac325a387403902b5879b8fd553af25
344
py
Python
tests/base.py
fmagin/angr-cli
0a4af1432c75c7951874fd0ffb78f701816f6b5e
[ "MIT" ]
38
2018-10-18T17:03:52.000Z
2022-02-06T13:19:19.000Z
tests/base.py
fmagin/angr-cli
0a4af1432c75c7951874fd0ffb78f701816f6b5e
[ "MIT" ]
3
2019-06-29T10:16:20.000Z
2021-06-10T15:29:27.000Z
tests/base.py
fmagin/angr-cli
0a4af1432c75c7951874fd0ffb78f701816f6b5e
[ "MIT" ]
4
2018-10-08T12:54:50.000Z
2020-03-27T09:29:27.000Z
import angr import angrcli.plugins.ContextView from angrcli.interaction.explore import ExploreInteractive import os location = os.path.join(os.path.dirname(os.path.realpath(__file__)), "sym_exec.elf") proj = angr.Project(location, load_options={'auto_load_libs': False}) state = proj.factory.entry_state() e = ExploreI...
31.272727
84
0.799419
795f47fdd1f133040d4be77ce039e31afed6c1d9
238
py
Python
sites/Pixiv/config.py
LufsX/nazurin
b2d7c0ce1146af6e27520361cdf4ca230b78a215
[ "MIT" ]
null
null
null
sites/Pixiv/config.py
LufsX/nazurin
b2d7c0ce1146af6e27520361cdf4ca230b78a215
[ "MIT" ]
null
null
null
sites/Pixiv/config.py
LufsX/nazurin
b2d7c0ce1146af6e27520361cdf4ca230b78a215
[ "MIT" ]
null
null
null
from os import environ PRIORITY = 10 REFRESH_TOKEN = environ.get('PIXIV_TOKEN', None) COLLECTION = 'pixiv' DOCUMENT = 'pixiv' IMG_PROXY = environ.get('PIXIV_MIRROR', 'i.pixiv.cat') TRANSLATION = environ.get('PIXIV_TRANSLATION', None)
19.833333
54
0.743697
795f481f3924c03360edcb5ec6a10a63c1eb13b3
6,487
py
Python
knutils/plot.py
knutankv/knutils
3c2c2e38a51b41e24e7f62af7bfdf1c6849e39ef
[ "MIT" ]
1
2020-12-02T15:16:37.000Z
2020-12-02T15:16:37.000Z
knutils/plot.py
knutankv/knutils
3c2c2e38a51b41e24e7f62af7bfdf1c6849e39ef
[ "MIT" ]
null
null
null
knutils/plot.py
knutankv/knutils
3c2c2e38a51b41e24e7f62af7bfdf1c6849e39ef
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib from mpl_toolkits.mplot3d import Axes3D import copy as cp def equal_3d(ax=plt.gca()): x_lims = np.array(ax.get_xlim()) y_lims = np.array(ax.get_ylim()) z_lims = np.array(ax.get_zlim()) x_range = np.diff(x_lims) y_range = np.diff(...
36.240223
373
0.574996
795f489b21190e7968d89bdf13978717c0400c0e
5,730
py
Python
harbinger/tests/test_scaffold.py
ian-howell/harbinger
d1610f5e7e72206c962c9a5f905298103f2e864c
[ "Apache-2.0" ]
null
null
null
harbinger/tests/test_scaffold.py
ian-howell/harbinger
d1610f5e7e72206c962c9a5f905298103f2e864c
[ "Apache-2.0" ]
null
null
null
harbinger/tests/test_scaffold.py
ian-howell/harbinger
d1610f5e7e72206c962c9a5f905298103f2e864c
[ "Apache-2.0" ]
null
null
null
import argparse import os import unittest import mock from testfixtures import log_capture from harbinger.scaffold import Scaffold class TestScaffold(unittest.TestCase): def setUp(self): args = mock.Mock(spec=argparse.Namespace) args.framework = 'test_framework' self.test_object = Scaff...
41.521739
73
0.667714
795f4a172c7ba12d2b15ca6019de173774d9a0df
799
py
Python
src/libmarks/py_src/__init__.py
SIN-Willett/libmarks
e05a0838dd3669f364f35b5abd868c78d946da9a
[ "MIT" ]
1
2022-02-11T06:16:14.000Z
2022-02-11T06:16:14.000Z
src/libmarks/py_src/__init__.py
SIN-Willett/libmarks
e05a0838dd3669f364f35b5abd868c78d946da9a
[ "MIT" ]
null
null
null
src/libmarks/py_src/__init__.py
SIN-Willett/libmarks
e05a0838dd3669f364f35b5abd868c78d946da9a
[ "MIT" ]
2
2021-05-13T05:27:53.000Z
2021-06-30T00:46:30.000Z
""" MARKS - systems programming testing and marking framework. Based on Python unittest framework. """ __all__ = [ "__version__", "ignore_result", "main", "marks", "Process", "TestCase", "TestSuite", "TestLoader", "default_test_loader", "TestResult", "set_ld_preload", "...
22.194444
76
0.744681
795f4a18f01a2b93c4142fff0f1816221ff04bc0
1,251
py
Python
webApp.py
ishi20/proJect-HaasiL
a461f9305d90b69536e625502fe01bf7386883f3
[ "MIT" ]
null
null
null
webApp.py
ishi20/proJect-HaasiL
a461f9305d90b69536e625502fe01bf7386883f3
[ "MIT" ]
null
null
null
webApp.py
ishi20/proJect-HaasiL
a461f9305d90b69536e625502fe01bf7386883f3
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request from analysis import logAnalysis, sample_questions, path_to_file, ques import random import json, codecs app = Flask(__name__) def shuffle(q): keys = [] i = 0 while i < len(q): current = random.choice(list(q.keys())) if current ...
29.093023
162
0.591527
795f4a1ce521feeee7a76da987f8384de9b9b63a
1,703
py
Python
galpy/potential/IsothermalDiskPotential.py
turnergarrow/galpy
7132eddbf2dab491fe137790e31eacdc604b0534
[ "BSD-3-Clause" ]
1
2019-02-07T10:58:17.000Z
2019-02-07T10:58:17.000Z
galpy/potential/IsothermalDiskPotential.py
BurcuAkbulut/galpy
cabb42bef3b4f88a2f593cdb123452cd41451db3
[ "BSD-3-Clause" ]
null
null
null
galpy/potential/IsothermalDiskPotential.py
BurcuAkbulut/galpy
cabb42bef3b4f88a2f593cdb123452cd41451db3
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # IsothermalDiskPotential.py: class that implements the one-dimensional # self-gravitating isothermal disk ############################################################################### import numpy from .li...
30.410714
154
0.554903
795f4a39fa8c2a97d8188f7c7e6c728c14e5db68
831
py
Python
17_process_thread/02_0_manual_create_process.py
hemuke/python
bc99f2b5aee997083ae31f59a2b33db48c8255f3
[ "Apache-2.0" ]
null
null
null
17_process_thread/02_0_manual_create_process.py
hemuke/python
bc99f2b5aee997083ae31f59a2b33db48c8255f3
[ "Apache-2.0" ]
null
null
null
17_process_thread/02_0_manual_create_process.py
hemuke/python
bc99f2b5aee997083ae31f59a2b33db48c8255f3
[ "Apache-2.0" ]
null
null
null
#! /root/anaconda3/bin/python """ (base) [root@k8s-ansible ~]# cat /proc/40498/status | grep Threads Threads: 1 (base) [root@k8s-ansible ~]# cat /proc/40499/status | grep Threads Threads: 1 看进程的线程 """ import time from multiprocessing import Process from multiprocessing import current_process print('父进程启动(%d--%s)' % (c...
28.655172
76
0.663057
795f4a5fbdddd5e9fc92e60eb48561515ac4f7fb
156
py
Python
src/chapter02/simple_messages.py
fedcalderon/Python1-Class
0d0f4cb7c7a0f7764c3117745eef141b1418c2ad
[ "Apache-2.0" ]
null
null
null
src/chapter02/simple_messages.py
fedcalderon/Python1-Class
0d0f4cb7c7a0f7764c3117745eef141b1418c2ad
[ "Apache-2.0" ]
null
null
null
src/chapter02/simple_messages.py
fedcalderon/Python1-Class
0d0f4cb7c7a0f7764c3117745eef141b1418c2ad
[ "Apache-2.0" ]
null
null
null
# define message message = "I love krav maga because it makes me stronger." print(message) message = "Though, I hurt after every class..." print(message)
19.5
58
0.730769
795f4b26063eb6e10098ea37d5dbaa500db7b74a
4,190
py
Python
dajaxice/core/Dajaxice.py
LeonardoLeano333/django-dajaxice
1133898b5dd365c133073fdb88e2d3b29c0bacc5
[ "BSD-3-Clause" ]
null
null
null
dajaxice/core/Dajaxice.py
LeonardoLeano333/django-dajaxice
1133898b5dd365c133073fdb88e2d3b29c0bacc5
[ "BSD-3-Clause" ]
null
null
null
dajaxice/core/Dajaxice.py
LeonardoLeano333/django-dajaxice
1133898b5dd365c133073fdb88e2d3b29c0bacc5
[ "BSD-3-Clause" ]
2
2020-03-03T18:50:48.000Z
2021-07-06T16:47:53.000Z
from builtins import str from builtins import object import logging try: from importlib import import_module except ImportError: # We are using Django < 2.7 from django.utils.importlib import import_module log = logging.getLogger('dajaxice') class DajaxiceFunction(object): """ Basic representation o...
29.097222
79
0.607399
795f4cb837fb5257f6b9574ab2e52858724e302f
15,964
py
Python
f90nml/namelist.py
aekiss/f90nml
9148e879de62d3f66e04926646edc8b041fc0979
[ "Apache-2.0" ]
null
null
null
f90nml/namelist.py
aekiss/f90nml
9148e879de62d3f66e04926646edc8b041fc0979
[ "Apache-2.0" ]
1
2020-07-21T06:32:18.000Z
2020-07-21T06:32:18.000Z
f90nml/namelist.py
aekiss/f90nml
9148e879de62d3f66e04926646edc8b041fc0979
[ "Apache-2.0" ]
null
null
null
"""f90nml.namelist =============== Tools for creating Fortran namelist files from Python ``dict``s. :copyright: Copyright 2014 Marshall Ward, see AUTHORS for details. :license: Apache License, Version 2.0, see LICENSE for details. """ from __future__ import print_function import numbers import os try: ...
33.822034
80
0.553307
795f4d485f90dec9bd9ddfc3f56fc22cdada6440
1,435
py
Python
Python/longest-univalue-path.py
ruikunl/LeetCode
dae98754eb02d68139028f72f894411a3ed12305
[ "MIT" ]
5
2017-11-14T09:32:33.000Z
2020-05-11T05:15:41.000Z
Python/longest-univalue-path.py
ruikunl/LeetCode
dae98754eb02d68139028f72f894411a3ed12305
[ "MIT" ]
null
null
null
Python/longest-univalue-path.py
ruikunl/LeetCode
dae98754eb02d68139028f72f894411a3ed12305
[ "MIT" ]
8
2020-02-20T08:21:12.000Z
2022-02-17T05:53:21.000Z
# Time: O(n) # Space: O(h) # Given a binary tree, find the length of the longest path # where each node in the path has the same value. This path may or may not pass through the root. # # Note: The length of path between two nodes is represented by the number of edges between them. # # Example 1: # Input: # # ...
24.741379
106
0.510801
795f4f5f2d88c1eeb155f66cc25bb2dfc34f34aa
1,993
py
Python
src/gen_labels_crowd.py
yunseung-dable/FairMOT
d8cb13213c3d067772c283bc57b320a1b4f84f66
[ "MIT" ]
null
null
null
src/gen_labels_crowd.py
yunseung-dable/FairMOT
d8cb13213c3d067772c283bc57b320a1b4f84f66
[ "MIT" ]
null
null
null
src/gen_labels_crowd.py
yunseung-dable/FairMOT
d8cb13213c3d067772c283bc57b320a1b4f84f66
[ "MIT" ]
null
null
null
import os.path as osp import os import cv2 import json import numpy as np def mkdirs(d): if not osp.exists(d): os.makedirs(d) def load_func(fpath): print('fpath', fpath) assert os.path.exists(fpath) with open(fpath, 'r') as fid: lines = fid.readlines() records =[json.loads(line.s...
32.145161
119
0.603613
795f4f990605b3c368254fb22279d9f37c39697c
1,653
py
Python
tods/tests/sk_interface/detection_algorithm/test_ski_So_Gaal.py
zylMozart/tods
a4c0192b43b438276d2228306c0e9c896d9e3809
[ "Apache-2.0" ]
null
null
null
tods/tests/sk_interface/detection_algorithm/test_ski_So_Gaal.py
zylMozart/tods
a4c0192b43b438276d2228306c0e9c896d9e3809
[ "Apache-2.0" ]
null
null
null
tods/tests/sk_interface/detection_algorithm/test_ski_So_Gaal.py
zylMozart/tods
a4c0192b43b438276d2228306c0e9c896d9e3809
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import os from tods.sk_interface.detection_algorithm.So_Gaal_skinterface import So_GaalSKI from pyod.utils.data import generate_data import unittest from numpy.testing import assert_allclose from numpy.testing import assert_array_less from unittest import TestCase from sklearn.me...
35.170213
90
0.730792
795f4fb1889a17ee192c99c61f180d9bcd376ce9
5,571
py
Python
example_project/config/settings.py
storerjeremy/django-rest-social-auth
a5b7b8349dc03b0a6b30f6f5019a5c5e6355e5a7
[ "MIT" ]
null
null
null
example_project/config/settings.py
storerjeremy/django-rest-social-auth
a5b7b8349dc03b0a6b30f6f5019a5c5e6355e5a7
[ "MIT" ]
null
null
null
example_project/config/settings.py
storerjeremy/django-rest-social-auth
a5b7b8349dc03b0a6b30f6f5019a5c5e6355e5a7
[ "MIT" ]
null
null
null
""" Django settings for example_project project. Generated by 'django-admin startproject' using Django 1.8.1. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Bu...
28.716495
106
0.67636
795f4fd214da5b6a745f63ed5246af5fda7e20de
3,024
py
Python
python/hsfs/core/storage_connector_api.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
python/hsfs/core/storage_connector_api.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
python/hsfs/core/storage_connector_api.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020 Logical Clocks AB # # 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...
31.831579
83
0.608796
795f50d067973b22d4a540b0456d4a5d41ccf922
1,629
py
Python
data/custom_dataset_data_loader.py
yudhik11/Artify
745d4aa29a368a313bcd1b86f4680a7146a4d790
[ "MIT" ]
null
null
null
data/custom_dataset_data_loader.py
yudhik11/Artify
745d4aa29a368a313bcd1b86f4680a7146a4d790
[ "MIT" ]
null
null
null
data/custom_dataset_data_loader.py
yudhik11/Artify
745d4aa29a368a313bcd1b86f4680a7146a4d790
[ "MIT" ]
null
null
null
import torch.utils.data from data.base_data_loader import BaseDataLoader def CreateDataset(opt): dataset = None if opt.dataset_mode == 'aligned': from data.aligned_dataset import AlignedDataset dataset = AlignedDataset() elif opt.dataset_mode == 'unaligned': from data.unaligned_dat...
30.166667
75
0.656845
795f516242895ec8521ec157efc1bbda88a3d9cb
561
py
Python
docker_executor/sample_executor/tests/__main__.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
null
null
null
docker_executor/sample_executor/tests/__main__.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
null
null
null
docker_executor/sample_executor/tests/__main__.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
null
null
null
import sys import os import subprocess from typing import List def main(args: List[str]) -> int: module_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'ymir_exc') # note that env.DEFAULT_ENV_FILE_PATH will change when test # so there should be only ONE process / thread when test ...
25.5
92
0.672014
795f516553c18a058fdbae7a7a564d82305f3f9c
3,492
py
Python
solver.py
arjnklc/Optimal-Coverage-in-WSN
d2536e770eb219630b45fb6a1e7aadffb408bf96
[ "MIT" ]
3
2020-03-18T14:13:22.000Z
2022-03-26T21:17:53.000Z
solver.py
arjnklc/Optimal-Coverage-in-WSN
d2536e770eb219630b45fb6a1e7aadffb408bf96
[ "MIT" ]
null
null
null
solver.py
arjnklc/Optimal-Coverage-in-WSN
d2536e770eb219630b45fb6a1e7aadffb408bf96
[ "MIT" ]
1
2020-04-16T12:08:26.000Z
2020-04-16T12:08:26.000Z
from gurobipy import * import math class Solver: def __init__(self, M, sensor_radius, sensor_cost, budget, point_locations): self.M = M self.sensor_radius = sensor_radius self.sensor_cost = sensor_cost self.budget = budget self.point_locations = point_locations self...
30.902655
112
0.542955
795f51d9457498df2ec858b97eac7ca9241b0a49
2,890
py
Python
efficient_frontier_sharpe_ratio.py
DiogoRibeiro7/Finance
6babc706bd523fc83e1dd1fda7f57aef969c5347
[ "Apache-2.0" ]
null
null
null
efficient_frontier_sharpe_ratio.py
DiogoRibeiro7/Finance
6babc706bd523fc83e1dd1fda7f57aef969c5347
[ "Apache-2.0" ]
null
null
null
efficient_frontier_sharpe_ratio.py
DiogoRibeiro7/Finance
6babc706bd523fc83e1dd1fda7f57aef969c5347
[ "Apache-2.0" ]
null
null
null
# import needed modules import quandl import pandas as pd import numpy as np import matplotlib.pyplot as plt # get adjusted closing prices of 5 selected companies with Quandl quandl.ApiConfig.api_key = '8bbPKo8xjyoors-yMfr-' selected = ['CNP', 'F', 'WMT', 'GE', 'TSLA'] data = quandl.get_table('WIKI/PRICES', t...
37.051282
103
0.70692
795f5250012cb2c0853da8db1031513e298fb11b
25,843
py
Python
pandas/core/reshape/pivot.py
AnglinaBhambra/pandas
c03164e8daa812193baa99378fded16695f3ef51
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-04-18T09:51:04.000Z
2021-04-18T09:51:04.000Z
pandas/core/reshape/pivot.py
AnglinaBhambra/pandas
c03164e8daa812193baa99378fded16695f3ef51
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-05-11T00:05:40.000Z
2021-05-11T00:05:40.000Z
pandas/core/reshape/pivot.py
AnglinaBhambra/pandas
c03164e8daa812193baa99378fded16695f3ef51
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2018-08-02T06:29:14.000Z
2018-08-02T06:29:14.000Z
from __future__ import annotations from typing import ( TYPE_CHECKING, Callable, Hashable, Sequence, cast, ) import numpy as np from pandas._typing import ( AggFuncType, AggFuncTypeBase, AggFuncTypeDict, FrameOrSeriesUnion, IndexLabel, ) from pandas.util._decorators import ( ...
31.362864
88
0.599621
795f55a3e0b7aa34139e8158a674ec39355e75c5
6,833
py
Python
tests/components/automation/test_zone.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
1
2021-04-08T06:02:25.000Z
2021-04-08T06:02:25.000Z
tests/components/automation/test_zone.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
5
2021-02-08T20:32:11.000Z
2022-01-13T01:19:23.000Z
tests/components/automation/test_zone.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
1
2019-04-16T14:07:20.000Z
2019-04-16T14:07:20.000Z
"""The tests for the location automation.""" import unittest from homeassistant.core import Context, callback from homeassistant.setup import setup_component from homeassistant.components import automation, zone from tests.common import get_test_home_assistant, mock_component from tests.components.automation import c...
31.059091
78
0.484121
795f563085b7bdbf530f22b83ab408344face680
7,439
py
Python
django/conf/__init__.py
andreip/django
c61d1361d027a729d07d277879950ff133c19f4c
[ "PSF-2.0", "BSD-3-Clause" ]
2
2020-09-25T04:02:25.000Z
2020-10-15T00:01:00.000Z
django/conf/__init__.py
seanfagan/django
66bbde6819586cc3a75630e12e569dc8ae72f211
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/conf/__init__.py
seanfagan/django
66bbde6819586cc3a75630e12e569dc8ae72f211
[ "PSF-2.0", "BSD-3-Clause" ]
1
2022-01-12T10:46:51.000Z
2022-01-12T10:46:51.000Z
""" Settings and configuration for Django. Read values from the module specified by the DJANGO_SETTINGS_MODULE environment variable, and then from django.conf.global_settings; see the global_settings.py for a list of all possible variables. """ import importlib import os import time import warnings from django.conf ...
37.00995
102
0.642425
795f5631ccd882d09f5e0256c098fc61315c6f5f
37,701
py
Python
CDDF_analysis/make_multi_dla_plots.py
jibanCat/gp_dla_detection_dr16q_public
bf7bd6412aa2954276150e4b69ab12a0b2ad3958
[ "MIT" ]
null
null
null
CDDF_analysis/make_multi_dla_plots.py
jibanCat/gp_dla_detection_dr16q_public
bf7bd6412aa2954276150e4b69ab12a0b2ad3958
[ "MIT" ]
1
2021-09-01T06:27:33.000Z
2021-09-01T06:27:33.000Z
CDDF_analysis/make_multi_dla_plots.py
jibanCat/gp_dla_detection_dr16q_public
bf7bd6412aa2954276150e4b69ab12a0b2ad3958
[ "MIT" ]
1
2022-01-15T18:47:58.000Z
2022-01-15T18:47:58.000Z
''' Make plots for the Multi-DLA paper ''' import os import numpy as np from scipy.stats import pearsonr from scipy.interpolate import interp1d from astropy.io import fits import matplotlib from matplotlib import pyplot as plt from matplotlib import cm from .qso_loader import QSOLoader, file_loader from .set_paramet...
41.658564
181
0.654041
795f563f0e7f0b0d058294cc28fd74a1148d529d
4,063
py
Python
optuna/integration/chainer.py
srijan-deepsource/optuna
2a83adf1e5104a4cde2f8f275788dc1aaf246097
[ "MIT" ]
null
null
null
optuna/integration/chainer.py
srijan-deepsource/optuna
2a83adf1e5104a4cde2f8f275788dc1aaf246097
[ "MIT" ]
null
null
null
optuna/integration/chainer.py
srijan-deepsource/optuna
2a83adf1e5104a4cde2f8f275788dc1aaf246097
[ "MIT" ]
null
null
null
from typing import Tuple from typing import Union import optuna with optuna._imports.try_import() as _imports: import chainer from chainer.training.extension import Extension from chainer.training.triggers import IntervalTrigger from chainer.training.triggers import ManualScheduleTrigger if not _imp...
41.040404
98
0.676594
795f5686a8c471a7c50535b036a9725d4b569db1
37,940
py
Python
clib/mininet_test_base_topo.py
mubix/faucet
c8c1fd5fdd470387117c4924fd98635e84191f9f
[ "Apache-2.0" ]
null
null
null
clib/mininet_test_base_topo.py
mubix/faucet
c8c1fd5fdd470387117c4924fd98635e84191f9f
[ "Apache-2.0" ]
null
null
null
clib/mininet_test_base_topo.py
mubix/faucet
c8c1fd5fdd470387117c4924fd98635e84191f9f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import random import re import time import ipaddress import pprint from functools import partial import yaml # pytype: disable=pyi-error from clib.mininet_test_util import timeout_cmd from clib.mininet_test_base import FaucetTestBase, IPV4_ETH from clib.mininet_test_topo_generator im...
43.760092
103
0.587296
795f569f053966f160f32038691c832902e2b09c
1,437
py
Python
sis_provisioner/dao/hrp.py
uw-it-aca/bridge-sis-provisioner
6dd31e5ef59263acbcade5e6e4f74b815c16bdee
[ "Apache-2.0" ]
null
null
null
sis_provisioner/dao/hrp.py
uw-it-aca/bridge-sis-provisioner
6dd31e5ef59263acbcade5e6e4f74b815c16bdee
[ "Apache-2.0" ]
175
2016-07-18T23:25:45.000Z
2022-02-07T20:44:05.000Z
sis_provisioner/dao/hrp.py
uw-it-aca/bridge-sis-provisioner
6dd31e5ef59263acbcade5e6e4f74b815c16bdee
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This module interacts with hrpws restclient for employee appointments """ import logging import traceback from sis_provisioner.dao import ( DataFailureException, InvalidRegID, changed_since_str) from uw_hrp.worker import ge...
28.176471
72
0.695198
795f575fbf098855617f43e52472cd7689ce87c0
947
py
Python
forayer/knowledge_graph/graph_based_clustering.py
dobraczka/forayer
df6783f85fb063f58e8b96acef924f9fd2532227
[ "MIT" ]
5
2021-09-06T13:50:44.000Z
2022-02-14T09:39:09.000Z
forayer/knowledge_graph/graph_based_clustering.py
dobraczka/forayer
df6783f85fb063f58e8b96acef924f9fd2532227
[ "MIT" ]
5
2021-09-07T06:53:41.000Z
2022-01-17T09:51:53.000Z
forayer/knowledge_graph/graph_based_clustering.py
dobraczka/forayer
df6783f85fb063f58e8b96acef924f9fd2532227
[ "MIT" ]
null
null
null
import networkx as nx from networkx.algorithms.components.connected import connected_components def to_graph(elements): """. Parameters ---------- elements : elements """ G = nx.Graph() for part in elements: # each sublist is a bunch of nodes G.add_nodes_from(part)...
20.148936
73
0.596621
795f5799b7c5114f7a738c7a79b084282f38e0d3
10,747
py
Python
bin/cnn_manager.py
wew84/cnn_bridge
7cd98e204922174ea9293d8c52c30d00733a7ed2
[ "BSD-3-Clause" ]
4
2019-05-16T01:30:24.000Z
2021-04-13T13:55:44.000Z
bin/cnn_manager.py
wew84/cnn_bridge
7cd98e204922174ea9293d8c52c30d00733a7ed2
[ "BSD-3-Clause" ]
2
2020-01-23T23:39:45.000Z
2021-12-17T02:32:11.000Z
bin/cnn_manager.py
wew84/cnn_bridge
7cd98e204922174ea9293d8c52c30d00733a7ed2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # BSD 3-Clause License # Copyright (c) 2019, Noam C. Golombek # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright...
43.510121
162
0.625756
795f57d6b225edf56cb965d849cdb222fa7c0a5f
16,679
py
Python
tkteach.py
annabator/tkteach
4d5b77ee299479aa4f1249426029c02e60da44c5
[ "Apache-2.0" ]
null
null
null
tkteach.py
annabator/tkteach
4d5b77ee299479aa4f1249426029c02e60da44c5
[ "Apache-2.0" ]
null
null
null
tkteach.py
annabator/tkteach
4d5b77ee299479aa4f1249426029c02e60da44c5
[ "Apache-2.0" ]
null
null
null
# tkteach.py # By Ryan M. Mones # www.Comet.cool # # Modified by Serhiy Shekhovtsov # # Written on Python 2.7.13 (64-bit) # Tested on Python 3.6.1 (64-bit) # # __________ __ _______________ __________ ____ __ # / ____/ __ \/ |/ / ____/_ __/ / ____/ __ \/ __ \/ / # / / / / / / /|_/ / __/ ...
37.229911
200
0.712033
795f587e2db521f80ce691148886a0039e8fdf1e
209
py
Python
output/models/ms_data/datatypes/facets/positive_integer/positive_integer_min_exclusive004_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/datatypes/facets/positive_integer/positive_integer_min_exclusive004_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/datatypes/facets/positive_integer/positive_integer_min_exclusive004_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.datatypes.facets.positive_integer.positive_integer_min_exclusive004_xsd.positive_integer_min_exclusive004 import ( FooType, Test, ) __all__ = [ "FooType", "Test", ]
20.9
141
0.760766
795f58ea8b201799d926802cd8071b80bc7250df
1,675
py
Python
ipyspin/__init__.py
davidbrochart/ipyspin
831f22ddf2dacde9c66a590c71d9345c0bec5d8c
[ "BSD-3-Clause" ]
4
2020-09-26T20:58:38.000Z
2022-03-01T13:46:52.000Z
ipyspin/__init__.py
davidbrochart/ipyspin
831f22ddf2dacde9c66a590c71d9345c0bec5d8c
[ "BSD-3-Clause" ]
1
2021-05-10T12:01:57.000Z
2021-05-10T12:33:28.000Z
ipyspin/__init__.py
davidbrochart/ipyspin
831f22ddf2dacde9c66a590c71d9345c0bec5d8c
[ "BSD-3-Clause" ]
null
null
null
from ._version import __version__, version_info from .spin import Spinner def _jupyter_labextension_paths(): """Called by Jupyter Lab Server to detect if it is a valid labextension and to install the widget Returns ======= src: Source directory name to copy files from. Webpack outputs generated f...
35.638298
88
0.687761
795f590c28032ab4c1fb4b75a48f9fd30f58f2b6
923
py
Python
release-4.0.0/code/setup/test.py
iuisefinalprojects/ice
fd2bd923d4723e45b09ee087954a6a54fa42d8a6
[ "Apache-2.0" ]
null
null
null
release-4.0.0/code/setup/test.py
iuisefinalprojects/ice
fd2bd923d4723e45b09ee087954a6a54fa42d8a6
[ "Apache-2.0" ]
3
2018-02-23T13:34:42.000Z
2018-06-24T13:38:22.000Z
code/setup/test.py
vibhatha/Computer-Eng-Project
fa0575471d90751ff035a41523609a036f02cf8f
[ "Apache-2.0" ]
1
2019-03-15T15:59:04.000Z
2019-03-15T15:59:04.000Z
import VhdlAPI as vhdlapi import urllib import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg import scipy.misc from numpy import genfromtxt # vhdl_source_bin_file = 'image_3_200x200_pad.min' # vhdl_source_bin_path = 'binaries/' # vhdlapi2 = vhdlapi.VhdlAPI(source_bin_path=vhdl_source_bi...
38.458333
104
0.84507
795f59481083565782c44da9030b4f11b6c34206
27,609
py
Python
tensorflow/python/keras/tests/model_subclassing_test.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/keras/tests/model_subclassing_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/keras/tests/model_subclassing_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2018 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...
36.279895
83
0.661379
795f59610d09f9bddf6cf22ba9b9e81138a9a167
3,079
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripPanelRenderEventHandler.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripPanelRenderEventHandler.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripPanelRenderEventHandler.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class ToolStripPanelRenderEventHandler(MulticastDelegate, ICloneable, ISerializable): """ Represents the method that will handle System.Windows.Forms.ToolStripPanel paint events. ToolStripPanelRenderEventHandler(object: object,method: IntPtr) """ def BeginInvoke(self, sender, e, callback, objec...
29.32381
221
0.679766
795f5a70a29b280120f1c3ead9b7b1de651819d6
9,485
py
Python
rayml/tests/pipeline_tests/test_graphs.py
gcode-ai/rayml
92c4f3c6041f465fee27a6c03bd7959c4ef21124
[ "BSD-3-Clause" ]
null
null
null
rayml/tests/pipeline_tests/test_graphs.py
gcode-ai/rayml
92c4f3c6041f465fee27a6c03bd7959c4ef21124
[ "BSD-3-Clause" ]
null
null
null
rayml/tests/pipeline_tests/test_graphs.py
gcode-ai/rayml
92c4f3c6041f465fee27a6c03bd7959c4ef21124
[ "BSD-3-Clause" ]
null
null
null
import json import os from unittest.mock import patch import numpy as np import pandas as pd import pytest from rayml.pipelines import BinaryClassificationPipeline, ComponentGraph @pytest.fixture def test_pipeline(): class TestPipeline(BinaryClassificationPipeline): component_graph = [ "Simp...
33.515901
92
0.664101
795f5a965e8c04403b6972e7158fa6bbcd53c0e1
37,517
py
Python
conda/common/configuration.py
richmoore1962/conda
ef36713bfeca5b9a8505ff8ae6d7899c2d7c6306
[ "BSD-3-Clause" ]
null
null
null
conda/common/configuration.py
richmoore1962/conda
ef36713bfeca5b9a8505ff8ae6d7899c2d7c6306
[ "BSD-3-Clause" ]
null
null
null
conda/common/configuration.py
richmoore1962/conda
ef36713bfeca5b9a8505ff8ae6d7899c2d7c6306
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ A generalized application configuration utility. Features include: - lazy eval - merges configuration files - parameter type validation, with custom validation - parameter aliases Easily extensible to other source formats, e.g. json and ini Limitations: - at the moment only supp...
41.002186
99
0.631767
795f5b96fb1c97dd3cdb1adccea0eb0ed4e29ab2
2,145
py
Python
setup.py
cavaunpeu/cadCAD
5d727a65cd81b99a2f706f8606489a7edd9e8643
[ "MIT" ]
215
2020-06-22T18:42:30.000Z
2022-03-23T13:25:10.000Z
setup.py
cavaunpeu/cadCAD
5d727a65cd81b99a2f706f8606489a7edd9e8643
[ "MIT" ]
99
2020-06-22T20:35:37.000Z
2022-03-07T20:39:13.000Z
setup.py
cavaunpeu/cadCAD
5d727a65cd81b99a2f706f8606489a7edd9e8643
[ "MIT" ]
86
2020-06-20T16:22:22.000Z
2022-03-02T07:10:01.000Z
from setuptools import setup, find_packages short_description = "cadCAD: a differential games based simulation software package for research, validation, and \ Computer Aided Design of economic systems" long_description = """ cadCAD (complex adaptive systems computer-aided design) is a python based, unified m...
46.630435
121
0.73986
795f5bbbc520a09961c099f58e0a07dd0fa26297
2,568
py
Python
test/torch_ucc_test_setup.py
Sergei-Lebedev/torch_ucc
a5695ff22831bec140964eb8f71dda72e56603ee
[ "MIT" ]
10
2021-06-04T17:05:18.000Z
2022-03-15T07:49:00.000Z
test/torch_ucc_test_setup.py
Sergei-Lebedev/torch_ucc
a5695ff22831bec140964eb8f71dda72e56603ee
[ "MIT" ]
56
2021-06-04T18:24:24.000Z
2022-03-31T23:26:59.000Z
test/torch_ucc_test_setup.py
Sergei-Lebedev/torch_ucc
a5695ff22831bec140964eb8f71dda72e56603ee
[ "MIT" ]
11
2021-06-04T17:44:41.000Z
2021-11-11T19:45:06.000Z
# # Copyright (C) Mellanox Technologies Ltd. 2001-2021. # # 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 argparse import torch import torch.distributed as dist import torch_ucc imp...
29.860465
82
0.702492
795f5c32492c182efaad63b503d001441c41c493
582
py
Python
tests/graph/test_prepared_queries.py
periodo/periodo-umbrella-periods
841a93fc89b68217277cdee2f205c8d9be695364
[ "CC0-1.0" ]
2
2020-04-22T21:49:35.000Z
2021-01-02T13:53:57.000Z
tests/graph/test_prepared_queries.py
periodo/periodo-umbrella-periods
841a93fc89b68217277cdee2f205c8d9be695364
[ "CC0-1.0" ]
2
2018-05-18T00:51:55.000Z
2021-06-01T23:44:34.000Z
tests/graph/test_prepared_queries.py
periodo/periodo-umbrella-periods
841a93fc89b68217277cdee2f205c8d9be695364
[ "CC0-1.0" ]
null
null
null
from unittest import TestCase from periodo_umbrella_periods_cli.graph.prepared_queries import * class TestPreparedQueries(TestCase): def test_can_create_queries_without_throwing_error(self): skolem = "http://example.com/collection/9000" derived_from = [ "http://example.com/collectio...
26.454545
65
0.706186
795f5c8fbb30e85ce966b6648bb089969ef05db6
465
py
Python
recipes/zmqpp/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/zmqpp/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/zmqpp/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
from conans import ConanFile, CMake, tools import os class TestPackageConan(ConanFile): settings = "os", "compiler", "arch", "build_type" generators = "cmake", "cmake_find_package" def build(self): cmake = CMake(self) cmake.configure() cmake.build() def test(self): if...
25.833333
58
0.632258
795f5d118dcea1700672c2b689ca824628f745d0
8,485
py
Python
pytorchocr/modeling/backbones/det_mobilenet_v3.py
BHD233/PaddleOCR2Pytorch
f114069b3e2669c6adf0adf9596756205f184c9c
[ "Apache-2.0" ]
364
2021-01-10T15:13:36.000Z
2022-03-31T15:23:10.000Z
pytorchocr/modeling/backbones/det_mobilenet_v3.py
BHD233/PaddleOCR2Pytorch
f114069b3e2669c6adf0adf9596756205f184c9c
[ "Apache-2.0" ]
24
2021-01-29T23:53:01.000Z
2022-03-25T13:01:55.000Z
pytorchocr/modeling/backbones/det_mobilenet_v3.py
BHD233/PaddleOCR2Pytorch
f114069b3e2669c6adf0adf9596756205f184c9c
[ "Apache-2.0" ]
77
2021-01-20T07:15:29.000Z
2022-03-28T08:32:08.000Z
import os, sys import torch import torch.nn as nn import torch.nn.functional as F from pytorchocr.modeling.common import Activation def make_divisible(v, divisor=8, min_value=None): if min_value is None: min_value = divisor new_v = max(min_value, int(v + divisor / 2) // divisor * divisor) if new_v ...
33.015564
89
0.486623
795f5d5c6dce6f33d2df2f6ccbef50283c59cf80
2,949
py
Python
openstackclient/identity/v3/catalog.py
ankur-gupta91/osc-ip-cap
9a64bbc31fcc0872f52ad2d92c550945eea5cc97
[ "Apache-2.0" ]
null
null
null
openstackclient/identity/v3/catalog.py
ankur-gupta91/osc-ip-cap
9a64bbc31fcc0872f52ad2d92c550945eea5cc97
[ "Apache-2.0" ]
null
null
null
openstackclient/identity/v3/catalog.py
ankur-gupta91/osc-ip-cap
9a64bbc31fcc0872f52ad2d92c550945eea5cc97
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distrib...
32.054348
77
0.592743
795f5e02cd0883ebb23a34c641879872825a6b62
6,226
py
Python
source/_sample/pyopengl/shaderdemo.py
showa-yojyo/notebook
82c15074c24d64a1dfcb70a526bc1deb2ecffe68
[ "MIT" ]
14
2016-04-13T08:10:02.000Z
2021-04-19T09:42:51.000Z
source/_sample/pyopengl/shaderdemo.py
showa-yojyo/note
5f262ecda3df132cb66206c465d16e174061d6b9
[ "MIT" ]
88
2017-09-27T15:07:05.000Z
2019-10-02T04:05:03.000Z
source/_sample/pyopengl/shaderdemo.py
showa-yojyo/note
5f262ecda3df132cb66206c465d16e174061d6b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """shaderdemo.py: Demonstrate GLSL. References: * rndblnch / opengl-programmable <http://bitbucket.org/rndblnch/opengl-programmable> * OpenGLBook.com <http://openglbook.com/chapter-4-entering-the-third-dimension.html> * Tutorials for modern OpenGL (3.3+) <http://www.opengl-tutor...
29.093458
77
0.628493
795f5f13f9794b625535da8a97ce6ca42d09b650
4,910
py
Python
python-client/inspection_pb2_grpc.py
SwissBorg/akka-inspection
e8dc1e4f065d55e2c6ce18214854fb41a87a872f
[ "Apache-2.0" ]
null
null
null
python-client/inspection_pb2_grpc.py
SwissBorg/akka-inspection
e8dc1e4f065d55e2c6ce18214854fb41a87a872f
[ "Apache-2.0" ]
null
null
null
python-client/inspection_pb2_grpc.py
SwissBorg/akka-inspection
e8dc1e4f065d55e2c6ce18214854fb41a87a872f
[ "Apache-2.0" ]
2
2020-04-17T19:38:50.000Z
2021-11-12T19:24:44.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import inspection_pb2 as inspection__pb2 class ActorInspectionServiceStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc....
42.695652
90
0.76945
795f5f394813d0c9afb7ad4692c6a2fa131d156b
11,386
py
Python
loky/backend/synchronize.py
pombredanne/loky
cc82d6b3634e9fe298ebd6b91229250d0662eb64
[ "BSD-3-Clause" ]
null
null
null
loky/backend/synchronize.py
pombredanne/loky
cc82d6b3634e9fe298ebd6b91229250d0662eb64
[ "BSD-3-Clause" ]
null
null
null
loky/backend/synchronize.py
pombredanne/loky
cc82d6b3634e9fe298ebd6b91229250d0662eb64
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # Synchronization primitives based on our SemLock implementation # # author: Thomas Moreau and Olivier Grisel # # adapted from multiprocessing/synchronize.py (17/02/2017) # * Remove ctx argument for compatibility reason # * Implementation...
29.574026
79
0.58932
795f5f3fc504abd25a2fcb4bc313bafd37cb11a6
14,464
py
Python
mqtt2timescale/postgres_connector.py
binarybrain-fintec/timescale-db-connector
c75a41cdca9aad2edf569f1e52a84d9766113190
[ "MIT" ]
1
2021-07-13T22:26:33.000Z
2021-07-13T22:26:33.000Z
mqtt2timescale/postgres_connector.py
binarybrain-fintec/timescale-db-connector
c75a41cdca9aad2edf569f1e52a84d9766113190
[ "MIT" ]
2
2020-07-21T16:34:26.000Z
2020-07-21T16:41:02.000Z
mqtt2timescale/postgres_connector.py
binarybrain-fintec/timescale-db-connector
c75a41cdca9aad2edf569f1e52a84d9766113190
[ "MIT" ]
1
2022-02-04T15:04:48.000Z
2022-02-04T15:04:48.000Z
import psycopg2 from sqlalchemy import create_engine from pandas import DataFrame from datetime import datetime, timedelta from ttictoc import TicToc from time import sleep import logging import os import psutil import io class PostgresConnector: def __init__(self, db_address="localhost", user="postgres", passw...
39.411444
218
0.564228
795f600390f8a141f870364c010f56aca9427da6
1,450
py
Python
src/front-door/azext_front_door/vendored_sdks/models/check_name_availability_input.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2019-05-10T19:58:09.000Z
2019-05-10T19:58:09.000Z
src/front-door/azext_front_door/vendored_sdks/models/check_name_availability_input.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
src/front-door/azext_front_door/vendored_sdks/models/check_name_availability_input.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "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 ...
34.52381
76
0.605517
795f60286005147f3f60a0361cbf1174b596fc00
18,382
py
Python
trax/models/research/rezero.py
stephenjfox/trax
918b1ce2ad63a24cb957ebc8e8ea0af1ee272666
[ "Apache-2.0" ]
null
null
null
trax/models/research/rezero.py
stephenjfox/trax
918b1ce2ad63a24cb957ebc8e8ea0af1ee272666
[ "Apache-2.0" ]
null
null
null
trax/models/research/rezero.py
stephenjfox/trax
918b1ce2ad63a24cb957ebc8e8ea0af1ee272666
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.814394
80
0.625558
795f63a8cf750fd734ab56ccfff5fdd37dfe234d
539
py
Python
manage.py
zemogle/tom_education
05aed062809ddfcd5cc5fd4e989e2ba0381eaa0f
[ "MIT" ]
null
null
null
manage.py
zemogle/tom_education
05aed062809ddfcd5cc5fd4e989e2ba0381eaa0f
[ "MIT" ]
null
null
null
manage.py
zemogle/tom_education
05aed062809ddfcd5cc5fd4e989e2ba0381eaa0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'streams.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are ...
33.6875
73
0.686456
795f6450e2136a97cc257cb6dab52e9ba041a3df
16,822
py
Python
numba/cuda/api.py
aktech/numba
986c7d1502fd1dbd5feca77e8ff17ba9952ab237
[ "BSD-2-Clause" ]
1
2021-05-24T10:08:51.000Z
2021-05-24T10:08:51.000Z
numba/cuda/api.py
aktech/numba
986c7d1502fd1dbd5feca77e8ff17ba9952ab237
[ "BSD-2-Clause" ]
null
null
null
numba/cuda/api.py
aktech/numba
986c7d1502fd1dbd5feca77e8ff17ba9952ab237
[ "BSD-2-Clause" ]
1
2021-01-31T18:58:54.000Z
2021-01-31T18:58:54.000Z
""" API that are reported to numba.cuda """ import contextlib import numpy as np from .cudadrv import devicearray, devices, driver # NDarray device helper require_context = devices.require_context current_context = devices.get_context gpus = devices.gpus @require_context def from_cuda_array_interface(desc, own...
32.664078
80
0.649744
795f67018db085779e85cc7c15aea36f6f7ca236
2,799
py
Python
example_project/articles/migrations/0001_initial.py
pnuckowski/django-guardian
8e8dab207296ee37aa1d19eaeebfad7d0642f138
[ "MIT" ]
2,469
2015-07-27T14:21:38.000Z
2022-03-29T23:37:37.000Z
example_project/articles/migrations/0001_initial.py
pnuckowski/django-guardian
8e8dab207296ee37aa1d19eaeebfad7d0642f138
[ "MIT" ]
458
2015-07-27T12:02:14.000Z
2022-03-25T21:42:59.000Z
example_project/articles/migrations/0001_initial.py
pnuckowski/django-guardian
8e8dab207296ee37aa1d19eaeebfad7d0642f138
[ "MIT" ]
429
2015-07-31T08:04:17.000Z
2022-03-11T09:28:55.000Z
# Generated by Django 1.9.4 on 2016-06-22 05:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0001_initial'), migrations.swappable_dependency(settings...
43.061538
122
0.590211
795f67d895fa305ac51a4f7ce44fa6af4151ac52
317
py
Python
gallery/urls.py
wangilamain/gallery-app
4368d7f98bc4f80f703796fff1427aec363f0e4b
[ "MIT" ]
null
null
null
gallery/urls.py
wangilamain/gallery-app
4368d7f98bc4f80f703796fff1427aec363f0e4b
[ "MIT" ]
null
null
null
gallery/urls.py
wangilamain/gallery-app
4368d7f98bc4f80f703796fff1427aec363f0e4b
[ "MIT" ]
null
null
null
from django.urls import path, re_path from .views import index, search, locations,location_zones urlpatterns = [ path('', index, name = 'index' ), path('search/', search, name ='search'), path('locations/',location_zones, name='location'), path('location/<location>',locations, name = 'locations') ]
31.7
61
0.681388
795f686e782ca435f196c9d5e29100980fd33d36
112
py
Python
mifiel/__init__.py
webdox/mifiel-python
35369bbd63d035010d6d9946faf1712e20d33328
[ "MIT" ]
null
null
null
mifiel/__init__.py
webdox/mifiel-python
35369bbd63d035010d6d9946faf1712e20d33328
[ "MIT" ]
null
null
null
mifiel/__init__.py
webdox/mifiel-python
35369bbd63d035010d6d9946faf1712e20d33328
[ "MIT" ]
null
null
null
from .client import Client from .response import Response from .base import Base from .document import Document
22.4
30
0.821429
795f699ecbf7c5283df67cf02405e81150e11231
3,029
py
Python
semi/CNetTrain/decode.py
WowCZ/strac
a55195a04ea4f1a4051fdcf11e83777b47ca83e1
[ "Apache-2.0" ]
3
2019-09-27T06:07:12.000Z
2020-01-06T19:00:34.000Z
semi/CNetTrain/decode.py
WowCZ/strac
a55195a04ea4f1a4051fdcf11e83777b47ca83e1
[ "Apache-2.0" ]
null
null
null
semi/CNetTrain/decode.py
WowCZ/strac
a55195a04ea4f1a4051fdcf11e83777b47ca83e1
[ "Apache-2.0" ]
1
2021-12-20T08:08:32.000Z
2021-12-20T08:08:32.000Z
import ConfigParser, sys import Classifier, sutils def decode(config): c = Classifier.classifier(config) c.load(config.get("train", "output")) dataroot = config.get("decode", "dataroot") dataset = config.get("decode", "dataset") dw = sutils.dataset_walker(dataset = dataset, dataroot=dataroot,...
31.884211
102
0.440409
795f69a3eafc2d9e2bdd28be8e822e6d6712ba60
17,907
py
Python
lib/paymentrequest.py
DNotesCoin/electrum-DNotes
daa3396598509bdb76051478f7a3eee3a8007174
[ "MIT" ]
null
null
null
lib/paymentrequest.py
DNotesCoin/electrum-DNotes
daa3396598509bdb76051478f7a3eee3a8007174
[ "MIT" ]
null
null
null
lib/paymentrequest.py
DNotesCoin/electrum-DNotes
daa3396598509bdb76051478f7a3eee3a8007174
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2014 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 without...
33.850662
145
0.618194
795f6ae85db8aff9e6937c28d6532f5472fc67da
6,016
py
Python
vqa_lab/data/dataset_vqav2.py
bezorro/ACMN
6a1de9cebc98f3057e7ddc93bbd4e00f777ed2d4
[ "MIT" ]
35
2018-04-09T16:16:54.000Z
2021-10-02T06:19:06.000Z
vqa_lab/data/dataset_vqav2.py
Einstone-rose/ACMN-Pytorch
6a1de9cebc98f3057e7ddc93bbd4e00f777ed2d4
[ "MIT" ]
2
2019-07-05T13:20:40.000Z
2020-04-05T12:17:49.000Z
vqa_lab/data/dataset_vqav2.py
Einstone-rose/ACMN-Pytorch
6a1de9cebc98f3057e7ddc93bbd4e00f777ed2d4
[ "MIT" ]
10
2018-04-09T06:46:48.000Z
2020-06-14T23:15:00.000Z
import h5py import os import numpy as np import pandas as pd import torch import torch.nn.init from PIL import Image from torch.utils.data import Dataset from torchvision import transforms from vqa_lab.utils import read_json class vqa2Dataset(Dataset): """vqa dataset.""" def __init__(self, opt, mode = 'train')...
40.92517
140
0.516789
795f6ba9411b6b43595700d29754cc6b13237692
21,792
py
Python
pipelineSimulator.py
Omar-Saleh/MIPS-Simulator
8b4f2f15231814e95b0c96010afe84546bf5d5e5
[ "MIT" ]
null
null
null
pipelineSimulator.py
Omar-Saleh/MIPS-Simulator
8b4f2f15231814e95b0c96010afe84546bf5d5e5
[ "MIT" ]
null
null
null
pipelineSimulator.py
Omar-Saleh/MIPS-Simulator
8b4f2f15231814e95b0c96010afe84546bf5d5e5
[ "MIT" ]
null
null
null
from Parser import * class pipelineSimulator(object): """docstring for pipelineSimulator""" def __init__(self): filename = raw_input("Please Write the name of the desired file to execute : ") i = Parser(filename) self.memory = i.getMemory() self.cycles = 0 self.isDone = False self.stall = 0...
30.606742
401
0.6529
795f6bd6bbc5069fdcfd8e932a8f8b0fbcb6f129
173
py
Python
scripts/pyfile_exists.py
dmgress/manticore
61a5f934363980705ea1eea9717600eff005791b
[ "Apache-2.0" ]
null
null
null
scripts/pyfile_exists.py
dmgress/manticore
61a5f934363980705ea1eea9717600eff005791b
[ "Apache-2.0" ]
null
null
null
scripts/pyfile_exists.py
dmgress/manticore
61a5f934363980705ea1eea9717600eff005791b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys for f in sys.stdin.readlines(): line = f.strip() if line.endswith(".py") and os.path.exists(line): print(line)
17.3
53
0.635838
795f6c5abec7cce40effe278d21d8bfb782a7aa8
1,897
py
Python
Task2/demo.py
Chris10M/Vision-Project-Image-Segmentation
d32fe9302320c74f238bc125f1d62a4e2ddbca22
[ "MIT" ]
1
2021-03-28T09:38:39.000Z
2021-03-28T09:38:39.000Z
Task2/demo.py
Chris10M/Vision-Project-Image-Segmentation
d32fe9302320c74f238bc125f1d62a4e2ddbca22
[ "MIT" ]
null
null
null
Task2/demo.py
Chris10M/Vision-Project-Image-Segmentation
d32fe9302320c74f238bc125f1d62a4e2ddbca22
[ "MIT" ]
null
null
null
""" To visualize the results, demo.py needs two arguments, --root (compulsary) - root directory of Cityscapes --model_path (compulsary) - path of the saved_model Press 'q' to quit the demo. Press any key to visualize the next image. """ import torch import numpy as np import cv2 import imutils from torc...
26.347222
116
0.595677
795f6cd144fca8518c028fea15f82a443588380d
1,721
py
Python
server/src/map/map.py
SpongeyBob/ALFRED
f91a46c5f9ed0eb1cd37adcca4c9045b129e066d
[ "MIT" ]
null
null
null
server/src/map/map.py
SpongeyBob/ALFRED
f91a46c5f9ed0eb1cd37adcca4c9045b129e066d
[ "MIT" ]
null
null
null
server/src/map/map.py
SpongeyBob/ALFRED
f91a46c5f9ed0eb1cd37adcca4c9045b129e066d
[ "MIT" ]
null
null
null
from vec3 import Vec3 import sys import os from datetime import datetime from DBconnect import DatabaseConnector # Add paths toward dependecies in different subdirectories sys.path.insert(1, os.path.abspath('../')) class Map: RESOLUTION = 0.05 def __init__(self, id=-1, name=-1, time=datetime.now()): ...
31.290909
100
0.647298
795f6d7dc881d8a871f0cb34878a2409f49a84a7
1,644
py
Python
tests/test_profiling.py
baclang/pybac
ab2ed6561ab895d4ed73d0cafcfd16f7f501cb4a
[ "MIT" ]
1
2021-08-19T21:49:06.000Z
2021-08-19T21:49:06.000Z
tests/test_profiling.py
baclang/pybac
ab2ed6561ab895d4ed73d0cafcfd16f7f501cb4a
[ "MIT" ]
2
2019-08-19T06:26:30.000Z
2019-08-19T06:27:30.000Z
tests/test_profiling.py
baconlang/python
ab2ed6561ab895d4ed73d0cafcfd16f7f501cb4a
[ "MIT" ]
null
null
null
import cProfile import pstats from itertools import repeat from baconlang import interpret, generate_symbol_maps N = 500 def profile_all_symbol_maps(exp, cmet): diffs = [] for symbol_map in generate_symbol_maps(exp): def evaluator(symbols): if len(symbols) == 1: return sy...
21.350649
63
0.572384
795f6ed75754f5522dd54aee2ec5eb4a94fb3404
416
py
Python
utils/admin.py
Jingil-Integrated-Management/JIM_backend
f0e7860d57eddaee034531a52ab91d6715d12c18
[ "Apache-2.0" ]
null
null
null
utils/admin.py
Jingil-Integrated-Management/JIM_backend
f0e7860d57eddaee034531a52ab91d6715d12c18
[ "Apache-2.0" ]
null
null
null
utils/admin.py
Jingil-Integrated-Management/JIM_backend
f0e7860d57eddaee034531a52ab91d6715d12c18
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from apps.client.models import Client from apps.division.models import Division from apps.drawing.models import Drawing from apps.part.models import Part, Material, OutSource, File admin.site.register(Client) admin.site.register(Division) admin.site.register(Drawing) admin.site.regist...
27.733333
60
0.826923
795f6f430fa4cc3b524d185e2704ef6acf2a4b85
1,805
py
Python
imagepy/menus/Plugins/update_plg.py
BioinfoTongLI/imagepy
b86f33f20e872ee8b86471a9ddfbd5ad064fd64d
[ "BSD-4-Clause" ]
1
2019-02-22T03:09:24.000Z
2019-02-22T03:09:24.000Z
imagepy/menus/Plugins/update_plg.py
BioinfoTongLI/imagepy
b86f33f20e872ee8b86471a9ddfbd5ad064fd64d
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/Plugins/update_plg.py
BioinfoTongLI/imagepy
b86f33f20e872ee8b86471a9ddfbd5ad064fd64d
[ "BSD-4-Clause" ]
null
null
null
from imagepy import IPy, root_dir from imagepy.core.engine import Free import os, sys, os.path as osp import zipfile, urllib from io import BytesIO import shutil if sys.version_info[0]==2: from urllib import urlretrieve else: from urllib.request import urlretrieve def Schedule(a,b,c, plg): per = 100.0 * ...
30.083333
84
0.618283
795f6f4a85ae06a55f74bd0de3d0e1d3aee4c130
2,284
py
Python
examples/python/geometry/octree_point_cloud.py
amoran-symbio/Open3D
ae7e44e0dcef11a5df763819d47dec8c5bd5294b
[ "MIT" ]
1,455
2021-07-27T19:44:50.000Z
2022-03-31T19:39:21.000Z
examples/python/geometry/octree_point_cloud.py
amoran-symbio/Open3D
ae7e44e0dcef11a5df763819d47dec8c5bd5294b
[ "MIT" ]
1,439
2021-07-27T16:02:52.000Z
2022-03-31T22:29:05.000Z
examples/python/geometry/octree_point_cloud.py
amoran-symbio/Open3D
ae7e44e0dcef11a5df763819d47dec8c5bd5294b
[ "MIT" ]
339
2021-07-28T03:07:28.000Z
2022-03-31T13:38:00.000Z
# ---------------------------------------------------------------------------- # - Open3D: www.open3d.org - # ---------------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2018-2021 www.open3d.org # # Permission i...
43.923077
79
0.632224
795f6fcc0815c3cfa73db684dbfb16f86aa320c8
3,575
py
Python
test/core_package_tests.py
koo-ec/Reliability_Multirotor_Drones
2a05561ef76d98016c82033ef66e53a3a69963c4
[ "MIT" ]
null
null
null
test/core_package_tests.py
koo-ec/Reliability_Multirotor_Drones
2a05561ef76d98016c82033ef66e53a3a69963c4
[ "MIT" ]
null
null
null
test/core_package_tests.py
koo-ec/Reliability_Multirotor_Drones
2a05561ef76d98016c82033ef66e53a3a69963c4
[ "MIT" ]
null
null
null
import unittest import numpy as np from SafeDrones.core.SafeDrones import SafeDrones def test_mfrc(): inputs = [[1,1,1,1,1,1], [0,1,1,1,1,1], [0,1,1,0,1,1], [1,1,1,1,1,1], \ [1,1,1,1,1,1]] configs = ['PNPNPN', 'PNPNPN', 'PNPNPN', 'PPNNPN', 'PPNNPPNN'] Motors_Lambda = 0.001 time = 100 ...
27.929688
110
0.620979
795f702bd7d67779a6d04c629cbab219f97be1e6
359,052
py
Python
packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py
potpath/plotly.py
46cd47f441d8bda9b14b4ba66a33f02731faf8f0
[ "MIT" ]
1
2020-04-06T20:57:36.000Z
2020-04-06T20:57:36.000Z
packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py
potpath/plotly.py
46cd47f441d8bda9b14b4ba66a33f02731faf8f0
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py
potpath/plotly.py
46cd47f441d8bda9b14b4ba66a33f02731faf8f0
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class ZAxis(_BaseLayoutHierarchyType): # autorange # --------- @property def autorange(self): """ Determines whether or not the range of this axis is computed in relation ...
37.771092
95
0.57817
795f708e3eddaecd36d179568af03258f48e6ef1
8,202
py
Python
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
ANOVA.py
AngusNicolson/factorial_experiment_analysis
a499642c38cb22a2ce13b93dda82c622193e7e35
[ "MIT" ]
null
null
null
import itertools import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from scipy.stats import f from scipy.stats import norm class ANOVA: """Analyse DOE experiments using ANOVA. NB: n > 1 for the code to work, where n is the number of repeats. Model: y = y_average i....
42.278351
157
0.617045
795f72929b7fc11c96c1514b70d9ae7bf88ee7db
2,289
py
Python
var/spack/repos/builtin/packages/ppopen-appl-bem-at/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/ppopen-appl-bem-at/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/ppopen-appl-bem-at/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PpopenApplBemAt(MakefilePackage): """ ppOpen-APPL/BEM-AT is ppOpen-APPL/Bem with auto ...
39.465517
73
0.626911
795f7c33598cbb416c1954712d05bb34a3ea2ccd
34,253
py
Python
pybigquery/sqlalchemy_bigquery.py
devbis/python-bigquery-sqlalchemy
bf1f47c794e747a2ea878347322c040636e8c2d4
[ "MIT" ]
null
null
null
pybigquery/sqlalchemy_bigquery.py
devbis/python-bigquery-sqlalchemy
bf1f47c794e747a2ea878347322c040636e8c2d4
[ "MIT" ]
null
null
null
pybigquery/sqlalchemy_bigquery.py
devbis/python-bigquery-sqlalchemy
bf1f47c794e747a2ea878347322c040636e8c2d4
[ "MIT" ]
null
null
null
# Copyright (c) 2017 The PyBigQuery Authors # # 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, publi...
34.739351
90
0.610166
795f7cba255441315ddd02f6e2785e8f64c673ef
14,524
py
Python
celery/app/base.py
dcramer/celery
7aa55c5f628c29bb6bf942bc5c81feb070fe62a4
[ "BSD-3-Clause" ]
2
2015-09-24T19:53:13.000Z
2015-11-06T10:23:09.000Z
celery/app/base.py
dcramer/celery
7aa55c5f628c29bb6bf942bc5c81feb070fe62a4
[ "BSD-3-Clause" ]
null
null
null
celery/app/base.py
dcramer/celery
7aa55c5f628c29bb6bf942bc5c81feb070fe62a4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ celery.app.base ~~~~~~~~~~~~~~~ Application Base Class. :copyright: (c) 2009 - 2012 by Ask Solem. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from __future__ import with_statement import os import warnings import platform as...
36.956743
79
0.60672
795f7ceb7315393db09618a8adcb657f10cffac6
1,302
py
Python
driver_station/src/ui/widgets/target_widget.py
frc1418/2014
2fc75b13efd5a986522a16e20ff0ccee66938724
[ "BSD-3-Clause" ]
1
2015-04-16T18:08:36.000Z
2015-04-16T18:08:36.000Z
driver_station/src/ui/widgets/target_widget.py
frc1418/2014
2fc75b13efd5a986522a16e20ff0ccee66938724
[ "BSD-3-Clause" ]
null
null
null
driver_station/src/ui/widgets/target_widget.py
frc1418/2014
2fc75b13efd5a986522a16e20ff0ccee66938724
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of Team 1418 Dashboard # # Team 1418 Dashboard 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 3. # # Team 1418 Dashboard is distributed in the hope that it ...
38.294118
82
0.673579
795f7e60fcacc2a1a68f6ce82862182ba8c1cb63
1,600
py
Python
xlsxwriter/test/comparison/test_repeat05.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_repeat05.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_repeat05.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
32.653061
113
0.590625
795f7ec55e953d6e26711af39a50c0c52079b951
4,990
py
Python
VDSR/solver.py
amwons/Super-Resolution
11d99ffbae17fdc65c32ccfa0ce3f20ff47c99b5
[ "Apache-2.0" ]
1
2018-09-04T13:00:39.000Z
2018-09-04T13:00:39.000Z
VDSR/solver.py
Andyzhang59/super-resolution
11d99ffbae17fdc65c32ccfa0ce3f20ff47c99b5
[ "Apache-2.0" ]
null
null
null
VDSR/solver.py
Andyzhang59/super-resolution
11d99ffbae17fdc65c32ccfa0ce3f20ff47c99b5
[ "Apache-2.0" ]
1
2018-07-23T15:42:21.000Z
2018-07-23T15:42:21.000Z
from __future__ import print_function from math import log10 import torch import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn import torchvision.transforms as transforms from VDSR.model import Net from misc import progress_bar from PIL import Image class VDSRTrainer(object): de...
39.92
126
0.59018
795f813ead818e6ef044867a3af89f41bd3169a0
6,919
py
Python
cogs/memes/meme.py
FellowHashbrown/omega-psi-py
4ea33cdbef15ffaa537f2c9e382de508c58093fc
[ "MIT" ]
4
2018-12-23T08:49:40.000Z
2021-03-25T16:51:43.000Z
cogs/memes/meme.py
FellowHashbrown/omega-psi-py
4ea33cdbef15ffaa537f2c9e382de508c58093fc
[ "MIT" ]
23
2020-11-03T17:40:40.000Z
2022-02-01T17:12:59.000Z
cogs/memes/meme.py
FellowHashbrown/omega-psi-py
4ea33cdbef15ffaa537f2c9e382de508c58093fc
[ "MIT" ]
1
2019-07-11T23:40:13.000Z
2019-07-11T23:40:13.000Z
from discord import File from PIL import Image, ImageDraw, ImageFont from requests import get from io import BytesIO from math import sqrt # # # # # # # # # # # # # # # roboto = "cogs/memes/roboto.ttf" # # # # # # # # # # # # # # # class TextLocation: """The TextLocation class is what will hold the x,y coordin...
35.482051
99
0.525799
795f84b75bda2d26948a3cd5f97c50b6edb45368
53,059
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/_managed_clusters_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
1
2021-09-07T18:35:07.000Z
2021-09-07T18:35:07.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/_managed_clusters_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/_managed_clusters_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.812328
246
0.667314
795f85d4f5d090cf623e67ece6077b4ec5e8f65a
1,680
py
Python
app/webhooks.py
L-Nafaryus/elnafo
ca278503fec78224fbdc265b3245df44b7a1a33a
[ "MIT" ]
null
null
null
app/webhooks.py
L-Nafaryus/elnafo
ca278503fec78224fbdc265b3245df44b7a1a33a
[ "MIT" ]
null
null
null
app/webhooks.py
L-Nafaryus/elnafo
ca278503fec78224fbdc265b3245df44b7a1a33a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from flask import request from app import app, ENV import os from dateutil import parser import requests @app.route("/webhooks/discord", methods = ["POST"]) def webhooks_discord(): data = request.get_json()#["data"][0] endpoint = ENV["DISCORD_WEBHOOK"] heade...
28.474576
80
0.43631
795f86b831cd661bce6612a7113b265cdb045964
362
py
Python
exemples-20170929/matrices.py
houahidi/exos-python
60055ff2933a07876213aa8e5f03c9388f628b99
[ "Apache-2.0" ]
null
null
null
exemples-20170929/matrices.py
houahidi/exos-python
60055ff2933a07876213aa8e5f03c9388f628b99
[ "Apache-2.0" ]
null
null
null
exemples-20170929/matrices.py
houahidi/exos-python
60055ff2933a07876213aa8e5f03c9388f628b99
[ "Apache-2.0" ]
null
null
null
matrice = [] colonne1 = [2, 3] colonne2 = [10, 12] matrice.append(colonne1) matrice.append(colonne2) liste = [1, 4.8, "bonjour", True] print(liste[3]) print(liste[0]) print(len(liste)) print(len(matrice)) print(matrice[1][0]) print(matrice) print(matrice.index(colonne2)) print(colonne2.index(10)) matrice.extend(colonne...
20.111111
33
0.723757
795f8764914b23cb5897420e4ad78cae3abd9317
1,250
py
Python
cubs/urls.py
kiza054/woodhall-website
73a27e93da818bff2c3efbea3409cf63356a4d32
[ "MIT" ]
2
2021-02-01T13:50:51.000Z
2022-02-03T19:30:16.000Z
cubs/urls.py
kiza054/woodhall-website
73a27e93da818bff2c3efbea3409cf63356a4d32
[ "MIT" ]
null
null
null
cubs/urls.py
kiza054/woodhall-website
73a27e93da818bff2c3efbea3409cf63356a4d32
[ "MIT" ]
null
null
null
from cubs import views from django.urls import path from cubs.views import ( PostList, PostCreate, PostUpdate, PostDelete, UserPostList ) urlpatterns = [ path('', PostList.as_view(), name='cubs_blog_home'), path('about/', views.AboutView.as_view(), name='cubs_blog_about'), ...
50
99
0.6992
795f87b241dfc2f8aa5f0644f3c6134ed1cde6b4
3,227
py
Python
vcf_add_sample.py
ClinSeq/autoseq-scripts
12bf33931f4c1e43d68631f722e4bac1640e8e68
[ "MIT" ]
null
null
null
vcf_add_sample.py
ClinSeq/autoseq-scripts
12bf33931f4c1e43d68631f722e4bac1640e8e68
[ "MIT" ]
null
null
null
vcf_add_sample.py
ClinSeq/autoseq-scripts
12bf33931f4c1e43d68631f722e4bac1640e8e68
[ "MIT" ]
1
2017-11-14T08:18:30.000Z
2017-11-14T08:18:30.000Z
#!/usr/bin/env python """vcf_add_sample.py Add DP, RO and AO for a new sample from a BAM file. Filters variants that are not simple substitutions. Optionally filter homozygous variants from the output file (--filter_hom) usage: vcf_add_sample.py --samplename variants.vcf(.gz) aligned.bam > new.vcf """ import logging...
37.523256
109
0.696312
795f88e7b7c10ad6fddf7ed719d3670177c5e8eb
10,436
py
Python
gamestonk_terminal/fundamental_analysis/market_watch_view.py
qTipTip/GamestonkTerminal
8a3546a636d1b39e79e365d77ad4273c1fc3f7e7
[ "MIT" ]
1
2021-04-23T21:49:25.000Z
2021-04-23T21:49:25.000Z
gamestonk_terminal/fundamental_analysis/market_watch_view.py
qTipTip/GamestonkTerminal
8a3546a636d1b39e79e365d77ad4273c1fc3f7e7
[ "MIT" ]
null
null
null
gamestonk_terminal/fundamental_analysis/market_watch_view.py
qTipTip/GamestonkTerminal
8a3546a636d1b39e79e365d77ad4273c1fc3f7e7
[ "MIT" ]
null
null
null
""" Fundamental Analysis Market Watch View """ __docformat__ = "numpy" import argparse from typing import List import pandas as pd from gamestonk_terminal.fundamental_analysis import market_watch_model as mwm from gamestonk_terminal.helper_funcs import ( parse_known_args_and_warn, patch_pandas_text_adjustment...
42.946502
99
0.665197
795f893aba11446b577aacefdd30e1385d72e5fd
1,127
py
Python
setup.py
RedHatInsights/insights-analytics-collector
9b648232dc25f01ba94c05f928e6f59f8856c133
[ "Apache-2.0" ]
null
null
null
setup.py
RedHatInsights/insights-analytics-collector
9b648232dc25f01ba94c05f928e6f59f8856c133
[ "Apache-2.0" ]
null
null
null
setup.py
RedHatInsights/insights-analytics-collector
9b648232dc25f01ba94c05f928e6f59f8856c133
[ "Apache-2.0" ]
1
2022-03-28T08:31:57.000Z
2022-03-28T08:31:57.000Z
import os from setuptools import setup, find_packages __version__ = '0.1.1' # We use the README as the long_description readme_path = os.path.join(os.path.dirname(__file__), "README.md") setup( name='insights-analytics-collector', version=__version__, url='https://github.com/RedHatInsights/insights-anal...
32.2
74
0.673469
795f8b7788dcd0f51f044f931d614742d0e25732
2,646
py
Python
tests/sentry/integrations/vsts_extension/test_provider.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
2
2019-03-04T12:45:54.000Z
2019-03-04T12:45:55.000Z
tests/sentry/integrations/vsts_extension/test_provider.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
tests/sentry/integrations/vsts_extension/test_provider.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
1
2017-02-09T06:36:57.000Z
2017-02-09T06:36:57.000Z
from __future__ import absolute_import from django.core.urlresolvers import reverse from mock import patch from six.moves.urllib.parse import urlparse, parse_qs from sentry.integrations.vsts import VstsIntegrationProvider from sentry.integrations.vsts_extension import ( VstsExtensionIntegrationProvider, VstsE...
35.756757
94
0.651927