hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79857f1996e87d18df000a458cb8b0ac59d4f263
5,573
py
Python
grover/data/molfeaturegenerator.py
MatthewMasters/grover
737a340754bc4c63134ef84019a0a84023fd69a3
[ "MIT" ]
null
null
null
grover/data/molfeaturegenerator.py
MatthewMasters/grover
737a340754bc4c63134ef84019a0a84023fd69a3
[ "MIT" ]
null
null
null
grover/data/molfeaturegenerator.py
MatthewMasters/grover
737a340754bc4c63134ef84019a0a84023fd69a3
[ "MIT" ]
null
null
null
""" The registered feature generator for molecules. This implementation is adapted from https://github.com/chemprop/chemprop/blob/master/chemprop/features/features_generators.py """ from typing import Callable, List, Union import numpy as np from rdkit import Chem, DataStructs from rdkit.Chem import AllChem from gro...
37.153333
114
0.712722
79857f3d45c76a31f7d7646d7b0c8833d856a725
122
py
Python
robot/robot-tasks-master/task_12.py
skorphil/lab_works
1bf7d1d68e3196aafd64f5e01ce3c831063e1118
[ "MIT" ]
null
null
null
robot/robot-tasks-master/task_12.py
skorphil/lab_works
1bf7d1d68e3196aafd64f5e01ce3c831063e1118
[ "MIT" ]
null
null
null
robot/robot-tasks-master/task_12.py
skorphil/lab_works
1bf7d1d68e3196aafd64f5e01ce3c831063e1118
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from pyrob.api import * @task def task_8_6(): pass if __name__ == "__main__": run_tasks()
9.384615
26
0.631148
79857f53b96f08799013c0d00c94863bc8a32c15
5,203
py
Python
circle_core/workers/datareceiver.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
3
2019-01-11T04:30:18.000Z
2019-01-11T04:31:18.000Z
circle_core/workers/datareceiver.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
16
2018-11-21T11:47:18.000Z
2021-09-01T03:52:35.000Z
circle_core/workers/datareceiver.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """センサデータを受け取って保存するCircleModule""" # system module import asyncio import logging import threading import typing from collections import defaultdict from typing import TYPE_CHECKING, cast # project module from circle_core.constants import RequestType from circle_core.message import ModuleMessag...
33.352564
104
0.667692
79857fe74bff9786751c127b13c3f3d9bbce20c6
2,149
py
Python
tensorflow/lite/python/test_util.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/lite/python/test_util.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/lite/python/test_util.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2020 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...
39.796296
80
0.724988
79857ff688a70da59131b23fd867888afbb0fc67
795
py
Python
lib/settings.py
tenddy/fhprojects
bdcf73cb7524f164e7d37bc45df601b42e802cd5
[ "Apache-2.0" ]
null
null
null
lib/settings.py
tenddy/fhprojects
bdcf73cb7524f164e7d37bc45df601b42e802cd5
[ "Apache-2.0" ]
null
null
null
lib/settings.py
tenddy/fhprojects
bdcf73cb7524f164e7d37bc45df601b42e802cd5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=UTF-8 # global Debug DEBUG = True TESTCASE_PATH = "" CAP_PATH = "" LOG_PATH = "F:/FHAT/fhprojects/log" # TCL版本只支持8.4 TCL_PATH = "C:/Tcl/bin/tclsh" TSHARK = "" # Spirent TestCenter的安装目录 STC_PATH = "D:/Program Files (x86)/Spirent Communications/Spirent TestCenter 4.78/Spirent...
25.645161
114
0.660377
79857ffc7d51561c68e17891af92d16149e2f4b9
3,836
py
Python
piecash/yahoo_client.py
stoklund/piecash
ad5199a2ee67118a80104813b471db5522c6ff6d
[ "MIT" ]
null
null
null
piecash/yahoo_client.py
stoklund/piecash
ad5199a2ee67118a80104813b471db5522c6ff6d
[ "MIT" ]
null
null
null
piecash/yahoo_client.py
stoklund/piecash
ad5199a2ee67118a80104813b471db5522c6ff6d
[ "MIT" ]
null
null
null
"""Wrapper around Yahoo Finance API https://query1.finance.yahoo.com/v7/finance/download/aapl?period1=1487685205&period2=1495457605&interval=1d&events=history&crumb=dU2hYSfAy9E https://query1.finance.yahoo.com/v7/finance/quote?symbols=TLS.AX,MUS.AX https://help.yahoo.com/kb/SLN2310.html """ import csv import datetime i...
29.507692
140
0.649114
798580ca768fc8983dad242d266bf009b3adeaa5
3,284
py
Python
time_sequence_prediction/train.py
Saqibm128/examples
56f2b059ca959a97354decfd006d4a1381d79f79
[ "BSD-3-Clause" ]
null
null
null
time_sequence_prediction/train.py
Saqibm128/examples
56f2b059ca959a97354decfd006d4a1381d79f79
[ "BSD-3-Clause" ]
null
null
null
time_sequence_prediction/train.py
Saqibm128/examples
56f2b059ca959a97354decfd006d4a1381d79f79
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import torch import torch.nn as nn import torch.optim as optim import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt class Sequence(nn.Module): def __init__(self): super(Sequence, self).__init__() self.lstm1 = nn...
37.747126
121
0.567905
7985811ed2d9e56b86391747aaef93f878190e76
3,119
py
Python
day03/test_curcuit.py
euribates/advent_of_code_2019
6e2690d195e6eb9403b79c92ee96968ce979154b
[ "MIT" ]
null
null
null
day03/test_curcuit.py
euribates/advent_of_code_2019
6e2690d195e6eb9403b79c92ee96968ce979154b
[ "MIT" ]
null
null
null
day03/test_curcuit.py
euribates/advent_of_code_2019
6e2690d195e6eb9403b79c92ee96968ce979154b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pytest from circuit import Vector from circuit import Circuit @pytest.fixture def circuit(): return Circuit() def test_go_up(circuit): assert circuit.cursor.x == 0 and circuit.cursor.y == 0 circuit.go('U', 6, 1) assert circuit.cursor.x == 0 and circuit.cursor.y == 6 ...
25.357724
65
0.611414
7985816bc3d0fe1d0e6b974973ff11cbd65a94cd
6,660
py
Python
tests/test_validators.py
marksparkza/jschon
382dec392c3879b3286f0687e20421a73dd391b0
[ "MIT" ]
53
2021-03-31T15:32:14.000Z
2022-03-19T03:32:00.000Z
tests/test_validators.py
marksparkza/jschon
382dec392c3879b3286f0687e20421a73dd391b0
[ "MIT" ]
27
2021-03-31T15:43:38.000Z
2022-03-25T08:24:49.000Z
tests/test_validators.py
marksparkza/jschon
382dec392c3879b3286f0687e20421a73dd391b0
[ "MIT" ]
5
2021-03-31T18:42:10.000Z
2022-02-02T13:52:11.000Z
import re from decimal import Decimal, InvalidOperation from hypothesis import given from jschon import JSON, JSONSchema from jschon.jsonschema import Scope from jschon.vocabulary.validation import * from tests import metaschema_uri_2019_09 from tests.strategies import * def evaluate(kwclass, kwvalue, instval): ...
34.507772
103
0.7
79858229687b223fe714c5b9af47b2aebc62f76f
194
py
Python
excercise_book/task_4_1.py
bartekpacia/python-training
00a1047f70ab44cc5afed8619eb4eac0e406f3e3
[ "MIT" ]
null
null
null
excercise_book/task_4_1.py
bartekpacia/python-training
00a1047f70ab44cc5afed8619eb4eac0e406f3e3
[ "MIT" ]
null
null
null
excercise_book/task_4_1.py
bartekpacia/python-training
00a1047f70ab44cc5afed8619eb4eac0e406f3e3
[ "MIT" ]
null
null
null
# Write a program that puts # numbers from 0 to 9 in a # 10-element array array = [] for i in range(0, 10): array.append(i) for i in array: print("array[" + str(i) + "] = " + str(i))
17.636364
46
0.582474
79858332a4cb680fa20cb9131dc73df83b80b2b4
2,756
py
Python
llvmpy/src/Attributes.py
KennethNielsen/llvmpy
70c5957cfd10f1e32a44f28dcb9a4dc72d499c2e
[ "BSD-3-Clause" ]
140
2015-01-07T20:58:12.000Z
2022-01-21T17:02:21.000Z
llvmpy/src/Attributes.py
KennethNielsen/llvmpy
70c5957cfd10f1e32a44f28dcb9a4dc72d499c2e
[ "BSD-3-Clause" ]
19
2015-01-15T14:45:49.000Z
2020-09-04T14:58:23.000Z
llvmpy/src/Attributes.py
KennethNielsen/llvmpy
70c5957cfd10f1e32a44f28dcb9a4dc72d499c2e
[ "BSD-3-Clause" ]
12
2015-01-12T01:49:32.000Z
2020-07-10T22:30:38.000Z
from binding import * from .namespace import llvm from .LLVMContext import LLVMContext if LLVM_VERSION >= (3, 3): llvm.includes.add('llvm/IR/Attributes.h') else: llvm.includes.add('llvm/Attributes.h') AttrBuilder = llvm.Class() if LLVM_VERSION >= (3, 3): Attribute = llvm.Class() AttributeSet = llvm....
29.634409
79
0.601234
79858333997ee7133ced613b22dde680d71bc716
7,027
py
Python
experimenting/dataset/core/dhp19core.py
gaurvigoyal/lifting_events_to_3d_hpe
66d27eb7534f81a95d9f68e17cc534ef2a2c9b1c
[ "Apache-2.0" ]
null
null
null
experimenting/dataset/core/dhp19core.py
gaurvigoyal/lifting_events_to_3d_hpe
66d27eb7534f81a95d9f68e17cc534ef2a2c9b1c
[ "Apache-2.0" ]
null
null
null
experimenting/dataset/core/dhp19core.py
gaurvigoyal/lifting_events_to_3d_hpe
66d27eb7534f81a95d9f68e17cc534ef2a2c9b1c
[ "Apache-2.0" ]
null
null
null
""" Core dataset implementation. BaseCore may be inherhit to create a new DatasetCore """ import os from abc import ABC, abstractmethod import cv2 import numpy as np import torch from scipy import io from experimenting.utils import Skeleton from ..utils import get_file_paths from .base import BaseCore class DHP19...
28.334677
124
0.608652
79858341da82f9784099a9c13b96075ee4f08445
427
py
Python
server/models/book.py
TomRossA/python-flask-book-store
ec5673f41b995d48b4e63039422ad273eec57787
[ "MIT" ]
null
null
null
server/models/book.py
TomRossA/python-flask-book-store
ec5673f41b995d48b4e63039422ad273eec57787
[ "MIT" ]
null
null
null
server/models/book.py
TomRossA/python-flask-book-store
ec5673f41b995d48b4e63039422ad273eec57787
[ "MIT" ]
null
null
null
import uuid from server import ma class Book(): id = str title = str author = str isbn = str about = str def __init__(self, title, author, isbn, about): self.id = uuid.uuid4() self.title = title self.author = author self.isbn = isbn self.about = abou...
21.35
59
0.562061
79858357762cc8fc586443313863a52b29dfee02
11,772
py
Python
dev/local/data/core.py
muellerzr/fastai_dev-1
7931f7b1ce2eb8d09474e0e7368ff7f4896c8e6c
[ "Apache-2.0" ]
null
null
null
dev/local/data/core.py
muellerzr/fastai_dev-1
7931f7b1ce2eb8d09474e0e7368ff7f4896c8e6c
[ "Apache-2.0" ]
null
null
null
dev/local/data/core.py
muellerzr/fastai_dev-1
7931f7b1ce2eb8d09474e0e7368ff7f4896c8e6c
[ "Apache-2.0" ]
null
null
null
#AUTOGENERATED! DO NOT EDIT! File to edit: dev/05_data_core.ipynb (unless otherwise specified). __all__ = ['show_batch', 'show_results', 'TfmdDL', 'DataBunch', 'FilteredBase', 'TfmdList', 'decode_at', 'show_at', 'DataSource', 'test_set', 'test_dl'] #Cell from ..torch_basics import * from ..test import * fr...
44.422642
132
0.659531
79858378b1806d38646b37b9fb0318054e301aef
2,197
py
Python
yplib/test/server.py
yappes-technologies/ypconnector-python
de5711ba68cc39da493887f795ec52cbf5dbb72c
[ "MIT" ]
null
null
null
yplib/test/server.py
yappes-technologies/ypconnector-python
de5711ba68cc39da493887f795ec52cbf5dbb72c
[ "MIT" ]
null
null
null
yplib/test/server.py
yappes-technologies/ypconnector-python
de5711ba68cc39da493887f795ec52cbf5dbb72c
[ "MIT" ]
null
null
null
from http.server import BaseHTTPRequestHandler, HTTPServer PORT_NUMBER = 8080 getResponseObj = {"name": "getUser", "id": "1025", "age": "22"} addResponseObj = {"name": "addUser", "id": "1026", "age": "10"} updateResponseObj = {"name": "updateUser", "id": "1025", "age": "22"} deleteResponseObj={"name": "deleteUser", "...
35.435484
69
0.605826
798586c410a254ce74bd82523d94b098e046e2ea
4,166
py
Python
PeopleCounter/sqlitehandler.py
otula/apilta
06a9dcc93689f93a9dec3d3f6d8a0d5531b82248
[ "Apache-2.0" ]
1
2018-07-17T18:04:01.000Z
2018-07-17T18:04:01.000Z
PeopleCounter/sqlitehandler.py
otula/apilta
06a9dcc93689f93a9dec3d3f6d8a0d5531b82248
[ "Apache-2.0" ]
null
null
null
PeopleCounter/sqlitehandler.py
otula/apilta
06a9dcc93689f93a9dec3d3f6d8a0d5531b82248
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018 Tampere University of Technology, Pori Department # # 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 # # ...
33.869919
152
0.730677
798586e16c573a2dccd98d616f716c1f8e7148af
2,877
py
Python
urbanairship/devices/segment.py
kaellis/airship-python-library
d583138a1c12442020a3ae93d35817624ed6afb5
[ "Apache-2.0" ]
null
null
null
urbanairship/devices/segment.py
kaellis/airship-python-library
d583138a1c12442020a3ae93d35817624ed6afb5
[ "Apache-2.0" ]
null
null
null
urbanairship/devices/segment.py
kaellis/airship-python-library
d583138a1c12442020a3ae93d35817624ed6afb5
[ "Apache-2.0" ]
null
null
null
import json import logging from urbanairship import common logger = logging.getLogger('urbanairship') class Segment(object): _airship = None url = None id = None display_name = None creation_date = None modification_date = None criteria = None data = None def create(self, airsh...
23.77686
77
0.559611
798587451f07c14de2c4d560e90e37f54366052c
117
py
Python
Year 3/Sem 6/DSL/Week 1/q19.py
ShravyaMallya/CSE-MIT-Manipal
a667bea2b38e57e39b6439b7d73722787514d5fd
[ "MIT" ]
1
2022-03-17T12:31:11.000Z
2022-03-17T12:31:11.000Z
Year 3/Sem 6/DSL/Week 1/q19.py
ShravyaMallya/CSE-MIT-Manipal
a667bea2b38e57e39b6439b7d73722787514d5fd
[ "MIT" ]
null
null
null
Year 3/Sem 6/DSL/Week 1/q19.py
ShravyaMallya/CSE-MIT-Manipal
a667bea2b38e57e39b6439b7d73722787514d5fd
[ "MIT" ]
null
null
null
x=float(input("Enter a number: ")) if x < 10: print('smaller') elif x > 20: print('bigger') print('Finished')
19.5
34
0.606838
798587c3ba118f2013e29cef67d88bc32afc4025
729
py
Python
app/news/models.py
mooja/ssip3
d42daee2b3b9d692a1fda4163bc6f0c6e970b79b
[ "MIT" ]
null
null
null
app/news/models.py
mooja/ssip3
d42daee2b3b9d692a1fda4163bc6f0c6e970b79b
[ "MIT" ]
null
null
null
app/news/models.py
mooja/ssip3
d42daee2b3b9d692a1fda4163bc6f0c6e970b79b
[ "MIT" ]
null
null
null
from django.db import models from model_utils import Choices from model_utils.fields import StatusField from model_utils.models import TimeStampedModel from model_utils.managers import QueryManager # Create your models here. class NewsEntry(TimeStampedModel): title = models.CharField(max_length=200) text = mo...
27
68
0.739369
798588e66d128c8c1f005629dd636464506738e9
5,752
py
Python
detector/detector_api.py
vincealdrin/Tutu
05cf7e9cca8bb95c3bce782d6d899a3b0525bd10
[ "MIT" ]
4
2018-09-30T11:27:40.000Z
2019-06-28T14:53:03.000Z
detector/detector_api.py
vincealdrin/Tutu
05cf7e9cca8bb95c3bce782d6d899a3b0525bd10
[ "MIT" ]
15
2017-11-19T16:10:13.000Z
2022-03-08T22:49:23.000Z
detector/detector_api.py
vincealdrin/Tutu
05cf7e9cca8bb95c3bce782d6d899a3b0525bd10
[ "MIT" ]
5
2017-11-17T19:52:30.000Z
2021-08-10T08:57:14.000Z
from functools import reduce from nltk.sentiment.vader import SentimentIntensityAnalyzer from newspaper import Article import os from fake_useragent import UserAgent import pandas as pd from requests import get from lxml import etree from scipy.sparse import hstack from flask import Flask, request, jsonify from urllib....
35.288344
107
0.65073
798588ef7535d2ac75e3c8419ccc14dcd5498e31
4,822
py
Python
fibercnn/modeling/error_correction_and_detection.py
maxfrei750/FibeR-CNN
14c3a050b594817ed3016cc3419c82d35154c1c6
[ "MIT" ]
3
2020-11-09T11:59:43.000Z
2021-08-18T08:28:16.000Z
fibercnn/modeling/error_correction_and_detection.py
linbinbin92/FibeR-CNN
14c3a050b594817ed3016cc3419c82d35154c1c6
[ "MIT" ]
1
2020-11-11T23:06:36.000Z
2020-11-14T18:21:20.000Z
fibercnn/modeling/error_correction_and_detection.py
linbinbin92/FibeR-CNN
14c3a050b594817ed3016cc3419c82d35154c1c6
[ "MIT" ]
2
2021-01-11T10:14:16.000Z
2022-03-11T14:54:54.000Z
import numpy as np from skimage.transform import downscale_local_mean, rescale from fibercnn.modeling.spline import calculate_length, interpolation, to_mask def _calculate_point_distances(As, Bs): return np.sqrt(np.sum((As - Bs) ** 2, axis=1)) def _calculate_segment_lengths(keypoints): lengths = _calculate...
33.72028
96
0.709664
79858950c75fbad2b35d8582ac1c555d75a7a8de
3,408
py
Python
tests/filesync_helpers.py
JeffLIrion/aio_adb_shell
56af0b680c0e63a8e894442f2e395ce63d560729
[ "Apache-2.0" ]
1
2022-01-31T17:05:21.000Z
2022-01-31T17:05:21.000Z
tests/filesync_helpers.py
JeffLIrion/aio_adb_shell
56af0b680c0e63a8e894442f2e395ce63d560729
[ "Apache-2.0" ]
null
null
null
tests/filesync_helpers.py
JeffLIrion/aio_adb_shell
56af0b680c0e63a8e894442f2e395ce63d560729
[ "Apache-2.0" ]
null
null
null
import struct from aio_adb_shell import constants class FileSyncMessage(object): # pylint: disable=too-few-public-methods """A helper class for packing FileSync messages. Parameters ---------- command : bytes TODO arg0 : int TODO data : bytes The data that will be se...
24
120
0.578932
798589dd56f5e380f4e070bc7078f96188ce5b55
7,451
py
Python
foodapp/migrations/0001_initial.py
Himan-2000/HHH-Eats
87bc28e3d7052dc96080339f1e0539350892646d
[ "MIT" ]
null
null
null
foodapp/migrations/0001_initial.py
Himan-2000/HHH-Eats
87bc28e3d7052dc96080339f1e0539350892646d
[ "MIT" ]
null
null
null
foodapp/migrations/0001_initial.py
Himan-2000/HHH-Eats
87bc28e3d7052dc96080339f1e0539350892646d
[ "MIT" ]
2
2020-10-29T03:21:16.000Z
2020-10-30T11:48:26.000Z
# Generated by Django 3.0.5 on 2020-11-07 12:39 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ...
55.604478
266
0.589854
798589f913fa03a608af946743ca0b741b2e46cf
712
py
Python
src/pipelining/pipes/pipe_create_index.py
acdh-oeaw/mara_nlp_suite
223850ffde46bb9fedce9981d1f7a94f865a6a5a
[ "MIT" ]
null
null
null
src/pipelining/pipes/pipe_create_index.py
acdh-oeaw/mara_nlp_suite
223850ffde46bb9fedce9981d1f7a94f865a6a5a
[ "MIT" ]
null
null
null
src/pipelining/pipes/pipe_create_index.py
acdh-oeaw/mara_nlp_suite
223850ffde46bb9fedce9981d1f7a94f865a6a5a
[ "MIT" ]
null
null
null
from pipelining.pipe_root import ConfigRoot from etl import maxqdata_manager, gold_data_transform_rules from pipelining import data_flow_registry from IPython import embed import main class ConfigIndex(ConfigRoot): # index index_def = data_flow_registry.model_indices["i6"] index_table_name = index_def["t...
26.37037
61
0.769663
79858a526354ae3dd7248b88320bdbde5b7d1bc7
1,658
py
Python
tool/annotations_utils.py
airi314/protagonist_tagger
a19a372d201ea4a02e41407c95e137c0e4d8ea99
[ "BSD-3-Clause" ]
null
null
null
tool/annotations_utils.py
airi314/protagonist_tagger
a19a372d201ea4a02e41407c95e137c0e4d8ea99
[ "BSD-3-Clause" ]
null
null
null
tool/annotations_utils.py
airi314/protagonist_tagger
a19a372d201ea4a02e41407c95e137c0e4d8ea99
[ "BSD-3-Clause" ]
1
2022-03-24T20:11:43.000Z
2022-03-24T20:11:43.000Z
import json from tool.gender_checker import get_personal_titles def has_intersection(ent_1, ent_2): if ent_1[1] <= ent_2[0] or ent_2[1] <= ent_1[0]: return False return True def fix_personal_titles(annotations): personal_titles = tuple(get_personal_titles()) for anno in annotations: ...
33.16
97
0.618818
79858b0f239038f79616aec523406fe5d08659a9
5,416
py
Python
examples/python/generic_mle.py
GreatWei/pythonStates
c4a9b326bfa312e2ae44a70f4dfaaf91f2d47a37
[ "BSD-3-Clause" ]
76
2019-12-28T08:37:10.000Z
2022-03-29T02:19:41.000Z
examples/python/generic_mle.py
cluterdidiw/statsmodels
543037fa5768be773a3ba31fba06e16a9edea46a
[ "BSD-3-Clause" ]
null
null
null
examples/python/generic_mle.py
cluterdidiw/statsmodels
543037fa5768be773a3ba31fba06e16a9edea46a
[ "BSD-3-Clause" ]
35
2020-02-04T14:46:25.000Z
2022-03-24T03:56:17.000Z
# coding: utf-8 # DO NOT EDIT # Autogenerated from the notebook generic_mle.ipynb. # Edit the notebook and then sync the output with this file. # # flake8: noqa # DO NOT EDIT # # 极大似然估计(通用模型) # 本教程说明了如何在 statsmodels 中快速实现新的极大似然模型。 我们举两个例子: # # 1. 两分类因变量的 Probit 模型 # 2. 计数数据的负二项式模型 # # GenericLikelihoodModel 类通过提供诸如自...
25.42723
102
0.67079
79858b46104839608180848a2a1430df64ff640d
366
py
Python
Interview Preparation Kit - Python/01. Warm-up Challenges/003. Jumping on the Clouds.py
Snehakri022/HackerrankPractice
15c2da0bfb4bce744b345c4a3613ae9a769f2676
[ "MIT" ]
831
2018-05-12T19:06:09.000Z
2022-03-31T19:33:54.000Z
Interview Preparation Kit - Python/01. Warm-up Challenges/003. Jumping on the Clouds.py
Snehakri022/HackerrankPractice
15c2da0bfb4bce744b345c4a3613ae9a769f2676
[ "MIT" ]
2
2019-06-17T14:58:56.000Z
2021-03-05T23:49:59.000Z
Interview Preparation Kit - Python/01. Warm-up Challenges/003. Jumping on the Clouds.py
Snehakri022/HackerrankPractice
15c2da0bfb4bce744b345c4a3613ae9a769f2676
[ "MIT" ]
457
2018-06-11T07:01:57.000Z
2022-03-28T11:08:34.000Z
# Problem: https://www.hackerrank.com/challenges/jumping-on-the-clouds/problem # Score: 20 def jumping_on_clouds(n, c): c.append(0) ans = 0 position = 0 while position < n-1: position += (c[position+2] == 0) + 1 ans += 1 return ans n = int(input()) c = list(map(int, input().rstr...
20.333333
78
0.603825
79858c26d4f08d48ccd285966ac3b72355f83f72
799
py
Python
main.py
RenanJochem98/object-recognition
0f7c8cdf3279165e7aace3f6442f0be6a70e2369
[ "MIT" ]
null
null
null
main.py
RenanJochem98/object-recognition
0f7c8cdf3279165e7aace3f6442f0be6a70e2369
[ "MIT" ]
null
null
null
main.py
RenanJochem98/object-recognition
0f7c8cdf3279165e7aace3f6442f0be6a70e2369
[ "MIT" ]
null
null
null
# coding=utf-8 # unsplashLink = 'https://unsplash.com' # photoLink = 'https://unsplash.com/photos/X0xMB7cqKBI' from Detector import Detector from Screen import Screen rec = Detector() screen = Screen() inp = None while inp != '0': print("Qual tipo de detecção facial você deseja fazer?") print('1 - Detecção d...
27.551724
64
0.570713
79858dc15df1c8842077ce664fd32fe7c5f8c12d
18,129
py
Python
egs/wsj/s5/utils/lang/internal/arpa2fst_constrained.py
HunterJiang/kaldi
3fe38c82fa0936f7a4ea3347a54e9e00fb2471a8
[ "Apache-2.0" ]
319
2016-10-24T23:08:04.000Z
2022-03-08T02:36:51.000Z
egs/wsj/s5/utils/lang/internal/arpa2fst_constrained.py
zwcih/kaldi-ctc
2c47b99f5efba22cb3989eed1a7757bf5d9927ce
[ "Apache-2.0" ]
18
2017-01-12T12:08:07.000Z
2020-06-18T07:37:20.000Z
egs/wsj/s5/utils/lang/internal/arpa2fst_constrained.py
zwcih/kaldi-ctc
2c47b99f5efba22cb3989eed1a7757bf5d9927ce
[ "Apache-2.0" ]
87
2016-10-25T04:39:48.000Z
2021-12-24T07:47:31.000Z
#!/usr/bin/env python # Copyright 2016 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. from __future__ import print_function import sys import argparse import math from collections import defaultdict # note, this was originally based parser = argparse.ArgumentParser(description=""" This script conver...
46.247449
118
0.53864
79858f84fd7a3ec736dbdb7f4823fe36bb52918f
4,444
py
Python
python_components/download-file/src/test-download-file.py
ptitzler/kfp-component-tests
80b67ec61deb83bf459d69a6f0242b1454fa2d43
[ "Apache-2.0" ]
null
null
null
python_components/download-file/src/test-download-file.py
ptitzler/kfp-component-tests
80b67ec61deb83bf459d69a6f0242b1454fa2d43
[ "Apache-2.0" ]
null
null
null
python_components/download-file/src/test-download-file.py
ptitzler/kfp-component-tests
80b67ec61deb83bf459d69a6f0242b1454fa2d43
[ "Apache-2.0" ]
1
2022-01-20T01:54:46.000Z
2022-01-20T01:54:46.000Z
import sys from datetime import datetime import kfp import kfp.dsl as dsl from kfp.components import create_component_from_func import requests # (1) import the user-defined Python function from # download_file.py # ignore linting; separated from other imports for clarity from download_file import download # no...
32.918519
122
0.634563
798590002441dc88fcc3ded3aface09143bbef65
6,511
py
Python
experiments/utils.py
malteos/aspect-document-embeddings
0836ea54a9192dbc2b01bb212c7521668bb398af
[ "MIT" ]
2
2022-03-21T18:31:57.000Z
2022-03-21T23:45:33.000Z
experiments/utils.py
malteos/aspect-document-embeddings
0836ea54a9192dbc2b01bb212c7521668bb398af
[ "MIT" ]
null
null
null
experiments/utils.py
malteos/aspect-document-embeddings
0836ea54a9192dbc2b01bb212c7521668bb398af
[ "MIT" ]
null
null
null
import collections import os from typing import List import matplotlib import matplotlib.pyplot as plt import numpy as np from torch.optim.lr_scheduler import LambdaLR def chunks(lst, n): """Yield successive n-sized chunks from lst.""" for i in range(0, len(lst), n): yield lst[i:i + n] def chu...
30.425234
120
0.618799
798590d4c61e825f34d3ef000befa4a222554981
1,617
py
Python
tests/core/types/test_coin.py
fugginoob/taco-blockchain
bee7b5d2ba555728438f7d13cd80f7f8ca3bd353
[ "Apache-2.0" ]
18
2021-07-14T09:56:37.000Z
2022-02-09T04:32:58.000Z
tests/core/types/test_coin.py
fugginoob/taco-blockchain
bee7b5d2ba555728438f7d13cd80f7f8ca3bd353
[ "Apache-2.0" ]
9
2021-07-14T15:48:28.000Z
2021-10-10T02:32:59.000Z
tests/core/types/test_coin.py
fugginoob/taco-blockchain
bee7b5d2ba555728438f7d13cd80f7f8ca3bd353
[ "Apache-2.0" ]
10
2021-07-18T03:22:43.000Z
2022-03-15T08:40:06.000Z
from taco.types.blockchain_format.coin import Coin from taco.types.blockchain_format.sized_bytes import bytes32 from taco.util.ints import uint64 from taco.util.hash import std_hash import io def coin_serialize(amount: uint64, clvm_serialize: bytes, full_serialize: bytes): c = Coin(bytes32(b"a" * 32), bytes32(b"...
36.75
120
0.64564
798590fee4ad05b8409a1924416ef5c90e23e640
2,841
py
Python
application/models/coupon/wallet.py
mutalisk999/bibi
2e0043d207c83ef7fc55d20b9c0a1b7e493a551c
[ "Apache-2.0" ]
1,037
2017-03-24T11:18:55.000Z
2022-03-19T14:02:27.000Z
application/models/coupon/wallet.py
spacecode-live/An-e-commerce-fullstack-solution-for-Flask-
28130a18a73afbb99bf850e857dd1f14c08fbca1
[ "Apache-2.0" ]
8
2017-03-26T02:53:24.000Z
2018-09-14T03:18:26.000Z
application/models/coupon/wallet.py
spacecode-live/An-e-commerce-fullstack-solution-for-Flask-
28130a18a73afbb99bf850e857dd1f14c08fbca1
[ "Apache-2.0" ]
365
2017-03-24T11:29:02.000Z
2021-11-24T03:14:19.000Z
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from application.extensions import db from configs.enum import COUPON_APPLY import configs.signals as Signals from .coupon import Coupon __all__ = ['ConsumableCoupon', 'CouponWallet'] class ConsumableCoupon(db.EmbeddedDocument): ''' Consumabl...
27.582524
73
0.615276
798591b86268cd20ece3ae6fc701c7787078bcbc
553
py
Python
examples/classical_lci/lci.py
PermutaTriangle/PermStruct
6a494aa9c3ae3c63d27ecbcc4b478f0501eb3e48
[ "BSD-3-Clause" ]
1
2015-09-14T17:23:33.000Z
2015-09-14T17:23:33.000Z
examples/classical_lci/lci.py
PermutaTriangle/PermStruct
6a494aa9c3ae3c63d27ecbcc4b478f0501eb3e48
[ "BSD-3-Clause" ]
null
null
null
examples/classical_lci/lci.py
PermutaTriangle/PermStruct
6a494aa9c3ae3c63d27ecbcc4b478f0501eb3e48
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from permuta import * import permstruct import permstruct.dag from permstruct import * from permstruct.dag import taylor_dag import sys # -- Example from Kuszmaul paper -- # # STATUS ================================================ > patts = [Permutation([5,2,3,4,1]), Permutati...
30.722222
166
0.650995
79859340ecd959a6296ac7814269b8b1efe3c6a4
561
py
Python
server/genanki/models/basic.py
Maximus0000/Notion-to-Anki
9382a9c95938355df5e2002e8c5caf5a3837dac0
[ "MIT" ]
1
2021-08-30T11:46:07.000Z
2021-08-30T11:46:07.000Z
src/genanki/models/basic.py
alpkaanaksu/notion2anki
928c279bf16c49be24f80cf1d08ce589eacf2053
[ "MIT" ]
null
null
null
src/genanki/models/basic.py
alpkaanaksu/notion2anki
928c279bf16c49be24f80cf1d08ce589eacf2053
[ "MIT" ]
null
null
null
from genanki import Model def basic_model(id, name, css): return Model(id, name, fields=[ {"name": "Front"}, {"name": "Back"}, {"name": "MyMedia"}, ], templates=[ { "name": "card1", "qfmt": '<span class="front-te...
28.05
72
0.399287
798593c2b05f04e6ec08bf4bd7b52221c32946a7
702
py
Python
src/Classes/MSDS400/PFinal/Q_13.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/Classes/MSDS400/PFinal/Q_13.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/Classes/MSDS400/PFinal/Q_13.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
# A company plans to enclose three parallel rectangular areas for sorting returned goods. # The three areas are within one large rectangular area and 1400 yd of fencing is available. What is the largest total area that can be​ enclosed? from sympy import symbols, solve, diff x, y = symbols( 'x y', positive = True ) ...
30.521739
146
0.665242
798593d9f06e10468ac8e28ea2338e778e04cbb0
4,301
py
Python
tripleo_common/image/image_uploader.py
mail2nsrajesh/tripleo-common
c740c64e3107bf86f9ac528848fe4c8d3a513825
[ "Apache-2.0" ]
null
null
null
tripleo_common/image/image_uploader.py
mail2nsrajesh/tripleo-common
c740c64e3107bf86f9ac528848fe4c8d3a513825
[ "Apache-2.0" ]
null
null
null
tripleo_common/image/image_uploader.py
mail2nsrajesh/tripleo-common
c740c64e3107bf86f9ac528848fe4c8d3a513825
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
35.841667
78
0.659149
7985948041a922b8ab8b448fbe378fc7d8706574
61,692
py
Python
Lib/test/test_enum.py
Taywee/isolated-python
cb6aab1248c4aec4dd578bea717854505a6fb55d
[ "PSF-2.0" ]
4
2016-04-02T00:01:50.000Z
2017-07-13T02:11:04.000Z
Lib/test/test_enum.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
null
null
null
Lib/test/test_enum.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
null
null
null
import enum import inspect import pydoc import unittest from collections import OrderedDict from enum import Enum, IntEnum, EnumMeta, unique from io import StringIO from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL from test import support # for pickle tests try: class Stooges(Enum): LARRY =...
35.557349
103
0.536196
798594db21850fd21bed441ee9deb49cd3c57063
15,903
py
Python
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_configurations_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_configurations_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_configurations_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.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 ...
50.646497
226
0.671571
79859520686f875ff502494d98f44b2959b4cab5
386
py
Python
TagScriptEngine/adapter/__init__.py
Scuffed-Guard/TagScript
e0647fa6d2b830e1f875ff643793b420118512ff
[ "CC-BY-4.0" ]
9
2021-03-12T19:52:15.000Z
2022-01-23T11:50:32.000Z
TagScriptEngine/adapter/__init__.py
Scuffed-Guard/TagScript
e0647fa6d2b830e1f875ff643793b420118512ff
[ "CC-BY-4.0" ]
7
2021-03-19T05:15:31.000Z
2021-07-03T10:24:49.000Z
TagScriptEngine/adapter/__init__.py
Scuffed-Guard/TagScript
e0647fa6d2b830e1f875ff643793b420118512ff
[ "CC-BY-4.0" ]
15
2021-03-08T01:17:01.000Z
2022-03-21T09:47:42.000Z
from .discordadapters import * from .functionadapter import FunctionAdapter from .intadapter import IntAdapter from .objectadapter import SafeObjectAdapter from .stringadapter import StringAdapter __all__ = ( "SafeObjectAdapter", "StringAdapter", "IntAdapter", "FunctionAdapter", "AttributeAdapter",...
22.705882
44
0.746114
7985978867808c1b2ab170a4c824fbf3f06fc136
1,920
py
Python
pycvcqv/is_numeric.py
fossabot/pycvcqv
2de1504c056316c9557eb82f5ee3594ece8aace8
[ "MIT" ]
5
2021-08-28T10:50:54.000Z
2022-03-28T14:35:46.000Z
pycvcqv/is_numeric.py
fossabot/pycvcqv
2de1504c056316c9557eb82f5ee3594ece8aace8
[ "MIT" ]
28
2021-08-27T23:31:39.000Z
2022-03-27T09:47:14.000Z
pycvcqv/is_numeric.py
fossabot/pycvcqv
2de1504c056316c9557eb82f5ee3594ece8aace8
[ "MIT" ]
4
2021-12-08T19:02:07.000Z
2022-02-14T18:44:45.000Z
"""The is_numeric trait.""" # --------------------------- Import libraries and functions -------------------------- import functools import pandas as pd from pandas.api.types import is_numeric_dtype # -------------------------------- function definition -------------------------------- def is_numeric(function): ...
49.230769
87
0.393229
79859b58291b2e992ace0795db77fa2873f34f55
1,853
py
Python
zerver/migrations/0115_user_groups.py
fearless0307/zulip
378d14af7ea73a9a83c7245706cd918bec5a37bf
[ "Apache-2.0" ]
4
2019-06-04T09:06:53.000Z
2019-06-04T09:07:47.000Z
zerver/migrations/0115_user_groups.py
fearless0307/zulip
378d14af7ea73a9a83c7245706cd918bec5a37bf
[ "Apache-2.0" ]
58
2018-11-27T15:18:54.000Z
2018-12-09T13:43:07.000Z
zerver/migrations/0115_user_groups.py
fearless0307/zulip
378d14af7ea73a9a83c7245706cd918bec5a37bf
[ "Apache-2.0" ]
9
2019-11-04T18:59:29.000Z
2022-03-22T17:46:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-30 05:05 from __future__ import unicode_literals import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('zerver', '0114_preregistrat...
37.06
126
0.609282
79859d2e147a0e9a280a3486229a9abb550878be
2,961
py
Python
approxposterior/tests/test_2DBayesOpt.py
RoryBarnes/approxposterior
f80b068919732573471fbb488fcd72d35926c112
[ "MIT" ]
36
2018-04-05T23:37:55.000Z
2021-07-22T09:28:33.000Z
approxposterior/tests/test_2DBayesOpt.py
RoryBarnes/approxposterior
f80b068919732573471fbb488fcd72d35926c112
[ "MIT" ]
38
2018-04-27T20:58:19.000Z
2021-04-18T03:27:03.000Z
approxposterior/tests/test_2DBayesOpt.py
RoryBarnes/approxposterior
f80b068919732573471fbb488fcd72d35926c112
[ "MIT" ]
11
2018-04-25T16:48:52.000Z
2021-11-24T02:30:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test Bayesian optimization of 2D Rosenbrock function @author: David P. Fleming [University of Washington, Seattle], 2019 @email: dflemin3 (at) uw (dot) edu """ from approxposterior import approx, likelihood as lh, gpUtils import numpy as np from scipy.optimize impor...
37.481013
81
0.606214
79859dc219d8fee8dd4ced1769c62b2569505f74
3,413
py
Python
store_locator/migrations/0001_initial.py
waustin/django-store-locator
2cbc31af068494401e93360a2560a7162031bfae
[ "MIT" ]
1
2021-12-18T12:45:58.000Z
2021-12-18T12:45:58.000Z
store_locator/migrations/0001_initial.py
waustin/django-store-locator
2cbc31af068494401e93360a2560a7162031bfae
[ "MIT" ]
null
null
null
store_locator/migrations/0001_initial.py
waustin/django-store-locator
2cbc31af068494401e93360a2560a7162031bfae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ZipCodeLocation' db.create_table(u'store_locator_zipcodel...
54.174603
124
0.608263
79859f4b20d6d718bf3be622a0a2463a42aa0ccc
16,101
py
Python
qa/rpc-tests/p2p-fullblocktest.py
weiqitong/LMCOIN
6feed8ba8267d79cd2d4a793ada08ad8de7cf57e
[ "MIT" ]
null
null
null
qa/rpc-tests/p2p-fullblocktest.py
weiqitong/LMCOIN
6feed8ba8267d79cd2d4a793ada08ad8de7cf57e
[ "MIT" ]
null
null
null
qa/rpc-tests/p2p-fullblocktest.py
weiqitong/LMCOIN
6feed8ba8267d79cd2d4a793ada08ad8de7cf57e
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.test_framework import ComparisonTestFramework from test_framework.util import * from test_framework.comptool import TestManager, T...
40.052239
106
0.536116
79859ff37d772a06f7d00370225e4bfbfdfdaf8a
30,006
py
Python
imaging/images2swf.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
imaging/images2swf.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
imaging/images2swf.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # This code is subject to the (new) BSD license: # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the...
29.650198
98
0.568953
7985a05aea399ff3b6458978880677614413363c
4,641
py
Python
machaon/core/docstring.py
betasewer/machaon
63ccb4405ac693f14f9d25f6a706466a917dddbf
[ "MIT" ]
2
2020-07-05T08:39:12.000Z
2022-01-19T22:08:21.000Z
machaon/core/docstring.py
betasewer/machaon
63ccb4405ac693f14f9d25f6a706466a917dddbf
[ "MIT" ]
23
2020-06-23T16:18:17.000Z
2021-12-29T09:56:48.000Z
machaon/core/docstring.py
betasewer/machaon
63ccb4405ac693f14f9d25f6a706466a917dddbf
[ "MIT" ]
null
null
null
from collections import defaultdict from itertools import takewhile import os.path # class DocStringParseError(Exception): pass # # # class DocStringParser(): def __init__(self, doc, section_names, indented_with_head=True): self.sections = {} lines = doc.splitlines() if not lines: ...
27.625
109
0.516914
7985a146bc0e528ea9eb32811fe9c2fd081d3187
487
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/_version.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/_version.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/_version.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
1
2019-04-05T18:17:43.000Z
2019-04-05T18:17:43.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 ...
48.7
94
0.527721
7985a18e638da27362ebfcb194daf7091996c2fc
2,353
py
Python
ismore/sim/rehand.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
ismore/sim/rehand.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
12
2020-07-31T18:58:31.000Z
2022-02-10T14:36:00.000Z
ismore/sim/rehand.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
4
2020-03-06T15:39:00.000Z
2021-05-26T17:03:21.000Z
'''ReHand simulation code. Models ReHand as a plant whose (angular) velocities can be changed instantaneously, and whose (angular) positions are updated based on the integral of velocity. The ReHand runs in a separate process and automatically "steps" itself as time passes. ''' import time import multiprocessing as m...
28.695122
84
0.58181
7985a1c4b9b41cee52f0f5a13816a923cdb2f6ed
8,297
py
Python
qsiprep/workflows/dwi/util.py
arokem/qsiprep
f0a12fa002ea99cad97f2b5e40c1517d0569e14c
[ "BSD-3-Clause" ]
36
2019-04-07T18:53:15.000Z
2021-04-04T10:35:54.000Z
qsiprep/workflows/dwi/util.py
arokem/qsiprep
f0a12fa002ea99cad97f2b5e40c1517d0569e14c
[ "BSD-3-Clause" ]
178
2019-02-27T16:36:06.000Z
2021-04-06T12:48:38.000Z
qsiprep/workflows/dwi/util.py
arokem/qsiprep
f0a12fa002ea99cad97f2b5e40c1517d0569e14c
[ "BSD-3-Clause" ]
20
2019-04-05T19:17:26.000Z
2021-03-25T14:47:32.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Utility workflows ^^^^^^^^^^^^^^^^^ .. autofunction:: init_dwi_reference_wf """ import os from pathlib import Path import nibabel as nb import pkg_resources as pkgr from nipyp...
34.570833
90
0.623599
7985a302555a62815643cc9eafcfd7357fbdec28
1,371
py
Python
flicks/users/forms.py
Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695
bf6a382913901ad193d907f022086931df0de8c4
[ "BSD-3-Clause" ]
1
2015-07-13T03:29:04.000Z
2015-07-13T03:29:04.000Z
flicks/users/forms.py
Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695
bf6a382913901ad193d907f022086931df0de8c4
[ "BSD-3-Clause" ]
2
2015-03-03T23:02:19.000Z
2019-03-30T04:45:51.000Z
flicks/users/forms.py
Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695
bf6a382913901ad193d907f022086931df0de8c4
[ "BSD-3-Clause" ]
2
2016-04-15T11:43:05.000Z
2016-04-15T11:43:15.000Z
from django import forms from tower import ugettext_lazy as _lazy from flicks.base.util import country_choices from flicks.users.models import UserProfile class UserProfileForm(forms.ModelForm): # L10n: Used in a choice field where users can choose between receiving # L10n: HTML-based or Text-only newslette...
37.054054
77
0.63895
7985a38f7b05f1402c2784b15117b44d63e284b0
365
py
Python
PYTHON/python-datastructures/algorithms/algorithms/bit/count_flips_to_convert.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
11
2021-02-18T04:53:44.000Z
2022-01-16T10:57:39.000Z
PYTHON/python-datastructures/algorithms/algorithms/bit/count_flips_to_convert.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
PYTHON/python-datastructures/algorithms/algorithms/bit/count_flips_to_convert.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
8
2021-02-18T05:12:34.000Z
2022-03-06T19:02:14.000Z
""" Write a function to determine the minimal number of bits you would need to flip to convert integer A to integer B. For example: Input: 29 (or: 11101), 15 (or: 01111) Output: 2 """ def count_flips_to_convert(a, b): diff = a ^ b # count number of ones in diff count = 0 while diff: diff &= ...
18.25
74
0.627397
7985a3985a849a7cd0fb3863e25a73dd93e90948
3,420
py
Python
mars/dataframe/base/accessor.py
ueshin/mars
0b542974243be4e0ff239eaf49ab0fb2935f3361
[ "Apache-2.0" ]
null
null
null
mars/dataframe/base/accessor.py
ueshin/mars
0b542974243be4e0ff239eaf49ab0fb2935f3361
[ "Apache-2.0" ]
null
null
null
mars/dataframe/base/accessor.py
ueshin/mars
0b542974243be4e0ff239eaf49ab0fb2935f3361
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
33.861386
75
0.635673
7985a41378a18aaa36c1630680053d878eeb099b
1,226
py
Python
app/recipe/serializers.py
Aalekh-Sajonia/recipe-app-api
f5016354569358667048540a39f5338d686a52da
[ "MIT" ]
null
null
null
app/recipe/serializers.py
Aalekh-Sajonia/recipe-app-api
f5016354569358667048540a39f5338d686a52da
[ "MIT" ]
null
null
null
app/recipe/serializers.py
Aalekh-Sajonia/recipe-app-api
f5016354569358667048540a39f5338d686a52da
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag, Ingredient, Recipe class TagSerializer(serializers.ModelSerializer): class Meta: model = Tag fields = ('id', 'name') read_only_fields = ('id',) class IngredientSerialzer(serializers.ModelSerializer): class Meta: ...
27.863636
81
0.639478
7985a41cb5f1c8df0047442823d2c7a7508d48a9
13,047
py
Python
bw2data/utils.py
ecoinvent/brightway2-data
3aa42d93cb6ded0e8a8cb4162c052995ac7060d3
[ "BSD-3-Clause" ]
null
null
null
bw2data/utils.py
ecoinvent/brightway2-data
3aa42d93cb6ded0e8a8cb4162c052995ac7060d3
[ "BSD-3-Clause" ]
null
null
null
bw2data/utils.py
ecoinvent/brightway2-data
3aa42d93cb6ded0e8a8cb4162c052995ac7060d3
[ "BSD-3-Clause" ]
null
null
null
from . import config from .errors import WebUIError, UnknownObject, NotFound, ValidityError from .fatomic import open from io import StringIO from pathlib import Path from peewee import DoesNotExist import collections import itertools import os import random import re import requests import stats_arrays as sa import st...
33.114213
181
0.631333
7985a4ed34bc1ee79a42afadd971c0e4afbf75c1
4,410
py
Python
lib/modules/python/situational_awareness/network/active_directory/get_domaincontrollers.py
jimshew/Empire
a7413869849b2c3c521eb50bed61e00ede107688
[ "BSD-3-Clause" ]
4
2019-03-11T02:40:13.000Z
2021-01-29T06:45:21.000Z
lib/modules/python/situational_awareness/network/active_directory/get_domaincontrollers.py
jimshew/Empire
a7413869849b2c3c521eb50bed61e00ede107688
[ "BSD-3-Clause" ]
20
2020-03-11T03:58:21.000Z
2020-03-12T03:59:38.000Z
lib/modules/python/situational_awareness/network/active_directory/get_domaincontrollers.py
jimshew/Empire
a7413869849b2c3c521eb50bed61e00ede107688
[ "BSD-3-Clause" ]
1
2020-01-15T06:46:16.000Z
2020-01-15T06:46:16.000Z
from builtins import object class Module(object): def __init__(self, mainMenu, params=[]): # metadata info about the module, not modified during runtime self.info = { # name for the module that will appear in module menus 'Name': 'Get Domain Controllers', # lis...
36.75
191
0.553061
7985a505768bcce1f1a8c76a39acb3c3e6ce5813
1,715
py
Python
octavia-cli/unit_tests/test_generate/test_commands.py
TSkrebe/airbyte-1
7bbcb369aa4b5129d7ccfc7e41b43c9f6cde255d
[ "MIT" ]
null
null
null
octavia-cli/unit_tests/test_generate/test_commands.py
TSkrebe/airbyte-1
7bbcb369aa4b5129d7ccfc7e41b43c9f6cde255d
[ "MIT" ]
null
null
null
octavia-cli/unit_tests/test_generate/test_commands.py
TSkrebe/airbyte-1
7bbcb369aa4b5129d7ccfc7e41b43c9f6cde255d
[ "MIT" ]
null
null
null
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # from click.testing import CliRunner from octavia_cli.generate import commands def test_generate_initialized(mocker): runner = CliRunner() mocker.patch.object(commands, "definitions", mocker.Mock(return_value=(["dir_a", "dir_b"], []))) mocker.pa...
47.638889
134
0.755685
7985a5e25cf0137bde088890e94a4d285b116c00
3,983
py
Python
tests/nlu/featurizers/test_lexical_syntactic_featurizer.py
isaac-philip/rasa
923db75e03921921a6f1f3489a2c5574138ee685
[ "Apache-2.0" ]
1
2020-06-15T02:06:41.000Z
2020-06-15T02:06:41.000Z
tests/nlu/featurizers/test_lexical_syntactic_featurizer.py
isaac-philip/rasa
923db75e03921921a6f1f3489a2c5574138ee685
[ "Apache-2.0" ]
49
2020-06-23T11:26:22.000Z
2022-02-01T13:22:24.000Z
tests/nlu/featurizers/test_lexical_syntactic_featurizer.py
isaac-philip/rasa
923db75e03921921a6f1f3489a2c5574138ee685
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest import scipy.sparse from rasa.nlu.tokenizers.spacy_tokenizer import SpacyTokenizer from rasa.nlu.tokenizers.whitespace_tokenizer import WhitespaceTokenizer from rasa.nlu.featurizers.sparse_featurizer.lexical_syntactic_featurizer import ( LexicalSyntacticFeaturizer, ) from rasa.nlu...
29.723881
82
0.573437
7985a5fcdc8b8d215243ec60f09f7bcefa655016
1,394
py
Python
array/python3/3_kth_min_max.py
jitendragangwar123/cp
8d9da1abd841784da8304e7ebb64a6b94cb804bb
[ "MIT" ]
null
null
null
array/python3/3_kth_min_max.py
jitendragangwar123/cp
8d9da1abd841784da8304e7ebb64a6b94cb804bb
[ "MIT" ]
1
2020-12-12T19:09:01.000Z
2020-12-12T19:09:01.000Z
array/python3/3_kth_min_max.py
jitendragangwar123/cp
8d9da1abd841784da8304e7ebb64a6b94cb804bb
[ "MIT" ]
1
2020-12-12T18:36:24.000Z
2020-12-12T18:36:24.000Z
def partition(arr, start, end): pivot = arr[end] tail_index = start for i in range(start, end): if arr[i] < pivot: arr[i], arr[tail_index] = arr[tail_index], arr[i] tail_index += 1 arr[end], arr[tail_index] = arr[tail_index], arr[end] return tail_index def find_kt...
26.301887
61
0.496413
7985a61271c2fae6dd155705b710770e9f398b60
2,058
py
Python
UrbanovaCloudIoTSDKPython/UrbanovaCloudIoTClient.py
urbanova/urbanova-cloud-iot-sdk-python
5ef15b46f30990265142ef2fb37e1c609b6e7898
[ "Apache-2.0" ]
null
null
null
UrbanovaCloudIoTSDKPython/UrbanovaCloudIoTClient.py
urbanova/urbanova-cloud-iot-sdk-python
5ef15b46f30990265142ef2fb37e1c609b6e7898
[ "Apache-2.0" ]
null
null
null
UrbanovaCloudIoTSDKPython/UrbanovaCloudIoTClient.py
urbanova/urbanova-cloud-iot-sdk-python
5ef15b46f30990265142ef2fb37e1c609b6e7898
[ "Apache-2.0" ]
1
2019-05-08T02:48:52.000Z
2019-05-08T02:48:52.000Z
''' Copyright Urbanova 2019 | Licensed under the Apache License, Version 2.0 (the "License") This file is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ''' f...
46.772727
147
0.771137
7985a696c607319cd9f61f348da22b44b78572ac
1,717
py
Python
7.part2.py
elp2/advent_of_code_2020
71e12e25769aa7d5154213077ffae595ad9a4019
[ "Apache-2.0" ]
1
2021-12-02T15:19:36.000Z
2021-12-02T15:19:36.000Z
2020/7.part2.py
elp2/advent_of_code
600e2db9a7d5b576937c9b39c5c6805db406f57b
[ "Apache-2.0" ]
null
null
null
2020/7.part2.py
elp2/advent_of_code
600e2db9a7d5b576937c9b39c5c6805db406f57b
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict def return_default(): return 0 def dd(): return defaultdict(return_default) CHALLENGE_DAY = "7" REAL = open(CHALLENGE_DAY + ".txt").read() SAMPLE = open(CHALLENGE_DAY + ".sample2.txt").read() SAMPLE_EXPECTED = 126 # SAMPLE_EXPECTED = def parse_lines(raw): # Groups....
22.298701
81
0.559697
7985a799154b63263f8607f52010a611244697ec
386
py
Python
pythonit_toolkit/api/extensions.py
pythonitalia/pythonit-toolkit
373f703bff0b573c0aa9993868d5a4770d3a2dc1
[ "MIT" ]
56
2018-01-20T17:18:40.000Z
2022-03-28T22:42:04.000Z
toolkit/pythonit_toolkit/api/extensions.py
pythonitalia/pycon
14e03b2158916f9437fdbde70e48e5bf5266997e
[ "MIT" ]
2,029
2018-01-20T11:37:24.000Z
2022-03-31T04:10:51.000Z
pythonit_toolkit/api/extensions.py
pythonitalia/pythonit-toolkit
373f703bff0b573c0aa9993868d5a4770d3a2dc1
[ "MIT" ]
17
2018-03-17T09:44:28.000Z
2021-12-27T19:57:35.000Z
from sentry_sdk import add_breadcrumb from strawberry.extensions import Extension class SentryExtension(Extension): def on_request_start(self): add_breadcrumb( category="graphql", message=f""" {self.execution_context.operation_name or 'No operation name'} {self.execution_context.qu...
25.733333
62
0.658031
7985a7edbf1d4c74e46bbba84c0a5fb9c4f0afc8
999
py
Python
LeetCodeSolutions/LeetCode_0983.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
24
2020-03-28T06:10:25.000Z
2021-11-23T05:01:29.000Z
LeetCodeSolutions/LeetCode_0983.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
null
null
null
LeetCodeSolutions/LeetCode_0983.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
8
2020-05-18T02:43:16.000Z
2021-05-24T18:11:38.000Z
class Solution: def mincostTickets(self, days: List[int], costs: List[int]) -> int: from functools import lru_cache durations = [1, 7, 30] days = set(days) @lru_cache(None) def dp(i): if i > 365: return 0 if i in days: ...
26.289474
77
0.446446
7985a80d4e7a4e634ef14215f4f1813eda164f50
3,508
py
Python
tests/integration/test_tensorflow_v2_2_savedmodel_artifact.py
yubozhao/BentoML
0d56b35e7a6969947c77a8cea685190f2196440f
[ "Apache-2.0" ]
2
2019-04-24T07:36:20.000Z
2021-07-28T04:47:32.000Z
tests/integration/test_tensorflow_v2_2_savedmodel_artifact.py
yubozhao/BentoML
0d56b35e7a6969947c77a8cea685190f2196440f
[ "Apache-2.0" ]
2
2020-08-13T05:55:02.000Z
2020-08-27T23:58:39.000Z
tests/integration/test_tensorflow_v2_2_savedmodel_artifact.py
yubozhao/BentoML
0d56b35e7a6969947c77a8cea685190f2196440f
[ "Apache-2.0" ]
null
null
null
# pylint: disable=redefined-outer-name import json import numpy as np import pytest import tensorflow as tf import bentoml from tests.bento_service_examples.tensorflow_classifier import Tensorflow2Classifier from tests.integration.api_server.conftest import ( build_api_server_docker_image, export_service_bund...
29.478992
87
0.694128
7985a89fc894ed00d3ce51058d64c5034dfdc5fe
353
py
Python
src/zip_code_app/core.py
mykysyk/github-actions-test
bb441a475fc6a242fb1b868b78daa28fa3db6b98
[ "Apache-2.0" ]
null
null
null
src/zip_code_app/core.py
mykysyk/github-actions-test
bb441a475fc6a242fb1b868b78daa28fa3db6b98
[ "Apache-2.0" ]
null
null
null
src/zip_code_app/core.py
mykysyk/github-actions-test
bb441a475fc6a242fb1b868b78daa28fa3db6b98
[ "Apache-2.0" ]
null
null
null
import requests import sys import json URL = 'http://zipcloud.ibsnet.co.jp/api/search?zipcode={}' def zip_api(zip_code): r = requests.get(URL.format(zip_code)) return r.json() def main(): zip_code = sys.argv[1] zip_json = zip_api(zip_code) print(json.dumps(zip_json, ensure_ascii=False)) if __...
16.809524
58
0.677054
7985a8b229eee494ca042e019c34c42469e8bfa6
10,023
py
Python
bdbag/__init__.py
craig-willis/bdbag
48519045836e0cdccb254b4613090f224c556d66
[ "Apache-2.0" ]
39
2018-04-13T16:36:39.000Z
2022-02-11T08:59:35.000Z
bdbag/__init__.py
craig-willis/bdbag
48519045836e0cdccb254b4613090f224c556d66
[ "Apache-2.0" ]
30
2018-03-30T23:05:41.000Z
2022-02-24T13:38:52.000Z
bdbag/__init__.py
craig-willis/bdbag
48519045836e0cdccb254b4613090f224c556d66
[ "Apache-2.0" ]
18
2018-05-14T12:50:41.000Z
2021-11-25T15:50:19.000Z
# # Copyright 2016 University of Southern California # # 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...
36.447273
117
0.62606
7985a903e176946d83d4af18f00549d4566a1ca0
19,821
py
Python
classification/crop_detections.py
bvid/CameraTraps
9841bf2b7c0939116e7041810463bc7dcd0fe488
[ "MIT" ]
null
null
null
classification/crop_detections.py
bvid/CameraTraps
9841bf2b7c0939116e7041810463bc7dcd0fe488
[ "MIT" ]
null
null
null
classification/crop_detections.py
bvid/CameraTraps
9841bf2b7c0939116e7041810463bc7dcd0fe488
[ "MIT" ]
null
null
null
r""" Given a detections JSON file from MegaDetector, crops the bounding boxes above a certain confidence threshold. This script takes as input a detections JSON file, usually the output of detection/run_tf_detector_batch.py or the output of the Batch API in the "Batch processing API output format". See https://github...
41.2079
84
0.666969
7985aa62c73831eb33d9d32a1f842cec47e670ca
14,453
py
Python
instabot_py/__main__.py
harioptimus/instabot
08c04b8b4ea5e1d8eee413dc616ff0b85305a72e
[ "MIT" ]
null
null
null
instabot_py/__main__.py
harioptimus/instabot
08c04b8b4ea5e1d8eee413dc616ff0b85305a72e
[ "MIT" ]
null
null
null
instabot_py/__main__.py
harioptimus/instabot
08c04b8b4ea5e1d8eee413dc616ff0b85305a72e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import configparser import json import os import re import sys if os.name != "nt": from blessings import Terminal OS_IS_NT = False TERM = Terminal() else: OS_IS_NT = True from instabot_py import InstaBot python_version_test = f"If yo...
36.1325
1,015
0.508199
7985aa9de5bca2408f25bea6732788f3d1ceacb2
4,590
py
Python
accelbyte_py_sdk/api/iam/models/model_upgrade_headless_account_request.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/iam/models/model_upgrade_headless_account_request.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/iam/models/model_upgrade_headless_account_request.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-iam-service (5.10.1) # pylint: disable=dup...
33.26087
223
0.639216
7985ab6a027b8fdc137a3ad5cfbd5f9d40c420e6
3,774
py
Python
tensorflow_probability/python/internal/backend/numpy/__init__.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
2
2019-10-30T04:45:07.000Z
2019-10-30T04:45:08.000Z
tensorflow_probability/python/internal/backend/numpy/__init__.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/backend/numpy/__init__.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
60.870968
116
0.833068
7985acaac0d6354e1bf5bdf6d7fe621b801f1e79
1,747
py
Python
nicos_mlz/poli/setups/table.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/poli/setups/table.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/poli/setups/table.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'POLI sample table' group = 'lowlevel' includes = ['alias_sth'] tango_base = 'tango://phys.poli.frm2:10000/poli/' s7_motor = tango_base + 's7_motor/' devices = dict( omega = device('nicos.devices.entangle.MotorAxis', description = 'table omega axis', tangodevice = s7_motor + 'omega...
27.296875
55
0.537493
7985acb1818bff980099dcd7adecc541f3df3960
425
py
Python
assignment_day_16.py
anjali0503/Letsupgrade_Advance_Python_Django
40e9468607b94d4aab70ca760f3b2e62cd693dc3
[ "Apache-2.0" ]
null
null
null
assignment_day_16.py
anjali0503/Letsupgrade_Advance_Python_Django
40e9468607b94d4aab70ca760f3b2e62cd693dc3
[ "Apache-2.0" ]
null
null
null
assignment_day_16.py
anjali0503/Letsupgrade_Advance_Python_Django
40e9468607b94d4aab70ca760f3b2e62cd693dc3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Assignment Day : 16 Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1vYBTj3I1E9nBDey92WUdI7cNGA3HlUOc """ import requests import re url="https://study-ccna.com/classes-of-ip-addresses/" a=requests.get(url) data_ip=a.text ...
23.611111
77
0.703529
7985acec69f8b2f3882852663cb92b154c1022e0
24,540
py
Python
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[de_CH-2013] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
32
2019-04-12T08:01:34.000Z
2022-02-28T04:41:50.000Z
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[de_CH-2013] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
74
2019-07-09T16:35:20.000Z
2022-03-09T16:41:34.000Z
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[de_CH-2013] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
20
2019-01-28T07:41:02.000Z
2022-02-16T02:38:57.000Z
[ { 'date': '2013-01-01', 'description': 'Neujahrstag', 'locale': 'de-CH', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2013-01-02', 'description': 'Berchtoldstag', 'locale': 'de-CH', 'notes': '', 'region': 'BE'...
21.871658
45
0.364996
7985ad686d8548fdd89dfc1e600c6911628ec78a
20
py
Python
checkov/version.py
iona-evans/checkov
24d03ac055a0342dd0932927e792f4507a905d47
[ "Apache-2.0" ]
null
null
null
checkov/version.py
iona-evans/checkov
24d03ac055a0342dd0932927e792f4507a905d47
[ "Apache-2.0" ]
null
null
null
checkov/version.py
iona-evans/checkov
24d03ac055a0342dd0932927e792f4507a905d47
[ "Apache-2.0" ]
null
null
null
version = '2.0.130'
10
19
0.6
7985aed407a4f50fdbd1a4629b143d53434e53d5
407
py
Python
project/project/wsgi.py
arina-chekoh/el
63f7d024f79b4e1648dd58668d11d0e3d3fe2b5a
[ "BSD-2-Clause" ]
null
null
null
project/project/wsgi.py
arina-chekoh/el
63f7d024f79b4e1648dd58668d11d0e3d3fe2b5a
[ "BSD-2-Clause" ]
null
null
null
project/project/wsgi.py
arina-chekoh/el
63f7d024f79b4e1648dd58668d11d0e3d3fe2b5a
[ "BSD-2-Clause" ]
null
null
null
""" WSGI config for project 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault(...
23.941176
79
0.7543
7985af0d24c80bcf38252f07379ba86da05b6b99
1,065
py
Python
smbl/prog/plugins/twobittofa.py
karel-brinda/snakemake-lib
5922fa2fc4060d86172e991361a1cceb0af51af8
[ "MIT" ]
26
2015-03-16T03:37:02.000Z
2021-01-18T17:34:16.000Z
smbl/prog/plugins/twobittofa.py
karel-brinda/smbl
5922fa2fc4060d86172e991361a1cceb0af51af8
[ "MIT" ]
12
2015-02-05T10:57:16.000Z
2016-06-07T18:09:57.000Z
smbl/prog/plugins/twobittofa.py
karel-brinda/snakemake-lib
5922fa2fc4060d86172e991361a1cceb0af51af8
[ "MIT" ]
6
2015-06-03T20:06:49.000Z
2020-12-13T09:48:03.000Z
import smbl import snakemake import os from ._program import * TWOBITTOFA = get_bin_file_path("twoBitToFa") ########################################## ########################################## class TwoBitToFa(Program): @classmethod def get_installation_files(cls): return [ TWOBITTOFA ...
27.307692
114
0.656338
7985afa28cca6211e8e09cd230472f0aa721eef9
4,441
py
Python
apps/index/views.py
Freen247/dj_blog
f7df1a7b101d41835a334b78cddf3570968799e4
[ "Apache-2.0" ]
51
2020-09-28T09:41:03.000Z
2022-03-19T08:25:19.000Z
apps/index/views.py
Freen247/dj_blog
f7df1a7b101d41835a334b78cddf3570968799e4
[ "Apache-2.0" ]
17
2020-09-24T10:26:40.000Z
2022-03-12T00:49:05.000Z
apps/index/views.py
Freen247/django_blogback
f7df1a7b101d41835a334b78cddf3570968799e4
[ "Apache-2.0" ]
11
2020-10-10T01:23:09.000Z
2022-02-08T17:06:09.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # __author__ : stray_camel # __date__: 2020/05/26 12:40:21 from django.http import JsonResponse from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_POST from django.shortcuts import render from django.views import generic ...
29.805369
92
0.66449
7985b0a106576ee6b5211851226f7453d014fcc6
2,447
py
Python
Chapter08/01-chapter-content/contours_hu_moments.py
yaojh01/Mastering-OpenCV-4-with-Python
e8f83e314b8ed638edb6515967cfb24361b787af
[ "MIT" ]
2
2021-06-29T22:00:47.000Z
2021-06-30T02:46:19.000Z
Chapter08/01-chapter-content/contours_hu_moments.py
yaojh01/Mastering-OpenCV-4-with-Python
e8f83e314b8ed638edb6515967cfb24361b787af
[ "MIT" ]
null
null
null
Chapter08/01-chapter-content/contours_hu_moments.py
yaojh01/Mastering-OpenCV-4-with-Python
e8f83e314b8ed638edb6515967cfb24361b787af
[ "MIT" ]
1
2019-10-03T20:34:43.000Z
2019-10-03T20:34:43.000Z
""" Hu moments calculation """ # Import required packages: import cv2 from matplotlib import pyplot as plt def centroid(moments): """Returns centroid based on moments""" x_centroid = round(moments['m10'] / moments['m00']) y_centroid = round(moments['m01'] / moments['m00']) return x_centroid, y_centr...
27.188889
89
0.689007
7985b17b7734d5d6db6f6a05c3aab72bf1738e3e
1,166
bzl
Python
new_rules/buf_binaries.bzl
shawntabai/bufzel
c27e6fc5e5cc00b3cc08ff6320a16a6bfaf4ac6a
[ "Apache-2.0" ]
null
null
null
new_rules/buf_binaries.bzl
shawntabai/bufzel
c27e6fc5e5cc00b3cc08ff6320a16a6bfaf4ac6a
[ "Apache-2.0" ]
null
null
null
new_rules/buf_binaries.bzl
shawntabai/bufzel
c27e6fc5e5cc00b3cc08ff6320a16a6bfaf4ac6a
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") _BUF_VERSION = "v0.56.0" _BUF_BINARIES = { "buf_darwin_x86_64": { "asset": "buf-Darwin-x86_64", "sha256": "982629af4a7acdef13edff90f41349b03b44f43dd480d8e5e38fb86241492ee7", }, "buf_linux_x86_64": { "asset": "buf-Linu...
29.897436
88
0.698113
7985b19d0e893d5630c17e7309f2e0ad3b34ff0f
585
py
Python
test/binary_heap_clear_test.py
GrowingWithTheWeb/py-data-structures
e8ce7a5836d4f510f71ddf0751932015b94326f5
[ "MIT" ]
null
null
null
test/binary_heap_clear_test.py
GrowingWithTheWeb/py-data-structures
e8ce7a5836d4f510f71ddf0751932015b94326f5
[ "MIT" ]
8
2015-08-03T08:18:00.000Z
2015-08-03T08:19:51.000Z
test/binary_heap_clear_test.py
GrowingWithTheWeb/py-data-structures
e8ce7a5836d4f510f71ddf0751932015b94326f5
[ "MIT" ]
null
null
null
import unittest import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'datastructure')) import binary_heap class BinaryHeapClearTest(unittest.TestCase): def test_sets_heaps_size_to_zero(self): heap = binary_heap.BinaryHeap() heap.insert(1) heap.insert(2) heap.insert...
24.375
84
0.721368
7985b25398a7511a22f00c77fd35f26a6a084cd1
3,988
py
Python
game.py
vintagegrey/Asteroids
fff3c80d63698f9f06233918d5603163e92a7abe
[ "MIT" ]
null
null
null
game.py
vintagegrey/Asteroids
fff3c80d63698f9f06233918d5603163e92a7abe
[ "MIT" ]
null
null
null
game.py
vintagegrey/Asteroids
fff3c80d63698f9f06233918d5603163e92a7abe
[ "MIT" ]
null
null
null
import pygame, sys, random from data.source.player import Player, PlayerProjectile from data.source.enemy import Asteroid, Alien, AlienProjectile from data.source.spacefx import SpaceFX from data.source.debugmenu import DebugMenu pygame.init() pygame.display.set_caption("Asteroids!") D_WIDTH = 500 D_HEIGHT...
33.79661
103
0.63014
7985b3244934cb52182423f70e3c6d9f12821938
9,509
py
Python
sbysrc/sby_engine_btor.py
jix/sby
fa5d5ad831dcbea08ea1d9d6ff81df697183eaa1
[ "0BSD" ]
14
2021-12-22T23:59:18.000Z
2022-03-26T14:13:18.000Z
sbysrc/sby_engine_btor.py
jix/sby
fa5d5ad831dcbea08ea1d9d6ff81df697183eaa1
[ "0BSD" ]
13
2022-01-11T18:07:40.000Z
2022-03-31T10:42:19.000Z
sbysrc/sby_engine_btor.py
jix/sby
fa5d5ad831dcbea08ea1d9d6ff81df697183eaa1
[ "0BSD" ]
2
2022-03-08T12:52:09.000Z
2022-03-21T17:14:36.000Z
# # SymbiYosys (sby) -- Front-end for Yosys-based formal verification flows # # Copyright (C) 2016 Claire Xenia Wolf <claire@yosyshq.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this per...
42.075221
284
0.590809
7985b55fe305a7b1fe4286a127927ed19ce90da3
5,955
py
Python
rllib/agents/dqn/r2d2.py
linyiyue/ray
90d2456ec70270a1f894ec3ef6f3004533859e03
[ "Apache-2.0" ]
3
2021-07-22T17:03:33.000Z
2021-09-20T15:46:25.000Z
rllib/agents/dqn/r2d2.py
linyiyue/ray
90d2456ec70270a1f894ec3ef6f3004533859e03
[ "Apache-2.0" ]
77
2021-02-13T08:07:09.000Z
2022-03-19T07:08:45.000Z
rllib/agents/dqn/r2d2.py
linyiyue/ray
90d2456ec70270a1f894ec3ef6f3004533859e03
[ "Apache-2.0" ]
2
2021-12-12T14:51:29.000Z
2022-01-23T00:14:00.000Z
""" Recurrent Experience Replay in Distributed Reinforcement Learning (R2D2) ======================================================================== [1] Recurrent Experience Replay in Distributed Reinforcement Learning - S Kapturowski, G Ostrovski, J Quan, R Munos, W Dabney - 2019, DeepMind This file defines the...
39.437086
89
0.675399
7985b6a3e13900133a23822dc9c24e10a0e45d3d
6,869
py
Python
test/language/bitmask_types/python/UInt64BitmaskTest.py
chenpeihua/zserio
c021d6f943f25c2eb7d91712eb7bd5de13f9c8bc
[ "BSD-3-Clause" ]
null
null
null
test/language/bitmask_types/python/UInt64BitmaskTest.py
chenpeihua/zserio
c021d6f943f25c2eb7d91712eb7bd5de13f9c8bc
[ "BSD-3-Clause" ]
null
null
null
test/language/bitmask_types/python/UInt64BitmaskTest.py
chenpeihua/zserio
c021d6f943f25c2eb7d91712eb7bd5de13f9c8bc
[ "BSD-3-Clause" ]
null
null
null
import unittest import zserio from testutils import getZserioApi class UInt64BitmaskTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "bitmask_types.zs").uint64_bitmask def testEmptyConstructor(self): permission = self.api.Permission() se...
45.793333
108
0.695734
7985b917d0944bb4b70b612e9616542e2059bc02
21
py
Python
plugins/snowflake/dbt/adapters/snowflake/__version__.py
MondeSinxi/dbt
03010ecde71634d11f80949018c39a63070f1008
[ "Apache-2.0" ]
1
2021-04-08T03:33:33.000Z
2021-04-08T03:33:33.000Z
plugins/snowflake/dbt/adapters/snowflake/__version__.py
MondeSinxi/dbt
03010ecde71634d11f80949018c39a63070f1008
[ "Apache-2.0" ]
null
null
null
plugins/snowflake/dbt/adapters/snowflake/__version__.py
MondeSinxi/dbt
03010ecde71634d11f80949018c39a63070f1008
[ "Apache-2.0" ]
1
2021-06-04T16:00:44.000Z
2021-06-04T16:00:44.000Z
version = '0.18.0b1'
10.5
20
0.619048
7985b93bdea3547c182ff2b497ce1a8918cea961
2,257
py
Python
configs/implus/cifar_resnet50.py
implus/mmclassification
9dea853e3dfd52106e2aea6760fef1107045a3ca
[ "Apache-2.0" ]
null
null
null
configs/implus/cifar_resnet50.py
implus/mmclassification
9dea853e3dfd52106e2aea6760fef1107045a3ca
[ "Apache-2.0" ]
null
null
null
configs/implus/cifar_resnet50.py
implus/mmclassification
9dea853e3dfd52106e2aea6760fef1107045a3ca
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='CutMixImageClassifier', cutmix_prob = 0.5, cutmix_beta = 1., backbone=dict( type='ResNet_CIFAR', depth=50, num_stages=4, out_indices=(3, ), style='pytorch'), neck=dict(type='GlobalAveragePooling'), head=dict( ty...
29.311688
76
0.662827
7985b95d17ab799648a58356c0e80f9ed146fa54
2,974
py
Python
oscar/lib/python2.7/site-packages/django/contrib/sessions/backends/signed_cookies.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/sessions/backends/signed_cookies.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/sessions/backends/signed_cookies.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib.sessions.backends.base import SessionBase from django.core import signing class SessionStore(SessionBase): def load(self): """ We load the data from the key itself instead of fetching from some external data store. Opposite of...
34.581395
79
0.591796
7985b9c23245be1d72f3858a304ca54266ea7561
52,423
py
Python
tests/ut/python/ops/test_tensor_slice.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
tests/ut/python/ops/test_tensor_slice.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
tests/ut/python/ops/test_tensor_slice.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
44.276182
119
0.585545
7985bb07510748089dc81197d8d812867e1617af
1,651
py
Python
app/backend/common/classes/AES_ECB_Wrapper.py
karstenv/nmp-arm
47e45f0391820000f461ab6e994e20eacfffb457
[ "Apache-2.0" ]
2
2019-08-12T22:06:23.000Z
2019-10-22T20:50:32.000Z
app/backend/common/classes/AES_ECB_Wrapper.py
karstenv/nmp-arm
47e45f0391820000f461ab6e994e20eacfffb457
[ "Apache-2.0" ]
12
2019-07-10T18:11:31.000Z
2022-02-10T08:47:57.000Z
app/backend/common/classes/AES_ECB_Wrapper.py
karstenv/nmp-arm
47e45f0391820000f461ab6e994e20eacfffb457
[ "Apache-2.0" ]
6
2019-07-03T21:24:11.000Z
2021-04-29T17:31:34.000Z
# # django imports # from django.conf import settings # # sys imports # from Crypto.Cipher import AES import base64 # import logging # logger = logging.getLogger( __file__ ) class AESWrapper(object): ''' based on: http://stackoverflow.com/questions/12524994/encrypt-decrypt-using-pycrypto-aes-256 ''' ...
28.964912
109
0.582071
7985bb825b8045bdcc15d21acffbc7b314e2c018
276
py
Python
DMOJ/CCC/p day.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
3
2021-05-15T08:18:09.000Z
2021-05-17T04:41:57.000Z
DMOJ/CCC/p day.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
DMOJ/CCC/p day.py
eddiegz/Personal-C
f7869826216e5c665f8f646502141f0dc680e545
[ "MIT" ]
null
null
null
pie=int(input()) pe=int(input()) dic={} def pi(n,k,mi): if k==1 or n==k: return 1 if (n,k,mi) in dic: return dic[(n,k,mi)] t=0 for i in range(mi,n//k+1): t+=pi(n-i,k-1,i) dic[(n,k,mi)]=t return t print(pi(pie,pe,1))
19.714286
31
0.456522
7985bb966bbbc2bea73fc65ec3a7d48370d511d3
3,378
py
Python
enseignant/migrations/0001_initial.py
sandratraJovanie/torolalagna
5984b2ef0ff1537ae7ce2385306783ae7a1c15e0
[ "Apache-2.0" ]
null
null
null
enseignant/migrations/0001_initial.py
sandratraJovanie/torolalagna
5984b2ef0ff1537ae7ce2385306783ae7a1c15e0
[ "Apache-2.0" ]
null
null
null
enseignant/migrations/0001_initial.py
sandratraJovanie/torolalagna
5984b2ef0ff1537ae7ce2385306783ae7a1c15e0
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-08 15:45 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('etudiant', '0001_initial'), ('structure', '0001_initial'), ...
50.41791
178
0.605388
7985bf3529aa5d2fe0ee9a691bd0c830a83faba2
300
py
Python
manage.py
conradg/rubato
4168c3117819ce88116391d15a1f4bfbc6bfd632
[ "MIT", "Unlicense" ]
null
null
null
manage.py
conradg/rubato
4168c3117819ce88116391d15a1f4bfbc6bfd632
[ "MIT", "Unlicense" ]
null
null
null
manage.py
conradg/rubato
4168c3117819ce88116391d15a1f4bfbc6bfd632
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "reinhardt.settings") print (os.environ["DJANGO_SETTINGS_MODULE"]) from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
27.272727
73
0.77
7985bf61a4d8956d4a67aed06dc0c947e5fded7e
2,778
py
Python
Lib/test/test_opcodes.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
5
2020-06-30T05:06:40.000Z
2021-05-24T08:38:33.000Z
Lib/test/test_opcodes.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_opcodes.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
2
2015-10-01T18:28:20.000Z
2020-09-09T16:25:27.000Z
# Python test set -- part 2, opcodes from test.test_support import run_unittest import unittest class OpcodeTest(unittest.TestCase): def test_try_inside_for_loop(self): n = 0 for i in range(10): n = n+i try: 1/0 except NameError: pass except ZeroDiv...
23.74359
47
0.524478
7985bfb1a7eadc8f7d6d41a9b75d797ace757591
523
py
Python
lesson-04/bmr_v1.0.py
hemiaoio/pylearning
4b3885ed7177db4e6e03da80dd9ed69719c8d866
[ "MIT" ]
1
2018-11-11T03:44:02.000Z
2018-11-11T03:44:02.000Z
lesson-04/bmr_v1.0.py
hemiaoio/learn-python
4b3885ed7177db4e6e03da80dd9ed69719c8d866
[ "MIT" ]
null
null
null
lesson-04/bmr_v1.0.py
hemiaoio/learn-python
4b3885ed7177db4e6e03da80dd9ed69719c8d866
[ "MIT" ]
null
null
null
""" 功能:BMR计算器 版本:v1.0 日期:2018/8/20 """ def main(): # 性别 gender = '男' # 体重(kg) weight = 70 # 身高(cm) height = 175 # 年龄 age = 25 if (gender == '男'): # 男性 bmr = 13.7 * weight + 5.0 * height - 6.8 * age + 66 elif (gender == '女'): # 女性 ...
13.410256
59
0.403442
7985bff75f50a8f9779628358f22cf7081846563
1,990
py
Python
examples/adwords/v201601/reporting/download_criteria_report_with_awql.py
fosterwei/adwords-keyword-planner-API-googleads-python-lib
b80b8b3741a55f1d00c5974bc58f92540663c6f6
[ "Apache-2.0" ]
1
2020-05-23T11:32:32.000Z
2020-05-23T11:32:32.000Z
examples/adwords/v201601/reporting/download_criteria_report_with_awql.py
fosterwei/adwords-keyword-planner-API-googleads-python-lib
b80b8b3741a55f1d00c5974bc58f92540663c6f6
[ "Apache-2.0" ]
null
null
null
examples/adwords/v201601/reporting/download_criteria_report_with_awql.py
fosterwei/adwords-keyword-planner-API-googleads-python-lib
b80b8b3741a55f1d00c5974bc58f92540663c6f6
[ "Apache-2.0" ]
2
2018-04-20T02:16:33.000Z
2020-11-12T20:58:54.000Z
#!/usr/bin/python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
33.166667
78
0.731658
7985c006f49e25a592a73b65b9d6a52220ede32e
642
py
Python
frappe/printing/doctype/print_style/print_style.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
3,755
2015-01-06T07:47:43.000Z
2022-03-31T20:54:23.000Z
frappe/printing/doctype/print_style/print_style.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
7,369
2015-01-01T19:59:41.000Z
2022-03-31T23:02:05.000Z
frappe/printing/doctype/print_style/print_style.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
2,685
2015-01-07T17:51:03.000Z
2022-03-31T23:16:24.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and contributors # License: MIT. See LICENSE import frappe from frappe.model.document import Document class PrintStyle(Document): def validate(self): if (self.standard==1 and not frappe.local.conf.get("developer_mode") and not (frappe.flags.in...
27.913043
94
0.742991
7985c0647734976f645478715e3f44758de40d32
1,692
py
Python
lldb/test/API/commands/watchpoints/watchpoint_count/TestWatchpointCount.py
elizabethandrews/llvm
308498236c1c4778fdcba0bfbb556adf8aa333ea
[ "Apache-2.0" ]
305
2019-09-14T17:16:05.000Z
2022-03-31T15:05:20.000Z
lldb/test/API/commands/watchpoints/watchpoint_count/TestWatchpointCount.py
elizabethandrews/llvm
308498236c1c4778fdcba0bfbb556adf8aa333ea
[ "Apache-2.0" ]
410
2019-06-06T20:52:32.000Z
2022-01-18T14:21:48.000Z
lldb/test/API/commands/watchpoints/watchpoint_count/TestWatchpointCount.py
elizabethandrews/llvm
308498236c1c4778fdcba0bfbb556adf8aa333ea
[ "Apache-2.0" ]
50
2019-05-10T21:12:24.000Z
2022-01-21T06:39:47.000Z
import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestWatchpointCount(TestBase): mydir = TestBase.compute_mydir(__file__) NO_DEBUG_INFO_TESTCASE = True def setUp(self): TestBase.setUp(self) @skipIf(oslist=["linu...
37.6
112
0.653073
7985c221c2dde7fe73c6c7f93865fb35c1144a16
649
py
Python
class1_ch6_1.py
singhgurender/pynet_testx
eccd76cf405920f817cd50d25f8f295173a26992
[ "Apache-2.0" ]
null
null
null
class1_ch6_1.py
singhgurender/pynet_testx
eccd76cf405920f817cd50d25f8f295173a26992
[ "Apache-2.0" ]
null
null
null
class1_ch6_1.py
singhgurender/pynet_testx
eccd76cf405920f817cd50d25f8f295173a26992
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals, print_function import yaml import json def main(): yaml_file = 'my_test_1.yml' json_file = 'my_test_1.json' my_dict = { 'ip_addr': '172.31.200.1', 'platform': 'cisco_ios', 'vendor': 'cisco', 'model': '1921' } my_list ...
18.027778
61
0.548536
7985c27255fe53da9e0732d80aed0fe6258261bb
1,365
py
Python
binary/reference_objects.py
kuba72ch/hazelcast-client-protocol
ecb65928945f31938b37561d7e841ef55bd9cc62
[ "Apache-2.0" ]
null
null
null
binary/reference_objects.py
kuba72ch/hazelcast-client-protocol
ecb65928945f31938b37561d7e841ef55bd9cc62
[ "Apache-2.0" ]
null
null
null
binary/reference_objects.py
kuba72ch/hazelcast-client-protocol
ecb65928945f31938b37561d7e841ef55bd9cc62
[ "Apache-2.0" ]
null
null
null
class UuidHolder: def __init__(self, most_sig_bits, least_sig_bits): self.most_sig_bits = most_sig_bits self.least_sig_bits = least_sig_bits BOOLEAN = True BYTE = 113 INT = 25 LONG = -50992225 UUID = UuidHolder(123456789, 987654321) BYTEARRAY = bytearray([BYTE]) LONGARRAY = [LONG] STRING = "...
16.25
54
0.493773
7985c2e5f85799ba2c87dc4ceb5afd8cf8f04eca
2,539
py
Python
sdk/powerbidedicated/azure-mgmt-powerbidedicated/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/powerbidedicated/azure-mgmt-powerbidedicated/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/powerbidedicated/azure-mgmt-powerbidedicated/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
34.310811
91
0.606932