hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
7f8a3287b581913eb43c5e55985b9b2cfc8a2c7f
20,682
py
Python
ta/old/ta_etherpad/etherpad_to_docx.py
PurpleGuitar/tools
13152bb925b568ed4d4375065ed5a7dbdeee99de
[ "MIT" ]
6
2015-07-27T21:50:39.000Z
2020-06-25T14:32:35.000Z
ta/old/ta_etherpad/etherpad_to_docx.py
PurpleGuitar/tools
13152bb925b568ed4d4375065ed5a7dbdeee99de
[ "MIT" ]
89
2015-06-24T09:35:40.000Z
2022-02-13T14:40:31.000Z
ta/old/ta_etherpad/etherpad_to_docx.py
PurpleGuitar/tools
13152bb925b568ed4d4375065ed5a7dbdeee99de
[ "MIT" ]
12
2015-07-13T17:31:04.000Z
2021-08-06T06:50:21.000Z
#!/usr/bin/env python2 # -*- coding: utf8 -*- # # Copyright (c) 2015 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # Contributors: # Phil Hopper <phillip_hopper@wycliffeassociates.org> # # import atexit import codecs from datetime import datetime from etherpad_lite import ...
29.630372
140
0.575476
957cc473c48563c62c9d13f0c43db80732ec0787
1,627
py
Python
tests/test_mixins.py
ofarukbicer/AttrDict
418a9307addc0ba2d6ca52ae9fab0fc30a0da463
[ "MIT" ]
null
null
null
tests/test_mixins.py
ofarukbicer/AttrDict
418a9307addc0ba2d6ca52ae9fab0fc30a0da463
[ "MIT" ]
null
null
null
tests/test_mixins.py
ofarukbicer/AttrDict
418a9307addc0ba2d6ca52ae9fab0fc30a0da463
[ "MIT" ]
null
null
null
""" Tests for the AttrDefault class. """ from nose.tools import assert_equals, assert_raises def test_invalid_attributes(): """ Tests how set/delattr handle invalid attributes. """ from attrdict2.mapping import AttrMap mapping = AttrMap() # mapping currently has allow_invalid_attributes set ...
23.242857
77
0.658881
955363782ce90bfbc2e6ca31b335d780c1013aea
5,608
py
Python
szyfrow/affine.py
NeilNjae/szyfrow
748b5cceaa346d3097c58229ea04ead0c7e3f48e
[ "MIT" ]
null
null
null
szyfrow/affine.py
NeilNjae/szyfrow
748b5cceaa346d3097c58229ea04ead0c7e3f48e
[ "MIT" ]
null
null
null
szyfrow/affine.py
NeilNjae/szyfrow
748b5cceaa346d3097c58229ea04ead0c7e3f48e
[ "MIT" ]
null
null
null
"""Enciphering and deciphering using the [affine cipher](https://en.wikipedia.org/wiki/Affine_cipher). Also attempts to break messages that use an affine cipher. The affine cipher operates one letter at a time. It converts each letter to a number, then enciphers that number using a multiplier and a number. The resul...
41.235294
103
0.667439
919269745f0307538b93d4d11e7c3e85ffac7352
1,225
py
Python
plotting.diabetes.py
SoyStillGood/python-data-viz-class
97ae78eed52d1e42406a51bf0f5c21b6f32b861a
[ "MIT" ]
null
null
null
plotting.diabetes.py
SoyStillGood/python-data-viz-class
97ae78eed52d1e42406a51bf0f5c21b6f32b861a
[ "MIT" ]
null
null
null
plotting.diabetes.py
SoyStillGood/python-data-viz-class
97ae78eed52d1e42406a51bf0f5c21b6f32b861a
[ "MIT" ]
null
null
null
import argparse import pandas as pd import matplotlib.pyplot as plt import os def main(): # fig, axes = plt.subplots(2, 2, figsize=(8, 8)) parser = argparse.ArgumentParser() parser.add_argument("-f", "--file", dest="file", help="input data file") args = parser.parse_args() file = args.file di...
24.019608
102
0.630204
a552d441e094bbfcd118d38edaeada8bf3a6bec9
1,621
py
Python
fastapi/tutorial/04_request_validate_i18n/main.py
jianchengwang/todo-python
36bdaf6fae714531946047ececca995d60f86e4a
[ "MIT" ]
null
null
null
fastapi/tutorial/04_request_validate_i18n/main.py
jianchengwang/todo-python
36bdaf6fae714531946047ececca995d60f86e4a
[ "MIT" ]
null
null
null
fastapi/tutorial/04_request_validate_i18n/main.py
jianchengwang/todo-python
36bdaf6fae714531946047ececca995d60f86e4a
[ "MIT" ]
null
null
null
from typing import Optional import uvicorn from fastapi import FastAPI, Query, Path, Body, Depends from fastapi.exceptions import RequestValidationError from pydantic import BaseModel, Field import tr # app = FastAPI() app = FastAPI(dependencies=[Depends(tr.get_locale)]) app.add_exception_handler(RequestValidationEr...
30.584906
98
0.686613
e550190c4911d9c2ae2a6e8166bfa5e336a63ec0
897
py
Python
friends-by-age.py
sambiase/pyspark
c44063bb40430bb9b905d6b7b8aff6336d230b1a
[ "Apache-2.0" ]
null
null
null
friends-by-age.py
sambiase/pyspark
c44063bb40430bb9b905d6b7b8aff6336d230b1a
[ "Apache-2.0" ]
null
null
null
friends-by-age.py
sambiase/pyspark
c44063bb40430bb9b905d6b7b8aff6336d230b1a
[ "Apache-2.0" ]
null
null
null
# this script counts how many friends a certain age group has from pyspark import SparkConf, SparkContext # local = running on local computer # setAppName = apps name conf = SparkConf().setMaster("local").setAppName("FriendsByAge") # creates a SparkContext object sc = SparkContext(conf=conf) def parseL...
28.03125
99
0.67447
58e8cb21bea9ec496741309cc75c724289559dd8
838
py
Python
futuquant/common/ft_logger.py
hxhxhx88/futuquant
a1b4a875604f1de451ddde4bfa3e713452482b0a
[ "Apache-2.0" ]
null
null
null
futuquant/common/ft_logger.py
hxhxhx88/futuquant
a1b4a875604f1de451ddde4bfa3e713452482b0a
[ "Apache-2.0" ]
null
null
null
futuquant/common/ft_logger.py
hxhxhx88/futuquant
a1b4a875604f1de451ddde4bfa3e713452482b0a
[ "Apache-2.0" ]
null
null
null
import logging from datetime import datetime import os logger = logging.getLogger('FT') log_level = logging.INFO is_file_log = True # 设置logger的level为DEBUG logger.setLevel(log_level) # 创建一个输出日志到控制台的StreamHandler hdr = logging.StreamHandler() formatter = logging.Formatter( '%(asctime)s [%(filename)s] %(funcName)s:...
24.647059
70
0.731504
ee7898312f5efb5db03b885452d6d207f8945ead
5,388
py
Python
kubernetes/client/models/v1beta1_scheduling.py
sthagen/kubernetes-client-python
3a183048d7d568ba5ea418bcfb8f61713908d3ea
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_scheduling.py
sthagen/kubernetes-client-python
3a183048d7d568ba5ea418bcfb8f61713908d3ea
[ "Apache-2.0" ]
3
2021-11-30T03:11:13.000Z
2022-02-09T03:39:41.000Z
kubernetes/client/models/v1beta1_scheduling.py
sthagen/kubernetes-client-python
3a183048d7d568ba5ea418bcfb8f61713908d3ea
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.24 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
35.682119
334
0.64124
2464ebbce8f5740748fda0b4ad87c697f9affef5
16,542
py
Python
glance/tests/unit/test_store_location.py
rickerc/glance_audit
790d4a739669113a289ab9d5687b28ed1e790bea
[ "Apache-2.0" ]
1
2018-05-03T03:52:39.000Z
2018-05-03T03:52:39.000Z
glance/tests/unit/test_store_location.py
rickerc/glance_audit
790d4a739669113a289ab9d5687b28ed1e790bea
[ "Apache-2.0" ]
null
null
null
glance/tests/unit/test_store_location.py
rickerc/glance_audit
790d4a739669113a289ab9d5687b28ed1e790bea
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011-2013 OpenStack, LLC # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache...
38.203233
79
0.632874
0f3e1818827eeea9051af7815eeb42bbb7ee1aa2
5,318
py
Python
gitc_utils.py
zemug/repo
e9becc079c647f6c9477eed83c0aecb2f591fdf4
[ "Apache-2.0" ]
19
2015-06-30T16:29:58.000Z
2018-10-21T06:34:43.000Z
gitc_utils.py
zemug/repo
e9becc079c647f6c9477eed83c0aecb2f591fdf4
[ "Apache-2.0" ]
null
null
null
gitc_utils.py
zemug/repo
e9becc079c647f6c9477eed83c0aecb2f591fdf4
[ "Apache-2.0" ]
58
2015-07-01T12:55:16.000Z
2021-01-13T14:31:48.000Z
# # Copyright (C) 2015 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...
35.691275
79
0.707221
a4744865e21a1d3f316bab42ff9f4701470d4fa5
6,191
gyp
Python
third_party/opus/opus.gyp
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2018-12-27T14:57:13.000Z
2021-04-07T07:03:15.000Z
third_party/opus/opus.gyp
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-03-13T01:35:03.000Z
2020-10-08T04:13:04.000Z
ThirdParty/webrtc/src/third_party/opus/opus.gyp
JokeJoe8806/licode-windows
2bfdaf6e87669df2b9960da50c6800bc3621b80b
[ "MIT" ]
9
2018-12-28T11:45:12.000Z
2021-05-11T02:15:31.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'conditions': [ ['target_arch=="arm" or target_arch=="arm64"', { 'use_opus_fixed_point%': 1, }, { 'use...
26.457265
80
0.444355
1c93da6df2bc59cf48b0cd962174d4f198651850
19,356
py
Python
khoros/utils/core_utils.py
stevenspasbo/khoros
7a50be1546fd90825343957f9c579ed804c2d480
[ "MIT" ]
7
2020-02-21T16:31:08.000Z
2021-12-13T13:28:55.000Z
khoros/utils/core_utils.py
stevenspasbo/khoros
7a50be1546fd90825343957f9c579ed804c2d480
[ "MIT" ]
53
2020-06-25T23:59:38.000Z
2022-03-14T20:38:03.000Z
khoros/utils/core_utils.py
stevenspasbo/khoros
7a50be1546fd90825343957f9c579ed804c2d480
[ "MIT" ]
3
2020-10-20T15:53:21.000Z
2021-06-23T18:13:11.000Z
# -*- coding: utf-8 -*- """ :Module: khoros.utils.core_utils :Synopsis: Collection of supporting utilities and functions to complement the primary modules :Usage: ``from khoros.utils import core_utils`` :Example: ``encoded_string = core_utils.encode_url(decoded_string)`` :Creat...
40.325
120
0.679273
9aae40e1b8dbbaa0ef377bbc86888966526020d1
14,504
py
Python
pandas/tests/series/test_api.py
mwaskom/pandas
d1010643fea058ba43c2c7124af75cc462ccf242
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
3
2017-02-09T20:01:04.000Z
2021-08-11T00:33:41.000Z
pandas/tests/series/test_api.py
mwaskom/pandas
d1010643fea058ba43c2c7124af75cc462ccf242
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/tests/series/test_api.py
mwaskom/pandas
d1010643fea058ba43c2c7124af75cc462ccf242
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # pylint: disable-msg=E1101,W0612 from collections import OrderedDict import pytest import numpy as np import pandas as pd from pandas import Index, Series, DataFrame, date_range from pandas.core.indexes.datetimes import Timestamp from pandas.compat import range from pandas import compat import panda...
33.730233
79
0.580874
03b0427013116f132cbba55933948e229f944fb5
5,598
py
Python
autokeras/utils.py
huxia001/autokeras
f4503bb3a3be014b452f54d8e2d187bb6419f627
[ "MIT" ]
1
2018-11-27T16:09:38.000Z
2018-11-27T16:09:38.000Z
autokeras/utils.py
xiabenhu/autokeras
f4503bb3a3be014b452f54d8e2d187bb6419f627
[ "MIT" ]
null
null
null
autokeras/utils.py
xiabenhu/autokeras
f4503bb3a3be014b452f54d8e2d187bb6419f627
[ "MIT" ]
null
null
null
import os import pickle import torch from torch.utils.data import DataLoader from autokeras import constant def lr_schedule(epoch): lr = 1e-3 if epoch > 180: lr *= 0.5e-3 elif epoch > 160: lr *= 1e-3 elif epoch > 120: lr *= 1e-2 elif epoch > 80: lr *= 1e-1 ret...
31.988571
115
0.620579
114aff3ca7f224cd551a86b8b30761108c7c914e
8,215
py
Python
fastai/callbacks/hooks.py
tritemio/fastai
9336a188c2a0362fc64a33185daa1779a9bf035b
[ "Apache-2.0" ]
3
2019-07-26T11:25:59.000Z
2021-12-20T04:13:18.000Z
fastai/callbacks/hooks.py
tritemio/fastai
9336a188c2a0362fc64a33185daa1779a9bf035b
[ "Apache-2.0" ]
null
null
null
fastai/callbacks/hooks.py
tritemio/fastai
9336a188c2a0362fc64a33185daa1779a9bf035b
[ "Apache-2.0" ]
1
2021-06-09T21:21:15.000Z
2021-06-09T21:21:15.000Z
"Hooks provide extensibility at the model level." from ..torch_core import * from ..callback import * from ..basic_train import * from ..basic_data import * __all__ = ['ActivationStats', 'Hook', 'HookCallback', 'Hooks', 'hook_output', 'hook_outputs', 'model_sizes', 'num_features_model', 'model_summary', 'du...
44.405405
125
0.658673
c5adf23d84d59090431676bb5477b17584dadf2b
21,170
py
Python
zajem.py
SandraKersevan/Pasja-bolha
486bed2e4de71da638b74608418dbc71c2fbda65
[ "MIT" ]
null
null
null
zajem.py
SandraKersevan/Pasja-bolha
486bed2e4de71da638b74608418dbc71c2fbda65
[ "MIT" ]
4
2018-05-30T11:36:02.000Z
2018-11-05T05:41:00.000Z
zajem.py
SandraKersevan/SBS
486bed2e4de71da638b74608418dbc71c2fbda65
[ "MIT" ]
null
null
null
import requests # knjižnica za zajem strani import sqlite3 # Knjižnica za delo z bazo import re # Knjižnica za delo z regularnimi izrazi # seznam angleških imen pasem: imena_pasem = ['affenpinscher', 'afghan-hound', 'airedale-terrier', 'akita', 'alaskan-klee-kai', 'alaskan-malamute', 'american-bu...
64.93865
123
0.641379
c2f0ac003eb9eb6dff29fff2ff24baef1dca8977
1,706
py
Python
OpenStylWithLs.py
pouriaMaleki/sublime-auto-open-files
ea20202b8e2ca707545d7ac7dc8f2e94505c370d
[ "MIT" ]
null
null
null
OpenStylWithLs.py
pouriaMaleki/sublime-auto-open-files
ea20202b8e2ca707545d7ac7dc8f2e94505c370d
[ "MIT" ]
null
null
null
OpenStylWithLs.py
pouriaMaleki/sublime-auto-open-files
ea20202b8e2ca707545d7ac7dc8f2e94505c370d
[ "MIT" ]
null
null
null
import sublime, sublime_plugin, os, re class OpenStylWithLsCommand(sublime_plugin.TextCommand): def run(self, edit): jobView = self.view # sublime.message_dialog("adadd") if re.search(r'\.ls$', jobView.file_name()) is not None: stylFile = re.sub(r'\.ls$', '.styl', jobView.file_name()) ...
38.772727
103
0.635991
c2bfabea2c63166e448f9f586d402e2dca22939c
8,751
py
Python
Cura/Cura/cura/Machines/ContainerTree.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
Cura/Cura/cura/Machines/ContainerTree.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
Cura/Cura/cura/Machines/ContainerTree.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from UM.Job import Job # For our background task of loading MachineNodes lazily. from UM.JobQueue import JobQueue # For our background task of loading MachineNodes lazily. from UM.Logger import Logger from UM.Settings.Con...
55.037736
199
0.698206
c995aa1e61b0f0886b73cdf7e9cc50f68b396c04
2,569
py
Python
map_runs/tests/test_map_runs.py
BenjaSanchez/map-runs
8d565aa3e70e4a5de9f88c6a31830168815bf505
[ "MIT" ]
1
2020-06-23T19:02:07.000Z
2020-06-23T19:02:07.000Z
map_runs/tests/test_map_runs.py
BenjaSanchez/map-runs
8d565aa3e70e4a5de9f88c6a31830168815bf505
[ "MIT" ]
null
null
null
map_runs/tests/test_map_runs.py
BenjaSanchez/map-runs
8d565aa3e70e4a5de9f88c6a31830168815bf505
[ "MIT" ]
null
null
null
from configparser import ConfigParser from pkg_resources import resource_filename from shutil import copytree import os import pytest from map_runs.map_runs import create_run_map INIT_FILE_PATH = resource_filename("map_runs", "map-runs.ini") TEST_DATA_PATH = resource_filename("map_runs", "tests/data") @pytest.fix...
30.583333
72
0.737641
4d8c3c764b4b48171a65cd41ef81360c4cf0851f
3,811
py
Python
rdmo/options/viewsets.py
berkerY/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
1
2021-12-13T16:32:25.000Z
2021-12-13T16:32:25.000Z
rdmo/options/viewsets.py
MSpenger/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
null
null
null
rdmo/options/viewsets.py
MSpenger/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
1
2021-05-20T09:31:49.000Z
2021-05-20T09:31:49.000Z
from django.conf import settings from django.db import models from django_filters.rest_framework import DjangoFilterBackend from rest_framework.decorators import action from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.viewsets import ModelViewSet f...
39.697917
105
0.705589
ef009f8ff4d77efd74014e03d03dce070074f1bc
14,158
py
Python
pandas/compat/numpy/function.py
Marky0/pandas
d0dd9820668ddd4a7648ff9fbd581e67298c77db
[ "BSD-3-Clause" ]
null
null
null
pandas/compat/numpy/function.py
Marky0/pandas
d0dd9820668ddd4a7648ff9fbd581e67298c77db
[ "BSD-3-Clause" ]
null
null
null
pandas/compat/numpy/function.py
Marky0/pandas
d0dd9820668ddd4a7648ff9fbd581e67298c77db
[ "BSD-3-Clause" ]
null
null
null
""" For compatibility with numpy libraries, pandas functions or methods have to accept '*args' and '**kwargs' parameters to accommodate numpy arguments that are not actually used or respected in the pandas implementation. To ensure that users do not abuse these parameters, validation is performed in 'validators.py' to...
36.302564
79
0.657296
dab2081898adf62edf6b347d92ae66baa183235c
8,198
py
Python
tracker.py
Michaelsafir/RussiaPilot
e4897c168bf5fbbcda5866547a788421cd798a7a
[ "MIT" ]
1
2021-01-30T19:36:47.000Z
2021-01-30T19:36:47.000Z
tracker.py
Michaelsafir/RussiaPilot
e4897c168bf5fbbcda5866547a788421cd798a7a
[ "MIT" ]
null
null
null
tracker.py
Michaelsafir/RussiaPilot
e4897c168bf5fbbcda5866547a788421cd798a7a
[ "MIT" ]
null
null
null
import numpy as np import cv2 from window import Window from line import Line from gradients import get_edges from perspective import flatten_perspective class LaneTracker(object): """ Tracks the lane in a series of consecutive frames. """ def __init__(self, first_frame, n_windows=9): """ ...
41.40404
119
0.591852
64c0340a5b73784dbd15508ce8e13a910e8ab85b
1,800
py
Python
units/tests/forms_mixins_tests.py
bitlabstudio/django-units
745e054f309206fb753e8d0bb31ded5dc2985863
[ "MIT" ]
1
2020-09-16T11:06:26.000Z
2020-09-16T11:06:26.000Z
units/tests/forms_mixins_tests.py
bitlabstudio/django-units
745e054f309206fb753e8d0bb31ded5dc2985863
[ "MIT" ]
null
null
null
units/tests/forms_mixins_tests.py
bitlabstudio/django-units
745e054f309206fb753e8d0bb31ded5dc2985863
[ "MIT" ]
null
null
null
"""Tests for the form mixins of the ``units`` app.""" from decimal import Decimal from django import forms from django.test import TestCase from .test_app.models import Dummymodel from ..forms import mixins class DummymodelForm(mixins.UnitsFormMixin, forms.ModelForm): value_fieldsets = [ ('distance', 'd...
30.508475
78
0.619444
91f229dc998f124d5f5094132de71cad65033070
1,235
py
Python
setup.py
ynop/py-nltools
2059b7186d5f07a9264bbee5a3427e10b6d615fd
[ "Apache-2.0" ]
null
null
null
setup.py
ynop/py-nltools
2059b7186d5f07a9264bbee5a3427e10b6d615fd
[ "Apache-2.0" ]
null
null
null
setup.py
ynop/py-nltools
2059b7186d5f07a9264bbee5a3427e10b6d615fd
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name='py-nltools', version='0.3.0', description='A collection of basic python modules for spoken natural language processing', long_description=open('README.adoc').read(), author='Guenter Bartsch', author_email='guenter@zamia.org', maintainer='Guenter Bar...
33.378378
94
0.621053
698a28551246bd32b779819c35ad9b661ba68be0
9,718
py
Python
oauth2-pkce.py
BarryCarlyon/fd-api
4b46b786760a7cccf3b562224b68ca13d53f1013
[ "CC-BY-4.0" ]
null
null
null
oauth2-pkce.py
BarryCarlyon/fd-api
4b46b786760a7cccf3b562224b68ca13d53f1013
[ "CC-BY-4.0" ]
null
null
null
oauth2-pkce.py
BarryCarlyon/fd-api
4b46b786760a7cccf3b562224b68ca13d53f1013
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # vim: textwidth=0 wrapmargin=0 tabstop=2 shiftwidth=2 softtabstop=2 smartindent smarttab import os import yaml, logging, argparse import random, base64, hashlib import json import cgi #import cgitb #cgitb.enable(display=0, logdir="/var/www/user-rw/athan.fysh.org/fd-api-logs") import urllib.re...
36.397004
122
0.518934
a8e5d26b91e35055543586bc3938ecd76a7cc667
1,089
py
Python
webform.py
drumpfhouse/whSignupFormProtestSubmitter
ccfb7cc3805fe2798dfc0ccef0bcb2b893c0bf11
[ "CC0-1.0" ]
null
null
null
webform.py
drumpfhouse/whSignupFormProtestSubmitter
ccfb7cc3805fe2798dfc0ccef0bcb2b893c0bf11
[ "CC0-1.0" ]
null
null
null
webform.py
drumpfhouse/whSignupFormProtestSubmitter
ccfb7cc3805fe2798dfc0ccef0bcb2b893c0bf11
[ "CC0-1.0" ]
null
null
null
""" Defines a Webform class which defines the location (targetURL) and dictionary of fields and values which will be submitted. Previously this was implemented as a function as seen below. def frontPageForm(): targetURL = 'https://forms.whitehouse.gov/webform/email-signup?initialWidth=544&childId=forall-iframe-em...
33
157
0.702479
360e29357ce51ab0773f56ee6a8c6c4a92cfe107
3,759
py
Python
scrape_youtube.py
tcwalther/scrape-youtube
c89a578194e921957622fc951c8cecf920eab422
[ "Unlicense" ]
null
null
null
scrape_youtube.py
tcwalther/scrape-youtube
c89a578194e921957622fc951c8cecf920eab422
[ "Unlicense" ]
null
null
null
scrape_youtube.py
tcwalther/scrape-youtube
c89a578194e921957622fc951c8cecf920eab422
[ "Unlicense" ]
null
null
null
from __future__ import unicode_literals from pyppeteer import launch import youtube_dl import asyncio import urllib.parse import os import sys youtube_search_query = " ".join(sys.argv[1:2]) or "music jam" youtube_search_opts = { "q": urllib.parse.quote_plus(youtube_search_query), "sp": 'CAISBhABGAEwAQ%253D%253D' #...
32.405172
147
0.610269
162e8a60a4c0130e2c6eedbd59c15ab7c1ab275a
807
py
Python
python/mlp/centroidal/load.py
daeunSong/multicontact-locomotion-planning
0aeabe6a7a8d49e54d6996a6126740cc90aa0050
[ "BSD-2-Clause" ]
null
null
null
python/mlp/centroidal/load.py
daeunSong/multicontact-locomotion-planning
0aeabe6a7a8d49e54d6996a6126740cc90aa0050
[ "BSD-2-Clause" ]
null
null
null
python/mlp/centroidal/load.py
daeunSong/multicontact-locomotion-planning
0aeabe6a7a8d49e54d6996a6126740cc90aa0050
[ "BSD-2-Clause" ]
null
null
null
import multicontact_api from multicontact_api import ContactSequence from mlp.utils.requirements import Requirements as CentroidalInputsLoad import logging logging.basicConfig(format='[%(name)-12s] %(levelname)-8s: %(message)s') logger = logging.getLogger("load cs") logger.setLevel(logging.WARNING) #DEBUG, INFO or WARN...
36.681818
104
0.788104
fec095c0bb51b910c7d13901c16e95c285905288
10,848
py
Python
tests/conftest.py
WojciechKusa/datasets
1406a04c3e911cec2680d8bc513653e0cafcaaa4
[ "Apache-2.0" ]
8
2020-12-06T13:04:57.000Z
2021-12-14T23:00:56.000Z
tests/conftest.py
WojciechKusa/datasets
1406a04c3e911cec2680d8bc513653e0cafcaaa4
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
WojciechKusa/datasets
1406a04c3e911cec2680d8bc513653e0cafcaaa4
[ "Apache-2.0" ]
2
2021-12-01T16:25:34.000Z
2021-12-01T16:25:42.000Z
import csv import json import lzma import os import textwrap import pyarrow as pa import pyarrow.parquet as pq import pytest import datasets from datasets import config from datasets.arrow_dataset import Dataset from datasets.features import ClassLabel, Features, Sequence, Value from .hub_fixtures import * # noqa: ...
29.398374
117
0.625922
e88f8ebb2c6d37c2bb0998855cb91f80733c1ec2
520
py
Python
saleor/graphql/payment/resolvers.py
acabezasg/urpi-master
7c9cd0fbe6d89dad70652482712ca38b21ba6f84
[ "BSD-3-Clause" ]
7
2019-05-17T14:27:13.000Z
2021-12-17T22:52:40.000Z
saleor/graphql/payment/resolvers.py
valentine217/saleor
323963748e6a2702265ec6635b930a234abde4f5
[ "BSD-3-Clause" ]
9
2019-04-13T09:24:28.000Z
2019-09-09T15:35:05.000Z
saleor/graphql/payment/resolvers.py
valentine217/saleor
323963748e6a2702265ec6635b930a234abde4f5
[ "BSD-3-Clause" ]
1
2018-12-27T01:44:52.000Z
2018-12-27T01:44:52.000Z
import graphene_django_optimizer as gql_optimizer from ...payment import models from ...payment.utils import gateway_get_client_token from ..utils import filter_by_query_param PAYMENT_SEARCH_FIELDS = ['id'] def resolve_payments(info, query): queryset = models.Payment.objects.all().distinct() queryset = filt...
28.888889
76
0.805769
ee71827b9665d50feecd4e24baf6a438e7db2d83
18,310
py
Python
authors/apps/articles/tests/test_articles.py
rfpremier/ah-django
ff4f1ba34d074e68e49f7896848f81b729542e1f
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/tests/test_articles.py
rfpremier/ah-django
ff4f1ba34d074e68e49f7896848f81b729542e1f
[ "BSD-3-Clause" ]
21
2019-03-25T18:38:02.000Z
2019-04-23T09:54:52.000Z
authors/apps/articles/tests/test_articles.py
rfpremier/ah-django
ff4f1ba34d074e68e49f7896848f81b729542e1f
[ "BSD-3-Clause" ]
3
2019-07-15T08:41:58.000Z
2019-12-20T08:25:34.000Z
from rest_framework.test import APITestCase, APIClient from rest_framework.views import status import json class CURDArticlesTestCase(APITestCase): def setUp(self): self.client = APIClient() self.postlist_article_url = '/api/articles/' self.filter_article_url = '/api/articles?title=articl...
36.915323
79
0.600055
903cdda8300096b7861cff53edcd068c18ca77c9
67,928
py
Python
scipy/linalg/tests/test_decomp_update.py
rostyboost/scipy
2f5aa264724099c03772ed784e7a947d2bea8398
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/tests/test_decomp_update.py
rostyboost/scipy
2f5aa264724099c03772ed784e7a947d2bea8398
[ "BSD-3-Clause" ]
null
null
null
scipy/linalg/tests/test_decomp_update.py
rostyboost/scipy
2f5aa264724099c03772ed784e7a947d2bea8398
[ "BSD-3-Clause" ]
1
2021-09-17T03:51:02.000Z
2021-09-17T03:51:02.000Z
from __future__ import division, print_function, absolute_import import itertools import numpy as np from numpy.testing import (assert_, assert_allclose, assert_raises, assert_equal) from scipy import linalg import scipy.linalg._decomp_update as _decomp_update from scipy.linalg._decomp_update import * def a...
40.21788
88
0.556604
44b0289c1325d2da266a542bc667d708ab764f74
2,301
py
Python
Currencies/Euro.py
Scankiran/CurrencyDataUpdater
81b5ef12bf4e83a1621ca393fa36b3b92c7a2fa6
[ "MIT" ]
null
null
null
Currencies/Euro.py
Scankiran/CurrencyDataUpdater
81b5ef12bf4e83a1621ca393fa36b3b92c7a2fa6
[ "MIT" ]
null
null
null
Currencies/Euro.py
Scankiran/CurrencyDataUpdater
81b5ef12bf4e83a1621ca393fa36b3b92c7a2fa6
[ "MIT" ]
null
null
null
import requests import json from Models.CurrencyBase import CurrencyBase from Models.BankModel import BankModel from bs4 import BeautifulSoup # Create your views here. def returnBank(): rs = requests.get("https://kur.doviz.com/serbest-piyasa/euro") bs = BeautifulSoup(rs.content, 'html.parser') tables ...
26.755814
131
0.601912
0dcb9d026eb85268fb2c4e5088738ef3555649f2
4,704
py
Python
doc/crawler/src/http/http_client.py
tanyjan/km
58a3d01b7afd3aff46d9d594430f3f928f9c817c
[ "Apache-2.0" ]
1
2017-11-07T09:06:29.000Z
2017-11-07T09:06:29.000Z
doc/crawler/src/http/http_client.py
tanyjan/km
58a3d01b7afd3aff46d9d594430f3f928f9c817c
[ "Apache-2.0" ]
null
null
null
doc/crawler/src/http/http_client.py
tanyjan/km
58a3d01b7afd3aff46d9d594430f3f928f9c817c
[ "Apache-2.0" ]
null
null
null
#!/bin/env python # -*- coding: utf-8 -*-\ import requests import json import config import time from requests.adapters import HTTPAdapter http_timeout = 10 http_headers = { 'Accept': '*/*','Connection': 'keep-alive', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom...
32.441379
193
0.628614
2a321ce88967a30075d151c1dbd5f75dc6bdee23
2,857
py
Python
questoes/questao4.py
raulbarcelos/Lista-de-Exercicios-PO
70933896108b5f9fbdbf541c389ab9354d6ceaf2
[ "MIT" ]
null
null
null
questoes/questao4.py
raulbarcelos/Lista-de-Exercicios-PO
70933896108b5f9fbdbf541c389ab9354d6ceaf2
[ "MIT" ]
null
null
null
questoes/questao4.py
raulbarcelos/Lista-de-Exercicios-PO
70933896108b5f9fbdbf541c389ab9354d6ceaf2
[ "MIT" ]
null
null
null
arq = open("matriz.txt", 'r') arq2 = open("matriz2.txt", 'r') print("********************************") print("********** QUESTÃO 04 **********") print("********************************") print("******** RAUL BARCELOS *********") print() matriz_txt = [] matriz2_txt = [] matriz = [] matriz2 = [] # função para impor...
28.287129
142
0.651033
54265a51817fbbf4027cf7126f02ee3cd6b51e87
1,710
py
Python
VigenereGUI.py
rafaaseddik/Cesar-Vigenere-GUI
3266cdbd818a7f0b92308edf2ed26371ac6ec030
[ "MIT" ]
null
null
null
VigenereGUI.py
rafaaseddik/Cesar-Vigenere-GUI
3266cdbd818a7f0b92308edf2ed26371ac6ec030
[ "MIT" ]
null
null
null
VigenereGUI.py
rafaaseddik/Cesar-Vigenere-GUI
3266cdbd818a7f0b92308edf2ed26371ac6ec030
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import filedialog from tkinter.filedialog import askopenfilename,asksaveasfilename from PIL import Image, ImageTk from dependencies.Cesar import * from subviews.vigenere.EncodeGui import EncodeGui from subviews.vigenere.DecodeGui import DecodeGui from subviews.vigenere.AnalyseGui imp...
33.529412
119
0.69883
b3ef5ca60c122bdb8bdfa927bea9c865912b64b2
2,435
py
Python
django/engagementmanager/utils/cryptography.py
onap/vvp-engagementmgr
8d2108708e7c55cc753b956563c535177f92d0d9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
django/engagementmanager/utils/cryptography.py
onap/vvp-engagementmgr
8d2108708e7c55cc753b956563c535177f92d0d9
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
django/engagementmanager/utils/cryptography.py
onap/vvp-engagementmgr
8d2108708e7c55cc753b956563c535177f92d0d9
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-10-19T15:17:09.000Z
2021-10-19T15:17:09.000Z
# # ============LICENSE_START========================================== # org.onap.vvp/engagementmgr # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless ...
39.274194
76
0.680903
143355247df88adc99b4764595be75841d0ee225
4,455
py
Python
models/liif.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
models/liif.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
models/liif.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
from argparse import Namespace from typing import Tuple, Callable import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor import numpy as np import models from models import register from utility import make_coord @register('liif') class LIIF(nn.Module): def _...
35.357143
81
0.476543
fbe015e0acb9ac994438ffa28a1aaa7d0565115e
16,679
py
Python
trade/engine.py
dogfun/clend
04a0746bd07f66717444db5f541397475366c614
[ "MIT" ]
2
2021-12-15T07:24:33.000Z
2022-03-21T14:30:41.000Z
trade/engine.py
dogfun/clend
04a0746bd07f66717444db5f541397475366c614
[ "MIT" ]
null
null
null
trade/engine.py
dogfun/clend
04a0746bd07f66717444db5f541397475366c614
[ "MIT" ]
null
null
null
import logging from logging import Logger import smtplib import os from abc import ABC from datetime import datetime from email.message import EmailMessage from queue import Empty, Queue from threading import Thread from typing import Any, Sequence, Type, Dict, List, Optional from constant import EventType from trade.e...
29.730838
95
0.599436
5da90d390f61da59c28fc2bb477005c946bec058
134
py
Python
Curso_de_Python_ Curso_em_Video/modulos/moduloEx107Ao112/teste.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/modulos/moduloEx107Ao112/teste.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/modulos/moduloEx107Ao112/teste.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
from moduloEx107Ao112.utilidades import moedas, dados preco = dados.leiaDinheiro('Digite um preço: R$') moedas.resumo(preco, 80, 35)
26.8
53
0.776119
777c8eeee608835cead2fbb131d9fab1b45c8c50
5,587
py
Python
algorithms_and_data_structures/trees/binary-tree.py
amgad01/algorithms
53eecf06e907cde806d4b78dc78fcd70d0271e3e
[ "MIT" ]
1
2021-03-05T18:13:02.000Z
2021-03-05T18:13:02.000Z
algorithms_and_data_structures/trees/binary-tree.py
amgad01/algorithms
53eecf06e907cde806d4b78dc78fcd70d0271e3e
[ "MIT" ]
null
null
null
algorithms_and_data_structures/trees/binary-tree.py
amgad01/algorithms
53eecf06e907cde806d4b78dc78fcd70d0271e3e
[ "MIT" ]
1
2021-07-25T01:55:12.000Z
2021-07-25T01:55:12.000Z
class BinaryTree: def __init__(self, data): self.data = data self.right = None self.left = None def insert(self, data): # if data is self.data: # return # if tree doesn't store duplicates if data <= self.data: if self.left is not None: ...
30.697802
112
0.547163
91f8a537ff546288a897ebc382a5607a46287cc6
298
py
Python
tests/class/field04.py
ktok07b6/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
83
2015-11-30T09:59:13.000Z
2021-08-03T09:12:28.000Z
tests/class/field04.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
4
2017-02-10T01:43:11.000Z
2020-07-14T03:52:25.000Z
tests/class/field04.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
11
2016-11-18T14:39:15.000Z
2021-02-23T10:05:20.000Z
from polyphony import testbench class C: def __init__(self, x): self.lst = [x] self.x = x def field04(x): c = C(x) c.lst[0] = c.lst[0] return c.lst[0] @testbench def test(): assert 1 == field04(1) assert 2 == field04(2) assert 3 == field04(3) test()
14.9
31
0.550336
4674f8adba3f6b87c1a9614d4382f6cdac258671
520
py
Python
nautobot_version_control/migrations/__init__.py
tim-fiola/nautobot-plugin-version-control
63699fc8dbdc20926564264bad0f8e4ede4c7281
[ "Apache-2.0" ]
3
2021-05-12T19:27:18.000Z
2021-07-28T19:48:20.000Z
nautobot_version_control/migrations/__init__.py
tim-fiola/nautobot-plugin-version-control
63699fc8dbdc20926564264bad0f8e4ede4c7281
[ "Apache-2.0" ]
47
2021-05-18T21:48:40.000Z
2021-09-03T18:06:57.000Z
nautobot_version_control/migrations/__init__.py
tim-fiola/nautobot-plugin-version-control
63699fc8dbdc20926564264bad0f8e4ede4c7281
[ "Apache-2.0" ]
1
2021-08-11T21:16:00.000Z
2021-08-11T21:16:00.000Z
from django.db import connection def auto_dolt_commit_migration(sender, **kwargs): msg = "Completed database migration" author = "system <nautobot@nautobot.invalid>" with connection.cursor() as cursor: cursor.execute("SELECT dolt_add('-A') FROM dual;") cursor.execute( f""" ...
28.888889
58
0.521154
90afbc073ec58f39a8e4f128ed5fef411061257d
943
py
Python
ML/scraping/losers/daily_top_losers.py
hpb1/Stocker
b81a3874b655805e2c6f6b35086dad4dab34077c
[ "MIT" ]
null
null
null
ML/scraping/losers/daily_top_losers.py
hpb1/Stocker
b81a3874b655805e2c6f6b35086dad4dab34077c
[ "MIT" ]
null
null
null
ML/scraping/losers/daily_top_losers.py
hpb1/Stocker
b81a3874b655805e2c6f6b35086dad4dab34077c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 29 23:52:33 2020 @author: pranjal27bhardwaj """ # This function will give the worst performing stocks of the day import requests from bs4 import BeautifulSoup import pandas as pd import matplotlib.pyplot as plt def daily_losers(): dfs = pd.read...
27.735294
115
0.694592
ac775c3609fa92e1f7c817470e53752628ea61ec
305
py
Python
2016/03/trump-deciders-20160322/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2016/03/trump-deciders-20160322/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2016/03/trump-deciders-20160322/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1nM5CN2sTzfmRbx1bBB05XE6QQpwKHI0Oj-4pMdufRZ8' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.816393
fd008b951da51e9eb1d9354bf7ec317db5da98e6
4,354
py
Python
genetic.py
HDK1999/GeneticClassSchedule
048913bffddce570cd8392fd0ca22ead942d5f7b
[ "MIT" ]
29
2019-06-08T23:05:19.000Z
2022-03-22T07:22:52.000Z
genetic.py
HDK1999/GeneticClassSchedule
048913bffddce570cd8392fd0ca22ead942d5f7b
[ "MIT" ]
null
null
null
genetic.py
HDK1999/GeneticClassSchedule
048913bffddce570cd8392fd0ca22ead942d5f7b
[ "MIT" ]
7
2019-05-13T00:07:31.000Z
2021-12-24T09:50:21.000Z
import copy import numpy as np from schedule import schedule_cost class GeneticOptimize: """Genetic Algorithm. """ def __init__(self, popsize=30, mutprob=0.3, elite=5, maxiter=100): # size of population self.popsize = popsize # prob of mutation self.mutprob = mutprob ...
27.383648
78
0.522738
0e3c7092c751a5427a64e1ad694ea2f3e265e8fa
408
py
Python
channelshowdown/channelshowdown/wsgi.py
channelfix/cshowdown-backend
4225ad4f2bd56112f627e6fe1f26c281484d804e
[ "MIT" ]
null
null
null
channelshowdown/channelshowdown/wsgi.py
channelfix/cshowdown-backend
4225ad4f2bd56112f627e6fe1f26c281484d804e
[ "MIT" ]
6
2018-02-19T02:41:20.000Z
2022-03-11T23:19:40.000Z
channelshowdown/channelshowdown/wsgi.py
emilarran/channelshowdown_final
0bcc8766af66719934bf744d0be2a90e96359761
[ "MIT" ]
null
null
null
""" WSGI config for channelshowdown 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJA...
24
78
0.794118
fd989dd923e0bbcabd1b867dbd48d4345d2fd192
7,390
py
Python
zstackwoodpecker/zstackwoodpecker/zstack_test/kvm_checker/zstack_kvm_share_volume_checker.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2021-03-21T12:41:11.000Z
2021-03-21T12:41:11.000Z
zstackwoodpecker/zstackwoodpecker/zstack_test/kvm_checker/zstack_kvm_share_volume_checker.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
null
null
null
zstackwoodpecker/zstackwoodpecker/zstack_test/kvm_checker/zstack_kvm_share_volume_checker.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2017-05-19T06:40:40.000Z
2017-05-19T06:40:40.000Z
import os import sys import traceback import zstackwoodpecker.header.checker as checker_header import zstackwoodpecker.header.vm as vm_header import zstackwoodpecker.operations.resource_operations as res_ops import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstacklib.ut...
53.550725
179
0.678755
5dd819fd7f5f1cf8be16061cb1c8514edb3b4840
3,617
py
Python
unicrypto/tests/destest.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
1
2022-03-15T23:23:03.000Z
2022-03-15T23:23:03.000Z
unicrypto/tests/destest.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
null
null
null
unicrypto/tests/destest.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
null
null
null
import unittest from unicrypto import get_cipher_by_name from unicrypto import symmetric des_ecb = [ ('0000000000000000', '0000000000000000', '8CA64DE9C1B123A7'), ('FFFFFFFFFFFFFFFF', 'FFFFFFFFFFFFFFFF', '7359B2163E4EDC58'), ('3000000000000000', '1000000000000001', '958E6E627A05557B'), ('1111111111111111', '11111...
31.72807
146
0.73431
9283a60d540972ca4f20aaeed01ba870ff3c40a4
16,425
py
Python
seq2seq.py
fabiozeh/deep-motifs
7c800c70f644c63035bb4139ce0bf1d82add7d5c
[ "MIT" ]
1
2021-04-09T08:53:55.000Z
2021-04-09T08:53:55.000Z
seq2seq.py
fabiozeh/deep-motifs
7c800c70f644c63035bb4139ce0bf1d82add7d5c
[ "MIT" ]
null
null
null
seq2seq.py
fabiozeh/deep-motifs
7c800c70f644c63035bb4139ce0bf1d82add7d5c
[ "MIT" ]
null
null
null
import numpy as np import pickle import sys import os import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import DataLoader import pytorch_lightning as pl import dataloader as dl descr = """ This script loads a sequential dataset with sco...
47.063037
131
0.583257
ea8a5ad7ff283a1f3b698047b92e888d314b77b7
7,162
py
Python
tests/test_trial.py
ytsmiling/optur
cbc56c60b322ea764592f01758798f745199b455
[ "MIT" ]
1
2022-01-19T09:18:15.000Z
2022-01-19T09:18:15.000Z
tests/test_trial.py
ytsmiling/optur
cbc56c60b322ea764592f01758798f745199b455
[ "MIT" ]
null
null
null
tests/test_trial.py
ytsmiling/optur
cbc56c60b322ea764592f01758798f745199b455
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, call from optur.proto.search_space_pb2 import Distribution, ParameterValue from optur.proto.study_pb2 import Parameter, StudyInfo from optur.proto.study_pb2 import Trial as TrialProto from optur.samplers.sampler import JointSampleResult from optur.trial import Trial def test_init...
35.98995
93
0.713627
682b1962c7161b50a50679fc1fbe1ca5cb3c0400
93
py
Python
Sessions/S03/lambda1.py
paulbordea/session3
a2edf697cbe9b9aa98383562416d4fdf1e19b482
[ "MIT" ]
null
null
null
Sessions/S03/lambda1.py
paulbordea/session3
a2edf697cbe9b9aa98383562416d4fdf1e19b482
[ "MIT" ]
null
null
null
Sessions/S03/lambda1.py
paulbordea/session3
a2edf697cbe9b9aa98383562416d4fdf1e19b482
[ "MIT" ]
null
null
null
x = lambda a, b: a * b def y(a): return a + 10 print(f'{x(5, 3)}') print(f'{y(10)}')
9.3
22
0.462366
29524b421b6cb3b555152f6c1869f4e2d690739e
9,028
py
Python
projector.py
NeuralBending/stylegan2-ada-pytorch
c1b33b7e6d67a8de3d483d64f9ca1a45a7c6d217
[ "BSD-Source-Code" ]
null
null
null
projector.py
NeuralBending/stylegan2-ada-pytorch
c1b33b7e6d67a8de3d483d64f9ca1a45a7c6d217
[ "BSD-Source-Code" ]
null
null
null
projector.py
NeuralBending/stylegan2-ada-pytorch
c1b33b7e6d67a8de3d483d64f9ca1a45a7c6d217
[ "BSD-Source-Code" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
42.186916
136
0.627271
e485fe47351b4042e522a10a429ed2963271b5a9
466
py
Python
conftest.py
edelvalle/django-unicorn
4d56136bf276384719945e124ba1f6f9568ab72f
[ "MIT" ]
null
null
null
conftest.py
edelvalle/django-unicorn
4d56136bf276384719945e124ba1f6f9568ab72f
[ "MIT" ]
null
null
null
conftest.py
edelvalle/django-unicorn
4d56136bf276384719945e124ba1f6f9568ab72f
[ "MIT" ]
null
null
null
from django.conf import settings def pytest_configure(): templates = [ {"BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [],} ] databases = {"default": {"ENGINE": "django.db.backends.sqlite3",}} installed_apps = [ "example.coffee", ] settings.configure( ...
23.3
83
0.628755
08beffd956861a8700fa761abfc38ea7d004d9fe
2,598
py
Python
network/network.py
bibofeng/DeepRL-1
7b14d9720a8ea1e08b05a2889d699a70174caf8f
[ "Apache-2.0" ]
null
null
null
network/network.py
bibofeng/DeepRL-1
7b14d9720a8ea1e08b05a2889d699a70174caf8f
[ "Apache-2.0" ]
null
null
null
network/network.py
bibofeng/DeepRL-1
7b14d9720a8ea1e08b05a2889d699a70174caf8f
[ "Apache-2.0" ]
1
2021-08-11T19:37:04.000Z
2021-08-11T19:37:04.000Z
####################################################################### # Copyright (C) 2017 Shangtong Zhang(zhangshangtong.cpp@gmail.com) # # Permission given to modify the code as long as you keep this # # declaration at the top # ################################...
33.307692
97
0.560816
fbc9010768b969ad1d8e1ff8046455321d247165
3,350
py
Python
tools/evm/evmthresh.py
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
8
2020-12-05T20:30:54.000Z
2022-01-22T13:32:14.000Z
tools/evm/evmthresh.py
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
3
2020-10-28T22:15:27.000Z
2021-01-27T14:43:41.000Z
tools/evm/evmthresh.py
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2018-2020 Drexel University # Author: Geoffrey Mainland <mainland@drexel.edu> import sys sys.path.insert(0, '..') import argparse import logging import math import matplotlib as mp import matplotlib.pyplot as plt import numpy as np import os import pandas as pd import scipy.signal as...
34.536082
124
0.602388
5ea50a17435f2c31b82ebf9ba9a02e8a995df156
632
py
Python
src/utils/print.py
alichtman/malware-techniques
2a74265bc74569a4e053d8406ade174e2cdc0a6c
[ "MIT" ]
61
2019-05-04T18:24:52.000Z
2022-01-20T15:14:27.000Z
src/utils/print.py
shaswata56/malware-techniques
2a74265bc74569a4e053d8406ade174e2cdc0a6c
[ "MIT" ]
10
2019-05-13T22:55:13.000Z
2019-07-14T12:42:06.000Z
src/utils/print.py
shaswata56/malware-techniques
2a74265bc74569a4e053d8406ade174e2cdc0a6c
[ "MIT" ]
9
2019-06-01T10:13:28.000Z
2021-12-01T06:23:51.000Z
from colorama import Fore, Style def print_blue(text): print(Fore.BLUE + text + Style.RESET_ALL) def print_red(text): print(Fore.RED + text + Style.RESET_ALL) def print_yellow(text): print(Fore.YELLOW + text + Style.RESET_ALL) def print_green(text): print(Fore.GREEN + text + Style.RESET_ALL) def print_ban...
19.75
80
0.69462
ea5cd1464cf140183ad93054c141df6dbd7869f4
288
py
Python
accounts/views.py
PeterHo/mysite
c3a4d4038f375ea8ea3d5a240f6deb1275d4a405
[ "Apache-2.0" ]
null
null
null
accounts/views.py
PeterHo/mysite
c3a4d4038f375ea8ea3d5a240f6deb1275d4a405
[ "Apache-2.0" ]
null
null
null
accounts/views.py
PeterHo/mysite
c3a4d4038f375ea8ea3d5a240f6deb1275d4a405
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render from django.contrib.auth import authenticate, login def persona_login(request): user = authenticate(assertion=request.POST['assertion']) if user: login(request, user) return HttpResponse('OK')
26.181818
60
0.753472
50b4eb6e4e4536038de50a67d16be12407d0cc91
20,344
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/aio/operations_async/_virtual_router_peerings_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/aio/operations_async/_virtual_router_peerings_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/aio/operations_async/_virtual_router_peerings_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.140097
220
0.671893
d3be8d29ccd34d88521b45f89502fca4d4d930c4
214
py
Python
src/pymodaq/daq_utils/plotting/viewer2D/viewer_2D_basic.py
LMSC-NTappy/PyMoDAQ
fb0916422f0fcb9660d804b8cb18ddf745a41ef1
[ "MIT" ]
null
null
null
src/pymodaq/daq_utils/plotting/viewer2D/viewer_2D_basic.py
LMSC-NTappy/PyMoDAQ
fb0916422f0fcb9660d804b8cb18ddf745a41ef1
[ "MIT" ]
null
null
null
src/pymodaq/daq_utils/plotting/viewer2D/viewer_2D_basic.py
LMSC-NTappy/PyMoDAQ
fb0916422f0fcb9660d804b8cb18ddf745a41ef1
[ "MIT" ]
null
null
null
from pymodaq.daq_utils.messenger import deprecation_msg from ..data_viewers.viewer2D_basic import Viewer2DBasic deprecation_msg('Viewer2DBasic should now be imported from pymodaq.daq_utils.plotting.data_viewers')
42.8
100
0.869159
502f8b80bb7ae48765e2996e8de0590b48e4b675
1,360
py
Python
setup.py
jacobian0208/well_compare_96
85ff8a840abbb77eec5d27cd6003b9e04f61959e
[ "MIT" ]
null
null
null
setup.py
jacobian0208/well_compare_96
85ff8a840abbb77eec5d27cd6003b9e04f61959e
[ "MIT" ]
null
null
null
setup.py
jacobian0208/well_compare_96
85ff8a840abbb77eec5d27cd6003b9e04f61959e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 30 16:17:33 2020 @author: jacob """ import setuptools with open("README.md", "r") as fh: long_description = fh.read() # Grabs the requirements from requirements.txt REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()] set...
33.170732
115
0.669118
ebc20eb2ee4c18598edb19954bc42f8e40aa130d
196
py
Python
26-50/30.py
tonyyzy/ProjectEuler
f52de2f931ebd4df2020e32d12062866b1586e72
[ "MIT" ]
null
null
null
26-50/30.py
tonyyzy/ProjectEuler
f52de2f931ebd4df2020e32d12062866b1586e72
[ "MIT" ]
null
null
null
26-50/30.py
tonyyzy/ProjectEuler
f52de2f931ebd4df2020e32d12062866b1586e72
[ "MIT" ]
null
null
null
n = 10 result = [] while n < 1000000: a = str(n) temp = 0 for i in a: temp += int(i) ** 5 if temp == n: result.append(n) n += 1 print(sum(result))
15.076923
28
0.428571
96c21cdf2a1d1030cc980fd5c66447bf1951aea2
4,192
py
Python
ucsmsdk/mometa/aaa/AaaTacacsPlusEpFsmStage.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/aaa/AaaTacacsPlusEpFsmStage.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/aaa/AaaTacacsPlusEpFsmStage.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for AaaTacacsPlusEpFsmStage ManagedObject.""" import sys, os from ...ucsmo import ManagedObject from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class AaaTacacsPlusEpFsmStageConsts(): LAST_UPDATE_TIME_ = "" NAME_N...
55.157895
266
0.649332
6b50ee43d2d948ca96922cf736f93fcb433a2802
12,327
py
Python
application/data_entry_functions.py
PaulineLc/OpenDoorData
203b19427467e330cd04b4dc5e8c31d5b9af755c
[ "MIT" ]
null
null
null
application/data_entry_functions.py
PaulineLc/OpenDoorData
203b19427467e330cd04b4dc5e8c31d5b9af755c
[ "MIT" ]
null
null
null
application/data_entry_functions.py
PaulineLc/OpenDoorData
203b19427467e330cd04b4dc5e8c31d5b9af755c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jul 28 23:54:44 2016 @author: Elayne Ruane """ import csv import time as tm import datetime from dateutil.parser import parse #import models #import linear_model def epochtime(x): ''' function that reads in a date and converts it to epoch time format parameters...
41.505051
113
0.641194
85a624a03fefd01671d555af39b65ea926a647c9
8,891
py
Python
database/mongodb_atlas.py
billpwchan/DeepTrust
319bef4c8e8f9f210d189b594f440d13a9e14bcf
[ "MIT" ]
4
2021-09-01T15:50:33.000Z
2022-03-30T03:13:00.000Z
database/mongodb_atlas.py
billpwchan/DeepTrust
319bef4c8e8f9f210d189b594f440d13a9e14bcf
[ "MIT" ]
2
2022-02-19T07:48:44.000Z
2022-02-27T17:15:10.000Z
database/mongodb_atlas.py
billpwchan/DeepTrust
319bef4c8e8f9f210d189b594f440d13a9e14bcf
[ "MIT" ]
null
null
null
import re from datetime import date import emoji import pymongo import configparser from pymongo import UpdateOne from pymongo.errors import BulkWriteError from util import logger class MongoDB: def __init__(self): config = configparser.ConfigParser() config.read('./config.ini') client =...
58.493421
213
0.643685
5904a9749d8b76010d75b5ef2ddbf40080f67777
15,336
py
Python
release/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
vic3t3chn0/Bforartists
7c54a60dd7aa568e20ae7e3778dfef993b61b7b5
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-01-18T22:13:24.000Z
2020-01-18T22:13:24.000Z
release/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
vic3t3chn0/Bforartists
7c54a60dd7aa568e20ae7e3778dfef993b61b7b5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
vic3t3chn0/Bforartists
7c54a60dd7aa568e20ae7e3778dfef993b61b7b5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright 2018-2019 The glTF-Blender-IO 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 ...
46.332326
120
0.578117
caf6c459a38e5cb4e3dc596a090611e81f60e756
6,060
py
Python
models/cnn_model.py
XxuChen/Adversarial-Attack-on-CapsNets
96dc86b4f5f470c80a3bea2f66aaa3dc8a10bbee
[ "MIT" ]
null
null
null
models/cnn_model.py
XxuChen/Adversarial-Attack-on-CapsNets
96dc86b4f5f470c80a3bea2f66aaa3dc8a10bbee
[ "MIT" ]
null
null
null
models/cnn_model.py
XxuChen/Adversarial-Attack-on-CapsNets
96dc86b4f5f470c80a3bea2f66aaa3dc8a10bbee
[ "MIT" ]
null
null
null
# Copyright 2018 Xu Chen All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
45.909091
88
0.613201
8fe8959d31d0b4bb53e811421086843f8494e771
1,613
py
Python
playfunction/website_api/blog.py
patilsangram/playfunction
e8cb03ef0091547bee8da65d5ce1cce7d68cace0
[ "MIT" ]
null
null
null
playfunction/website_api/blog.py
patilsangram/playfunction
e8cb03ef0091547bee8da65d5ce1cce7d68cace0
[ "MIT" ]
null
null
null
playfunction/website_api/blog.py
patilsangram/playfunction
e8cb03ef0091547bee8da65d5ce1cce7d68cace0
[ "MIT" ]
null
null
null
import frappe import json from frappe import _ fields = ["name", "title", "content", "category as blog_category", "image"] @frappe.whitelist(allow_guest=True) def get_blog_list(page_index=0, page_size=10): """Returns blog post List""" try: response = frappe._dict() filters = {"published": 1} all_records = fr...
34.319149
92
0.727836
6f2352d9913686b6755280ad579d3fd01d638a5a
72
py
Python
python/testData/intentions/positionalVarargTypeInGoogleDocString.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/positionalVarargTypeInGoogleDocString.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/positionalVarargTypeInGoogleDocString.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def f(x, *ar<caret>gs, **kwargs): """ Args: x: foo """
14.4
33
0.388889
bb1196b9a65d53a355359e54a132809c800446f1
9,683
py
Python
lib/mesh_sampling.py
TheoMoutakanni/coma
96294e2196d5c6eb4f33a8faa9a5037edbcc9fed
[ "MIT" ]
null
null
null
lib/mesh_sampling.py
TheoMoutakanni/coma
96294e2196d5c6eb4f33a8faa9a5037edbcc9fed
[ "MIT" ]
null
null
null
lib/mesh_sampling.py
TheoMoutakanni/coma
96294e2196d5c6eb4f33a8faa9a5037edbcc9fed
[ "MIT" ]
null
null
null
import math import heapq import numpy as np import os import scipy.sparse as sp from mesh import Mesh #from psbody.mesh.topology.decimation import vertex_quadrics from connectivity import get_vert_connectivity, get_vertices_per_edge import pyigl as igl from iglhelpers import p2e,e2p def vertex_quadrics(mesh): ""...
33.856643
122
0.594444
89dbf39c7947e30ccf5ab4ac604a3f5f4a1054a0
14,929
py
Python
host-software/uniflash/uniflash.py
dpejcha/keyplus
8d0d4b59e9175295fd5edf0d4fecfced8053460f
[ "MIT" ]
226
2017-08-14T16:11:36.000Z
2022-03-13T00:58:13.000Z
host-software/uniflash/uniflash.py
dpejcha/keyplus
8d0d4b59e9175295fd5edf0d4fecfced8053460f
[ "MIT" ]
90
2017-09-12T02:07:39.000Z
2022-01-27T20:58:19.000Z
host-software/uniflash/uniflash.py
dpejcha/keyplus
8d0d4b59e9175295fd5edf0d4fecfced8053460f
[ "MIT" ]
44
2017-09-17T17:31:25.000Z
2022-02-27T08:19:46.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 jem@seethis.link # Licensed under the MIT license (http://opensource.org/licenses/MIT) import usb.core import usb.util import usb.control import time import sys import intelhex import crc16 from array import array import hexdump from btool import * VI...
32.174569
96
0.624556
bf78802d480bc78e5f1a8a0d4986bb7925dfd3b2
8,057
py
Python
lib/galaxy/tools/loader_directory.py
katbeaulieu/galaxy-1
e1dcc8a625d00990c7f062b9c2ccbf5fa86fbfee
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
lib/galaxy/tools/loader_directory.py
katbeaulieu/galaxy-1
e1dcc8a625d00990c7f062b9c2ccbf5fa86fbfee
[ "CC-BY-3.0" ]
7
2016-12-07T22:19:37.000Z
2019-01-30T15:04:26.000Z
lib/galaxy/tools/loader_directory.py
abretaud/galaxy
1ad89511540e6800cd2d0da5d878c1c77d8ccfe9
[ "CC-BY-3.0" ]
null
null
null
"""Utilities for loading and reasoning about unparsed tools in directories.""" import fnmatch import glob import logging import os import re import sys import yaml from galaxy.util import checkers from .parser import get_tool_source from ..tools import loader log = logging.getLogger(__name__) PATH_DOES_NOT_EXIST_ER...
28.775
93
0.674817
6c5d2b3a9de891e65a4c2f25874c8e93240370f6
274
py
Python
python-script/write_pressure_json.py
damico/rtl433_2_aprs
73fb8fde6f16968237a80543d9a94785d661f0b8
[ "Apache-2.0" ]
null
null
null
python-script/write_pressure_json.py
damico/rtl433_2_aprs
73fb8fde6f16968237a80543d9a94785d661f0b8
[ "Apache-2.0" ]
null
null
null
python-script/write_pressure_json.py
damico/rtl433_2_aprs
73fb8fde6f16968237a80543d9a94785d661f0b8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import Adafruit_BMP.BMP085 as BMP085 from datetime import datetime sensor = BMP085.BMP085() psea = sensor.read_pressure() / pow(1.0 - 717/44330.0, 5.255) print('{"pressure":',psea,', "datetime": ','"'+datetime.now().strftime('%Y-%m-%d %H:%M:%S')+'"','}')
39.142857
100
0.653285
172ecdcb4d51677406c81a767e80443e0ed3d0f3
2,081
py
Python
src/faq_bot/channel/sentence_bert_channel.py
wj-Mcat/faq-bot
52f46dc1f14b0b13ff86b173900af5e5eb120721
[ "Apache-2.0" ]
null
null
null
src/faq_bot/channel/sentence_bert_channel.py
wj-Mcat/faq-bot
52f46dc1f14b0b13ff86b173900af5e5eb120721
[ "Apache-2.0" ]
null
null
null
src/faq_bot/channel/sentence_bert_channel.py
wj-Mcat/faq-bot
52f46dc1f14b0b13ff86b173900af5e5eb120721
[ "Apache-2.0" ]
null
null
null
""" faq-bot https://github.com/wj-Mcat/faq-bot Authors: Jingjing WU (吴京京) <https://github.com/wj-Mcat> 2020-now @ Copyright wj-Mcat 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....
33.564516
72
0.720327
cc948ec4fe5d071fdbb69da4c40bbf7851ba75fa
3,252
py
Python
test/e2e/tests/test_model.py
komish/sagemaker-controller
d1bfe3f59244a0bff98bd775814b94927c827d13
[ "Apache-2.0" ]
null
null
null
test/e2e/tests/test_model.py
komish/sagemaker-controller
d1bfe3f59244a0bff98bd775814b94927c827d13
[ "Apache-2.0" ]
null
null
null
test/e2e/tests/test_model.py
komish/sagemaker-controller
d1bfe3f59244a0bff98bd775814b94927c827d13
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
33.183673
87
0.708795
6ed70f47f6a33a1533345419ffe679aa733457fa
43,300
py
Python
pie_intent.py
luojy95/PIEPredict
8c1c890618f6d38d4215ff6c7bf1f3805bbdac37
[ "Apache-2.0" ]
null
null
null
pie_intent.py
luojy95/PIEPredict
8c1c890618f6d38d4215ff6c7bf1f3805bbdac37
[ "Apache-2.0" ]
null
null
null
pie_intent.py
luojy95/PIEPredict
8c1c890618f6d38d4215ff6c7bf1f3805bbdac37
[ "Apache-2.0" ]
null
null
null
""" The code implementation of the paper: A. Rasouli, I. Kotseruba, T. Kunic, and J. Tsotsos, "PIE: A Large-Scale Dataset and Models for Pedestrian Intention Estimation and Trajectory Prediction", ICCV 2019. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance...
46.359743
159
0.550254
311406dc695c79e0e803112052f820cfd49b4938
37
py
Python
gradoptorch/__init__.py
coursekevin/gradoptorch
cddfb6d617d71a4a169f364d88201ce54112ea17
[ "MIT" ]
null
null
null
gradoptorch/__init__.py
coursekevin/gradoptorch
cddfb6d617d71a4a169f364d88201ce54112ea17
[ "MIT" ]
null
null
null
gradoptorch/__init__.py
coursekevin/gradoptorch
cddfb6d617d71a4a169f364d88201ce54112ea17
[ "MIT" ]
null
null
null
from .gradoptorch import gradoptorch
18.5
36
0.864865
4dfeac2a368b0ff9b2df5936170dd7e8d0fe084a
6,116
py
Python
accelbyte_py_sdk/api/platform/models/transaction_amount_details.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/platform/models/transaction_amount_details.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/platform/models/transaction_amount_details.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # justice-platform-service (4.10.0) # pylint: disabl...
33.977778
193
0.596959
e0c9e5b4c7c53ec0a8acb4c5f71fb9025413221c
3,156
py
Python
src/relay/blockchain/currency_network_events.py
dakingha69/relay
bffc37ca9963d8bd5937aa33db86147090de3971
[ "MIT" ]
null
null
null
src/relay/blockchain/currency_network_events.py
dakingha69/relay
bffc37ca9963d8bd5937aa33db86147090de3971
[ "MIT" ]
null
null
null
src/relay/blockchain/currency_network_events.py
dakingha69/relay
bffc37ca9963d8bd5937aa33db86147090de3971
[ "MIT" ]
null
null
null
import hexbytes from .events import BlockchainEvent, TLNetworkEvent TrustlineRequestEventType = "TrustlineUpdateRequest" TrustlineRequestCancelEventType = "TrustlineUpdateCancel" TrustlineUpdateEventType = "TrustlineUpdate" BalanceUpdateEventType = "BalanceUpdate" TransferEventType = "Transfer" NetworkFreezeEventType...
29.495327
119
0.738593
97abbf5097f5e4e6c8c8fe9a92f0c6cd9ffe5ea2
15,375
py
Python
kedro/runner/parallel_runner.py
Nieju/kedro
6a5868b874d77c5cb5634a2d6b194db1bde10b1b
[ "Apache-2.0" ]
null
null
null
kedro/runner/parallel_runner.py
Nieju/kedro
6a5868b874d77c5cb5634a2d6b194db1bde10b1b
[ "Apache-2.0" ]
null
null
null
kedro/runner/parallel_runner.py
Nieju/kedro
6a5868b874d77c5cb5634a2d6b194db1bde10b1b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 QuantumBlack Visual Analytics Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THE SOFTWARE IS PROVIDED "AS IS",...
41.442049
94
0.621008
eb08fdd3fd8a01976633a7b9184d8c140c6e0ff3
1,573
py
Python
Data_Structures/python/BreadthFirstSearch.py
sahiltagunde/DS_with_hacktoberfest
c1c4adda0ed250f68808721a7dc57fb9e1255421
[ "Apache-2.0" ]
16
2019-09-30T18:33:03.000Z
2020-11-16T10:29:51.000Z
Data_Structures/python/BreadthFirstSearch.py
sahiltagunde/DS_with_hacktoberfest
c1c4adda0ed250f68808721a7dc57fb9e1255421
[ "Apache-2.0" ]
43
2019-09-30T13:37:57.000Z
2020-10-30T06:13:20.000Z
Data_Structures/python/BreadthFirstSearch.py
sahiltagunde/DS_with_hacktoberfest
c1c4adda0ed250f68808721a7dc57fb9e1255421
[ "Apache-2.0" ]
142
2019-09-30T16:47:07.000Z
2021-10-30T16:29:17.000Z
class Graph(): def __init__(self): self.vertex = {} # for printing the Graph vertexes def printGraph(self): for i in self.vertex.keys(): print(i,' -> ', ' -> '.join([str(j) for j in self.vertex[i]])) # for adding the edge beween two vertexes def addEdge(self, fromVertex...
26.661017
74
0.530833
c9894c541566dfad187d3f4595f29db8a26d9a08
12,203
py
Python
causallearn/utils/PCUtils/BackgroundKnowledge.py
softsys4ai/causal-config-labyrinth
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
[ "MIT" ]
15
2022-01-20T12:35:35.000Z
2022-03-24T16:25:24.000Z
causallearn/utils/PCUtils/BackgroundKnowledge.py
softsys4ai/unicorn
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
[ "MIT" ]
14
2022-01-23T00:20:00.000Z
2022-02-22T01:40:43.000Z
causallearn/utils/PCUtils/BackgroundKnowledge.py
softsys4ai/causal-config-labyrinth
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
[ "MIT" ]
1
2022-02-23T08:59:24.000Z
2022-02-23T08:59:24.000Z
import re from causallearn.graph.Node import Node class BackgroundKnowledge(object): def __init__(self): self.forbidden_rules_specs = set() self.forbidden_pattern_rules_specs = set() self.required_rules_specs = set() self.required_pattern_rules_specs = set() self.tier_map ...
38.015576
120
0.593788
a7be82d815744b36a72dd3f9b9f9353ea8b3318e
1,333
py
Python
tests/test_long.py
spyysalo/wikitextprocessor
ea27de99a6cb87b1ae3d1b150a7abf16efa6ef3f
[ "MIT" ]
38
2020-11-21T11:11:46.000Z
2022-03-20T14:06:41.000Z
tests/test_long.py
spyysalo/wikitextprocessor
ea27de99a6cb87b1ae3d1b150a7abf16efa6ef3f
[ "MIT" ]
5
2021-04-07T21:48:38.000Z
2022-03-09T17:11:21.000Z
tests/test_long.py
spyysalo/wikitextprocessor
ea27de99a6cb87b1ae3d1b150a7abf16efa6ef3f
[ "MIT" ]
10
2020-10-30T12:58:33.000Z
2022-03-16T15:01:34.000Z
import sys import unittest import collections from wikitextprocessor import Wtp def page_cb(model, title, text): # Note: this may be called in a separate thread and thus cannot # update external variables assert model in ("wikitext", "redirect", "Scribunto") # in this data if model == "redirect": ...
31
75
0.645161
b0ac642c688eb2bec3ef4166726caa3e0b6802fc
657
py
Python
candemachine/candetypes.py
Ricyteach/candemachine
0d0baa26aeee358ea6c2fb8148bbe112e36a7fda
[ "MIT" ]
null
null
null
candemachine/candetypes.py
Ricyteach/candemachine
0d0baa26aeee358ea6c2fb8148bbe112e36a7fda
[ "MIT" ]
null
null
null
candemachine/candetypes.py
Ricyteach/candemachine
0d0baa26aeee358ea6c2fb8148bbe112e36a7fda
[ "MIT" ]
null
null
null
from .candeproblem import CandeProbBase class CandeL1AnalysisASD(CandeProbBase): pass class CandeL2AnalysisASD(CandeProbBase): pass class CandeL3AnalysisASD(CandeProbBase): pass class CandeL1DesignASD(CandeProbBase): pass class CandeL2DesignASD(CandeProbBase): pass class CandeL3DesignASD...
13.408163
41
0.774734
fce1d5a48a79bbfe6f7fb7781ed5bdf104587fe3
5,557
py
Python
scripts/utils/collect_metrics_to_csv.py
a113n/bcbio-nextgen
1d4afef27ad2e84a4ecb6145ccc5058f2abb4616
[ "MIT" ]
3
2020-04-08T14:32:15.000Z
2020-07-21T19:45:24.000Z
scripts/utils/collect_metrics_to_csv.py
a113n/bcbio-nextgen
1d4afef27ad2e84a4ecb6145ccc5058f2abb4616
[ "MIT" ]
2
2020-04-10T13:56:52.000Z
2020-04-10T13:58:43.000Z
scripts/utils/collect_metrics_to_csv.py
a113n/bcbio-nextgen
1d4afef27ad2e84a4ecb6145ccc5058f2abb4616
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Collect alignment summary metrics from multiple lanes and summarize as CSV. Usage: collect_metrics_to_csv.py <comma separated list of lanes> """ import sys import os import csv import glob import collections import yaml import pysam from bcbio.broad.metrics import PicardMetricsParser, Pi...
33.475904
88
0.650531
77aefb5d7a191eace4d0220b9a27425e5cb25a00
7,539
py
Python
app/djangoadmin/invoice2/migrations/0001_initial.py
duboisR/django-admin
389644d206ea76369ae7222cc6d2f3290c1a46b0
[ "MIT" ]
null
null
null
app/djangoadmin/invoice2/migrations/0001_initial.py
duboisR/django-admin
389644d206ea76369ae7222cc6d2f3290c1a46b0
[ "MIT" ]
null
null
null
app/djangoadmin/invoice2/migrations/0001_initial.py
duboisR/django-admin
389644d206ea76369ae7222cc6d2f3290c1a46b0
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-05 19:42 from decimal import Decimal import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import invoice2.models class Migration(migrations.Migration): initial = True dependencies = [ ...
70.457944
379
0.626078
86e89b5fd7f69c18da77693c03fd7aa85ca2a030
1,251
py
Python
pepdb/core/migrations/0175_auto_20200107_1702.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
7
2015-12-21T03:52:46.000Z
2020-07-24T19:17:23.000Z
pepdb/core/migrations/0175_auto_20200107_1702.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
12
2016-03-05T18:11:05.000Z
2021-06-17T20:20:03.000Z
pepdb/core/migrations/0175_auto_20200107_1702.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
4
2016-07-17T20:19:38.000Z
2021-03-23T12:47:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.22 on 2020-01-07 15:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0174_auto_20200102_1702'), ] operations = [ migrations.AddField( ...
48.115385
513
0.677058
a912a832516e98b337706157e65bd3e17f172dab
391
py
Python
lxgShop/wsgi.py
Bastieno/lxg-shop
af569c473a69f74eeb3e8b44f3ccc58e24810dd6
[ "MIT" ]
null
null
null
lxgShop/wsgi.py
Bastieno/lxg-shop
af569c473a69f74eeb3e8b44f3ccc58e24810dd6
[ "MIT" ]
7
2020-06-05T20:47:04.000Z
2021-09-22T18:29:53.000Z
lxgShop/wsgi.py
Bastieno/lxg-shop
af569c473a69f74eeb3e8b44f3ccc58e24810dd6
[ "MIT" ]
null
null
null
""" WSGI config for lxgShop project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
19a365f4b60ab873e3eb4dd286a7070faf7aa32c
8,524
py
Python
kanban.py
joshuachen0/kanban
867822c1f6df3e94a2a3e778a6b90cea986d55c5
[ "MIT" ]
null
null
null
kanban.py
joshuachen0/kanban
867822c1f6df3e94a2a3e778a6b90cea986d55c5
[ "MIT" ]
null
null
null
kanban.py
joshuachen0/kanban
867822c1f6df3e94a2a3e778a6b90cea986d55c5
[ "MIT" ]
null
null
null
from kb_errors import * class kanban(object): """ class docstring """ def __init__(self, file_name): """ Initializes instance of `kanban` class, given a file name. Inputs: file_name: File name of file containing data for a kanban board. Outputs: ...
36.741379
107
0.504458
e9a33897ee9889e52911d9cdb6ac328aa9dbc04f
383
py
Python
TRANSFORM/Resources/Scripts/jModelica/Units/Conversions/Functions/Area_m2/Examples/check_barn.py
greenwoodms/TRANSFORM-Library
dc152d4f0298d3f18385f2ea33645d87d7812915
[ "Apache-2.0" ]
29
2018-04-24T17:06:19.000Z
2021-11-21T05:17:28.000Z
TRANSFORM/Resources/Scripts/jModelica/Units/Conversions/Functions/Area_m2/Examples/check_barn.py
greenwoodms/TRANSFORM-Library
dc152d4f0298d3f18385f2ea33645d87d7812915
[ "Apache-2.0" ]
13
2018-04-05T08:34:27.000Z
2021-10-04T14:24:41.000Z
TRANSFORM/Resources/Scripts/jModelica/Units/Conversions/Functions/Area_m2/Examples/check_barn.py
greenwoodms/TRANSFORM-Library
dc152d4f0298d3f18385f2ea33645d87d7812915
[ "Apache-2.0" ]
17
2018-08-06T22:18:01.000Z
2022-01-29T21:38:17.000Z
from pymodelica import compile_fmu from pyfmi import load_fmu libPath = r'C:\Users\vmg\Documents\Modelica\TRANSFORM-Library/TRANSFORM' modelName = 'TRANSFORM.Units.Conversions.Functions.Area_m2.Examples.check_barn' fmu = compile_fmu(modelName,libPath,target='cs') model = load_fmu(fmu) opts = model.simulate_options()...
27.357143
79
0.801567
0180a5eb07158330318daaa2a2c0246a78fc7827
11,921
py
Python
ai_traineree/agents/td3.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
22
2020-08-21T03:03:05.000Z
2022-02-22T10:15:36.000Z
ai_traineree/agents/td3.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
23
2021-02-13T20:35:45.000Z
2022-02-06T20:15:37.000Z
ai_traineree/agents/td3.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
6
2020-10-11T08:36:09.000Z
2021-11-20T18:31:03.000Z
from functools import cached_property from typing import Dict, List import numpy as np import torch import torch.nn as nn from torch.nn.functional import mse_loss from torch.optim import AdamW from ai_traineree import DEVICE from ai_traineree.agents import AgentBase from ai_traineree.agents.agent_utils import hard_up...
45.85
128
0.67595
cbec9b0f9b8d78f6fd3323a38ee738b332b2f79f
339
py
Python
yelp/obj/deal_option.py
ruchir594/messenger-bot-yelp-aws
757d9e3e599432954a1acbf477b2f40e5c2d247c
[ "MIT" ]
8
2016-05-13T20:59:39.000Z
2017-02-01T03:26:57.000Z
yelp/obj/deal_option.py
ruchir594/messenger-bot-yelp-aws
757d9e3e599432954a1acbf477b2f40e5c2d247c
[ "MIT" ]
1
2016-08-08T03:53:21.000Z
2016-08-08T04:09:07.000Z
yelp/obj/deal_option.py
ruchir594/messenger-bot-yelp-aws
757d9e3e599432954a1acbf477b2f40e5c2d247c
[ "MIT" ]
4
2016-06-21T00:26:55.000Z
2019-12-23T15:55:42.000Z
# -*- coding: UTF-8 -*- from yelp.obj.response_object import ResponseObject class DealOption(ResponseObject): _fields = [ 'title', 'purchase_url', 'price', 'formatted_price', 'original_price', 'formatted_original_price', 'is_quantity_limited', 'rema...
19.941176
51
0.59292
29615c919f868406a91324e11fa8b40dabdfd3f0
1,851
py
Python
deformetrica/support/probability_distributions/alamain_gradient.py
fleurgaudfernau/Deformetrica_multiscale
cb6da74fa7882821ee64ce10b37906d775c9752a
[ "MIT" ]
2
2022-03-04T11:19:30.000Z
2022-03-08T04:47:22.000Z
deformetrica/support/probability_distributions/alamain_gradient.py
lepennec/Deformetrica_multiscale
dbcb69962dd02f14dde5d63a9abc1de69112f273
[ "MIT" ]
null
null
null
deformetrica/support/probability_distributions/alamain_gradient.py
lepennec/Deformetrica_multiscale
dbcb69962dd02f14dde5d63a9abc1de69112f273
[ "MIT" ]
1
2022-03-07T09:52:52.000Z
2022-03-07T09:52:52.000Z
import numpy as np import torch from torch.autograd import Variable import scipy.spatial as sp from ...support import utilities class AlamainGradientDistribution: #################################################################################################################### ### Constructor: ########...
36.294118
120
0.357645
d80738d73ea8259d08a042bbf113e5d53db3df42
454
py
Python
Programming Advanced/Tuples and Sets/softuni_party.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
Programming Advanced/Tuples and Sets/softuni_party.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
Programming Advanced/Tuples and Sets/softuni_party.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
def get_not_arrived_guests(guests, guests_arrived): # guests_set = set(guests) # [guests_set.remove(guests) for guests in guests if guests_arrived] # return giests_set return set(guests) - set(guests_arrived) def print_result(result): result = sorted(result) print(len(result)) [print(guest...
28.375
72
0.709251
da67e304f000b52bb01a72c38bd020888ec7e7c0
2,494
py
Python
tests/test_things3_api.py
M-Whitaker/KanbanView
c395bc6c05832c7bdf5367ab6aa936bec23b102b
[ "Apache-2.0" ]
1
2021-02-07T17:50:55.000Z
2021-02-07T17:50:55.000Z
tests/test_things3_api.py
M-Whitaker/KanbanView
c395bc6c05832c7bdf5367ab6aa936bec23b102b
[ "Apache-2.0" ]
null
null
null
tests/test_things3_api.py
M-Whitaker/KanbanView
c395bc6c05832c7bdf5367ab6aa936bec23b102b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Module documentation goes here.""" import unittest import json import configparser from things3 import things3, things3_api class Things3APICase(unittest.TestCase): """Class documentation goes here.""" things3_api = things3_api.Things3API() things3 = th...
32.815789
72
0.642342
792a51275f54c734bffae1f0ce23bec41badb4a7
1,321
py
Python
sstcam_sandbox/d190209_spectra/spe_c.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
null
null
null
sstcam_sandbox/d190209_spectra/spe_c.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
null
null
null
sstcam_sandbox/d190209_spectra/spe_c.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
1
2021-03-30T09:46:56.000Z
2021-03-30T09:46:56.000Z
import ctypes import numpy as np import os lib = np.ctypeslib.load_library("spe_functions", os.path.dirname(__file__)) mapm_c = lib.mapm mapm_c.restype = None mapm_c.argtypes = [ np.ctypeslib.ndpointer(ctypes.c_double, flags="C_CONTIGUOUS"), np.ctypeslib.ndpointer(ctypes.c_double, flags="C_CONTIGUOUS"), c...
26.42
87
0.691143
7e1f794b0f3c4318be207980c34d67a6be31307e
581
py
Python
instaapp/migrations/0006_subscribers.py
budds300/Instagram
08a37dc30493504428aa8de81726631510b2b28f
[ "MIT" ]
null
null
null
instaapp/migrations/0006_subscribers.py
budds300/Instagram
08a37dc30493504428aa8de81726631510b2b28f
[ "MIT" ]
null
null
null
instaapp/migrations/0006_subscribers.py
budds300/Instagram
08a37dc30493504428aa8de81726631510b2b28f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-17 20:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('instaapp', '0005_auto_20201017_2246'), ] operations = [ migrations.CreateModel( name='Subscribers', fields=[ ...
26.409091
114
0.580034
2dc217ba39caee909f3034b39fd0c631e209bae2
2,671
py
Python
src/openfermion/ops/operators/boson_operator_test.py
Emieeel/OpenFermion
c19d9667c5970473893f9bc0183556c4cd354dd7
[ "Apache-2.0" ]
1,291
2017-09-27T22:00:26.000Z
2022-03-25T14:34:50.000Z
src/openfermion/ops/operators/boson_operator_test.py
SamarthVadia/OpenFermion
865d8591cad9b0681f6dd25a391a5292ed2de1d4
[ "Apache-2.0" ]
521
2017-09-27T21:36:17.000Z
2022-03-02T12:45:56.000Z
src/openfermion/ops/operators/boson_operator_test.py
SamarthVadia/OpenFermion
865d8591cad9b0681f6dd25a391a5292ed2de1d4
[ "Apache-2.0" ]
365
2017-09-27T21:25:38.000Z
2022-03-29T19:28:46.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 # distribu...
37.619718
76
0.710595
e246ffe262747fd9effd43a88e6da94a72172a2a
854
py
Python
agraffe/types.py
odd12258053/agraffe
1f191e5c57c06aff2d685fd62785571137f32210
[ "MIT" ]
16
2020-09-11T07:20:26.000Z
2022-02-08T20:41:08.000Z
agraffe/types.py
odd12258053/agraffe
1f191e5c57c06aff2d685fd62785571137f32210
[ "MIT" ]
12
2020-09-07T00:17:41.000Z
2022-02-04T08:05:54.000Z
agraffe/types.py
odd12258053/agraffe
1f191e5c57c06aff2d685fd62785571137f32210
[ "MIT" ]
2
2020-11-09T09:17:49.000Z
2020-11-10T03:19:16.000Z
from typing import Any, Awaitable, Callable, MutableMapping from typing_extensions import Protocol Message = MutableMapping[str, Any] Scope = MutableMapping[str, Any] Receive = Callable[[], Awaitable[Message]] Send = Callable[[Message], Awaitable[None]] Request = Any Response = Any class ASGIApp(Protocol): asyn...
20.829268
81
0.615925
ac38b50401acb1b470e4db15d6e634883cf4f256
17,414
py
Python
tests/test_integration/test_postgraas_api.py
timohaas/postgraas_server
2d94e0262414cf860f5fb2d974e05de5249f8b87
[ "Apache-2.0" ]
null
null
null
tests/test_integration/test_postgraas_api.py
timohaas/postgraas_server
2d94e0262414cf860f5fb2d974e05de5249f8b87
[ "Apache-2.0" ]
null
null
null
tests/test_integration/test_postgraas_api.py
timohaas/postgraas_server
2d94e0262414cf860f5fb2d974e05de5249f8b87
[ "Apache-2.0" ]
null
null
null
import json import os import uuid import docker import pytest from mock import patch, MagicMock, Mock import postgraas_server.backends.docker.postgres_instance_driver as pid import postgraas_server.backends.postgres_cluster.postgres_cluster_driver as pgcd import postgraas_server.configuration as configuration from po...
39.940367
118
0.638509