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
762e327b70f7eced22d60d967a62c8b851af8650
2,546
py
Python
tensorflow/python/eager/executor.py
Stevanus-Christian/tensorflow
d44afcf5ca16c5d704c66f891b99eac804e7cd14
[ "Apache-2.0" ]
2
2016-09-27T05:37:33.000Z
2019-11-22T06:41:12.000Z
tensorflow/python/eager/executor.py
Stevanus-Christian/tensorflow
d44afcf5ca16c5d704c66f891b99eac804e7cd14
[ "Apache-2.0" ]
null
null
null
tensorflow/python/eager/executor.py
Stevanus-Christian/tensorflow
d44afcf5ca16c5d704c66f891b99eac804e7cd14
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
33.946667
80
0.718382
ea832bd531f29f83f740c0aed0eca94336f0a72c
110
py
Python
docs/sections/section3/notebook/solutions/sol4.py
lingcog/2019-CS109A
f1eaa62976fe989c3ad3f3ab4b8dd5d71574a2c3
[ "MIT" ]
442
2019-06-11T06:47:00.000Z
2022-03-12T11:19:31.000Z
docs/sections/section3/notebook/solutions/sol4.py
lelandroberts97/2019-CS109A
976da6b65c26fd3c5db285cbf9ec9cde92751a70
[ "MIT" ]
3
2019-09-23T17:32:51.000Z
2022-02-09T06:06:00.000Z
docs/sections/section3/notebook/solutions/sol4.py
lelandroberts97/2019-CS109A
976da6b65c26fd3c5db285cbf9ec9cde92751a70
[ "MIT" ]
486
2019-06-17T05:01:07.000Z
2022-03-13T20:30:44.000Z
titanic_train['sex_male'] = (titanic_train.sex == 'male').astype(int) titanic_train['sex_male'].value_counts()
55
69
0.754545
73ef57943fd9da84a30816aee2942ad11cf887d5
6,378
py
Python
app/main.py
jvanelteren/ds
45bab16fda74bc92180a6f6576f08fdd9aa96528
[ "MIT" ]
null
null
null
app/main.py
jvanelteren/ds
45bab16fda74bc92180a6f6576f08fdd9aa96528
[ "MIT" ]
null
null
null
app/main.py
jvanelteren/ds
45bab16fda74bc92180a6f6576f08fdd9aa96528
[ "MIT" ]
null
null
null
# %% from typing import List from fastapi import FastAPI, Request from pydantic import BaseModel import logging import pickle import random from itertools import cycle # this is absolutely essential to get rid of these *** cors errors from fastapi.middleware.cors import CORSMiddleware from fastapi import FastAPI, File,...
31.89
113
0.640326
1cf8e86d5990a3a069780102f01640271727535c
1,468
py
Python
LINETCR/Api/Poll.py
Kaneki711/Skyteam
e3203a218780eee2a7820866d59b014e04c0a975
[ "MIT" ]
4
2018-02-24T19:03:26.000Z
2020-03-28T13:22:25.000Z
LINETCR/Api/Poll.py
Kaneki711/Skyteam
e3203a218780eee2a7820866d59b014e04c0a975
[ "MIT" ]
null
null
null
LINETCR/Api/Poll.py
Kaneki711/Skyteam
e3203a218780eee2a7820866d59b014e04c0a975
[ "MIT" ]
1
2020-03-28T13:22:28.000Z
2020-03-28T13:22:28.000Z
import os, sys, time path = os.path.join(os.path.dirname(__file__), '../lib/') sys.path.insert(0, path) from thrift.transport import THttpClient from thrift.protocol import TCompactProtocol from curve import LineService from curve.ttypes import * class Poll: client = None auth_query_path = "/api/v4/TalkService...
27.185185
99
0.662125
851ec94c887dba62d5c713b3d3a4b1c95240c925
1,010
py
Python
isi_sdk_8_1_1/test/test_event_channel_extended_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_1/test/test_event_channel_extended_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_1/test/test_event_channel_extended_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 6 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_1_1 from i...
24.634146
115
0.736634
e4c1e3083842d5032b3ca8a85748dd08d84728ce
8,505
py
Python
setup.py
macdaliot/stix-shifter
4f2850269cec213fd31a27c36bb4df45ed693087
[ "Apache-2.0" ]
null
null
null
setup.py
macdaliot/stix-shifter
4f2850269cec213fd31a27c36bb4df45ed693087
[ "Apache-2.0" ]
null
null
null
setup.py
macdaliot/stix-shifter
4f2850269cec213fd31a27c36bb4df45ed693087
[ "Apache-2.0" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.absp...
42.954545
225
0.675367
4376fbfd72ad7fa3de5129db0df9d5ef4e18aa58
15,861
py
Python
capsulenet-onehot-opt.py
lauromoraes/CapsNet-promoter
9b08912648ff5d58a11ebb42225d9ad9851c61ac
[ "MIT" ]
2
2021-11-08T16:21:56.000Z
2022-03-07T01:49:26.000Z
capsulenet-onehot-opt.py
lauromoraes/CapsNet-promoter
9b08912648ff5d58a11ebb42225d9ad9851c61ac
[ "MIT" ]
null
null
null
capsulenet-onehot-opt.py
lauromoraes/CapsNet-promoter
9b08912648ff5d58a11ebb42225d9ad9851c61ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Keras implementation of CapsNet in Hinton's paper Dynamic Routing Between Capsules. Usage: python CapsNet.py python CapsNet.py --epochs 100 python CapsNet.py --epochs 100 --num_routing 3 ... ... """ import os import numpy as np import pandas as pd np.random.s...
40.256345
162
0.660173
f5f647035ddba3705858201b79ac49b7a209fff2
3,629
py
Python
unet/module.py
gaungalif/unet.pytorch
5b03105d58418fef37f020e1e7aeff65eb9accf6
[ "Apache-2.0" ]
null
null
null
unet/module.py
gaungalif/unet.pytorch
5b03105d58418fef37f020e1e7aeff65eb9accf6
[ "Apache-2.0" ]
null
null
null
unet/module.py
gaungalif/unet.pytorch
5b03105d58418fef37f020e1e7aeff65eb9accf6
[ "Apache-2.0" ]
null
null
null
import pytorch_lightning as pl from pytorch_lightning.metrics import functional as FM import torch.optim as optim import torchmetrics from unet.base import * class UNetEncoder(nn.Module): def __init__(self, in_chan, start_feat=64): super(UNetEncoder, self).__init__() self.out_chan = start_feat...
32.990909
87
0.633232
2c86a353ed287b3f1d738341b3af803ef567a0a0
2,611
py
Python
examples/experiments/calm-textgame/drrn/memory.py
qxcv/jiminy-cricket
1c5469549f746a2b84cf0724f6e154a4c141187b
[ "MIT" ]
11
2021-09-16T20:24:56.000Z
2022-02-18T21:28:58.000Z
examples/experiments/calm-textgame/drrn/memory.py
qxcv/jiminy-cricket
1c5469549f746a2b84cf0724f6e154a4c141187b
[ "MIT" ]
null
null
null
examples/experiments/calm-textgame/drrn/memory.py
qxcv/jiminy-cricket
1c5469549f746a2b84cf0724f6e154a4c141187b
[ "MIT" ]
4
2021-09-23T20:59:47.000Z
2022-03-30T00:02:23.000Z
from collections import namedtuple import random State = namedtuple('State', ('obs', 'description', 'inventory', 'state', 'raw_state', 'env_hash')) Transition = namedtuple('Transition', ('state', 'act', 'act_string', 'reward', 'next_state', 'next_acts', 'poss_acts', 'done')) class ReplayMemory(object): def __ini...
38.970149
127
0.646496
9ea5644be63bde0665977867f6003194d59dffba
1,087
py
Python
challenges/left_join/conftest.py
asakatida/data-structures-and-algorithms.py
587d1a66a6c15a3c7d7786275608f065687e1810
[ "MIT" ]
null
null
null
challenges/left_join/conftest.py
asakatida/data-structures-and-algorithms.py
587d1a66a6c15a3c7d7786275608f065687e1810
[ "MIT" ]
2
2020-09-24T13:13:49.000Z
2021-06-25T15:15:35.000Z
challenges/left_join/conftest.py
grandquista/data-structures-and-algorithms.py
587d1a66a6c15a3c7d7786275608f065687e1810
[ "MIT" ]
null
null
null
from pytest import fixture from data_structures.hash_table.hash_table import HashTable @fixture def abcd_table1(): """ """ hash_table = HashTable() hash_table.set("a", object()) hash_table.set("b", object()) hash_table.set("c", object()) hash_table.set("d", object()) return hash_table...
18.423729
59
0.602576
859ea97bbe8ab46dac889be8776cb864587cc582
5,883
py
Python
src/tabs/feelingLucky.py
EthanG45/CSE412-HAML-Project
e6f754b2de35079453c1bf5e8814dc5fe4b6741c
[ "MIT" ]
1
2022-02-09T05:42:43.000Z
2022-02-09T05:42:43.000Z
src/tabs/feelingLucky.py
EthanG45/CSE412-HAML-Project
e6f754b2de35079453c1bf5e8814dc5fe4b6741c
[ "MIT" ]
null
null
null
src/tabs/feelingLucky.py
EthanG45/CSE412-HAML-Project
e6f754b2de35079453c1bf5e8814dc5fe4b6741c
[ "MIT" ]
3
2020-11-28T23:06:03.000Z
2022-03-14T02:23:50.000Z
import PySimpleGUI as sg ### #### #### #### #### #### #### #### #### ### # FEELING LUCKY TABLE TABS # ### #### #### #### #### #### #### #### #### ### class FeelingLuckyTab: def __init__(self, db): self.db = db self.albumNameList = self.db.allAlbumName() self.artistNameLi...
49.436975
324
0.448241
6f5aa9da51a6c5fb34fa259803e60044a6e37fc9
299
py
Python
is_natural_number/__init__.py
adamzerella/is-natural-number
584bc21a5d5d01ace31b9d94b44d32409dec233f
[ "MIT" ]
null
null
null
is_natural_number/__init__.py
adamzerella/is-natural-number
584bc21a5d5d01ace31b9d94b44d32409dec233f
[ "MIT" ]
2
2019-05-03T14:55:22.000Z
2019-05-03T15:02:59.000Z
is_natural_number/__init__.py
adamzerella/is-natural-number
584bc21a5d5d01ace31b9d94b44d32409dec233f
[ "MIT" ]
null
null
null
""" Check if a value is a natural number. @param value: Value to check @param includeZero: Whether or not to consider 0 a natural number. @return: True or False """ def isNaturalNumber(value, includeZero=False): if( includeZero == True ): return int(value) >= 0 else: return int(value) >= 1
21.357143
66
0.705686
a6540cbf09fad1cf9ef14b36bbd7b4601ca3594b
14,236
py
Python
python/MLFQ/mlfq.py
yiGmMk/leetcode
a6479865dec2a685e0071a32d5593ea62502823d
[ "Apache-2.0" ]
null
null
null
python/MLFQ/mlfq.py
yiGmMk/leetcode
a6479865dec2a685e0071a32d5593ea62502823d
[ "Apache-2.0" ]
null
null
null
python/MLFQ/mlfq.py
yiGmMk/leetcode
a6479865dec2a685e0071a32d5593ea62502823d
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python from __future__ import print_function import sys from optparse import OptionParser import random # to make Python2 and Python3 act the same -- how dumb def random_seed(seed): try: random.seed(seed, version=1) except: random.seed(seed) return # finds the highest none...
38.16622
133
0.577269
3a02ccff847c39e1662fab63435cbb0e7e314559
1,007
py
Python
tfcontracts/combined_contract.py
vasiliykarasev/tfcontracts
14a1cff3ce01b01b32ebeb5e16bec6263cec8bb5
[ "MIT" ]
2
2021-01-19T18:34:31.000Z
2021-01-21T01:15:24.000Z
tfcontracts/combined_contract.py
vasiliykarasev/tfcontracts
14a1cff3ce01b01b32ebeb5e16bec6263cec8bb5
[ "MIT" ]
null
null
null
tfcontracts/combined_contract.py
vasiliykarasev/tfcontracts
14a1cff3ce01b01b32ebeb5e16bec6263cec8bb5
[ "MIT" ]
null
null
null
from . import contract from typing import Any, Callable, Sequence class CombinedContract(contract.FunctionContract): """A contract that internally represents and enforces a contract collection. Example: >>> @CombinedContract( >>> [ShapeContract(), DTypeContract(), ValueContract()]) >>> def my_fun...
34.724138
78
0.670308
85c9f11607315aa5833527c1dc66c19418c1960c
13,745
py
Python
scripts/RosettaTR/run_fold_and_dock.py
RosettaCommons/RFDesign
b404b8b2c57f89c047529c30259aeeb8f6012b61
[ "MIT" ]
45
2022-01-12T04:39:36.000Z
2022-03-25T12:33:36.000Z
scripts/RosettaTR/run_fold_and_dock.py
ZhuofanShen/RFDesign
9fea2bafbbb7cbf702c9884e8b3ec69ed50ff2f5
[ "MIT" ]
6
2022-01-15T16:48:39.000Z
2022-03-15T16:20:34.000Z
scripts/RosettaTR/run_fold_and_dock.py
ZhuofanShen/RFDesign
9fea2bafbbb7cbf702c9884e8b3ec69ed50ff2f5
[ "MIT" ]
10
2022-01-12T11:28:03.000Z
2022-03-30T11:36:41.000Z
import sys,os,json import tempfile import numpy as np from arguments_fold_and_dock import * from utils_fold_and_dock import * from pyrosetta import * from pyrosetta.rosetta.protocols.minimization_packing import MinMover from pyrosetta.teaching import * vdw_weight = {0: 3.0, 1: 5.0, 2: 10.0} rsr_dist_weight = {0: 3.0,...
37.760989
154
0.593889
0d89a27ff0f565778bd52afe868e944b82b033b0
6,432
py
Python
kuroganeHammerAPIAccess.py
fpdotmonkey/escargoon
b70d986dd3cd434dcce56cb567d48f096d18a4a0
[ "MIT" ]
null
null
null
kuroganeHammerAPIAccess.py
fpdotmonkey/escargoon
b70d986dd3cd434dcce56cb567d48f096d18a4a0
[ "MIT" ]
null
null
null
kuroganeHammerAPIAccess.py
fpdotmonkey/escargoon
b70d986dd3cd434dcce56cb567d48f096d18a4a0
[ "MIT" ]
null
null
null
import sys import urllib3 import json import requests # baseURL = 'https://api.kuroganehammer.com/api/characters/name/' # kingDedede = 'bayonetta/' # http = urllib3.PoolManager() # request = http.request('GET', baseURL + kingDedede + 'moves?game=ultimate') # data = json.loads(request.data.decode('utf-8')) # print...
31.072464
212
0.622357
f428f3fb17ed8931ca578fc729bb75b95b5d2e57
2,985
py
Python
cfn_model/model/ModelElement.py
jaymecd/cloudformation-validator
4f6951a002f338010b63fa3fbd23ddd8022558fa
[ "MIT" ]
7
2018-11-18T00:29:55.000Z
2020-05-18T13:23:37.000Z
cfn_model/model/ModelElement.py
jaymecd/cloudformation-validator
4f6951a002f338010b63fa3fbd23ddd8022558fa
[ "MIT" ]
1
2018-10-16T20:40:27.000Z
2018-10-17T02:18:05.000Z
cfn_model/model/ModelElement.py
jaymecd/cloudformation-validator
4f6951a002f338010b63fa3fbd23ddd8022558fa
[ "MIT" ]
2
2019-10-23T15:22:52.000Z
2020-06-22T07:00:45.000Z
from __future__ import absolute_import, division, print_function import inspect import sys def lineno(): """Returns the current line number in our program.""" return str(' - ModelElement - line number: '+str(inspect.currentframe().f_back.f_lineno)) class ModelElement(): """ Model element """ ...
27.385321
102
0.571189
f549d11c5fc3e8d0b2bdb10ec583da29dd31ba60
975
py
Python
exp/detect_coco/prep_input.py
ChopinSharp/info-ground
12fba3c478b806f2fe068faac81237fd0f458b80
[ "Apache-2.0" ]
56
2020-09-21T07:41:08.000Z
2022-01-10T13:28:36.000Z
exp/detect_coco/prep_input.py
ChopinSharp/info-ground
12fba3c478b806f2fe068faac81237fd0f458b80
[ "Apache-2.0" ]
5
2020-08-26T15:50:29.000Z
2022-01-04T07:53:07.000Z
exp/detect_coco/prep_input.py
ChopinSharp/info-ground
12fba3c478b806f2fe068faac81237fd0f458b80
[ "Apache-2.0" ]
15
2020-08-24T16:36:20.000Z
2022-01-17T12:51:45.000Z
import os import glob import click from tqdm import tqdm from data.coco.constants import coco_paths,CocoConstants import utils.io as io @click.command() @click.option( '--out_dir', type=str, default=coco_paths['proc_dir'], help='Output directory') @click.option( '--subset', type=click.Choice(...
23.780488
67
0.631795
1b2fba4674c78998e286a60e5a5f545fc70512f0
710
py
Python
python/cuml_evaluate.py
JayWu7/ModernCoreset
932e4984dcb54d48abdf751746d22c0b22b6f591
[ "MIT" ]
1
2021-07-17T07:08:00.000Z
2021-07-17T07:08:00.000Z
python/cuml_evaluate.py
JayWu7/ModernCoreset
932e4984dcb54d48abdf751746d22c0b22b6f591
[ "MIT" ]
null
null
null
python/cuml_evaluate.py
JayWu7/ModernCoreset
932e4984dcb54d48abdf751746d22c0b22b6f591
[ "MIT" ]
null
null
null
import sys from cuda_kmeans import cuml_kmeans_csv if __name__ == '__main__': if len(sys.argv) < 5: print('Parameters error!') print("Usage: 'python cuml_evaluate.py <original_data_path> <coreset_path> <coreset_weights_path> <cluster_size>'") exit() data_path = sys.argv[1] coreset_...
25.357143
123
0.678873
65c518f73ffa07225135b3cb1165a0dbffc912a8
36,323
py
Python
assemble.py
r-shekhar/ReanalysisUnifier
da2ac677c19ac85cdc4946c5523910591b512a98
[ "MIT" ]
null
null
null
assemble.py
r-shekhar/ReanalysisUnifier
da2ac677c19ac85cdc4946c5523910591b512a98
[ "MIT" ]
null
null
null
assemble.py
r-shekhar/ReanalysisUnifier
da2ac677c19ac85cdc4946c5523910591b512a98
[ "MIT" ]
1
2019-12-14T23:43:58.000Z
2019-12-14T23:43:58.000Z
#!/usr/bin/env python import pymongo MongoClient = pymongo.MongoClient from pprint import pprint import itertools import functools import multiprocessing from pprint import pprint import numpy as np import pandas as pd import netCDF4 import sys import datetime def year_month_iter(start_year, start_month, end_year, e...
59.938944
200
0.581064
fc72cf0ce0063d572117997cff0f5054cfb37bd5
3,570
py
Python
proj/archs/segmentation/baselines/net10a_isola.py
zqma/IIC
9d4e30b51535c6ca381389d9c22ce45be4d11883
[ "MIT" ]
null
null
null
proj/archs/segmentation/baselines/net10a_isola.py
zqma/IIC
9d4e30b51535c6ca381389d9c22ce45be4d11883
[ "MIT" ]
null
null
null
proj/archs/segmentation/baselines/net10a_isola.py
zqma/IIC
9d4e30b51535c6ca381389d9c22ce45be4d11883
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from proj.archs.cluster.vgg import VGGNet from proj.archs.segmentation.net10a import SegmentationNet10aTrunk, \ SegmentationNet10a from proj.utils.segmentation.baselines.general import get_patches __all__ = ["SegmentationNet10aIsola"] class Isol...
35
83
0.571989
2f2472662414ade8a4045d84e1e90c57e9721620
317
py
Python
leet/plan/algorithms/back_track/notes.py
manojkumar-github/DataStructures-DynamicProgramming-in-Python-JAVA-Cplusplus
16722a60c4c744ad3d240469b28f5d6ab6e9c25d
[ "MIT" ]
null
null
null
leet/plan/algorithms/back_track/notes.py
manojkumar-github/DataStructures-DynamicProgramming-in-Python-JAVA-Cplusplus
16722a60c4c744ad3d240469b28f5d6ab6e9c25d
[ "MIT" ]
null
null
null
leet/plan/algorithms/back_track/notes.py
manojkumar-github/DataStructures-DynamicProgramming-in-Python-JAVA-Cplusplus
16722a60c4c744ad3d240469b28f5d6ab6e9c25d
[ "MIT" ]
null
null
null
#!/usr/bin.env python # Copyright (C) Pearson Assessments - 2020. All Rights Reserved. # Proprietary - Use with Pearson Written Permission Only """ 1) Solving the problem RECURSIVELY 2) by trying to build solution incrementally one piece at a time 3) removing those solutions that fail to satisfy the constraint """
31.7
64
0.769716
6e4cb09e99c6dac6917cab70a0d8baa5b1b8f0bb
118
py
Python
python/testData/intentions/PyInvertIfConditionIntentionTest/commentsNoElseIf.py
Tasemo/intellij-community
50aeaf729b7073e91c7c77487a1f155e0dfe3fcd
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/PyInvertIfConditionIntentionTest/commentsNoElseIf.py
Tasemo/intellij-community
50aeaf729b7073e91c7c77487a1f155e0dfe3fcd
[ "Apache-2.0" ]
null
null
null
python/testData/intentions/PyInvertIfConditionIntentionTest/commentsNoElseIf.py
Tasemo/intellij-community
50aeaf729b7073e91c7c77487a1f155e0dfe3fcd
[ "Apache-2.0" ]
null
null
null
def func(): value = "not-none" # Is none <caret>if value is None: print("None") print(value)
14.75
28
0.525424
6292973d960b1f659a01574e9b17dbdadc2681d6
363
py
Python
dummyauthgate/__init__.py
d0p1s4m4/qwebirc
fc0f197fd514676a50ac2d082f81cda4b3274abe
[ "BSD-3-Clause" ]
null
null
null
dummyauthgate/__init__.py
d0p1s4m4/qwebirc
fc0f197fd514676a50ac2d082f81cda4b3274abe
[ "BSD-3-Clause" ]
49
2020-02-10T11:20:58.000Z
2021-07-12T11:15:53.000Z
dummyauthgate/__init__.py
d0p1s4m4/qwebirc
fc0f197fd514676a50ac2d082f81cda4b3274abe
[ "BSD-3-Clause" ]
null
null
null
class DummyImplementation(object): def __init__(self, *args, **kwargs): pass def __getattr__(self, *args, **kwargs): raise Exception("Not implemented.") def login_optional(self, *args, **kwargs): return None @classmethod def get_session_data(self, *args, **kwargs): ...
21.352941
48
0.639118
6d5315882c8cf98c4f784900579bfb73790e241a
3,271
py
Python
basex/common/cryptutils.py
yinziyan1206/x-base
dc74124ad9b07b799ef03917a0e9a882a062ac40
[ "BSD-2-Clause" ]
null
null
null
basex/common/cryptutils.py
yinziyan1206/x-base
dc74124ad9b07b799ef03917a0e9a882a062ac40
[ "BSD-2-Clause" ]
null
null
null
basex/common/cryptutils.py
yinziyan1206/x-base
dc74124ad9b07b799ef03917a0e9a882a062ac40
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'ziyan.yin' import hashlib import hmac from typing import Union import pybase64 as base64 def md5(content: Union[str, bytes, bytearray, memoryview]) -> str: """ md5 encrypt :param content: words :return: encrypted codes """ m = hashlib.md5() if isinstance(content, str): ...
23.364286
92
0.63528
e616cdd87fde5b0b6fb0e382e783b536d29cb5d1
2,649
py
Python
test/integration/test_text_to_speech_v1.py
Omegastick/python-sdk
568db5c5afabb3d99e2cb6be1afd69b08e2191d5
[ "Apache-2.0" ]
null
null
null
test/integration/test_text_to_speech_v1.py
Omegastick/python-sdk
568db5c5afabb3d99e2cb6be1afd69b08e2191d5
[ "Apache-2.0" ]
null
null
null
test/integration/test_text_to_speech_v1.py
Omegastick/python-sdk
568db5c5afabb3d99e2cb6be1afd69b08e2191d5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import unittest import watson_developer_cloud import pytest import os @pytest.mark.skipif( os.getenv('VCAP_SERVICES') is None, reason='requires VCAP_SERVICES') class TestIntegrationTextToSpeechV1(unittest.TestCase): text_to_speech = None original_customizations = None created_customizat...
37.842857
79
0.679124
c9e2439bdc07bb8ccd877e1b6e6d80e521116b94
526
py
Python
wheat/types/end_of_slot_bundle.py
grayfallstown/wheat-blockchain
f391cdd30a0cbcdb2adf4439a25581fd28b42c1f
[ "Apache-2.0" ]
15
2021-07-12T14:27:42.000Z
2022-02-09T04:32:44.000Z
wheat/types/end_of_slot_bundle.py
grayfallstown/wheat-blockchain
f391cdd30a0cbcdb2adf4439a25581fd28b42c1f
[ "Apache-2.0" ]
21
2021-07-12T23:25:36.000Z
2021-10-29T23:19:55.000Z
wheat/types/end_of_slot_bundle.py
grayfallstown/wheat-blockchain
f391cdd30a0cbcdb2adf4439a25581fd28b42c1f
[ "Apache-2.0" ]
8
2021-07-12T13:15:19.000Z
2022-03-15T08:41:18.000Z
from dataclasses import dataclass from typing import Optional from wheat.types.blockchain_format.slots import ( ChallengeChainSubSlot, InfusedChallengeChainSubSlot, RewardChainSubSlot, SubSlotProofs, ) from wheat.util.streamable import Streamable, streamable @dataclass(frozen=True) @streamable class ...
26.3
67
0.819392
1f8462afb32dd78dc512dfe9b615e9b7688ada0e
12,626
py
Python
Sorting/sort_summary.py
alexgonzl/TreeMazeAnalyses2
9bd20328368a915a0d9b81c02ae7af37c5c0c839
[ "MIT" ]
null
null
null
Sorting/sort_summary.py
alexgonzl/TreeMazeAnalyses2
9bd20328368a915a0d9b81c02ae7af37c5c0c839
[ "MIT" ]
null
null
null
Sorting/sort_summary.py
alexgonzl/TreeMazeAnalyses2
9bd20328368a915a0d9b81c02ae7af37c5c0c839
[ "MIT" ]
null
null
null
import sys, os, json, datetime, getopt, shutil, filecmp from pathlib import Path import numpy as np import pandas as pd ## Fixed Parameters overwrite = 1 nTTs = 16 def get_session_clusters(session): ''' session = Path object indicating the directory of the session ''' assert session.e...
40.08254
121
0.500396
c6daa4015611f6bd971baba940dbfb6704af27fd
618
py
Python
secrets.py
skybohan/woodblock_weather
0bc1d34dd911a85bd064cc3565c5a0caa1fab6af
[ "MIT" ]
1
2022-03-27T20:48:34.000Z
2022-03-27T20:48:34.000Z
secrets.py
skybohan/woodblock_weather
0bc1d34dd911a85bd064cc3565c5a0caa1fab6af
[ "MIT" ]
null
null
null
secrets.py
skybohan/woodblock_weather
0bc1d34dd911a85bd064cc3565c5a0caa1fab6af
[ "MIT" ]
null
null
null
# This file is where you keep secret settings, passwords, and tokens! # If you put them in the code you risk committing that info or sharing it # which would be not great. So, instead, keep it all in this one file and # keep it a secret. secrets = { 'ssid' : 'Add SSID here', # Keep the two '' quotes ar...
47.538462
91
0.65534
d79cb67da6aa8139aa3d476207a9a6e90939c2f0
2,352
py
Python
tests/gamestonk_terminal/cryptocurrency/defi/test_llama_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
1
2022-03-19T23:53:38.000Z
2022-03-19T23:53:38.000Z
tests/gamestonk_terminal/cryptocurrency/defi/test_llama_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
tests/gamestonk_terminal/cryptocurrency/defi/test_llama_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
# IMPORTATION STANDARD import gzip import json # IMPORTATION THIRDPARTY import pandas as pd import pytest # IMPORTATION INTERNAL from gamestonk_terminal.cryptocurrency.defi import llama_model def filter_json_data(response): """To reduce cassette size.""" headers = response["headers"] if "FILTERED" in h...
25.021277
71
0.689626
da96623ab00cd38a6d8722f021b5967825c4ceb6
568
py
Python
server/model/Applications.py
alivcor/airavat
e319ea28f39a4c2480d35bdbce5b038f41c0de93
[ "MIT" ]
null
null
null
server/model/Applications.py
alivcor/airavat
e319ea28f39a4c2480d35bdbce5b038f41c0de93
[ "MIT" ]
2
2021-03-19T14:32:15.000Z
2021-03-19T14:49:29.000Z
server/model/Applications.py
alivcor/airavat
e319ea28f39a4c2480d35bdbce5b038f41c0de93
[ "MIT" ]
1
2021-11-08T10:08:33.000Z
2021-11-08T10:08:33.000Z
import sqlalchemy as db class Applications: def __init__(self, session): self.session = session self.applications = db.Table('AIRAVAT_APPLICATIONS', session.dbEngine.metadata, autoload=True, autoload_wi...
33.411765
70
0.582746
b164ded05335e92dcd49d133185e7634bbd529a5
3,287
py
Python
tests/test_tokenization_xlm.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
2
2020-11-30T11:30:40.000Z
2021-03-26T17:20:33.000Z
tests/test_tokenization_xlm.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
3
2021-06-08T23:15:29.000Z
2022-01-13T03:40:10.000Z
tests/test_tokenization_xlm.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
1
2020-03-19T06:01:53.000Z
2020-03-19T06:01:53.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
33.20202
94
0.624277
7e5cfd2dbd74458b411e27dfba7d8f40799c53a6
20,266
py
Python
djangocms_text_ckeditor/cms_plugins.py
toffi9/djangocms-text-ckeditor
175a1a444de8ca1ba4742196cb83150d45b5c505
[ "BSD-3-Clause" ]
null
null
null
djangocms_text_ckeditor/cms_plugins.py
toffi9/djangocms-text-ckeditor
175a1a444de8ca1ba4742196cb83150d45b5c505
[ "BSD-3-Clause" ]
null
null
null
djangocms_text_ckeditor/cms_plugins.py
toffi9/djangocms-text-ckeditor
175a1a444de8ca1ba4742196cb83150d45b5c505
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from distutils.version import LooseVersion import json import re import cms from cms.models import CMSPlugin from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from cms.utils.placeholder import get_toolbar_plugin_struct from cms.utils.urlutils import admin_reverse...
37.669145
108
0.662736
259782422f5c1e10b4608f85a75b4cae42b5790c
1,030
py
Python
Tutorial_Geral/kivymd_Binding_Input.py
LivioAlvarenga/Tutoriais_Kivy_KivyMD
b6225578e764eaf0312afafbb2f76dc06f92342d
[ "MIT" ]
null
null
null
Tutorial_Geral/kivymd_Binding_Input.py
LivioAlvarenga/Tutoriais_Kivy_KivyMD
b6225578e764eaf0312afafbb2f76dc06f92342d
[ "MIT" ]
null
null
null
Tutorial_Geral/kivymd_Binding_Input.py
LivioAlvarenga/Tutoriais_Kivy_KivyMD
b6225578e764eaf0312afafbb2f76dc06f92342d
[ "MIT" ]
null
null
null
from kivymd.app import MDApp from kivymd.uix.screen import Screen from kivymd.uix.button import MDRectangleFlatButton from kivy.lang import Builder from helpers import username_helper class DemoApp(MDApp): def build(self): self.theme_cls.primary_palette = "Green" screen = Screen() '''user...
31.212121
75
0.567961
fb16ec91683a444266bf53a15fbc65a56d394036
249
py
Python
env/Lib/site-packages/alembic/__init__.py
theXtroyer1221/Climate-luft
37eabdd78c15172ea980b59d1aff65d8628cb845
[ "MIT" ]
null
null
null
env/Lib/site-packages/alembic/__init__.py
theXtroyer1221/Climate-luft
37eabdd78c15172ea980b59d1aff65d8628cb845
[ "MIT" ]
null
null
null
env/Lib/site-packages/alembic/__init__.py
theXtroyer1221/Climate-luft
37eabdd78c15172ea980b59d1aff65d8628cb845
[ "MIT" ]
null
null
null
import sys from . import context # noqa from . import op # noqa from .runtime import environment from .runtime import migration __version__ = "1.5.5" sys.modules["alembic.migration"] = migration sys.modules["alembic.environment"] = environment
20.75
48
0.75502
c1855c39ecb0b1a65ac4affa7ee1f5a7714a43ad
198
py
Python
tech_project/lib/python2.7/site-packages/cms/test_utils/project/sampleapp/urls_example.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
5
2015-03-08T08:46:58.000Z
2021-11-16T12:34:15.000Z
cms/test_utils/project/sampleapp/urls_example.py
thisisalamin/django-cms
eeb1e4712b3866e243daf800c142e2199e4be9df
[ "BSD-3-Clause" ]
102
2020-08-11T23:57:18.000Z
2022-03-12T00:46:00.000Z
cms/test_utils/project/sampleapp/urls_example.py
thisisalamin/django-cms
eeb1e4712b3866e243daf800c142e2199e4be9df
[ "BSD-3-Clause" ]
4
2019-01-26T09:58:37.000Z
2019-06-24T08:12:43.000Z
# -*- coding: utf-8 -*- from django.conf.urls import url from ..placeholderapp import views app_name = 'example_app' urlpatterns = [ url(r'^example/$', views.example_view, name="example"), ]
18
59
0.681818
1fa3c155294dc1b93586c6ebd3b6e0001c99e16c
18,685
py
Python
allennlp/data/tokenizers/pretrained_transformer_tokenizer.py
lgessler/allennlp
0e64b4d3281808fac0fe00cc5b56e5378dbb7615
[ "Apache-2.0" ]
null
null
null
allennlp/data/tokenizers/pretrained_transformer_tokenizer.py
lgessler/allennlp
0e64b4d3281808fac0fe00cc5b56e5378dbb7615
[ "Apache-2.0" ]
71
2020-10-19T13:06:15.000Z
2022-03-29T13:04:06.000Z
allennlp/data/tokenizers/pretrained_transformer_tokenizer.py
lgessler/allennlp
0e64b4d3281808fac0fe00cc5b56e5378dbb7615
[ "Apache-2.0" ]
null
null
null
import copy import logging from typing import Any, Dict, List, Optional, Tuple, Iterable from overrides import overrides from transformers import PreTrainedTokenizer from allennlp.common.util import sanitize_wordpiece from allennlp.data.tokenizers.token import Token from allennlp.data.tokenizers.tokenizer import Toke...
41.988764
161
0.635001
988a6149a1cc6b8e004e1de4babf861129860ae6
82,409
py
Python
src/transformers/models/bert/modeling_tf_bert.py
MarcelGM/transformers
aad1d9b6d5c58fd974618ac0aead1c5bd1119467
[ "Apache-2.0" ]
101
2021-12-22T00:03:51.000Z
2022-03-30T07:39:09.000Z
src/transformers/models/bert/modeling_tf_bert.py
MarcelGM/transformers
aad1d9b6d5c58fd974618ac0aead1c5bd1119467
[ "Apache-2.0" ]
13
2020-10-13T11:41:11.000Z
2022-02-16T14:13:31.000Z
src/transformers/models/bert/modeling_tf_bert.py
MarcelGM/transformers
aad1d9b6d5c58fd974618ac0aead1c5bd1119467
[ "Apache-2.0" ]
30
2021-04-30T07:11:22.000Z
2022-03-15T19:34:58.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
44.258324
190
0.66676
8350b6174a829f3127ca8d18d1a9221d26ffe8de
1,579
py
Python
setup.py
jchaykow/dgmnet
7b8e8b46094d7199a64b81e7f4585c3f6eeaeee0
[ "MIT" ]
2
2021-02-01T21:48:29.000Z
2021-02-01T21:51:15.000Z
setup.py
jchaykow/dgmnet
7b8e8b46094d7199a64b81e7f4585c3f6eeaeee0
[ "MIT" ]
null
null
null
setup.py
jchaykow/dgmnet
7b8e8b46094d7199a64b81e7f4585c3f6eeaeee0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.md').read() #history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ 'numpy', 'pandas', 'scikit-...
26.762712
77
0.602913
36207c4f3a167e80016784752014f428f7c167d2
19,350
py
Python
randobot/handler.py
fenhl/rslbot
269f5bdd23c4d9f0d24fc85156e344506dda4f34
[ "MIT" ]
null
null
null
randobot/handler.py
fenhl/rslbot
269f5bdd23c4d9f0d24fc85156e344506dda4f34
[ "MIT" ]
9
2020-12-12T10:55:30.000Z
2022-03-14T20:57:35.000Z
randobot/handler.py
fenhl/rslbot
269f5bdd23c4d9f0d24fc85156e344506dda4f34
[ "MIT" ]
null
null
null
import sys import asyncio import contextlib import datetime import json import pathlib import re import subprocess import lazyjson # https://github.com/fenhl/lazyjson from racetime_bot import RaceHandler, monitor_cmd, can_moderate, can_monitor DATA = lazyjson.File('/usr/local/share/fenhl/ootr-web.json') GEN_LOCK = ...
43.977273
228
0.566253
a00870bd6815d280cfdfac39778537425e5636ce
543
py
Python
nscl/configs/common.py
K-A-R-T/DCL-Release
44c6e1234af63daa1ae32302eef5981651a5a0aa
[ "MIT" ]
343
2019-04-29T03:24:27.000Z
2022-03-31T19:25:08.000Z
nscl/configs/common.py
K-A-R-T/DCL-Release
44c6e1234af63daa1ae32302eef5981651a5a0aa
[ "MIT" ]
15
2019-06-07T02:23:46.000Z
2021-06-14T15:51:10.000Z
nscl/configs/common.py
K-A-R-T/DCL-Release
44c6e1234af63daa1ae32302eef5981651a5a0aa
[ "MIT" ]
92
2019-04-29T07:32:56.000Z
2022-02-01T22:35:57.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : common.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 09/29/2018 # # This file is part of NSCL-PyTorch. # Distributed under terms of the MIT license. """ Common configuration. """ from jacinle.utils.container import G __all__ = ['make_b...
15.970588
45
0.651934
30cdc675ec0b06ccfc9586c95f417e96d111488b
427
py
Python
accounts/serializer.py
nephsir/daraja
0deb9913ab863eadfc1a27f5e292b220f86a1bb7
[ "MIT" ]
null
null
null
accounts/serializer.py
nephsir/daraja
0deb9913ab863eadfc1a27f5e292b220f86a1bb7
[ "MIT" ]
null
null
null
accounts/serializer.py
nephsir/daraja
0deb9913ab863eadfc1a27f5e292b220f86a1bb7
[ "MIT" ]
null
null
null
from dataclasses import field, fields from pyexpat import model from rest_framework import serializers from .models import Loan from mpesa_api.models import mpesa_response class LoanSerializer(serializers.ModelSerializer): class Meta: model = Loan fields = ('__all__') class MpesaSerializer(serial...
26.6875
51
0.728337
156030eaba9703ddb9873d89851b09d8b0603ca2
661
py
Python
actors/components/inventory.py
Catsuko/Westward
3c04df668f7e04ca45e622017ffa9dfe6d3c242c
[ "MIT" ]
3
2019-12-22T22:44:43.000Z
2020-02-11T11:14:10.000Z
actors/components/inventory.py
Catsuko/Westward
3c04df668f7e04ca45e622017ffa9dfe6d3c242c
[ "MIT" ]
null
null
null
actors/components/inventory.py
Catsuko/Westward
3c04df668f7e04ca45e622017ffa9dfe6d3c242c
[ "MIT" ]
null
null
null
from actors.components.component import Component class Inventory(Component): def __init__(self, items=frozenset()): self.items = items def update(self): return Inventory(frozenset([item.update() for item in iter(self.items)])) def use_primary(self, actor, root, target, tile): i...
34.789474
95
0.677761
f24df63b1b5b5cc90fc48e2dfa3d7e74907e87e3
1,055
py
Python
Leetcode/Python/_547.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
Leetcode/Python/_547.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
Leetcode/Python/_547.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
class Union: def __init__(self, size): self.root = [i for i in range(size)] self.rank = [1] * size self.count = size def find(self, x): if x == self.root[x]: return x self.root[x] = self.find(self.root[x]) return self.root[x] def union(self, x, y...
30.142857
55
0.495735
535eff964f91e4724e144287fbc6f05f59d2d0ea
3,214
py
Python
tests/test-update.py
beckjake/python3-hglib
0e04d5bcbc1dd20dd54d284339a425abeb74ad1d
[ "MIT" ]
null
null
null
tests/test-update.py
beckjake/python3-hglib
0e04d5bcbc1dd20dd54d284339a425abeb74ad1d
[ "MIT" ]
null
null
null
tests/test-update.py
beckjake/python3-hglib
0e04d5bcbc1dd20dd54d284339a425abeb74ad1d
[ "MIT" ]
1
2020-01-06T08:20:24.000Z
2020-01-06T08:20:24.000Z
from . import common from hglib import error class test_update(common.basetest): def setUp(self): common.basetest.setUp(self) self.append('a', 'a') self.rev0, self.node0 = self.client.commit('first', addremove=True) self.append('a', 'a') self.rev1, self.node1 = self.client.c...
32.464646
81
0.555694
7dd92e2e2a53e0736b730706bb1691ca0e7af0a7
118
py
Python
{{cookiecutter.project_name}}/tests/test_{{cookiecutter.package_name}}.py
clbarnes/python-template
c7ad6b779f8e6aae8c5bf9049aa4ebe14e42c115
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/tests/test_{{cookiecutter.package_name}}.py
clbarnes/python-template
c7ad6b779f8e6aae8c5bf9049aa4ebe14e42c115
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/tests/test_{{cookiecutter.package_name}}.py
clbarnes/python-template
c7ad6b779f8e6aae8c5bf9049aa4ebe14e42c115
[ "MIT" ]
null
null
null
def test_importable(): import {{cookiecutter.package_name}} assert {{cookiecutter.package_name}}.__version__
23.6
52
0.754237
b4362d811283e4e9df29cc315c7bb2308ce1319a
290
py
Python
devolpmentscratch/sampletest.py
catatonicpig/ModCal
bd792e16cbb343ce330905feeb00e2e2b045653d
[ "BSD-3-Clause" ]
2
2020-11-16T17:34:48.000Z
2021-01-15T19:17:33.000Z
devolpmentscratch/sampletest.py
catatonicpig/ModCal
bd792e16cbb343ce330905feeb00e2e2b045653d
[ "BSD-3-Clause" ]
null
null
null
devolpmentscratch/sampletest.py
catatonicpig/ModCal
bd792e16cbb343ce330905feeb00e2e2b045653d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Header here.""" import numpy as np def borehole_model(x, theta): """Given x and theta, return matrix of [row x] times [row theta] of values.""" return f def borehole_true(x): """Given x, return matrix of [row x] times 1 of values.""" return y
20.714286
82
0.62069
260c684d4d8d12178613ff0fe5120cd554875771
3,513
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/features/enterprise_support/tests/factories.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/features/enterprise_support/tests/factories.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/features/enterprise_support/tests/factories.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Factoryboy factories. """ from uuid import UUID import factory from faker import Factory as FakerFactory from enterprise.models import ( EnterpriseCourseEnrollment, EnterpriseCustomer, EnterpriseCustomerBrandingConfiguration, EnterpriseCustomerIdentityProvider, EnterpriseCustomerUser, ) from...
29.771186
115
0.738685
b7a8c483857351b5e577c2bcfad6fe425cb99e71
3,085
py
Python
setup.py
iatechicken/fhir.resources
8ccb21aaa00755c6d230522bd7ddb655155b4bcb
[ "BSD-3-Clause" ]
null
null
null
setup.py
iatechicken/fhir.resources
8ccb21aaa00755c6d230522bd7ddb655155b4bcb
[ "BSD-3-Clause" ]
null
null
null
setup.py
iatechicken/fhir.resources
8ccb21aaa00755c6d230522bd7ddb655155b4bcb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open("README.rst") as readme_file: readme = readme_file.read() with open("HISTORY.rst") as history_file: history = history_file.read() requirements = ["pydantic[email]>=1.7.2"] setup_requ...
31.479592
81
0.624635
3eb895e821fb22d4a50a89f3135556f8f2e16071
1,258
py
Python
kern_sym_test.py
rlluo1/SET
20625a3fa528b75a1ffe8794ecb9b9d0557d363f
[ "NASA-1.3" ]
10
2018-01-08T22:09:24.000Z
2020-12-16T00:57:06.000Z
kern_sym_test.py
rlluo1/SET
20625a3fa528b75a1ffe8794ecb9b9d0557d363f
[ "NASA-1.3" ]
7
2018-01-09T20:05:51.000Z
2019-09-05T19:12:49.000Z
kern_sym_test.py
rlluo1/SET
20625a3fa528b75a1ffe8794ecb9b9d0557d363f
[ "NASA-1.3" ]
5
2018-08-07T15:18:09.000Z
2021-05-12T19:33:52.000Z
from osgeo import gdal #from osgeo import gdal_array import numpy as np from PIL import Image #from matplotlib import pyplot as plt #tests whether north, south kernels match (they should) fp000 = "kernel_30.23151_1.0_80.0_0.0.tif" fp180 = "kernel_30.23151_1.0_80.0_-180.0.tif" ds_k000 = gdal.Open(fp000) ds_k180 = gdal...
26.765957
55
0.754372
f0111e0c249c2e3c63fa028777cfd2344f2170a1
4,414
py
Python
ivi/extra/dcpwr.py
lude-ma/python-ivi
f62907a2922d5fc98e0a524ef6ddbaa62791ff14
[ "MIT" ]
1
2017-09-09T06:04:14.000Z
2017-09-09T06:04:14.000Z
ivi/extra/dcpwr.py
lude-ma/python-ivi
f62907a2922d5fc98e0a524ef6ddbaa62791ff14
[ "MIT" ]
null
null
null
ivi/extra/dcpwr.py
lude-ma/python-ivi
f62907a2922d5fc98e0a524ef6ddbaa62791ff14
[ "MIT" ]
null
null
null
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2014 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the righ...
37.726496
98
0.59266
f92096aa55de377aa191c4ba350bb50f173398c3
4,545
py
Python
botenv/lib/python3.9/site-packages/telegram/inline/inlinequeryresultcachedaudio.py
0xtuytuy/unit-crypto-ski-week-poap-bot
9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1
[ "MIT" ]
null
null
null
botenv/lib/python3.9/site-packages/telegram/inline/inlinequeryresultcachedaudio.py
0xtuytuy/unit-crypto-ski-week-poap-bot
9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1
[ "MIT" ]
null
null
null
botenv/lib/python3.9/site-packages/telegram/inline/inlinequeryresultcachedaudio.py
0xtuytuy/unit-crypto-ski-week-poap-bot
9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2022 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
45
99
0.690869
5f94aaa8261f98a4cb1cff84f8ca601fd0903d99
5,398
py
Python
Basic_ML/Sentiment_Analysis/combined.py
jrclimer/Projects
6023f8309685d1a273d7e89993863c89ad85dfb5
[ "MIT" ]
27
2016-11-18T11:15:58.000Z
2021-02-26T05:46:37.000Z
Basic_ML/Sentiment_Analysis/combined.py
imsrgadich/Projects_shang
a9d4395a98a79fb0a700a99168cd358ab7494fdf
[ "MIT" ]
1
2022-01-21T16:09:40.000Z
2022-01-21T16:30:10.000Z
Basic_ML/Sentiment_Analysis/combined.py
imsrgadich/Projects_shang
a9d4395a98a79fb0a700a99168cd358ab7494fdf
[ "MIT" ]
22
2016-11-27T06:02:26.000Z
2021-09-22T13:40:55.000Z
import pandas as pd import numpy as np import csv, collections from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.naive_bayes import MultinomialNB from sklearn.linear_model import LogisticRegression import nltk.stem import nltk import sys pos = pd.read_csv('positive.gz',sep=',',header=0) neg = pd...
36.972603
113
0.662838
b7f24bb5ae6ccfdc333eeb2595a6efaf58941b38
2,935
py
Python
api/user/profile.py
Kingtous/Flask-CodeRunningServer
9613903ba70a6106cb393da45c083c854646969e
[ "MIT" ]
3
2020-01-26T10:42:18.000Z
2020-10-18T15:29:03.000Z
api/user/profile.py
Kingtous/Flask-CodeRunningServer
9613903ba70a6106cb393da45c083c854646969e
[ "MIT" ]
null
null
null
api/user/profile.py
Kingtous/Flask-CodeRunningServer
9613903ba70a6106cb393da45c083c854646969e
[ "MIT" ]
1
2020-10-18T15:29:04.000Z
2020-10-18T15:29:04.000Z
from flask import request, g from flask_restful import Resource from app.database_models import User from app_config import auth from app_utils import AppUtils from common.constants.response_code import ResponseClass, ResponseCode # 修改资料,只能改昵称和头像 class AlterProfile(Resource): @auth.login_required def post(s...
34.127907
104
0.547189
443a026c744c5193e6ebaada5893073e70eeb084
598
py
Python
tests/sphinx_xref/conf.py
tbeadle/recommonmark
98200fc475543b18d90db62fe771bfc092ae1b98
[ "MIT" ]
240
2015-07-28T18:39:34.000Z
2019-06-26T20:54:26.000Z
tests/sphinx_xref/conf.py
tbeadle/recommonmark
98200fc475543b18d90db62fe771bfc092ae1b98
[ "MIT" ]
140
2015-07-29T06:22:10.000Z
2019-06-28T14:01:50.000Z
tests/sphinx_xref/conf.py
tbeadle/recommonmark
98200fc475543b18d90db62fe771bfc092ae1b98
[ "MIT" ]
199
2015-07-29T06:10:19.000Z
2019-06-21T19:03:00.000Z
# -*- coding: utf-8 -*- from recommonmark.parser import CommonMarkParser extensions = 'sphinx.ext.autosectionlabel'] autosectionlabel_prefix_document = True templates_path = ['_templates'] source_suffix = '.md' source_parsers = { '.md': CommonMarkParser } master_doc = 'index' project = u'sphinxproj' copyright = u'2...
23
48
0.745819
582d427acb28a9daa9c84ffc67f06458c2e33073
219
py
Python
Django Projects/SecureWebsite/secure_app/urls.py
Phantom586/My_Projects
117f684302ddb53f8f840545fa5d429fa2f37147
[ "MIT" ]
null
null
null
Django Projects/SecureWebsite/secure_app/urls.py
Phantom586/My_Projects
117f684302ddb53f8f840545fa5d429fa2f37147
[ "MIT" ]
null
null
null
Django Projects/SecureWebsite/secure_app/urls.py
Phantom586/My_Projects
117f684302ddb53f8f840545fa5d429fa2f37147
[ "MIT" ]
2
2020-07-04T14:10:30.000Z
2020-11-07T11:24:19.000Z
from django.urls import path from secure_app import views app_name = 'secure_app' urlpatterns = [ path('register/', views.register, name='register'), path('user_login/', views.user_login, name='user_login'), ]
24.333333
61
0.721461
efbca0dd7d004aeb3d5d26a4e06b9fb104bdaed0
1,606
py
Python
zygoat/utils/files.py
Ian-MacLeod/zygoat
83773fdebf8cddf06903c2d32bd575e33e23e252
[ "MIT" ]
null
null
null
zygoat/utils/files.py
Ian-MacLeod/zygoat
83773fdebf8cddf06903c2d32bd575e33e23e252
[ "MIT" ]
1
2020-02-25T13:06:02.000Z
2020-02-25T13:06:02.000Z
zygoat/utils/files.py
kborer/zygoat
638bbdb2bc8b39510c03c77d968e94aadf5ae51b
[ "MIT" ]
null
null
null
from contextlib import contextmanager import os import logging from click import style log = logging.getLogger() def walk_up(): """ Generator expression to provide paths up to the system root Does not work on Windows, but then again, neither does Zygoat """ path = os.getcwd() while True: ...
22.305556
99
0.630137
e476fcd6d11c59c7dd308f6f3c93f5e6b9057004
10,012
py
Python
EHR_Only/GBT/Death_FAMD.py
shreyaskar123/EHR-Discontinuity
8d2becfd784b9cbe697f8308d60023701971ef5d
[ "MIT" ]
null
null
null
EHR_Only/GBT/Death_FAMD.py
shreyaskar123/EHR-Discontinuity
8d2becfd784b9cbe697f8308d60023701971ef5d
[ "MIT" ]
null
null
null
EHR_Only/GBT/Death_FAMD.py
shreyaskar123/EHR-Discontinuity
8d2becfd784b9cbe697f8308d60023701971ef5d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd medicare = pd.read_csv("/netapp2/home/se197/data/CMS/Data/medicare.csv") # In[ ]: # In[1]: get_ipython().system('pip install xgboost') # In[2]: train_set = medicare[medicare.Hospital != 'BWH'] # MGH; n = 204014 validation_set = medicare[...
32.718954
169
0.723232
ded81f4729ad91b8f22919c07d805a06a6e001fd
4,587
py
Python
mnist/rde.py
jmaces/fw-rde
7ae126eed6c7ad2acff551fcff834ee0a96b4c71
[ "MIT" ]
3
2021-11-22T19:40:06.000Z
2022-01-27T08:57:34.000Z
mnist/rde.py
ZIB-IOL/fw-rde
7ae126eed6c7ad2acff551fcff834ee0a96b4c71
[ "MIT" ]
null
null
null
mnist/rde.py
ZIB-IOL/fw-rde
7ae126eed6c7ad2acff551fcff834ee0a96b4c71
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import tensorflow.keras.backend as K from models import load_model, load_adfmodel import instances # GENERAL PARAMETERS MODE = 'diag' # 'diag', 'half', or 'full' RANK = 784 # only affects 'half' mode IMG_SHAPE = [28, 2...
31.854167
79
0.566165
ee1efe703de04a4840f3df4ded34039f1fb179d9
3,522
py
Python
aiida/orm/utils/remote.py
borellim/aiida_core
eebef392c81e8b130834a92e1d7abf5e2e30b3ce
[ "BSD-2-Clause" ]
1
2019-03-15T10:37:53.000Z
2019-03-15T10:37:53.000Z
aiida/orm/utils/remote.py
odarbelaeze/aiida_core
934b4ccdc73a993f2a6656caf516500470e3da08
[ "BSD-2-Clause" ]
null
null
null
aiida/orm/utils/remote.py
odarbelaeze/aiida_core
934b4ccdc73a993f2a6656caf516500470e3da08
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
37.073684
110
0.636286
92221a16983961dbc16d8006c9deb115184bee1e
247
py
Python
dress/helper/generator_password_helper.py
richard-ma/dress
86e892673635319c0a1860edb33cdba7ed22a7fb
[ "MIT" ]
2
2019-10-23T09:06:47.000Z
2019-11-07T12:52:42.000Z
dress/helper/generator_password_helper.py
richard-ma/dress
86e892673635319c0a1860edb33cdba7ed22a7fb
[ "MIT" ]
4
2017-12-28T01:44:42.000Z
2017-12-31T13:08:18.000Z
dress/helper/generator_password_helper.py
richard-ma/dress
86e892673635319c0a1860edb33cdba7ed22a7fb
[ "MIT" ]
2
2019-10-15T07:42:33.000Z
2019-10-24T06:49:22.000Z
import random def generator_password_helper(password_len): # fix #1 bash safety characters without escaping s = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ,._+:@%-" return "".join(random.sample(s, password_len))
30.875
81
0.773279
73ccfcd346cf5ca3480f25556f400858b28789c2
560
py
Python
problem_2.py
cconnerolson/aerospace_assignment_5
4b325cf7e5ad15dd7a58d24bea06d78dede15ffa
[ "MIT" ]
1
2020-11-28T05:15:54.000Z
2020-11-28T05:15:54.000Z
problem_2.py
cconnerolson/aerospace_assignment_5
4b325cf7e5ad15dd7a58d24bea06d78dede15ffa
[ "MIT" ]
null
null
null
problem_2.py
cconnerolson/aerospace_assignment_5
4b325cf7e5ad15dd7a58d24bea06d78dede15ffa
[ "MIT" ]
1
2020-11-28T05:15:57.000Z
2020-11-28T05:15:57.000Z
""" A large tank supplies helium through a conv-div nozzle to the atmosphere. Pressure in the tank remains constant at P_t = 8 MPa and temperature remains constant at T_t = 1000 K. There are no shock waves at the nozzle. The nozzle is designed to discharge at exit Mach number of 3.5 with exit area A_e = 100 mm². Fo...
29.473684
119
0.692857
0b0e032dbb428892d3a1932c438a1e7475eca13d
4,605
py
Python
src/uvm/base/uvm_topdown_phase.py
rodrigomelo9/uvm-python
e3127eba2cc1519a61dc6f736d862a8dcd6fce20
[ "Apache-2.0" ]
140
2020-01-18T00:14:17.000Z
2022-03-29T10:57:24.000Z
src/uvm/base/uvm_topdown_phase.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
24
2020-01-18T18:40:58.000Z
2021-03-25T17:39:07.000Z
src/uvm/base/uvm_topdown_phase.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
34
2020-01-18T12:22:59.000Z
2022-02-11T07:03:11.000Z
#---------------------------------------------------------------------- # Copyright 2007-2011 Mentor Graphics Corporation # Copyright 2007-2010 Cadence Design Systems, Inc. # Copyright 2010 Synopsys, Inc. # Copyright 2019 Tuomas Poikela (tpoikela) # All Rights Reserved Worldwide # # Licensed under the Apach...
36.259843
96
0.573073
70670f11e55afba7e0a7ed7fe0319d5a61bf025f
9,724
py
Python
Wsd2.py
pratipo/wsd
b1322dc5372cb09e46f601fecac0394ade3d4c76
[ "MIT" ]
null
null
null
Wsd2.py
pratipo/wsd
b1322dc5372cb09e46f601fecac0394ade3d4c76
[ "MIT" ]
null
null
null
Wsd2.py
pratipo/wsd
b1322dc5372cb09e46f601fecac0394ade3d4c76
[ "MIT" ]
null
null
null
#!/usr/bin/python # wsd project main script # hardware: ws2801 led strips + raspberry pi + internet adapter # software pulls twits from an 'admin' (twits and retwits) and # displays the last result through the led strip # Written by Pratipo.org, hightly based on Adafruit's IoT Pinter. MIT license. # MUST BE RUN AS...
33.881533
142
0.598828
b38a5ec55877db1c11f149d0a15cf8a996b68431
33,542
py
Python
bin/sa_haveibeenpwned/aob_py2/future/backports/misc.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
2
2020-08-17T07:52:48.000Z
2020-12-18T16:39:32.000Z
bin/sa_haveibeenpwned/aob_py3/future/backports/misc.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
5
2020-12-15T23:40:14.000Z
2022-02-23T15:43:18.000Z
bin/sa_haveibeenpwned/aob_py2/future/backports/misc.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
4
2019-05-16T09:57:33.000Z
2021-07-14T12:31:21.000Z
""" Miscellaneous function (re)definitions from the Py3.4+ standard library for Python 2.6/2.7. - math.ceil (for Python 2.7) - collections.OrderedDict (for Python 2.6) - collections.Counter (for Python 2.6) - collections.ChainMap (for all versions prior to Python 3.3) - itertools.count...
35.645058
98
0.556288
1b34f1346dd031c197f059b7ac504f54dc3988bb
4,158
py
Python
lleval.py
builtinnya/sevabot-plugins
236f8d13b516a3649626b11150ad5d88d3c729d1
[ "MIT" ]
1
2015-11-08T06:36:23.000Z
2015-11-08T06:36:23.000Z
lleval.py
builtinnya/sevabot-plugins
236f8d13b516a3649626b11150ad5d88d3c729d1
[ "MIT" ]
null
null
null
lleval.py
builtinnya/sevabot-plugins
236f8d13b516a3649626b11150ad5d88d3c729d1
[ "MIT" ]
null
null
null
#!/sevabot # -*- coding: utf-8 -*- """ Evaluator for lightweight programming languages using LLEval. LLEval is available at http://colabv6.dan.co.jp/lleval.html """ from __future__ import unicode_literals import logging import re import requests from requests.exceptions import RequestException from sevab...
22.475676
79
0.575998
bd9710c3860bcadf09a7bc885f570942cdc62f73
171
py
Python
tower.py
SAVHS/UnfortunateMisunderstanding
537841fc7dd168f071fc634c23ec33c86151498c
[ "Unlicense" ]
1
2021-12-12T05:13:42.000Z
2021-12-12T05:13:42.000Z
tower.py
SAVHS/UnfortunateMisunderstanding
537841fc7dd168f071fc634c23ec33c86151498c
[ "Unlicense" ]
null
null
null
tower.py
SAVHS/UnfortunateMisunderstanding
537841fc7dd168f071fc634c23ec33c86151498c
[ "Unlicense" ]
null
null
null
from panda3d.core import * class Tower(): def __init__(self, pos, health, tower="models/room_industrial"): self.tower = tower loader.loadModel(tower)
24.428571
68
0.672515
f894b6e2f29a33c30e9c17176c640c2ea09efb0c
1,750
py
Python
niscv_v2/experiments/simulation/kernel_cost.py
IanFla/Importance-Sampling
f2dd2164e95377d2cf025fcddd19b2592394e4d7
[ "Apache-2.0" ]
null
null
null
niscv_v2/experiments/simulation/kernel_cost.py
IanFla/Importance-Sampling
f2dd2164e95377d2cf025fcddd19b2592394e4d7
[ "Apache-2.0" ]
null
null
null
niscv_v2/experiments/simulation/kernel_cost.py
IanFla/Importance-Sampling
f2dd2164e95377d2cf025fcddd19b2592394e4d7
[ "Apache-2.0" ]
null
null
null
import numpy as np import scipy.stats as st from niscv_v2.basics.exp import Exp from niscv_v2.basics import utils from datetime import datetime as dt import pickle def experiment(dim, fun, size_est, sn, size_kn, ratio): mean = np.zeros(dim) target = lambda x: st.multivariate_normal(mean=mean).pdf(x) propo...
29.166667
115
0.648571
c9bb824f886e1198704a63e94a6a2b810286fcc6
11,504
py
Python
models/resnet.py
Hilbert70403/Infrared-Small-Target
0b7bddc13ed3b2362735ea858af6e7d18d4374cd
[ "MIT" ]
21
2021-11-08T08:06:36.000Z
2022-03-26T14:22:35.000Z
models/resnet.py
Hilbert70403/Infrared-Small-Target
0b7bddc13ed3b2362735ea858af6e7d18d4374cd
[ "MIT" ]
4
2022-01-19T11:37:13.000Z
2022-02-28T07:45:19.000Z
models/resnet.py
Hilbert70403/Infrared-Small-Target
0b7bddc13ed3b2362735ea858af6e7d18d4374cd
[ "MIT" ]
9
2021-11-15T09:24:41.000Z
2022-03-24T08:11:00.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torchvision import models import math try: from torch.hub import load_state_dict_from_url except ImportError: from torch.utils.model_zoo import load_url as load_state_dict_from_url __all__ = ['resnet18', 'resnet34', 'resnet50', 'resnet10...
39.262799
106
0.628651
4165dbd24e63b1d975a1e5b4b8b26e27e2272b26
11,589
py
Python
litex_things/deps/litex/litex/soc/interconnect/csr.py
bjonnh/fomu-playground
9f95ed7b28d15ce219d09c16c2c8d6b5594adceb
[ "0BSD" ]
null
null
null
litex_things/deps/litex/litex/soc/interconnect/csr.py
bjonnh/fomu-playground
9f95ed7b28d15ce219d09c16c2c8d6b5594adceb
[ "0BSD" ]
null
null
null
litex_things/deps/litex/litex/soc/interconnect/csr.py
bjonnh/fomu-playground
9f95ed7b28d15ce219d09c16c2c8d6b5594adceb
[ "0BSD" ]
null
null
null
# This file is Copyright (c) 2015 Sebastien Bourdeauducq <sb@m-labs.hk> # This file is Copyright (c) 2015-2018 Florent Kermarrec <florent@enjoy-digital.fr> # This file is Copyright (c) 2016-2019 Tim 'mithro' Ansell <me@mith.ro> # License: BSD """ Configuration and Status Registers ********************************** ...
33.111429
111
0.617827
afefbc83c9eeb3b95a224982e10e516c9bb5b399
898
py
Python
pytmcapi/test/test_trigger.py
mverrilli/tmc-api-clients
0d2752a4c2f43b19da9714072d03c15dccf2619a
[ "Apache-2.0" ]
null
null
null
pytmcapi/test/test_trigger.py
mverrilli/tmc-api-clients
0d2752a4c2f43b19da9714072d03c15dccf2619a
[ "Apache-2.0" ]
null
null
null
pytmcapi/test/test_trigger.py
mverrilli/tmc-api-clients
0d2752a4c2f43b19da9714072d03c15dccf2619a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Talend Management Console Public API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import abs...
21.902439
119
0.694878
13014e727aeff40c627daecbefbcda6257f546ad
291
py
Python
src/10/loading_modules_from_a_remote_machine_using_import_hooks/metaexample.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/10/loading_modules_from_a_remote_machine_using_import_hooks/metaexample.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/10/loading_modules_from_a_remote_machine_using_import_hooks/metaexample.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
# metaexample.py # # Example of using a meta-path importer # Enable for debugging if False: import logging logging.basicConfig(level=logging.DEBUG) import urlimport urlimport.install_meta('http://localhost:15000') import fib import spam import grok.blah print(grok.blah.__file__)
17.117647
48
0.773196
17f268b7574760a904296022fcd1bfc8960a6a1a
427
py
Python
env/Lib/site-packages/plotly/validators/scattergl/error_x/_symmetric.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/scattergl/error_x/_symmetric.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/scattergl/error_x/_symmetric.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="symmetric", parent_name="scattergl.error_x", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, pare...
30.5
80
0.662763
cb86254bd93660e78c3cad64cf0d824f202c2459
9,826
py
Python
bilean/engine/user.py
lvdongbing/bilean
592f5fb53e3bceee35a01d0171905b282bc9a3db
[ "Apache-2.0" ]
2
2016-01-03T11:20:42.000Z
2016-01-06T06:41:51.000Z
bilean/engine/user.py
lvdongbing/bilean
592f5fb53e3bceee35a01d0171905b282bc9a3db
[ "Apache-2.0" ]
null
null
null
bilean/engine/user.py
lvdongbing/bilean
592f5fb53e3bceee35a01d0171905b282bc9a3db
[ "Apache-2.0" ]
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 # ...
37.079245
78
0.586098
aa04fc267a0f8906245e2c5dd4ceb4cf48e4b12e
666
py
Python
manage.py
spadr/django_iot_core
d71ab74ccc90a20e24cadc0c27bf2c400ea33f91
[ "MIT" ]
null
null
null
manage.py
spadr/django_iot_core
d71ab74ccc90a20e24cadc0c27bf2c400ea33f91
[ "MIT" ]
1
2021-09-27T00:54:58.000Z
2021-09-27T00:54:58.000Z
manage.py
spadr/django_iot_core
d71ab74ccc90a20e24cadc0c27bf2c400ea33f91
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'iotproject.settings') try: from django.core.management import execute_from_command_line except I...
28.956522
74
0.68018
4f9a3075ae02bdcdb02819a0be91758544ee85f9
7,551
py
Python
controller/maestro.py
JDownloader/GEL-3014_Design3
dea01245592c97f73e6a78426270d91ade5e25c7
[ "MIT" ]
null
null
null
controller/maestro.py
JDownloader/GEL-3014_Design3
dea01245592c97f73e6a78426270d91ade5e25c7
[ "MIT" ]
null
null
null
controller/maestro.py
JDownloader/GEL-3014_Design3
dea01245592c97f73e6a78426270d91ade5e25c7
[ "MIT" ]
null
null
null
import serial # #--------------------------- # Maestro Servo Controller #--------------------------- # # Support for the Pololu Maestro line of servo controllers # # Steven Jacobs -- Aug 2013 # https://github.com/FRC4564/Maestro/ # # These functions provide access to many of the Maestro's capabilities using the # Polol...
47.19375
94
0.661104
60489c35f91852d5dc92bfbeb136aaeb18392fb5
6,153
py
Python
test/functional/feature_dersig.py
durgeshkmr/minicoin
4f082abe13cd34a759bf8ffb344a49244615960e
[ "MIT" ]
null
null
null
test/functional/feature_dersig.py
durgeshkmr/minicoin
4f082abe13cd34a759bf8ffb344a49244615960e
[ "MIT" ]
null
null
null
test/functional/feature_dersig.py
durgeshkmr/minicoin
4f082abe13cd34a759bf8ffb344a49244615960e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP66 (DER SIG). Test that the DERSIG soft-fork activates at (regtest) height 1251. """ from tes...
42.729167
142
0.672192
ec18ff3fd29757d17c5a9e9d89806340c5e34760
4,472
py
Python
entities.py
monatis/qrestaurantapp
8cf4bebc5a66eabc25c3781ed240ed681f0eb255
[ "Apache-2.0" ]
null
null
null
entities.py
monatis/qrestaurantapp
8cf4bebc5a66eabc25c3781ed240ed681f0eb255
[ "Apache-2.0" ]
null
null
null
entities.py
monatis/qrestaurantapp
8cf4bebc5a66eabc25c3781ed240ed681f0eb255
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from sqlalchemy import Column, DateTime, Float, Integer, String, Table, Text, text from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() metadata = Base.metadata class Category(Base): __tablename__ = 'categories' id = Column(Integer, primary_key=True) name = ...
34.137405
83
0.720259
125477f7ea0f8d03b9871578550860b5532a845e
1,576
py
Python
ap/model.py
SuvorovAV/TodosGarpix
1ec07e4208da82b52d220d25ae5725132f80c24e
[ "MIT" ]
null
null
null
ap/model.py
SuvorovAV/TodosGarpix
1ec07e4208da82b52d220d25ae5725132f80c24e
[ "MIT" ]
null
null
null
ap/model.py
SuvorovAV/TodosGarpix
1ec07e4208da82b52d220d25ae5725132f80c24e
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, r'/home/alexandr/work_test/Todo/TodosGarpix') import datetime from flask import abort from sqlalchemy.dialects.postgresql import JSON from ap.base import db class Todo(db.Model): __tablename__ = "tasks" id = db.Column(db.Integer, primary_key=True) title = db.Column(db.Strin...
26.266667
72
0.578046
3b2f760a94ae49ee68f151e58bd60f673e6cd8e7
16,182
py
Python
saleor/payment/gateways/adyen/utils/common.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
3
2021-05-02T05:35:54.000Z
2022-01-06T12:13:52.000Z
saleor/payment/gateways/adyen/utils/common.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
117
2021-08-23T04:31:08.000Z
2022-03-28T04:40:19.000Z
saleor/payment/gateways/adyen/utils/common.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
null
null
null
import json import logging from decimal import Decimal from typing import TYPE_CHECKING, Any, Callable, Dict, Optional import Adyen import opentracing import opentracing.tags from django.conf import settings from django_countries.fields import Country from .....checkout.calculations import ( checkout_line_total, ...
34.067368
88
0.681992
c4668abe305ab6927a49c6688ebbcf1c8141eb4b
105
py
Python
goldy_smart_house/events/__init__.py
THEGOLDENPRO/Goldy-Smart-House
1745ed8f2aa60d77ba2031d2ee1a679bd771214b
[ "MIT" ]
null
null
null
goldy_smart_house/events/__init__.py
THEGOLDENPRO/Goldy-Smart-House
1745ed8f2aa60d77ba2031d2ee1a679bd771214b
[ "MIT" ]
null
null
null
goldy_smart_house/events/__init__.py
THEGOLDENPRO/Goldy-Smart-House
1745ed8f2aa60d77ba2031d2ee1a679bd771214b
[ "MIT" ]
null
null
null
"""Goldy Smart House trigger events.""" from . import _on_command_ on_command = _on_command_.on_command
21
39
0.780952
20328c30e72484dc4aad3ffe175fffa99eb0bde2
12,871
py
Python
topologic/embedding/omnibus_embedding.py
microsoft/topologic
d3a2155a42469ccb16de178f47bec81b0476fdc8
[ "MIT" ]
24
2020-02-10T23:51:06.000Z
2021-11-17T02:34:47.000Z
topologic/embedding/omnibus_embedding.py
microsoft/topologic
d3a2155a42469ccb16de178f47bec81b0476fdc8
[ "MIT" ]
26
2020-02-11T18:37:33.000Z
2020-11-11T00:14:41.000Z
topologic/embedding/omnibus_embedding.py
microsoft/topologic
d3a2155a42469ccb16de178f47bec81b0476fdc8
[ "MIT" ]
6
2020-07-31T11:05:36.000Z
2021-11-10T08:18:52.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import copy import logging from typing import List, Union, Optional, Tuple import networkx as nx import numpy as np import scipy as sp from .embedding_container import EmbeddingContainer from .spectral_embedding import _generate_embedding from ...
39.121581
120
0.690389
28e7cd95d1d16ef2e9a831b4b06b7ab0fa871907
2,950
py
Python
valid_show.py
ahmed-shariff/robust_hand_tracking
265da51345d65026fea6c4018ee652f295a2192d
[ "MIT" ]
3
2019-11-12T18:46:37.000Z
2020-01-26T08:19:41.000Z
valid_show.py
ahmed-shariff/robust_hand_tracking
265da51345d65026fea6c4018ee652f295a2192d
[ "MIT" ]
1
2019-10-07T12:14:36.000Z
2020-08-12T19:46:58.000Z
valid_show.py
ahmed-shariff/robust_hand_tracking
265da51345d65026fea6c4018ee652f295a2192d
[ "MIT" ]
1
2019-11-13T16:20:21.000Z
2019-11-13T16:20:21.000Z
from darknet import Darknet import dataset import torch from torch.autograd import Variable from torchvision import datasets, transforms from utils import * import os def valid(datacfg, cfgfile, weightfile, outfile): options = read_data_cfg(datacfg) valid_images = options['valid'] name_list = options['name...
33.146067
106
0.564068
cc6e4b1220fc6be02f9cf549fdde957e4a6be8e1
3,020
py
Python
mars/tensor/arithmetic/arctanh.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
1
2022-02-02T03:03:48.000Z
2022-02-02T03:03:48.000Z
mars/tensor/arithmetic/arctanh.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
mars/tensor/arithmetic/arctanh.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
34.712644
79
0.677152
745fca71039bbdb6b9c03d86cab63f919f602589
4,515
py
Python
satella/coding/structures/heaps/base.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
12
2019-12-13T10:17:38.000Z
2022-01-05T09:01:36.000Z
satella/coding/structures/heaps/base.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
26
2016-04-01T11:55:26.000Z
2021-12-30T17:03:59.000Z
satella/coding/structures/heaps/base.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
1
2021-05-31T08:45:22.000Z
2021-05-31T08:45:22.000Z
import collections import copy import heapq import typing as tp from satella.coding.decorators.decorators import wraps from satella.coding.typing import T, Predicate def _extras_to_one(fun): @wraps(fun) def inner(self, a, *args, **kwargs): return fun(self, ((a,) + args) if len(args) > 0 else a, **kwa...
27.87037
97
0.60155
3ce0a1cd3eeff143b31db480e94fdf5cc04ee630
4,066
py
Python
src/server/crud.py
MMMMMMMingor/SCUT-OFSV
6db6b162bd9442217e7acb84e6bf4cda2976b95f
[ "MIT" ]
null
null
null
src/server/crud.py
MMMMMMMingor/SCUT-OFSV
6db6b162bd9442217e7acb84e6bf4cda2976b95f
[ "MIT" ]
null
null
null
src/server/crud.py
MMMMMMMingor/SCUT-OFSV
6db6b162bd9442217e7acb84e6bf4cda2976b95f
[ "MIT" ]
null
null
null
import sys from model import User, SingleMin, MultiMean, EB_DBA, LS_DBA, Result import pickle import numpy as np import uuid sys.path.append("../") import algo.core.dtw as dtw import algo.core.template as tpl import util def add_user(username: str) -> User: new_user = User.create(name=username) r...
36.303571
155
0.688146
ea1ee41fae77b41c30bfa848a2c88f7ad0bad305
1,648
py
Python
python_script/test_sphere_class.py
listenzcc/3D_model_matlab
2dcaf50a51cf02591737aaa6b4924ed3848f1840
[ "BSD-3-Clause" ]
null
null
null
python_script/test_sphere_class.py
listenzcc/3D_model_matlab
2dcaf50a51cf02591737aaa6b4924ed3848f1840
[ "BSD-3-Clause" ]
null
null
null
python_script/test_sphere_class.py
listenzcc/3D_model_matlab
2dcaf50a51cf02591737aaa6b4924ed3848f1840
[ "BSD-3-Clause" ]
null
null
null
# code: utf-8 from mpl_toolkits.mplot3d import proj3d import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = fig.gca(projection='3d') ax.set_aspect('equal') class Sphere: def __init__(self, ax): u, v = np.mgrid[0:2*np.pi:20j, 0:np.pi:10j] x = np.cos(u)*np.sin(v) y = n...
23.884058
67
0.492718
74f3d3bbfdeacc8ab7bb63f4d0fcdc8775ca99d5
400
py
Python
src/openne/dataloaders/__init__.py
zhangzw16/OpenNE
3a5ceec95da6c090537a288a7e521bc9eed1718e
[ "MIT" ]
4
2020-09-21T07:32:36.000Z
2021-06-09T07:23:34.000Z
src/openne/dataloaders/__init__.py
Bznkxs/OpenNE
046b038d32a29e9f377163c2bc80dda949629483
[ "MIT" ]
1
2020-12-02T03:32:45.000Z
2020-12-02T03:32:45.000Z
src/openne/dataloaders/__init__.py
zhangzw16/OpenNE
3a5ceec95da6c090537a288a7e521bc9eed1718e
[ "MIT" ]
3
2020-07-04T12:43:53.000Z
2021-08-05T09:47:26.000Z
from .graph import Dataset, Graph, LocalFile, Adapter, NetResources, create_self_defined_dataset from .matlab_matrix import MatlabMatrix, PPI, Wikipedia, Flickr, BlogCatalog from .wiki import Wiki from .planetoid_dataset import PubMed, Cora, CiteSeer datasetlist = [PPI, Wikipedia, Flickr, BlogCatalog, Wiki, PubMed, Co...
44.444444
96
0.8
4df1944e6c8bae0523085c1da869b563594ef5a6
19,196
py
Python
scenegraph/exp-official/taskographyv2tiny10_ploi/ploi_test_stats.py
taskography/3dscenegraph-dev
2c261241230fbea1f1c687ff793478248f25c02c
[ "MIT" ]
1
2022-01-30T22:06:57.000Z
2022-01-30T22:06:57.000Z
scenegraph/exp-official/taskographyv2tiny10_ploi/ploi_test_stats.py
taskography/3dscenegraph-dev
2c261241230fbea1f1c687ff793478248f25c02c
[ "MIT" ]
null
null
null
scenegraph/exp-official/taskographyv2tiny10_ploi/ploi_test_stats.py
taskography/3dscenegraph-dev
2c261241230fbea1f1c687ff793478248f25c02c
[ "MIT" ]
null
null
null
STATS = [ { "num_node_expansions": 0, "search_time": 0.0590206, "total_time": 0.135665, "plan_length": 239, "plan_cost": 239, "objects_used": 138, "objects_total": 313, "neural_net_time": 0.0729224681854248, "num_replanning_steps": 0, "...
28.996979
48
0.552771
6c2842771169b40d1c40ec750878df805a209431
3,033
py
Python
conans/test/unittests/client/generators/virtualbuildenv_test.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
6,205
2015-12-01T13:40:05.000Z
2022-03-31T07:30:25.000Z
conans/test/unittests/client/generators/virtualbuildenv_test.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
8,747
2015-12-01T16:28:48.000Z
2022-03-31T23:34:53.000Z
conans/test/unittests/client/generators/virtualbuildenv_test.py
Mattlk13/conan
005fc53485557b0a570bb71670f2ca9c66082165
[ "MIT" ]
961
2015-12-01T16:56:43.000Z
2022-03-31T13:50:52.000Z
# coding=utf-8 import platform import unittest from conans.client.generators.virtualbuildenv import VirtualBuildEnvGenerator from conans.test.utils.mocks import MockSettings, ConanFileMock class VirtualBuildEnvGeneratorGCCTest(unittest.TestCase): activate_sh = "activate_build.sh" activate_bat = "activate_b...
48.142857
101
0.65183
a4a8fdc6735ca27e06b9125952cf7409e00947a2
7,598
py
Python
ExFamToPerson/contracts/HPos_MotherFather_IsolatedLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
ExFamToPerson/contracts/HPos_MotherFather_IsolatedLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
ExFamToPerson/contracts/HPos_MotherFather_IsolatedLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis, HimesisPreConditionPatternLHS import uuid class HPos_MotherFather_IsolatedLHS(HimesisPreConditionPatternLHS): def __init__(self): """ Creates the himesis graph representing the AToM3 model HPos_MotherFather_IsolatedLHS. """ # Fla...
50.317881
128
0.486707
1b58b6398fb9695fcbcad68672df3e93f99682d5
633
py
Python
setup.py
pritam-dey3/lemkelcp
4d963a6d0e6ba531496f5b0e99a52c0d288e4a6e
[ "MIT" ]
null
null
null
setup.py
pritam-dey3/lemkelcp
4d963a6d0e6ba531496f5b0e99a52c0d288e4a6e
[ "MIT" ]
null
null
null
setup.py
pritam-dey3/lemkelcp
4d963a6d0e6ba531496f5b0e99a52c0d288e4a6e
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="lemkelcp", version='0.1', author="Andy Lamperski", author_email="alampers@umn.edu", description=("A Python implementation of Lemke's Algorithm for linear complementarity problems"), license="MIT", url="https://github.com/AndyLamperski/lemkelcp", ...
30.142857
101
0.663507
64a45e89105dba884a658e2073488c2a4639e545
32,126
py
Python
neutron/api/v2/attributes.py
mihaibroc/neutron
dfb7c826d0846970bac00003cea98c9f6bd8f0b8
[ "Apache-2.0" ]
null
null
null
neutron/api/v2/attributes.py
mihaibroc/neutron
dfb7c826d0846970bac00003cea98c9f6bd8f0b8
[ "Apache-2.0" ]
null
null
null
neutron/api/v2/attributes.py
mihaibroc/neutron
dfb7c826d0846970bac00003cea98c9f6bd8f0b8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack Foundation. # 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...
36.54835
79
0.569943
2d105afe37e941009fa72f7a87050f94c475fcc5
910
py
Python
john_doe/cities/scotland.py
xioren/JohnDoe
4bd16f394709cac246438c8ffd650b4b301cb2b7
[ "MIT" ]
null
null
null
john_doe/cities/scotland.py
xioren/JohnDoe
4bd16f394709cac246438c8ffd650b4b301cb2b7
[ "MIT" ]
null
null
null
john_doe/cities/scotland.py
xioren/JohnDoe
4bd16f394709cac246438c8ffd650b4b301cb2b7
[ "MIT" ]
null
null
null
cities = [ 'Glasgow', 'Edinburgh', 'Aberdeen', 'Dundee', 'Paisley', 'East Kilbride', 'Livingston', 'Hamilton', 'Cumbernauld', 'Dunfermline', 'Kirkcaldy', 'Ayr', 'Perth', 'Inverness', 'Kilmarnock', 'Coatbridge', 'Greenock', 'Glenrothes', 'Airdri...
15.423729
20
0.497802
8c4038b9da42d5e1026ba5832f44299d72a313ca
48
py
Python
tests/__init__.py
bogdandm/redis-bulk-cleaner
3d5dc61f8064eb320bc09e519b6d766fbd8e72e0
[ "MIT" ]
3
2020-10-05T17:30:21.000Z
2022-03-25T14:47:54.000Z
tests/__init__.py
bogdandm/redis_bulk_cleaner
3d5dc61f8064eb320bc09e519b6d766fbd8e72e0
[ "MIT" ]
null
null
null
tests/__init__.py
bogdandm/redis_bulk_cleaner
3d5dc61f8064eb320bc09e519b6d766fbd8e72e0
[ "MIT" ]
null
null
null
"""Unit test package for redis_bulk_cleaner."""
24
47
0.75
80b2ddacca4e0ccd0ad4b2e2cbd5fbab06320fe7
2,357
py
Python
preprocessing/notes_to_tsv.py
som-shahlab/ehr-rwe
9653a6abc837dee7759ed245939716b7d50525cc
[ "Apache-2.0" ]
25
2020-02-12T00:07:03.000Z
2021-12-01T22:50:24.000Z
preprocessing/notes_to_tsv.py
som-shahlab/ehr-rwe
9653a6abc837dee7759ed245939716b7d50525cc
[ "Apache-2.0" ]
1
2021-01-28T22:49:23.000Z
2021-01-28T22:49:23.000Z
preprocessing/notes_to_tsv.py
som-shahlab/ehr-rwe
9653a6abc837dee7759ed245939716b7d50525cc
[ "Apache-2.0" ]
3
2021-03-09T02:47:19.000Z
2021-05-21T14:51:02.000Z
""" python raw_note_export.py -i <INPUT> -o <OUTPUT> -b 1000 """ import os import sys import glob import argparse from toolz import partition_all def mimic_preprocessing(text): """ :param text: :return: """ # remove junk headers that concatenate multiple notes sents = [] skip = False ...
28.39759
104
0.589733
3588cdc1e6ec70a39e1e657e050d2180445bb72c
776
py
Python
terrascript/oneandone/r.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
terrascript/oneandone/r.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
terrascript/oneandone/r.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
# terrascript/oneandone/r.py import terrascript class oneandone_server(terrascript.Resource): pass class oneandone_firewall_policy(terrascript.Resource): pass class oneandone_private_network(terrascript.Resource): pass class oneandone_public_ip(terrascript.Resource): pass class oneandone_shared_...
18.926829
56
0.800258
dfaa9f6af5c91a7b2774d57014b2cb82fec9aacc
720
py
Python
src/main/python/scenario_describer/ScenarioDescriberConnector.py
bartoszgaj/moral-dilema-detector
548ebe3db47caaae71a6f93162ebdf2b9b66325c
[ "Apache-2.0" ]
null
null
null
src/main/python/scenario_describer/ScenarioDescriberConnector.py
bartoszgaj/moral-dilema-detector
548ebe3db47caaae71a6f93162ebdf2b9b66325c
[ "Apache-2.0" ]
11
2020-08-28T08:41:04.000Z
2021-12-09T22:44:30.000Z
src/main/python/scenario_describer/ScenarioDescriberConnector.py
bartoszgaj/moral-dilema-detector
548ebe3db47caaae71a6f93162ebdf2b9b66325c
[ "Apache-2.0" ]
3
2020-07-07T15:13:41.000Z
2021-08-24T21:40:48.000Z
import sys import Ice import adapter_ice class ScenarioDescriberConnector: # string_proxy = ":tcp -h localhost -p 10000" def __init__(self, string_proxy): self.__string_proxy = string_proxy communicator = Ice.initialize(sys.argv) self.__base = communicator.stringToProxy("adapter/mana...
25.714286
82
0.706944
2abe60f24dc3fc387d79a2abc2ba73055dc83741
254
py
Python
misc/testConsole.py
geek-plus/vlcp
e7936e00929fcef00c04d4da39b67d9679d5f083
[ "Apache-2.0" ]
252
2015-11-17T14:21:50.000Z
2022-03-11T10:19:47.000Z
misc/testConsole.py
wan-qy/vlcp
e7936e00929fcef00c04d4da39b67d9679d5f083
[ "Apache-2.0" ]
23
2018-01-09T13:28:52.000Z
2019-12-12T06:11:44.000Z
misc/testConsole.py
wan-qy/vlcp
e7936e00929fcef00c04d4da39b67d9679d5f083
[ "Apache-2.0" ]
37
2016-08-03T04:42:22.000Z
2021-12-30T16:57:10.000Z
''' Created on 2015/12/30 @author: hubo ''' from vlcp.server import main from vlcp.config.config import manager if __name__ == '__main__': #manager['module.console.startinconsole'] = True main(None, ('vlcp.service.debugging.console.Console',))
21.166667
59
0.716535
52e08bbb71f1af73889b329e949c4a3a2c1d459b
12,615
py
Python
pytests/failover/MultiNodeAutoFailoverTests.py
cgghali/TAF
1de8dec77ad781c373e18d9c285befd534ac203a
[ "Apache-2.0" ]
null
null
null
pytests/failover/MultiNodeAutoFailoverTests.py
cgghali/TAF
1de8dec77ad781c373e18d9c285befd534ac203a
[ "Apache-2.0" ]
null
null
null
pytests/failover/MultiNodeAutoFailoverTests.py
cgghali/TAF
1de8dec77ad781c373e18d9c285befd534ac203a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from couchbase_helper.documentgenerator import doc_generator from failover.AutoFailoverBaseTest import AutoFailoverBaseTest from membase.api.exception import RebalanceFailedException, \ ServerUnavailableException from membase.api.rest_client import RestConnection class MultiNodeAutoFailove...
42.190635
107
0.613317