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
766aabca8ded1833740d64e0a0444184a722c075
1,660
py
Python
app/core/tests/test_admin.py
Chinmay-395/recipe-app-api
76a6436ec3191b6d21986f627471606ae64bb357
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
Chinmay-395/recipe-app-api
76a6436ec3191b6d21986f627471606ae64bb357
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
Chinmay-395/recipe-app-api
76a6436ec3191b6d21986f627471606ae64bb357
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): """ it is is a function that is ran before every test """ self.client = Client() self.admin_user = get_user_mo...
36.086957
69
0.615663
4bdaef7a74ca18d0e7ce0ccad9d5a5b82619fd37
20,210
py
Python
tests/python/contrib/test_ethosu/infra.py
cli99/tvm
6c6e873a1325a32418108daad6e38f3df8c37660
[ "Apache-2.0" ]
null
null
null
tests/python/contrib/test_ethosu/infra.py
cli99/tvm
6c6e873a1325a32418108daad6e38f3df8c37660
[ "Apache-2.0" ]
null
null
null
tests/python/contrib/test_ethosu/infra.py
cli99/tvm
6c6e873a1325a32418108daad6e38f3df8c37660
[ "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...
30.29985
108
0.653488
94f913efc0c68f367c79b42ef46760b594f8d2c2
2,802
py
Python
scripts/kernel_config_parser.py
jbauman42/bob-build
acf70b912e6b0af30a856ac94ad0aae299444419
[ "Apache-2.0" ]
1
2021-07-03T23:48:05.000Z
2021-07-03T23:48:05.000Z
scripts/kernel_config_parser.py
jbauman42/bob-build
acf70b912e6b0af30a856ac94ad0aae299444419
[ "Apache-2.0" ]
null
null
null
scripts/kernel_config_parser.py
jbauman42/bob-build
acf70b912e6b0af30a856ac94ad0aae299444419
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Arm Limited. # SPDX-License-Identifier: Apache-2.0 # # 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...
31.133333
93
0.66631
7a55f86cde27e0aa796cad4bd9f4679339b1e7eb
40,340
py
Python
awx/settings/defaults.py
Xiol/awx
80a17987ff636c6750edf20a67c99e27f99fcccd
[ "Apache-2.0" ]
null
null
null
awx/settings/defaults.py
Xiol/awx
80a17987ff636c6750edf20a67c99e27f99fcccd
[ "Apache-2.0" ]
null
null
null
awx/settings/defaults.py
Xiol/awx
80a17987ff636c6750edf20a67c99e27f99fcccd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. import os import re # noqa import sys from datetime import timedelta from celery.schedules import crontab # global settings from django.conf import global_settings # ugettext lazy from django.utils.translation import ugettext_lazy as _ # Update this module's...
33.147083
89
0.666832
ac8b7b1ce6fd4cb2826df13af5f8c85b5c4169a1
173,371
py
Python
nova/tests/virt/xenapi/test_xenapi.py
bopopescu/nested_quota
6d8443287e29c2c9e03cd4e5c5757424314280ad
[ "Apache-2.0" ]
1
2015-11-25T10:18:22.000Z
2015-11-25T10:18:22.000Z
nova/tests/virt/xenapi/test_xenapi.py
bopopescu/nested_quota
6d8443287e29c2c9e03cd4e5c5757424314280ad
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/tests/virt/xenapi/test_xenapi.py
bopopescu/nested_quota
6d8443287e29c2c9e03cd4e5c5757424314280ad
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright (c) 2010 Citrix Systems, 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 applicab...
42.388998
79
0.599443
a69d585fab8eb70c138a43596cbea29f0663dff6
32,340
py
Python
saleor/graphql/product/types/products.py
GvS666/saleor
f482f7162a966acc58057fdff6fd7eae68aa4a21
[ "CC-BY-4.0" ]
1
2020-11-13T14:25:51.000Z
2020-11-13T14:25:51.000Z
saleor/graphql/product/types/products.py
GvS666/saleor
f482f7162a966acc58057fdff6fd7eae68aa4a21
[ "CC-BY-4.0" ]
13
2021-02-02T22:59:20.000Z
2022-03-12T00:36:53.000Z
saleor/graphql/product/types/products.py
GvS666/saleor
f482f7162a966acc58057fdff6fd7eae68aa4a21
[ "CC-BY-4.0" ]
null
null
null
from dataclasses import asdict from typing import List, Union import graphene import graphene_django_optimizer as gql_optimizer from django.db.models import Prefetch from graphene import relay from graphene_federation import key from graphql.error import GraphQLError from ....core.permissions import ProductPermission...
35.499451
88
0.675232
f4cd140ec3bbb68040d45159323e479b9d92e426
8,490
py
Python
openselfsup/models/necks.py
bin20192019/OpenSelfSup
6891da7612b9ddfbd06beb7ffad3592513d190bb
[ "Apache-2.0" ]
2
2020-06-23T14:28:24.000Z
2020-06-23T14:28:31.000Z
openselfsup/models/necks.py
Yipeng-Sun/OpenSelfSup
55af4e9ba1934e1e1c18f208481db97ed507db76
[ "Apache-2.0" ]
null
null
null
openselfsup/models/necks.py
Yipeng-Sun/OpenSelfSup
55af4e9ba1934e1e1c18f208481db97ed507db76
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from distutils.version import StrictVersion from mmcv.cnn import kaiming_init, normal_init from .registry import NECKS from .utils import build_norm_layer @NECKS.register_module class LinearNeck(nn.Module): def __init__(self, in_channels, out_channels, with_avg_pool=True): ...
36.437768
94
0.560777
9628e35d2c3e438f9c2a9a4704b129e5e7a3b650
4,176
py
Python
icevision/parsers/voc_parser.py
Addono/icevision
5207de65f780735bdf8ed9d4d01ce72ad852aa9c
[ "Apache-2.0" ]
null
null
null
icevision/parsers/voc_parser.py
Addono/icevision
5207de65f780735bdf8ed9d4d01ce72ad852aa9c
[ "Apache-2.0" ]
null
null
null
icevision/parsers/voc_parser.py
Addono/icevision
5207de65f780735bdf8ed9d4d01ce72ad852aa9c
[ "Apache-2.0" ]
1
2021-03-20T16:54:45.000Z
2021-03-20T16:54:45.000Z
__all__ = ["voc", "VocXmlParser", "VocMaskParser"] import xml.etree.ElementTree as ET from icevision.imports import * from icevision.utils import * from icevision.core import * from icevision.parsers.parser import * from icevision.parsers.defaults import * from icevision.parsers.mixins import * def voc( annotati...
30.26087
84
0.612308
347534963123a3e9a56866b756814c55afd74e11
6,833
py
Python
Traveling_Salesperson/genSalesperson.py
Wason1797/Fun-Python
1432aec98423f13cc228c34c53bdb19ba4efe1da
[ "MIT" ]
11
2018-11-21T19:34:48.000Z
2019-01-13T04:30:44.000Z
Traveling_Salesperson/genSalesperson.py
Wason1797/Fun-Python
1432aec98423f13cc228c34c53bdb19ba4efe1da
[ "MIT" ]
null
null
null
Traveling_Salesperson/genSalesperson.py
Wason1797/Fun-Python
1432aec98423f13cc228c34c53bdb19ba4efe1da
[ "MIT" ]
null
null
null
import pygame import sys from pygame.locals import * import random as rd import math as mt BLACK = (0, 0, 0) RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) WHITE = (255, 255, 255) pygame.init() pygame.font.init() window = pygame.display.set_mode((700, 500), 0, 32) pygame.display.set_caption('Traveling Sale...
31.344037
133
0.610566
e2d2f1bcbfe013b282d95daa72fb77f9b1a86141
757
py
Python
acme_test.py
stefanoruiz/acme
027dbcbab797aac7272b63f07aeccbc6f6d936ed
[ "MIT" ]
null
null
null
acme_test.py
stefanoruiz/acme
027dbcbab797aac7272b63f07aeccbc6f6d936ed
[ "MIT" ]
null
null
null
acme_test.py
stefanoruiz/acme
027dbcbab797aac7272b63f07aeccbc6f6d936ed
[ "MIT" ]
null
null
null
import unittest from acme import Product from acme_report import generate_products, ADJECTIVES, NOUNS class AcmeProductTests(unittest.TestCase): """Making sure Acme products are the tops!""" def test_default_product_price(self): """Test default product price being 10.""" prod = Product('Test P...
28.037037
60
0.676354
a9bdb0b80954ff5e2bf48ea98c59a51d8e5665e8
11,397
py
Python
test/test_lsh.py
andriyor/datasketch
ec36c20caeda6a1fbcbefcd92161bb9d2a8b8d78
[ "MIT" ]
null
null
null
test/test_lsh.py
andriyor/datasketch
ec36c20caeda6a1fbcbefcd92161bb9d2a8b8d78
[ "MIT" ]
null
null
null
test/test_lsh.py
andriyor/datasketch
ec36c20caeda6a1fbcbefcd92161bb9d2a8b8d78
[ "MIT" ]
null
null
null
import unittest import pickle import numpy as np import mockredis from mock import patch from datasketch.lsh import MinHashLSH from datasketch.minhash import MinHash from datasketch.weighted_minhash import WeightedMinHashGenerator def fake_redis(**kwargs): redis = mockredis.mock_redis_client(**kwargs) redis.c...
34.432024
77
0.548741
98f5ce526a5e55dda9761a579a504359b4349cc7
4,141
py
Python
tests/modeltests/m2m_recursive/models.py
rawwell/django
6b3264671ead4604f26cbd2b71e8d6a02945bf0c
[ "BSD-3-Clause" ]
1
2016-05-08T12:24:22.000Z
2016-05-08T12:24:22.000Z
tests/modeltests/m2m_recursive/models.py
rawwell/django
6b3264671ead4604f26cbd2b71e8d6a02945bf0c
[ "BSD-3-Clause" ]
null
null
null
tests/modeltests/m2m_recursive/models.py
rawwell/django
6b3264671ead4604f26cbd2b71e8d6a02945bf0c
[ "BSD-3-Clause" ]
1
2015-11-19T14:45:16.000Z
2015-11-19T14:45:16.000Z
""" 28. Many-to-many relationships between the same two tables In this example, A Person can have many friends, who are also people. Friendship is a symmetrical relationship - if I am your friend, you are my friend. A person can also have many idols - but while I may idolize you, you may not think the same of me. 'Id...
21.455959
86
0.665298
f41cc159541442b91f30c2fbba895ae7afe0576e
14,254
py
Python
manimlib/mobject/svg/code_mobject.py
adornetejr/manim
e0715ceeff4778d11ef4ac31f8f8f2b56a2187ad
[ "MIT" ]
8
2021-09-25T06:00:53.000Z
2022-03-12T03:31:04.000Z
manimlib/mobject/svg/code_mobject.py
adornetejr/manim
e0715ceeff4778d11ef4ac31f8f8f2b56a2187ad
[ "MIT" ]
1
2020-07-27T01:15:41.000Z
2020-07-27T01:15:41.000Z
manimlib/mobject/svg/code_mobject.py
adornetejr/manim
e0715ceeff4778d11ef4ac31f8f8f2b56a2187ad
[ "MIT" ]
1
2020-11-19T06:24:49.000Z
2020-11-19T06:24:49.000Z
import html from manimlib.constants import * from manimlib.container.container import Container from manimlib.mobject.geometry import Rectangle, Dot, RoundedRectangle from manimlib.mobject.shape_matchers import SurroundingRectangle from manimlib.mobject.svg.text_mobject import Paragraph from manimlib.mobject.type...
45.832797
120
0.553459
f7d2deebe80a7c830aaf677e6fac86bcee59cbd0
210
py
Python
0171_ExcelSheetColumnNumber.py
yingzhuo1994/LeetCode
636eef90867d21e3439d258ec99fbb8e5ad5a742
[ "MIT" ]
null
null
null
0171_ExcelSheetColumnNumber.py
yingzhuo1994/LeetCode
636eef90867d21e3439d258ec99fbb8e5ad5a742
[ "MIT" ]
null
null
null
0171_ExcelSheetColumnNumber.py
yingzhuo1994/LeetCode
636eef90867d21e3439d258ec99fbb8e5ad5a742
[ "MIT" ]
null
null
null
class Solution: def titleToNumber(self, columnTitle: str) -> int: start = ord('A') - 1 num = 0 for ch in columnTitle: num = 26 * num + ord(ch) - start return num
26.25
53
0.519048
053139008841aaaa7a775f24f87d778d9a2ef329
77
py
Python
utils/drop_database.py
nixorn/iamripbackend
659ee43bc0c42a459665cab74ab66385e4e2937f
[ "MIT" ]
null
null
null
utils/drop_database.py
nixorn/iamripbackend
659ee43bc0c42a459665cab74ab66385e4e2937f
[ "MIT" ]
null
null
null
utils/drop_database.py
nixorn/iamripbackend
659ee43bc0c42a459665cab74ab66385e4e2937f
[ "MIT" ]
null
null
null
from models import * from engine import * Base.metadata.drop_all(engine)
9.625
30
0.753247
bc8a606361aaae624e62cad2d789d729e6df67fe
306
py
Python
src/presence/presences/menu_presences/away.py
SumanthAkula/valorant-rpc
88f62496cc297aa681d9467ce45e6669ae1f438f
[ "MIT" ]
null
null
null
src/presence/presences/menu_presences/away.py
SumanthAkula/valorant-rpc
88f62496cc297aa681d9467ce45e6669ae1f438f
[ "MIT" ]
null
null
null
src/presence/presences/menu_presences/away.py
SumanthAkula/valorant-rpc
88f62496cc297aa681d9467ce45e6669ae1f438f
[ "MIT" ]
null
null
null
def presence(rpc,client=None,data=None,content_data=None,config=None): rpc.update( state="Away", details=f"Menu - {content_data['queue_aliases'][data['queueId']] if data['queueId'] != '' else 'Custom Setup'}", large_image="game_icon_yellow", large_text="VALORANT", )
43.714286
120
0.643791
60ecea16b47e08b28dc13a7e6b9d73a380e6beac
1,399
py
Python
k8v/printer.py
jasonhanks/k8v
e41d6b6d670567abc9dc37b423b4d48ef82a4d0e
[ "MIT" ]
1
2022-01-17T03:51:12.000Z
2022-01-17T03:51:12.000Z
k8v/printer.py
jasonhanks/k8v
e41d6b6d670567abc9dc37b423b4d48ef82a4d0e
[ "MIT" ]
null
null
null
k8v/printer.py
jasonhanks/k8v
e41d6b6d670567abc9dc37b423b4d48ef82a4d0e
[ "MIT" ]
null
null
null
import k8v class Printer: """The Printer is responsible for using the Formatters to generate the output properly.""" def __init__(self, config: k8v.config.Config): self.config = config def print(self, resource, num: int = 1, max: int = 1, delim: str = ""): """Print the specified resource...
38.861111
94
0.652609
5a6de8942f83c5ca4bfd88ae6b1110297dea4078
1,300
py
Python
jorldy/config/icm_ppo/atari.py
kakaoenterprise/JORLDY
0d41e148cb9d680aa4df2727e0a813eb792d9a1b
[ "Apache-2.0" ]
300
2021-11-03T07:06:34.000Z
2022-03-24T02:23:56.000Z
jorldy/config/icm_ppo/atari.py
kakaoenterprise/JORLDY
0d41e148cb9d680aa4df2727e0a813eb792d9a1b
[ "Apache-2.0" ]
37
2021-11-04T04:31:07.000Z
2022-03-30T01:40:49.000Z
jorldy/config/icm_ppo/atari.py
kakaoenterprise/JORLDY
0d41e148cb9d680aa4df2727e0a813eb792d9a1b
[ "Apache-2.0" ]
45
2021-11-03T08:05:56.000Z
2022-03-24T08:35:05.000Z
### ICM PPO Atari Config ### env = { # "name": it should be defined in the command. ex) python main.py --config config.AGENT.atari --env.name breakout "render": False, "gray_img": True, "img_width": 84, "img_height": 84, "stack_frame": 4, "no_op": True, "skip_frame": 4, "reward_clip...
22.033898
117
0.575385
02551de7238239f5c6cc54ee3f88e862ea7261fa
8,277
py
Python
IPython/frontend/qt/console/pygments_highlighter.py
tinyclues/ipython
71e32606b0242772b81c9be0d40751ba47d95f2c
[ "BSD-3-Clause-Clear" ]
2
2015-04-21T12:12:43.000Z
2015-04-21T12:12:54.000Z
IPython/frontend/qt/console/pygments_highlighter.py
tinyclues/ipython
71e32606b0242772b81c9be0d40751ba47d95f2c
[ "BSD-3-Clause-Clear" ]
1
2015-07-16T22:26:53.000Z
2015-07-16T22:26:53.000Z
IPython/frontend/qt/console/pygments_highlighter.py
ivanov/ipython
62cc379d3b454923cb48e94663f385f54ec806cc
[ "BSD-3-Clause-Clear" ]
null
null
null
# System library imports. from IPython.external.qt import QtGui from pygments.formatters.html import HtmlFormatter from pygments.lexer import RegexLexer, _TokenType, Text, Error from pygments.lexers import PythonLexer from pygments.styles import get_style_by_name def get_tokens_unprocessed(self, text, stack=('root',)...
36.786667
80
0.524224
5f064f42bb9bfc71bbe42420c6f467701cdaa847
1,639
py
Python
cvl/merge_dense_infos.py
MartinHahner/SeeingThroughFog
3b568af0ad190c9f4cf6a4a826f69332844bff99
[ "MIT" ]
4
2021-08-16T03:56:22.000Z
2021-11-11T13:29:31.000Z
cvl/merge_dense_infos.py
MartinHahner/SeeingThroughFog
3b568af0ad190c9f4cf6a4a826f69332844bff99
[ "MIT" ]
null
null
null
cvl/merge_dense_infos.py
MartinHahner/SeeingThroughFog
3b568af0ad190c9f4cf6a4a826f69332844bff99
[ "MIT" ]
2
2022-01-12T13:42:05.000Z
2022-01-19T04:45:05.000Z
import os import pickle from pathlib import Path dir_path = Path(os.path.dirname(os.path.realpath(__file__))) pkl_dir = dir_path.parent.parent.parent / 'data' / 'dense' save_file = f'{pkl_dir}/dense_dbinfos_train_clear.pkl' day_file = f'{pkl_dir}/dense_dbinfos_train_clear_day.pkl' night_file = f'{pkl_dir}/dense_db...
26.868852
68
0.685784
4edb1dc6b18c709422f328b3e35edf46c0580a2f
6,127
py
Python
shs/input/frames/extra_panel.py
ansobolev/shs
7a5f61bd66fe1e8ae047a4d3400b055175a53f4e
[ "MIT" ]
1
2016-06-22T13:30:25.000Z
2016-06-22T13:30:25.000Z
shs/input/frames/extra_panel.py
ansobolev/shs
7a5f61bd66fe1e8ae047a4d3400b055175a53f4e
[ "MIT" ]
1
2017-12-01T04:49:45.000Z
2017-12-01T04:49:45.000Z
shs/input/frames/extra_panel.py
ansobolev/shs
7a5f61bd66fe1e8ae047a4d3400b055175a53f4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import wx from shs.input.dialogs.add_block import AddBlockDlg #import fdf_base as fdf import wx.lib.agw.ultimatelistctrl as ulc 'A class collection representing extra options panel' class ExtraPN(wx.ScrolledWindow): blocks = {} def __ini...
36.041176
130
0.5559
f7c80f58201e0a3a660e42da363b92892a8b7b27
5,196
py
Python
data/p3BR/R1/benchmark/startQiskit_QC2.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startQiskit_QC2.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startQiskit_QC2.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=4 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from ...
28.549451
140
0.627213
1cbf3b0f4b43124d1e902ac76d5b7bedacd8e8b1
3,202
py
Python
src/common/api_covalent.py
wengzilla/staketaxcsv
c52210106ec8194973f6ff178a307c77699e094e
[ "MIT" ]
140
2021-12-11T23:37:46.000Z
2022-03-29T23:04:36.000Z
src/common/api_covalent.py
wengzilla/staketaxcsv
c52210106ec8194973f6ff178a307c77699e094e
[ "MIT" ]
80
2021-12-17T15:13:47.000Z
2022-03-31T13:33:53.000Z
src/common/api_covalent.py
wengzilla/staketaxcsv
c52210106ec8194973f6ff178a307c77699e094e
[ "MIT" ]
52
2021-12-12T00:37:17.000Z
2022-03-29T23:25:09.000Z
import logging import requests from common.Singleton import Singleton from settings_csv import COVALENT_API_KEY, COVALENT_NODE # Documentation: https://www.covalenthq.com/docs/developer/ class CovalentAPI(metaclass=Singleton): def __init__(self, chain_id): if not COVALENT_API_KEY: raise TypeE...
39.530864
84
0.637726
d03debe5557f3fefecf66f0c60e60cc74459c11b
1,314
py
Python
tests/unit/test_external_scripts.py
davidjsherman/repo2docker
4da2e1e71565b26a4bf1d0f0d26ae7c2373a1fd7
[ "BSD-3-Clause" ]
1,047
2017-05-25T03:37:21.000Z
2020-08-09T19:36:56.000Z
tests/unit/test_external_scripts.py
davidjsherman/repo2docker
4da2e1e71565b26a4bf1d0f0d26ae7c2373a1fd7
[ "BSD-3-Clause" ]
810
2017-05-24T20:50:49.000Z
2020-08-05T15:56:38.000Z
tests/unit/test_external_scripts.py
davidjsherman/repo2docker
4da2e1e71565b26a4bf1d0f0d26ae7c2373a1fd7
[ "BSD-3-Clause" ]
253
2017-06-02T20:23:05.000Z
2020-08-04T17:23:22.000Z
"""Test if assemble scripts from outside of r2d repo are accepted.""" import time from repo2docker.app import Repo2Docker from repo2docker.buildpacks import PythonBuildPack def test_Repo2Docker_external_build_scripts(tmpdir): tempfile = tmpdir.join("absolute-script") tempfile.write("Hello World of Absolute Pa...
30.55814
88
0.653729
7f553aca99a45abdb6da1d9d9546eca3fcd4a465
1,163
py
Python
datavalidation/libraries/meta/wrrapers.py
lifus/data-validation-benchmark
fca70230da3cb9e60ac4014b4a4c7c77b78027da
[ "Apache-2.0" ]
null
null
null
datavalidation/libraries/meta/wrrapers.py
lifus/data-validation-benchmark
fca70230da3cb9e60ac4014b4a4c7c77b78027da
[ "Apache-2.0" ]
null
null
null
datavalidation/libraries/meta/wrrapers.py
lifus/data-validation-benchmark
fca70230da3cb9e60ac4014b4a4c7c77b78027da
[ "Apache-2.0" ]
null
null
null
import os import importlib import collections """ Searches for libraries in `datavalidation.libraries` module Expects Wrapper and VALIDATORS variables to be defined in library's package Stores wrappers for libraries for later invocations """ def __package_path(): return os.path.dirname( os.path.dirnam...
22.803922
85
0.66466
f900ba33f451bcba8dc12d20d62a59b65c4e0cfc
1,169
py
Python
pycon/finaid/migrations/0005_auto_20150827_1147.py
azkarmoulana/pycon
931388e6f640c35b892bb4b2d12581ba7ec8cf4e
[ "BSD-3-Clause" ]
154
2015-01-17T02:29:24.000Z
2022-03-20T20:37:24.000Z
pycon/finaid/migrations/0005_auto_20150827_1147.py
azkarmoulana/pycon
931388e6f640c35b892bb4b2d12581ba7ec8cf4e
[ "BSD-3-Clause" ]
316
2015-01-10T04:01:50.000Z
2020-09-30T20:18:08.000Z
pycon/finaid/migrations/0005_auto_20150827_1147.py
azkarmoulana/pycon
931388e6f640c35b892bb4b2d12581ba7ec8cf4e
[ "BSD-3-Clause" ]
89
2015-01-10T05:25:21.000Z
2022-02-27T03:28:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.utils.timezone import now def forward(apps, schema_editor): FinancialAidReviewData = apps.get_model('finaid', 'FinancialAidReviewData') # Where when_grant_letter_sent is not-null, we want gra...
35.424242
131
0.78272
9d9ed59583a450b255724af2a79e262c4749e647
4,067
py
Python
tensorflow_io/core/python/experimental/azure_ops.py
burgerkingeater/io
f2de208f474d6ba4926e2c7f9e901e102ca5c254
[ "Apache-2.0" ]
null
null
null
tensorflow_io/core/python/experimental/azure_ops.py
burgerkingeater/io
f2de208f474d6ba4926e2c7f9e901e102ca5c254
[ "Apache-2.0" ]
null
null
null
tensorflow_io/core/python/experimental/azure_ops.py
burgerkingeater/io
f2de208f474d6ba4926e2c7f9e901e102ca5c254
[ "Apache-2.0" ]
null
null
null
# 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 applicabl...
36.63964
136
0.68478
d2e50c75c865d23cc31e512d9faaa748acf73b1a
171
py
Python
server/db_repository/manage.py
Lazarus118/virtual-queue
fde79ec6e051f372b1054d8d3790bdaf5eb31cc3
[ "CC-BY-3.0" ]
null
null
null
server/db_repository/manage.py
Lazarus118/virtual-queue
fde79ec6e051f372b1054d8d3790bdaf5eb31cc3
[ "CC-BY-3.0" ]
null
null
null
server/db_repository/manage.py
Lazarus118/virtual-queue
fde79ec6e051f372b1054d8d3790bdaf5eb31cc3
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python from migrate.versioning.shell import main if __name__ == '__main__': main(six='<module 'six' from 'S:\python\venv\lib\site-packages\six.pyc'>')
28.5
78
0.707602
71e7559f4d26901d6450278a88d26cf770c1c32c
4,764
py
Python
cinder/tests/unit/api/contrib/test_volume_tenant_attribute.py
tlakshman26/cinder-new-branch
80ba191522d1756c1871a104fbdb91008cffaaa3
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/api/contrib/test_volume_tenant_attribute.py
tlakshman26/cinder-new-branch
80ba191522d1756c1871a104fbdb91008cffaaa3
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/api/contrib/test_volume_tenant_attribute.py
tlakshman26/cinder-new-branch
80ba191522d1756c1871a104fbdb91008cffaaa3
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36.930233
77
0.652813
f36e37e3e6683581056551db4cdac09ea6857ae5
4,664
py
Python
src/pew/pythonista/webview.py
dylanmccall/pyeverywhere
2b23b4a70d5b7b958716596688d9989afa024e8d
[ "Apache-2.0" ]
7
2016-06-08T22:18:44.000Z
2022-01-16T16:53:33.000Z
src/pew/pythonista/webview.py
dylanmccall/pyeverywhere
2b23b4a70d5b7b958716596688d9989afa024e8d
[ "Apache-2.0" ]
21
2015-09-02T19:20:16.000Z
2021-10-24T00:44:29.000Z
src/pew/pythonista/webview.py
dylanmccall/pyeverywhere
2b23b4a70d5b7b958716596688d9989afa024e8d
[ "Apache-2.0" ]
12
2018-04-24T02:54:33.000Z
2021-09-13T09:35:22.000Z
import logging import console import ui from objc_util import * NSURLCache = ObjCClass('NSURLCache') NSURLRequest = ObjCClass('NSURLRequest') NSUserDefaults = ObjCClass('NSUserDefaults') UIColor = ObjCClass('UIColor') WKWebView = ObjCClass('WKWebView') WKWebViewConfiguration = ObjCClass('WKWebViewConfiguration') US...
37.918699
121
0.661878
a456a31206cc3dc35f20b96d699e4213ec16cd0f
1,942
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/coding-problems-master/Linked_Lists/max_difference_subll.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/coding-problems-master/Linked_Lists/max_difference_subll.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/coding-problems-master/Linked_Lists/max_difference_subll.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
""" Maximum Difference Sub-Linked List Given a linked list of integers, find and return the sub-linked list of k consecutive elements where the difference between the smallest element and the largest element is the largest possible. If there are several sub-linked lists of k elements in items so that all these sub-lin...
27.742857
100
0.636972
a94cd8cfe35c5f03365cfdd83cb4345207fd7f0b
3,644
py
Python
sdk/python/pulumi_azure_native/machinelearningservices/list_machine_learning_compute_nodes.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/machinelearningservices/list_machine_learning_compute_nodes.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/machinelearningservices/list_machine_learning_compute_nodes.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
37.183673
177
0.679199
0067fa657315e6c8f82661af4c3209cb30e10ee2
33,002
py
Python
pysolr.py
aptivate/pysolr
fdc88353e028d8668d389d9dca4003509726904c
[ "BSD-3-Clause" ]
null
null
null
pysolr.py
aptivate/pysolr
fdc88353e028d8668d389d9dca4003509726904c
[ "BSD-3-Clause" ]
null
null
null
pysolr.py
aptivate/pysolr
fdc88353e028d8668d389d9dca4003509726904c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import import datetime import logging import re import requests import time import types import ast try: # Prefer lxml, if installed. from lxml import etree as ET except Import...
31.251894
170
0.56039
5276e555943cfbe2a5abc9fef47679f0415d5d72
20,509
py
Python
src/sentry/migrations/0052_migrate_project_members.py
Casecommons/sentry
b69a2373a658c5c775671fe9985c3fa4f2eafcfd
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0052_migrate_project_members.py
Casecommons/sentry
b69a2373a658c5c775671fe9985c3fa4f2eafcfd
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0052_migrate_project_members.py
Casecommons/sentry
b69a2373a658c5c775671fe9985c3fa4f2eafcfd
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." for project in orm['sentry.Project'].objects.all(): if not project.owne...
75.959259
182
0.550539
90b74a1dee5d5c5926f1deeea4ee6a3ccd96d768
365
py
Python
CPFrontend/common/MachineConfig.py
Conpancol/PyHeroku
16b157a23c77cd794d246a56cf8575766e48689c
[ "MIT" ]
null
null
null
CPFrontend/common/MachineConfig.py
Conpancol/PyHeroku
16b157a23c77cd794d246a56cf8575766e48689c
[ "MIT" ]
null
null
null
CPFrontend/common/MachineConfig.py
Conpancol/PyHeroku
16b157a23c77cd794d246a56cf8575766e48689c
[ "MIT" ]
null
null
null
import os class MachineConfigurator: """configurations""" def __init__(self): self.backend = "" self.local_backend = 'http://localhost:4567' def getBackend(self): envvar = os.getenv('BACKEND_URL') print(envvar) if envvar is None: return self.local_backe...
19.210526
52
0.580822
67a352ce7f5efee2457a851c9663b9fc0de6d21b
6,254
py
Python
tools/pytest/testing/test_assertinterpret.py
servo-wpt-sync/web-platform-tests
56e2df852354bc2b89e6d17a9dbafd280d24203c
[ "BSD-3-Clause" ]
4
2020-09-09T15:28:01.000Z
2021-12-01T00:59:56.000Z
tools/pytest/testing/test_assertinterpret.py
063095/web-platform-tests
255d54144a82ce76d8e50a4aa8de284151119f8b
[ "BSD-3-Clause" ]
1
2021-03-31T20:23:55.000Z
2021-03-31T20:23:55.000Z
tools/pytest/testing/test_assertinterpret.py
063095/web-platform-tests
255d54144a82ce76d8e50a4aa8de284151119f8b
[ "BSD-3-Clause" ]
1
2020-03-31T17:20:54.000Z
2020-03-31T17:20:54.000Z
"PYTEST_DONT_REWRITE" import py import pytest from _pytest.assertion import util def exvalue(): return py.std.sys.exc_info()[1] def f(): return 2 def test_not_being_rewritten(): assert "@py_builtins" not in globals() def test_assert(): try: assert f() == 3 except AssertionError: ...
22.741818
68
0.543972
85c6ed30b0aa741bcbfe05ae7d2d67d7da75a1cc
58
py
Python
Codewars/7kyu/thinkful-string-drills-repeater/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/7kyu/thinkful-string-drills-repeater/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/7kyu/thinkful-string-drills-repeater/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 3.6.0 repeater = lambda string, n: string * n
14.5
39
0.637931
42c032e7557fb58d4774eb03e9fa17226601d8a1
1,654
py
Python
averageActivity.py
choonlog/Global-Stabilization
28e6cda176833ec911a009fbf6a09c39af8caea9
[ "BSD-2-Clause" ]
1
2020-03-11T16:43:00.000Z
2020-03-11T16:43:00.000Z
averageActivity.py
choonlog/Global-Stabilization
28e6cda176833ec911a009fbf6a09c39af8caea9
[ "BSD-2-Clause" ]
null
null
null
averageActivity.py
choonlog/Global-Stabilization
28e6cda176833ec911a009fbf6a09c39af8caea9
[ "BSD-2-Clause" ]
null
null
null
import json from pprint import pprint import matplotlib.pyplot as plt with open('sm.json') as data_file: data = json.load(data_file) attrKeyList = data["attractors"].keys() eachActivity = [] dic = {} for attrKey in attrKeyList: if data["attractors"][attrKey]["type"] == "point": pointRati...
30.62963
84
0.588271
3bf20bc0c7990cbddc180e0cefd4ccd66dbb525e
1,602
py
Python
Src/Tests/interop/net/field/__init__.py
Enerccio/ironpython26-fixed
e302db14f05396a378adb438565a829e66acbf94
[ "MS-PL" ]
1
2020-02-11T06:02:40.000Z
2020-02-11T06:02:40.000Z
Src/Languages/IronPython/Tests/interop/net/field/__init__.py
rudimk/dlr-dotnet
71d11769f99d6ff1516ddbaed091a359eb46c670
[ "MS-PL" ]
null
null
null
Src/Languages/IronPython/Tests/interop/net/field/__init__.py
rudimk/dlr-dotnet
71d11769f99d6ff1516ddbaed091a359eb46c670
[ "MS-PL" ]
1
2018-11-21T04:10:23.000Z
2018-11-21T04:10:23.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Microsoft Public License. A # copy of the license can be found in the License.html file at the root of this ...
39.073171
96
0.656679
afaacbd71ffce0f05197fb0a4d593b8420bdae63
2,187
py
Python
cnns/data_utils/img_proc.py
johnwlambert/dlupi-heteroscedastic-dropou
057dd079fce7ec8833b818b77fd694c01a1adcbc
[ "MIT" ]
39
2018-04-04T13:29:03.000Z
2022-03-12T23:57:33.000Z
cnns/data_utils/img_proc.py
johnwlambert/dlupi-heteroscedastic-dropou
057dd079fce7ec8833b818b77fd694c01a1adcbc
[ "MIT" ]
5
2018-04-30T12:14:38.000Z
2021-04-26T23:52:18.000Z
cnns/data_utils/img_proc.py
johnwlambert/dlupi-heteroscedastic-dropou
057dd079fce7ec8833b818b77fd694c01a1adcbc
[ "MIT" ]
10
2018-05-14T09:14:55.000Z
2021-11-10T00:23:21.000Z
# John Lambert, Alan Luo, Ozan Sener import torch import cv2 import numpy as np def normalize_tensor(tensor, mean, std): """ No pre - processing was applied to training images besides scaling to the range of the tanh activation function[-1, 1]. """ for i in range(tensor.size(0)): img = te...
33.136364
114
0.616369
7339f8c186250af524341307a69c247ac60f65eb
2,617
py
Python
bridge/jobs/templatetags/tableheader.py
kirillyat/klever
259cc1345df91a47bc028f813613f063a8465429
[ "Apache-2.0" ]
16
2018-07-14T15:37:02.000Z
2020-07-11T14:26:59.000Z
bridge/jobs/templatetags/tableheader.py
kirillyat/klever
259cc1345df91a47bc028f813613f063a8465429
[ "Apache-2.0" ]
2
2019-10-28T22:32:31.000Z
2020-04-24T09:24:20.000Z
bridge/jobs/templatetags/tableheader.py
kirillyat/klever
259cc1345df91a47bc028f813613f063a8465429
[ "Apache-2.0" ]
10
2018-11-09T12:54:15.000Z
2021-10-31T17:01:39.000Z
from django import template register = template.Library() class TableHeader(template.Node): def __init__(self, columns, titles): self._columns = columns self._titles = titles def render_th(self, colspan, rowspan, title): return f'<th colspan="{colspan}" rowspan="{rowspan}">{title}</t...
37.927536
114
0.550248
fd30fe6dd05abef588152bb7d64bd29692e5a6b8
395
py
Python
gibprosj/gibprosj/wsgi.py
Anderzz/gib2-prosjekt
9e5796e09e151a2b24c94d875b947c334dffecbe
[ "MIT" ]
null
null
null
gibprosj/gibprosj/wsgi.py
Anderzz/gib2-prosjekt
9e5796e09e151a2b24c94d875b947c334dffecbe
[ "MIT" ]
null
null
null
gibprosj/gibprosj/wsgi.py
Anderzz/gib2-prosjekt
9e5796e09e151a2b24c94d875b947c334dffecbe
[ "MIT" ]
null
null
null
""" WSGI config for gibprosj project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
20.789474
78
0.782278
e2edae1b2fa99cbe6ba11f3516cc97f4ff6f1c2b
1,149
py
Python
weberp/apps/expenses/views.py
askar-alty/erp
cf5496fd7feed9d79705bbf5a034d1b13b96a98a
[ "MIT" ]
null
null
null
weberp/apps/expenses/views.py
askar-alty/erp
cf5496fd7feed9d79705bbf5a034d1b13b96a98a
[ "MIT" ]
null
null
null
weberp/apps/expenses/views.py
askar-alty/erp
cf5496fd7feed9d79705bbf5a034d1b13b96a98a
[ "MIT" ]
null
null
null
from django.views.generic.list import ListView from . import models class ExpenseListView(ListView): model = models.Expense template_name = 'expenses/expenses_list.html' context_object_name = 'expenses' def get_context_data(self, **kwargs): context = super(ExpenseListView, self).get_contex...
35.90625
76
0.643168
33c9130e67b0faf948eb791c913bceabc00e84b4
4,423
py
Python
Lib/site-packages/pyqtlineeditprogressbar/demo.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/pyqtlineeditprogressbar/demo.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/pyqtlineeditprogressbar/demo.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
""" Demo source for PyQtLineEditProgressBar """ import time from PyQt5 import QtCore from PyQt5 import QtGui from PyQt5 import QtWidgets import pyqtlineeditprogressbar as pqtpbar from pyqtlineeditprogressbar import PyQtLineEditProgressBar def find_color_name(color_value): name = 'CUSTOM color' for color_name in p...
38.798246
117
0.737508
6ec05231c6f8658db7db8de31f4c23279216bdc6
495
py
Python
configs/selfsup/_base_/models/deepcluster/r18.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
10
2021-12-30T10:22:27.000Z
2022-03-30T02:31:38.000Z
configs/selfsup/_base_/models/deepcluster/r18.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
3
2022-01-20T21:02:48.000Z
2022-03-19T13:49:45.000Z
configs/selfsup/_base_/models/deepcluster/r18.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='DeepCluster', backbone=dict( type='ResNet', depth=18, num_stages=4, out_indices=(3,), # no conv-1, x-1: stage-x norm_cfg=dict(type='BN'), style='pytorch'), neck=dict(type='AvgPoolNeck'), head=dict( type='ClsHea...
27.5
63
0.587879
3ced1b6a7c5cbf7e8b773c58f28072f575668652
2,259
py
Python
deep_qa/layers/backend/envelope.py
richarajpal/deep_qa
d918335a1bed71b9cfccf1d5743321cee9c61952
[ "Apache-2.0" ]
459
2017-02-08T13:40:17.000Z
2021-12-12T12:57:48.000Z
deep_qa/layers/backend/envelope.py
nelson-liu/deep_qa
00d36306759cb1c232489f68844371fb727ce2c8
[ "Apache-2.0" ]
176
2017-01-26T01:19:41.000Z
2018-04-22T19:16:01.000Z
deep_qa/layers/backend/envelope.py
nelson-liu/deep_qa
00d36306759cb1c232489f68844371fb727ce2c8
[ "Apache-2.0" ]
154
2017-01-26T01:00:30.000Z
2021-02-05T10:44:42.000Z
from overrides import overrides from keras import backend as K from ..masked_layer import MaskedLayer class Envelope(MaskedLayer): """ Given a probability distribution over a begin index and an end index of some sequence, this ``Layer`` computes an envelope over the sequence, a probability that each elem...
40.339286
99
0.702081
3ffe9be4a59b9d108e8d6ffc071ff132385b77b3
4,526
py
Python
drf_chunked_upload/management/commands/delete_expired_uploads.py
daviddavis/drf-chunked-upload
b946677ca1b6e4017309049b8ad0bb5b200008c8
[ "MIT-0" ]
1
2021-07-04T10:49:42.000Z
2021-07-04T10:49:42.000Z
drf_chunked_upload/management/commands/delete_expired_uploads.py
daviddavis/drf-chunked-upload
b946677ca1b6e4017309049b8ad0bb5b200008c8
[ "MIT-0" ]
null
null
null
drf_chunked_upload/management/commands/delete_expired_uploads.py
daviddavis/drf-chunked-upload
b946677ca1b6e4017309049b8ad0bb5b200008c8
[ "MIT-0" ]
1
2021-07-04T10:49:44.000Z
2021-07-04T10:49:44.000Z
from __future__ import print_function from collections import Counter from six import iteritems import django.apps from django.core.management.base import BaseCommand from django.utils import timezone from django.utils.translation import ugettext as _ from drf_chunked_upload.settings import EXPIRATION_DELTA from drf...
32.561151
121
0.595007
fd81b025aac35e387605c9fe472d2d86e1037ede
21,559
py
Python
tests/hwsim/run-tests.py
AstroProfundis/hostap
f4830bed661f4adff51f50a0d37c64ceb748e780
[ "Unlicense" ]
null
null
null
tests/hwsim/run-tests.py
AstroProfundis/hostap
f4830bed661f4adff51f50a0d37c64ceb748e780
[ "Unlicense" ]
null
null
null
tests/hwsim/run-tests.py
AstroProfundis/hostap
f4830bed661f4adff51f50a0d37c64ceb748e780
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python2 # # Test case executor # Copyright (c) 2013-2015, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. import os import re import sys import time from datetime import datetime import argparse import subprocess import term...
37.690559
174
0.536249
c35108d24d724653b32511186642fab722de77de
1,637
py
Python
source/_static/solutions/lesson06/exc2_solution_linear_classifier_with_polar_coordinate_transformation.py
janEbert/deeplearning540.github.io
4a13e12503b029e8abc06bb1f499f89399e4142a
[ "MIT" ]
6
2021-03-01T07:00:32.000Z
2022-03-23T15:33:53.000Z
source/_static/solutions/lesson06/exc2_solution_linear_classifier_with_polar_coordinate_transformation.py
janEbert/deeplearning540.github.io
4a13e12503b029e8abc06bb1f499f89399e4142a
[ "MIT" ]
17
2021-02-22T13:16:37.000Z
2022-03-23T16:42:47.000Z
source/_static/solutions/lesson06/exc2_solution_linear_classifier_with_polar_coordinate_transformation.py
janEbert/deeplearning540.github.io
4a13e12503b029e8abc06bb1f499f89399e4142a
[ "MIT" ]
14
2021-02-22T11:38:28.000Z
2022-01-12T15:08:48.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from sklearn.datasets import load_wine from sklearn.linear_model import RidgeClassifier from sklearn.metrics import confusion_matrix from sklearn.model_selection import train_test_split from sklearn.preprocessing import Standar...
28.224138
80
0.701283
c659a16e8d2b18d6cbd00506fb956851ff5bebe5
908
py
Python
other/inet_suite.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
other/inet_suite.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
other/inet_suite.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
import unittest, urllib class NewsSitesTestCase(unittest.TestCase): def testSlashdot(self): urllib.urlopen("http://www.slashdot.org").read() def testWired(self): urllib.urlopen("http://www.wired.com").read() def testTheOnion(self): urllib.urlopen("http://www.theonion.com").r...
34.923077
64
0.659692
bcbb5ee2761d1213793ae56f221a4b6eb7a5e252
67
py
Python
configure-repos/config.py
grobalex/github-scripts-
891d17cf20645e39415723dd8f5e91a610ea2267
[ "MIT" ]
null
null
null
configure-repos/config.py
grobalex/github-scripts-
891d17cf20645e39415723dd8f5e91a610ea2267
[ "MIT" ]
null
null
null
configure-repos/config.py
grobalex/github-scripts-
891d17cf20645e39415723dd8f5e91a610ea2267
[ "MIT" ]
null
null
null
# config.py: githuburl = 'github.ccs.neu.edu' githuborg = 'CS5500'
16.75
32
0.701493
2394b3c750055942bd5d7d45e427cba0f773c70b
25,899
py
Python
Kernels/Research/FFT/FFT.py
WoodData/EndpointAI
8e4d145ff45cf5559ab009eba4f423e944dc6975
[ "Apache-2.0" ]
190
2020-09-22T02:14:29.000Z
2022-03-28T02:35:57.000Z
Kernels/Research/FFT/FFT.py
chuancqc/EndpointAI
ab67cefeae3c06f1c93f66812bcf988c14e72ff1
[ "Apache-2.0" ]
2
2021-08-30T10:06:22.000Z
2021-11-05T20:37:58.000Z
Kernels/Research/FFT/FFT.py
chuancqc/EndpointAI
ab67cefeae3c06f1c93f66812bcf988c14e72ff1
[ "Apache-2.0" ]
80
2020-09-13T17:48:56.000Z
2022-03-19T10:45:05.000Z
# # # Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 # # 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 # # www.apache.org/lice...
74.852601
15,892
0.547241
194350c2fa9a9e23c8bda1e3a697fc9a3df6f491
1,973
py
Python
nova/api/validation/extra_specs/traits.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,874
2015-01-04T05:18:34.000Z
2022-03-31T03:30:28.000Z
nova/api/validation/extra_specs/traits.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
40
2015-04-13T02:32:42.000Z
2022-02-16T02:28:06.000Z
nova/api/validation/extra_specs/traits.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,996
2015-01-04T15:11:51.000Z
2022-03-31T11:03:13.000Z
# Copyright 2020 Red Hat, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
26.662162
75
0.519513
898e5bf5773e75b6d8e3a1ba553cbd4418406be7
1,323
py
Python
src/rank.py
MyEyes/twitch-tsumego
ef7c477030af3a99dbfa35513321125b76879cb5
[ "MIT" ]
null
null
null
src/rank.py
MyEyes/twitch-tsumego
ef7c477030af3a99dbfa35513321125b76879cb5
[ "MIT" ]
null
null
null
src/rank.py
MyEyes/twitch-tsumego
ef7c477030af3a99dbfa35513321125b76879cb5
[ "MIT" ]
null
null
null
import PySimpleGUI as sg import threading import time W = 30 # name width def open_window(): while True: event, value = window.read() if event == sg.WIN_CLOSED: break window.close() def update(players, last): i = 1 for (k,v) in sorted(players.items(), key=lambda x: -x[1]...
26.46
62
0.530612
427ac6f0c1e1936cbf29a742edd3843d21d6703e
1,107
py
Python
src/pylero/priority_option_id.py
yuxisun1217/pylero
0210eb2243e02ab218f19a224e94eb63081f13e3
[ "MIT" ]
null
null
null
src/pylero/priority_option_id.py
yuxisun1217/pylero
0210eb2243e02ab218f19a224e94eb63081f13e3
[ "MIT" ]
null
null
null
src/pylero/priority_option_id.py
yuxisun1217/pylero
0210eb2243e02ab218f19a224e94eb63081f13e3
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from __future__ import absolute_import, division, print_function from __future__ import unicode_literals from pylero.base_polarion import BasePolarion class PriorityOptionId(BasePolarion): """Object to handle the Polarion WSDL tns5:PriorityOptionId class Attributes: id (string)...
26.357143
69
0.634146
4b3d41aca1780fc944db1264a5e283cfb651234e
1,753
py
Python
join_annovar_vcf.py
sensecollective/bioinformatics_scripts
3a23611f382b7f3dd60e5e2abe841b84408c0d44
[ "BSD-3-Clause" ]
7
2016-03-23T11:31:06.000Z
2021-05-20T19:07:38.000Z
join_annovar_vcf.py
raonyguimaraes/bioinformatics_scripts
3a23611f382b7f3dd60e5e2abe841b84408c0d44
[ "BSD-3-Clause" ]
null
null
null
join_annovar_vcf.py
raonyguimaraes/bioinformatics_scripts
3a23611f382b7f3dd60e5e2abe841b84408c0d44
[ "BSD-3-Clause" ]
8
2016-06-01T19:28:46.000Z
2022-01-09T01:26:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from optparse import OptionParser import os from time import time import datetime import csv __author__ = "Raony Guimarães" __copyright__ = "Copyright 2011, The Exome Pipeline" __credits__ = ["Raony Guimarães"] __license__ = "GPL" __version__ = "1.0.1" __maintainer__ = "...
26.164179
79
0.667998
b59881c23c09af14294421402be935cdcabae142
10,045
py
Python
scrapy_do/schedule.py
umairwaheed/scrapy-do
2425601ed5f18ef2e11449dc6ebb3c4c7169986a
[ "BSD-3-Clause" ]
null
null
null
scrapy_do/schedule.py
umairwaheed/scrapy-do
2425601ed5f18ef2e11449dc6ebb3c4c7169986a
[ "BSD-3-Clause" ]
null
null
null
scrapy_do/schedule.py
umairwaheed/scrapy-do
2425601ed5f18ef2e11449dc6ebb3c4c7169986a
[ "BSD-3-Clause" ]
null
null
null
#------------------------------------------------------------------------------- # Author: Lukasz Janyst <lukasz@jany.st> # Date: 02.12.2017 # # Licensed under the 3-Clause BSD License, see the LICENSE file for details. #------------------------------------------------------------------------------- """ Functionalit...
37.203704
80
0.452364
6446bc7cca8344fd1a4eca62cf19c51496e48aca
1,691
py
Python
GenerativeModels/BGAN/generator.py
rexwangcc/gengine
25a49e19aca8527fec9c661b80e6d5598ac30ed1
[ "MIT" ]
null
null
null
GenerativeModels/BGAN/generator.py
rexwangcc/gengine
25a49e19aca8527fec9c661b80e6d5598ac30ed1
[ "MIT" ]
null
null
null
GenerativeModels/BGAN/generator.py
rexwangcc/gengine
25a49e19aca8527fec9c661b80e6d5598ac30ed1
[ "MIT" ]
null
null
null
from __future__ import print_function import torch.nn as nn class Generator(nn.Module): def __init__(self, ngpu, nz, ngf, nc): """The model definition of the generator. This class refers to the PyTorch DCGAN TUTORIAL: https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html Args...
35.229167
112
0.564755
85283afcf23ff587e6466a66537f6697024e3bee
33,980
py
Python
tensorflow_tts/models/fastspeech.py
speechcatch/TensorFlowTTS
2f52a315a8c99ff018e9de1898937627040d557e
[ "Apache-2.0" ]
null
null
null
tensorflow_tts/models/fastspeech.py
speechcatch/TensorFlowTTS
2f52a315a8c99ff018e9de1898937627040d557e
[ "Apache-2.0" ]
null
null
null
tensorflow_tts/models/fastspeech.py
speechcatch/TensorFlowTTS
2f52a315a8c99ff018e9de1898937627040d557e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 The FastSpeech Authors, The HuggingFace Inc. team and Minh Nguyen (@dathudeptrai) # # 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.a...
37.381738
102
0.615686
e6ca616c63b56737940af6232e7e6088f3026a18
42,423
py
Python
tools/eval_rcnn.py
kaancolak/PointRCNN
eeca9bef79baaebfef3c45b1ea929168e37c3071
[ "MIT" ]
null
null
null
tools/eval_rcnn.py
kaancolak/PointRCNN
eeca9bef79baaebfef3c45b1ea929168e37c3071
[ "MIT" ]
null
null
null
tools/eval_rcnn.py
kaancolak/PointRCNN
eeca9bef79baaebfef3c45b1ea929168e37c3071
[ "MIT" ]
null
null
null
import _init_path import os import numpy as np import torch from torch.utils.data import DataLoader import torch.nn.functional as F from lib.net.point_rcnn import PointRCNN from lib.datasets.kitti_rcnn_dataset import KittiRCNNDataset import tools.train_utils.train_utils as train_utils from lib.utils.bbox_transform impo...
45.372193
125
0.621314
557f90b0870602c2c34c121033cbf688ebe233bb
477
py
Python
font/param.py
Programish/ascii
6f946fead975d93908b82744a402fd8918643742
[ "MIT" ]
null
null
null
font/param.py
Programish/ascii
6f946fead975d93908b82744a402fd8918643742
[ "MIT" ]
null
null
null
font/param.py
Programish/ascii
6f946fead975d93908b82744a402fd8918643742
[ "MIT" ]
null
null
null
# charsets PRINTABLE_ASCII = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;?@[\\]^_`{|}~ ' # ... # fonts DEFAULT_FONT = 'DejaVuSansMono.ttf' # DEFAULT_SIZE = 18 # DEFAULT_DIM = (15, 23) # DEFAULT_OFFSET = (2, 0) DEFAULT_SIZE = 15 DEFAULT_DIM = (18, 9) DEFAULT_OFFSET = (0, ...
25.105263
115
0.666667
aa6e1eaea543b8c828071659c19f1506c7a7c0a7
3,684
py
Python
prepare.py
foolishflyfox/Person_reID_baseline_pytorch
08fc955071feff75bc7101eb6db1eb856e5d1e88
[ "MIT" ]
null
null
null
prepare.py
foolishflyfox/Person_reID_baseline_pytorch
08fc955071feff75bc7101eb6db1eb856e5d1e88
[ "MIT" ]
null
null
null
prepare.py
foolishflyfox/Person_reID_baseline_pytorch
08fc955071feff75bc7101eb6db1eb856e5d1e88
[ "MIT" ]
null
null
null
import os from shutil import copyfile # You only need to change this line to your dataset download path download_path = '/home/zzheng/Downloads/Market' if not os.path.isdir(download_path): print('please change the download_path') save_path = download_path + '/pytorch' if not os.path.isdir(save_path): os.mkdi...
33.798165
85
0.591477
ac0f04b42265675964a1051e0298dee0ef3e2679
53,360
py
Python
openfold/utils/loss.py
ychnh/openfold
e61a00d063c0f2d939d24963929cea2b413d3e8e
[ "Apache-2.0" ]
1
2022-02-11T15:43:36.000Z
2022-02-11T15:43:36.000Z
openfold/utils/loss.py
ychnh/openfold
e61a00d063c0f2d939d24963929cea2b413d3e8e
[ "Apache-2.0" ]
null
null
null
openfold/utils/loss.py
ychnh/openfold
e61a00d063c0f2d939d24963929cea2b413d3e8e
[ "Apache-2.0" ]
1
2022-02-22T05:53:03.000Z
2022-02-22T05:53:03.000Z
# Copyright 2021 AlQuraishi Laboratory # Copyright 2021 DeepMind Technologies Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
32.656059
82
0.630266
09021cb002427d97a2baf0916dea8a153dca19f5
31,534
py
Python
utility.py
kant/RenderStackNode
19876fc75a03edf36ae27837d193509907adbd4a
[ "Apache-2.0" ]
null
null
null
utility.py
kant/RenderStackNode
19876fc75a03edf36ae27837d193509907adbd4a
[ "Apache-2.0" ]
null
null
null
utility.py
kant/RenderStackNode
19876fc75a03edf36ae27837d193509907adbd4a
[ "Apache-2.0" ]
null
null
null
import os import logging import time import re import numpy as np from itertools import groupby from collections import deque from functools import lru_cache, wraps import bpy from mathutils import Color, Vector from .preferences import get_pref # init logger LOG_FORMAT = "%(asctime)s - RSN-%(levelname)s - %(messag...
38.787208
115
0.568371
1f025ca0866e4c65c06369a8bbc75e717140fd0b
1,236
py
Python
2015/06/fc_2015_06_08.py
mfwarren/FreeCoding
58ac87f35ad2004a3514782556762ee0ed72c39a
[ "MIT" ]
null
null
null
2015/06/fc_2015_06_08.py
mfwarren/FreeCoding
58ac87f35ad2004a3514782556762ee0ed72c39a
[ "MIT" ]
1
2015-04-27T01:43:45.000Z
2015-04-27T01:43:45.000Z
2015/06/fc_2015_06_08.py
mfwarren/FreeCoding
58ac87f35ad2004a3514782556762ee0ed72c39a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # imports go here import matplotlib.pyplot as plt from sklearn import datasets, svm, metrics # # Free Coding session for 2015-06-08 # Written by Matt Warren # digits = datasets.load_digits() images = list(zip(digits.images, digits.target)) for i, (image, label) in enumerate(images[:4]): pl...
30.9
91
0.713592
8d3821361d8f670feadf94d5e15bb148a849f793
10
py
Python
HonkaiPython/test5.py
ReZeroE/Honkai-Impact-AutoPlay-Driver
096b23cce401dd32dc8ada5d06464e3d902d0b59
[ "MIT" ]
null
null
null
HonkaiPython/test5.py
ReZeroE/Honkai-Impact-AutoPlay-Driver
096b23cce401dd32dc8ada5d06464e3d902d0b59
[ "MIT" ]
null
null
null
HonkaiPython/test5.py
ReZeroE/Honkai-Impact-AutoPlay-Driver
096b23cce401dd32dc8ada5d06464e3d902d0b59
[ "MIT" ]
null
null
null
import wmi
10
10
0.9
b0bef04c62f0481be11ea23f10033dd38ca931cd
20,252
py
Python
smart_home/Camera.py
shanbs/netatmo-api-python
bb714189868bb5235ad4d1241dd4818fe633fe70
[ "MIT" ]
null
null
null
smart_home/Camera.py
shanbs/netatmo-api-python
bb714189868bb5235ad4d1241dd4818fe633fe70
[ "MIT" ]
null
null
null
smart_home/Camera.py
shanbs/netatmo-api-python
bb714189868bb5235ad4d1241dd4818fe633fe70
[ "MIT" ]
null
null
null
""" coding=utf-8 """ import imghdr import time from urllib.error import URLError from . import NoDevice, postRequest, _BASE_URL _GETHOMEDATA_REQ = _BASE_URL + "api/gethomedata" _GETCAMERAPICTURE_REQ = _BASE_URL + "api/getcamerapicture" _GETEVENTSUNTIL_REQ = _BASE_URL + "api/geteventsuntil" class CameraData: """...
38.428843
87
0.531947
fcd798960b94dd8ff2cf47e8889b7b765b9ffc57
24,477
py
Python
zaza/openstack/utilities/generic.py
freyes/zaza-openstack-tests
c9834315f996966aaedd95d712a991df7a449eb8
[ "ECL-2.0", "Apache-2.0" ]
5
2019-08-09T02:39:12.000Z
2021-05-18T14:19:51.000Z
zaza/openstack/utilities/generic.py
freyes/zaza-openstack-tests
c9834315f996966aaedd95d712a991df7a449eb8
[ "ECL-2.0", "Apache-2.0" ]
350
2019-05-13T10:28:33.000Z
2022-03-30T13:35:16.000Z
zaza/openstack/utilities/generic.py
freyes/zaza-openstack-tests
c9834315f996966aaedd95d712a991df7a449eb8
[ "ECL-2.0", "Apache-2.0" ]
72
2019-04-18T06:05:01.000Z
2022-03-29T05:41:40.000Z
# Copyright 2018 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
34.523272
79
0.642317
93631f15fac62212612113e64d74692065984b44
1,960
py
Python
config/wsgi.py
zubbyik/git-cookie
3cee273877130cb37983ac9ae9bb9ca00601bf3f
[ "BSD-3-Clause" ]
null
null
null
config/wsgi.py
zubbyik/git-cookie
3cee273877130cb37983ac9ae9bb9ca00601bf3f
[ "BSD-3-Clause" ]
null
null
null
config/wsgi.py
zubbyik/git-cookie
3cee273877130cb37983ac9ae9bb9ca00601bf3f
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for cookie_site project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATIO...
45.581395
79
0.796939
8c677bdc337d41a8f3c51f25a8180f3b05fcff3b
27,086
py
Python
sympy/geometry/plane.py
yupbank/sympy
66d7aef9dc1b26055af22e27ba42004c40b95d7c
[ "BSD-3-Clause" ]
1
2021-11-19T03:38:42.000Z
2021-11-19T03:38:42.000Z
sympy/geometry/plane.py
yupbank/sympy
66d7aef9dc1b26055af22e27ba42004c40b95d7c
[ "BSD-3-Clause" ]
3
2022-02-04T14:45:16.000Z
2022-02-04T14:45:45.000Z
sympy/geometry/plane.py
yupbank/sympy
66d7aef9dc1b26055af22e27ba42004c40b95d7c
[ "BSD-3-Clause" ]
null
null
null
"""Geometrical Planes. Contains ======== Plane """ from sympy.core import Dummy, Rational, S, Symbol from sympy.core.symbol import _symbol from sympy.functions.elementary.trigonometric import cos, sin, acos, asin, sqrt from .entity import GeometryEntity from .line import (Line, Ray, Segment, Line3D, LinearEntity, Li...
30.53664
89
0.507716
2eda4baa616d44ac3c9449539453b03caff1b9d8
17,996
py
Python
src/Img/filters.py
souji-28/puzzle-python
c4ea07041e7fa617ebfe2c1cbf117eb345c7ce1e
[ "MIT" ]
60
2018-10-13T01:09:04.000Z
2022-03-19T18:44:17.000Z
src/python/Img/filters.py
bertrand-sifre/Zolver
b98bb7899b459ce4efef72b3abedc453005a0a25
[ "MIT" ]
5
2019-01-21T15:00:18.000Z
2022-02-18T14:24:28.000Z
src/python/Img/filters.py
bertrand-sifre/Zolver
b98bb7899b459ce4efef72b3abedc453005a0a25
[ "MIT" ]
15
2019-10-02T04:44:36.000Z
2021-12-24T20:52:03.000Z
import colorsys from colorsys import rgb_to_hls import cv2 import numpy as np import math, pickle, os from Img.Pixel import Pixel, flatten_colors from Puzzle.Edge import Edge from Puzzle.Enums import directions, TypeEdge from Puzzle.PuzzlePiece import PuzzlePiece import matplotlib.pyplot as plt import matplotlib impo...
35.635644
219
0.622083
1f0f9144cd9b1772e635bc457f7aa93f6e1dd456
2,443
py
Python
train.py
qingquansong/CSCE689
8f23ffed5dff3652499b8bba9075fd1c109f7056
[ "MIT" ]
null
null
null
train.py
qingquansong/CSCE689
8f23ffed5dff3652499b8bba9075fd1c109f7056
[ "MIT" ]
null
null
null
train.py
qingquansong/CSCE689
8f23ffed5dff3652499b8bba9075fd1c109f7056
[ "MIT" ]
null
null
null
import torch from torch.autograd import Variable import time import os import sys from utils import AverageMeter, calculate_accuracy def train_epoch(epoch, data_loader, model, criterion, optimizer, opt, epoch_logger, batch_logger): print('train at epoch {}'.format(epoch)) model.train() ...
29.792683
69
0.536226
430e338db9a22ccfcb1e9ef756c92e8664988e2b
131
py
Python
zpipe/utils/__init__.py
jheo4/zpipe
8cc3ac38b0f999ae4c1a29e63818457c4b7d6cf6
[ "MIT" ]
1
2020-06-28T02:31:08.000Z
2020-06-28T02:31:08.000Z
zpipe/utils/__init__.py
jheo4/zpipe
8cc3ac38b0f999ae4c1a29e63818457c4b7d6cf6
[ "MIT" ]
6
2020-06-28T01:52:45.000Z
2020-07-10T03:55:41.000Z
zpipe/utils/__init__.py
jheo4/zpipe
8cc3ac38b0f999ae4c1a29e63818457c4b7d6cf6
[ "MIT" ]
null
null
null
from .pickles import send_zero_copy from .pickles import recv_zero_copy from .pickles import pickle_keypoints from .ztypes import *
32.75
37
0.847328
2dfcb53b595e67627c600df6ce26b0fc296bc9e7
413
py
Python
proyecto_encuestas/wsgi.py
JCYanes/ProyectoEncuestas
a19ac8df5607f322bfce98c7edf5387987021a8a
[ "MIT" ]
null
null
null
proyecto_encuestas/wsgi.py
JCYanes/ProyectoEncuestas
a19ac8df5607f322bfce98c7edf5387987021a8a
[ "MIT" ]
null
null
null
proyecto_encuestas/wsgi.py
JCYanes/ProyectoEncuestas
a19ac8df5607f322bfce98c7edf5387987021a8a
[ "MIT" ]
null
null
null
""" WSGI config for proyecto_encuestas project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('D...
24.294118
78
0.79661
fc0f9da2eef29657ba68dfa3929ecd42789e1da6
13,112
py
Python
Astar/Astar_algorithm.py
ShervinAmbrose/Path-Finding-Algorithms-Visualised
ee93cfe98d2b9db13ba3cedaec6828b32d5de9f3
[ "MIT" ]
null
null
null
Astar/Astar_algorithm.py
ShervinAmbrose/Path-Finding-Algorithms-Visualised
ee93cfe98d2b9db13ba3cedaec6828b32d5de9f3
[ "MIT" ]
null
null
null
Astar/Astar_algorithm.py
ShervinAmbrose/Path-Finding-Algorithms-Visualised
ee93cfe98d2b9db13ba3cedaec6828b32d5de9f3
[ "MIT" ]
1
2021-10-02T03:36:30.000Z
2021-10-02T03:36:30.000Z
import pygame import sys import math import random ''' Change this to change the screen size and number of boxes recommended is WIN = 800, ROWS = 50 you can aslo change it to WIN = 400, ROWS = 25 ''' WIN = 800 ROWS = 50 CAPTION = 'A* path finding algorithm' SCREEN = pygame.display.set_mode((WIN, WIN)) '''Number of pa...
36.121212
173
0.515024
9365366b67c4d4be66f707509648d03770ee12ee
17,614
py
Python
src/olympia/scanners/tasks.py
dnutiu/addons-server
f42e8d44fc21bf9d40968b1732f62d8465a8389e
[ "BSD-3-Clause" ]
1
2020-11-30T18:58:30.000Z
2020-11-30T18:58:30.000Z
src/olympia/scanners/tasks.py
dnutiu/addons-server
f42e8d44fc21bf9d40968b1732f62d8465a8389e
[ "BSD-3-Clause" ]
null
null
null
src/olympia/scanners/tasks.py
dnutiu/addons-server
f42e8d44fc21bf9d40968b1732f62d8465a8389e
[ "BSD-3-Clause" ]
null
null
null
import os import uuid from django.conf import settings import requests import waffle import yara from django_statsd.clients import statsd import olympia.core.logger from olympia import amo from olympia.amo.celery import create_chunked_tasks_signatures, task from olympia.amo.decorators import use_primary_db from ol...
36.094262
79
0.644544
15ce7420a0e24295159ce14d6794de9cbeea0a07
959
py
Python
MovingFile.py
3n5/functions-python
be42f7b2108f8ed481956ce1c1ddc356c4ce17d6
[ "MIT" ]
2
2020-12-29T06:32:43.000Z
2020-12-29T06:32:45.000Z
MovingFile.py
h4r3/functions-python
be42f7b2108f8ed481956ce1c1ddc356c4ce17d6
[ "MIT" ]
null
null
null
MovingFile.py
h4r3/functions-python
be42f7b2108f8ed481956ce1c1ddc356c4ce17d6
[ "MIT" ]
null
null
null
"""Move the files that match the csv list to another folder.""" def file_move_based_on_csv(): import shutil import glob import csv _from=r'C:/Users/USER/Desktop/_from' #Source directory #[[apple],[banana],[grape]] _to=r'C:/Users/USER/Desktop/_to' #Destination Directory [] _csv=r'C:/Us...
41.695652
87
0.53806
ac411e7fb7644e0ef64a2f57c840fed485752ba4
19,658
py
Python
yauber_algo/_algo/tests/test_featurewiz_apply.py
LongNguyen1012/yauber-algo
40f7d805408a788e7f363ec02d3315ff379cc069
[ "MIT" ]
1
2019-02-09T15:34:34.000Z
2019-02-09T15:34:34.000Z
yauber_algo/_algo/tests/test_featurewiz_apply.py
LongNguyen1012/yauber-algo
40f7d805408a788e7f363ec02d3315ff379cc069
[ "MIT" ]
null
null
null
yauber_algo/_algo/tests/test_featurewiz_apply.py
LongNguyen1012/yauber-algo
40f7d805408a788e7f363ec02d3315ff379cc069
[ "MIT" ]
2
2018-10-10T16:01:59.000Z
2018-11-27T16:50:56.000Z
import unittest from yauber_algo.errors import * class ApplyTestCase(unittest.TestCase): def test_percent_rank_category(self): import yauber_algo.sanitychecks as sc from numpy import array, nan, inf import os import sys import pandas as pd import numpy as np ...
32.983221
80
0.303744
c8adebe0a9b393298ed3581f18877962497bd05d
10,336
py
Python
sdk/python/pulumi_azure_native/apimanagement/v20191201/notification_recipient_user.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20191201/notification_recipient_user.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20191201/notification_recipient_user.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
49.932367
1,733
0.685178
e416282f8fbefd82b41349bdfbe90a9d976edf76
346
py
Python
src/aims_ui/table_utils.py
ONSdigital/address-index-ui
57867604744f7bf6e2d596fc649bb8d3bf9baf11
[ "MIT" ]
null
null
null
src/aims_ui/table_utils.py
ONSdigital/address-index-ui
57867604744f7bf6e2d596fc649bb8d3bf9baf11
[ "MIT" ]
1
2022-03-11T20:46:21.000Z
2022-03-11T20:46:21.000Z
src/aims_ui/table_utils.py
ONSdigital/address-index-ui
57867604744f7bf6e2d596fc649bb8d3bf9baf11
[ "MIT" ]
1
2021-04-11T08:02:33.000Z
2021-04-11T08:02:33.000Z
def create_table(table_headers, table_rows): """Given array of table headers, and an array of arrays for each row, format as table""" ths = [{'value': header_name} for header_name in table_headers] trs = [{ 'tds': [{ 'value': col_val } for col_val in row] } for row in table_rows] return...
31.454545
90
0.635838
9bdc9b56996ef117cc846c8408d3e5dc9ccd5fa9
1,147
py
Python
_zadania/2_python_controlflow/comprehension_dict_c.py
Khayn/2021-12-elearning-pythonana
a54e407adc8fb8c3a5fd2522735ae09cdef6540a
[ "MIT" ]
null
null
null
_zadania/2_python_controlflow/comprehension_dict_c.py
Khayn/2021-12-elearning-pythonana
a54e407adc8fb8c3a5fd2522735ae09cdef6540a
[ "MIT" ]
null
null
null
_zadania/2_python_controlflow/comprehension_dict_c.py
Khayn/2021-12-elearning-pythonana
a54e407adc8fb8c3a5fd2522735ae09cdef6540a
[ "MIT" ]
null
null
null
""" * Assignment: Comprehension Dict Reverse * Required: yes * Complexity: easy * Lines of code: 1 lines * Time: 3 min English: 1. Use dict comprehension to reverse dict: that is: change keys for values and values for keys 2. Run doctests - all must succeed Polish: 1. Użyj rozwinięcia słownikowego ...
23.895833
65
0.625109
0015aef0840b512b0935c1270f8969bd1f363388
5,247
py
Python
main.py
cody-shearer/mtg-data-load
bb4bee53edf8269903dcdce6d035300f7cf13b5f
[ "Apache-2.0" ]
null
null
null
main.py
cody-shearer/mtg-data-load
bb4bee53edf8269903dcdce6d035300f7cf13b5f
[ "Apache-2.0" ]
null
null
null
main.py
cody-shearer/mtg-data-load
bb4bee53edf8269903dcdce6d035300f7cf13b5f
[ "Apache-2.0" ]
null
null
null
# This file will run on startup and update card data. # All vintage legal, non token, non rear facing creature cards will be loaded. # Data is stored in a local MariaDB instance and in the file system. # All card data is pulled from the Scryfall API Oracle Card data set found here https://scryfall.com/docs/api/bulk-da...
29.477528
188
0.581475
18ccf2d33ad60893ed9bdaf8bdebc6026ae90390
3,568
py
Python
pymc/tests/test_convergence.py
CamDavidsonPilon/pymc
26f05e60d0d414e8c3dc59d4d8fabe3ae3cfbcf9
[ "MIT" ]
1
2019-03-02T09:28:34.000Z
2019-03-02T09:28:34.000Z
pymc/tests/test_convergence.py
kforeman/pymc
5783207904097c7443bfa834c0dbcc68aa38fb76
[ "MIT" ]
null
null
null
pymc/tests/test_convergence.py
kforeman/pymc
5783207904097c7443bfa834c0dbcc68aa38fb76
[ "MIT" ]
3
2015-05-11T06:17:00.000Z
2019-06-17T23:22:46.000Z
# # # Test of convergence diagnostics # # from __future__ import with_statement from numpy.testing import assert_equal, assert_array_equal, assert_approx_equal, TestCase import unittest import numpy as np import pymc import pymc.examples.weibull_fit as model import os import warnings import copy S = pymc.MCMC(model,...
31.575221
89
0.627803
bccd03aee10ff6467b759416d0a4cd969dea3d1d
3,176
py
Python
meraki_sdk/models/update_organization_branding_policy_model.py
meraki/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
37
2019-04-24T14:01:33.000Z
2022-01-28T01:37:21.000Z
meraki_sdk/models/update_organization_branding_policy_model.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
10
2019-07-09T16:35:11.000Z
2021-12-07T03:47:53.000Z
meraki_sdk/models/update_organization_branding_policy_model.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
17
2019-04-30T23:53:21.000Z
2022-02-07T22:57:44.000Z
# -*- coding: utf-8 -*- """ meraki_sdk This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ import meraki_sdk.models.admin_settings_model import meraki_sdk.models.help_settings_1_model class UpdateOrganizationBrandingPolicyModel(object): """Impleme...
36.930233
177
0.634446
29e852a50ccd38ddc1a5ef2502d94131095c12a8
567
py
Python
userbot/plugins/bye.py
n8wachT/telegrrrrrr
ad254bda0710c1a38dae21f84a45cf94031fa66d
[ "MIT" ]
null
null
null
userbot/plugins/bye.py
n8wachT/telegrrrrrr
ad254bda0710c1a38dae21f84a45cf94031fa66d
[ "MIT" ]
null
null
null
userbot/plugins/bye.py
n8wachT/telegrrrrrr
ad254bda0710c1a38dae21f84a45cf94031fa66d
[ "MIT" ]
null
null
null
# For @UniBorg # Courtesy @yasirsiddiqui """ .leave """ from telethon.tl.functions.channels import LeaveChannelRequest from userbot.utils import admin_cmd import time @borg.on(admin_cmd("bye", outgoing=True)) async def leave(e): if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"): ...
14.921053
73
0.594356
627793941435a3f084ac4e5115c255a0a002bb47
2,050
py
Python
qiskit/providers/ibmq/job/utils.py
Sahar2/qiskit-ibmq-provider
a7fa886f5b34123bf7bb903840e32b1bf4cc30b5
[ "Apache-2.0" ]
1
2020-07-14T20:09:52.000Z
2020-07-14T20:09:52.000Z
qiskit/providers/ibmq/job/utils.py
Sahar2/qiskit-ibmq-provider
a7fa886f5b34123bf7bb903840e32b1bf4cc30b5
[ "Apache-2.0" ]
null
null
null
qiskit/providers/ibmq/job/utils.py
Sahar2/qiskit-ibmq-provider
a7fa886f5b34123bf7bb903840e32b1bf4cc30b5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
31.538462
88
0.681463
ccf767d357292de4362302b8eb9b50f1b9ba7416
22,256
py
Python
test/functional/test_framework/mininode.py
lihuanghai/bitcoin
624da15f8c55219f4ca3e0877a17799990299504
[ "MIT" ]
3
2021-11-15T14:58:10.000Z
2021-11-17T09:59:42.000Z
test/functional/test_framework/mininode.py
lihuanghai/bitcoin
624da15f8c55219f4ca3e0877a17799990299504
[ "MIT" ]
1
2017-01-08T20:32:43.000Z
2017-01-08T20:32:43.000Z
test/functional/test_framework/mininode.py
lihuanghai/bitcoin
624da15f8c55219f4ca3e0877a17799990299504
[ "MIT" ]
1
2019-09-02T00:49:46.000Z
2019-09-02T00:49:46.000Z
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Bitcoin P2P ...
40.539162
182
0.649937
b926d175e8b4cf6ebcae58efc449be5ad52207b9
18,648
py
Python
nova/tests/api/openstack/compute/plugins/v3/test_keypairs.py
SnabbCo/nova
d156d7fdf241569da2c27ae02ec88e6ef448f7e2
[ "Apache-2.0" ]
2
2016-04-19T08:20:39.000Z
2021-10-03T16:00:37.000Z
nova/tests/api/openstack/compute/plugins/v3/test_keypairs.py
SnabbCo/nova
d156d7fdf241569da2c27ae02ec88e6ef448f7e2
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/plugins/v3/test_keypairs.py
SnabbCo/nova
d156d7fdf241569da2c27ae02ec88e6ef448f7e2
[ "Apache-2.0" ]
1
2020-07-24T06:34:03.000Z
2020-07-24T06:34:03.000Z
# Copyright 2011 Eldar Nugaev # 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 ...
39.424947
79
0.61036
20d8f1aed3be39447ba8899b5f580669c3afed1f
76
py
Python
Ygdra.Python/ygdra/__init__.py
bsherwin/ProjectY
1fdbc595030c006b252530e685a6d4fd313a13c2
[ "MIT" ]
null
null
null
Ygdra.Python/ygdra/__init__.py
bsherwin/ProjectY
1fdbc595030c006b252530e685a6d4fd313a13c2
[ "MIT" ]
null
null
null
Ygdra.Python/ygdra/__init__.py
bsherwin/ProjectY
1fdbc595030c006b252530e685a6d4fd313a13c2
[ "MIT" ]
null
null
null
from .ygdra import * from .dataprofile import * from .lambdaYgdra import *
15.2
26
0.75
1a1a98422eca65eed3ccbc8120c323eebc7ef9c4
1,347
py
Python
wyrd/constrained_types/primitives.py
meadsteve/constrained_types
2a3b87a0b14be70ee2de963acf0eebf302dfe1d9
[ "MIT" ]
1
2021-05-03T08:53:33.000Z
2021-05-03T08:53:33.000Z
wyrd/constrained_types/primitives.py
meadsteve/constrained_types
2a3b87a0b14be70ee2de963acf0eebf302dfe1d9
[ "MIT" ]
16
2020-10-11T07:46:39.000Z
2020-10-25T13:29:05.000Z
wyrd/constrained_types/primitives.py
meadsteve/constrained_types
2a3b87a0b14be70ee2de963acf0eebf302dfe1d9
[ "MIT" ]
null
null
null
from typing import Any, ClassVar, List from .core import Constrained, Constraint from .helpers import validate class ConstrainedInt(int, Constrained[int]): _constraints: ClassVar[List[Constraint]] = [] def __init__(self, value: Any): super(int, self).__init__() self._validate(self) @cla...
24.053571
50
0.668151
641560f6de282f94cacc78333ab05b94c4181fa6
2,110
py
Python
package/spack-savanna/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-savanna/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-savanna/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
40.576923
78
0.671564
9c6ea378f78734db2a600c111810107590bf502a
4,129
py
Python
setup.py
fatelei/sqlfluff
c5bdd2203c75df7b98ed233a9b36e5628cd43c90
[ "MIT" ]
3,024
2020-10-01T11:03:51.000Z
2022-03-31T16:42:00.000Z
setup.py
fatelei/sqlfluff
c5bdd2203c75df7b98ed233a9b36e5628cd43c90
[ "MIT" ]
2,395
2020-09-30T12:59:21.000Z
2022-03-31T22:05:29.000Z
setup.py
fatelei/sqlfluff
c5bdd2203c75df7b98ed233a9b36e5628cd43c90
[ "MIT" ]
246
2020-10-02T17:08:03.000Z
2022-03-30T17:43:51.000Z
#!/usr/bin/env python """The script for setting up sqlfluff.""" import sys if sys.version_info[0] < 3: raise Exception("SQLFluff does not support Python 2. Please upgrade to Python 3.") import configparser from os.path import dirname from os.path import join from setuptools import find_packages, setup # Get...
32.007752
90
0.604747
675a5c3108ff79c3c584239320584e006708a20d
273
py
Python
setup.py
searchivarius/DeepNLP-models-Pytorch
91a40f767a6ac0ba7004f1bc015ad8a5debf4203
[ "MIT" ]
3,067
2017-11-10T01:25:25.000Z
2022-03-31T08:41:25.000Z
setup.py
fanlidublin/DeepNLP-models-Pytorch
ceeb4221b176790229cd20c6ca4c05f625bdf02e
[ "MIT" ]
12
2017-11-17T08:33:39.000Z
2021-04-25T14:43:30.000Z
setup.py
fanlidublin/DeepNLP-models-Pytorch
ceeb4221b176790229cd20c6ca4c05f625bdf02e
[ "MIT" ]
729
2017-11-10T01:35:33.000Z
2022-03-31T08:41:33.000Z
from distutils.core import setup from Cython.Build import cythonize from Cython.Distutils import build_ext from distutils.extension import Extension setup(name="Corpus",cmdclass = {'build_ext': build_ext},ext_modules = [Extension("Corpus", ["Corpus.pyx"],language='c++')])
45.5
123
0.783883
30d7779dec522ffda896f3a19f77563b8a92f827
6,320
py
Python
presqt/targets/zenodo/functions/fetch.py
craig-willis/presqt
b920527bf8998696f516d65a50f0a5c3862c4558
[ "Apache-2.0" ]
null
null
null
presqt/targets/zenodo/functions/fetch.py
craig-willis/presqt
b920527bf8998696f516d65a50f0a5c3862c4558
[ "Apache-2.0" ]
null
null
null
presqt/targets/zenodo/functions/fetch.py
craig-willis/presqt
b920527bf8998696f516d65a50f0a5c3862c4558
[ "Apache-2.0" ]
null
null
null
import requests from rest_framework import status from presqt.targets.zenodo.utilities import ( zenodo_validation_check, zenodo_fetch_resources_helper, zenodo_fetch_resource_helper) from presqt.utilities import PresQTValidationError, PresQTResponseException def zenodo_fetch_resources(token, search_parameter): ...
40
104
0.580854
8e7c9eba66bcb1d687d080e938aaf337453f49d1
2,655
py
Python
tests/model/model_constructor_test.py
nickgaya/bravado-core
16e752963bfceb4adfa43724085bc4127eefcd59
[ "BSD-3-Clause" ]
122
2015-04-22T17:31:18.000Z
2021-11-08T10:29:57.000Z
tests/model/model_constructor_test.py
nickgaya/bravado-core
16e752963bfceb4adfa43724085bc4127eefcd59
[ "BSD-3-Clause" ]
364
2015-04-10T22:19:23.000Z
2022-02-25T08:55:10.000Z
tests/model/model_constructor_test.py
nickgaya/bravado-core
16e752963bfceb4adfa43724085bc4127eefcd59
[ "BSD-3-Clause" ]
118
2015-04-20T15:11:53.000Z
2021-12-09T10:03:34.000Z
# -*- coding: utf-8 -*- import pytest from bravado_core.schema import collapsed_properties def test_simple(user_type, user_kwargs): user = user_type(**user_kwargs) assert user.firstName == 'Darwin' assert user.userStatus == 9 assert user.id == 999 assert user.lastName is None assert user.emai...
33.1875
89
0.700565
6909bf3508e24903ccbc8d53cbe01dd9b0e6a191
70
py
Python
main.py
deut-erium/pyfractal
d62d1d3e8e34924c4272b171d82d62f47a1d1745
[ "MIT" ]
12
2020-05-30T13:53:11.000Z
2021-08-17T04:56:01.000Z
main.py
deut-erium/pyfractal
d62d1d3e8e34924c4272b171d82d62f47a1d1745
[ "MIT" ]
1
2020-05-30T10:56:15.000Z
2020-05-30T13:55:05.000Z
main.py
deut-erium/pyfractal
d62d1d3e8e34924c4272b171d82d62f47a1d1745
[ "MIT" ]
null
null
null
from pyfractal import GUI if __name__ == '__main__': GUI().run()
14
26
0.657143
b64b8f242d6dac3e1d306f9cb946681cd37d5b3c
3,445
py
Python
src/val_lfw.py
yangfly/insightface
82bc323e0362580a4b5a793393c2dca05551270b
[ "MIT" ]
18
2019-05-14T06:41:46.000Z
2021-12-24T02:15:42.000Z
repos/insightface/src/val_lfw.py
batermj/DeepVideoAnalytics
daad116b87370fce1799b7948af73b92f617cf41
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
repos/insightface/src/val_lfw.py
batermj/DeepVideoAnalytics
daad116b87370fce1799b7948af73b92f617cf41
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
3
2018-03-29T08:18:58.000Z
2020-06-29T11:43:50.000Z
from __future__ import division import numpy as np import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), 'eval')) import lfw import sklearn from sklearn.decomposition import PCA lfw_dir = '/raid5data/dplearn/lfw_mtcnn2' lfw_pairs = lfw.read_pairs(os.path.join(lfw_dir, 'pairs.txt')) lfw_paths, i...
37.043011
140
0.67402
a5c008801b6907bd7a5f886c5256330ddff1ecd3
6,604
py
Python
hyppo/independence/kmerf.py
zdbzdb1212/hyppo
5092beedec0a0c13ffa69f7a77f4ee30f3294256
[ "MIT" ]
1
2021-12-14T10:32:18.000Z
2021-12-14T10:32:18.000Z
hyppo/independence/kmerf.py
zdbzdb1212/hyppo
5092beedec0a0c13ffa69f7a77f4ee30f3294256
[ "MIT" ]
null
null
null
hyppo/independence/kmerf.py
zdbzdb1212/hyppo
5092beedec0a0c13ffa69f7a77f4ee30f3294256
[ "MIT" ]
2
2021-11-03T19:34:39.000Z
2021-11-30T19:28:40.000Z
from typing import NamedTuple import numpy as np from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from sklearn.metrics import pairwise_distances from ._utils import _CheckInputs, sim_matrix from .base import IndependenceTest from .dcorr import _dcorr FOREST_TYPES = { "classifier": Rando...
35.12766
88
0.602059
ba1f5244d61e9c47da19cb867237941e08bc843a
141
py
Python
web/Viewer/urls.py
carstenfuchs/hallcam
4ef0d805d1b28918aa6ab0a078b1e1668c0aac27
[ "MIT" ]
null
null
null
web/Viewer/urls.py
carstenfuchs/hallcam
4ef0d805d1b28918aa6ab0a078b1e1668c0aac27
[ "MIT" ]
null
null
null
web/Viewer/urls.py
carstenfuchs/hallcam
4ef0d805d1b28918aa6ab0a078b1e1668c0aac27
[ "MIT" ]
null
null
null
from django.urls import path from .views import welcome app_name = 'viewer' urlpatterns = [ path('', welcome.view, name='welcome'), ]
14.1
43
0.687943
a91d591251f0d2cf4b6860812a53dcda668a72d9
7,375
py
Python
src/main/python/programmingtheiot/cda/system/SensorAdapterManager.py
NULishengZhang/piot-python-components
006674bc42443bb2a843bfd7dfa5b55be9843961
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/system/SensorAdapterManager.py
NULishengZhang/piot-python-components
006674bc42443bb2a843bfd7dfa5b55be9843961
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/system/SensorAdapterManager.py
NULishengZhang/piot-python-components
006674bc42443bb2a843bfd7dfa5b55be9843961
[ "MIT" ]
null
null
null
##### # # This class is part of the Programming the Internet of Things project. # # It is provided as a simple shell to guide the student and assist with # implementation for the Programming the Internet of Things exercises, # and designed to be modified by the student as needed. # import logging from importlib imp...
42.877907
176
0.687458