hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
c1a447b4fc7daa054fcd22d521fd9c95f05d77e8
845
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/jdfusion/models/CreateDatasource.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/jdfusion/models/CreateDatasource.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/jdfusion/models/CreateDatasource.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
30.178571
75
0.72426
717bca47c679f21547ef531c0e8062e7820a69e6
11,251
py
Python
examples/pytorch/test_examples.py
yifding/AVEQA_transformers
7c6619db4fa87c331f798d89e08a54b5ec4d8868
[ "Apache-2.0" ]
39
2021-04-30T06:06:30.000Z
2022-03-12T11:56:06.000Z
examples/pytorch/test_examples.py
yifding/AVEQA_transformers
7c6619db4fa87c331f798d89e08a54b5ec4d8868
[ "Apache-2.0" ]
7
2021-07-16T21:47:19.000Z
2022-03-18T20:26:53.000Z
examples/pytorch/test_examples.py
yifding/AVEQA_transformers
7c6619db4fa87c331f798d89e08a54b5ec4d8868
[ "Apache-2.0" ]
30
2021-04-30T07:11:22.000Z
2022-03-15T19:34:58.000Z
# coding=utf-8 # Copyright 2018 HuggingFace Inc.. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.801749
112
0.610968
efe5d361579f6ba3218bfbd1b4a49dfa6d04c6d4
896
py
Python
medium/python3/c0287_593_valid-square/00_leetcode_0287.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0287_593_valid-square/00_leetcode_0287.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0287_593_valid-square/00_leetcode_0287.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #593. Valid Square #Given the coordinates of four points in 2D space, return whether the four points could construct a square. #The coordinate (x,y) of a ...
34.461538
107
0.671875
efb93912f79c2924239b71cc1d8e5d43d8531a73
4,465
py
Python
proceed.py
abhisheks1460/Corona-Detection-from-X-ray-using-CNN
b68df843578f05c307d5061dd926ee95bd5152d3
[ "MIT" ]
1
2022-01-06T12:43:08.000Z
2022-01-06T12:43:08.000Z
proceed.py
abhisheks1460/Corona-Detection-from-X-ray-using-CNN
b68df843578f05c307d5061dd926ee95bd5152d3
[ "MIT" ]
null
null
null
proceed.py
abhisheks1460/Corona-Detection-from-X-ray-using-CNN
b68df843578f05c307d5061dd926ee95bd5152d3
[ "MIT" ]
2
2021-05-28T08:21:02.000Z
2022-01-06T12:49:43.000Z
import tkinter as tk from tkinter import * from PIL import ImageTk, Image import model Height=735 Width=1375 root1=tk.Tk() root1.attributes("-fullscreen", True) root1.geometry('1366x768') root1.title("COVID 19") background_image1=tk.PhotoImage(file=('suru.png')) background_label1=tk.Label(root1,image=background_im...
24.805556
149
0.695857
243baabc652bd49639ad135863960ea506eb1444
38,448
py
Python
service-function/vxlan_tool.py
johscheuer/OPNFV-Lab
7ea1fc807d9e443b07af33f49bbc9246025a62c7
[ "MIT" ]
null
null
null
service-function/vxlan_tool.py
johscheuer/OPNFV-Lab
7ea1fc807d9e443b07af33f49bbc9246025a62c7
[ "MIT" ]
null
null
null
service-function/vxlan_tool.py
johscheuer/OPNFV-Lab
7ea1fc807d9e443b07af33f49bbc9246025a62c7
[ "MIT" ]
null
null
null
# # Copyright (c) 2015 Intel, Inc., Cisco Systems, Inc. and others. All rights # reserved. # # This program and the accompanying materials are made available under the # terms of the Eclipse Public License v1.0 which accompanies this distribution, # and is available at http://www.eclipse.org/legal/epl-v10.html impor...
36.374645
79
0.5683
8f8aef7e67a464aa9c8034384ed6d5c0cef7276b
183
py
Python
k_util/__init__.py
krinj/k-util
a888fda5b82a81bcbdff21adf2f172e6bb3ea72d
[ "MIT" ]
1
2018-09-23T06:13:44.000Z
2018-09-23T06:13:44.000Z
k_util/__init__.py
krinj/k-util
a888fda5b82a81bcbdff21adf2f172e6bb3ea72d
[ "MIT" ]
null
null
null
k_util/__init__.py
krinj/k-util
a888fda5b82a81bcbdff21adf2f172e6bb3ea72d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ <ENTER DESCRIPTION HERE> """ __author__ = "Jakrin Juangbhanich" __email__ = "juangbhanich.k@gmail.com" __version__ = "0.0.0" from .region import Region
15.25
38
0.677596
0c6a11fc069aa92920445ba6b47792d3856d411a
1,172
py
Python
runway/cfngin/commands/stacker/graph.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/cfngin/commands/stacker/graph.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/cfngin/commands/stacker/graph.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
"""Print the the relationships between steps as a graph.""" from ...actions import graph from .base import BaseCommand class Graph(BaseCommand): """Graph subcommands.""" name = "graph" description = __doc__ def add_arguments(self, parser): """Add arguments.""" super(Graph, self).add_...
30.051282
70
0.575085
a45c737f83786f2e2e506a13d1030d02561fa283
36
py
Python
tests/__init__.py
PIA-Group/epibox
9b12ae27e73c69845d2418b2a2ba00c10e2c99f5
[ "MIT" ]
1
2021-07-14T10:03:54.000Z
2021-07-14T10:03:54.000Z
tests/__init__.py
anascacais/epibox
23f8963c4a2f5457dd8773e6092b86b0db35e2c7
[ "MIT" ]
null
null
null
tests/__init__.py
anascacais/epibox
23f8963c4a2f5457dd8773e6092b86b0db35e2c7
[ "MIT" ]
null
null
null
"""Unit test package for epibox."""
18
35
0.666667
141bed6935e16cdad946877e9b6d9f5cc26b8b7f
4,983
py
Python
core/permissions.py
Tomasz-Kluczkowski/Bnice
75eb66a94a3bf3225691ed6802e674fbcf108571
[ "MIT" ]
null
null
null
core/permissions.py
Tomasz-Kluczkowski/Bnice
75eb66a94a3bf3225691ed6802e674fbcf108571
[ "MIT" ]
60
2018-04-20T21:32:21.000Z
2021-09-07T23:53:31.000Z
core/permissions.py
Tomasz-Kluczkowski/Bnice
75eb66a94a3bf3225691ed6802e674fbcf108571
[ "MIT" ]
null
null
null
""" Support for declaring global groups, their per object permissions and any classes / functions needed for this purpose. """ from django.contrib.auth.models import Group from django.contrib.contenttypes.models import ContentType from django.db.models import Q from django.template.defaultfilters import pluralize from ...
32.782895
118
0.607867
a14c60c0e0a401c0a7a555cb8cb4b1fabfe294c5
6,554
py
Python
pyRVtest/results/problem_results.py
chrissullivanecon/pyRVtest
ac9a5ca408e64695c3c452ef7584eaf43a5e8d9a
[ "MIT" ]
null
null
null
pyRVtest/results/problem_results.py
chrissullivanecon/pyRVtest
ac9a5ca408e64695c3c452ef7584eaf43a5e8d9a
[ "MIT" ]
null
null
null
pyRVtest/results/problem_results.py
chrissullivanecon/pyRVtest
ac9a5ca408e64695c3c452ef7584eaf43a5e8d9a
[ "MIT" ]
1
2022-01-26T05:03:55.000Z
2022-01-26T05:03:55.000Z
"""Economy-level structuring of BLP problem results.""" import itertools import time from typing import Any, Callable, Dict, Hashable, List, Optional, Sequence, TYPE_CHECKING, Tuple import numpy as np import scipy.linalg import pandas as pd import pyRVtest.data as DATA from .results import Results from .. ...
39.721212
236
0.561642
b9bc801b4c9b8a06855f640ce2a39d47595fe28c
9,090
py
Python
Masters/Copy Layer to Layer.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
Masters/Copy Layer to Layer.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
Masters/Copy Layer to Layer.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Copy Layer to Layer # -*- coding: utf-8 -*- __doc__=""" Copies one master to another master's or background in selected glyphs. """ import GlyphsApp import vanilla import math def getComponentScaleX_scaleY_rotation( thisComponent ): a = thisComponent.transform[0] b = thisComponent.transform[1] c = t...
41.318182
150
0.736854
6fe766ad86f6a09dffa1a9dcca7a39309a6a19ab
4,387
py
Python
server/problem_sets/gen/format.py
iiridescent/problem-sets
e906fe7509cd158ecdb5920853636339d4d531c3
[ "MIT" ]
null
null
null
server/problem_sets/gen/format.py
iiridescent/problem-sets
e906fe7509cd158ecdb5920853636339d4d531c3
[ "MIT" ]
5
2021-03-09T10:36:59.000Z
2022-02-26T14:36:08.000Z
server/problem_sets/gen/format.py
vinhowe/problem-sets
e906fe7509cd158ecdb5920853636339d4d531c3
[ "MIT" ]
null
null
null
from enum import Enum from fractions import Fraction from numbers import Number from numpy import around from sympy import root as sp_root, latex as sp_latex from typing import Union, Tuple from problem_sets.gen.math import ord def fmath(value): """ Format MATH Add latex surrounding brackets ('\\(' and ...
22.968586
105
0.596535
324d15c56ac6a17dee4d56d6b7a580cdd7ba88ed
12,441
py
Python
tests/test_info.py
rickh94/lilyskel
2bf068537e5ef04cdd37958e7604e381511a2a22
[ "MIT" ]
1
2017-09-12T17:17:03.000Z
2017-09-12T17:17:03.000Z
tests/test_info.py
rickh94/lyskel
2bf068537e5ef04cdd37958e7604e381511a2a22
[ "MIT" ]
null
null
null
tests/test_info.py
rickh94/lyskel
2bf068537e5ef04cdd37958e7604e381511a2a22
[ "MIT" ]
null
null
null
"""Tests for info classes.""" import re import attr import pytest import requests from unittest import mock from lilyskel import info from lilyskel import lynames from lilyskel import exceptions from lilyskel import db_interface @pytest.fixture def beethoven(): """Bare minimum composer instance""" return inf...
42.606164
85
0.641829
a4105d028bb0d8c7005b8f04e66322467e0d82e0
24,366
py
Python
tensorflow/python/distribute/combinations.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/distribute/combinations.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/distribute/combinations.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.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...
37.776744
108
0.706312
35ed13f267bd9148d255edfc8a4ae184ae17791c
3,091
py
Python
test_driven_dev/tests/test_parking_lot.py
rhnvrm/mini-projects
8aae3160c1641cfa9730e17fe2415a91ef718cda
[ "MIT" ]
1
2015-11-06T06:41:31.000Z
2015-11-06T06:41:31.000Z
test_driven_dev/tests/test_parking_lot.py
sagarladla/mini-projects
8aae3160c1641cfa9730e17fe2415a91ef718cda
[ "MIT" ]
2
2015-11-29T13:38:48.000Z
2017-02-25T20:05:20.000Z
test_driven_dev/tests/test_parking_lot.py
sagarladla/mini-projects
8aae3160c1641cfa9730e17fe2415a91ef718cda
[ "MIT" ]
3
2017-08-20T18:44:49.000Z
2019-06-19T21:06:11.000Z
import unittest from app.parking import Parking from app.car import Car class TestParkingLotCreation(unittest.TestCase): def test_create_new_parking_lot(self): park_lot = Parking(6) result = park_lot.size self.assertEqual(6, result) def test_parking_raises_error_if_arg_is_not_a_nu...
41.77027
76
0.665157
248ed847d6cfc0994feed61784c0f8559062279a
3,792
py
Python
mailboxresource.py
LotusTM/imapbox
bc5e27aff6a801bb97e355a5352637db0d6a0fd3
[ "MIT" ]
null
null
null
mailboxresource.py
LotusTM/imapbox
bc5e27aff6a801bb97e355a5352637db0d6a0fd3
[ "MIT" ]
null
null
null
mailboxresource.py
LotusTM/imapbox
bc5e27aff6a801bb97e355a5352637db0d6a0fd3
[ "MIT" ]
1
2018-10-31T12:49:43.000Z
2018-10-31T12:49:43.000Z
#!/usr/bin/env python3 import os import re import email import hashlib import logging import imaplib from email import policy from message import Message from datetime import date, timedelta from imapclient import IMAPClient logging.basicConfig( filename='imapbox.log', format='%(asctime)s - %(levelname)s: %(m...
26.517483
76
0.567247
a39c99ffe9fe877354e35ead20f4cbfb3c7f189a
13,407
py
Python
src/sage_docbuild/sphinxbuild.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage_docbuild/sphinxbuild.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/sage_docbuild/sphinxbuild.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" This is Sage's version of the sphinx-build script We redirect stdout and stderr to our own logger, and remove some unwanted chatter. """ # **************************************************************************** # Copyright (C) 2013-2014 Volker Braun <vbraun.name@gmail.com> # ...
40.261261
138
0.572238
0aac682ca3d39e87a75549f939a49499f4308c75
190
py
Python
ledfx/effects/effectlets/__init__.py
broccoliboy/LedFx
1c90d5c3ddaf993a072eab92d3e373dd3b0fb45c
[ "MIT" ]
524
2020-12-18T19:34:55.000Z
2022-03-31T14:52:25.000Z
ledfx/effects/effectlets/__init__.py
broccoliboy/LedFx
1c90d5c3ddaf993a072eab92d3e373dd3b0fb45c
[ "MIT" ]
119
2020-12-18T21:28:12.000Z
2022-03-31T14:44:02.000Z
ledfx/effects/effectlets/__init__.py
broccoliboy/LedFx
1c90d5c3ddaf993a072eab92d3e373dd3b0fb45c
[ "MIT" ]
85
2020-12-18T18:23:16.000Z
2022-03-29T16:37:52.000Z
import fnmatch import os EFFECTLET_LIST = [] files = os.listdir(os.path.dirname(__file__)) for entry in files: if fnmatch.fnmatch(entry, "*.npy"): EFFECTLET_LIST.append(entry)
19
45
0.705263
019b73b3b4de69ae1b004d5d2401c659b8c13573
2,057
py
Python
scripts/change-entry.py
bbou/english-wordnet
da5bfd4d5c6aaa6d4854fd11d69925826c3df576
[ "RSA-MD" ]
null
null
null
scripts/change-entry.py
bbou/english-wordnet
da5bfd4d5c6aaa6d4854fd11d69925826c3df576
[ "RSA-MD" ]
null
null
null
scripts/change-entry.py
bbou/english-wordnet
da5bfd4d5c6aaa6d4854fd11d69925826c3df576
[ "RSA-MD" ]
null
null
null
import sys import wordnet import argparse import re import change_manager def main(): parser = argparse.ArgumentParser(description="Add or remove an entry from a synset") parser.add_argument('synset', metavar='SYNSET_ID', type=str, nargs="?", help="The ID of the synset to change") parser.add_ar...
31.166667
96
0.596986
f7b19edba40875a4e28827e21b26000a6c87de93
19,899
py
Python
ceph_deploy/install.py
491852809/ceph-deploy
b057610d4287620f203170e346e592d62edc45ee
[ "MIT" ]
1
2017-04-07T21:32:18.000Z
2017-04-07T21:32:18.000Z
ceph_deploy/install.py
491852809/ceph-deploy
b057610d4287620f203170e346e592d62edc45ee
[ "MIT" ]
null
null
null
ceph_deploy/install.py
491852809/ceph-deploy
b057610d4287620f203170e346e592d62edc45ee
[ "MIT" ]
null
null
null
import argparse import logging import os from ceph_deploy import hosts from ceph_deploy.cliutil import priority from ceph_deploy.lib import remoto from ceph_deploy.util.constants import default_components from ceph_deploy.util.paths import gpg LOG = logging.getLogger(__name__) def sanitize_args(args): """ a...
30.195751
109
0.57812
9c5dc0bb22a6a22a1bcf766f19738f8e57f2ce3a
482
py
Python
resto/models.py
abhishekm47/restaurant-django
56993f2269e27c9b932b5f172cdf4db1e95292aa
[ "MIT" ]
null
null
null
resto/models.py
abhishekm47/restaurant-django
56993f2269e27c9b932b5f172cdf4db1e95292aa
[ "MIT" ]
null
null
null
resto/models.py
abhishekm47/restaurant-django
56993f2269e27c9b932b5f172cdf4db1e95292aa
[ "MIT" ]
null
null
null
from django.db import models from phonenumber_field.modelfields import PhoneNumberField # Create your models here. class ContactMessage(models.Model): name = models.CharField(max_length=200) email = models.EmailField() phone = PhoneNumberField(blank=True) subject = models.CharField(max_length=300) ...
20.956522
58
0.736515
04a1a828f95ec907cc7d6448f10d99e47bc135be
21,715
py
Python
concurrent_schema_changes_test.py
thobbs/cassandra-dtest
71c0c31258577033a591abad4bf6fdcfdc9f723b
[ "Apache-2.0" ]
null
null
null
concurrent_schema_changes_test.py
thobbs/cassandra-dtest
71c0c31258577033a591abad4bf6fdcfdc9f723b
[ "Apache-2.0" ]
null
null
null
concurrent_schema_changes_test.py
thobbs/cassandra-dtest
71c0c31258577033a591abad4bf6fdcfdc9f723b
[ "Apache-2.0" ]
null
null
null
import glob import os import pprint import re import time from random import randrange from threading import Thread from cassandra.concurrent import execute_concurrent from ccmlib.node import Node from dtest import Tester, debug from tools import known_failure, require, since def wait(delay=2): """ An abstr...
37.310997
163
0.602901
00b9c140c4c70e4eba545b3376676fe31fe818f2
8,083
py
Python
src/elixir/properties.py
webmedic/booker
e4d0e8c7b7c3d8c664c760ec9458ec306a0e1116
[ "MIT" ]
null
null
null
src/elixir/properties.py
webmedic/booker
e4d0e8c7b7c3d8c664c760ec9458ec306a0e1116
[ "MIT" ]
null
null
null
src/elixir/properties.py
webmedic/booker
e4d0e8c7b7c3d8c664c760ec9458ec306a0e1116
[ "MIT" ]
null
null
null
''' This module provides support for defining properties on your entities. It both provides, the `Property` class which acts as a building block for common properties such as fields and relationships (for those, please consult the corresponding modules), but also provides some more specialized properties, such as `Colu...
33.127049
79
0.67611
7523c4316ff10291a80479d2d20cadf2db781c90
1,307
py
Python
setup.py
coolerking/donkeypart_dcmotor
3bc240696925225f5dca12c59370097f47cd9c7f
[ "MIT" ]
1
2021-02-25T12:02:21.000Z
2021-02-25T12:02:21.000Z
setup.py
coolerking/donkeypart_dcmotor
3bc240696925225f5dca12c59370097f47cd9c7f
[ "MIT" ]
null
null
null
setup.py
coolerking/donkeypart_dcmotor
3bc240696925225f5dca12c59370097f47cd9c7f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='donkeypart_dcmotor', version='0.1.0', description='dc motor controll part for donkeycar', url='https://github.com/coolerking/donkeypart_dcmotor/', author='Tasuku Hori', author_email='tasuku-hori@exa-corp.co.jp', license='MIT', ...
35.324324
79
0.610559
725f08d8a0901e1125a7e6491a41decca6be652c
2,255
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GLES2/OES/texture_3D.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GLES2/OES/texture_3D.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/raw/GLES2/OES/texture_3D.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLES2 import _types as _cs # End users want this... from OpenGL.raw.GLES2._types import * from OpenGL.raw.GLES2 import _errors from OpenGL.constant import Constant as _C import...
59.342105
141
0.832373
3f4cc223b7315f8da08b2a8fc3718542d3e7f40f
4,615
py
Python
data/p3BR/R2/benchmark/startCirq373.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startCirq373.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startCirq373.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=3 # total number=74 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
41.576577
77
0.682774
16fcc89ea6be3957a6124b7f41e4b0fd42cef51d
1,971
py
Python
rook/core/exceptions.py
lysnikolaou/fastapi-boilerplate
84ea54b5172a24cec716ccacaf4c3805d7b02850
[ "MIT" ]
null
null
null
rook/core/exceptions.py
lysnikolaou/fastapi-boilerplate
84ea54b5172a24cec716ccacaf4c3805d7b02850
[ "MIT" ]
null
null
null
rook/core/exceptions.py
lysnikolaou/fastapi-boilerplate
84ea54b5172a24cec716ccacaf4c3805d7b02850
[ "MIT" ]
null
null
null
from firebase_admin.exceptions import FirebaseError from starlette import status class RookException(Exception): status_code: int code: str detail: str class NotAuthenticated(RookException): status_code: int = status.HTTP_401_UNAUTHORIZED code: str = "NOT_AUTHENTICATED" detail: str = "Not au...
28.157143
108
0.630137
08719dabe19b9471c3382655e694c3d51e5d1457
237,443
py
Python
coderedcms/migrations/0018_auto_20200805_1702.py
fakegit/coderedcms
10dd10635bba9c2dcecede4b8e557b5a6ffd8b23
[ "BSD-3-Clause" ]
526
2018-07-31T20:14:17.000Z
2022-03-23T08:08:29.000Z
coderedcms/migrations/0018_auto_20200805_1702.py
fakegit/coderedcms
10dd10635bba9c2dcecede4b8e557b5a6ffd8b23
[ "BSD-3-Clause" ]
325
2018-08-01T13:53:55.000Z
2022-03-31T15:08:28.000Z
coderedcms/migrations/0018_auto_20200805_1702.py
fakegit/coderedcms
10dd10635bba9c2dcecede4b8e557b5a6ffd8b23
[ "BSD-3-Clause" ]
153
2018-08-02T07:42:40.000Z
2022-03-24T23:54:59.000Z
# Generated by Django 3.0.8 on 2020-08-05 21:02 import coderedcms.blocks.base_blocks import coderedcms.blocks.html_blocks from django.db import migrations import wagtail.contrib.table_block.blocks import wagtail.core.blocks import wagtail.core.fields import wagtail.documents.blocks import wagtail.embeds.blocks import ...
5,521.930233
75,292
0.740346
4cadf32c66fd69b27ebba49b7a2a454657cf3a05
4,842
py
Python
registry.py
tulare/pkw-utils
474964cb7695fd112e396937e06356de9c8a78bc
[ "MIT" ]
null
null
null
registry.py
tulare/pkw-utils
474964cb7695fd112e396937e06356de9c8a78bc
[ "MIT" ]
null
null
null
registry.py
tulare/pkw-utils
474964cb7695fd112e396937e06356de9c8a78bc
[ "MIT" ]
1
2018-09-19T15:19:20.000Z
2018-09-19T15:19:20.000Z
# -*- encoding: utf-8 -*- import winreg HKEYS = { item[0] : item[1] for item in filter( lambda it : it[0].startswith('HKEY_'), vars(winreg).items() ) } KEYSAM = { item[0] : item[1] for item in filter( lambda it : it[0].startswith('KEY_'), vars(winreg).items() )...
28.482353
96
0.509913
324574a819f85c9e07bedfe1fe2495cf4a7e7bf3
10,081
py
Python
contrib/linearize/linearize-data.py
wolfoxonly/bwb
aae01441cdc171ff7bbdc161b74b4eeb2f1b5a10
[ "MIT" ]
null
null
null
contrib/linearize/linearize-data.py
wolfoxonly/bwb
aae01441cdc171ff7bbdc161b74b4eeb2f1b5a10
[ "MIT" ]
null
null
null
contrib/linearize/linearize-data.py
wolfoxonly/bwb
aae01441cdc171ff7bbdc161b74b4eeb2f1b5a10
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # linearize-data.py: Construct a linear, no-fork version of the chain. # # Copyright (c) 2013-2017 The Bwbcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from __future__ import print...
31.210526
108
0.693483
c799dcb5ee65b58d88bc74dea69b5cbf58f8b56d
1,727
py
Python
mfDiMP/pytracking/evaluation/data.py
zhanglichao/end2end_rgbt_tracking
f96bf9a810f77885b3faa219f06a82c6e22cb824
[ "MIT" ]
43
2019-08-17T15:02:20.000Z
2022-03-30T04:07:20.000Z
mfDiMP/pytracking/evaluation/data.py
zhulishun/end2end_rgbt_tracking
6de2532feec97b388e3617f85ed779933426dfa5
[ "MIT" ]
10
2019-08-20T12:37:55.000Z
2022-02-20T11:02:13.000Z
mfDiMP/pytracking/evaluation/data.py
zhulishun/end2end_rgbt_tracking
6de2532feec97b388e3617f85ed779933426dfa5
[ "MIT" ]
16
2019-11-23T01:00:10.000Z
2022-02-18T19:17:46.000Z
from pytracking.evaluation.environment import env_settings class BaseDataset: """Base class for all datasets.""" def __init__(self): self.env_settings = env_settings() def __len__(self): """Overload this function in your dataset. This should return number of sequences in the dataset.""" ...
36.744681
108
0.661841
5aa71b1215811e8b63aa0bf0c617e53e16401da0
731
py
Python
src/core/runner/split.py
koukyo1994/atmaCup5
69ee97a3ad6758af27279cc75fcd9f94325eb0e8
[ "MIT" ]
2
2020-06-07T10:01:20.000Z
2020-11-24T02:56:28.000Z
src/core/runner/split.py
koukyo1994/atmaCup5
69ee97a3ad6758af27279cc75fcd9f94325eb0e8
[ "MIT" ]
null
null
null
src/core/runner/split.py
koukyo1994/atmaCup5
69ee97a3ad6758af27279cc75fcd9f94325eb0e8
[ "MIT" ]
null
null
null
import src.core.callbacks.split as spc import src.utils as utils from . import SubRunner from src.core.states import RunningState from src.core.split import get_split class SplitRunner(SubRunner): signature = "split" def __init__(self, config: dict, state: RunningState): super().__init__(config, sta...
25.206897
58
0.663475
9bf272a56858d0a825f34d4e7309d1b0da3534b7
5,554
py
Python
pipelinewise/fastsync/mongodb_to_postgres.py
dirathea/pipelinewise
fdc68380500bd6e11d742d8ea1f1637df40d63da
[ "Apache-2.0" ]
null
null
null
pipelinewise/fastsync/mongodb_to_postgres.py
dirathea/pipelinewise
fdc68380500bd6e11d742d8ea1f1637df40d63da
[ "Apache-2.0" ]
null
null
null
pipelinewise/fastsync/mongodb_to_postgres.py
dirathea/pipelinewise
fdc68380500bd6e11d742d8ea1f1637df40d63da
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys import time import multiprocessing from typing import Union from argparse import Namespace from functools import partial from datetime import datetime from ..logger import Logger from .commons import utils from .commons.tap_mongodb import FastSyncTapMongoDB from .commons.ta...
33.865854
115
0.605329
9f538397e4c6af273de9fa71f8520fc17636d9f8
3,542
py
Python
magenta/models/coconet/lib_logging.py
cristianmtr/magenta
ac2d8ae455fdd07f4b46dec82aedab22fcb6bbbd
[ "Apache-2.0" ]
1
2019-01-24T07:22:48.000Z
2019-01-24T07:22:48.000Z
magenta/models/coconet/lib_logging.py
dkun7944/magenta
8f930263b7cfd67f27eb12cd871b4e5fa87d382e
[ "Apache-2.0" ]
null
null
null
magenta/models/coconet/lib_logging.py
dkun7944/magenta
8f930263b7cfd67f27eb12cd871b4e5fa87d382e
[ "Apache-2.0" ]
1
2019-11-26T06:30:52.000Z
2019-11-26T06:30:52.000Z
# Copyright 2018 The Magenta 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 agreed to in ...
28.796748
79
0.676172
4305ab7ae3b7b6a6fb6c659fbae4d3319cfc8092
1,258
py
Python
GeneratorInterface/AlpgenInterface/test/testAlpgenProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
GeneratorInterface/AlpgenInterface/test/testAlpgenProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
GeneratorInterface/AlpgenInterface/test/testAlpgenProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#!/usr/bin/env cmsRun import FWCore.ParameterSet.Config as cms process = cms.Process("GEN") # POOL Source containing the output from a previous Alpgen Source. process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('file:testSource.root') ) process.maxEvents = cms.untracked.PSet(input ...
34
72
0.788553
9406394bf9a70415ace952e46a1444ac4baee539
21,027
py
Python
tests/integration_tests/api/secrets_engines/test_pki.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/api/secrets_engines/test_pki.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/api/secrets_engines/test_pki.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
import logging from unittest import TestCase from parameterized import parameterized, param from tests import utils from tests.utils.hvac_integration_test_case import HvacIntegrationTestCase class TestPki(HvacIntegrationTestCase, TestCase): TEST_MOUNT_POINT = 'pki-integration-test' TEST_ROLE = 'role-test' ...
34.414075
100
0.622818
1cc5cd0d137602324e904db0014c0914876f8f5f
3,607
py
Python
python/lib/statistiques.py
damienlaine/djoro-bcvtb
84e5a4b46d554c20ac2ffa22383f386b19af8bc5
[ "MIT" ]
2
2019-12-15T13:45:54.000Z
2021-12-26T00:26:26.000Z
python/lib/statistiques.py
damienlaine/djoro-bcvtb
84e5a4b46d554c20ac2ffa22383f386b19af8bc5
[ "MIT" ]
null
null
null
python/lib/statistiques.py
damienlaine/djoro-bcvtb
84e5a4b46d554c20ac2ffa22383f386b19af8bc5
[ "MIT" ]
1
2021-12-26T00:26:41.000Z
2021-12-26T00:26:41.000Z
# -*- coding: utf-8 -*- """ Created on Sun Jul 20 15:09:11 2014 @author: perez """ import cPickle as pickle ## # Nom du fichier pour sauvegarder les statistiques nom_fichier_statistiques = "variablesStatistiques.txt" nom_fichier_csv_statistiques = "variablesCsvStatistiques.txt" ## # Ecart entre température intérieu...
38.37234
130
0.624619
4cd6068704b51ddd7e3cafe3b36e077699e61641
1,183
py
Python
mjmech/utils/curve_test.py
2vin2vin/nslquad
26a4397347bb7b92e06814e94fdd6d305dd2ebed
[ "Apache-2.0" ]
64
2017-01-18T15:12:05.000Z
2022-02-16T08:28:11.000Z
mjmech/utils/curve_test.py
2vin2vin/nslquad
26a4397347bb7b92e06814e94fdd6d305dd2ebed
[ "Apache-2.0" ]
null
null
null
mjmech/utils/curve_test.py
2vin2vin/nslquad
26a4397347bb7b92e06814e94fdd6d305dd2ebed
[ "Apache-2.0" ]
10
2017-03-22T16:17:24.000Z
2021-12-28T10:23:21.000Z
#!/usr/bin/python3 -B # Copyright 2020 Josh Pieper, jjp@pobox.com. # # 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 a...
26.886364
74
0.644125
698d78e40d357d8c45b893ad62a54e0870a9c947
286
py
Python
protgraph/export/graphml.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
protgraph/export/graphml.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
protgraph/export/graphml.py
Luxxii/ProtGraph
68c3b362e2b487403fa02cfc25d456a272004a1f
[ "BSD-2-Clause" ]
null
null
null
from protgraph.export.generic_file_exporter import GenericFileExporter class GraphML(GenericFileExporter): """ A simple GraphML exporter """ def __init__(self): super(GraphML, self).__init__( lambda pg, path: pg.write_graphml(path + ".graphml") )
26
70
0.681818
1683c4aad38bbd5a66ac7cdf0420c2297e44d566
1,600
py
Python
stubs.min/Autodesk/Revit/DB/__init___parts/SketchedStairsCurveData.py
denfromufa/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2017-07-07T11:15:45.000Z
2017-07-07T11:15:45.000Z
stubs.min/Autodesk/Revit/DB/__init___parts/SketchedStairsCurveData.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/__init___parts/SketchedStairsCurveData.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class SketchedStairsCurveData(object,IDisposable): """ Sketched run/landing curves overrides with height and slope SketchedStairsCurveData(boundaryCurve: Curve,height: float,slopeType: SketchedCurveSlopeOption) """ def Dispose(self): """ Dispose(self: SketchedStairsCurveData) """ pass def GetCurv...
35.555556
215
0.710625
95ed7ee4ad4ad299559b898b0cf9709be5034ec9
3,077
py
Python
ai-ml/cs188-into-to-ai/p3/testParser.py
ismacaulay/course-adventures
487748c97845996559bbb7422afc1de9d9c5ed05
[ "MIT" ]
6
2020-06-13T12:28:56.000Z
2022-03-22T19:45:10.000Z
ai-ml/cs188-into-to-ai/p3/testParser.py
ismacaulay/course-adventures
487748c97845996559bbb7422afc1de9d9c5ed05
[ "MIT" ]
19
2021-05-10T20:58:19.000Z
2021-11-12T21:15:22.000Z
school/files/Fall 2019/CS 4710/Coding HW/reinforcement/testParser.py
hyunsukr/hyunsukr.github.io
85c046f124f2120ad0b1778fcc5076e46f5ae51e
[ "MIT" ]
11
2020-11-05T00:57:03.000Z
2022-03-13T22:37:34.000Z
# testParser.py # ------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkele...
35.367816
81
0.506662
dd3c1551a4c9cd6a4d45a0fddf30d1f710f3184a
762
py
Python
prismacloud/api/compute/_logs.py
lsmithpanw/pcs-toolbox
c713569fe6bf067b9284fca48e7fb0dbc395f5a9
[ "ISC" ]
18
2021-12-17T16:45:46.000Z
2022-03-10T19:16:32.000Z
prismacloud/api/compute/_logs.py
lsmithpanw/pcs-toolbox
c713569fe6bf067b9284fca48e7fb0dbc395f5a9
[ "ISC" ]
13
2021-12-17T16:12:18.000Z
2022-03-15T16:48:38.000Z
prismacloud/api/compute/_logs.py
lsmithpanw/pcs-toolbox
c713569fe6bf067b9284fca48e7fb0dbc395f5a9
[ "ISC" ]
15
2021-12-17T17:12:39.000Z
2022-03-11T23:00:12.000Z
""" Prisma Cloud Compute API Logs Endpoints Class """ # Containers class LogsPrismaCloudAPIComputeMixin: """ Prisma Cloud Compute API Logs Endpoints Class """ # Undocumented endpoints. def defender_logs_list_read(self, host_name, query_params=None): logs = self.execute_compute('GET', 'api/v1/log...
36.285714
126
0.721785
0b5c5ec3f5c59f7c6c6d9e38dac00be862176a71
13,992
py
Python
lightautoml/automl/blend.py
kobylkinks/LightAutoML
4d62d2f52192aa3fb2d7841481339e35ef7f7f09
[ "Apache-2.0" ]
766
2020-12-03T08:57:21.000Z
2022-03-31T14:06:53.000Z
lightautoml/automl/blend.py
kobylkinks/LightAutoML
4d62d2f52192aa3fb2d7841481339e35ef7f7f09
[ "Apache-2.0" ]
71
2020-12-07T09:53:59.000Z
2022-03-31T09:31:26.000Z
lightautoml/automl/blend.py
kobylkinks/LightAutoML
4d62d2f52192aa3fb2d7841481339e35ef7f7f09
[ "Apache-2.0" ]
98
2020-12-04T22:00:28.000Z
2022-03-23T15:52:07.000Z
"""Blenders.""" import logging from typing import Callable from typing import List from typing import Optional from typing import Sequence from typing import Tuple from typing import cast import numpy as np from scipy.optimize import minimize_scalar from ..dataset.base import LAMLDataset from ..dataset.np_pd_datas...
30.025751
119
0.606346
ea15a3a9ec4e0f247883376ea046792ceba0a0c3
2,755
py
Python
hciVisualGesture/libraries/navigation.py
cdfbdex/hciVisualGesture
b8c8f60fd6dc0e4876069a33cd7cca5b7160d96d
[ "BSD-3-Clause" ]
null
null
null
hciVisualGesture/libraries/navigation.py
cdfbdex/hciVisualGesture
b8c8f60fd6dc0e4876069a33cd7cca5b7160d96d
[ "BSD-3-Clause" ]
null
null
null
hciVisualGesture/libraries/navigation.py
cdfbdex/hciVisualGesture
b8c8f60fd6dc0e4876069a33cd7cca5b7160d96d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 """ This module contains function to make navigation on WhatsApp application trough the 3D head pose estimation. """ import pyautogui as auto import time from libraries import face ACTIVATE_RIGTH_SIDE = False ACTIVATE_LEFT_SIDE = False def navigationOnWhatsApp(xHeadPos, yHeadPos, cen...
41.119403
122
0.63412
8299a3085bac8ca001f25ede873cd32008f19510
913
py
Python
sales/models.py
kaiocesar/django-eshop
b5eaeaf06ecdca15436fffee549a968b4710cb29
[ "Apache-2.0" ]
null
null
null
sales/models.py
kaiocesar/django-eshop
b5eaeaf06ecdca15436fffee549a968b4710cb29
[ "Apache-2.0" ]
null
null
null
sales/models.py
kaiocesar/django-eshop
b5eaeaf06ecdca15436fffee549a968b4710cb29
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.db import models class PaymentsMethods(models.Model): name = models.CharField(max_length=50) description = models.TextField() class Sales(models.Model): code = models.CharField(max_length=40, verbose_name="Code sales") status = models.CharField(ma...
31.482759
86
0.756846
c4fefb3734557969f67867d10ff7160eddc293f6
605
py
Python
6.3.py
Rycarddo/livro_curso_intensivo_de_python
b90884d05018581e0a575a4c0ccdab9cdf8311b8
[ "MIT" ]
null
null
null
6.3.py
Rycarddo/livro_curso_intensivo_de_python
b90884d05018581e0a575a4c0ccdab9cdf8311b8
[ "MIT" ]
null
null
null
6.3.py
Rycarddo/livro_curso_intensivo_de_python
b90884d05018581e0a575a4c0ccdab9cdf8311b8
[ "MIT" ]
null
null
null
words = {'Listas:': 'São de fato listas onde elementos podem ser adicionados ou removidos.', 'Tuplas:': 'São listas que contém elementos fixos, ou seja, não podem ser adicionados e nem ' 'removidos. É possível "mudar" o valor de uma tupla se você mudar a tupla toda.', 'String:': ...
55
103
0.639669
80086d966ff95b622cc12fbcfc0a3732372df747
300,237
py
Python
template_container_macaque/labels/slice_144.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_macaque/labels/slice_144.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_macaque/labels/slice_144.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
coordinates_00EBFF = ((89, 194), (89, 195), (89, 196), (89, 197), (89, 198), (89, 199), (89, 200), (89, 201), (89, 202), (90, 188), (90, 189), (90, 190), (90, 191), (90, 192), (90, 193), (90, 203), (90, 204), (90, 205), (90, 206), (90, 207), (91, 184), (91, 186), (91, 193), (91, 194), (91, 195), (91, 196), (91, 197),...
843.36236
865
0.495665
6778f5b6515fc91fe432b2b027dab8ab312c95b8
2,732
py
Python
data/p4VQE/R4/benchmark/startQiskit_QC600.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_QC600.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_QC600.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=16 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
28.458333
118
0.639458
3532a722d9c237157b48af44de7c8c9b9c95b829
8,113
py
Python
virt/ansible-latest/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_ftp_proxy_explicit.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-03-22T01:04:39.000Z
2020-03-22T01:04:39.000Z
ansible/ansible/modules/network/fortios/fortios_ftp_proxy_explicit.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/modules/network/fortios/fortios_ftp_proxy_explicit.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-03-22T01:04:48.000Z
2020-03-22T01:04:48.000Z
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
29.394928
116
0.615925
8219d9f522e958f21db0d78ee3804fc3d86f0d13
25,160
py
Python
dev/evolve_patches.py
emilydolson/avida-spatial-tools
7beb0166ccefad5fa722215b030ac2a53d62b59e
[ "MIT" ]
1
2018-06-12T18:31:40.000Z
2018-06-12T18:31:40.000Z
dev/evolve_patches.py
emilydolson/avida-spatial-tools
7beb0166ccefad5fa722215b030ac2a53d62b59e
[ "MIT" ]
1
2016-02-03T23:37:09.000Z
2016-02-03T23:37:09.000Z
dev/evolve_patches.py
emilydolson/avida-spatial-tools
7beb0166ccefad5fa722215b030ac2a53d62b59e
[ "MIT" ]
null
null
null
import random import collections import math import patch_analysis as pa from copy import deepcopy import scipy.spatial.distance import numpy as np import matplotlib.pyplot as plt POP_SIZE = 100 GENERATIONS = 100 THRESHOLD = .005 MUTATION_RATE = .005 CROSSOVER_PROB = .05 WORLD_X = 60 WORLD_Y = 60 K = 5 TOURNAMENT_SIZE...
69.120879
7,185
0.458108
8c8b25a829074032663a41b5c217fa1407cde966
11,626
py
Python
gans_reconstruction/reconstruction_model.py
its-charan-here/SWIR---Satellite-Image-Reconstruction
d49a46f94fc304eee8bb16f3ffcf8c1f4642b8fe
[ "MIT" ]
5
2020-08-04T09:21:06.000Z
2021-12-20T03:12:53.000Z
gans_reconstruction/reconstruction_model.py
PoojanPanchal/SWIR---Satellite-Image-Reconstruction
d49a46f94fc304eee8bb16f3ffcf8c1f4642b8fe
[ "MIT" ]
null
null
null
gans_reconstruction/reconstruction_model.py
PoojanPanchal/SWIR---Satellite-Image-Reconstruction
d49a46f94fc304eee8bb16f3ffcf8c1f4642b8fe
[ "MIT" ]
6
2020-08-04T09:19:29.000Z
2021-02-07T13:04:31.000Z
import logging import cv2 import neuralgym as ng import tensorflow as tf from tensorflow.contrib.framework.python.ops import arg_scope from neuralgym.models import Model from neuralgym.ops.summary_ops import scalar_summary, images_summary from neuralgym.ops.summary_ops import gradients_summary from neuralgym.ops.laye...
41.373665
108
0.571736
a52371f1e7568be1c904b2d4e4b5415c49144f84
1,484
py
Python
nemo_text_processing/inverse_text_normalization/es/verbalizers/money.py
lifefeel/NeMo
85b7d3f0288d42c234e70546179974b6f4d13536
[ "Apache-2.0" ]
null
null
null
nemo_text_processing/inverse_text_normalization/es/verbalizers/money.py
lifefeel/NeMo
85b7d3f0288d42c234e70546179974b6f4d13536
[ "Apache-2.0" ]
1
2022-03-06T14:09:02.000Z
2022-03-06T14:09:02.000Z
nemo_text_processing/inverse_text_normalization/es/verbalizers/money.py
admariner/NeMo
e542d7f9063a40afa4119a3b94de4c2c636a37bb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
36.195122
112
0.678571
f98605fcd30a9b60b819add4e36520da8d76f95b
3,632
py
Python
evosoro/_voxcad_land_water/test_population.py
kattwalker/evosoro
75915d1d794ef6ef2ae78a6e9be00dfd2a0b3283
[ "MIT" ]
null
null
null
evosoro/_voxcad_land_water/test_population.py
kattwalker/evosoro
75915d1d794ef6ef2ae78a6e9be00dfd2a0b3283
[ "MIT" ]
null
null
null
evosoro/_voxcad_land_water/test_population.py
kattwalker/evosoro
75915d1d794ef6ef2ae78a6e9be00dfd2a0b3283
[ "MIT" ]
null
null
null
import hashlib import os import os.path import time import random import subprocess as sub from file_write import write_voxelyze_file from file_write import read_voxelyze_file from update_k import update_k import numpy as np def test_population(population): pop_size=10 t=0 print("i am here") fitness=np.z...
29.770492
185
0.542401
e73328fc10a5fa4b316184fa2265ba9bac67c33c
17,747
py
Python
aws/lamda.py
nathants/cli-aws
4e1b12099ede0afe016f8d7b655f05cb9d5c1251
[ "MIT" ]
2
2019-10-25T19:39:55.000Z
2022-02-03T01:15:02.000Z
aws/lamda.py
nathants/cli-aws
4e1b12099ede0afe016f8d7b655f05cb9d5c1251
[ "MIT" ]
null
null
null
aws/lamda.py
nathants/cli-aws
4e1b12099ede0afe016f8d7b655f05cb9d5c1251
[ "MIT" ]
null
null
null
from aws import stderr, retry, client import glob import json import aws import sys import re import os import shell as sh import aws.api import aws.s3 import aws.dynamodb from aws import client stage_name = 'main' def set_concurrency(name, concurrency, preview): if concurrency: if preview: st...
44.929114
173
0.560996
263458ada782619a5da8ada1ed66b415bcf23b27
22,065
py
Python
hata/discord/invite/invite.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
1
2022-03-02T03:59:57.000Z
2022-03-02T03:59:57.000Z
hata/discord/invite/invite.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
null
null
null
hata/discord/invite/invite.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
null
null
null
__all__ = ('Invite',) from datetime import datetime from scarletio import export from ..application import Application from ..bases import DiscordEntity, instance_or_id_to_instance from ..channel import ( ChannelDirectory, ChannelGroup, ChannelStore, ChannelText, ChannelVoice, create_partial_channel_from_data ) ...
33.687023
119
0.54702
c02faf06d56c05924bf7bffec38755242b71f4b7
9,855
py
Python
config/__init__.py
Contentstack-Solutions/contentstack-cloner
0a19880f50e1307aa8827e175638b6f6ba3b9af6
[ "MIT" ]
null
null
null
config/__init__.py
Contentstack-Solutions/contentstack-cloner
0a19880f50e1307aa8827e175638b6f6ba3b9af6
[ "MIT" ]
null
null
null
config/__init__.py
Contentstack-Solutions/contentstack-cloner
0a19880f50e1307aa8827e175638b6f6ba3b9af6
[ "MIT" ]
null
null
null
''' oskar.eiriksson@contentstack.com 2020-09-28 Various config functions and variables user in both export and import scripts ''' import os from time import sleep from datetime import datetime import json import logging import inquirer import requests import cma def readDirIfExists(folder): ''' Checks if fold...
35.706522
156
0.649822
ca16f9a95403cb7e622565dc75f08202ec1255d4
1,644
py
Python
apps/domain/src/main/routes/setup/routes.py
aisportsbets/pygrid
eeee1e7ef6ba50a03f6f486992a45f7171976e5a
[ "Apache-2.0" ]
null
null
null
apps/domain/src/main/routes/setup/routes.py
aisportsbets/pygrid
eeee1e7ef6ba50a03f6f486992a45f7171976e5a
[ "Apache-2.0" ]
null
null
null
apps/domain/src/main/routes/setup/routes.py
aisportsbets/pygrid
eeee1e7ef6ba50a03f6f486992a45f7171976e5a
[ "Apache-2.0" ]
null
null
null
from .blueprint import setup_blueprint as setup_route from flask import request, Response import json from syft.grid.messages.setup_messages import ( CreateInitialSetUpMessage, GetSetUpMessage, ) from ..auth import error_handler, token_required, optional_token from ...core.task_handler import route_logic fro...
25.292308
87
0.701946
8c2676308ed090ebfeb28ac026530c23c96edb5b
2,095
py
Python
handCodedOptimum_v3.py
aerokappa/SantaClaus
c249ee2dc3ca80e9ca34e586336dd2939e86a7c4
[ "MIT" ]
null
null
null
handCodedOptimum_v3.py
aerokappa/SantaClaus
c249ee2dc3ca80e9ca34e586336dd2939e86a7c4
[ "MIT" ]
null
null
null
handCodedOptimum_v3.py
aerokappa/SantaClaus
c249ee2dc3ca80e9ca34e586336dd2939e86a7c4
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from processInput import processInput def handCodedOptimum_v3 ( ): fileName = 'gifts.csv' giftList, giftListSummary = processInput( fileName ) packedBags = [] for i in np.arange(1000): print i currentBag = [] i...
34.344262
71
0.500716
14fb766ccd9a6a84914c007785b0e6981827cc58
696
py
Python
app/exo_currency/api/v1/serializers.py
jcazallasc/exo-investing
c32900dd2fd426a15f3b02389d75b51427e5df66
[ "MIT" ]
null
null
null
app/exo_currency/api/v1/serializers.py
jcazallasc/exo-investing
c32900dd2fd426a15f3b02389d75b51427e5df66
[ "MIT" ]
null
null
null
app/exo_currency/api/v1/serializers.py
jcazallasc/exo-investing
c32900dd2fd426a15f3b02389d75b51427e5df66
[ "MIT" ]
null
null
null
from rest_framework import serializers from exo_currency.models import Currency, CurrencyExchangeRate class CurrencySerializer(serializers.ModelSerializer): class Meta: model = Currency fields = '__all__' class CurrencyExchangeRateSerializer(serializers.ModelSerializer): source_currency =...
24
66
0.774425
24fd851a30b9ad02b1e0a2475564bacd97e25969
10,507
py
Python
config/settings/base.py
Charles4th/Loaf
1a42fd7c1dc74a90231acfee0d65e235eb586ea3
[ "MIT" ]
1
2018-12-24T03:30:08.000Z
2018-12-24T03:30:08.000Z
config/settings/base.py
Charles4th/Loaf
1a42fd7c1dc74a90231acfee0d65e235eb586ea3
[ "MIT" ]
2
2020-06-05T18:34:54.000Z
2022-02-10T11:23:33.000Z
config/settings/base.py
Charles4th/Loaf
1a42fd7c1dc74a90231acfee0d65e235eb586ea3
[ "MIT" ]
1
2018-08-07T08:49:28.000Z
2018-08-07T08:49:28.000Z
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (loaf/config/settings/base.py - 3 = loaf/) APPS_DIR = ROOT_DIR.path('loaf') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False) if READ_DOT_ENV_FILE: # OS env...
35.860068
98
0.638907
7b68728ebc04979f84a31686bb1041ceba69a9bc
7,997
py
Python
google/cloud/datastream/v1alpha1/datastream-v1alpha1-py/google/cloud/datastream/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/datastream/v1alpha1/datastream-v1alpha1-py/google/cloud/datastream/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/datastream/v1alpha1/datastream-v1alpha1-py/google/cloud/datastream/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
53.313333
100
0.850069
7de1e368c34a4bc63a8dfaa191b6cdfdd870e9a9
30,799
py
Python
st3/mdpopups/pygments/lexer.py
evandroforks/mdpopups
b32849c827182b35482f8b41b44a2e2166e2356a
[ "MIT" ]
109
2015-11-10T23:55:37.000Z
2022-02-18T00:56:21.000Z
st3/mdpopups/pygments/lexer.py
evandroforks/mdpopups
b32849c827182b35482f8b41b44a2e2166e2356a
[ "MIT" ]
117
2015-11-03T15:42:51.000Z
2022-02-13T17:13:21.000Z
st3/mdpopups/pygments/lexer.py
evandroforks/mdpopups
b32849c827182b35482f8b41b44a2e2166e2356a
[ "MIT" ]
24
2016-10-09T05:34:21.000Z
2022-02-05T11:51:36.000Z
# -*- coding: utf-8 -*- """ pygments.lexer ~~~~~~~~~~~~~~ Base lexer classes. :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import print_function import re import sys import time import itertools from .filter impor...
35.360505
86
0.531251
40bb0d26e229db1224055b556aaa3e0fa7177e4c
1,022
py
Python
clients/python/generated/test/test_swap_space_monitor_memory_usage2.py
PankTrue/swaggy-jenkins
aca35a7cca6e1fcc08bd399e05148942ac2f514b
[ "MIT" ]
23
2017-08-01T12:25:26.000Z
2022-01-25T03:44:11.000Z
clients/python/generated/test/test_swap_space_monitor_memory_usage2.py
PankTrue/swaggy-jenkins
aca35a7cca6e1fcc08bd399e05148942ac2f514b
[ "MIT" ]
35
2017-06-14T03:28:15.000Z
2022-02-14T10:25:54.000Z
clients/python/generated/test/test_swap_space_monitor_memory_usage2.py
PankTrue/swaggy-jenkins
aca35a7cca6e1fcc08bd399e05148942ac2f514b
[ "MIT" ]
11
2017-08-31T19:00:20.000Z
2021-12-19T12:04:12.000Z
# coding: utf-8 """ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification # noqa: E501 OpenAPI spec version: 1.0.1 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import swaggyjenk...
24.926829
116
0.740705
dce2ba86dfbc9a664dd0b27c5967fe44c8a0c84e
336
py
Python
model/__init__.py
xiaofei05/TSST
450d0d8c18002b50a50b4b642ace7769d476e889
[ "MIT" ]
6
2021-09-24T11:44:59.000Z
2022-03-21T08:29:35.000Z
model/__init__.py
xiaofei05/TSST
450d0d8c18002b50a50b4b642ace7769d476e889
[ "MIT" ]
2
2021-10-06T05:40:33.000Z
2022-02-17T15:18:54.000Z
model/__init__.py
xiaofei05/TSST
450d0d8c18002b50a50b4b642ace7769d476e889
[ "MIT" ]
null
null
null
from .TSST import TSST from .Criterion import Criterion from .DenseRetriever import DenseRetriever from .SparseRetriever import SparseRetriever from .Discriminator import Discriminator from .utils import get_seq_length, get_attn_mask, get_non_pad_mask from .Layers import Encoder, Decoder, Attention from .Scheduler imp...
37.333333
66
0.857143
bcce7781ad1e3c05291b5dab37da1386a482af99
7,760
py
Python
im2mesh/data/core.py
kitakou0313/differentiable_volumetric_rendering
886b0cce5fbd802f89642814bbbd58df3a997dff
[ "MIT" ]
595
2020-03-19T10:52:52.000Z
2022-03-27T11:31:20.000Z
im2mesh/data/core.py
kitakou0313/differentiable_volumetric_rendering
886b0cce5fbd802f89642814bbbd58df3a997dff
[ "MIT" ]
68
2020-03-25T22:15:53.000Z
2021-12-24T20:30:45.000Z
im2mesh/data/core.py
kitakou0313/differentiable_volumetric_rendering
886b0cce5fbd802f89642814bbbd58df3a997dff
[ "MIT" ]
80
2020-03-26T08:09:39.000Z
2022-03-22T08:00:20.000Z
import os import logging from torch.utils import data import numpy as np import yaml logger = logging.getLogger(__name__) # Fields class Field(object): ''' Data fields class. ''' def load(self, data_path, idx, category): ''' Loads a data point. Args: data_path (str): path to...
34.336283
116
0.528995
665d16b3bf0dc0e59b0ade6176b388d46e6dd744
3,198
py
Python
movie_rec_app/recommender.py
seira-cloud/heroku_flask
59831200830f3f7b4a90f344454da17d7c1e1511
[ "MIT" ]
null
null
null
movie_rec_app/recommender.py
seira-cloud/heroku_flask
59831200830f3f7b4a90f344454da17d7c1e1511
[ "MIT" ]
null
null
null
movie_rec_app/recommender.py
seira-cloud/heroku_flask
59831200830f3f7b4a90f344454da17d7c1e1511
[ "MIT" ]
null
null
null
''' File with function for the Movie Recommender ''' import pandas as pd import numpy as np from sklearn.decomposition import NMF def model_recommender(df): ''' Uses pd.Dataframe of user-item-matrix and cerates and trains a NMF model. Creates user-item-matrix(R), user feature matrix (P) and item feature m...
29.072727
100
0.650407
d4ac8a6222b415072df6dd20a24ae60151224ab7
51
py
Python
python/alm/__init__.py
jochym/ALM
6552b6d818c2cb83f90193ebba839fd85d6957f1
[ "MIT" ]
10
2017-01-12T21:18:36.000Z
2020-07-27T11:07:16.000Z
python/alm/__init__.py
jochym/ALM
6552b6d818c2cb83f90193ebba839fd85d6957f1
[ "MIT" ]
25
2018-04-24T07:32:17.000Z
2021-04-20T03:08:54.000Z
python/alm/__init__.py
jochym/ALM
6552b6d818c2cb83f90193ebba839fd85d6957f1
[ "MIT" ]
12
2016-11-08T22:56:38.000Z
2021-04-20T02:27:38.000Z
from .alm import ALM, optimizer_control_data_types
25.5
50
0.862745
c5d0634f601b448557e911af05f2afd54751a1af
30,060
py
Python
timm/models/gluon_resnet.py
cxxgtxy/pytorch-image-models
fe59249701fc03dde6ca3a138f154c377160b5fe
[ "Apache-2.0" ]
null
null
null
timm/models/gluon_resnet.py
cxxgtxy/pytorch-image-models
fe59249701fc03dde6ca3a138f154c377160b5fe
[ "Apache-2.0" ]
null
null
null
timm/models/gluon_resnet.py
cxxgtxy/pytorch-image-models
fe59249701fc03dde6ca3a138f154c377160b5fe
[ "Apache-2.0" ]
null
null
null
"""Pytorch impl of MxNet Gluon ResNet/(SE)ResNeXt variants This file evolved from https://github.com/pytorch/vision 'resnet.py' with (SE)-ResNeXt additions and ports of Gluon variations (https://github.com/dmlc/gluon-cv/blob/master/gluoncv/model_zoo/resnet.py) by Ross Wightman """ import math import torch import torc...
42.698864
165
0.685995
8fb16260aad7a3b33b861794ba0701e89c1bca7e
728
py
Python
sciencebeam_utils/utils/num.py
medecau/sciencebeam-utils
0253139f17c4208ccacdedf6d2c4eb2b062b7721
[ "MIT" ]
2
2019-07-17T14:53:07.000Z
2021-09-15T04:47:47.000Z
sciencebeam_utils/utils/num.py
medecau/sciencebeam-utils
0253139f17c4208ccacdedf6d2c4eb2b062b7721
[ "MIT" ]
108
2018-07-24T15:20:54.000Z
2022-03-28T16:57:39.000Z
sciencebeam_utils/utils/num.py
medecau/sciencebeam-utils
0253139f17c4208ccacdedf6d2c4eb2b062b7721
[ "MIT" ]
2
2020-02-07T10:58:48.000Z
2021-09-01T10:15:32.000Z
from six import raise_from import numpy as np def assert_close(a, b, atol=1.e-8): try: assert np.allclose([a], [b], atol=atol) except AssertionError as e: raise_from(AssertionError('expected %s to be close to %s (atol=%s)' % (a, b, atol)), e) def assert_all_close(a, b, atol=1.e-8): try:...
29.12
99
0.625
7dc3de9a66e420c1dbbca81664686e21551d4bf6
251
py
Python
URI 1079.py
Azefalo/Cluble-de-Programacao-UTFPR
f4a457bae36ac61378766035abc0633f5b3492db
[ "MIT" ]
1
2021-04-19T22:42:00.000Z
2021-04-19T22:42:00.000Z
URI 1079.py
Azefalo/Cluble-de-Programacao-UTFPR
f4a457bae36ac61378766035abc0633f5b3492db
[ "MIT" ]
null
null
null
URI 1079.py
Azefalo/Cluble-de-Programacao-UTFPR
f4a457bae36ac61378766035abc0633f5b3492db
[ "MIT" ]
null
null
null
# https://www.urionlinejudge.com.br/judge/en/problems/view/1079 qtde_num = int(input()) for i in range(qtde_num): n = input().split() n1 = float(n[0]) n2 = float(n[1]) n3 = float(n[2]) print(f"{(2*n1 + 3*n2 + 5*n3)/10:.1f}")
31.375
64
0.565737
be1f55fe6fe14c0e33b36867f02398cc83c2646d
47,406
py
Python
pyrulelearn/imli.py
meelgroup/MLIC
9e22c5e2317e9205f794ded093f7f057eac5f262
[ "MIT" ]
14
2018-11-27T20:06:07.000Z
2022-01-27T20:50:35.000Z
pyrulelearn/imli.py
meelgroup/MLIC
9e22c5e2317e9205f794ded093f7f057eac5f262
[ "MIT" ]
3
2019-09-20T12:41:31.000Z
2021-01-06T10:47:58.000Z
pyrulelearn/imli.py
meelgroup/MLIC
9e22c5e2317e9205f794ded093f7f057eac5f262
[ "MIT" ]
3
2019-09-11T22:25:05.000Z
2021-08-20T16:27:22.000Z
# Contact: Bishwamittra Ghosh [email: bghosh@u.nus.edu] import numpy as np import pandas as pd import warnings import math import random from tqdm import tqdm from time import time # warnings.simplefilter(action='ignore', category=FutureWarning) from sklearn.metrics import classification_report, accuracy_score ...
38.857377
209
0.549171
a87bf6dc17554fcd6ff2541f015acf77fce1fc54
1,218
py
Python
import-automation/import-progress-dashboard-api/app/service/import_attempt_database.py
fpernice-google/data
049b6c0c42364aa59af1966bc270521208cfdab7
[ "Apache-2.0" ]
25
2020-07-18T04:44:57.000Z
2022-03-03T14:44:20.000Z
import-automation/import-progress-dashboard-api/app/service/import_attempt_database.py
fpernice-google/data
049b6c0c42364aa59af1966bc270521208cfdab7
[ "Apache-2.0" ]
276
2020-05-09T00:57:50.000Z
2022-03-29T23:27:38.000Z
import-automation/import-progress-dashboard-api/app/service/import_attempt_database.py
fpernice-google/data
049b6c0c42364aa59af1966bc270521208cfdab7
[ "Apache-2.0" ]
59
2020-05-09T00:45:30.000Z
2022-03-28T16:03:53.000Z
# Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.230769
80
0.748768
09a03f2fa1d5219522f5531a6a6dd6acf3486c5c
1,318
py
Python
pdd_sdk/api/rest/DdkGoodsRecommendGet.py
ymj4023/pdd_sdk
a8ab114542e5f450b7ea32fb3c0564dfbb2f4e36
[ "MIT" ]
1
2020-07-07T06:47:15.000Z
2020-07-07T06:47:15.000Z
pdd_sdk/api/rest/DdkGoodsRecommendGet.py
ymj4023/pdd_sdk
a8ab114542e5f450b7ea32fb3c0564dfbb2f4e36
[ "MIT" ]
null
null
null
pdd_sdk/api/rest/DdkGoodsRecommendGet.py
ymj4023/pdd_sdk
a8ab114542e5f450b7ea32fb3c0564dfbb2f4e36
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ DdkGoodsRecommendGet.py: https://open.pinduoduo.com/application/document/api?id=pdd.ddk.goods.recommend.get 多多进宝商品推荐API """ from pdd_sdk.api.base import RestApi class DdkGoodsRecommendGet(RestApi): def __init__(self, domain='gw-api.pinduoduo.com', port=80): RestApi.__init__(s...
36.611111
103
0.674507
5f93734935c2921015871941246fc06864489de6
7,531
py
Python
BaseTools/Source/Python/GenFds/CapsuleData.py
changeworld/mu_basecore
1a883ec85d8d2f49663c76e1a1bc5068333f5508
[ "BSD-2-Clause" ]
null
null
null
BaseTools/Source/Python/GenFds/CapsuleData.py
changeworld/mu_basecore
1a883ec85d8d2f49663c76e1a1bc5068333f5508
[ "BSD-2-Clause" ]
null
null
null
BaseTools/Source/Python/GenFds/CapsuleData.py
changeworld/mu_basecore
1a883ec85d8d2f49663c76e1a1bc5068333f5508
[ "BSD-2-Clause" ]
1
2021-11-01T19:33:11.000Z
2021-11-01T19:33:11.000Z
## @file # generate capsule # # Copyright (c) 2007-2018, Intel Corporation. All rights reserved.<BR> # # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be ...
30.613821
144
0.551852
0adbfdf20b846cd9227896384571976d9249ec96
8,760
py
Python
src/quilla/steps/base_steps.py
microsoft/quilla
79eb50aeff3a01a20488b2de17db1e8465d67014
[ "MIT" ]
55
2021-06-30T15:13:36.000Z
2021-11-22T03:52:56.000Z
src/quilla/steps/base_steps.py
microsoft/quilla
79eb50aeff3a01a20488b2de17db1e8465d67014
[ "MIT" ]
25
2021-06-29T22:20:59.000Z
2021-07-30T15:13:08.000Z
src/quilla/steps/base_steps.py
microsoft/quilla
79eb50aeff3a01a20488b2de17db1e8465d67014
[ "MIT" ]
4
2021-07-17T18:15:42.000Z
2021-09-24T16:03:50.000Z
from typing import ( Optional, Callable, Dict, Any, TYPE_CHECKING, ) from abc import abstractclassmethod, abstractmethod from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.common.by import By from quilla.rep...
33.692308
99
0.629224
d44cd8032a8e6a82d12aea769feecbe4dea424e4
287
py
Python
posts/urls.py
wendell1101/Learning-Management-System
1c5d418e367570be1bb267813e1e07b60157cef5
[ "MIT" ]
3
2020-09-25T04:33:58.000Z
2020-10-27T14:51:58.000Z
posts/urls.py
wendell1101/Learning-Management-System
1c5d418e367570be1bb267813e1e07b60157cef5
[ "MIT" ]
10
2020-06-11T13:24:27.000Z
2022-03-12T00:34:39.000Z
posts/urls.py
wendell1101/Learning-Management-System
1c5d418e367570be1bb267813e1e07b60157cef5
[ "MIT" ]
1
2021-07-09T17:59:01.000Z
2021-07-09T17:59:01.000Z
from django.urls import path from .import views urlpatterns = [ path('post-create/',views.post_create, name='create-post'), path('post-update/<int:post_id>/',views.post_update, name='update-post'), path('post-delete/<int:post_id>/',views.post_delete, name='delete-post'), ]
31.888889
77
0.703833
d63ac141d36a5eb599c308b5f311d7e64ebed2e0
2,368
py
Python
src/data/scrape_news.py
leudom/german-fake-news-classifier
a0b5f46465c50a7afda29b15a83b016472d003f3
[ "MIT" ]
null
null
null
src/data/scrape_news.py
leudom/german-fake-news-classifier
a0b5f46465c50a7afda29b15a83b016472d003f3
[ "MIT" ]
null
null
null
src/data/scrape_news.py
leudom/german-fake-news-classifier
a0b5f46465c50a7afda29b15a83b016472d003f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os from dotenv import find_dotenv, load_dotenv import pandas as pd from newspaper import Article # Functions def extract_title(url): article = Article(url) try: article.download() logger.info('Article title downloaded from %s' % url) artic...
29.6
74
0.596706
edcce6d6fd056054917268c3867a90475e2e59b2
15,411
py
Python
buffalo/algo/base.py
DragonCP/buffalo
190e7a37404d814eb179bcf7ebd6352aa3d3d99a
[ "Apache-2.0" ]
null
null
null
buffalo/algo/base.py
DragonCP/buffalo
190e7a37404d814eb179bcf7ebd6352aa3d3d99a
[ "Apache-2.0" ]
null
null
null
buffalo/algo/base.py
DragonCP/buffalo
190e7a37404d814eb179bcf7ebd6352aa3d3d99a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import abc import json import pickle import struct import logging import datetime import numpy as np import tensorflow as tf tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) from tensorflow.keras.utils import Progbar # what the......
38.5275
140
0.567387
658f60c07beb936c3abdea9595c3ff86375a970f
11,361
py
Python
Launchpad95/Launchpad.py
bourdalas/KeypadOpen
a1bc0de6c08a6c6cc99182bc7b190717a95e2a63
[ "MIT" ]
null
null
null
Launchpad95/Launchpad.py
bourdalas/KeypadOpen
a1bc0de6c08a6c6cc99182bc7b190717a95e2a63
[ "MIT" ]
null
null
null
Launchpad95/Launchpad.py
bourdalas/KeypadOpen
a1bc0de6c08a6c6cc99182bc7b190717a95e2a63
[ "MIT" ]
1
2019-09-19T00:06:53.000Z
2019-09-19T00:06:53.000Z
from __future__ import with_statement import Live from _Framework.ControlSurface import ControlSurface from _Framework.InputControlElement import MIDI_CC_TYPE, MIDI_NOTE_TYPE from _Framework.ButtonElement import ButtonElement from _Framework.ButtonMatrixElement import ButtonMatrixElement from ConfigurableButtonElement ...
41.615385
170
0.747469
2446f6674516633db88a9783d71f553aa4e26438
1,094
py
Python
ingestion/src/metadata/ingestion/models/ometa_tag_category.py
TeddyCr/OpenMetadata
9e11ad54d99a3317c27c101269768e7aa2c6eb5f
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/models/ometa_tag_category.py
TeddyCr/OpenMetadata
9e11ad54d99a3317c27c101269768e7aa2c6eb5f
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/models/ometa_tag_category.py
TeddyCr/OpenMetadata
9e11ad54d99a3317c27c101269768e7aa2c6eb5f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Collate # 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...
37.724138
75
0.794333
3f69ab9ca4d1459551ff4553f8a0a28036bc6711
12,960
py
Python
imcsdk/mometa/storage/StorageVirtualDriveCreatorUsingUnusedPhysicalDrive.py
ecoen66/imcsdk
b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab
[ "Apache-2.0" ]
31
2016-06-14T07:23:59.000Z
2021-09-12T17:17:26.000Z
imcsdk/mometa/storage/StorageVirtualDriveCreatorUsingUnusedPhysicalDrive.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
109
2016-05-25T03:56:56.000Z
2021-10-18T02:58:12.000Z
imcsdk/mometa/storage/StorageVirtualDriveCreatorUsingUnusedPhysicalDrive.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
67
2016-05-17T05:53:56.000Z
2022-03-24T15:52:53.000Z
"""This module contains the general information for StorageVirtualDriveCreatorUsingUnusedPhysicalDrive ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class StorageVirtualDriveCreatorUsingUnusedPhysicalDriveConsts: ACCESS_P...
68.571429
305
0.65787
5cba64d6178677a1c3adc3d747f26ec05f077de6
2,820
py
Python
tests/algorithms/test_numerical_mechanisms.py
dvadym/PyDP
c004d8766f0672f40102c323ab8fe22ab905c410
[ "Apache-2.0" ]
null
null
null
tests/algorithms/test_numerical_mechanisms.py
dvadym/PyDP
c004d8766f0672f40102c323ab8fe22ab905c410
[ "Apache-2.0" ]
null
null
null
tests/algorithms/test_numerical_mechanisms.py
dvadym/PyDP
c004d8766f0672f40102c323ab8fe22ab905c410
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest import pydp.algorithms.numerical_mechanisms as num_mech from scipy.special import erfinv REL_ERR_TOL = 1e-5 def assert_almost_eq(val_true, val_pred): return np.abs((val_true - val_pred) / val_true) < REL_ERR_TOL def test_basic(): num_mech_methods = { "add_noise", ...
33.176471
75
0.698936
715c7bf100f6062608fe7f175f68e8b94d0c8add
3,056
py
Python
pytext/builtin_task.py
kartikeya1994/pytext
cbcaa37b3bb20dee7a6997ea847e50c488e56a57
[ "BSD-3-Clause" ]
null
null
null
pytext/builtin_task.py
kartikeya1994/pytext
cbcaa37b3bb20dee7a6997ea847e50c488e56a57
[ "BSD-3-Clause" ]
null
null
null
pytext/builtin_task.py
kartikeya1994/pytext
cbcaa37b3bb20dee7a6997ea847e50c488e56a57
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import glob import importlib import inspect import os from pytext.config.component import register_tasks from pytext.task.disjoint_multitask import DisjointMultitask, NewDisjointMultitask from pytext.task.new_task import New...
30.257426
82
0.658704
1ded1889b358e2a992891f8a7d0420fbc6ff98f0
1,696
py
Python
setup.py
bioinform/somaticseq
71f058dcdfea78ec056aa46f96a40cc737cc559f
[ "BSD-2-Clause" ]
159
2015-07-26T15:14:44.000Z
2022-03-31T03:29:25.000Z
setup.py
bioinform/somaticseq
71f058dcdfea78ec056aa46f96a40cc737cc559f
[ "BSD-2-Clause" ]
77
2016-06-12T21:44:43.000Z
2022-03-31T19:33:49.000Z
setup.py
bioinform/somaticseq
71f058dcdfea78ec056aa46f96a40cc737cc559f
[ "BSD-2-Clause" ]
64
2015-10-26T01:34:32.000Z
2022-03-14T14:43:08.000Z
#!/usr/bin/env python3 from setuptools import setup, find_packages from somaticseq._version import __version__ as version print(version) setup( name='SomaticSeq', version=version, description='SomaticSeq: An ensemble approach to accurately detect somatic mutations using SomaticSeq', author='Li Tai F...
43.487179
107
0.680425
c5a0c08c2fcca06765fc435ba0cc47a7e60095a1
1,534
py
Python
sqlserver/tests/conftest.py
vcabbage/integrations-core
449aa06adbb2f37072336fc71c50a4b5385cfd8f
[ "BSD-3-Clause" ]
null
null
null
sqlserver/tests/conftest.py
vcabbage/integrations-core
449aa06adbb2f37072336fc71c50a4b5385cfd8f
[ "BSD-3-Clause" ]
null
null
null
sqlserver/tests/conftest.py
vcabbage/integrations-core
449aa06adbb2f37072336fc71c50a4b5385cfd8f
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os from copy import deepcopy import pytest from datadog_checks.dev import WaitFor, docker_run from .common import ( DOCKER_SERVER, FULL_E2E_CONFIG, HERE, INIT_CONFIG, INIT_CO...
20.184211
118
0.720339
42f404815c048675c49adf10b5fbbc647a517568
12,227
py
Python
displays/hd44780.py
jelinj8/pydPiper
afe742275cdbf52988a46c9e1ee9aab0d369a8c8
[ "MIT" ]
72
2017-03-13T11:01:01.000Z
2021-11-29T20:53:53.000Z
displays/hd44780.py
jelinj8/pydPiper
afe742275cdbf52988a46c9e1ee9aab0d369a8c8
[ "MIT" ]
126
2017-03-13T16:06:59.000Z
2022-03-27T14:14:49.000Z
displays/hd44780.py
jelinj8/pydPiper
afe742275cdbf52988a46c9e1ee9aab0d369a8c8
[ "MIT" ]
41
2017-10-11T18:37:50.000Z
2021-06-18T17:02:45.000Z
#!/usr/bin/python # coding: UTF-8 # Driver for HD44780 LCD display on the RPi # Written by: Ron Ritchey # Derived from Lardconcepts # https://gist.github.com/lardconcepts/4947360 # Which was also drived from Adafruit # http://forums.adafruit.com/viewtopic.php?f=8&t=29207&start=15#p163445 # # Useful references # Genera...
29.968137
135
0.674818
c99b75354d4f3871383869a1d743cfa9e80030f7
1,361
py
Python
src/probnum/filtsmooth/_gaussfiltsmooth/_stoppingcriterion.py
christopheroates/probnum
4ae63da307bd7279c3ce477ef68cbd0b8e30c73a
[ "MIT" ]
226
2019-11-01T09:44:09.000Z
2022-03-30T23:17:17.000Z
src/probnum/filtsmooth/_gaussfiltsmooth/_stoppingcriterion.py
christopheroates/probnum
4ae63da307bd7279c3ce477ef68cbd0b8e30c73a
[ "MIT" ]
590
2019-11-21T08:32:30.000Z
2022-03-31T12:37:37.000Z
src/probnum/filtsmooth/_gaussfiltsmooth/_stoppingcriterion.py
christopheroates/probnum
4ae63da307bd7279c3ce477ef68cbd0b8e30c73a
[ "MIT" ]
39
2020-01-13T16:29:45.000Z
2022-03-28T16:16:54.000Z
"""Stopping criteria for iterated filtering and smoothing.""" import numpy as np class StoppingCriterion: """Stop iteration if absolute and relative tolerance are reached.""" def __init__(self, atol=1e-3, rtol=1e-6, maxit=1000): self.atol = atol self.rtol = rtol self.maxit = maxit ...
35.815789
88
0.634093
5560711622d4b18283ed2269744e10f24225f013
3,337
py
Python
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/cancel_grant_request.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/cancel_grant_request.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/cancel_grant_request.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class CancelGrantRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value...
25.090226
74
0.546299
a761443823f93f9dfcbb30a70443ced3bcd1909f
31,491
py
Python
python files/stokesletsInPipe.py
Van314159/Stokeslet-between-two-parallel-plate
3a1a58876e92fdc7a1e2e8cb789547ffd92d91d2
[ "MIT" ]
null
null
null
python files/stokesletsInPipe.py
Van314159/Stokeslet-between-two-parallel-plate
3a1a58876e92fdc7a1e2e8cb789547ffd92d91d2
[ "MIT" ]
null
null
null
python files/stokesletsInPipe.py
Van314159/Stokeslet-between-two-parallel-plate
3a1a58876e92fdc7a1e2e8cb789547ffd92d91d2
[ "MIT" ]
null
null
null
import numpy as np from scipy.io import loadmat from scipy.special import kv, iv from numpy import pi, real, imag, exp, sqrt, sum, sin, cos # see Liron, N., and R. Shahar. "Stokes flow due to a Stokeslet in a pipe." Journal of Fluid Mechanics 86.04 (1978): 727-744. # class containing functions for detailed expression...
72.393103
204
0.398273
7dc8a9b99d6d8552f406c2b41d6cda01e87785dd
8,158
py
Python
pybind/nos/v7_1_0/interface/fortygigabitethernet/switchport/access_mac_group_rspan_vlan_classification/access/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/interface/fortygigabitethernet/switchport/access_mac_group_rspan_vlan_classification/access/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/interface/fortygigabitethernet/switchport/access_mac_group_rspan_vlan_classification/access/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
64.746032
995
0.727139
5e7fc723cc416d9dbeb9bfdc1762cb69fa1c3e9d
5,427
py
Python
homeassistant/components/pi_hole/__init__.py
jgrob1/core
b1444ffefb47c99fddf2a25b96de2b4f0313faa0
[ "Apache-2.0" ]
null
null
null
homeassistant/components/pi_hole/__init__.py
jgrob1/core
b1444ffefb47c99fddf2a25b96de2b4f0313faa0
[ "Apache-2.0" ]
null
null
null
homeassistant/components/pi_hole/__init__.py
jgrob1/core
b1444ffefb47c99fddf2a25b96de2b4f0313faa0
[ "Apache-2.0" ]
null
null
null
"""The pi_hole component.""" import asyncio import logging from hole import Hole from hole.exceptions import HoleError import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT from homeassistant.const import ( CONF_API_KEY, CONF_HOST, CONF_NAME, CONF_SSL, CONF_VERIFY_SSL, ) ...
27.688776
88
0.646398
5f42237927fdbed504d865c8433fceeb87c3759f
9,213
py
Python
filtering-and-analysis/Python/allocators.py
sola-st/WasmBench
4e0bf40c35aad2084591c8fd3411ae1d570767af
[ "MIT" ]
15
2020-12-01T19:47:05.000Z
2022-03-09T13:07:10.000Z
filtering-and-analysis/Python/allocators.py
sola-st/WasmBench
4e0bf40c35aad2084591c8fd3411ae1d570767af
[ "MIT" ]
null
null
null
filtering-and-analysis/Python/allocators.py
sola-st/WasmBench
4e0bf40c35aad2084591c8fd3411ae1d570767af
[ "MIT" ]
3
2021-06-06T22:33:22.000Z
2022-02-18T07:32:17.000Z
#!/usr/bin/env python3 import json import re from collections import Counter, defaultdict import matplotlib.pyplot as plt import figure_tools as ft from print_distribution import print_distribution print('Loading data...') with open('filtered.json') as f: data = json.load(f) print('Loading memory info...') with...
39.204255
182
0.710626
6a888511fc49f445b058d23d5434b603080c1132
157
py
Python
onlineassessmentsystem/blog/admin.py
nevilparmar11/SDP_Online_Assessment_System
012a1ec7dfca2973a5e03b0f970394cfa674b61e
[ "MIT" ]
2
2021-05-22T15:44:19.000Z
2021-05-22T17:59:58.000Z
onlineassessmentsystem/blog/admin.py
jwalit21/SDP_Online_Assessment_System
a778a0e0ae264fe74037a5f0b210d205ebc18d98
[ "MIT" ]
7
2021-01-18T06:06:38.000Z
2021-03-03T15:09:17.000Z
onlineassessmentsystem/blog/admin.py
jwalit21/SDP_Online_Assessment_System
a778a0e0ae264fe74037a5f0b210d205ebc18d98
[ "MIT" ]
2
2021-03-05T12:28:28.000Z
2021-05-24T16:10:07.000Z
from django.contrib import admin from django.contrib.auth.models import User from .models import Blog # Register your models here. admin.site.register(Blog)
26.166667
43
0.815287
53a9a004f9794b199bb019297b61634be50d4115
44,313
py
Python
pyscf/mcscf/casci.py
lantrann/pyscf
3b52007b79a991d850b08b988f0b75570e1f6e8c
[ "Apache-2.0" ]
2
2021-08-03T12:32:25.000Z
2021-09-29T08:19:02.000Z
pyscf/mcscf/casci.py
lantrann/pyscf
3b52007b79a991d850b08b988f0b75570e1f6e8c
[ "Apache-2.0" ]
null
null
null
pyscf/mcscf/casci.py
lantrann/pyscf
3b52007b79a991d850b08b988f0b75570e1f6e8c
[ "Apache-2.0" ]
2
2020-06-01T05:31:38.000Z
2022-02-08T02:38:33.000Z
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
40.841475
110
0.606278
363c06fe6a1926ffee777490606fe1baa888334c
1,444
py
Python
pxr/base/plug/testenv/TestPlugModule3__init__.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
3,680
2016-07-26T18:28:11.000Z
2022-03-31T09:55:05.000Z
pxr/base/plug/testenv/TestPlugModule3__init__.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
1,759
2016-07-26T19:19:59.000Z
2022-03-31T21:24:00.000Z
pxr/base/plug/testenv/TestPlugModule3__init__.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
904
2016-07-26T18:33:40.000Z
2022-03-31T09:55:16.000Z
# # Copyright 2016 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # # 6. Trademarks. T...
41.257143
74
0.776316
10994d6b64b1dc8928ea4ca16a4dc351664b368c
662
py
Python
labo/db_secret.py
shotastage/neco-sys
60816ceee3eaf36d8d278db72e741d45c3f4af41
[ "MIT" ]
null
null
null
labo/db_secret.py
shotastage/neco-sys
60816ceee3eaf36d8d278db72e741d45c3f4af41
[ "MIT" ]
10
2020-02-12T00:37:45.000Z
2022-03-03T21:58:40.000Z
labo/db_secret.py
shotastage/neco-sys
60816ceee3eaf36d8d278db72e741d45c3f4af41
[ "MIT" ]
null
null
null
import os, sys try: if "postgres://" in os.environ["DATABASE_URL"]: import dj_database_url database_setting = { 'default': dj_database_url.config(default=os.environ["DATABASE_URL"]) } else: database_setting = { 'default': { 'ENGINE': 'd...
26.48
81
0.516616
968a8b7193cecaf0d66651d46c9591d99378c97c
404
py
Python
Back/migrations/0013_auto_20181111_1511.py
Alonso-Arias/misPerris2019
9e1649839f498dc2ad78e685ab7bef0683de3b73
[ "MIT" ]
null
null
null
Back/migrations/0013_auto_20181111_1511.py
Alonso-Arias/misPerris2019
9e1649839f498dc2ad78e685ab7bef0683de3b73
[ "MIT" ]
14
2019-12-05T01:02:44.000Z
2022-03-12T00:06:57.000Z
Back/migrations/0013_auto_20181111_1511.py
Alonso-Arias/misPerris2019
9e1649839f498dc2ad78e685ab7bef0683de3b73
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-11-11 18:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Back', '0012_auto_20181111_1511'), ] operations = [ migrations.AlterField( model_name='mascota', name='imgMascota', ...
21.263158
66
0.606436
5d98a2d175e0938c4834524c643df16b1773b340
5,130
py
Python
airflow/providers/google/cloud/transfers/mysql_to_gcs.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
1
2019-05-07T06:46:55.000Z
2019-05-07T06:46:55.000Z
airflow/providers/google/cloud/transfers/mysql_to_gcs.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
7
2021-06-28T20:24:56.000Z
2022-02-26T02:01:36.000Z
airflow/providers/google/cloud/transfers/mysql_to_gcs.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
1
2019-06-15T08:38:53.000Z
2019-06-15T08:38:53.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
36.906475
88
0.646004
c06c99e73af50e9f63a4c57fa1baed584719f962
9,277
py
Python
pebble_tool/commands/sdk/project/debug.py
tulth/pebble-tool
8b4771bbd7f8dacc8cbe776aaaf0aa704e152f9f
[ "MIT" ]
24
2015-07-25T07:36:23.000Z
2020-11-05T13:55:06.000Z
pebble_tool/commands/sdk/project/debug.py
tulth/pebble-tool
8b4771bbd7f8dacc8cbe776aaaf0aa704e152f9f
[ "MIT" ]
21
2015-08-11T19:55:57.000Z
2020-05-01T14:07:45.000Z
pebble_tool/commands/sdk/project/debug.py
tulth/pebble-tool
8b4771bbd7f8dacc8cbe776aaaf0aa704e152f9f
[ "MIT" ]
39
2015-10-04T06:21:52.000Z
2021-12-22T00:36:34.000Z
from __future__ import absolute_import, print_function, division __author__ = 'katharine' from six import iteritems import collections import os import signal import subprocess from libpebble2.exceptions import TimeoutError from libpebble2.protocol.apps import AppRunState, AppRunStateRequest, AppRunStateStart from ...
48.067358
117
0.619597
b5e565e8270b9238ed467bef262bc8f281631cfa
1,170
py
Python
A3CAgent/helpers.py
GVGAutomata/GVGAI_GYM_A3C
36fdf74e4a5747f2b4c52c73c39025f3adda8fee
[ "Apache-2.0" ]
1
2020-07-30T19:29:06.000Z
2020-07-30T19:29:06.000Z
helpers.py
pasindubawantha/just-copy
919b1723c87cadc5946f891da53f4abc7d50ff6e
[ "Apache-2.0" ]
null
null
null
helpers.py
pasindubawantha/just-copy
919b1723c87cadc5946f891da53f4abc7d50ff6e
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import scipy.signal import numpy as np def update_target_graph(from_scope,to_scope): from_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, from_scope) to_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, to_scope) op_holder = [] for from_var,to_var in zip(fr...
34.411765
79
0.707692