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
a082499766e01b8416387c8b260647f328d736b5
374
py
Python
src/config_writer.py
premkamal13/my-ai-assistant
8c2e60cf74ae36d0ad1177430651f34a59230f52
[ "MIT" ]
1
2019-07-12T07:40:47.000Z
2019-07-12T07:40:47.000Z
src/config_writer.py
premkamal13/my-ai-assistant
8c2e60cf74ae36d0ad1177430651f34a59230f52
[ "MIT" ]
null
null
null
src/config_writer.py
premkamal13/my-ai-assistant
8c2e60cf74ae36d0ad1177430651f34a59230f52
[ "MIT" ]
null
null
null
import configparser config = configparser.ConfigParser() config['APP_INFO'] = {'ASSISTANT_NAME': 'Agamya','USER_NAME': 'Kamal'} # replace the DEMO keyword with actual wolfram app id # Note to @self: Use the gitignored version of this file to find id config['APP_CREDS'] = {'WOLFRAM_APP_ID' : 'DEMO'} with open('.confi...
34
70
0.724599
e53c57b84ad82d2d57ee3d7b59ec385d89330759
295
py
Python
server/djangoapp/admin.py
findsemaine/agfzb-CloudAppDevelopment_Capstone
56498093059d881ca9f4120f01a0a6ba1bf98115
[ "Apache-2.0" ]
null
null
null
server/djangoapp/admin.py
findsemaine/agfzb-CloudAppDevelopment_Capstone
56498093059d881ca9f4120f01a0a6ba1bf98115
[ "Apache-2.0" ]
null
null
null
server/djangoapp/admin.py
findsemaine/agfzb-CloudAppDevelopment_Capstone
56498093059d881ca9f4120f01a0a6ba1bf98115
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import CarMake, CarModel class CarModelInline(admin.StackedInline): model = CarModel extra = 5 class CarMakeAdmin(admin.ModelAdmin): inlines = [CarModelInline] admin.site.register(CarMake, CarMakeAdmin) admin.site.register(CarModel)
24.583333
42
0.776271
6f937596a34474eee812a1c703d7a57f6929d547
14,063
py
Python
sdk/python/pulumi_azure_nextgen/servicefabric/v20200101preview/get_managed_cluster.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/servicefabric/v20200101preview/get_managed_cluster.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/servicefabric/v20200101preview/get_managed_cluster.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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...
39.838527
477
0.66579
13421c8526cb0bc2abfffb443a3de65a7e65d089
295
py
Python
cnns/nnlib/datasets/resize.py
adam-dziedzic/time-series-ml
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
[ "Apache-2.0" ]
1
2018-03-25T13:19:46.000Z
2018-03-25T13:19:46.000Z
cnns/nnlib/datasets/resize.py
adam-dziedzic/time-series-ml
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
[ "Apache-2.0" ]
null
null
null
cnns/nnlib/datasets/resize.py
adam-dziedzic/time-series-ml
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
[ "Apache-2.0" ]
null
null
null
import cv2 import glob def resize_img(image_path, size): img = cv2.imread(image_path) img = cv2.resize(img,(size,size), interpolation = cv2.INTER_CUBIC) cv2.imwrite(image_path,img) all_images = glob.glob('tiny-224/*/*/*/*') for image in all_images: resize_img(image, 224)
22.692308
70
0.691525
338b7764e3b4aa993e69e9770c4cb9a8b02cbf74
332
py
Python
sanskrit_parser/generator/generator.py
avinashvarna/sanskrit_parser
79338213128b29927fe2f06031379bb1e3864a83
[ "MIT" ]
54
2017-06-30T09:11:53.000Z
2022-03-22T15:35:41.000Z
sanskrit_parser/generator/generator.py
avinashvarna/sanskrit_parser
79338213128b29927fe2f06031379bb1e3864a83
[ "MIT" ]
159
2017-06-30T07:04:36.000Z
2021-06-17T17:03:43.000Z
sanskrit_parser/generator/generator.py
avinashvarna/sanskrit_parser
79338213128b29927fe2f06031379bb1e3864a83
[ "MIT" ]
18
2017-08-17T13:22:00.000Z
2022-01-20T01:08:58.000Z
# -*- coding: utf-8 -*- """ Intro ===== Experimental Sanskrit pada generator Process 1. PrakRiti (dhatu / prAtipadika) 2. pratyaya addition 2.a strIpratyaya 2.b samAsa 3. prakRti / pratyaya transformations 4. aNga transformations 5. prakRti + pratyaya sandhi 6. pada sandhi @author: Karthik Madathil (github: @kma...
15.809524
46
0.71988
8c9567c23bbf35dd4975851e8748ddb2077697ad
2,554
py
Python
project/tools/wrapper/__main__.py
GaetanLongree/MASI-TFE
f632e80d4e9772216821f9b00a3374e1c3903cb5
[ "MIT" ]
null
null
null
project/tools/wrapper/__main__.py
GaetanLongree/MASI-TFE
f632e80d4e9772216821f9b00a3374e1c3903cb5
[ "MIT" ]
null
null
null
project/tools/wrapper/__main__.py
GaetanLongree/MASI-TFE
f632e80d4e9772216821f9b00a3374e1c3903cb5
[ "MIT" ]
null
null
null
import getopt import sys import traceback from . import debug, setup, cleanup, execution, runtime_info, workload_manager, module_handler, api_communicator def main(argv): try: opts, args = getopt.getopt(argv, "i:") except getopt.GetoptError: debug.log("Error in the command parameters") ...
36.485714
112
0.59397
786b85b71bd8a8364dbc2d9f954d8be87afb261e
852
py
Python
microrpc/server.py
jasonjohnson/microrpc
96bd3836c43a7fec5bf71b773d66f0f019d5f675
[ "MIT" ]
null
null
null
microrpc/server.py
jasonjohnson/microrpc
96bd3836c43a7fec5bf71b773d66f0f019d5f675
[ "MIT" ]
null
null
null
microrpc/server.py
jasonjohnson/microrpc
96bd3836c43a7fec5bf71b773d66f0f019d5f675
[ "MIT" ]
null
null
null
import pickle from socketserver import BaseRequestHandler, TCPServer, ThreadingMixIn class Handler(BaseRequestHandler): def handle(self): while True: buff = bytearray() while not buff.endswith(b'.'): buff += self.request.recv(256) method, args, kwargs =...
25.818182
70
0.584507
c3c1b93d1243f1ded99ea5049be502ae2ecc46f0
4,693
py
Python
.history/awards/settings_20201129191246.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
.history/awards/settings_20201129191246.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
.history/awards/settings_20201129191246.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
""" Django settings for awards project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os impo...
25.644809
91
0.691242
9c3929081e0b239e8030339b99d88fd9478999ca
3,117
py
Python
mars/services/lifecycle/api/web.py
haijohn/mars
672b3a33a70565f01b1a3f508908445491d85acf
[ "Apache-2.0" ]
1
2021-06-10T02:43:01.000Z
2021-06-10T02:43:01.000Z
mars/services/lifecycle/api/web.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
mars/services/lifecycle/api/web.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding 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 a...
41.013158
81
0.72281
1dbd6d4ba9850c6c888e563cf8d747312616d463
10,009
py
Python
pyion2json/test_pyion2json.py
crouchcd/pyion2json
20d84c24052a877aa81f473a57cc9360adbabc15
[ "MIT" ]
3
2020-05-01T20:22:16.000Z
2020-12-09T14:03:56.000Z
pyion2json/test_pyion2json.py
crouchcd/pyion2json
20d84c24052a877aa81f473a57cc9360adbabc15
[ "MIT" ]
null
null
null
pyion2json/test_pyion2json.py
crouchcd/pyion2json
20d84c24052a877aa81f473a57cc9360adbabc15
[ "MIT" ]
null
null
null
import unittest import json import amazon.ion.simpleion as ion from pyion2json import ion_cursor_to_json _ION_NULLS = """[ null, null.null, // Identical to unadorned null null.bool, null.int, null.float, null.decimal, null.timestamp, null.string, null.symbol, null.blob, ...
29.438235
102
0.570187
9dff15a20ac27b9469cf8409889d721dd36f7686
534
py
Python
event/migrations/0017_auto_20200814_2151.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
event/migrations/0017_auto_20200814_2151.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
21
2019-02-14T02:47:34.000Z
2022-01-23T02:22:54.000Z
event/migrations/0017_auto_20200814_2151.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-15 01:51 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('team', '0017_auto_20200713_2157'), ('wagtailcore', '0052_pagelogentry'), ('event', '0016_auto_20200814_2141'), ] operations = [ migr...
22.25
47
0.576779
d1103e9f056445e64f726b4e069e026f211347c3
6,122
py
Python
ppr-api/src/ppr_api/models/test_search.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
null
null
null
ppr-api/src/ppr_api/models/test_search.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
2
2021-01-25T22:06:58.000Z
2021-01-25T22:07:01.000Z
ppr-api/src/ppr_api/models/test_search.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
null
null
null
# Copyright © 2021 Province of British Columbia # # 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 agr...
42.513889
117
0.645541
cf52179226a6fc57df431857bfc47f5c4335a01b
20,066
py
Python
custominstall.py
JustSch/custom-install
9ffc854bfce41f05b80a8dc85dd8636d0939bd57
[ "MIT" ]
null
null
null
custominstall.py
JustSch/custom-install
9ffc854bfce41f05b80a8dc85dd8636d0939bd57
[ "MIT" ]
null
null
null
custominstall.py
JustSch/custom-install
9ffc854bfce41f05b80a8dc85dd8636d0939bd57
[ "MIT" ]
null
null
null
# This file is a part of custom-install.py. # # custom-install is copyright (c) 2019-2020 Ian Burgwin # This file is licensed under The MIT License (MIT). # You can find the full license text in LICENSE.md in the root of this project. from argparse import ArgumentParser from os import makedirs, scandir from os.path im...
41.203285
148
0.547144
5e886667e495d30bf864d224193f954c5d8267bd
1,145
py
Python
returns/pointfree/cond.py
thecoblack/returns
ad76d4c5282ce53213cad57dc550e5b4565e2b48
[ "BSD-2-Clause" ]
null
null
null
returns/pointfree/cond.py
thecoblack/returns
ad76d4c5282ce53213cad57dc550e5b4565e2b48
[ "BSD-2-Clause" ]
null
null
null
returns/pointfree/cond.py
thecoblack/returns
ad76d4c5282ce53213cad57dc550e5b4565e2b48
[ "BSD-2-Clause" ]
null
null
null
from typing import Callable, Type, TypeVar from returns.interfaces.specific.result import ResultLikeN from returns.methods.cond import internal_cond from returns.primitives.hkt import Kind2, Kinded, kinded _ValueType = TypeVar('_ValueType') _ErrorType = TypeVar('_ErrorType') _ResultKind = TypeVar('_ResultKind', boun...
30.131579
80
0.69345
d3cda9d52e5f426b1c6f178552630f4c1c4408a4
114,138
py
Python
PPP/global_variables.py
nostrumbiodiscovery/PPP
7e5c948e5a5a8fd05f7024f9eb4513e85b6ac54d
[ "Apache-2.0" ]
null
null
null
PPP/global_variables.py
nostrumbiodiscovery/PPP
7e5c948e5a5a8fd05f7024f9eb4513e85b6ac54d
[ "Apache-2.0" ]
null
null
null
PPP/global_variables.py
nostrumbiodiscovery/PPP
7e5c948e5a5a8fd05f7024f9eb4513e85b6ac54d
[ "Apache-2.0" ]
1
2020-10-01T13:54:07.000Z
2020-10-01T13:54:07.000Z
default_supported_aminoacids = ["ALA", "ARG", "ASH", "ASN", "ASP", "CYS", "CYT", "GLH", "GLN", "GLU", "GLY", "HID", "HIE", "HIS", "HIP", "ILE", "LEU", "LYS", "LYN", "MET", "PHE", "PRO", "PTR", "SER", "TRP", "THR", "TYR", "VAL", "ACE", "NMA"] aminoa...
52.094021
156
0.325895
ab2c4cc62e2c4375c03fa7576732d8a2a67653ad
746
py
Python
setup.py
RichardPan01/wechat_articles_spider
b91385603cd0e09d76e96fc1876f75c8f22c43f2
[ "Apache-2.0" ]
null
null
null
setup.py
RichardPan01/wechat_articles_spider
b91385603cd0e09d76e96fc1876f75c8f22c43f2
[ "Apache-2.0" ]
null
null
null
setup.py
RichardPan01/wechat_articles_spider
b91385603cd0e09d76e96fc1876f75c8f22c43f2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="wechatarticles", version="0.5.7", author="wnma3mz", author_email="wnma3mz@gmail.com", description="wechat articles scrapy", long_description=long_desc...
28.692308
61
0.662198
8547cc6a3a41ed2ad00b01b2126b131f3048cfce
50,522
py
Python
mmseg/ops/tensor_color_jitter.py
openseg-group/mmsegmentation
23939f09d2b0bd30fc26eb7f8af974f1f5441210
[ "Apache-2.0" ]
2
2020-07-10T12:13:56.000Z
2020-11-09T07:09:29.000Z
mmseg/ops/tensor_color_jitter.py
openseg-group/mmsegmentation
23939f09d2b0bd30fc26eb7f8af974f1f5441210
[ "Apache-2.0" ]
null
null
null
mmseg/ops/tensor_color_jitter.py
openseg-group/mmsegmentation
23939f09d2b0bd30fc26eb7f8af974f1f5441210
[ "Apache-2.0" ]
2
2020-07-28T09:12:55.000Z
2021-01-04T07:49:59.000Z
import warnings from typing import Optional, Dict, Tuple import torch from torch import Tensor from torch.nn.functional import grid_sample, conv2d, interpolate, pad as torch_pad from torch.jit.annotations import List, BroadcastingList2 def _is_tensor_a_torch_image(x: Tensor) -> bool: return x.ndim >= 2 def _ge...
38.833205
119
0.643066
112b0f7d095701eeb2325ef241d8653a506ec96b
12,065
py
Python
tools/custom_check.py
tuhinspatra/tyro-zulip-bot
29c149af1b01955e50564e31cff03331fa723880
[ "MIT" ]
1
2020-05-25T11:52:31.000Z
2020-05-25T11:52:31.000Z
tools/custom_check.py
armag-pro/tyro-zulip-bot
29c149af1b01955e50564e31cff03331fa723880
[ "MIT" ]
6
2020-03-24T16:39:54.000Z
2021-04-30T20:46:43.000Z
tools/custom_check.py
tuhinspatra/tyro-zulip-bot
29c149af1b01955e50564e31cff03331fa723880
[ "MIT" ]
3
2019-01-26T21:40:16.000Z
2019-02-24T20:16:26.000Z
from __future__ import print_function from __future__ import absolute_import import os import re import traceback from server_lib.printer import print_err, colors from typing import cast, Any, Callable, Dict, List, Optional, Tuple def build_custom_checkers(by_lang): # type: (Dict[str, List[str]]) -> Tuple[Calla...
44.685185
113
0.5477
def56c559708e37e9d67fc12f0b9bb73e731bfeb
2,414
py
Python
src/sage/combinat/algebraic_combinatorics.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/algebraic_combinatorics.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/algebraic_combinatorics.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
r""" Algebraic combinatorics ======================= Quickref -------- .. TODO:: write it! Thematic tutorials ------------------ .. TODO:: get Sphinx to create those cross links properly - `Algebraic Combinatorics in Sage <../../../../thematic_tutorials/algebraic_combinatorics.html>`_ - `Lie Methods and Related Co...
34.485714
145
0.718724
137d123ef820285f36696eae718fe84dde3fb541
179,869
py
Python
CPAC/pipeline/cpac_pipeline.py
tbweng/C-PAC
12a1807865273891aa3a566429ac9fe76c12532c
[ "BSD-3-Clause" ]
null
null
null
CPAC/pipeline/cpac_pipeline.py
tbweng/C-PAC
12a1807865273891aa3a566429ac9fe76c12532c
[ "BSD-3-Clause" ]
null
null
null
CPAC/pipeline/cpac_pipeline.py
tbweng/C-PAC
12a1807865273891aa3a566429ac9fe76c12532c
[ "BSD-3-Clause" ]
null
null
null
import os import time import six import re import csv import shutil import pickle import copy import json import pandas as pd import pkg_resources as p import networkx as nx import logging as cb_logging from time import strftime import nipype import nipype.pipeline.engine as pe import nipype.interfaces.fsl as fsl imp...
43.185834
140
0.508654
f59b462e83ed414b199b14ae9b304e7700dd0fa8
4,061
py
Python
pmath/poset.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
4
2016-12-17T20:06:10.000Z
2021-11-19T04:45:29.000Z
pmath/poset.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
11
2021-01-06T05:35:11.000Z
2022-03-11T23:28:31.000Z
pmath/poset.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
3
2015-06-12T10:44:16.000Z
2021-07-26T18:39:47.000Z
__author__ = 'thor' from numpy import * import pandas as pd def set_containment_matrix(family_of_sets, family_of_sets_2=None): """ Computes the containment incidence matrix of two families of sets A and B, where A and B are specified by incidence matrices where rows index sets and columns index elements ...
39.813725
118
0.623246
e037b59c60bd785ae4466056b36a229119a55063
11,824
py
Python
ssvep_utils.py
DayBright-David/Leave-one-sub-out-CNN_SSVEP
7e24126b3b7db2b9331e5051be9fc34d3868f9ad
[ "MIT" ]
null
null
null
ssvep_utils.py
DayBright-David/Leave-one-sub-out-CNN_SSVEP
7e24126b3b7db2b9331e5051be9fc34d3868f9ad
[ "MIT" ]
null
null
null
ssvep_utils.py
DayBright-David/Leave-one-sub-out-CNN_SSVEP
7e24126b3b7db2b9331e5051be9fc34d3868f9ad
[ "MIT" ]
null
null
null
""" Utilities for CNN based SSVEP Classification """ import math import warnings warnings.filterwarnings('ignore') import numpy as np from scipy.signal import butter, filtfilt from keras.models import Sequential from keras.layers import Dense, Activation, Flatten, Dropout, Conv2D, BatchNormalization from keras.utils....
45.302682
122
0.646059
9ab2fe0309c7a4013b14876c816c249e51d5359a
3,355
py
Python
tests/builtin_support.py
pterjan/fastnumbers
c2511e7c51dd131e05d6c434dc0bd59d8e6b8919
[ "MIT" ]
null
null
null
tests/builtin_support.py
pterjan/fastnumbers
c2511e7c51dd131e05d6c434dc0bd59d8e6b8919
[ "MIT" ]
null
null
null
tests/builtin_support.py
pterjan/fastnumbers
c2511e7c51dd131e05d6c434dc0bd59d8e6b8919
[ "MIT" ]
null
null
null
"""Supporting definitions for the Python regression tests.""" import platform import unittest from typing import Any, Callable, Dict, Optional, Tuple __all__ = [ "run_with_locale", "cpython_only", ] # ======================================================================= # Decorator for running a function ...
32.892157
84
0.575857
04e1c105308f9ac78a38e7e7b8462d434a75e6d1
144,335
py
Python
core/controllers/acl_decorators_test.py
kaylahardie/oppia
e93ed02dfc7f654ef4fb62268c1a9b9d9ded30ec
[ "Apache-2.0" ]
null
null
null
core/controllers/acl_decorators_test.py
kaylahardie/oppia
e93ed02dfc7f654ef4fb62268c1a9b9d9ded30ec
[ "Apache-2.0" ]
1
2020-03-02T21:05:42.000Z
2020-03-03T07:09:51.000Z
core/controllers/acl_decorators_test.py
kaylahardie/oppia
e93ed02dfc7f654ef4fb62268c1a9b9d9ded30ec
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2017 The Oppia 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 requi...
42.06791
134
0.672567
6d2a059fff98e53f620ecbcc00e7b28b91ae46cb
3,076
py
Python
3_kmeans_linting.py
wbkdef/hettinger_mypy_linting_presentation
aa4729648bcb0291dc0e6f0a17bf663356746876
[ "MIT" ]
null
null
null
3_kmeans_linting.py
wbkdef/hettinger_mypy_linting_presentation
aa4729648bcb0291dc0e6f0a17bf663356746876
[ "MIT" ]
null
null
null
3_kmeans_linting.py
wbkdef/hettinger_mypy_linting_presentation
aa4729648bcb0291dc0e6f0a17bf663356746876
[ "MIT" ]
null
null
null
from typing import Tuple, Iterable, Sequence, List, Dict, DefaultDict from random import sample from math import fsum, sqrt from collections import defaultdict def partial(func, *args): "Rewrite functools.partial() in a way that doesn't confuse mypy" def inner(*moreargs): return func(*args, *moreargs)...
29.295238
124
0.608583
7139fd713cd686ff55ece5575cc43baf40b84b80
262
py
Python
chillchamber/apps/youtube.py
vesche/chillchamber
b6adc04958203b833a08b09f8c467b80f7d62a45
[ "MIT" ]
3
2020-11-19T15:56:28.000Z
2020-12-19T10:47:25.000Z
chillchamber/apps/youtube.py
vesche/chillchamber
b6adc04958203b833a08b09f8c467b80f7d62a45
[ "MIT" ]
1
2020-11-19T15:56:25.000Z
2020-11-28T03:02:53.000Z
chillchamber/apps/youtube.py
vesche/chillchamber
b6adc04958203b833a08b09f8c467b80f7d62a45
[ "MIT" ]
null
null
null
""" chillchamber.apps.youtube """ from chillchamber.common import App, run_command class YouTube(App): def __init__(self): super().__init__('YouTube') def run(self): run_command('/usr/bin/firefox -new-window https://www.youtube.com')
18.714286
75
0.671756
da08812e198e05e399f8373ac1ef3fe7389de318
2,629
py
Python
ninestargram_server/images/migrations/0001_initial.py
apJammanbo/ninestargram-server
6aaf5e49a4189da6df9af8afec921d97455d6841
[ "MIT" ]
null
null
null
ninestargram_server/images/migrations/0001_initial.py
apJammanbo/ninestargram-server
6aaf5e49a4189da6df9af8afec921d97455d6841
[ "MIT" ]
11
2020-09-05T20:04:21.000Z
2022-03-03T22:38:32.000Z
ninestargram_server/images/migrations/0001_initial.py
apJammanbo/ninestargram-server
6aaf5e49a4189da6df9af8afec921d97455d6841
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2018-08-19 06:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
38.661765
121
0.569038
789afce1a10546de99c09df5f9cbc0b9bdd9a244
1,133
py
Python
TA-linode/bin/ta_linode/aob_py3/cloudconnectlib/splunktacollectorlib/splunk_ta_import_declare.py
jriddle-linode/splunk-addon-linode
5954acd12ef88ab991365ef51072db68aed46aa1
[ "Apache-2.0" ]
11
2020-01-23T11:32:26.000Z
2021-09-23T09:24:02.000Z
TA-linode/bin/ta_linode/aob_py3/cloudconnectlib/splunktacollectorlib/splunk_ta_import_declare.py
jriddle-linode/splunk-addon-linode
5954acd12ef88ab991365ef51072db68aed46aa1
[ "Apache-2.0" ]
26
2019-07-15T02:38:22.000Z
2021-12-01T04:14:17.000Z
TA-linode/bin/ta_linode/aob_py3/cloudconnectlib/splunktacollectorlib/splunk_ta_import_declare.py
jriddle-linode/splunk-addon-linode
5954acd12ef88ab991365ef51072db68aed46aa1
[ "Apache-2.0" ]
6
2019-07-14T17:44:06.000Z
2020-11-17T17:33:23.000Z
# # Copyright 2021 Splunk 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 agreed to in writing, so...
34.333333
87
0.721977
6dcf94eecb7d892d8857dd6ff9c36c2e4fa0e304
66,068
py
Python
nltk/tree.py
PhanatosZou/nltk
750e488569b6f80c72ae6ca74eff90eae55e6c4e
[ "Apache-2.0" ]
null
null
null
nltk/tree.py
PhanatosZou/nltk
750e488569b6f80c72ae6ca74eff90eae55e6c4e
[ "Apache-2.0" ]
null
null
null
nltk/tree.py
PhanatosZou/nltk
750e488569b6f80c72ae6ca74eff90eae55e6c4e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Natural Language Toolkit: Text Trees # # Copyright (C) 2001-2019 NLTK Project # Author: Edward Loper <edloper@gmail.com> # Steven Bird <stevenbird1@gmail.com> # Peter Ljunglöf <peter.ljunglof@gu.se> # Nathan Bodenstab <bodenstab@cslu.ogi.edu> (tree transforms) # URL: <h...
36.909497
154
0.545741
fbd29548145504691706a2864fe3cc63a2cbbe04
6,428
py
Python
tests/test_utils.py
dkrm0/python-shaarli-client
3b5b2431b40a52bbf2b97f5a542e9ae9743c4723
[ "MIT" ]
30
2017-01-17T14:41:42.000Z
2022-03-18T12:27:52.000Z
tests/test_utils.py
dkrm0/python-shaarli-client
3b5b2431b40a52bbf2b97f5a542e9ae9743c4723
[ "MIT" ]
40
2017-01-15T00:00:24.000Z
2022-03-29T04:54:33.000Z
tests/test_utils.py
dkrm0/python-shaarli-client
3b5b2431b40a52bbf2b97f5a542e9ae9743c4723
[ "MIT" ]
9
2017-01-14T23:33:39.000Z
2022-03-26T23:41:28.000Z
"""Tests for Shaarli client utilities""" # pylint: disable=invalid-name import json from argparse import ArgumentParser from unittest import mock import pytest from requests import Response from shaarli_client.utils import format_response, generate_endpoint_parser @mock.patch('argparse.ArgumentParser.add_argument')...
31.509804
77
0.570317
4bc6e05dad4312f6fe21d3ca1352d6605b796ff6
451
py
Python
leetcode/subsets.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
leetcode/subsets.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
leetcode/subsets.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
class Solution: def subsets(self, nums: List[int]) -> List[List[int]]: return subsets(nums) def subsets(nums): n = len(nums) rs = [] temp = [] def backtrack(start): rs.append(temp[:]) for i in range(start, n): if i > start and nums[i] == nums[i - 1]: ...
21.47619
58
0.490022
ee230cb4b7eaebcc8c2080a9cc91e88a22d8120f
1,201
py
Python
src/plugins/PlatPyGame/code/ui.py
StryQ1/Project-Acturus-X
e1d928eb751befcfd2ad9f1cf50a32749f97b23c
[ "Apache-2.0" ]
3
2022-03-21T07:40:24.000Z
2022-03-21T11:16:43.000Z
src/plugins/PlatPyGame/code/ui.py
StryQ1/Project-Acturus-X
e1d928eb751befcfd2ad9f1cf50a32749f97b23c
[ "Apache-2.0" ]
null
null
null
src/plugins/PlatPyGame/code/ui.py
StryQ1/Project-Acturus-X
e1d928eb751befcfd2ad9f1cf50a32749f97b23c
[ "Apache-2.0" ]
null
null
null
import pygame class UI: def __init__(self,surface): # setup self.display_surface = surface # health self.health_bar = pygame.image.load('../graphics/ui/health_bar.png').convert_alpha() self.health_bar_topleft = (54,39) self.bar_max_width = 152 self.bar_height = 4 # coins self.c...
38.741935
108
0.742714
8a40a761e95492843f3b96d1eb85305ac5c82e99
740
py
Python
hitomi/commands/accounts.py
cleanunicorn/hitomi
3bc403fb445da0c8d4702aaf133a59b34d7ffb89
[ "Apache-2.0" ]
3
2020-08-26T17:02:57.000Z
2022-02-09T03:56:50.000Z
hitomi/commands/accounts.py
cleanunicorn/hitomi
3bc403fb445da0c8d4702aaf133a59b34d7ffb89
[ "Apache-2.0" ]
4
2020-01-16T19:33:50.000Z
2021-05-08T10:02:27.000Z
hitomi/commands/accounts.py
cleanunicorn/hitomi
3bc403fb445da0c8d4702aaf133a59b34d7ffb89
[ "Apache-2.0" ]
2
2020-01-16T19:22:02.000Z
2021-09-06T03:12:30.000Z
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union from hitomi.network.web3 import Web3 class Accounts(list): def __init__(self, web3) -> None: self.web3 = web3 self.refresh() def refresh(self): self._cache = dict({"accounts": self.web3.eth.accounts}) def _acco...
24.666667
68
0.62027
c50bb6042bd26e0e4037c48f09db6adb50df3bc7
1,606
py
Python
pkgbuild/archlinux/python2/which.py
GameMaker2k/Neo-Hockey-Test
5737bfedf0d83f69964e85ac1dbf7e6a93c13f44
[ "BSD-3-Clause" ]
1
2020-04-04T10:25:42.000Z
2020-04-04T10:25:42.000Z
pkgbuild/archlinux/python2/which.py
GameMaker2k/Neo-Hockey-Test
5737bfedf0d83f69964e85ac1dbf7e6a93c13f44
[ "BSD-3-Clause" ]
null
null
null
pkgbuild/archlinux/python2/which.py
GameMaker2k/Neo-Hockey-Test
5737bfedf0d83f69964e85ac1dbf7e6a93c13f44
[ "BSD-3-Clause" ]
3
2021-09-07T08:44:33.000Z
2021-12-07T23:49:39.000Z
#!/usr/bin/env python2 ''' This program is free software; you can redistribute it and/or modify it under the terms of the Revised BSD License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS F...
39.170732
127
0.721669
d3286bf2dc2b2ff70dfcc347f6c6f675b2eff616
17,652
py
Python
test/DeepVolume_test.py
ZerojumpLine/DeepVolume
177c3a8283234e40573b9f9b68280f0d0dedff87
[ "MIT" ]
8
2019-11-09T00:56:11.000Z
2021-11-08T06:40:22.000Z
test/DeepVolume_test.py
ZerojumpLine/DeepVolume
177c3a8283234e40573b9f9b68280f0d0dedff87
[ "MIT" ]
null
null
null
test/DeepVolume_test.py
ZerojumpLine/DeepVolume
177c3a8283234e40573b9f9b68280f0d0dedff87
[ "MIT" ]
2
2019-11-09T00:56:13.000Z
2019-12-16T10:41:58.000Z
import argparse import os import scipy.io as sio import numpy as np import nibabel as nib import time import tensorflow as tf from BrainStructureAwareNetwork_arch import BrainStructureAwareNetwork from SpatialConnectionAwareNetwork_arch import SpatialConnectionAwareNetwork from getimgtest import getimgtest im...
48.098093
186
0.545491
5f124ed4699aaa1ce508705663e09e437138f35c
142
py
Python
tests/general/test_model_wrapper_ensemble.py
davidwilby/multimodal_keras_wrapper
8151a52d9728d669f0b517515c869beb0211c7db
[ "MIT" ]
31
2017-02-22T09:38:15.000Z
2021-04-19T10:13:34.000Z
tests/general/test_model_wrapper_ensemble.py
davidwilby/multimodal_keras_wrapper
8151a52d9728d669f0b517515c869beb0211c7db
[ "MIT" ]
5
2017-12-05T07:08:44.000Z
2020-04-15T17:49:00.000Z
tests/general/test_model_wrapper_ensemble.py
davidwilby/multimodal_keras_wrapper
8151a52d9728d669f0b517515c869beb0211c7db
[ "MIT" ]
15
2017-02-22T09:38:14.000Z
2021-04-19T10:13:37.000Z
import pytest from six import iteritems def test_model_wrapper_ensemble(): pass if __name__ == '__main__': pytest.main([__file__])
14.2
34
0.732394
3385dca8bd18bdbe8f4e9d72f562993d06e56efb
16,563
py
Python
steamcommunity/steamcommunity.py
the-krak3n/Fixator10-Cogs
38af6499634a4f4ea200fa9173ccfc9a6bbd14d4
[ "MIT" ]
null
null
null
steamcommunity/steamcommunity.py
the-krak3n/Fixator10-Cogs
38af6499634a4f4ea200fa9173ccfc9a6bbd14d4
[ "MIT" ]
null
null
null
steamcommunity/steamcommunity.py
the-krak3n/Fixator10-Cogs
38af6499634a4f4ea200fa9173ccfc9a6bbd14d4
[ "MIT" ]
null
null
null
from collections import namedtuple from contextlib import suppress from datetime import datetime from functools import partial from io import BytesIO from os import path from socket import gethostbyname_ex from time import time from warnings import filterwarnings import aiohttp import discord import valve.source.a2s f...
38.880282
110
0.565055
572ce924c7d63448692e627384605a4f78ae9c5c
1,326
py
Python
whatsapp_web_driver/custom_errors.py
AadamLok/wwd
d26dbd1bb65b990fe00d95ea9d8e58d38564fd07
[ "Apache-2.0" ]
1
2021-06-27T09:31:33.000Z
2021-06-27T09:31:33.000Z
whatsapp_web_driver/custom_errors.py
MurtazaCyclewala/whatsapp_web_driver
d26dbd1bb65b990fe00d95ea9d8e58d38564fd07
[ "Apache-2.0" ]
null
null
null
whatsapp_web_driver/custom_errors.py
MurtazaCyclewala/whatsapp_web_driver
d26dbd1bb65b990fe00d95ea9d8e58d38564fd07
[ "Apache-2.0" ]
null
null
null
class ChromeDriverNotWorking(Exception): """ Exception raised when driver passed in doesn't work and selimium throws error. """ def __init__(self, place, message="Something is wrong with chrome driver."): self.message = message self.place = place super().__init__(self.message) ...
35.837838
189
0.687029
bd6c08c38c14b4bbb9ef087a4082b260f2cc08b3
3,019
py
Python
nautobot/users/filters.py
MatthewGP/nautobot
93b9d9c33a49e69b8ee86da8af4ef1265873014b
[ "Apache-2.0" ]
null
null
null
nautobot/users/filters.py
MatthewGP/nautobot
93b9d9c33a49e69b8ee86da8af4ef1265873014b
[ "Apache-2.0" ]
null
null
null
nautobot/users/filters.py
MatthewGP/nautobot
93b9d9c33a49e69b8ee86da8af4ef1265873014b
[ "Apache-2.0" ]
null
null
null
import django_filters from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.db.models import Q from nautobot.users.models import ObjectPermission, Token from nautobot.utilities.filters import BaseFilterSet __all__ = ( "GroupFilterSet", "ObjectPermissionFilterS...
26.252174
69
0.612454
52b93e149a5a1637bd07a108c5bb4301e6daa22f
6,577
py
Python
large_cohort/processes/q_ffl.py
isabella232/federated-1
834608ecad7be6772ecb753a4be72e89beec4b18
[ "Apache-2.0" ]
null
null
null
large_cohort/processes/q_ffl.py
isabella232/federated-1
834608ecad7be6772ecb753a4be72e89beec4b18
[ "Apache-2.0" ]
1
2022-01-29T11:44:07.000Z
2022-01-29T11:44:07.000Z
large_cohort/processes/q_ffl.py
isabella232/federated-1
834608ecad7be6772ecb753a4be72e89beec4b18
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, 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...
46.316901
80
0.753535
c49a2670308148737e276772541d42d2ebb4fe11
8,115
py
Python
tests/dates/test_ToDatetimeTransformer.py
binti59/LV
20994adfb3f311645bd513ab81dad761d3e3ab98
[ "BSD-3-Clause" ]
32
2021-04-26T13:04:26.000Z
2022-03-18T16:22:13.000Z
tests/dates/test_ToDatetimeTransformer.py
binti59/LV
20994adfb3f311645bd513ab81dad761d3e3ab98
[ "BSD-3-Clause" ]
15
2021-05-08T09:46:48.000Z
2021-11-23T11:40:15.000Z
tests/dates/test_ToDatetimeTransformer.py
binti59/LV
20994adfb3f311645bd513ab81dad761d3e3ab98
[ "BSD-3-Clause" ]
6
2021-05-05T08:48:00.000Z
2021-08-17T12:31:32.000Z
import pytest import test_aide as ta import tests.test_data as d import datetime import pandas import pandas as pd import numpy as np import tubular from tubular.dates import ToDatetimeTransformer class TestInit(object): """Tests for ToDatetimeTransformer.init().""" def test_arguments(self): """Test...
31.211538
115
0.56451
615fe6493105766a0f65f2a10c70c6dbb988c4f2
3,474
py
Python
lte/gateway/python/integ_tests/s1aptests/test_enb_partial_reset.py
pedroamfarias-cpqd/magma
56ff0559d74ff39056f1102486a667a87e65960d
[ "BSD-3-Clause" ]
1
2020-10-20T18:59:38.000Z
2020-10-20T18:59:38.000Z
lte/gateway/python/integ_tests/s1aptests/test_enb_partial_reset.py
pedroamfarias-cpqd/magma
56ff0559d74ff39056f1102486a667a87e65960d
[ "BSD-3-Clause" ]
104
2020-09-23T12:28:22.000Z
2022-03-21T05:24:42.000Z
lte/gateway/python/integ_tests/s1aptests/test_enb_partial_reset.py
pedroamfarias-cpqd/magma
56ff0559d74ff39056f1102486a667a87e65960d
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
38.6
86
0.647956
e7d02c67b7ddbbee5fec0608308e90327ab91074
1,956
py
Python
storage/cloud-client/storage_upload_encrypted_file.py
yshalabi/python-docs-samples
591787c01d94102ba9205f998d95a05b39ccad2f
[ "Apache-2.0" ]
5,938
2015-05-18T05:04:37.000Z
2022-03-31T20:16:39.000Z
storage/cloud-client/storage_upload_encrypted_file.py
yshalabi/python-docs-samples
591787c01d94102ba9205f998d95a05b39ccad2f
[ "Apache-2.0" ]
4,730
2015-05-07T19:00:38.000Z
2022-03-31T21:59:41.000Z
storage/cloud-client/storage_upload_encrypted_file.py
yshalabi/python-docs-samples
591787c01d94102ba9205f998d95a05b39ccad2f
[ "Apache-2.0" ]
6,734
2015-05-05T17:06:20.000Z
2022-03-31T12:02:51.000Z
#!/usr/bin/env python # Copyright 2019 Google, 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...
28.347826
75
0.725971
055265ee55a31b4e1884c5332e5a5aa333c6735b
2,857
py
Python
meraki/models/update_network_static_route_model.py
bossypants22/python-sdk-test
37701d62dc18c2abb910eb790ab978913adcaf7b
[ "MIT" ]
37
2019-04-24T14:01:33.000Z
2022-01-28T01:37:21.000Z
meraki/models/update_network_static_route_model.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
10
2019-07-09T16:35:11.000Z
2021-12-07T03:47:53.000Z
meraki/models/update_network_static_route_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 This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ class UpdateNetworkStaticRouteModel(object): """Implementation of the 'updateNetworkStaticRoute' model. TODO: type model description here. Attribute...
31.744444
95
0.587679
139045be25ec9a5e2f1b6dc5f1677f9cabfd9a42
1,095
py
Python
AP1/Sorteio.py
GiovannaPazello/Projetos-em-Python
3cf7edbdf2a2350605a775389f7fe2cc7fe8032e
[ "MIT" ]
null
null
null
AP1/Sorteio.py
GiovannaPazello/Projetos-em-Python
3cf7edbdf2a2350605a775389f7fe2cc7fe8032e
[ "MIT" ]
null
null
null
AP1/Sorteio.py
GiovannaPazello/Projetos-em-Python
3cf7edbdf2a2350605a775389f7fe2cc7fe8032e
[ "MIT" ]
null
null
null
'''Faça um programa para o usuário adivinhar o número sorteado: O programa deve perguntar o valor limite para o sorteio (ex: se o usuário informar o número 10, o programa irá sortear um número entre 0 e 10, inclusive o 10). O programa deve sortear o número e pedir ao usuário que tente adivinhar o número. Caso o usuário...
45.625
117
0.722374
a3825d30b5173a4546ecbb4e093f6de0cf22a69c
12,668
py
Python
Arcpy Methods/first_arcpy_methodology.py
KSnyderCode/MunicipalMergerProject
2c5cc4879562fcb87b0e379731e83906802159f7
[ "MIT" ]
3
2015-10-20T18:15:21.000Z
2017-06-20T15:51:04.000Z
Arcpy Methods/first_arcpy_methodology.py
KSnyderCode/MunicipalMergerProject
2c5cc4879562fcb87b0e379731e83906802159f7
[ "MIT" ]
1
2017-04-10T20:50:25.000Z
2017-04-10T20:50:25.000Z
Arcpy Methods/first_arcpy_methodology.py
cfh294/GISTools
2c5cc4879562fcb87b0e379731e83906802159f7
[ "MIT" ]
1
2021-04-11T13:19:14.000Z
2021-04-11T13:19:14.000Z
import arcpy from arcpy import env import sets arcpy.env.overwriteOutput = True muniParam = arcpy.GetParameterAsText(0) muniList = muniParam.split(';') popMin = arcpy.GetParameterAsText(1) outputWorkspace = arcpy.GetParameterAsText(2) arcpy.env.workspace = outputWorkspace # Dictionary used in the raw() method esca...
35.188889
343
0.693874
e9f64b34d6210d0495fe806b05ceb2f47e93d560
16,201
py
Python
lib/streamlit/elements/slider.py
akrolsmir/streaml
968e7f5f720080c22e76912aff0861cf917bfeb4
[ "Apache-2.0" ]
null
null
null
lib/streamlit/elements/slider.py
akrolsmir/streaml
968e7f5f720080c22e76912aff0861cf917bfeb4
[ "Apache-2.0" ]
221
2020-10-16T08:15:02.000Z
2022-03-29T10:25:00.000Z
lib/streamlit/elements/slider.py
akrolsmir/streamlit
968e7f5f720080c22e76912aff0861cf917bfeb4
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Streamlit 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 agreed to in wr...
40.300995
94
0.580088
0050b1e349a313169627f4d688b2f73fee927aef
2,122
py
Python
neutron_lbaas/tests/unit/common/cert_manager/test_cert_manager.py
kayrus/neutron-lbaas
d582fc52c725584e83b01e33f617f11d49a165a8
[ "Apache-2.0" ]
1
2017-11-13T13:24:12.000Z
2017-11-13T13:24:12.000Z
neutron_lbaas/tests/unit/common/cert_manager/test_cert_manager.py
kayrus/neutron-lbaas
d582fc52c725584e83b01e33f617f11d49a165a8
[ "Apache-2.0" ]
2
2018-10-30T11:37:42.000Z
2020-09-01T12:08:36.000Z
neutron_lbaas/tests/unit/common/cert_manager/test_cert_manager.py
kayrus/neutron-lbaas
d582fc52c725584e83b01e33f617f11d49a165a8
[ "Apache-2.0" ]
5
2018-09-21T07:56:14.000Z
2020-10-13T09:52:15.000Z
# Copyright 2015 NEC Corporation. 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 l...
37.22807
75
0.662582
cdd8f1cd6370177b70042d02f6a271376003e5cf
476
py
Python
data/scripts/templates/object/tangible/medicine/crafted/shared_medpack_cure_disease_c.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/medicine/crafted/shared_medpack_cure_disease_c.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/medicine/crafted/shared_medpack_cure_disease_c.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/medicine/crafted/shared_medpack_cure_disease_c.iff" result.attribut...
28
87
0.743697
931dc61adcf2f07b5c05db01f88a0774d368b115
2,741
py
Python
utilities.py
janosg/derivatives
ee4640baa273093a04ef6bd7a482ba485b753bd2
[ "MIT" ]
null
null
null
utilities.py
janosg/derivatives
ee4640baa273093a04ef6bd7a482ba485b753bd2
[ "MIT" ]
null
null
null
utilities.py
janosg/derivatives
ee4640baa273093a04ef6bd7a482ba485b753bd2
[ "MIT" ]
null
null
null
import numpy as np def chol_params_to_lower_triangular_matrix(params): dim = number_of_triangular_elements_to_dimension(len(params)) mat = np.zeros((dim, dim)) mat[np.tril_indices(dim)] = params return mat def cov_params_to_matrix(cov_params): """Build covariance matrix from 1d array with its l...
30.797753
85
0.692813
4389c9c54fe252e12cb1d0dce083e334ab54fc75
12,397
py
Python
twitter_ads_v2/resources.py
smaeda-ks/twitter-python-ads-sdk-v2
2e9578c6f2e3ff431405677cf00d98b5f617d88c
[ "MIT" ]
null
null
null
twitter_ads_v2/resources.py
smaeda-ks/twitter-python-ads-sdk-v2
2e9578c6f2e3ff431405677cf00d98b5f617d88c
[ "MIT" ]
null
null
null
twitter_ads_v2/resources.py
smaeda-ks/twitter-python-ads-sdk-v2
2e9578c6f2e3ff431405677cf00d98b5f617d88c
[ "MIT" ]
null
null
null
"""List of the supported API endpoints' resource path.""" RESOURCE_TABLE = { 'accounts': { 'endpoint_types': ['all', 'load'], 'RESOURCE': 'accounts/{id}', 'RESOURCE_COLLECTION': 'accounts' }, 'authenticated_user_access': { 'endpoint_types': ['all'], 'RESOURCE_COLLEC...
41.740741
98
0.62378
4abd5370bdd6b4a0f0c60c0e9ca356e45a325105
4,936
py
Python
jarvis.py
uwmadison-chm/factuator
649b1b4e42f97b8e833f3576e7bf2cf64c38a126
[ "MIT" ]
null
null
null
jarvis.py
uwmadison-chm/factuator
649b1b4e42f97b8e833f3576e7bf2cf64c38a126
[ "MIT" ]
8
2019-04-24T17:58:30.000Z
2021-11-29T20:47:31.000Z
jarvis.py
uwmadison-chm/factuator
649b1b4e42f97b8e833f3576e7bf2cf64c38a126
[ "MIT" ]
1
2019-04-24T16:30:59.000Z
2019-04-24T16:30:59.000Z
import psycopg2 import psycopg2.extras # NOTE: You will need to `kinit` a kerberos token to make this db connection work class Jarvis: def __init__(self): self.db = psycopg2.connect("postgresql://togarashi.keck.waisman.wisc.edu/bi?krbsrvname=postgres") def select(self, x): cursor = self.db.cu...
37.393939
158
0.561386
00dc2b87c78cf5db93ac8816cd06470ce14adf46
11,391
py
Python
app/recipe/tests/test_recipe_api.py
CrownKira/recipe-app-api
b948a66f09a5aa420483f6df806ea57315f966da
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
CrownKira/recipe-app-api
b948a66f09a5aa420483f6df806ea57315f966da
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
CrownKira/recipe-app-api
b948a66f09a5aa420483f6df806ea57315f966da
[ "MIT" ]
null
null
null
# comes with python, allows you to generate temporary file import tempfile # create file name, check if file exists, etc import os # PIL: pillow requirement from PIL import Image from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework impor...
36.509615
78
0.650865
4cb944cb8c691d66b79e83439bb3b0b9628a5258
7,424
py
Python
bin/df_crossval_main.py
mrunibe/MIALab
82d3f0f4344620fd22384108b022730cde9c7215
[ "Apache-2.0" ]
2
2018-12-05T09:03:28.000Z
2019-01-02T15:31:35.000Z
bin/df_crossval_main.py
riedj1/MIALab
82d3f0f4344620fd22384108b022730cde9c7215
[ "Apache-2.0" ]
null
null
null
bin/df_crossval_main.py
riedj1/MIALab
82d3f0f4344620fd22384108b022730cde9c7215
[ "Apache-2.0" ]
1
2018-10-20T21:27:55.000Z
2018-10-20T21:27:55.000Z
"""A medical image analysis pipeline. The pipeline is used for brain tissue segmentation using a decision forest classifier. """ import argparse import datetime import os import sys import timeit import SimpleITK as sitk import numpy as np sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), '..')) # appe...
42.913295
147
0.672953
f858eabcb92a83334ed1184e5319a30f973e4512
177
py
Python
packs/consul/actions/query_node.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/consul/actions/query_node.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/consul/actions/query_node.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
from lib import action class ConsulQueryNodeAction(action.ConsulBaseAction): def run(self, node): index, node = self.consul.catalog.node(node) return node
22.125
53
0.706215
285e57c6fecfc215e3fbcb722e4fb8764dfba320
763
py
Python
frida/controller/mongodb.py
att/frida
a8cedffc5be79f7a4070f2e6324b33e91448520c
[ "MIT" ]
6
2019-04-17T20:37:53.000Z
2021-10-30T23:47:15.000Z
frida/controller/mongodb.py
att/frida
a8cedffc5be79f7a4070f2e6324b33e91448520c
[ "MIT" ]
null
null
null
frida/controller/mongodb.py
att/frida
a8cedffc5be79f7a4070f2e6324b33e91448520c
[ "MIT" ]
3
2019-04-17T20:38:57.000Z
2019-11-01T17:40:58.000Z
# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. import json import frida.database as fdb import frida.manifest.profile_mongodb as modb from frida.controller.base import BaseController from frida.adapter.factory import AdapterFactory class MongoDbController(BaseController): def __init__(self)...
30.52
77
0.706422
50687e3a683d8445028d8b5a78046a8ff018f89f
8,295
py
Python
test.py
peterhudec/gae_installer
c2fba0935c8a53c928099b344d1533313904ec1b
[ "MIT" ]
6
2015-07-01T04:12:16.000Z
2017-03-20T08:45:25.000Z
test.py
authomatic/gae_installer
c2fba0935c8a53c928099b344d1533313904ec1b
[ "MIT" ]
1
2016-01-07T10:13:57.000Z
2016-01-07T10:13:57.000Z
test.py
peterhudec/gae_installer
c2fba0935c8a53c928099b344d1533313904ec1b
[ "MIT" ]
7
2015-01-27T15:10:05.000Z
2016-09-23T15:34:03.000Z
""" Tests the setup.py script by running ``python setup.py install`` in a temporarily activated virtual environment. """ import os import re import shutil import subprocess import sys import unittest import urllib2 import version VENV_NAME = '_e' BASE_PATH = os.path.abspath(os.path.dirname(__file__)) VENV_PATH = o...
34.5625
103
0.559011
95f9eb683001c6dc7c306aeec30fef919bef5832
1,707
py
Python
runapp/lessons/6/run_clock.py
bryvogel/cgm-clock
62ace6ee312e6232282eeaaa69c01d261cfa3a52
[ "Apache-2.0" ]
null
null
null
runapp/lessons/6/run_clock.py
bryvogel/cgm-clock
62ace6ee312e6232282eeaaa69c01d261cfa3a52
[ "Apache-2.0" ]
null
null
null
runapp/lessons/6/run_clock.py
bryvogel/cgm-clock
62ace6ee312e6232282eeaaa69c01d261cfa3a52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import time import datetime from Libs.Clock import Clock from Libs.SevenSegment import Display from Libs.Weather import Weather from Libs.Input import Button from Libs.GStreamer import Speaker from config import configuration # The weather station station_name = configuration.get('weathe...
24.385714
68
0.71529
13c6e33c6c3c9cb17643facefe0c4e44d829f33f
552
py
Python
yesua1/startup.py
rishabhranawat/CrowdPlatform
1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d
[ "MIT" ]
1
2020-07-23T21:35:40.000Z
2020-07-23T21:35:40.000Z
yesua1/startup.py
rishabhranawat/CrowdPlatform
1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d
[ "MIT" ]
9
2021-02-08T20:32:35.000Z
2022-03-02T14:58:07.000Z
yesua1/startup.py
rishabhranawat/CrowdPlatform
1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d
[ "MIT" ]
null
null
null
from django.conf import settings from importlib import import_module from django.utils.module_loading import module_has_submodule from django.contrib import admin def autoload(submodules): for app in settings.INSTALLED_APPS: mod = import_module(app) for submodule in submodules: try: ...
25.090909
63
0.648551
6db5fc0bc4b5b2a0fed8fe2d0fd2e9dd654184c1
1,321
py
Python
utilities/loss_function.py
Musketeer-Liu/Machine_Learning_Lab
cba2ee116011e87d4f7df525f1a1ac4c87f7b4e4
[ "MIT" ]
null
null
null
utilities/loss_function.py
Musketeer-Liu/Machine_Learning_Lab
cba2ee116011e87d4f7df525f1a1ac4c87f7b4e4
[ "MIT" ]
null
null
null
utilities/loss_function.py
Musketeer-Liu/Machine_Learning_Lab
cba2ee116011e87d4f7df525f1a1ac4c87f7b4e4
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np from data_operation import accuracy_score class Loss(object): # def __init__(self): # pass def loss(self, y_true, y_pred): return NotImplementedError() def gradient(self, y_true, y_pred): return NotImplementedError() ...
22.016667
83
0.610901
cb189270b8769418ae30639c59e3aa1c694409b7
151
py
Python
tests/test_fun.py
happy-developer-fr/minio-test
16a83b79d5cfe3e703bbafcbe1ab7d57243d631e
[ "MIT" ]
null
null
null
tests/test_fun.py
happy-developer-fr/minio-test
16a83b79d5cfe3e703bbafcbe1ab7d57243d631e
[ "MIT" ]
null
null
null
tests/test_fun.py
happy-developer-fr/minio-test
16a83b79d5cfe3e703bbafcbe1ab7d57243d631e
[ "MIT" ]
null
null
null
import src.my_package.fun def test_is_it_funny(): src.my_package.fun.is_it_funny() assert src.my_package.fun.is_it_funny().__eq__("oh yeah")
21.571429
61
0.748344
ef203cd1cf109606fec4f5d057ce25290fc3db40
21,520
py
Python
pyNastran/op2/vector_utils.py
JohannesSeidel/pyNastran
91ccd2756b201a7a3e4bb81cc6dc53b947d43bbf
[ "BSD-3-Clause" ]
null
null
null
pyNastran/op2/vector_utils.py
JohannesSeidel/pyNastran
91ccd2756b201a7a3e4bb81cc6dc53b947d43bbf
[ "BSD-3-Clause" ]
1
2021-06-07T16:33:59.000Z
2021-06-07T16:33:59.000Z
pyNastran/op2/vector_utils.py
JohannesSeidel/pyNastran
91ccd2756b201a7a3e4bb81cc6dc53b947d43bbf
[ "BSD-3-Clause" ]
1
2021-12-17T10:45:08.000Z
2021-12-17T10:45:08.000Z
""" defines some methods for working with arrays: - filter1d(a, b=None, zero_tol=0.001) - where_searchsorted(a, v, side='left', x=None, y=None) - sortedsum1d(ids, values, axis=None) - iformat(format_old, precision=2) - abs_max_min_global(values) - abs_max_min_vector(values) - abs_max_min(values, global_abs_max=T...
33.006135
93
0.595632
aaaa285ef305a12c09e817b55f7f8a65c425d1ba
1,774
py
Python
app/utils/helpers.py
bossenti/OutdoorTripFinder-Backend
6818cd19640e3826cca42fa797b5d1d7a264f856
[ "Apache-2.0" ]
null
null
null
app/utils/helpers.py
bossenti/OutdoorTripFinder-Backend
6818cd19640e3826cca42fa797b5d1d7a264f856
[ "Apache-2.0" ]
null
null
null
app/utils/helpers.py
bossenti/OutdoorTripFinder-Backend
6818cd19640e3826cca42fa797b5d1d7a264f856
[ "Apache-2.0" ]
null
null
null
import math import string import random # in km EARTH_RADIUS = 6371 def deg_to_radian(val, backwards=False): """ converts values in degree to radians and vice versa :param backwards: indicates the convertion to be in the other direction :param val: value in degrees :return: converted value as rad...
28.612903
109
0.694476
2c880ceb8f5f418b7c59a809d9f36547054607eb
2,950
py
Python
sample_setups/pcmdi_parameter_files/variability_modes/alternative_obs/myParam_NAO_cmip3.py
jasonb5/pcmdi_metrics
0c23d8d247da24d0ab9deb04d8db9619af628680
[ "BSD-3-Clause" ]
null
null
null
sample_setups/pcmdi_parameter_files/variability_modes/alternative_obs/myParam_NAO_cmip3.py
jasonb5/pcmdi_metrics
0c23d8d247da24d0ab9deb04d8db9619af628680
[ "BSD-3-Clause" ]
null
null
null
sample_setups/pcmdi_parameter_files/variability_modes/alternative_obs/myParam_NAO_cmip3.py
jasonb5/pcmdi_metrics
0c23d8d247da24d0ab9deb04d8db9619af628680
[ "BSD-3-Clause" ]
null
null
null
import datetime import os # ================================================= # Background Information # ------------------------------------------------- mip = "cmip3" exp = "20c3m" frequency = "mo" realm = "atm" # ================================================= # Analysis Options # -------------------------------...
25
85
0.521356
a533d5cff0c6530d9f36b6a5f5db6c785cd8b252
3,868
py
Python
quantization/lsq/qnn.py
creaiter/Quantization-Implementations
8e97ae9b91dbd3f02ebeccc05d12aee241d252d4
[ "MIT" ]
2
2021-10-12T06:09:55.000Z
2022-01-28T08:17:13.000Z
quantization/lsq/qnn.py
creaiter/Quantization-Implementations
8e97ae9b91dbd3f02ebeccc05d12aee241d252d4
[ "MIT" ]
null
null
null
quantization/lsq/qnn.py
creaiter/Quantization-Implementations
8e97ae9b91dbd3f02ebeccc05d12aee241d252d4
[ "MIT" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.parameter import Parameter from .quantizer import LSQ class QuantConv2d(nn.Conv2d): def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, paddi...
30.456693
98
0.553516
0e0a52ac5c95c6299e8abbd422696e513983383a
291
py
Python
brainspace/datasets/__init__.py
josemariamoreira/BrainSpace
d7e8e65c6463a81146e7fcfcca902feef04d329d
[ "BSD-3-Clause" ]
null
null
null
brainspace/datasets/__init__.py
josemariamoreira/BrainSpace
d7e8e65c6463a81146e7fcfcca902feef04d329d
[ "BSD-3-Clause" ]
null
null
null
brainspace/datasets/__init__.py
josemariamoreira/BrainSpace
d7e8e65c6463a81146e7fcfcca902feef04d329d
[ "BSD-3-Clause" ]
null
null
null
from .base import (load_conte69, load_mask, load_group_fc, load_parcellation, load_gradient, load_marker) __all__ = ['load_conte69', 'load_mask', 'load_group_fc', 'load_gradient', 'load_parcellation', 'load_marker']
29.1
77
0.587629
0ab9e34a8d3e2b972aac50a04fcb569442318cc0
30,426
py
Python
sphinxcontrib/jupyter/writers/translate_all.py
AnjuJoon/sphinxcontrib-jupyter
ac828e0b165fa81bc5b4073ec604faee965ceabc
[ "BSD-3-Clause" ]
null
null
null
sphinxcontrib/jupyter/writers/translate_all.py
AnjuJoon/sphinxcontrib-jupyter
ac828e0b165fa81bc5b4073ec604faee965ceabc
[ "BSD-3-Clause" ]
null
null
null
sphinxcontrib/jupyter/writers/translate_all.py
AnjuJoon/sphinxcontrib-jupyter
ac828e0b165fa81bc5b4073ec604faee965ceabc
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import re import nbformat.v4 from docutils import nodes, writers from .translate_code import JupyterCodeTranslator from .utils import JupyterOutputCellGenerators from shutil import copyfile import os class JupyterTranslator(JupyterCodeTranslator, object): """ Jupyter Transl...
36.007101
149
0.564156
ef61706dc805b4fdc539524783ec8f8823b8ee46
6,044
py
Python
gamestate-changes/change_statistics/basicUtils.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
1
2020-05-18T15:55:09.000Z
2020-05-18T15:55:09.000Z
gamestate-changes/change_statistics/basicUtils.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
null
null
null
gamestate-changes/change_statistics/basicUtils.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
null
null
null
from datetime import datetime from enum import Enum ChangeType = Enum('ChangeType', 'block tile_entity entity status') def getType(value): if value == 'status': return ChangeType.status elif value == 'BLOCK': return ChangeType.block elif value.startswith('TILE_ENTITY'): return Chang...
62.309278
202
0.627399
28a42507f1646fa07299a387a05c4a957da93bb9
1,888
py
Python
data/tair/add_gene.py
SilkeAllmannLab/gwas
ced0000477890316f3c3fd9ec6b327aeb9364b25
[ "Apache-2.0" ]
1
2021-08-28T07:02:15.000Z
2021-08-28T07:02:15.000Z
data/tair/add_gene.py
SilkeAllmannLab/gwas
ced0000477890316f3c3fd9ec6b327aeb9364b25
[ "Apache-2.0" ]
3
2020-01-30T15:02:51.000Z
2020-03-31T15:53:39.000Z
data/tair/add_gene.py
SilkeAllmannLab/gwas
ced0000477890316f3c3fd9ec6b327aeb9364b25
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Usage: python add_gene.py chrom_pos_marker.tsv chr01_start_end_gene.tsv chr01_genes_with_marker.tsv # In[1]: import sys import pandas as pd # file with chromosome position marker id chrom_pos_marker_id_file_path = sys.argv[1] # file with chrom start end gene chrom_start_end_...
25.173333
103
0.700212
9f024035a9a25ef15387f973fc545e10795504d8
1,097
py
Python
h/views/home.py
julien-cheng/h
36c8ec044725720cf36f0986cdf025395aca8929
[ "BSD-2-Clause" ]
2
2019-08-04T07:22:11.000Z
2020-07-17T05:01:41.000Z
h/views/home.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/views/home.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Views serving the homepage and related endpoints.""" from __future__ import unicode_literals from pyramid import httpexceptions from pyramid.view import view_config @view_config(route_name="via_redirect", request_method="GET") def via_redirect(context, request): url = request.params....
29.648649
78
0.711942
af07a2462ed7aa7fcc9b71d3ea441e37aeb5e6a1
3,987
py
Python
train-model/scripts/preprocess.py
leijianqiao3/web-audio-recognition
c2c9f8b2d1af43dcc637335c62a0653f5b12e38b
[ "Apache-2.0" ]
80
2017-12-22T12:38:08.000Z
2021-08-31T00:14:46.000Z
train-model/scripts/preprocess.py
leijianqiao3/web-audio-recognition
c2c9f8b2d1af43dcc637335c62a0653f5b12e38b
[ "Apache-2.0" ]
null
null
null
train-model/scripts/preprocess.py
leijianqiao3/web-audio-recognition
c2c9f8b2d1af43dcc637335c62a0653f5b12e38b
[ "Apache-2.0" ]
31
2017-12-25T20:34:40.000Z
2021-09-05T10:03:45.000Z
#!/usr/bin/env python # Copyright 2017 Google LLC # # Licensed under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.950413
91
0.712315
ba7d23fbe1e9ad416691dc1d184793b13a3f1ae8
3,982
py
Python
win64-postgresql/pgAdmin 4/web/pgadmin/browser/server_groups/servers/types.py
vnetcon/curvy
ed3749bd5d298c7ab6c0625de91c211d6da4c762
[ "Apache-2.0" ]
null
null
null
win64-postgresql/pgAdmin 4/web/pgadmin/browser/server_groups/servers/types.py
vnetcon/curvy
ed3749bd5d298c7ab6c0625de91c211d6da4c762
[ "Apache-2.0" ]
3
2021-09-02T15:51:44.000Z
2022-03-02T09:53:17.000Z
win64-postgresql/pgAdmin 4/web/pgadmin/browser/server_groups/servers/types.py
vnetcon/curvy
ed3749bd5d298c7ab6c0625de91c211d6da4c762
[ "Apache-2.0" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import os import ...
27.846154
78
0.55324
91c9e1eb3c8a8d2c32d9aa8cd9a07688c100fc89
838
py
Python
python/controls/stack/horizontal_stack_vertical_alignments.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
python/controls/stack/horizontal_stack_vertical_alignments.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
python/controls/stack/horizontal_stack_vertical_alignments.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
import pglet from pglet import Stack, Text with pglet.page("horizontal-stack-vertical-alignments") as page: bg_color = '#ddddee' page.horizontal_align = 'stretch' def items(count): items = [] for i in range(1, count + 1): items.append(Text(value=i, align='center', vertical_align='center', width=30...
33.52
146
0.668258
da5d2d4fede35dcc8bcdb31a9f0d855e0d57ecda
51,134
py
Python
python_modules/libraries/dagster-aws/dagster_aws/emr/configs.py
bambielli-flex/dagster
30b75ba7c62fc536bc827f177c1dc6ba20f5ae20
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws/emr/configs.py
bambielli-flex/dagster
30b75ba7c62fc536bc827f177c1dc6ba20f5ae20
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws/emr/configs.py
bambielli-flex/dagster
30b75ba7c62fc536bc827f177c1dc6ba20f5ae20
[ "Apache-2.0" ]
null
null
null
from dagster import Bool, Dict, Field, Float, Int, List, PermissiveDict, String from .types import ( EbsVolumeType, EmrActionOnFailure, EmrAdjustmentType, EmrComparisonOperator, EmrInstanceRole, EmrMarket, EmrRepoUpgradeOnBoot, EmrScaleDownBehavior, EmrStatistic, EmrSupportedPro...
47.390176
100
0.529393
72660f9a9c193ad6d220c4cede48bc128e4ee792
830
py
Python
docsearch/mapper/default.py
brpaz/ulauncher-docsearch
3ec40ebc18c97787e8fb2b8380178d37667601fd
[ "MIT" ]
21
2020-03-04T00:27:52.000Z
2022-03-15T09:48:35.000Z
docsearch/mapper/default.py
brpaz/ulauncher-docsearch
3ec40ebc18c97787e8fb2b8380178d37667601fd
[ "MIT" ]
7
2020-03-14T02:05:33.000Z
2021-05-09T14:53:40.000Z
docsearch/mapper/default.py
brpaz/ulauncher-docsearch
3ec40ebc18c97787e8fb2b8380178d37667601fd
[ "MIT" ]
5
2020-03-10T10:48:54.000Z
2021-12-01T10:27:47.000Z
""" Default mapper for Algoia Docsearch responses """ class DefaultMapper(): def map(self, docset, hit): title, description = self.map_description(hit) if not description: description = hit['url'] return { 'url': hit['url'], 'title': title, ...
26.774194
88
0.551807
83587ebbb9a80f700b3bfcdb950d4988775ec8dd
1,797
py
Python
xue/prepopulate/querier.py
team-xue/xue
e6bd9539803a2bf902f48b65a9df86356b5d46b2
[ "BSD-3-Clause" ]
1
2015-11-23T02:33:07.000Z
2015-11-23T02:33:07.000Z
xue/prepopulate/querier.py
team-xue/xue
e6bd9539803a2bf902f48b65a9df86356b5d46b2
[ "BSD-3-Clause" ]
null
null
null
xue/prepopulate/querier.py
team-xue/xue
e6bd9539803a2bf902f48b65a9df86356b5d46b2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # simple prepopulated tables querier -- querier object from __future__ import unicode_literals, division from functools import wraps from os.path import join as pathjoin from os.path import abspath, dirname from django.conf import settings from xue.prepopulate.parse import parse_file MYPATH...
26.820896
75
0.62493
d267a0c93d48446063a5d78f7ee6ad837dace4ab
117
py
Python
music/admin.py
Ragh2018/website
f797ccd4412b4335f5ee45484159cec459492da3
[ "MIT" ]
null
null
null
music/admin.py
Ragh2018/website
f797ccd4412b4335f5ee45484159cec459492da3
[ "MIT" ]
null
null
null
music/admin.py
Ragh2018/website
f797ccd4412b4335f5ee45484159cec459492da3
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Album,song admin.site.register(Album) admin.site.register(song)
23.4
32
0.820513
3199bf1dcd98944482c1eca22846b0dcfa6deba0
3,875
py
Python
exp/cxif5315/proc-cxif5315-r0169-peaks-fit-file-v1.py
slaclab/lclslib
dbb11cf5f0f671fa0ec16c54b6346e9d1df3b0e0
[ "BSD-3-Clause-LBNL" ]
null
null
null
exp/cxif5315/proc-cxif5315-r0169-peaks-fit-file-v1.py
slaclab/lclslib
dbb11cf5f0f671fa0ec16c54b6346e9d1df3b0e0
[ "BSD-3-Clause-LBNL" ]
1
2016-06-23T22:51:33.000Z
2016-06-23T23:27:51.000Z
exp/cxif5315/proc-cxif5315-r0169-peaks-fit-file-v1.py
slaclab/lclslib
dbb11cf5f0f671fa0ec16c54b6346e9d1df3b0e0
[ "BSD-3-Clause-LBNL" ]
1
2020-12-13T01:51:19.000Z
2020-12-13T01:51:19.000Z
#!/usr/bin/env python ##----------------------------- """Example of analysis script: processes cxif5315-r0169 peak list with phi-beta fit info; loop over all entries of the peak-fit file and create histograms for fit parameters """ ##----------------------------- import sys import os import math import numpy as...
35.227273
123
0.578065
a98e0ef0e2d025a102e86846b89c05b0eac808c8
11,885
py
Python
networking_cisco/plugins/cisco/db/device_manager/hosting_devices_db.py
CiscoSystems/networking-cisco
ed18627faf90caa1c0d1b7fe00f240a57901dee4
[ "Apache-2.0" ]
8
2016-02-12T01:25:29.000Z
2019-01-13T14:19:25.000Z
networking_cisco/plugins/cisco/db/device_manager/hosting_devices_db.py
CiscoSystems/networking-cisco
ed18627faf90caa1c0d1b7fe00f240a57901dee4
[ "Apache-2.0" ]
25
2016-01-28T12:33:41.000Z
2016-07-28T21:18:03.000Z
networking_cisco/plugins/cisco/db/device_manager/hosting_devices_db.py
CiscoSystems/networking-cisco
ed18627faf90caa1c0d1b7fe00f240a57901dee4
[ "Apache-2.0" ]
9
2015-05-07T02:47:55.000Z
2019-10-18T15:25:27.000Z
# Copyright 2014 Cisco Systems, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
48.510204
79
0.613799
c4409e6022c96881f96f61d9bbc07b9005839581
19,921
py
Python
mezzanine/core/tests.py
abendig/mezzanine
3219ac9ba2d6d94ce63e8b2a747c3b264b13beec
[ "BSD-2-Clause" ]
null
null
null
mezzanine/core/tests.py
abendig/mezzanine
3219ac9ba2d6d94ce63e8b2a747c3b264b13beec
[ "BSD-2-Clause" ]
null
null
null
mezzanine/core/tests.py
abendig/mezzanine
3219ac9ba2d6d94ce63e8b2a747c3b264b13beec
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals import re try: # Python 3 from urllib.parse import urlencode except ImportError: # Python 2 from urllib import urlencode from django import VERSION from django.contrib.admin import AdminSite from django.contrib.admin.options import InlineModelAdmin from django....
38.984344
79
0.63039
0e80ce5c588f6e623effcc181d5baa28701e6308
2,104
py
Python
main/templatetags/ranking_filter.py
sapuri/srandom.com
e0a7843886a97329f9022d4889ffafa3de708448
[ "MIT" ]
3
2019-05-04T08:22:38.000Z
2019-12-14T13:07:49.000Z
main/templatetags/ranking_filter.py
sapuri/srandom.com
e0a7843886a97329f9022d4889ffafa3de708448
[ "MIT" ]
49
2019-07-02T15:17:09.000Z
2022-03-21T20:11:59.000Z
main/templatetags/ranking_filter.py
sapuri/srandom.com
e0a7843886a97329f9022d4889ffafa3de708448
[ "MIT" ]
null
null
null
from django import template register = template.Library() # 指定された曲の平均BAD数を返す @register.filter def bad_count_avg(bad_count_list, music): if not bad_count_list: return None bad_count_sum = 0 # BAD数の合計 bad_count_num = 0 # BAD数の個数 for bad_count in bad_count_list: if bad_count.music.i...
27.324675
67
0.602662
ca57524649791d4e2b49c32bfc1def0c7a5b47ff
8,326
py
Python
dreamcoder/PCFG/program.py
nathanael-fijalkow/ec
c20fd84ca3944f904f5c999ed5df46eb6b6f8ef5
[ "MIT" ]
1
2021-06-11T08:20:25.000Z
2021-06-11T08:20:25.000Z
dreamcoder/PCFG/program.py
nathanael-fijalkow/ec
c20fd84ca3944f904f5c999ed5df46eb6b6f8ef5
[ "MIT" ]
null
null
null
dreamcoder/PCFG/program.py
nathanael-fijalkow/ec
c20fd84ca3944f904f5c999ed5df46eb6b6f8ef5
[ "MIT" ]
null
null
null
from dreamcoder.PCFG.type_system import * from dreamcoder.PCFG.cons_list import index import logging # dictionary { number of environment : value } # environment: a cons list # list = None | (value, list) # probability: a dictionary {(G.__hash(), S) : probability} # such that P.probability[S] is the probability that ...
31.657795
92
0.575306
82371bf8e8cf85dc10bc4167d71e962a2c01a661
17,749
py
Python
Python/read_bbox.py
xyj77/MRIDataLoader
dbbe6a77b3c96d66e374705370ac38a518cdce0f
[ "MIT" ]
2
2018-10-10T13:12:10.000Z
2019-04-18T13:11:55.000Z
Python/read_bbox.py
xyj77/MRIDataLoader
dbbe6a77b3c96d66e374705370ac38a518cdce0f
[ "MIT" ]
null
null
null
Python/read_bbox.py
xyj77/MRIDataLoader
dbbe6a77b3c96d66e374705370ac38a518cdce0f
[ "MIT" ]
3
2018-06-21T10:06:34.000Z
2018-10-10T13:18:16.000Z
#-*- coding:utf-8 -*- import os import re import pandas import pickle import numpy as np from PIL import Image import scipy.io as sio import scipy.misc as misc BBOX_DATA_DIR = '../../Data/BboxAug' MAT_DATA_DIR = '/media/lab304/J52/Dataset/Mat' LABEL_PATH = '../../Data/labels.csv' SAVE_DIR = '../../Data' sampleSet = s...
40.065463
103
0.524199
ce0976dc870364860a0bbb8119085c428542536a
284
py
Python
setup.py
WaylonWalker/unsync
04a57892dde57472c45a9ca4092fb57d8a222871
[ "MIT" ]
null
null
null
setup.py
WaylonWalker/unsync
04a57892dde57472c45a9ca4092fb57d8a222871
[ "MIT" ]
null
null
null
setup.py
WaylonWalker/unsync
04a57892dde57472c45a9ca4092fb57d8a222871
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='unsync', version='1.2.1', packages=['unsync'], url='https://github.com/alex-sherman/unsync', license='MIT', author='Alex-Sherman', author_email='asherman1024@gmail.com', description='Unsynchronize asyncio', )
21.846154
49
0.661972
5aa3c08023b3a097a4d7ba965f41077b3395192f
701
py
Python
108.py
sunilmhta/UVA
397e58fb88ba44c542f19d082c448987281e84ee
[ "MIT" ]
2
2017-03-06T21:19:57.000Z
2017-03-08T10:13:43.000Z
108.py
sunilmhta/UVA
397e58fb88ba44c542f19d082c448987281e84ee
[ "MIT" ]
null
null
null
108.py
sunilmhta/UVA
397e58fb88ba44c542f19d082c448987281e84ee
[ "MIT" ]
null
null
null
# Author: Sunil Kumar # Problem : Maximum sum of a subrectangle [in a matrix], ID: 108, Judge: UVA # Technique used: Kadane's algorithm # Time Complexity ; O(n^3) ans=-15000000 def kadane(start,end,matrix): storelist=[sum(matrix[i][start:end+1]) for i in range(0,len(matrix))] maxendinghere=maxtillnow = storelist[...
36.894737
97
0.727532
e8f8d02f03b32ef6d12488e59a5df21636ab899f
130,988
py
Python
ai_flow/protobuf/message_pb2.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
ai_flow/protobuf/message_pb2.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
ai_flow/protobuf/message_pb2.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# # Copyright 2022 The AI Flow 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 w...
47.805839
12,989
0.769887
ba08393a82b8c3f297e9c51f13c5fa53c10a7ff8
286
py
Python
InternetOfThings101/hello.py
Guanatos/theiotlearninginitiative
2ea81180f0911b5915ca1ba9af695d7c1330a349
[ "Apache-2.0" ]
null
null
null
InternetOfThings101/hello.py
Guanatos/theiotlearninginitiative
2ea81180f0911b5915ca1ba9af695d7c1330a349
[ "Apache-2.0" ]
null
null
null
InternetOfThings101/hello.py
Guanatos/theiotlearninginitiative
2ea81180f0911b5915ca1ba9af695d7c1330a349
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python my_str = "Hello World!!!" split = my_str.split() print(split) A = list(range(10)) print(A) B = [11,12,13,14] print(B) A.append(12) print("Append to A",A) age = 55 if age == 35: print("Age is equal to 35!") for x in range(3,16): if x % 2 == 0: print(x)
16.823529
31
0.594406
90798118444d755b3011d6760d284aecf1c6a3ac
286
py
Python
app/constants/letter_type.py
joelbcastillo/NYCOpenRecords
001dfa21cc33d75a9067cae78752c5ba5734718b
[ "Apache-2.0" ]
37
2016-01-21T18:33:56.000Z
2021-10-24T01:43:20.000Z
app/constants/letter_type.py
CityOfNewYork/NYCOpenRecords
476a236a573e6f3a2f96c6537a30ee27b2bd3a2b
[ "Apache-2.0" ]
179
2016-01-21T21:33:31.000Z
2022-02-15T21:31:35.000Z
app/constants/letter_type.py
joelbcastillo/NYCOpenRecords
001dfa21cc33d75a9067cae78752c5ba5734718b
[ "Apache-2.0" ]
13
2017-05-19T17:27:31.000Z
2020-07-05T00:55:29.000Z
from app.constants import ( determination_type, response_type ) letter_type = [ determination_type.ACKNOWLEDGMENT, determination_type.EXTENSION, determination_type.CLOSING, determination_type.DENIAL, determination_type.REOPENING, response_type.LETTER ]
20.428571
38
0.762238
accfdd21b9fc322814e78dd12f667976516bc06e
16,865
py
Python
YOLO/.history/pytorch-yolo-v3/video_demo_v1_20201106020535.py
jphacks/D_2003
60a5684d549862e85bdf758069518702d9925a48
[ "MIT" ]
1
2020-11-07T07:58:13.000Z
2020-11-07T07:58:13.000Z
YOLO/.history/pytorch-yolo-v3/video_demo_v1_20201106020535.py
jphacks/D_2003
60a5684d549862e85bdf758069518702d9925a48
[ "MIT" ]
null
null
null
YOLO/.history/pytorch-yolo-v3/video_demo_v1_20201106020535.py
jphacks/D_2003
60a5684d549862e85bdf758069518702d9925a48
[ "MIT" ]
4
2020-11-02T02:51:45.000Z
2020-11-07T02:54:47.000Z
from __future__ import division import time import torch import torch.nn as nn from torch.autograd import Variable import numpy as np import cv2 from util import * from darknet import Darknet from preprocess import prep_image, inp_to_image import pandas as pd import random import argparse import pickle as pkl import r...
36.190987
141
0.50756
3060ef061106c53f208fb5a26ba571ef0987dbb6
966
py
Python
venv/Lib/site-packages/nipype/algorithms/tests/test_splitmerge.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/algorithms/tests/test_splitmerge.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/algorithms/tests/test_splitmerge.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from nipype.testing import example_data def test_split_and_merge(tmpdir): import numpy as np import nibabel as nb import os.path as op import os from nipype.algorithms.misc import split_rois, merge_rois in_mask = example_data("tpms_msk.nii.gz") ...
29.272727
76
0.690476
bbc881559703ba0607fd5b6445ca6ff7c47ade54
1,594
py
Python
vox/show_notices.py
drocco007/vox_linux
9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33
[ "MIT" ]
5
2015-03-25T11:56:10.000Z
2018-02-03T21:11:27.000Z
vox/show_notices.py
drocco007/vox_linux
9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33
[ "MIT" ]
null
null
null
vox/show_notices.py
drocco007/vox_linux
9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33
[ "MIT" ]
null
null
null
# coding: utf-8 import sys from glib import GError import pynotify import bus from commands import SHOW_NOTIFICATION from process_utils import spawn_daemon_process def notifier(): pynotify.init(sys.argv[0]) title = 'Dragon Naturally Speaking' notice = pynotify.Notification(title, '') notice.show()...
26.566667
82
0.614806
f54bb984f0fd3558aee69bf3b6754c275c1a33e0
10,066
py
Python
monai/metrics/metric.py
vijayakumargopal/MONAI
10ffd1f1424e1dcafbce8d71481bed9c7a250a89
[ "Apache-2.0" ]
2,971
2019-10-16T23:53:16.000Z
2022-03-31T20:58:24.000Z
monai/metrics/metric.py
vijayakumargopal/MONAI
10ffd1f1424e1dcafbce8d71481bed9c7a250a89
[ "Apache-2.0" ]
2,851
2020-01-10T16:23:44.000Z
2022-03-31T22:14:53.000Z
monai/metrics/metric.py
vijayakumargopal/MONAI
10ffd1f1424e1dcafbce8d71481bed9c7a250a89
[ "Apache-2.0" ]
614
2020-01-14T19:18:01.000Z
2022-03-31T14:06:14.000Z
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
41.254098
119
0.661534
d2e75b9cd4d7a4ea745a88029f049fb214739b7b
283
py
Python
Backend/Tools for Pictures/copyfiles.py
RaresTeodor/Hacklytics2021
d329880efa062ca3d85592f51bca5f4e91618d2e
[ "MIT" ]
null
null
null
Backend/Tools for Pictures/copyfiles.py
RaresTeodor/Hacklytics2021
d329880efa062ca3d85592f51bca5f4e91618d2e
[ "MIT" ]
null
null
null
Backend/Tools for Pictures/copyfiles.py
RaresTeodor/Hacklytics2021
d329880efa062ca3d85592f51bca5f4e91618d2e
[ "MIT" ]
null
null
null
import shutil with open("../names.txt") as f: content = f.readlines() content = [x.strip() for x in content] for superstar in content: newname = superstar.replace(" ", "") directory = "./" + newname + "/" shutil.copy(directory + newname + ".png", './')
25.727273
55
0.575972
cd6b1eaf10be5e0429bcdbb1b2ff218d05d45adb
6,304
py
Python
System_of_Beams/testing_collection/test_runner.py
ChairOfStructuralMechanicsTUM/Mechanics_Apps
b064a42d4df3fa9bde62a5cff9cb27ca61b0127c
[ "MIT" ]
11
2017-05-06T17:05:29.000Z
2020-11-12T09:26:47.000Z
System_of_Beams/testing_collection/test_runner.py
ChairOfStructuralMechanicsTUM/Mechanics_Apps
b064a42d4df3fa9bde62a5cff9cb27ca61b0127c
[ "MIT" ]
49
2017-04-20T11:26:11.000Z
2020-05-29T13:18:06.000Z
System_of_Beams/testing_collection/test_runner.py
ChairOfStructuralMechanicsTUM/Mechanics_Apps
b064a42d4df3fa9bde62a5cff9cb27ca61b0127c
[ "MIT" ]
4
2017-02-14T12:55:34.000Z
2022-01-12T15:07:07.000Z
from testing_collection import visualisation_tests as visu_tests from Classes.CurrentDocument import CurrentDoc def run_tests(curr_doc: CurrentDoc): """ 1.) write test case and add it to file test_cases.py 2.) Call it in this function (run_tests() will be called in 'System_of_Beams\main.py' 3.) make s...
44.70922
101
0.521415
91e4eba8b9d04faea73b94fa9d178eeceb497dbb
472
py
Python
output/models/nist_data/list_pkg/token/schema_instance/nistschema_sv_iv_list_token_max_length_1_xsd/nistschema_sv_iv_list_token_max_length_1.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/token/schema_instance/nistschema_sv_iv_list_token_max_length_1_xsd/nistschema_sv_iv_list_token_max_length_1.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/token/schema_instance/nistschema_sv_iv_list_token_max_length_1_xsd/nistschema_sv_iv_list_token_max_length_1.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "NISTSchema-SV-IV-list-token-maxLength-1-NS" @dataclass class NistschemaSvIvListTokenMaxLength1: class Meta: name = "NISTSchema-SV-IV-list-token-maxLength-1" namespace = "NISTSchema-SV-IV-list-token-maxLength-1-NS" ...
23.6
64
0.646186
a2ae7e356ff7a79831a1c7eb71a09948031d45d7
694
py
Python
angrytux/config/Config.py
Wilson194/Angry-tux
62b7457948675071fe328b69ba5d85aab6b39ed1
[ "CC0-1.0" ]
null
null
null
angrytux/config/Config.py
Wilson194/Angry-tux
62b7457948675071fe328b69ba5d85aab6b39ed1
[ "CC0-1.0" ]
1
2019-02-05T04:50:27.000Z
2019-02-05T04:50:27.000Z
angrytux/config/Config.py
Wilson194/Angry-tux
62b7457948675071fe328b69ba5d85aab6b39ed1
[ "CC0-1.0" ]
null
null
null
import os from angrytux.model.Singleton import Singleton class Config(metaclass=Singleton): """ Class for global game config Has getitem from getting variables Singleton class """ def __init__(self): variables = {} exec(open(os.path.join(os.path.dirname(__file__), 'Data.py')...
25.703704
98
0.634006
195e035980eaa21dead07d02e22de8b925c5ad88
944
py
Python
src/layers/infrastructure/providers/chapi_provider.py
v-martel/CrakTextSummarizer
888c261f8b86b6f0fbb38025ed2d4bca873e84a4
[ "MIT" ]
null
null
null
src/layers/infrastructure/providers/chapi_provider.py
v-martel/CrakTextSummarizer
888c261f8b86b6f0fbb38025ed2d4bca873e84a4
[ "MIT" ]
null
null
null
src/layers/infrastructure/providers/chapi_provider.py
v-martel/CrakTextSummarizer
888c261f8b86b6f0fbb38025ed2d4bca873e84a4
[ "MIT" ]
2
2020-09-15T20:01:51.000Z
2020-09-15T20:12:40.000Z
from src.shared.config.configuration import configuration from src.layers.infrastructure.providers.temporary.queries import queryMfcTagsAndTitles, queryMfcTotal import requests import json class ChapiProvider: def __init__(self): self.config = configuration.layers.infrastructure.providers.chapi_provider ...
34.962963
108
0.701271
b12c1233a779fedc10dde49845e8162e5ffb6a46
479
py
Python
nomadgram/users/migrations/0016_auto_20180603_1125.py
yoosojeong/Nomadgram.
cd27f552e92f703ac925c8ef2266f89286f326d5
[ "MIT" ]
null
null
null
nomadgram/users/migrations/0016_auto_20180603_1125.py
yoosojeong/Nomadgram.
cd27f552e92f703ac925c8ef2266f89286f326d5
[ "MIT" ]
null
null
null
nomadgram/users/migrations/0016_auto_20180603_1125.py
yoosojeong/Nomadgram.
cd27f552e92f703ac925c8ef2266f89286f326d5
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-06-03 02:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0015_auto_20180603_1022'), ] operations = [ migrations.AlterField( model_name='user', name='gender', ...
25.210526
147
0.597077
a3caa22dca604c3accf528d829986c4e84bcf5c0
948
py
Python
DAppVotingSystem/utility/migrations/0005_alter_booth_manager_phone_no_and_more.py
vidyakore/Blockchain-based-E-VotingSystem
a86ad14d9699b5430f0556b15261506e4f5c46a6
[ "MIT" ]
1
2022-03-23T06:50:05.000Z
2022-03-23T06:50:05.000Z
DAppVotingSystem/utility/migrations/0005_alter_booth_manager_phone_no_and_more.py
vidyakore/Blockchain-based-E-VotingSystem
a86ad14d9699b5430f0556b15261506e4f5c46a6
[ "MIT" ]
null
null
null
DAppVotingSystem/utility/migrations/0005_alter_booth_manager_phone_no_and_more.py
vidyakore/Blockchain-based-E-VotingSystem
a86ad14d9699b5430f0556b15261506e4f5c46a6
[ "MIT" ]
1
2022-03-31T15:20:23.000Z
2022-03-31T15:20:23.000Z
# Generated by Django 4.0.3 on 2022-03-31 06:53 from django.db import migrations import phonenumber_field.modelfields class Migration(migrations.Migration): dependencies = [ ('utility', '0004_booth_manager_candidate_candidate_constituency_and_more'), ] operations = [ migrations.AlterFie...
31.6
106
0.655063
239f6ff8e5ba1d247a8bd624f6c016f2c64a9d39
3,155
py
Python
Django/django_app/django_app/settings.py
justnclrk/Python
0922961cbd94694a69ae8132a5c33baf552d8d89
[ "MIT" ]
null
null
null
Django/django_app/django_app/settings.py
justnclrk/Python
0922961cbd94694a69ae8132a5c33baf552d8d89
[ "MIT" ]
8
2020-06-06T01:02:06.000Z
2022-03-12T00:24:13.000Z
Django/django_app/django_app/settings.py
justnclrk/Python
0922961cbd94694a69ae8132a5c33baf552d8d89
[ "MIT" ]
null
null
null
""" Django settings for django_app project. Generated by 'django-admin startproject' using Django 1.11.10. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impor...
25.650407
91
0.696038