hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79816a497e3a62894f046c6983b207d868f6eb94
1,361
py
Python
src/helpers/plotting.py
manpen/nemo-eva
079680f04da049720eb6b5817c086bc9866f5154
[ "MIT" ]
1
2019-01-11T16:42:07.000Z
2019-01-11T16:42:07.000Z
src/helpers/plotting.py
manpen/nemo-eva
079680f04da049720eb6b5817c086bc9866f5154
[ "MIT" ]
5
2018-04-20T20:47:07.000Z
2018-05-30T15:26:16.000Z
src/helpers/plotting.py
manpen/nemo-eva
079680f04da049720eb6b5817c086bc9866f5154
[ "MIT" ]
1
2019-01-11T16:42:22.000Z
2019-01-11T16:42:22.000Z
import uuid import warnings import plotly.graph_objs as go with warnings.catch_warnings(): warnings.simplefilter("ignore") import plotly.offline as plotly plotly.offline.init_notebook_mode() _my_uuid_counter = 0 def _my_uuid(): global _my_uuid_counter _my_uuid_counter += 1 return "_my_uuid_cou...
24.303571
93
0.592212
79816a51f35263d244e655233ff45fd5e7e7a49a
640
py
Python
modules/post-exploitation/pykek.py
saydulk/ptf
bc669fdc51129affd2d77390369943551b49ab34
[ "FTL" ]
null
null
null
modules/post-exploitation/pykek.py
saydulk/ptf
bc669fdc51129affd2d77390369943551b49ab34
[ "FTL" ]
null
null
null
modules/post-exploitation/pykek.py
saydulk/ptf
bc669fdc51129affd2d77390369943551b49ab34
[ "FTL" ]
16
2015-09-28T18:46:29.000Z
2019-04-19T08:28:24.000Z
#!/usr/bin/env python ##################################### # Installation module for PyKek ##################################### # AUTHOR OF MODULE NAME AUTHOR="David Kennedy (ReL1K)" # DESCRIPTION OF THE MODULE DESCRIPTION="This module will install/update PyKEK - Kerberos exploitation kit" # INSTALL TYPE GIT, SVN,...
23.703704
79
0.673438
79816a5400dbbb6872ec4a58a67c19dc557b5947
7,259
py
Python
reg-Mode2/regular-Mode2.py
caasted/GAN-enhanced-classifier
9839a28e883b91fc7fa12c70f65fb3f672a863f3
[ "MIT" ]
2
2017-02-18T02:14:46.000Z
2019-03-18T15:20:10.000Z
reg-Mode2/regular-Mode2.py
caasted/GAN-enhanced-classifier
9839a28e883b91fc7fa12c70f65fb3f672a863f3
[ "MIT" ]
null
null
null
reg-Mode2/regular-Mode2.py
caasted/GAN-enhanced-classifier
9839a28e883b91fc7fa12c70f65fb3f672a863f3
[ "MIT" ]
1
2019-10-14T03:35:51.000Z
2019-10-14T03:35:51.000Z
from keras.datasets import cifar10 from keras.models import Model from keras.layers import Dense, Dropout, SpatialDropout2D, Activation, Flatten from keras.layers import Input, Convolution2D, Reshape, UpSampling2D from keras.layers.advanced_activations import LeakyReLU from keras.layers.normalization import BatchNormal...
34.079812
101
0.705331
79816ca81be86a12b7c3432edf79dde9a6864b5e
3,808
py
Python
keystoneauth1/loading/cli.py
mail2nsrajesh/keystoneauth
b007f9c0539aaa134d0cf24b32988ca64001851e
[ "Apache-1.1" ]
null
null
null
keystoneauth1/loading/cli.py
mail2nsrajesh/keystoneauth
b007f9c0539aaa134d0cf24b32988ca64001851e
[ "Apache-1.1" ]
null
null
null
keystoneauth1/loading/cli.py
mail2nsrajesh/keystoneauth
b007f9c0539aaa134d0cf24b32988ca64001851e
[ "Apache-1.1" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
35.924528
79
0.684086
79816cb6b1a53119f19a7cf95d5911f145a8e1ce
3,016
py
Python
Transformer/src/model.py
arkilpatel/Transformer-Computation-Analysis
82341f5f2f9cd0831e390f44b338165e45cd6413
[ "MIT" ]
6
2021-04-09T11:25:24.000Z
2021-04-16T18:40:12.000Z
Transformer/src/model.py
arkilpatel/Transformer-Computation-Analysis
82341f5f2f9cd0831e390f44b338165e45cd6413
[ "MIT" ]
null
null
null
Transformer/src/model.py
arkilpatel/Transformer-Computation-Analysis
82341f5f2f9cd0831e390f44b338165e45cd6413
[ "MIT" ]
2
2020-10-13T15:18:14.000Z
2021-04-06T17:54:49.000Z
import numpy as np import random import torch import torch.nn as nn import torch.nn.functional as F import math import copy import time import logging from torch.autograd import Variable import pdb from src.components.utils import * from src.components.encoder import * from src.components.decoder import * ...
30.77551
91
0.70756
79816d8c683568e13b7b45d939977cf0c881b6ae
150
py
Python
final-project/audioquiz/apps.py
krishna-vasudev/lightify
31d67c42b943439af8ad82d6e7b7e1c7c62f2a7f
[ "MIT" ]
null
null
null
final-project/audioquiz/apps.py
krishna-vasudev/lightify
31d67c42b943439af8ad82d6e7b7e1c7c62f2a7f
[ "MIT" ]
4
2021-10-09T17:56:16.000Z
2021-10-10T12:09:54.000Z
final-project/audioquiz/apps.py
krishna-vasudev/lightify
31d67c42b943439af8ad82d6e7b7e1c7c62f2a7f
[ "MIT" ]
2
2021-10-09T17:33:52.000Z
2021-10-10T11:19:07.000Z
from django.apps import AppConfig class AudioquizConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'audioquiz'
21.428571
56
0.766667
79816df73577b41fad332bbb224ad3350e109944
747
py
Python
profiles_api/permissions.py
ghostfreeker1991/profiles-rest-api
6d076af42553d66a9234a478384f16717e0449db
[ "MIT" ]
null
null
null
profiles_api/permissions.py
ghostfreeker1991/profiles-rest-api
6d076af42553d66a9234a478384f16717e0449db
[ "MIT" ]
null
null
null
profiles_api/permissions.py
ghostfreeker1991/profiles-rest-api
6d076af42553d66a9234a478384f16717e0449db
[ "MIT" ]
null
null
null
from rest_framework import permissions class UpdateOwnProfile(permissions.BasePermission): """Allow user to edit their own profile""" def has_object_permission(self, request, view, obj): """check user is trying to edit their own profile""" if request.method in permissions.SAFE_METHODS: ...
32.478261
65
0.685408
79816e101891d977eae1b5b6ce8c03a54c89a19b
5,777
py
Python
source/data_preprocessing.py
UltraAssassin64/Toxicity-Detection-with-Emoji
84d136740a87754606cad638765ee49912e07e2a
[ "Apache-2.0" ]
null
null
null
source/data_preprocessing.py
UltraAssassin64/Toxicity-Detection-with-Emoji
84d136740a87754606cad638765ee49912e07e2a
[ "Apache-2.0" ]
null
null
null
source/data_preprocessing.py
UltraAssassin64/Toxicity-Detection-with-Emoji
84d136740a87754606cad638765ee49912e07e2a
[ "Apache-2.0" ]
1
2021-12-09T22:55:09.000Z
2021-12-09T22:55:09.000Z
__author__ = "Baishali Dutta" __copyright__ = "Copyright (C) 2021 Baishali Dutta" __license__ = "Apache License 2.0" __version__ = "0.1" # ------------------------------------------------------------------------- # Import Libraries # ----------------------------------------------------...
43.43609
104
0.559979
79816e4d93c8e59320004c9401ada5967621f7ef
332
py
Python
VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/vtk/vtkFiltersPoints.py
jiaguobing/FastCAE
2348ab87e83fe5c704e4c998cf391229c25ac5d5
[ "BSD-3-Clause" ]
2
2020-02-21T01:04:35.000Z
2020-02-21T03:35:37.000Z
VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/vtk/vtkFiltersPoints.py
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
1
2020-03-06T04:49:42.000Z
2020-03-06T04:49:42.000Z
VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/vtk/vtkFiltersPoints.py
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
1
2021-11-21T13:03:26.000Z
2021-11-21T13:03:26.000Z
from __future__ import absolute_import try: # use relative import for installed modules from .vtkFiltersPointsPython import * except ImportError: # during build and testing, the modules will be elsewhere, # e.g. in lib directory or Release/Debug config directories from vtkFiltersPointsPytho...
33.2
64
0.746988
79816ecd9959103ab04cbf42236f7956e77f2dff
460
py
Python
setup.py
marquelzikri/TS_001
32d03e981184c26032ca42e9f08f3b508b299f53
[ "MIT" ]
null
null
null
setup.py
marquelzikri/TS_001
32d03e981184c26032ca42e9f08f3b508b299f53
[ "MIT" ]
null
null
null
setup.py
marquelzikri/TS_001
32d03e981184c26032ca42e9f08f3b508b299f53
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("requirements.txt") as f: install_requires = f.read().strip().split("\n") # get version from __version__ variable in ts_001/__init__.py from ts_001 import __version__ as version setup( name="ts_001", version=version, description="TS-001", author="Kataba", a...
23
61
0.771739
79816f37a99e623f12620ce53d8e727cfad49b82
20,218
py
Python
parser/team21/Analisis Ascendente/parsetab.py
elielbarrios/tytus
61d008423bc8eb27897624cd2f48e6127b6a8584
[ "MIT" ]
null
null
null
parser/team21/Analisis Ascendente/parsetab.py
elielbarrios/tytus
61d008423bc8eb27897624cd2f48e6127b6a8584
[ "MIT" ]
null
null
null
parser/team21/Analisis Ascendente/parsetab.py
elielbarrios/tytus
61d008423bc8eb27897624cd2f48e6127b6a8584
[ "MIT" ]
null
null
null
# parsetab.py # This file is automatically generated. Do not edit. # pylint: disable=W,C,R _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'leftOROleftANDOleftNOIGUALIGUALIGUALleftMAYORMENORMAYORIGUALMENORIGUALleftMAYMAYMENMENleftMASMENOSleftMULTDIVleftNOTOGNOTleftPARIZQPARDRADD ALTER AND ANDO AS BETWEEN BI...
182.144144
8,591
0.609309
79816f629ed80f8a75119acc654255be54eac72e
224
bzl
Python
bloop/bloop.bzl
stripe-archive/bazel-bloop-exporter
d04826f06e1f72f80d80765844a4c74657001583
[ "MIT" ]
2
2021-04-01T20:18:33.000Z
2022-02-06T08:09:11.000Z
bloop/bloop.bzl
stripe-archive/bazel-bloop-exporter
d04826f06e1f72f80d80765844a4c74657001583
[ "MIT" ]
null
null
null
bloop/bloop.bzl
stripe-archive/bazel-bloop-exporter
d04826f06e1f72f80d80765844a4c74657001583
[ "MIT" ]
1
2021-04-08T11:02:04.000Z
2021-04-08T11:02:04.000Z
load("//bloop/private:bloop_target.bzl", "bloop_target_test") def bloop_target(**kwargs): bloop_target_test( name = "%s.bloop" % kwargs["name"], target = kwargs["name"], tags = ["manual"], )
24.888889
61
0.589286
79816f84c1c3e7c147637b5fe965a430315e21d2
1,475
py
Python
spider/spider/spiders/redfin_spider.py
tpark49/StanleyMartinHomes
d55102fec3bca7d41ad255b737983a75af96bbcf
[ "MIT" ]
null
null
null
spider/spider/spiders/redfin_spider.py
tpark49/StanleyMartinHomes
d55102fec3bca7d41ad255b737983a75af96bbcf
[ "MIT" ]
null
null
null
spider/spider/spiders/redfin_spider.py
tpark49/StanleyMartinHomes
d55102fec3bca7d41ad255b737983a75af96bbcf
[ "MIT" ]
1
2022-01-28T17:08:42.000Z
2022-01-28T17:08:42.000Z
from scrapy import Spider, Request from spider.items import RedfinItem list_of_zipcode = [20001] class RedfinSpider(Spider): name = "redfin_spider" allowed_urls = ['https://www.redfin.com/zipcode'] start_urls = ['https://www.redfin.com/zipcode/{i}' for i in list_of_zipcode] #get all urls to parse th...
33.522727
139
0.627119
79816ff350514c438ab2c188cc7adbf98f49c5a6
12,427
py
Python
runtime/test/specs/V1_2/transpose_conv2d.mod.py
aosp-goes-brrbrr/packages_modules_NeuralNetworks
87a14e21ce905ce7c4584fe9a53e4397a4d33c67
[ "Apache-2.0" ]
null
null
null
runtime/test/specs/V1_2/transpose_conv2d.mod.py
aosp-goes-brrbrr/packages_modules_NeuralNetworks
87a14e21ce905ce7c4584fe9a53e4397a4d33c67
[ "Apache-2.0" ]
null
null
null
runtime/test/specs/V1_2/transpose_conv2d.mod.py
aosp-goes-brrbrr/packages_modules_NeuralNetworks
87a14e21ce905ce7c4584fe9a53e4397a4d33c67
[ "Apache-2.0" ]
2
2021-11-28T11:20:31.000Z
2021-11-28T11:28:38.000Z
# # Copyright (C) 2018 The Android Open Source Project # # 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 la...
43.911661
159
0.605214
798170a59f241903c72c0efa067da1ab19e28c0d
4,851
py
Python
rqalpha/const.py
sinall/rqalpha
8fc553c07b07806ea35582a6939fae35fb8114e7
[ "Apache-2.0" ]
1
2018-07-31T10:56:38.000Z
2018-07-31T10:56:38.000Z
rqalpha/const.py
sinall/rqalpha
8fc553c07b07806ea35582a6939fae35fb8114e7
[ "Apache-2.0" ]
null
null
null
rqalpha/const.py
sinall/rqalpha
8fc553c07b07806ea35582a6939fae35fb8114e7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 Ricequant, 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 ...
23.896552
116
0.650381
798170df040f11d291d1ef31089a7890db09a48a
10,442
py
Python
check.py
mta452/text-rendering-tests
3969a736d738b1599557569b806b295975eade20
[ "Apache-2.0" ]
1
2019-01-22T07:06:38.000Z
2019-01-22T07:06:38.000Z
check.py
DalavanCloud/text-rendering-tests
a74747f8e71e184016d693da22640e9aaeb1b662
[ "Apache-2.0" ]
null
null
null
check.py
DalavanCloud/text-rendering-tests
a74747f8e71e184016d693da22640e9aaeb1b662
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- # # Copyright 2016 Unicode 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/LICEN...
43.508333
99
0.57307
798171a265edd85e96b60e82e2d39bdb26544e34
810
py
Python
test/knxip_tests/description_request_test.py
kistlin/xknx
a402c4609a8f3d5d96d83af271db52cb9006d6ec
[ "MIT" ]
1
2022-03-06T14:42:39.000Z
2022-03-06T14:42:39.000Z
test/knxip_tests/description_request_test.py
kistlin/xknx
a402c4609a8f3d5d96d83af271db52cb9006d6ec
[ "MIT" ]
11
2022-03-14T22:32:38.000Z
2022-03-31T22:35:08.000Z
test/knxip_tests/description_request_test.py
kistlin/xknx
a402c4609a8f3d5d96d83af271db52cb9006d6ec
[ "MIT" ]
null
null
null
"""Unit test for KNX/IP DescriptionRequest objects.""" from xknx.knxip import HPAI, DescriptionRequest, KNXIPFrame class TestKNXIPDescriptionRequest: """Test class for KNX/IP DescriptionRequest objects.""" def test_description_request(self): """Test parsing and streaming DescriptionRequest KNX/IP pac...
36.818182
87
0.693827
7981728a100e2d30bd14494a4bf9affcda932c1c
1,473
py
Python
src/python/stup/twistedutils/time_wheel.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
14
2017-05-06T10:14:32.000Z
2018-07-17T02:58:00.000Z
src/python/stup/twistedutils/time_wheel.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
2
2017-06-13T05:40:18.000Z
2017-06-13T16:23:01.000Z
src/python/stup/twistedutils/time_wheel.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
4
2017-06-09T20:20:54.000Z
2018-07-17T02:58:10.000Z
#coding=utf-8 from __future__ import absolute_import import logging import six from stup.utils import nop class TimeWheel(object): def __init__(self, size=100, granularity=0.05): assert granularity >= 0.01 self.size = size + 1 self.granularity = granularity self.wheel = [[] for i...
27.792453
95
0.564834
7981739f9a1863b0be98d5bab4cba5889a36af38
2,390
py
Python
zaza/charm_tests/nova/setup.py
gnuoy/zaza
d4faa3e30ade9d8285aad8e132045417d85a5c9d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/charm_tests/nova/setup.py
gnuoy/zaza
d4faa3e30ade9d8285aad8e132045417d85a5c9d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/charm_tests/nova/setup.py
gnuoy/zaza
d4faa3e30ade9d8285aad8e132045417d85a5c9d
[ "ECL-2.0", "Apache-2.0" ]
1
2019-06-25T09:52:11.000Z
2019-06-25T09:52:11.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...
36.212121
75
0.689958
798173b4a33071e89778b3fa5a7dfbfce909e6c7
3,312
py
Python
data/hotcrp-json-to-json.py
timmboettger/imc2017-webpage
14fe0b09389f6b04615977a21516091fa6ae6d85
[ "MIT" ]
null
null
null
data/hotcrp-json-to-json.py
timmboettger/imc2017-webpage
14fe0b09389f6b04615977a21516091fa6ae6d85
[ "MIT" ]
null
null
null
data/hotcrp-json-to-json.py
timmboettger/imc2017-webpage
14fe0b09389f6b04615977a21516091fa6ae6d85
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import argparse import json def create_file(json_output): with open(json_output, 'w') as f: program = {'papers': []} json.dump(program, f) def process_json(json_input, json_output, input_type): # paper and poster program share identical file structures # the HTML shortcode decides which...
28.551724
93
0.680254
7981756ead7a01710f0c60ef711c3f15ddc05dc8
1,921
py
Python
tests/client/test_options.py
pmusa/enterprise-search-python
31a64285532373b5e709718a15ea24746b1f3e6e
[ "Apache-2.0" ]
null
null
null
tests/client/test_options.py
pmusa/enterprise-search-python
31a64285532373b5e709718a15ea24746b1f3e6e
[ "Apache-2.0" ]
1
2021-02-24T07:13:31.000Z
2021-02-24T07:13:31.000Z
tests/client/test_options.py
pmusa/enterprise-search-python
31a64285532373b5e709718a15ea24746b1f3e6e
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
36.245283
75
0.706403
798176ad241e75fba42de3ede2318318ccf85b7f
918
py
Python
test/test_stock_category_input.py
altoyield/python-beanieclient
448b8dd328054eaf32dd7d0bdff700e603b5c27d
[ "Apache-2.0" ]
null
null
null
test/test_stock_category_input.py
altoyield/python-beanieclient
448b8dd328054eaf32dd7d0bdff700e603b5c27d
[ "Apache-2.0" ]
null
null
null
test/test_stock_category_input.py
altoyield/python-beanieclient
448b8dd328054eaf32dd7d0bdff700e603b5c27d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Beanie ERP API An API specification for interacting with the Beanie ERP system # noqa: E501 OpenAPI spec version: 0.2 Contact: dev@bean.ie Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import be...
22.390244
87
0.708061
798177f6ec66cb17cc1eb74b19b55266e8a3c163
6,975
py
Python
bot1/piloting/pilot.py
dpm76/Bot1
a8e4f6cbc6e4f1d5f1a373a8b3c43811df6446f8
[ "MIT" ]
null
null
null
bot1/piloting/pilot.py
dpm76/Bot1
a8e4f6cbc6e4f1d5f1a373a8b3c43811df6446f8
[ "MIT" ]
null
null
null
bot1/piloting/pilot.py
dpm76/Bot1
a8e4f6cbc6e4f1d5f1a373a8b3c43811df6446f8
[ "MIT" ]
null
null
null
''' Created on 06/11/2018 @author: david ''' from enum import Enum, unique import time import logging from engine.driver import Driver @unique class PilotState(Enum): Stopped = 0 Travelling = 1 Rotating = 2 class BasicPilot(object): PID_PERIOD = 0.02 #TODO: 20181110 DPM: The followi...
31.138393
115
0.530753
798178c74d4cc262f100e851e9db8d24bd92a23a
27,122
py
Python
cogs/musicsetup.py
skk7414/Crayonbot
ee9ba34e6e19cf0d20a497aeb8320c646c478000
[ "MIT" ]
null
null
null
cogs/musicsetup.py
skk7414/Crayonbot
ee9ba34e6e19cf0d20a497aeb8320c646c478000
[ "MIT" ]
null
null
null
cogs/musicsetup.py
skk7414/Crayonbot
ee9ba34e6e19cf0d20a497aeb8320c646c478000
[ "MIT" ]
1
2022-01-13T09:45:57.000Z
2022-01-13T09:45:57.000Z
import traceback from typing import Optional import aiosqlite import discord from discord.ext import commands import time import discordSuperUtils from discordSuperUtils import MusicManager from tools.database_tool import DataBaseTool import datetime from bot import MyBot from py_cord_components import ( ...
44.608553
159
0.551582
79817955f11c9b71317eac6ed11d9f521f8d9e61
888
py
Python
setup.py
ruth-ann/deepsnap
35eeb5abdb304c53b2e0a68cbbeeaa55dca286a0
[ "MIT" ]
null
null
null
setup.py
ruth-ann/deepsnap
35eeb5abdb304c53b2e0a68cbbeeaa55dca286a0
[ "MIT" ]
null
null
null
setup.py
ruth-ann/deepsnap
35eeb5abdb304c53b2e0a68cbbeeaa55dca286a0
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="deepsnap", version="0.2.0", author="Jiaxuan You*, Rex Ying*, Xinwei He, Zecheng Zhang", author_email="jiaxuan@cs.stanford.edu, rexy@cs.stanford.edu, xhe17@cs.stanford.edu, zecheng@cs.stanford....
29.6
113
0.648649
7981796671313cac22ff3f6dc82b26f70a578953
15,745
py
Python
tests/test_flaskparser.py
jmcarp/webargs
f1b0763bc37e23c94b92c8771392b5bfdde142d1
[ "MIT" ]
null
null
null
tests/test_flaskparser.py
jmcarp/webargs
f1b0763bc37e23c94b92c8771392b5bfdde142d1
[ "MIT" ]
null
null
null
tests/test_flaskparser.py
jmcarp/webargs
f1b0763bc37e23c94b92c8771392b5bfdde142d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json import mock import io from flask import Flask, jsonify from flask.views import MethodView from werkzeug.exceptions import HTTPException from werkzeug.datastructures import ImmutableMultiDict import pytest from webargs import Arg, Missing from...
38.590686
95
0.655637
798179d27a52eefc800998fb59067944d1bc5f8c
4,614
py
Python
examples/python/reset_allocation.py
Axecalever/intel-cmt-cat
50e77aaeca0734ad037d64fec1c20d07f2546d26
[ "BSD-3-Clause" ]
null
null
null
examples/python/reset_allocation.py
Axecalever/intel-cmt-cat
50e77aaeca0734ad037d64fec1c20d07f2546d26
[ "BSD-3-Clause" ]
null
null
null
examples/python/reset_allocation.py
Axecalever/intel-cmt-cat
50e77aaeca0734ad037d64fec1c20d07f2546d26
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # BSD LICENSE # # Copyright(c) 2019 Intel Corporation. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following cond...
30.355263
81
0.599046
798179fe5922547b8fa033d398b2484c971b1077
377
py
Python
tests/test.py
ro-56/Projeto-Mestrado
5bc685f9b5bc69202aaae413f3478d817a1f3af0
[ "MIT" ]
null
null
null
tests/test.py
ro-56/Projeto-Mestrado
5bc685f9b5bc69202aaae413f3478d817a1f3af0
[ "MIT" ]
null
null
null
tests/test.py
ro-56/Projeto-Mestrado
5bc685f9b5bc69202aaae413f3478d817a1f3af0
[ "MIT" ]
null
null
null
import unittest import src.genetic as gen class TestStringMethods(unittest.TestCase): def test_getAverageValue(self): lst = [1,2,3] self.assertEqual(gen.getAverageValue(lst), 2) def test_getAverageValue_emptyList(self): lst = [] self.assertEqual(gen.getAverageValue(lst), 0) ...
13.962963
53
0.66313
79817a5c47c4629dc9529451480561136b93a39c
1,810
py
Python
login/views.py
costamay/stock-management-system
c78dfd7e9a12434adee30680c9225c5aefb50a02
[ "MIT" ]
null
null
null
login/views.py
costamay/stock-management-system
c78dfd7e9a12434adee30680c9225c5aefb50a02
[ "MIT" ]
null
null
null
login/views.py
costamay/stock-management-system
c78dfd7e9a12434adee30680c9225c5aefb50a02
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect,HttpResponse,HttpResponseRedirect from django.contrib.auth import login,authenticate from login.models import * from django.contrib.auth.decorators import login_required,user_passes_test from django.urls import reverse from django.contrib.auth.mixins import LoginRequiredMix...
32.321429
78
0.681768
79817aaf5d6877c23d6a36722587c942dc47ba0d
154
py
Python
File/csv_reader.py
Ahmad-Fahad/python-practice
bea29e1eeb691b6c457d1e47129f6c308a091f44
[ "Apache-2.0" ]
null
null
null
File/csv_reader.py
Ahmad-Fahad/python-practice
bea29e1eeb691b6c457d1e47129f6c308a091f44
[ "Apache-2.0" ]
null
null
null
File/csv_reader.py
Ahmad-Fahad/python-practice
bea29e1eeb691b6c457d1e47129f6c308a091f44
[ "Apache-2.0" ]
null
null
null
import csv with open("data_files/iphone_price.csv", 'r') as f_obj: f_csv = csv.reader(f_obj) for i, row in enumerate(f_csv): print(i, row[0], row[1])
19.25
55
0.688312
79817b3bcc5751f6b1d2e364ab793e44d97b28a9
2,357
py
Python
keras_textclassification/m15_SWEM/graph.py
Vail-qin/Keras-TextClassification
8acda5ae37db2647c8ecaa70027ffc6003d2abca
[ "MIT" ]
null
null
null
keras_textclassification/m15_SWEM/graph.py
Vail-qin/Keras-TextClassification
8acda5ae37db2647c8ecaa70027ffc6003d2abca
[ "MIT" ]
null
null
null
keras_textclassification/m15_SWEM/graph.py
Vail-qin/Keras-TextClassification
8acda5ae37db2647c8ecaa70027ffc6003d2abca
[ "MIT" ]
1
2022-01-11T06:37:54.000Z
2022-01-11T06:37:54.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/12/13 10:51 # @author :Mo # @function :graph of SWEM # @paper : Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanisms() from keras.layers import GlobalMaxPooling1D, GlobalAveragePooling1D, MaxPooling1D, Conca...
36.828125
113
0.629614
79817d67526048549953557518b0e97d97540652
16,145
py
Python
sdk/storage/azure-storage-blob/tests/test_large_block_blob.py
anuchandy/azure-sdk-for-python
589b9890554ebf261aa2184e8f1c6507f01a207c
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/tests/test_large_block_blob.py
anuchandy/azure-sdk-for-python
589b9890554ebf261aa2184e8f1c6507f01a207c
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/tests/test_large_block_blob.py
anuchandy/azure-sdk-for-python
589b9890554ebf261aa2184e8f1c6507f01a207c
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
41.186224
139
0.665469
79817d78409f4265e59076579a22b124867fae89
1,346
py
Python
stix_shifter_modules/qradar/stix_translation/query_translator.py
lizstranger/stix-shifter
d1d979085e85853e11d206d87c9e75fe975ab61d
[ "Apache-2.0" ]
1
2020-08-31T21:41:45.000Z
2020-08-31T21:41:45.000Z
stix_shifter_modules/qradar/stix_translation/query_translator.py
lizstranger/stix-shifter
d1d979085e85853e11d206d87c9e75fe975ab61d
[ "Apache-2.0" ]
null
null
null
stix_shifter_modules/qradar/stix_translation/query_translator.py
lizstranger/stix-shifter
d1d979085e85853e11d206d87c9e75fe975ab61d
[ "Apache-2.0" ]
null
null
null
from stix_shifter_utils.modules.base.stix_translation.base_query_translator import BaseQueryTranslator import logging from . import query_constructor from stix_shifter_utils.utils.file_helper import read_json logger = logging.getLogger(__name__) class QueryTranslator(BaseQueryTranslator): def __init__(self, opt...
39.588235
186
0.729569
79817e51d0776bbf44221c51a5745189fbb85e15
26
py
Python
MTG/__init__.py
wanqizhu/mtg-python-engine
fb68edd9f7a99643c30f70042caf9513cf71493d
[ "MIT" ]
25
2017-11-15T18:08:24.000Z
2021-11-20T07:11:25.000Z
MTG/__init__.py
wanqizhu/mtg-python-engine
fb68edd9f7a99643c30f70042caf9513cf71493d
[ "MIT" ]
1
2020-08-03T03:04:27.000Z
2020-08-19T14:53:49.000Z
MTG/__init__.py
wanqizhu/mtg-python-engine
fb68edd9f7a99643c30f70042caf9513cf71493d
[ "MIT" ]
7
2018-03-04T06:56:53.000Z
2022-02-03T20:11:33.000Z
__all__ = ["card", "game"]
26
26
0.576923
79817e5b7cf10933c5ca935f368af13ca1d49a34
170
py
Python
tests/test_sample.py
augmentedfabricationlab/xr_assembly
dbdd2b75f75f062f456f5909f612691868ee9c1b
[ "MIT" ]
null
null
null
tests/test_sample.py
augmentedfabricationlab/xr_assembly
dbdd2b75f75f062f456f5909f612691868ee9c1b
[ "MIT" ]
null
null
null
tests/test_sample.py
augmentedfabricationlab/xr_assembly
dbdd2b75f75f062f456f5909f612691868ee9c1b
[ "MIT" ]
null
null
null
from xr_assembly import SampleClassName def test_calculate_answer(): sample = SampleClassName('some', 1773, ['values']) assert sample.calculate_answer(0) == 42
24.285714
54
0.741176
79818359d74ba5a71cd6d6ee2c4f888bf0e657bd
69
py
Python
wakatime/packages/requests_ntlm/__init__.py
Anton-Latukha/wakatime
3035a28a3f996a11d928802dcb05844bb0a52655
[ "BSD-3-Clause" ]
1,198
2015-01-02T12:08:49.000Z
2021-10-07T02:46:59.000Z
wakatime/packages/requests_ntlm/__init__.py
Anton-Latukha/wakatime
3035a28a3f996a11d928802dcb05844bb0a52655
[ "BSD-3-Clause" ]
249
2015-01-22T13:31:12.000Z
2021-05-01T08:01:22.000Z
wakatime/packages/requests_ntlm/__init__.py
Anton-Latukha/wakatime
3035a28a3f996a11d928802dcb05844bb0a52655
[ "BSD-3-Clause" ]
118
2015-01-16T19:13:15.000Z
2021-07-21T15:09:15.000Z
from .requests_ntlm import HttpNtlmAuth __all__ = ('HttpNtlmAuth',)
17.25
39
0.782609
79818396af2173a542d612472d9b8f183338a320
6,787
py
Python
izone/settings.py
Moingpony/my_izone
bfcf870fe306a0d9483cb2c6eb6587e711c41914
[ "MIT" ]
null
null
null
izone/settings.py
Moingpony/my_izone
bfcf870fe306a0d9483cb2c6eb6587e711c41914
[ "MIT" ]
9
2020-03-24T17:00:12.000Z
2022-03-11T23:44:52.000Z
izone/settings.py
Moingpony/my_izone
bfcf870fe306a0d9483cb2c6eb6587e711c41914
[ "MIT" ]
null
null
null
""" Django settings for izone project. Generated by 'django-admin startproject' using Django 1.10.6. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ ...
26.93254
92
0.673641
798183d807d32e22eb3c45460ee47c0b8fb430fc
25,488
py
Python
tasks-deploy/passengers-1/check.py
HackerDom/qctf-starter-2018
f4eef0fd41d777661b9fbcc61dcee9709d9f6268
[ "MIT" ]
8
2018-03-15T12:07:11.000Z
2020-12-01T15:02:46.000Z
tasks-deploy/passengers-1/check.py
HackerDom/qctf-starter-2018
f4eef0fd41d777661b9fbcc61dcee9709d9f6268
[ "MIT" ]
17
2020-01-28T22:17:42.000Z
2022-03-11T23:18:09.000Z
tasks-deploy/passengers-1/check.py
HackerDom/qctf-starter-2018
f4eef0fd41d777661b9fbcc61dcee9709d9f6268
[ "MIT" ]
2
2018-11-26T18:54:27.000Z
2018-12-05T17:37:32.000Z
#!/usr/bin/env python3 flags = ["QCTF{530e6668f828f16f0c818201c4f9f094}", "QCTF{3be77543c17568797282613e817fc21c}", "QCTF{9b93e5ad532cd0ed2a5264f9820155c0}", "QCTF{9b4e0f82087de4af5e4efc69d5eb8b7b}", "QCTF{66ce7468c7fa87f9d77f020073cee929}", "QCTF{399435bdf18eafd4730c7481b028b0f6}", "QCTF{88abce5347d065fc25e09215553e...
2,317.090909
25,208
0.855265
798183f12a474df1ce498c36f44c15502b5a08db
897
py
Python
src/account/azext_account/generated/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/account/azext_account/generated/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/account/azext_account/generated/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
52.764706
114
0.561873
798184ca937a5a815dbb39ce1668d2595dbdca58
460
py
Python
stores/migrations/0006_auto_20210111_0925.py
ashishkr619/dukaan_main
b236b498b95f62160959b5e84bb642a0be6063b0
[ "MIT" ]
null
null
null
stores/migrations/0006_auto_20210111_0925.py
ashishkr619/dukaan_main
b236b498b95f62160959b5e84bb642a0be6063b0
[ "MIT" ]
null
null
null
stores/migrations/0006_auto_20210111_0925.py
ashishkr619/dukaan_main
b236b498b95f62160959b5e84bb642a0be6063b0
[ "MIT" ]
null
null
null
# Generated by Django 2.2.17 on 2021-01-11 09:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stores', '0005_auto_20210111_0912'), ] operations = [ migrations.AlterField( model_name='store', name='store_link',...
24.210526
121
0.628261
7981850ab6394d5a71877dd6bb61d86d9c6e66d8
982
py
Python
ws2122-lspm/Scripts/sqlformat-script.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Scripts/sqlformat-script.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Scripts/sqlformat-script.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
#!C:\ws2122-lspm\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'sqlparse==0.4.2','console_scripts','sqlformat' import re import sys # for compatibility with easy_install; see #2198 __requires__ = 'sqlparse==0.4.2' try: from importlib.metadata import distribution except ImportError: try: from importl...
28.882353
83
0.701629
7981854a195a76d9048d030b436c3474d218a138
4,826
py
Python
test/test_lookml_modifier.py
m-deck/lookml-tools
26c4194a76e0d69f9d555b642926b61171d9aaf1
[ "Apache-2.0" ]
73
2019-06-10T20:28:36.000Z
2022-03-04T03:13:23.000Z
test/test_lookml_modifier.py
mborukhava/lookml-tools
cded1fd6a916cedebfd4a5b21993ce117a4a1a11
[ "Apache-2.0" ]
6
2019-06-11T14:21:39.000Z
2019-10-19T18:11:57.000Z
test/test_lookml_modifier.py
mborukhava/lookml-tools
cded1fd6a916cedebfd4a5b21993ce117a4a1a11
[ "Apache-2.0" ]
14
2019-06-19T18:09:52.000Z
2022-01-03T20:17:33.000Z
import pytest import json import os from pandas import DataFrame from lkmltools.updater.lookml_modifier import LookMlModifier from conftest import get_lookml_from_raw_lookml @pytest.fixture() def config(): with open("test/config.json", 'r') as f: config = json.load(f) return config def test_init(conf...
28.388235
121
0.655201
798186059aa3d454157ea7d8766a91c430b75384
431
py
Python
slartibartfast/project_name/wsgi.py
mattcaldwell/django-project-templates
2946caf4dc2afd9f22912ce2acfd240df22d2f1b
[ "MIT" ]
1
2015-11-05T17:55:46.000Z
2015-11-05T17:55:46.000Z
slartibartfast/project_name/wsgi.py
mattcaldwell/django-project-templates
2946caf4dc2afd9f22912ce2acfd240df22d2f1b
[ "MIT" ]
null
null
null
slartibartfast/project_name/wsgi.py
mattcaldwell/django-project-templates
2946caf4dc2afd9f22912ce2acfd240df22d2f1b
[ "MIT" ]
null
null
null
""" WSGI config for {{ project_name }} 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/{{ docs_version }}/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_n...
28.733333
83
0.767981
7981860bb58fa0124ec4f7baa107eb93149abce6
846
py
Python
examples/python/unit-test-simple/bugzilla.py
AlaminMahamud/Test-Driven-Development---Notes
5acf9e15858a6af6209ead5c0f13ddb903a3277a
[ "MIT" ]
null
null
null
examples/python/unit-test-simple/bugzilla.py
AlaminMahamud/Test-Driven-Development---Notes
5acf9e15858a6af6209ead5c0f13ddb903a3277a
[ "MIT" ]
null
null
null
examples/python/unit-test-simple/bugzilla.py
AlaminMahamud/Test-Driven-Development---Notes
5acf9e15858a6af6209ead5c0f13ddb903a3277a
[ "MIT" ]
null
null
null
import requests class MyBugzilla: def __init__(self, account, server='https://bugzilla.mozilla.org'): self.account = account self.server = server self.session = requests.Session() def bug_link(self, bug_id): return f'{self.server}/show_bug.cgi?id={bug_id}' def get_new_bug...
24.882353
71
0.526005
7981863928823d6995ac6fbf569772c646391c4f
80
py
Python
sphi_sola/_version.py
matthias-stein/sphi_sola
c9d236992ba75301b07f9f800ae46aff1b66da99
[ "MIT" ]
4
2021-07-12T20:24:11.000Z
2022-03-30T19:27:49.000Z
gitlab_multi_group_runner/_version.py
sciapp/gitlab-multi-group-runner
b351b77244bf28d7be696ae53087e06dfda6972e
[ "MIT" ]
3
2021-12-07T11:50:00.000Z
2022-03-29T04:37:42.000Z
gitlab_multi_group_runner/_version.py
sciapp/gitlab-multi-group-runner
b351b77244bf28d7be696ae53087e06dfda6972e
[ "MIT" ]
null
null
null
__version_info__ = (0, 1, 2) __version__ = ".".join(map(str, __version_info__))
26.666667
50
0.7
79818744b685834061386109f8f3c64478c85452
3,294
py
Python
MICRO_CPU_profiling/plot_SIFT100M/plot_throughput_experiment_2_algorithm_settings.py
WenqiJiang/faiss-cpu-profiling
f2c7b3051f8860e8918c713ef4baddd563cc515c
[ "MIT" ]
null
null
null
MICRO_CPU_profiling/plot_SIFT100M/plot_throughput_experiment_2_algorithm_settings.py
WenqiJiang/faiss-cpu-profiling
f2c7b3051f8860e8918c713ef4baddd563cc515c
[ "MIT" ]
null
null
null
MICRO_CPU_profiling/plot_SIFT100M/plot_throughput_experiment_2_algorithm_settings.py
WenqiJiang/faiss-cpu-profiling
f2c7b3051f8860e8918c713ef4baddd563cc515c
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt import numpy as np import pickle plt.style.use('ggplot') # SIFT100M, K=100 y_no_OPQ = np.array([1500, 2103, 2533, 3624, 5903, 7468, 7032, 7194, 553]) y_OPQ = np.array([1509, 2446, 3423, 3602, 5649, 6954, 7794, 7390, 518]) x_labels = ['nlist=1024', 'nlist=2048', 'nlis...
35.804348
136
0.656648
798188c69dd125f7902f5c1458d86e61cc3b12ec
2,220
py
Python
laboratory/inject/network_model.py
acmore/OpenEmbedding
607a47c0543f8108d6390bda83db1fb4f4280a90
[ "Apache-2.0" ]
20
2021-08-20T10:55:42.000Z
2022-02-22T12:15:34.000Z
laboratory/inject/network_model.py
acmore/OpenEmbedding
607a47c0543f8108d6390bda83db1fb4f4280a90
[ "Apache-2.0" ]
null
null
null
laboratory/inject/network_model.py
acmore/OpenEmbedding
607a47c0543f8108d6390bda83db1fb4f4280a90
[ "Apache-2.0" ]
5
2021-09-12T09:01:03.000Z
2021-11-01T02:43:00.000Z
import os import pandas import tensorflow as tf import horovod.tensorflow.keras as hvd import deepctr.models import deepctr.feature_column import argparse parser = argparse.ArgumentParser() default_data = os.path.dirname(os.path.abspath(__file__)) + '/train100.csv' parser.add_argument('--data', default=default_data) #...
38.275862
100
0.723423
798188d714dbc8989d7405699e8852492fe6d325
61,864
py
Python
neutron/tests/unit/openvswitch/test_agent_scheduler.py
ksshanam/neutron-dvr
c0854ea0d1023ab42e1ef861f9b6ff480e985ac5
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/openvswitch/test_agent_scheduler.py
ksshanam/neutron-dvr
c0854ea0d1023ab42e1ef861f9b6ff480e985ac5
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/openvswitch/test_agent_scheduler.py
ksshanam/neutron-dvr
c0854ea0d1023ab42e1ef861f9b6ff480e985ac5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 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 agreed to...
48.673485
79
0.573047
798188dd0916d112f1e426b7d7bb0230ed367335
310
py
Python
prueba/config/docs.py
jessica-tandazo/prueba
5ef4a1c2e3da728f13a913a466818b2fb0b7348f
[ "MIT" ]
null
null
null
prueba/config/docs.py
jessica-tandazo/prueba
5ef4a1c2e3da728f13a913a466818b2fb0b7348f
[ "MIT" ]
null
null
null
prueba/config/docs.py
jessica-tandazo/prueba
5ef4a1c2e3da728f13a913a466818b2fb0b7348f
[ "MIT" ]
null
null
null
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/prueba" # docs_base_url = "https://[org_name].github.io/prueba" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Prueba"
25.833333
68
0.719355
798188faa2b94fd9c497d555576cbd05b0d956f5
5,291
py
Python
parser.py
andersrye/parsey-universal-server
e95e7b91136d10d8999751945d3e30858e912ecc
[ "CC0-1.0" ]
14
2017-03-14T07:53:29.000Z
2019-08-04T01:51:20.000Z
parser.py
andersrye/parsey-universal-server
e95e7b91136d10d8999751945d3e30858e912ecc
[ "CC0-1.0" ]
null
null
null
parser.py
andersrye/parsey-universal-server
e95e7b91136d10d8999751945d3e30858e912ecc
[ "CC0-1.0" ]
8
2017-03-16T21:11:41.000Z
2019-10-01T21:45:08.000Z
#!/usr/bin/python3 from collections import OrderedDict import subprocess import os # ROOT_DIR = 'models/syntaxnet' PARSER_EVAL = 'bazel-bin/syntaxnet/parser_eval' #MODEL_DIR = 'syntaxnet/models/parsey_mcparseface' MODELS_DIR = 'syntaxnet/models/parsey_universal/' CONTEXT = 'syntaxnet/models/parsey_universal/context.p...
30.583815
94
0.620488
79818905e840d7a9bc31df4fb0ffa3783de870c8
758
py
Python
backend/expense_tracker_backend/tracker_app/migrations/0001_initial.py
zawye-imu/expense-tracker
d1a6ab0cb76da70d55a093f49fb044a92a463345
[ "MIT" ]
null
null
null
backend/expense_tracker_backend/tracker_app/migrations/0001_initial.py
zawye-imu/expense-tracker
d1a6ab0cb76da70d55a093f49fb044a92a463345
[ "MIT" ]
null
null
null
backend/expense_tracker_backend/tracker_app/migrations/0001_initial.py
zawye-imu/expense-tracker
d1a6ab0cb76da70d55a093f49fb044a92a463345
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-01-23 06:25 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='IncomeExpense', fields=[ ('id', models.BigA...
28.074074
117
0.547493
7981892ea7c536e66dd9136e64ae4666887aa5bc
3,755
py
Python
nova/tests/functional/regressions/test_bug_1741125.py
panguan737/nova
0d177185a439baa228b42c948cab4e934d6ac7b8
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/regressions/test_bug_1741125.py
panguan737/nova
0d177185a439baa228b42c948cab4e934d6ac7b8
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/regressions/test_bug_1741125.py
panguan737/nova
0d177185a439baa228b42c948cab4e934d6ac7b8
[ "Apache-2.0" ]
1
2020-11-02T10:17:13.000Z
2020-11-02T10:17:13.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
41.722222
75
0.685486
798189b730b1951b28223c50908004b90b6ec58d
729
py
Python
graphs/datasets/tests/test_mountain_car.py
vishalbelsare/graphs
4fbeb025dfe33340335f34300f58dd3809228822
[ "MIT" ]
15
2015-12-31T21:48:56.000Z
2020-11-09T13:34:41.000Z
graphs/datasets/tests/test_mountain_car.py
perimosocordiae/graphs
4fbeb025dfe33340335f34300f58dd3809228822
[ "MIT" ]
null
null
null
graphs/datasets/tests/test_mountain_car.py
perimosocordiae/graphs
4fbeb025dfe33340335f34300f58dd3809228822
[ "MIT" ]
7
2015-09-18T14:26:00.000Z
2018-10-21T11:46:11.000Z
from __future__ import absolute_import import numpy as np import unittest from matplotlib import pyplot pyplot.switch_backend('template') from ... import Graph from .. import mountain_car as mcar class TestMountainCar(unittest.TestCase): def test_traj_sampling(self): traj, traces = mcar.mountain_car_trajector...
25.137931
54
0.721536
798189f0d1ad26b66ed2ffc76ff013b0cd04d6b1
3,567
py
Python
lightnlp/sl/cws/module.py
CNLPT/lightNLP
c7f128422ba5b16f514bb294145cb3b562e95829
[ "Apache-2.0" ]
null
null
null
lightnlp/sl/cws/module.py
CNLPT/lightNLP
c7f128422ba5b16f514bb294145cb3b562e95829
[ "Apache-2.0" ]
null
null
null
lightnlp/sl/cws/module.py
CNLPT/lightNLP
c7f128422ba5b16f514bb294145cb3b562e95829
[ "Apache-2.0" ]
null
null
null
import torch from tqdm import tqdm from ...utils.learning import adjust_learning_rate from ...utils.log import logger from ...base.module import Module from .config import DEVICE, DEFAULT_CONFIG from .model import Config, BiLstmCrf from .tool import cws_tool from .utils.convert import bis_cws seed = 2019 torch.manua...
39.633333
120
0.639193
79818a424a05a2c8eb3caee8b041639c6d05e023
208,873
py
Python
src/command_modules/azure-cli-network/azure/cli/command_modules/network/custom.py
ooo516/AzureCLI
fb9af8294eadc5aeee9231852bc368fe3b5d1b02
[ "MIT" ]
1
2019-09-18T06:26:58.000Z
2019-09-18T06:26:58.000Z
src/command_modules/azure-cli-network/azure/cli/command_modules/network/custom.py
ooo516/AzureCLI
fb9af8294eadc5aeee9231852bc368fe3b5d1b02
[ "MIT" ]
1
2021-06-01T23:50:24.000Z
2021-06-01T23:50:24.000Z
src/command_modules/azure-cli-network/azure/cli/command_modules/network/custom.py
ooo516/AzureCLI
fb9af8294eadc5aeee9231852bc368fe3b5d1b02
[ "MIT" ]
1
2019-09-18T06:27:00.000Z
2019-09-18T06:27:00.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
49.320661
182
0.712754
79818a5d5606a0338c8c9e96320ef3bf69b3b822
5,237
py
Python
docs/python/modellingPractical.py
jgomezdans/GEOG0133
a3aaab62d7c5c78ee12e57b46ee783ba664de567
[ "MIT" ]
2
2021-12-27T12:23:52.000Z
2022-01-09T22:44:27.000Z
docs/python/modellingPractical.py
profLewis/GEOG0133_OLD
147ea7c2948dbbe46d63e3fcf33fed2c8b510ae6
[ "MIT" ]
null
null
null
docs/python/modellingPractical.py
profLewis/GEOG0133_OLD
147ea7c2948dbbe46d63e3fcf33fed2c8b510ae6
[ "MIT" ]
1
2021-07-26T07:43:53.000Z
2021-07-26T07:43:53.000Z
from photJules import * import pylab as plt self = photosynthesis() def test1(self,n=100,name='a',ipar=200.,Tc=None,x=None,xlabel=None,\ omega=None,co2_ppmv=390,C3=True,type='C3 grass',plot=True): ''' low light level, span a temperature range, normal CO2 ''' self.data = np.zeros(n) ...
32.73125
94
0.514989
79818a8cda60a0b24c074760c7192781bac787b6
895
py
Python
pystiche/enc/encoder.py
sourcery-ai-bot/pystiche
57bc6cfd074d47e8ad98a4f6e570b92ce37131bc
[ "BSD-3-Clause" ]
null
null
null
pystiche/enc/encoder.py
sourcery-ai-bot/pystiche
57bc6cfd074d47e8ad98a4f6e570b92ce37131bc
[ "BSD-3-Clause" ]
null
null
null
pystiche/enc/encoder.py
sourcery-ai-bot/pystiche
57bc6cfd074d47e8ad98a4f6e570b92ce37131bc
[ "BSD-3-Clause" ]
null
null
null
from abc import abstractmethod from typing import Sequence import torch from torch import nn import pystiche from .guides import propagate_guide __all__ = ["Encoder", "SequentialEncoder"] class Encoder(pystiche.Module): @abstractmethod def forward(self, input_image: torch.Tensor) -> torch.Tensor: ...
24.189189
67
0.680447
79818ba80b80eb4d1411f961bf226094476686a0
65,260
py
Python
opentamp/src/core/util_classes/backup_namo_predicates.py
Algorithmic-Alignment-Lab/openTAMP-legacy
3b7c3be164cc968ad77a928286d6460cd70a670e
[ "MIT" ]
2
2022-03-09T19:48:20.000Z
2022-03-26T17:31:07.000Z
opentamp/src/core/util_classes/backup_namo_predicates.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
null
null
null
opentamp/src/core/util_classes/backup_namo_predicates.py
Algorithmic-Alignment-Lab/OpenTAMP
eecb950bd273da8cbed4394487630e8453f2c242
[ "MIT" ]
null
null
null
from core.internal_repr.predicate import Predicate from core.internal_repr.plan import Plan from core.util_classes.common_predicates import ExprPredicate from core.util_classes.openrave_body import OpenRAVEBody from errors_exceptions import PredicateException from sco_py.expr import Expr, AffExpr, EqExpr, LEqExpr impor...
32.195363
132
0.519522
79818bffbc0a4c2694f2bcd8bcb81d608b4d4c97
9,006
py
Python
tensorboard/plugins/text/text_plugin.py
cghawthorne/tensorboard
82ef0a5a4b4177ab22b9673e29cab49e99438370
[ "Apache-2.0" ]
1
2021-03-20T00:05:44.000Z
2021-03-20T00:05:44.000Z
tensorboard/plugins/text/text_plugin.py
cghawthorne/tensorboard
82ef0a5a4b4177ab22b9673e29cab49e99438370
[ "Apache-2.0" ]
2
2022-02-15T12:29:44.000Z
2022-03-02T13:26:06.000Z
tensorboard/plugins/text/text_plugin.py
cghawthorne/tensorboard
82ef0a5a4b4177ab22b9673e29cab49e99438370
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.113636
81
0.649789
79818cc8cd7159eaba63f34e67f8c7f440586920
6,818
py
Python
tests/espresso/test_speech_dataset.py
Fei00Wu/espresso
4e8e6e2f9151a87448845c5142611c103dd4580c
[ "MIT" ]
null
null
null
tests/espresso/test_speech_dataset.py
Fei00Wu/espresso
4e8e6e2f9151a87448845c5142611c103dd4580c
[ "MIT" ]
null
null
null
tests/espresso/test_speech_dataset.py
Fei00Wu/espresso
4e8e6e2f9151a87448845c5142611c103dd4580c
[ "MIT" ]
null
null
null
# Copyright (c) Yiming Wang # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest import string import numpy as np import os import torch from espresso.data import ( AsrDictionary, AsrTextDataset, ScpCachedDataset, ...
35.326425
82
0.585069
79818db0829f43794011b4d35822870b6fe5f032
5,814
py
Python
pypureclient/flasharray/FA_2_11/models/policyrulesnapshotpost_rules.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_11/models/policyrulesnapshotpost_rules.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_11/models/policyrulesnapshotpost_rules.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.11 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
42.75
642
0.614207
79818db9f8f8b53d3f4ca6e53ed9427631584004
29,936
py
Python
sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_slices_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_slices_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/operations/_slices_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.41543
222
0.675541
79818de04a1b69dd791e230c0faed3711b1dcaef
1,041
py
Python
lab_4/start.py
ashirka/2020-2-level-labs
bd75b0efa7da888c4aed7f3e6d1a12df983025e4
[ "MIT" ]
null
null
null
lab_4/start.py
ashirka/2020-2-level-labs
bd75b0efa7da888c4aed7f3e6d1a12df983025e4
[ "MIT" ]
null
null
null
lab_4/start.py
ashirka/2020-2-level-labs
bd75b0efa7da888c4aed7f3e6d1a12df983025e4
[ "MIT" ]
null
null
null
"Lab 4 implementation starter" from lab_4.main import WordStorage, encode_text, LikelihoodBasedTextGenerator, decode_text from lab_4.ngrams.ngram_trie import NGramTrie if __name__ == '__main__': corpus = ('i', 'have', 'a', 'cat', '<END>', 'his', 'name', 'is', 'bruno', '<END>', 'i', 'ha...
37.178571
99
0.617675
79818fa5c5dbe67b08d37bfea1ca63dee4a7ef9e
57
py
Python
colorizer/__init__.py
AlexanderKozhevin/trainingrepo
60a2759ed63224ca568fd201797971c9bdfd76dc
[ "MIT" ]
null
null
null
colorizer/__init__.py
AlexanderKozhevin/trainingrepo
60a2759ed63224ca568fd201797971c9bdfd76dc
[ "MIT" ]
3
2021-09-08T02:24:29.000Z
2022-03-12T00:44:32.000Z
colorizer/__init__.py
AlexanderKozhevin/trainingrepo
60a2759ed63224ca568fd201797971c9bdfd76dc
[ "MIT" ]
null
null
null
from colorizer._device import _Device device = _Device()
19
37
0.807018
79818faf60d3598bdcf65aacccfed514d400b0cd
2,907
py
Python
DomeoDashboard/web-app/js/exhibit 2.2.0/api/extensions/curate/files/admin/exhibit.py
rkboyce/domeo
0f018253a98c0d80e75832c6ee9bc4607f9c1fa7
[ "Apache-1.1" ]
1
2016-05-13T03:04:56.000Z
2016-05-13T03:04:56.000Z
DomeoDashboard/web-app/js/exhibit 2.2.0/api/extensions/curate/files/admin/exhibit.py
rkboyce/domeo
0f018253a98c0d80e75832c6ee9bc4607f9c1fa7
[ "Apache-1.1" ]
null
null
null
DomeoDashboard/web-app/js/exhibit 2.2.0/api/extensions/curate/files/admin/exhibit.py
rkboyce/domeo
0f018253a98c0d80e75832c6ee9bc4607f9c1fa7
[ "Apache-1.1" ]
1
2018-02-21T07:12:28.000Z
2018-02-21T07:12:28.000Z
#!/usr/bin/env python import sys import cgi import simplejson import os.path import portalocker # config dict stores server-side exhibit configuration details config = dict( # enter a unique admin password for this exhibit password = 'MY_PASSWORD ', # json file the exhibit database is stored in dat...
24.225
74
0.669075
7981909267a4503229c5db5446ac454253bbf64a
128
py
Python
DE/Solutions/04 - Managing Data Access and Production Pipelines/DE 4.4.2L - End-to-End ELT in the Lakehouse Lab/2 - Land New Data.py
mark-ott/DE
259bff7ec8832848f1c0f3909c3dfa31289f0f2d
[ "CC0-1.0" ]
null
null
null
DE/Solutions/04 - Managing Data Access and Production Pipelines/DE 4.4.2L - End-to-End ELT in the Lakehouse Lab/2 - Land New Data.py
mark-ott/DE
259bff7ec8832848f1c0f3909c3dfa31289f0f2d
[ "CC0-1.0" ]
null
null
null
DE/Solutions/04 - Managing Data Access and Production Pipelines/DE 4.4.2L - End-to-End ELT in the Lakehouse Lab/2 - Land New Data.py
mark-ott/DE
259bff7ec8832848f1c0f3909c3dfa31289f0f2d
[ "CC0-1.0" ]
null
null
null
# Databricks notebook source # MAGIC %run ../../Includes/classroom-setup-dlt-lab # COMMAND ---------- DA.data_factory.load()
16
51
0.664063
798190a1b07ab3be7b58413407cea52124d8a86a
14,565
py
Python
sonnet/src/initializers.py
SergeyVolodko/sonnet
ae34a78bc230f5316dc99dc06326c35d6c4d9f09
[ "Apache-2.0" ]
1
2021-05-03T20:22:20.000Z
2021-05-03T20:22:20.000Z
sonnet/src/initializers.py
SergeyVolodko/sonnet
ae34a78bc230f5316dc99dc06326c35d6c4d9f09
[ "Apache-2.0" ]
2
2021-08-25T16:15:01.000Z
2022-02-10T03:30:25.000Z
sonnet/src/initializers.py
SergeyVolodko/sonnet
ae34a78bc230f5316dc99dc06326c35d6c4d9f09
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
35.437956
80
0.656849
7981917fe9c2f30611ce4f04dcb098d8051d64cd
2,511
py
Python
registration/api/serializers.py
shifat151/heartarcade
887601bf9774dbbc0dcee9618c3a6e4a59f38717
[ "MIT" ]
null
null
null
registration/api/serializers.py
shifat151/heartarcade
887601bf9774dbbc0dcee9618c3a6e4a59f38717
[ "MIT" ]
7
2021-02-13T16:45:37.000Z
2021-08-31T09:26:10.000Z
registration/api/serializers.py
shifat151/heartarcade
887601bf9774dbbc0dcee9618c3a6e4a59f38717
[ "MIT" ]
null
null
null
from rest_framework import serializers from registration.models import User class RegistrationSerializer(serializers.ModelSerializer): username=serializers.CharField(label='Username:',help_text="Remember your username. It will be needed for signing in!") email=serializers.EmailField(label='Email:') ...
37.477612
123
0.660693
798192f11d5a3928069ac8c7bb85722b7b10e1f4
451
py
Python
src/manage.py
adrienlina/dnd-spellbook
4356e3a36e4805bf89071a425259ca8d2c69ed92
[ "MIT" ]
null
null
null
src/manage.py
adrienlina/dnd-spellbook
4356e3a36e4805bf89071a425259ca8d2c69ed92
[ "MIT" ]
null
null
null
src/manage.py
adrienlina/dnd-spellbook
4356e3a36e4805bf89071a425259ca8d2c69ed92
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": # CHANGED manage.py will use development settings by # default. Change the DJANGO_SETTINGS_MODULE environment variable # for using the environment specific settings file. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dnd_spellbook...
32.214286
89
0.780488
79819316d6424c51f296c3b7cadaf32dde924ed2
15,915
py
Python
GoodLifeBot.py
Xhrbes/GoodLife-Bot
047105e30e141056c4b1b7dd0127d5e768b2cd5d
[ "MIT" ]
null
null
null
GoodLifeBot.py
Xhrbes/GoodLife-Bot
047105e30e141056c4b1b7dd0127d5e768b2cd5d
[ "MIT" ]
null
null
null
GoodLifeBot.py
Xhrbes/GoodLife-Bot
047105e30e141056c4b1b7dd0127d5e768b2cd5d
[ "MIT" ]
null
null
null
from datetime import datetime import requests import json import time import os def logo(): print(' _____ _ _ _ __ _____ _ _ __ __ ___ ___ __ ') print(' / ____| | || |(_) / _| | __ \ ...
39.007353
241
0.60377
79819396f6b8c9fda6579b5e231e8f653f576dab
804
py
Python
Examples/AppKit/PredicateEditorSample/CaseInsensitivePredicateTemplate.py
Khan/pyobjc-framework-Cocoa
f8b015ea2a72d8d78be6084fb12925c4785b8f1f
[ "MIT" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Cocoa/Examples/AppKit/PredicateEditorSample/CaseInsensitivePredicateTemplate.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Cocoa/Examples/AppKit/PredicateEditorSample/CaseInsensitivePredicateTemplate.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from Cocoa import * class CaseInsensitivePredicateTemplate (NSPredicateEditorRowTemplate): def predicateWithSubpredicates_(self, subpredicates): # we only make NSComparisonPredicates predicate = super(CaseInsensitivePredicateTemplate, self).predicateWithSubpredicates_(subpredicates) # cons...
50.25
108
0.717662
798194050d757de256986cbc423d5426f2858b8d
1,513
py
Python
samples/generated_samples/pubsub_v1_generated_schema_service_create_schema_sync.py
acocuzzo/python-pubsub
fcb67dd0d8fff5a583ebe0a3a08d0219601df8e9
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/pubsub_v1_generated_schema_service_create_schema_sync.py
acocuzzo/python-pubsub
fcb67dd0d8fff5a583ebe0a3a08d0219601df8e9
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/pubsub_v1_generated_schema_service_create_schema_sync.py
acocuzzo/python-pubsub
fcb67dd0d8fff5a583ebe0a3a08d0219601df8e9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 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...
30.26
85
0.747521
79819576422619cbc01315846b4c3fc8c4ddceae
25,128
py
Python
packages/vaex-hdf5/vaex/hdf5/dataset.py
eff-kay/vaex
a30a4f7520b93b1898a8d03db9a7ded468f35940
[ "MIT" ]
1
2021-12-17T02:58:49.000Z
2021-12-17T02:58:49.000Z
packages/vaex-hdf5/vaex/hdf5/dataset.py
eff-kay/vaex
a30a4f7520b93b1898a8d03db9a7ded468f35940
[ "MIT" ]
null
null
null
packages/vaex-hdf5/vaex/hdf5/dataset.py
eff-kay/vaex
a30a4f7520b93b1898a8d03db9a7ded468f35940
[ "MIT" ]
null
null
null
__author__ = 'maartenbreddels' import os import logging import numpy as np import numpy.ma import vaex from vaex.utils import ensure_string import re import six import vaex.dataset import vaex.file from vaex.expression import Expression from vaex.dataset_mmap import DatasetMemoryMapped from vaex.file import gcs, s3 fro...
44.007005
152
0.556948
79819676c0f30c6767acb80264bc8709bb9ee158
6,365
py
Python
toyplot/format.py
kmatt/toyplot
d6784ab176c93aebf9b12831ced8f435bdcfeab1
[ "BSD-3-Clause" ]
null
null
null
toyplot/format.py
kmatt/toyplot
d6784ab176c93aebf9b12831ced8f435bdcfeab1
[ "BSD-3-Clause" ]
null
null
null
toyplot/format.py
kmatt/toyplot
d6784ab176c93aebf9b12831ced8f435bdcfeab1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014, Sandia Corporation. Under the terms of Contract # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain # rights in this software. """Strategy objects for formatting text.""" import numbers import warnings import custom_inherit import numpy import toyplot class Formatte...
30.165877
98
0.599686
7981973e66b2cf91abb230efac3bb7fad228daca
4,558
py
Python
PID.py
clarsen/aquarium-heater
d483575ea5eba653ab7c9173b1e397614516928e
[ "MIT" ]
null
null
null
PID.py
clarsen/aquarium-heater
d483575ea5eba653ab7c9173b1e397614516928e
[ "MIT" ]
2
2020-08-20T16:25:47.000Z
2021-06-01T21:38:14.000Z
PID.py
clarsen/aquarium-heater
d483575ea5eba653ab7c9173b1e397614516928e
[ "MIT" ]
1
2021-03-08T21:24:10.000Z
2021-03-08T21:24:10.000Z
#!/usr/bin/python # # This file is part of IvPID. # Copyright (C) 2015 Ivmech Mechatronics Ltd. <bilgi@ivmech.com> # # IvPID is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or ...
34.270677
140
0.625932
7981979490aa651067a81ce43473a107f0860b6f
50
py
Python
test/test_main.py
fracivilization/entity_typing
ca6c327c47639e09adb55e4d84ec4f9867544e28
[ "Apache-2.0" ]
null
null
null
test/test_main.py
fracivilization/entity_typing
ca6c327c47639e09adb55e4d84ec4f9867544e28
[ "Apache-2.0" ]
null
null
null
test/test_main.py
fracivilization/entity_typing
ca6c327c47639e09adb55e4d84ec4f9867544e28
[ "Apache-2.0" ]
null
null
null
def test_load_conll03_dataset() -> None: pass
16.666667
40
0.72
7981979c505622010d2299cf7a2934e167055e98
1,145
py
Python
tce/tcloud/vpc/DeleteNetworkAcl.py
FatAnker/tencentcloud-sdk-python
d6f75a41dc7053cb51f9091f4d41b8cb7a837559
[ "Apache-2.0" ]
null
null
null
tce/tcloud/vpc/DeleteNetworkAcl.py
FatAnker/tencentcloud-sdk-python
d6f75a41dc7053cb51f9091f4d41b8cb7a837559
[ "Apache-2.0" ]
null
null
null
tce/tcloud/vpc/DeleteNetworkAcl.py
FatAnker/tencentcloud-sdk-python
d6f75a41dc7053cb51f9091f4d41b8cb7a837559
[ "Apache-2.0" ]
1
2019-03-25T02:21:47.000Z
2019-03-25T02:21:47.000Z
# -*- coding: utf8 -*- from QcloudApi.qcloudapi import QcloudApi from tce.tcloud.utils.config import global_config # 设置需要加载的模块 module = 'vpc' # 对应接口的接口名,请参考wiki文档上对应接口的接口名 action = 'DeleteNetworkAcl' region = global_config.get('regions') params = global_config.get(region) secretId = params['secretId'] secretKey = par...
25.444444
76
0.704803
798198910eda598463111c3336dac2f2d7b0c52e
11,779
py
Python
crm/settings.py
jpatnode/Django-CRM
9ea41d53d739c59d3e3c93d8d1d1be5b1fefe512
[ "MIT" ]
null
null
null
crm/settings.py
jpatnode/Django-CRM
9ea41d53d739c59d3e3c93d8d1d1be5b1fefe512
[ "MIT" ]
null
null
null
crm/settings.py
jpatnode/Django-CRM
9ea41d53d739c59d3e3c93d8d1d1be5b1fefe512
[ "MIT" ]
null
null
null
import os from celery.schedules import crontab # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! # Set in local_settings.py SECRET_KEY = 'SECRET_SECRET_SECRET...
29.083951
103
0.610323
7981991e1f6e5a0ae5ec83bd06fe27d2cfedf8e8
286
py
Python
microsoft_atp_safe_links/komand_microsoft_atp_safe_links/util/utils.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
microsoft_atp_safe_links/komand_microsoft_atp_safe_links/util/utils.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
microsoft_atp_safe_links/komand_microsoft_atp_safe_links/util/utils.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
from urllib.parse import unquote def decode_url(url: str) -> str: url_split = url.split("?") split_url_params = url_split[1].split("&") for param in split_url_params: if param.split("=")[0] == "url": return unquote(param.split("=")[1]) return url
23.833333
47
0.604895
798199d3b9294513953880b07b9fcfbb25683c55
1,204
py
Python
tests/bool-tests.py
wyt2000/USTC-2021-WebInfo-Lab1
786aec6ce35080c52e4f71147fa03f13a4e12100
[ "MIT" ]
null
null
null
tests/bool-tests.py
wyt2000/USTC-2021-WebInfo-Lab1
786aec6ce35080c52e4f71147fa03f13a4e12100
[ "MIT" ]
null
null
null
tests/bool-tests.py
wyt2000/USTC-2021-WebInfo-Lab1
786aec6ce35080c52e4f71147fa03f13a4e12100
[ "MIT" ]
null
null
null
import sys sys.path.append('src') from bool_search import BoolSearchEngine b = BoolSearchEngine() def test_1(): assert b.search('a') == ['1', '2', '3'] def test_2(): assert b.search('b') == ['2', '3', '4'] def test_3(): assert b.search('c') == ['3', '4', '5'] def test_4(): assert b.search('d'...
21.5
79
0.490864
79819b4bcc28e972dbf7455d2e2d6717403498ea
644
py
Python
budgetsupervisor/manage.py
ltowarek/budget-supervisor
862a2d720aecd4ad2fded9c63bc839190ebbc77e
[ "MIT" ]
1
2022-03-01T10:28:31.000Z
2022-03-01T10:28:31.000Z
budgetsupervisor/manage.py
ltowarek/budget-supervisor
862a2d720aecd4ad2fded9c63bc839190ebbc77e
[ "MIT" ]
75
2020-11-07T20:14:55.000Z
2021-10-05T15:08:22.000Z
budgetsupervisor/manage.py
ltowarek/budget-supervisor
862a2d720aecd4ad2fded9c63bc839190ebbc77e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main() -> None: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "budgetsupervisor.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: ...
29.272727
80
0.684783
79819b5bdf71321dd12d1f3a6732ec6f9e758724
3,578
py
Python
configs/ttfnetv2/ttfnetv2_r18_b2extrabn_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/ttfnetv2/ttfnetv2_r18_b2extrabn_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/ttfnetv2/ttfnetv2_r18_b2extrabn_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='TTFNet', pretrained='modelzoo://resnet18', backbone=dict( type='ResNet', depth=18, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_eval=False, style='pytorch'), neck=None, bbox_head=dict( ...
29.570248
86
0.625489
79819c3a5037689e77105f14532ca46a9c8ccd9c
2,612
py
Python
enso/quasimode/charmaps.py
toolness/community-enso
e688e14628765235bf3575401192fc66f4c57236
[ "BSD-3-Clause" ]
6
2016-01-26T23:21:42.000Z
2022-01-30T04:20:04.000Z
enso/quasimode/charmaps.py
toolness/community-enso
e688e14628765235bf3575401192fc66f4c57236
[ "BSD-3-Clause" ]
null
null
null
enso/quasimode/charmaps.py
toolness/community-enso
e688e14628765235bf3575401192fc66f4c57236
[ "BSD-3-Clause" ]
4
2017-04-28T04:51:57.000Z
2020-04-01T14:14:33.000Z
# Copyright (c) 2008, Humanized, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of ...
45.824561
80
0.605283
79819c689011017b6cae173647f59a6a239b369b
2,434
py
Python
netmiko/ruckus/ruckus_fastiron.py
gininfra/netmiko
dff97822b4e7393b601b54cd08e826d5f0363936
[ "MIT" ]
1
2015-07-23T15:01:11.000Z
2015-07-23T15:01:11.000Z
netmiko/ruckus/ruckus_fastiron.py
gininfra/netmiko
dff97822b4e7393b601b54cd08e826d5f0363936
[ "MIT" ]
1
2020-01-13T20:49:29.000Z
2020-01-13T20:49:29.000Z
netmiko/ruckus/ruckus_fastiron.py
gininfra/netmiko
dff97822b4e7393b601b54cd08e826d5f0363936
[ "MIT" ]
3
2017-09-08T21:47:07.000Z
2018-07-05T02:07:28.000Z
from __future__ import unicode_literals import re import time from netmiko.cisco_base_connection import CiscoSSHConnection class RuckusFastironBase(CiscoSSHConnection): """Ruckus FastIron aka ICX support.""" def session_preparation(self): """FastIron requires to be enable mode to disable paging.""" ...
37.446154
100
0.619556
79819d74cc3e2127a366fcd74e955690eb6be192
5,445
py
Python
myUniSystem/venv/Lib/site-packages/crispy_forms/tests/forms.py
LukasKaziliunas/uniSystemDemo
11e8c19e6d2bd08eb0449e229dbaa2a0300d8263
[ "MIT" ]
1
2020-05-05T08:17:44.000Z
2020-05-05T08:17:44.000Z
myUniSystem/venv/Lib/site-packages/crispy_forms/tests/forms.py
LukasKaziliunas/uniSystemDemo
11e8c19e6d2bd08eb0449e229dbaa2a0300d8263
[ "MIT" ]
4
2021-03-30T14:06:09.000Z
2021-09-22T19:26:31.000Z
myUniSystem/venv/Lib/site-packages/crispy_forms/tests/forms.py
LukasKaziliunas/uniSystemDemo
11e8c19e6d2bd08eb0449e229dbaa2a0300d8263
[ "MIT" ]
1
2020-11-05T16:13:16.000Z
2020-11-05T16:13:16.000Z
from django import forms from django.db import models from crispy_forms.helper import FormHelper class SampleForm(forms.Form): is_company = forms.CharField(label="company", required=False, widget=forms.CheckboxInput()) email = forms.EmailField( label="email", max_length=30, required=True, widget=form...
33.20122
118
0.674564
79819d96737b697a5df7f8951461c260a42c8935
1,824
py
Python
checkov/terraform/checks/resource/aws/LambdaEnvironmentCredentials.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1
2021-02-13T15:24:42.000Z
2021-02-13T15:24:42.000Z
checkov/terraform/checks/resource/aws/LambdaEnvironmentCredentials.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
7
2021-04-12T06:54:07.000Z
2022-03-21T14:04:14.000Z
checkov/terraform/checks/resource/aws/LambdaEnvironmentCredentials.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1
2021-12-16T03:09:55.000Z
2021-12-16T03:09:55.000Z
from typing import Dict, List, Any from checkov.common.models.enums import CheckResult, CheckCategories from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck from checkov.common.util.secrets import string_has_secrets, AWS, GENERAL from checkov.common.util.type_forcers import force_list ...
44.487805
115
0.660088
79819fecad6627ddbd6c92f5cdd23072b99599cc
427
py
Python
Chapter08/c8_01_first_one.py
John-ye666/Python-for-Finance-Second-Edition
dabef09bcdd7b0ec2934774741bd0a7e1950de73
[ "MIT" ]
236
2017-07-02T03:06:54.000Z
2022-03-31T03:15:33.000Z
Chapter08/c8_01_first_one.py
John-ye666/Python-for-Finance-Second-Edition
dabef09bcdd7b0ec2934774741bd0a7e1950de73
[ "MIT" ]
null
null
null
Chapter08/c8_01_first_one.py
John-ye666/Python-for-Finance-Second-Edition
dabef09bcdd7b0ec2934774741bd0a7e1950de73
[ "MIT" ]
139
2017-06-30T10:28:16.000Z
2022-01-19T19:43:34.000Z
""" Name : c8_01_first_one.py Book : Python for Finance (2nd ed.) Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 6/6/2017 email : yany@canisius.edu paulyxy@hotmail.com """ import pandas as pd import scipy as sp mean=0.10 std=0.2 ddate = pd.date_range('1/1/2016',...
22.473684
59
0.648712
7981a37a33ba35e9d047effe468e2bac3af45849
992
py
Python
checkserver/testchecks/check_fast.py
Cue/greplin-nagios-utils
9a90d98fcd21da23b24b2fe5165d4a0c7dd680a1
[ "Apache-2.0" ]
1
2016-02-09T19:08:49.000Z
2016-02-09T19:08:49.000Z
checkserver/testchecks/check_fast.py
Cue/greplin-nagios-utils
9a90d98fcd21da23b24b2fe5165d4a0c7dd680a1
[ "Apache-2.0" ]
null
null
null
checkserver/testchecks/check_fast.py
Cue/greplin-nagios-utils
9a90d98fcd21da23b24b2fe5165d4a0c7dd680a1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2012 The greplin-nagios-utils 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...
26.810811
74
0.724798
7981a3b3189cea9556c9ac9b03273017984d2593
1,060
py
Python
DataPrev/EndDataPrev.py
TRBaldim/Spark
7b2230f7932999ade7ec9913830fbfc8041cedbb
[ "Apache-2.0" ]
null
null
null
DataPrev/EndDataPrev.py
TRBaldim/Spark
7b2230f7932999ade7ec9913830fbfc8041cedbb
[ "Apache-2.0" ]
null
null
null
DataPrev/EndDataPrev.py
TRBaldim/Spark
7b2230f7932999ade7ec9913830fbfc8041cedbb
[ "Apache-2.0" ]
null
null
null
def getNewstEnd(x): baseDate = '1800-01-01' incon = 0 idMuni = 0 CEPId = 0 for i in x[1]: CEP = i[3] while(len(CEP) < 8): CEP = CEP + '0' if i[1] == '': incon = 1 idMuni = i[2] CEPId = CEP elif i[1] > baseDate: baseDate = i[1] idMuni = i[2] CEPId = CEP else: incon = 1 return (x[...
23.555556
199
0.576415
7981a42b53c8878fd5701d41087ae13a348c21dd
825
py
Python
Design and Development/Software Systems/DB.py
banrovegrie/Initial-Projects
355b4863525026b8827228fcf03f3980d87f6f3e
[ "MIT" ]
null
null
null
Design and Development/Software Systems/DB.py
banrovegrie/Initial-Projects
355b4863525026b8827228fcf03f3980d87f6f3e
[ "MIT" ]
null
null
null
Design and Development/Software Systems/DB.py
banrovegrie/Initial-Projects
355b4863525026b8827228fcf03f3980d87f6f3e
[ "MIT" ]
null
null
null
import MySQLdb # locahost -- address where MySQL database is hosted, next argument "root" is the user id, # iiit@123 is the password, 'iiit_iss' is database schema name db = MySQLdb.connect("localhost","root","iiit@123","iiit_iss") # # cursor is a temporary storage area in the memory..similar to a record set for keepi...
33
111
0.726061
7981a4a3dba36c7bf42a0dc63d83aa01d5233052
9,839
py
Python
utils/preprocess.py
Gxx-5/MyPhoto2Cartoon
aa05dfa8b7d6c507c33026a2e8b299d5779357be
[ "MIT" ]
null
null
null
utils/preprocess.py
Gxx-5/MyPhoto2Cartoon
aa05dfa8b7d6c507c33026a2e8b299d5779357be
[ "MIT" ]
null
null
null
utils/preprocess.py
Gxx-5/MyPhoto2Cartoon
aa05dfa8b7d6c507c33026a2e8b299d5779357be
[ "MIT" ]
null
null
null
# coding=utf-8 from .face_detect import FaceDetect from .face_seg import FaceSeg # from yoloFace.face_detector import face_detect from facecrop.faceCrop import FaceCrop import numpy as np import cv2 import time import dlib class Preprocess: def __init__(self, device='cpu', detector='dlib'): self.detect = ...
43.535398
114
0.576176
7981a52bbe338e42518041d6a1b9889d4111a6f2
2,539
py
Python
catalyst/utils/math_utils.py
darwinli/buylowsellhigh_catalyst
f7a143cb78c614d2d347742375e8bb4d76221d5c
[ "Apache-2.0" ]
1
2018-01-25T23:49:06.000Z
2018-01-25T23:49:06.000Z
catalyst/utils/math_utils.py
darwinli/buylowsellhigh_catalyst
f7a143cb78c614d2d347742375e8bb4d76221d5c
[ "Apache-2.0" ]
null
null
null
catalyst/utils/math_utils.py
darwinli/buylowsellhigh_catalyst
f7a143cb78c614d2d347742375e8bb4d76221d5c
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Quantopian, 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...
25.39
76
0.653013
7981a6c4b09eb3d4863f511abb3fce09fee32fcf
68
py
Python
tests/__init__.py
hassanshamim/swapi-wrapper-
60502b782c2ef5fa355324190a255d5f3410f2db
[ "MIT" ]
null
null
null
tests/__init__.py
hassanshamim/swapi-wrapper-
60502b782c2ef5fa355324190a255d5f3410f2db
[ "MIT" ]
null
null
null
tests/__init__.py
hassanshamim/swapi-wrapper-
60502b782c2ef5fa355324190a255d5f3410f2db
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for swapi_wrapper."""
17
42
0.602941
7981a7afcf931157c7d8e9972b510b597184b468
14,122
py
Python
Chapter6/maze_experiment.py
AIRob/Hands-on-Neuroevolution-with-Python
98c580157b56716d5518c90333de8b1b54226c87
[ "MIT" ]
null
null
null
Chapter6/maze_experiment.py
AIRob/Hands-on-Neuroevolution-with-Python
98c580157b56716d5518c90333de8b1b54226c87
[ "MIT" ]
null
null
null
Chapter6/maze_experiment.py
AIRob/Hands-on-Neuroevolution-with-Python
98c580157b56716d5518c90333de8b1b54226c87
[ "MIT" ]
1
2020-02-21T13:14:56.000Z
2020-02-21T13:14:56.000Z
# # The script to run maze navigation experiment for both medium and hard # maze configurations. # # The Python standard library import import os import shutil import math import random import time import copy import argparse # The NEAT-Python library imports import neat # The helper used to visualize experiment resu...
44.974522
127
0.631355
7981a887b5752abc038618aadd0307c7da01c70e
1,521
py
Python
tests/test_basic.py
prashnts/mongocapsule
f6e4e3539f2b14658698ef4c1bdd23fe075c5e0f
[ "MIT" ]
22
2016-06-28T14:58:34.000Z
2021-03-17T16:30:44.000Z
tests/test_basic.py
prashnts/mongocapsule
f6e4e3539f2b14658698ef4c1bdd23fe075c5e0f
[ "MIT" ]
1
2017-02-21T12:07:28.000Z
2017-02-21T12:11:55.000Z
tests/test_basic.py
prashnts/mongocapsule
f6e4e3539f2b14658698ef4c1bdd23fe075c5e0f
[ "MIT" ]
null
null
null
import nose from mongocapsule import MongoCapsule class TestCapsule: def __init__(self): self.db = MongoCapsule('test', host='mongomock://localhost') self.set_up(self.db) def set_up(self, db): class Doc(db.Document): val = db.StringField() self.Doc = Doc def test_basic(self): self....
21.125
64
0.648915
7981a908f2e54f562666522fb71d877a26d73362
2,287
py
Python
src/python/utils/vcf_wrappers.py
ForomePlatform/variant_callers
e7d8e050d3c777f58e528157dad142d838199267
[ "Apache-2.0" ]
null
null
null
src/python/utils/vcf_wrappers.py
ForomePlatform/variant_callers
e7d8e050d3c777f58e528157dad142d838199267
[ "Apache-2.0" ]
null
null
null
src/python/utils/vcf_wrappers.py
ForomePlatform/variant_callers
e7d8e050d3c777f58e528157dad142d838199267
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019. Partners HealthCare, Harvard Medical School’s # Department of Biomedical Informatics # # Developed by Sergey Trifonov and Michael Bouzinier, based on contributions by: # Anwoy Kumar Mohanty, Andrew Bjonnes, # Ignat Leshchiner, Shamil Sunyaev and other members of Division of Genetics, # Brigh...
35.184615
85
0.698732
7981a9609e66646074cb9938bda10cd270ca9b2a
1,212
py
Python
apptcc/views/entorno.py
fndomariano/prototipo-rbc
72b48a2cdc5d5072d09b20cb7311df50ea5161bb
[ "MIT" ]
null
null
null
apptcc/views/entorno.py
fndomariano/prototipo-rbc
72b48a2cdc5d5072d09b20cb7311df50ea5161bb
[ "MIT" ]
6
2021-03-19T01:32:29.000Z
2021-09-22T18:50:40.000Z
apptcc/views/entorno.py
fndomariano/prototype-cbr
72b48a2cdc5d5072d09b20cb7311df50ea5161bb
[ "MIT" ]
null
null
null
#coding: utf-8 from apptcc.forms.entorno import FormEntorno from apptcc.models import Entorno from django.shortcuts import render, redirect def listar(request): entornos = Entorno.objects.all() return render(request, 'entorno/index.html', { 'dados':entornos }) def add(request): if request.method == 'POST': f...
25.25
75
0.719472
7981a96c30b6147757fac5cb24fe267cfd8d2eb1
736
py
Python
College/HVCC/Python Programming/Ch 3/salaryInc.py
lwoluke/Projects
88f288b32db594a96af98b8b3420f7e5f9a5a47d
[ "MIT" ]
null
null
null
College/HVCC/Python Programming/Ch 3/salaryInc.py
lwoluke/Projects
88f288b32db594a96af98b8b3420f7e5f9a5a47d
[ "MIT" ]
null
null
null
College/HVCC/Python Programming/Ch 3/salaryInc.py
lwoluke/Projects
88f288b32db594a96af98b8b3420f7e5f9a5a47d
[ "MIT" ]
null
null
null
''' Program: OstranderSalaryInc.py Author: Luke Ostrander Last data modified: 7/16/2021 The purpose of this program is to calculate the pay increase, year over year. This is based on the starting salary, annual raise, and number of years that this will occur. ''' salary = float(input("Enter the starting salary: ")) ...
27.259259
67
0.649457
7981a9ec3d543f0bbca1c8fdcad6d55740aec239
1,152
py
Python
gtest/googlemock/scripts/generator/cpp/utils.py
kbinias/aeon
14f2dd4d5fcf402fa94f9ad3cab57e9db7c7734b
[ "Apache-2.0" ]
63
2016-08-14T07:19:45.000Z
2021-09-21T15:57:08.000Z
gtest/googlemock/scripts/generator/cpp/utils.py
morganyvm/aeon
14f2dd4d5fcf402fa94f9ad3cab57e9db7c7734b
[ "Apache-2.0" ]
64
2016-08-08T18:35:19.000Z
2022-03-11T23:43:51.000Z
gtest/googlemock/scripts/generator/cpp/utils.py
morganyvm/aeon
14f2dd4d5fcf402fa94f9ad3cab57e9db7c7734b
[ "Apache-2.0" ]
44
2016-08-10T01:20:52.000Z
2020-07-01T19:47:48.000Z
#!/usr/bin/env python # # Copyright 2007 Neal Norwitz # Portions Copyright 2007 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 ...
27.428571
74
0.681424
7981a9ecb2873e1e07eb866712750632286c5089
11,566
py
Python
pfruck_contabo/model/upgrade_instance_request.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
2
2022-01-27T10:36:33.000Z
2022-03-09T14:21:12.000Z
pfruck_contabo/model/upgrade_instance_request.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
7
2022-01-13T10:44:19.000Z
2022-02-15T23:44:44.000Z
pfruck_contabo/model/upgrade_instance_request.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
null
null
null
""" Contabo API The version of the OpenAPI document: 1.0.0 Contact: support@contabo.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from pfruck_contabo.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ...
42.837037
121
0.559312