hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
8fa21bf9469d7e21ccf274eee48acfaab6db7cf7
13,315
py
Python
onnxsim/onnx_simplifier.py
Wheest/onnx-simplifier
70e3b52aadbc73fe01029dc7ba0d4965d8fc1a8c
[ "Apache-2.0" ]
2
2020-06-24T04:22:03.000Z
2020-08-04T08:32:04.000Z
onnxsim/onnx_simplifier.py
fedral/onnx-simplifier
70e3b52aadbc73fe01029dc7ba0d4965d8fc1a8c
[ "Apache-2.0" ]
null
null
null
onnxsim/onnx_simplifier.py
fedral/onnx-simplifier
70e3b52aadbc73fe01029dc7ba0d4965d8fc1a8c
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from typing import List, Dict, Union, Optional, Tuple import copy import onnx # type: ignore import onnx.helper # type: ignore import onnx.optimizer # type: ignore import onnx.shape_inference # type: ignore import onnx.numpy_helper import onnxruntime as rt # type: ignore impo...
41.350932
123
0.646113
5054b8981bd6ac93ad63782b615a7b2198ba4051
5,258
py
Python
userbot/modules/qrcode.py
AlhamFadilah/UserBotTG
23a7d7d0500d3dc86c240636c3e5b93a376d0df6
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/qrcode.py
AlhamFadilah/UserBotTG
23a7d7d0500d3dc86c240636c3e5b93a376d0df6
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-07-31T10:28:19.000Z
2020-07-31T10:28:19.000Z
userbot/modules/qrcode.py
AlhamFadilah/UserBotTG
23a7d7d0500d3dc86c240636c3e5b93a376d0df6
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # # The entire source code is OSSRPL except 'makeqr and getqr' which is MPL # License: MPL and OSSRPL """Userbot module c...
35.527027
82
0.624952
1e6b314e68fb542dd7f77966135e6d01359a3871
1,185
py
Python
examples/federated_learning/yolov5_coco128_mistnet/aggregate.py
JoeyHwong-gk/sedna
e110ac77b1141b83eb72df3c49ab87682d7061f5
[ "Apache-2.0" ]
1
2021-06-15T02:08:45.000Z
2021-06-15T02:08:45.000Z
examples/federated_learning/yolov5_coco128_mistnet/aggregate.py
JoeyHwong-gk/sedna
e110ac77b1141b83eb72df3c49ab87682d7061f5
[ "Apache-2.0" ]
null
null
null
examples/federated_learning/yolov5_coco128_mistnet/aggregate.py
JoeyHwong-gk/sedna
e110ac77b1141b83eb72df3c49ab87682d7061f5
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
31.184211
84
0.74346
5d89259cc27c5a14ab880086dfcd71eb41fbc74c
88
py
Python
nsq/sockets/deflate.py
dlecocq/nsq-py
d7698ffaea015ef291cc04b32f9cb45ed659125d
[ "MIT" ]
41
2015-03-29T18:19:51.000Z
2021-07-20T04:26:55.000Z
nsq/sockets/deflate.py
dlecocq/nsq-py
d7698ffaea015ef291cc04b32f9cb45ed659125d
[ "MIT" ]
13
2015-04-21T22:21:16.000Z
2021-06-02T00:29:13.000Z
nsq/sockets/deflate.py
dlecocq/nsq-py
d7698ffaea015ef291cc04b32f9cb45ed659125d
[ "MIT" ]
15
2015-04-21T20:36:05.000Z
2020-10-28T11:29:51.000Z
'''Wraps a socket in Deflate compression''' raise ImportError('Deflate not supported')
22
43
0.761364
25faa1441bafd84653f16905f5196becc099991f
401
py
Python
clean_kernels.py
DarkMatterAI/mrl
e000c3570d4461c3054c882697cce55217ede552
[ "MIT" ]
4
2021-11-16T09:29:55.000Z
2021-12-27T17:55:32.000Z
clean_kernels.py
DarkMatterAI/mrl
e000c3570d4461c3054c882697cce55217ede552
[ "MIT" ]
null
null
null
clean_kernels.py
DarkMatterAI/mrl
e000c3570d4461c3054c882697cce55217ede552
[ "MIT" ]
3
2021-11-16T09:41:41.000Z
2021-12-27T17:55:33.000Z
import json import os paths = ['nbs/tutorials/', 'nbs/'] for path in paths: files = [i for i in os.listdir(path) if i[-5:]=='ipynb'] for file in files: j = json.load(open(f'{path}{file}')) j['metadata']['kernelspec'] = {'display_name': 'Python 3', 'language': 'python', 'name': 'pyt...
25.0625
107
0.538653
beb4327bff90332bf13b33c0207e15bffdc0634e
622
py
Python
Cards/templatetags/custom_tags.py
vabene1111/LearningCards
00539c8d5d3063eecc306dd68eb3eeeac89dba9f
[ "MIT" ]
1
2020-03-18T15:10:42.000Z
2020-03-18T15:10:42.000Z
Cards/templatetags/custom_tags.py
vabene1111/LearningCards
00539c8d5d3063eecc306dd68eb3eeeac89dba9f
[ "MIT" ]
1
2020-02-22T20:03:02.000Z
2020-02-23T16:31:56.000Z
Cards/templatetags/custom_tags.py
vabene1111/LearningCards
00539c8d5d3063eecc306dd68eb3eeeac89dba9f
[ "MIT" ]
null
null
null
from django import template import markdown as md import bleach from bleach_whitelist import markdown_tags, markdown_attrs from Cards.helper.mdx_extension import MarkdownFormatExtension register = template.Library() @register.filter(name='get_class') def get_class(value): return value.__class__.__name__ @regi...
28.272727
119
0.757235
e8598a551df5a465963471a238131a7e37ba54e1
8,010
py
Python
axelrod/plot.py
mattshirtliffe/Axelrod
367a787e16541fda6e6076200805f5bb6a863973
[ "MIT" ]
null
null
null
axelrod/plot.py
mattshirtliffe/Axelrod
367a787e16541fda6e6076200805f5bb6a863973
[ "MIT" ]
null
null
null
axelrod/plot.py
mattshirtliffe/Axelrod
367a787e16541fda6e6076200805f5bb6a863973
[ "MIT" ]
1
2018-10-07T19:07:18.000Z
2018-10-07T19:07:18.000Z
from numpy import arange, median, nan_to_num import warnings matplotlib_installed = True try: import matplotlib import matplotlib.pyplot as plt import matplotlib.transforms as transforms from mpl_toolkits.axes_grid1 import make_axes_locatable except ImportError: matplotlib_installed = False except ...
33.797468
94
0.625094
559f9744d62b2642e3658d52d429a977ac7b2c05
994
py
Python
sdks/python/test/test_EmailVerificationRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_EmailVerificationRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_EmailVerificationRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
24.85
107
0.738431
b3e02eabff5ece3165aaa93e5b0fa4ab2e1aba2e
3,171
py
Python
examples/pendulum3.py
birkenfeld/python-gr
1d6cd36616a73c8e569b8348869e6e30f3830ec4
[ "RSA-MD" ]
null
null
null
examples/pendulum3.py
birkenfeld/python-gr
1d6cd36616a73c8e569b8348869e6e30f3830ec4
[ "RSA-MD" ]
null
null
null
examples/pendulum3.py
birkenfeld/python-gr
1d6cd36616a73c8e569b8348869e6e30f3830ec4
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python # -*- animation -*- """ 3D animation of a pendulum """ from numpy import sin, cos, sqrt, pi, array import time import gr import gr3 try: from time import perf_counter except ImportError: from time import clock as perf_counter g = 9.8 # gravitational constant def rk4(x, h, y, f): ...
28.567568
85
0.548407
89d66b348594f057da46376ff87c325aec69f94b
158
py
Python
tests/file_error.py
dionboles/cda-python
2e00d29931801bb977d20028cb4795195d550aa4
[ "Apache-2.0" ]
null
null
null
tests/file_error.py
dionboles/cda-python
2e00d29931801bb977d20028cb4795195d550aa4
[ "Apache-2.0" ]
null
null
null
tests/file_error.py
dionboles/cda-python
2e00d29931801bb977d20028cb4795195d550aa4
[ "Apache-2.0" ]
null
null
null
from cdapython import Q q1 = Q("identifier.system = 'GDC'") q6 = Q("File.identifier.system = 'GDC'") q16 = q6 print(q16.run(host="http://localhost:8080"))
17.555556
44
0.664557
c57dad39fffb31a8ef0d668578254f6ade10e240
602
py
Python
tests/unit/test_unpack_payload.py
ralphribeiro/facilita-DOU
e695ac0f58369d61fad2723bd5e52ecd80d0b33f
[ "MIT" ]
null
null
null
tests/unit/test_unpack_payload.py
ralphribeiro/facilita-DOU
e695ac0f58369d61fad2723bd5e52ecd80d0b33f
[ "MIT" ]
null
null
null
tests/unit/test_unpack_payload.py
ralphribeiro/facilita-DOU
e695ac0f58369d61fad2723bd5e52ecd80d0b33f
[ "MIT" ]
null
null
null
from os.path import exists, join from os import remove from zipfile import ZipFile from src.app.payload import unpack_payload def test_unpack_payload_given_path(temp_dir): file_name = 'file.txt' content = b'data test' path = join(temp_dir, file_name) with open(path, 'wb') as f: f.write(conten...
25.083333
45
0.672757
cf2f985a2d3383539537ef215ce190dc7eb7107d
37,079
py
Python
storage/tests/system.py
sorced-jim/google-cloud-python
239907085564ae5de8df6f7358b1379252516631
[ "Apache-2.0" ]
1
2021-07-15T14:09:37.000Z
2021-07-15T14:09:37.000Z
storage/tests/system.py
sorced-jim/google-cloud-python
239907085564ae5de8df6f7358b1379252516631
[ "Apache-2.0" ]
1
2021-06-25T15:16:57.000Z
2021-06-25T15:16:57.000Z
storage/tests/system.py
y1ngyang/google-cloud-python
1acc8c22664229b6681ff91654932998e611e1c2
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.340383
78
0.650287
c4f478ca4f9cf10ef8452424466ba4ad9e9d3a0a
33
py
Python
__init__.py
YusukeKambara/japan_horse_racing
05c2e06fe265c5744b908b8575df260db18a115b
[ "MIT" ]
null
null
null
__init__.py
YusukeKambara/japan_horse_racing
05c2e06fe265c5744b908b8575df260db18a115b
[ "MIT" ]
1
2021-12-13T20:32:18.000Z
2021-12-13T20:32:18.000Z
__init__.py
YusukeKambara/japan_horse_racing
05c2e06fe265c5744b908b8575df260db18a115b
[ "MIT" ]
null
null
null
from japan_horse_racing import *
16.5
32
0.848485
34d425dee737455cd36ac9ef2f462358c7ee8f1f
666
py
Python
src/cmcandy/Python_language_Answers/_0021.py
ch98road/leetcode
a9b4be54a169b30f6711809b892dd1f79f2a17e7
[ "MIT" ]
null
null
null
src/cmcandy/Python_language_Answers/_0021.py
ch98road/leetcode
a9b4be54a169b30f6711809b892dd1f79f2a17e7
[ "MIT" ]
null
null
null
src/cmcandy/Python_language_Answers/_0021.py
ch98road/leetcode
a9b4be54a169b30f6711809b892dd1f79f2a17e7
[ "MIT" ]
1
2020-11-26T03:01:12.000Z
2020-11-26T03:01:12.000Z
# Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode: head = ListNode() index = head while l1 is not None and l2 is not ...
25.615385
68
0.5
9c887a55b2dbebd940cdc3a33a3692c47d3f96c4
2,341
py
Python
python-syn/pyformance/reporters/opentsdb_reporter.py
harnitsignalfx/tf-synthetics
059e10b4e22d40899d7784fdc48a6f04c8eec9ec
[ "MIT" ]
null
null
null
python-syn/pyformance/reporters/opentsdb_reporter.py
harnitsignalfx/tf-synthetics
059e10b4e22d40899d7784fdc48a6f04c8eec9ec
[ "MIT" ]
1
2018-12-24T16:51:01.000Z
2018-12-24T16:51:01.000Z
pyformance/reporters/opentsdb_reporter.py
michalten/pyformance
34af1f230e3013b07a484c107a87dc61c0d79f42
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import sys from .reporter import Reporter import base64 import json if sys.version_info[0] > 2: import urllib.request as urllib import urllib.error as urlerror else: import urllib2 as urllib import urllib2 as urlerror class OpenTSDBReporte...
39.016667
117
0.576677
b46b3eab09f637ca23ed2961cf78d56f51aa9450
4,997
py
Python
qa/rpc-tests/wallet-hd.py
JoeGruffins/absolute
7dc6a34acbca84391e57ee754418f8251f99396e
[ "MIT" ]
9
2018-02-14T16:09:39.000Z
2021-02-01T02:15:51.000Z
qa/rpc-tests/wallet-hd.py
JoeGruffins/absolute
7dc6a34acbca84391e57ee754418f8251f99396e
[ "MIT" ]
4
2018-02-22T05:05:42.000Z
2018-05-29T09:10:10.000Z
qa/rpc-tests/wallet-hd.py
JoeGruffins/absolute
7dc6a34acbca84391e57ee754418f8251f99396e
[ "MIT" ]
11
2018-02-14T17:13:38.000Z
2018-04-28T13:43:59.000Z
#!/usr/bin/env python2 # coding=utf-8 # ^^^^^^^^^^^^ TODO remove when supporting only Python3 # Copyright (c) 2016 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 Hierarchical Deterministic walle...
43.833333
108
0.638983
6458da4c4bc0bdec37b45dfafdd7fd32a7c8f500
276
py
Python
dataset/dataset.py
CyberFuffa/backtrader-binance-bot
d9497228281f4b62ea271960d4f36a7071cd28f8
[ "MIT" ]
237
2019-04-08T06:26:52.000Z
2022-03-26T17:14:33.000Z
dataset/dataset.py
CyberFuffa/backtrader-binance-bot
d9497228281f4b62ea271960d4f36a7071cd28f8
[ "MIT" ]
8
2019-04-20T14:01:46.000Z
2021-03-06T21:44:22.000Z
dataset/dataset.py
CyberFuffa/backtrader-binance-bot
d9497228281f4b62ea271960d4f36a7071cd28f8
[ "MIT" ]
119
2019-04-26T08:50:03.000Z
2022-03-24T16:09:42.000Z
import backtrader as bt class CustomDataset(bt.feeds.GenericCSVData): params = ( ('time', -1), ('datetime', 0), ('open', 1), ('high', 2), ('low', 3), ('close', 4), ('volume', 5), ('openinterest', 6), )
18.4
45
0.431159
a6e3b675dfa51a4789138f774930a5853e1b16e7
17,802
py
Python
runtime/hetdesrun/runtime/engine/plain/workflow.py
pka1024/hetida-designer
3a191c512dfb37a897b89ab06a9f6ac18b3d9110
[ "MIT" ]
null
null
null
runtime/hetdesrun/runtime/engine/plain/workflow.py
pka1024/hetida-designer
3a191c512dfb37a897b89ab06a9f6ac18b3d9110
[ "MIT" ]
null
null
null
runtime/hetdesrun/runtime/engine/plain/workflow.py
pka1024/hetida-designer
3a191c512dfb37a897b89ab06a9f6ac18b3d9110
[ "MIT" ]
null
null
null
from typing import ( Protocol, Dict, Tuple, Any, List, Callable, Coroutine, Optional, Union, ) import logging from inspect import signature, Parameter from cached_property import cached_property # async compatible variant from pydantic import ValidationError from hetdesrun.da...
41.018433
100
0.647849
bdf8804fea3a0f51e9ad5fda4690bb876a6be2af
1,144
py
Python
WoC/34/Magic Cards.py
BlackVS/Hackerrank
017159a2354673dbca14e409e088798c9a54d7e1
[ "MIT" ]
null
null
null
WoC/34/Magic Cards.py
BlackVS/Hackerrank
017159a2354673dbca14e409e088798c9a54d7e1
[ "MIT" ]
null
null
null
WoC/34/Magic Cards.py
BlackVS/Hackerrank
017159a2354673dbca14e409e088798c9a54d7e1
[ "MIT" ]
null
null
null
#!/bin/python3 import sys from collections import * from itertools import * from sys import stdin input = stdin.readline #sys.stdin = open('G:\hackerrank\WoC\\34\\5. Magic cards\\t0.txt', 'r') def solve(): N,M,Q=map(int,input().split()) CMAX = M*(M+1)*(2*M+1)//6 maxl = M.bit_length() cards=[] for ...
25.422222
71
0.482517
14e25c187ac9d507547a8f8007ab34d29ac360f4
7,528
py
Python
kubernetes/client/models/v1beta1_controller_revision.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
1
2019-02-17T15:28:39.000Z
2019-02-17T15:28:39.000Z
kubernetes/client/models/v1beta1_controller_revision.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_controller_revision.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
31.366667
281
0.616897
9b9b36b5172eec6a60466972969fd09943dbabf9
5,296
py
Python
libraries/botbuilder-dialogs/botbuilder/dialogs/_user_token_access.py
andreikop/botbuilder-python
5e073e0c68fcbdc558133bdbd59a02453e597abe
[ "MIT" ]
388
2019-05-07T15:53:21.000Z
2022-03-28T20:29:46.000Z
libraries/botbuilder-dialogs/botbuilder/dialogs/_user_token_access.py
andreikop/botbuilder-python
5e073e0c68fcbdc558133bdbd59a02453e597abe
[ "MIT" ]
1,286
2019-05-07T23:38:19.000Z
2022-03-31T10:44:16.000Z
libraries/botbuilder-dialogs/botbuilder/dialogs/_user_token_access.py
andreikop/botbuilder-python
5e073e0c68fcbdc558133bdbd59a02453e597abe
[ "MIT" ]
168
2019-05-14T20:23:25.000Z
2022-03-16T06:49:14.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from abc import ABC from botbuilder.core import TurnContext from botbuilder.core.bot_framework_adapter import TokenExchangeRequest from botbuilder.core.oauth import ConnectorClientBuilder, ExtendedUserTokenProvider from botb...
41.054264
93
0.684101
03e2e3c2572281a7220cad71d31759826df4e371
2,993
py
Python
Assignment1/main.py
njucjc/machine-learning
1adcbad8d1e9f9a187036bec01d1a5ce798e44e0
[ "MIT" ]
null
null
null
Assignment1/main.py
njucjc/machine-learning
1adcbad8d1e9f9a187036bec01d1a5ce798e44e0
[ "MIT" ]
null
null
null
Assignment1/main.py
njucjc/machine-learning
1adcbad8d1e9f9a187036bec01d1a5ce798e44e0
[ "MIT" ]
null
null
null
import numpy as np import argparse, os from utils import load_data, make_path from pca import pca_train, pca_test from svd import svd_train, svd_test from isomap import isomap from knn import knn parser = argparse.ArgumentParser(description='Dimensionality Reduction') parser.add_argument('--mode', type=str, default='...
34.402299
115
0.676245
b9b103ade05f6b45e8770fe779edea288e4788e3
2,959
py
Python
logger/visualization.py
dong100136/pytorch-template
dc67fbc93401767d73a9307626bbf24ef259ec17
[ "MIT" ]
null
null
null
logger/visualization.py
dong100136/pytorch-template
dc67fbc93401767d73a9307626bbf24ef259ec17
[ "MIT" ]
null
null
null
logger/visualization.py
dong100136/pytorch-template
dc67fbc93401767d73a9307626bbf24ef259ec17
[ "MIT" ]
null
null
null
import importlib from datetime import datetime class TensorboardWriter(): def __init__(self, log_dir, logger, enabled): self.writer = None self.selected_module = "" if enabled: log_dir = str(log_dir) # Retrieve vizualization writer. succeeded = False ...
38.934211
120
0.560662
9dc0c8ca8f459e1ea410aed70a6dee1f1ccb0c4c
1,254
py
Python
venus/conf/elasticsearch.py
openstack/venus
7c3ec56142620cb2b3ff1562947c65a266401d57
[ "Apache-2.0" ]
null
null
null
venus/conf/elasticsearch.py
openstack/venus
7c3ec56142620cb2b3ff1562947c65a266401d57
[ "Apache-2.0" ]
null
null
null
venus/conf/elasticsearch.py
openstack/venus
7c3ec56142620cb2b3ff1562947c65a266401d57
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Inspur # # 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, soft...
32.153846
75
0.652313
de2a1e997df75afd5b831cf696a403dbd6cf5d4a
16,113
py
Python
posthog/models/event.py
bmann/posthog-foss
c794bb2666ce85cdc4b87940d2cd14604db8172e
[ "MIT" ]
1
2020-12-08T04:04:52.000Z
2020-12-08T04:04:52.000Z
posthog/models/event.py
yaoshuyin/posthog
1835174c7b3015d0c47260dff98d4a752dc0abde
[ "MIT" ]
null
null
null
posthog/models/event.py
yaoshuyin/posthog
1835174c7b3015d0c47260dff98d4a752dc0abde
[ "MIT" ]
null
null
null
import copy import datetime import re from collections import defaultdict from typing import Any, Dict, List, Optional, Tuple, Union import celery from django.conf import settings from django.contrib.postgres.fields import JSONField from django.db import connection, models, transaction from django.db.models import Exi...
43.082888
120
0.604171
59540e95e2ab1c15142ed393e9c91338d70b9ccd
5,815
py
Python
p05-join.py
DingPang/cs451-practicals
f5545fbc9f6dfc9e6d6e3b32615af265e483b801
[ "BSD-3-Clause" ]
null
null
null
p05-join.py
DingPang/cs451-practicals
f5545fbc9f6dfc9e6d6e3b32615af265e483b801
[ "BSD-3-Clause" ]
null
null
null
p05-join.py
DingPang/cs451-practicals
f5545fbc9f6dfc9e6d6e3b32615af265e483b801
[ "BSD-3-Clause" ]
null
null
null
""" In this lab, we once again have a mandatory 'python' challenge. Then we have a more open-ended Machine Learning 'see why' challenge. This data is the "Is Wikipedia Literary" that I pitched. You can contribute to science or get a sense of the data here: https://label.jjfoley.me/wiki """ import gzip, json from shar...
29.221106
127
0.710232
65751af607f0448b627ff9ab27ac77769871bf01
389
py
Python
pathMaker.py
patwoz/phototimer
4cb661314dce3f05fcbb33e0b7514b699bc62974
[ "MIT" ]
73
2016-12-13T01:59:32.000Z
2022-03-15T05:44:47.000Z
pathMaker.py
patwoz/phototimer
4cb661314dce3f05fcbb33e0b7514b699bc62974
[ "MIT" ]
7
2017-03-23T01:16:57.000Z
2022-01-30T16:56:06.000Z
pathMaker.py
patwoz/phototimer
4cb661314dce3f05fcbb33e0b7514b699bc62974
[ "MIT" ]
29
2017-03-22T04:07:59.000Z
2022-01-02T22:31:16.000Z
import os class pathMaker: def __init__(self): pass def get_parts(self, totalPath): if(totalPath==None): return [] return totalPath.strip("/").split("/") def get_paths(self, totalPath): parts = self.get_parts(totalPath) paths =[] path = "/" for p in parts: path = os.path.join(path,p) paths.a...
16.913043
40
0.663239
f0bc9d4ab6778b87d14e20b7e9fe80e373b7211f
3,982
py
Python
app/v1/models.py
Nyakaru/Store-Manager-Backend
e6240eac541632760f4a74e3e27a83ae0d2d3be5
[ "MIT" ]
null
null
null
app/v1/models.py
Nyakaru/Store-Manager-Backend
e6240eac541632760f4a74e3e27a83ae0d2d3be5
[ "MIT" ]
4
2018-10-17T12:07:41.000Z
2021-06-01T22:50:14.000Z
app/v1/models.py
Nyakaru/Store-Manager-Backend
e6240eac541632760f4a74e3e27a83ae0d2d3be5
[ "MIT" ]
1
2019-01-22T16:54:57.000Z
2019-01-22T16:54:57.000Z
'''Models and their methods.''' from hashlib import sha256 from os import getenv import jwt class DB(): '''In memory database.''' def __init__(self): '''Create an empty database.''' self.users = [] self.products = [] self.sales = [] def drop(self): '''Drop enti...
22.625
91
0.514314
f4f1ed89badcc1462265ab83bd30f76c000b791f
4,243
py
Python
samples/web/content/apprtc/apprtc_test.py
alvestrand/webrtc
e08695776b058fe781a2ff5259b648a89ea0e548
[ "BSD-3-Clause" ]
null
null
null
samples/web/content/apprtc/apprtc_test.py
alvestrand/webrtc
e08695776b058fe781a2ff5259b648a89ea0e548
[ "BSD-3-Clause" ]
null
null
null
samples/web/content/apprtc/apprtc_test.py
alvestrand/webrtc
e08695776b058fe781a2ff5259b648a89ea0e548
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 Google Inc. All Rights Reserved. import unittest import webtest import apprtc import json from google.appengine.api import memcache from google.appengine.ext import testbed class AppRtcUnitTest(unittest.TestCase): def setUp(self): # First, create an instance of the Testbed class. self.te...
35.957627
77
0.716003
a6b639406d1f0b8b2ebddb502a6b8be24eb0c6f0
422
py
Python
venv/Scripts/pip3.6-script.py
fachrurRz/raspi-webserver
b0c5bd0c76138b35aac228eb7b0af47a4f7771ed
[ "Apache-2.0" ]
null
null
null
venv/Scripts/pip3.6-script.py
fachrurRz/raspi-webserver
b0c5bd0c76138b35aac228eb7b0af47a4f7771ed
[ "Apache-2.0" ]
null
null
null
venv/Scripts/pip3.6-script.py
fachrurRz/raspi-webserver
b0c5bd0c76138b35aac228eb7b0af47a4f7771ed
[ "Apache-2.0" ]
null
null
null
#!C:\Users\fachr\PycharmProjects\raspi-webserver\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s...
32.461538
72
0.670616
e7924a5691252f59760c8d60cddebe77ef542010
912
py
Python
sources/rnt/mediane/migrations/0004_auto_20171221_0333.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
null
null
null
sources/rnt/mediane/migrations/0004_auto_20171221_0333.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
11
2018-04-04T08:24:30.000Z
2021-03-19T21:45:04.000Z
sources/rnt/mediane/migrations/0004_auto_20171221_0333.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
1
2018-10-25T09:13:41.000Z
2018-10-25T09:13:41.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-21 03:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mediane', '0003_auto_20171219_2309'), ] operations = [ migrations.AddField(...
28.5
132
0.60636
326da98954558ddee3749af757cd6140696dbcb1
5,244
py
Python
parcels_valuation/src/init_classification.py
dykra/railwayPath
44a2e256fde7c6439e77e3d713b5ef44c4d0e3bb
[ "MIT" ]
null
null
null
parcels_valuation/src/init_classification.py
dykra/railwayPath
44a2e256fde7c6439e77e3d713b5ef44c4d0e3bb
[ "MIT" ]
null
null
null
parcels_valuation/src/init_classification.py
dykra/railwayPath
44a2e256fde7c6439e77e3d713b5ef44c4d0e3bb
[ "MIT" ]
null
null
null
import argparse import csv from os.path import abspath from sklearn.model_selection import train_test_split from configuration.configuration_constants import excluded_values, \ file_name_predicted_price_categories_values, \ target_column_name, \ limit_date, \ path_to_trained_models from classification_...
48.555556
117
0.632151
44cbbf771684769184b9bb9d10e5fd2e8f06a165
1,918
py
Python
flaskext/color.py
Frozenball/flask-color
0ecea1cfe37570e9286cada9209674bd0b0f6d7c
[ "MIT" ]
16
2015-07-18T17:10:03.000Z
2019-05-22T17:09:44.000Z
flaskext/color.py
Teemu/flask-color
0ecea1cfe37570e9286cada9209674bd0b0f6d7c
[ "MIT" ]
1
2016-08-20T21:24:17.000Z
2018-04-27T20:36:54.000Z
flaskext/color.py
Teemu/flask-color
0ecea1cfe37570e9286cada9209674bd0b0f6d7c
[ "MIT" ]
2
2019-11-07T08:29:29.000Z
2020-06-05T13:12:37.000Z
# -*- coding: utf-8 -*- """ flaskext.color ~~~~~~~~~~~~~~ Colors the requests in debugging mode :copyright: (c) 2014 by Frozenball. :license: MIT, see LICENSE for more details. """ import time import re class TerminalColors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m'...
29.060606
113
0.594891
56e3e64f3bf659d71b797c8e84fd99b31360e04c
1,878
py
Python
menu/generic.py
vlegoff/mud
88c9b6f020148e3fc9f3a58c372a0907e89384ff
[ "BSD-3-Clause" ]
null
null
null
menu/generic.py
vlegoff/mud
88c9b6f020148e3fc9f3a58c372a0907e89384ff
[ "BSD-3-Clause" ]
null
null
null
menu/generic.py
vlegoff/mud
88c9b6f020148e3fc9f3a58c372a0907e89384ff
[ "BSD-3-Clause" ]
null
null
null
"""Module containing generic functions for EvMenu.""" def _formatter(nodetext, optionstext, caller=None): """Do not display the options, only the text. This function is used by EvMenu to format the text of nodes. Options are not displayed for this menu, where it doesn't often make much sense to do so...
34.777778
69
0.672524
0d096b66ab79399ba0d158a5af7a2cf5784b00d7
844
py
Python
adminmgr/media/code/python/red1/BD_0913_0171_1120_0113_reducer.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/python/red1/BD_0913_0171_1120_0113_reducer.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/python/red1/BD_0913_0171_1120_0113_reducer.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
#!/usr/bin/python3 import sys import csv file_contents = sys.stdin output_dict = dict() for LINE in file_contents: line = LINE.strip() LIST = line.split(",") batsman_bowler = str(LIST[0]) + "_" + str(LIST[1]) wickets = int(LIST[2]) if batsman_bowler in output_dict.keys(): wickets_deleveries = output_dict[b...
22.810811
74
0.674171
974721a1e802534d61c05f9a5922c72043bf964e
649
py
Python
Examples/CircuitPython/Audio/Play-Simple-Tone.py
CytronTechnologies/MAKER-NANO-RP2040
96ebf29b53833bc09251e3680a2ddbf7e83934ff
[ "MIT" ]
null
null
null
Examples/CircuitPython/Audio/Play-Simple-Tone.py
CytronTechnologies/MAKER-NANO-RP2040
96ebf29b53833bc09251e3680a2ddbf7e83934ff
[ "MIT" ]
null
null
null
Examples/CircuitPython/Audio/Play-Simple-Tone.py
CytronTechnologies/MAKER-NANO-RP2040
96ebf29b53833bc09251e3680a2ddbf7e83934ff
[ "MIT" ]
null
null
null
# Plays a simple 8ksps 440 Hz sin wave # # Copy this file to Maker Nano RP2040 CIRCUITPY drive as code.py to run it on power up. # # This example code uses: Maker Nano RP2040 import audiocore import audiopwmio import board import array import time import math # Generate one period of sine wav. length ...
27.041667
88
0.694915
46c3bbb6712c6276e48dd9328d7741a447f28b91
1,351
py
Python
python/paddle/fluid/tests/unittests/test_fetch_var.py
limeng357/Paddle
dbd25805c88c48998eb9dc0f4b2ca1fd46326482
[ "ECL-2.0", "Apache-2.0" ]
4
2019-04-28T13:29:41.000Z
2022-01-09T16:54:20.000Z
python/paddle/fluid/tests/unittests/test_fetch_var.py
limeng357/Paddle
dbd25805c88c48998eb9dc0f4b2ca1fd46326482
[ "ECL-2.0", "Apache-2.0" ]
3
2017-07-15T14:20:08.000Z
2019-05-06T03:16:54.000Z
python/paddle/fluid/tests/unittests/test_fetch_var.py
limeng357/Paddle
dbd25805c88c48998eb9dc0f4b2ca1fd46326482
[ "ECL-2.0", "Apache-2.0" ]
2
2020-11-04T08:01:39.000Z
2020-11-06T08:33:28.000Z
# Copyright (c) 2018 PaddlePaddle 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 app...
35.552632
75
0.703183
b0dddef602f2a708addae34069add138dc9920bf
15,296
py
Python
cumulusci/tasks/bulkdata/tests/test_delete.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
109
2015-01-20T14:28:48.000Z
2018-08-31T12:12:39.000Z
cumulusci/tasks/bulkdata/tests/test_delete.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
365
2015-01-07T19:54:25.000Z
2018-09-11T15:10:02.000Z
cumulusci/tasks/bulkdata/tests/test_delete.py
davisagli/CumulusCI
fd74c324ad3ff662484b159395c639879011e711
[ "BSD-3-Clause" ]
125
2015-01-17T16:05:39.000Z
2018-09-06T19:05:00.000Z
from unittest import mock import pytest import responses from cumulusci.core.exceptions import BulkDataException, TaskOptionsError from cumulusci.tasks.bulkdata import DeleteData from cumulusci.tasks.bulkdata.step import ( DataApi, DataOperationJobResult, DataOperationResult, DataOperationStatus, ...
37.767901
88
0.611271
a05ed2c72508b4e6dbe84f5ecfe1b8b59e7d2f54
12,153
py
Python
neutronclient/tests/unit/osc/v2/sfc/test_service_graph.py
casual-lemon/python-neutronclient
adf21f028827b8a4e32057334db4cd464c24c4d0
[ "Apache-2.0" ]
120
2015-01-07T00:38:58.000Z
2021-12-26T13:05:53.000Z
neutronclient/tests/unit/osc/v2/sfc/test_service_graph.py
casual-lemon/python-neutronclient
adf21f028827b8a4e32057334db4cd464c24c4d0
[ "Apache-2.0" ]
1
2021-08-11T18:42:30.000Z
2021-08-11T22:25:21.000Z
neutronclient/tests/unit/osc/v2/sfc/test_service_graph.py
casual-lemon/python-neutronclient
adf21f028827b8a4e32057334db4cd464c24c4d0
[ "Apache-2.0" ]
153
2015-01-05T16:50:50.000Z
2021-09-13T12:01:23.000Z
# Copyright 2017 Intel Corporation. # # 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.062315
79
0.630462
eff3821df4d80b5a44f55f1a4eef1fec407651c1
2,227
py
Python
scripts/generate_delta_sysroot_unittest.py
bpsinc-native/src_third_party_chromite
b07cf18203c98a14c59819387754428e887ca164
[ "BSD-3-Clause" ]
null
null
null
scripts/generate_delta_sysroot_unittest.py
bpsinc-native/src_third_party_chromite
b07cf18203c98a14c59819387754428e887ca164
[ "BSD-3-Clause" ]
null
null
null
scripts/generate_delta_sysroot_unittest.py
bpsinc-native/src_third_party_chromite
b07cf18203c98a14c59819387754428e887ca164
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unittests for generate_delta_sysroot.""" import os import sys sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(...
29.693333
76
0.684329
2fde3a60040a326a1fee60ef83807be9badc3cf5
892
py
Python
pythonbytes/tutorials/migrations/0008_tutorial.py
hanztura/pythonbytes
414e3f1443f58ccc094b40622688ca234041fc1c
[ "MIT" ]
1
2019-12-16T19:25:19.000Z
2019-12-16T19:25:19.000Z
pythonbytes/tutorials/migrations/0008_tutorial.py
hanztura/pythonbytes
414e3f1443f58ccc094b40622688ca234041fc1c
[ "MIT" ]
9
2020-06-06T01:07:19.000Z
2022-02-10T09:01:57.000Z
pythonbytes/tutorials/migrations/0008_tutorial.py
hanztura/pythonbytes
414e3f1443f58ccc094b40622688ca234041fc1c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.8 on 2019-12-17 06:56 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('cms', '0022_auto_20180620_1551'), ('tutorials', '0007_delete_tutorial'), ] operations =...
29.733333
209
0.591928
0a29bd6e49e764f1c4da93364e9ef0e2c220f3b3
2,707
py
Python
tests/modules/transformer/positional_encoding_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
11,433
2017-06-27T03:08:46.000Z
2022-03-31T18:14:33.000Z
tests/modules/transformer/positional_encoding_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
4,006
2017-06-26T21:45:43.000Z
2022-03-31T02:11:10.000Z
tests/modules/transformer/positional_encoding_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
2,560
2017-06-26T21:16:53.000Z
2022-03-30T07:55:46.000Z
import copy import torch import numpy as np from allennlp.common import Params from allennlp.modules.transformer import SinusoidalPositionalEncoding from allennlp.common.testing import AllenNlpTestCase class TestSinusoidalPositionalEncoding(AllenNlpTestCase): def setup_method(self): super().setup_method()...
35.155844
94
0.549686
98bd7b6a63b51d6510d82ed04e9d4f1ed5b0fe12
1,380
py
Python
src_python/WS2801/EffectColorWheel.py
AmiableAnteater/wohnzimmerlicht
eafda7911d95ee9f1b9a222e3e208e2debe8e03e
[ "Apache-2.0" ]
null
null
null
src_python/WS2801/EffectColorWheel.py
AmiableAnteater/wohnzimmerlicht
eafda7911d95ee9f1b9a222e3e208e2debe8e03e
[ "Apache-2.0" ]
null
null
null
src_python/WS2801/EffectColorWheel.py
AmiableAnteater/wohnzimmerlicht
eafda7911d95ee9f1b9a222e3e208e2debe8e03e
[ "Apache-2.0" ]
null
null
null
from .WS2801Wrapper import WS2801Wrapper from threading import Thread, Event from .EffectUtils import run_effect from time import monotonic def effect(pixels: WS2801Wrapper, event: Event, stretch_factor=1, speed=10): pixel_count = pixels.count() stretched_wheel_size = int(round(255 * stretch_factor)) ...
34.5
83
0.618841
03afb57b3c473fcd7964907911140d488a45e053
16,608
py
Python
postfinancecheckout/api/shopify_recurring_order_service_api.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
1
2022-03-08T12:51:53.000Z
2022-03-08T12:51:53.000Z
postfinancecheckout/api/shopify_recurring_order_service_api.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
null
null
null
postfinancecheckout/api/shopify_recurring_order_service_api.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import import six from postfinancecheckout.api_client import ApiClient class ShopifyRecurringOrderServiceApi: def __init__(self, configuration): self.api_client = ApiClient(configuration=configuration) def count(self, space_id, **kwargs): """...
37.321348
127
0.608321
8a6647b55bef1896cd57f9e8bee86a7ed1728add
880
py
Python
azure/servicefabric/models/service_name_info.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/servicefabric/models/service_name_info.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/servicefabric/models/service_name_info.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.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 ...
27.5
76
0.529545
50ff8f842fdb67beb9c2ec270900ef8ad9891074
2,360
py
Python
test/CXX/CXXVERSION.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/CXX/CXXVERSION.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/CXX/CXXVERSION.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # 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 rights to use, copy, modify, merge, publish, ...
28.433735
76
0.709322
935ca53c265ed1025f0064513f00ead08e57e971
10,329
py
Python
estimagic/dashboard/monitoring_app.py
yradeva93/estimagic
77d840ba01748314b35be8117c99460a1944062f
[ "BSD-3-Clause" ]
null
null
null
estimagic/dashboard/monitoring_app.py
yradeva93/estimagic
77d840ba01748314b35be8117c99460a1944062f
[ "BSD-3-Clause" ]
null
null
null
estimagic/dashboard/monitoring_app.py
yradeva93/estimagic
77d840ba01748314b35be8117c99460a1944062f
[ "BSD-3-Clause" ]
null
null
null
"""Show the development of one optimization's criterion and parameters over time.""" from functools import partial from pathlib import Path import numpy as np import pandas as pd from bokeh.layouts import Column from bokeh.layouts import Row from bokeh.models import ColumnDataSource from bokeh.models import Panel from...
33.976974
88
0.694743
8311b69f65ad40d4f389e3f338ef96d15cb97557
4,426
py
Python
app.py
callzhang/qdtrack
4cdd29281a9dc81a9265c916540be1bd2dce08fd
[ "Apache-2.0" ]
null
null
null
app.py
callzhang/qdtrack
4cdd29281a9dc81a9265c916540be1bd2dce08fd
[ "Apache-2.0" ]
null
null
null
app.py
callzhang/qdtrack
4cdd29281a9dc81a9265c916540be1bd2dce08fd
[ "Apache-2.0" ]
null
null
null
from qdtrack.apis.inference import init_model, inference_model, export_video from tools.post_processing import post_processing, convert_result, merge_result from glob import glob import pickle, os, torch, sys, logging from flask import Flask, request, jsonify, send_file from werkzeug.utils import secure_filename # fair...
32.544118
102
0.671939
2d6359e7a345f8bf07d93707898e4782cf7ca055
8,235
py
Python
embedding-calculator/src/services/facescan/plugins/insightface/insightface.py
Precistat/CompreFace
dc850c23d4cadc355f77cef08adbbd5f430c01b7
[ "Apache-2.0" ]
1
2021-12-14T10:07:07.000Z
2021-12-14T10:07:07.000Z
embedding-calculator/src/services/facescan/plugins/insightface/insightface.py
Precistat/CompreFace
dc850c23d4cadc355f77cef08adbbd5f430c01b7
[ "Apache-2.0" ]
null
null
null
embedding-calculator/src/services/facescan/plugins/insightface/insightface.py
Precistat/CompreFace
dc850c23d4cadc355f77cef08adbbd5f430c01b7
[ "Apache-2.0" ]
1
2021-10-10T04:30:14.000Z
2021-10-10T04:30:14.000Z
# Copyright (c) 2020 the original author or 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
38.661972
113
0.686096
58e3095ee6efa78dee5ecb30e3f1805f15bb0e61
1,607
py
Python
tfserve/loader.py
gar1t/tfserve
cd8cb67f87f3f6f1309628f62184f19da106e2dc
[ "MIT" ]
31
2018-09-05T17:14:16.000Z
2021-03-26T12:39:23.000Z
tfserve/loader.py
gar1t/tfserve
cd8cb67f87f3f6f1309628f62184f19da106e2dc
[ "MIT" ]
5
2018-10-10T13:02:49.000Z
2020-06-23T15:04:38.000Z
tfserve/loader.py
gar1t/tfserve
cd8cb67f87f3f6f1309628f62184f19da106e2dc
[ "MIT" ]
10
2018-10-15T16:15:22.000Z
2020-01-23T08:37:37.000Z
""" Module that handles loading a tensorflow model in several different forms. """ import os import tensorflow as tf def load_model(model_path): """ Loads a tensorflow model return a tf.Session running on the loaded model (the graph). :param str model_path: It can be a `.pb` file or directory containing ...
27.237288
91
0.65028
2110a6e6d578fd0fcc8269d00ad6dcf4799a8390
493
py
Python
application/utils/log_handler.py
lahdjirayhan/drive-kesma-library-linker
7c945e2b8efd8d05a571b563e0738dc3c086263e
[ "Unlicense" ]
null
null
null
application/utils/log_handler.py
lahdjirayhan/drive-kesma-library-linker
7c945e2b8efd8d05a571b563e0738dc3c086263e
[ "Unlicense" ]
null
null
null
application/utils/log_handler.py
lahdjirayhan/drive-kesma-library-linker
7c945e2b8efd8d05a571b563e0738dc3c086263e
[ "Unlicense" ]
null
null
null
import logging # https://stackoverflow.com/questions/36408496/python-logging-handler-to-append-to-list # Both answers combined class ListHandler(logging.Handler): def __init__(self, *args, message_list, **kwargs): logging.Handler.__init__(self, *args, **kwargs) self.setFormatter(logging.Formatter('...
41.083333
87
0.716024
813abdc0b8b243c881946660276c4fda5f15aa76
7,246
py
Python
opencv_engine/engine.py
scorphus/opencv-engine
ae02452d9d6ae884c9a4ae22382e34b7d6e6fc11
[ "MIT" ]
17
2015-02-23T04:15:21.000Z
2019-05-05T23:08:08.000Z
opencv_engine/engine.py
scorphus/opencv-engine
ae02452d9d6ae884c9a4ae22382e34b7d6e6fc11
[ "MIT" ]
25
2015-01-14T17:20:44.000Z
2022-01-24T02:47:01.000Z
opencv_engine/engine.py
scorphus/opencv-engine
ae02452d9d6ae884c9a4ae22382e34b7d6e6fc11
[ "MIT" ]
26
2015-02-23T04:16:58.000Z
2020-01-09T00:21:34.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # thumbor imaging service - opencv engine # https://github.com/thumbor/opencv-engine # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2014 globo.com timehome@corp.globo.com try: import cv except ImportError: impor...
31.641921
116
0.587911
c3af66c6b1cee906a5c5f9ae5f17c95af97293d2
1,332
py
Python
plotly/api/v1/clientresp.py
SamLau95/plotly.py
7dd4ddd4e18e79ff30cec3ef331fa2f8949ed1bd
[ "MIT" ]
5
2022-02-20T07:10:02.000Z
2022-03-18T17:47:53.000Z
plotly/api/v1/clientresp.py
SamLau95/plotly.py
7dd4ddd4e18e79ff30cec3ef331fa2f8949ed1bd
[ "MIT" ]
9
2020-06-05T20:31:50.000Z
2022-03-11T23:45:47.000Z
plotly/api/v1/clientresp.py
SamLau95/plotly.py
7dd4ddd4e18e79ff30cec3ef331fa2f8949ed1bd
[ "MIT" ]
2
2018-02-13T10:40:10.000Z
2021-06-04T11:15:53.000Z
"""Interface to deprecated /clientresp API. Subject to deletion.""" from __future__ import absolute_import import warnings from requests.compat import json as _json from plotly import config, utils, version from plotly.api.v1.utils import request def clientresp(data, **kwargs): """ Deprecated endpoint, sti...
29.6
78
0.677177
43bcb53b30b218647164141e67e2c15e8751be5f
1,967
py
Python
contextaware_processors/response.py
kezabelle/django-contextaware-processors
7f5bd32b73032fa5b9208f62c2b4438c13a2d78b
[ "BSD-2-Clause" ]
null
null
null
contextaware_processors/response.py
kezabelle/django-contextaware-processors
7f5bd32b73032fa5b9208f62c2b4438c13a2d78b
[ "BSD-2-Clause" ]
null
null
null
contextaware_processors/response.py
kezabelle/django-contextaware-processors
7f5bd32b73032fa5b9208f62c2b4438c13a2d78b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.template.response import TemplateResponse __all__ = ['AlreadyRendered', 'ContextawareTemplateResponse'] class AlreadyRendered(TypeError): pass def update_context_from_callbacks(request, context, callbacks): for conte...
38.568627
88
0.689375
5cec1e757a166bee97afa6b1cc079410ce4dcc60
5,341
py
Python
app/user/tests/test_user_api.py
masoud91/recipe
88481ae2f22e6ac1f8081be0ce699039ffc645b1
[ "MIT" ]
3
2020-08-10T14:14:00.000Z
2021-08-08T10:21:56.000Z
app/user/tests/test_user_api.py
masoud91/recipe
88481ae2f22e6ac1f8081be0ce699039ffc645b1
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
masoud91/recipe
88481ae2f22e6ac1f8081be0ce699039ffc645b1
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params...
31.982036
77
0.627598
029142861467283b04bed19dae8b5258610b5426
37,237
py
Python
blobfile/ops_test.py
jpambrun/blobfile
16a7c183e49fcc2a7c95af4f2a63b60cb9a55e24
[ "Unlicense" ]
null
null
null
blobfile/ops_test.py
jpambrun/blobfile
16a7c183e49fcc2a7c95af4f2a63b60cb9a55e24
[ "Unlicense" ]
null
null
null
blobfile/ops_test.py
jpambrun/blobfile
16a7c183e49fcc2a7c95af4f2a63b60cb9a55e24
[ "Unlicense" ]
null
null
null
# https://github.com/tensorflow/tensorflow/issues/27023 import warnings warnings.filterwarnings("ignore", category=DeprecationWarning) warnings.filterwarnings("ignore", category=FutureWarning) import random import string import tempfile import os import contextlib import json import urllib.request import...
34.225184
262
0.535569
ca1157a5249486b410ba20987f0c3141b208cee7
16,804
py
Python
tests/esok/config/test_connection_options.py
ahaeger/esok
9e60a663678ba2ae021afcfa0ee6dd9af4fe700e
[ "MIT" ]
2
2021-06-03T18:51:10.000Z
2021-12-16T14:49:56.000Z
tests/esok/config/test_connection_options.py
ahaeger/esok
9e60a663678ba2ae021afcfa0ee6dd9af4fe700e
[ "MIT" ]
4
2021-08-21T20:03:42.000Z
2021-08-21T22:43:07.000Z
tests/esok/config/test_connection_options.py
ahaeger/esok
9e60a663678ba2ae021afcfa0ee6dd9af4fe700e
[ "MIT" ]
null
null
null
import click import pytest from esok.config.connection_options import per_connection from esok.constants import CLI_ERROR, CONFIGURATION_ERROR, USER_ERROR from esok.esok import esok @pytest.mark.usefixtures("mock_clients") def test_no_connection_options(runner): clients, command = _attach_sub_command(esok) ...
31.527205
88
0.676863
d17104d80c7635941723a21e920cf239fb4a4b55
2,475
py
Python
k4MarlinWrapper/examples/runit.py
vvolkl/k4MarlinWrapper
8a9692790606dee2c9e6c4ce976bf8cee43a4943
[ "Apache-2.0" ]
null
null
null
k4MarlinWrapper/examples/runit.py
vvolkl/k4MarlinWrapper
8a9692790606dee2c9e6c4ce976bf8cee43a4943
[ "Apache-2.0" ]
9
2020-07-14T09:13:31.000Z
2020-11-09T10:51:34.000Z
k4MarlinWrapper/examples/runit.py
vvolkl/k4MarlinWrapper
8a9692790606dee2c9e6c4ce976bf8cee43a4943
[ "Apache-2.0" ]
2
2020-03-25T12:50:10.000Z
2020-04-09T12:22:34.000Z
from Gaudi.Configuration import * from Configurables import LcioEvent, EventDataSvc, MarlinProcessorWrapper algList = [] evtsvc = EventDataSvc() read = LcioEvent() read.OutputLevel = DEBUG read.Files = ["../test/inputFiles/muons.slcio"] algList.append(read) END_TAG = "END_TAG" # assign parameters by hand, in futur...
35.869565
160
0.62101
fe3193b2b0e366f02cb2b5ab3bb4feb39c582e2a
1,844
py
Python
utils/mvsec_utils.py
tub-rip/E-RAFT
2e74afcfe93c93f55cea583381489a24a55351ff
[ "MIT" ]
32
2021-12-03T06:40:42.000Z
2022-03-31T04:59:39.000Z
utils/mvsec_utils.py
tub-rip/E-RAFT
2e74afcfe93c93f55cea583381489a24a55351ff
[ "MIT" ]
7
2021-12-03T02:32:50.000Z
2022-01-13T02:49:24.000Z
utils/mvsec_utils.py
tub-rip/E-RAFT
2e74afcfe93c93f55cea583381489a24a55351ff
[ "MIT" ]
11
2021-12-24T08:04:46.000Z
2022-03-25T07:34:28.000Z
import numpy as np # import cv2 from matplotlib import pyplot as plt import os from utils import filename_templates as TEMPLATES def prop_flow(x_flow, y_flow, x_indices, y_indices, x_mask, y_mask, scale_factor=1.0): flow_x_interp = cv2.remap(x_flow, x_indices, ...
34.792453
93
0.586768
90f31a5ad47f5b86bb7fc6942e0f80aacd95970b
5,070
py
Python
tests/test_case_name_tests.py
mehrdad-shokri/retdec-regression-tests-framework
9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3
[ "MIT" ]
21
2017-12-12T20:38:43.000Z
2019-04-14T12:46:10.000Z
tests/test_case_name_tests.py
mehrdad-shokri/retdec-regression-tests-framework
9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3
[ "MIT" ]
6
2018-01-06T13:32:23.000Z
2018-09-14T15:09:11.000Z
tests/test_case_name_tests.py
mehrdad-shokri/retdec-regression-tests-framework
9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3
[ "MIT" ]
11
2017-12-12T20:38:46.000Z
2018-07-19T03:12:03.000Z
""" Tests for the :mod:`regression_tests.test_case_name_tests` module. """ import unittest from regression_tests.filesystem.file import StandaloneFile from regression_tests.test_case import TestCaseName from regression_tests.tools.tool_arguments import ToolArguments class TestCaseNameTests(unittest.TestCase): ...
37.007299
102
0.676529
c38f8a137a8ab674b0f9ad3ffa00628b4cf57150
98
py
Python
matizla/helpers/types.py
neotje/matizla
23afbc9ad3972c04e5882e0fed2de1ce0b7f397b
[ "MIT" ]
null
null
null
matizla/helpers/types.py
neotje/matizla
23afbc9ad3972c04e5882e0fed2de1ce0b7f397b
[ "MIT" ]
null
null
null
matizla/helpers/types.py
neotje/matizla
23afbc9ad3972c04e5882e0fed2de1ce0b7f397b
[ "MIT" ]
null
null
null
from webview.window import Window class JSwindow: title: str uuid: str hidden: bool
12.25
33
0.683673
058a08600ba5c6150dc4f30eb208f753758e1148
511
py
Python
parser.py
fabiantheblind/my.feedbin.com.subscriptions
b89dd1fca65559ba03d5e773441ac318b4a4c935
[ "Unlicense" ]
null
null
null
parser.py
fabiantheblind/my.feedbin.com.subscriptions
b89dd1fca65559ba03d5e773441ac318b4a4c935
[ "Unlicense" ]
null
null
null
parser.py
fabiantheblind/my.feedbin.com.subscriptions
b89dd1fca65559ba03d5e773441ac318b4a4c935
[ "Unlicense" ]
null
null
null
#!/usr/bin/python from bs4 import BeautifulSoup import codecs soup = BeautifulSoup(open("subscriptions.xml")) tags = soup.find_all("outline") f = codecs.open("links.md","w","utf-8") for tag in tags: # print tag['htmlurl'] if tag.get('htmlurl') is None: f.write("\n##" + tag.get('title')+ "\n\n") ...
31.9375
70
0.55773
13b2d60a4c503c10251704e6d2fff4e105541b37
1,779
py
Python
task13_b.py
mboehn/aoc2017
1bf5302c6e566e8454d3e567cfac38945c8fe955
[ "MIT" ]
null
null
null
task13_b.py
mboehn/aoc2017
1bf5302c6e566e8454d3e567cfac38945c8fe955
[ "MIT" ]
null
null
null
task13_b.py
mboehn/aoc2017
1bf5302c6e566e8454d3e567cfac38945c8fe955
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math import sys import csv from pprint import pprint import collections import operator import func INPUTFILE = './task13.input' MY_DEPTH = 0 def main(): layers = {} with open(file=INPUTFILE, mode='r') as fileinput: for line in fileinput: layer, depth = li...
25.414286
101
0.525014
a12ee170bc397851916594783db89aebe191102a
12,859
py
Python
examples/generate_with_calibration_v2.py
mikkyhu/transformers
b28abe5c4d221ff2574dde0355c985fd11f1152b
[ "Apache-2.0" ]
null
null
null
examples/generate_with_calibration_v2.py
mikkyhu/transformers
b28abe5c4d221ff2574dde0355c985fd11f1152b
[ "Apache-2.0" ]
null
null
null
examples/generate_with_calibration_v2.py
mikkyhu/transformers
b28abe5c4d221ff2574dde0355c985fd11f1152b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University 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 c...
44.804878
167
0.66887
a6fa4a978219ee9d991bb2361e0fb4a96309e0e9
602
py
Python
testprojectD-rice-d058558a4d4f/migrations/versions/9bd4ada1f824_.py
YuanXMjoy/rice
05e908eea8c9189c3b392d2d57e5653191bf1da9
[ "MIT" ]
null
null
null
testprojectD-rice-d058558a4d4f/migrations/versions/9bd4ada1f824_.py
YuanXMjoy/rice
05e908eea8c9189c3b392d2d57e5653191bf1da9
[ "MIT" ]
null
null
null
testprojectD-rice-d058558a4d4f/migrations/versions/9bd4ada1f824_.py
YuanXMjoy/rice
05e908eea8c9189c3b392d2d57e5653191bf1da9
[ "MIT" ]
null
null
null
"""empty message Revision ID: 9bd4ada1f824 Revises: b809ef5c228c Create Date: 2016-07-09 15:30:22.896575 """ # revision identifiers, used by Alembic. revision = '9bd4ada1f824' down_revision = 'b809ef5c228c' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
22.296296
76
0.69103
788ea3d1f51c25e4fb89d9de87e3c0ec26a9c5af
7,970
gyp
Python
snapshot/snapshot.gyp
dark-richie/crashpad
d573ac113bd5fce5cc970bb5ae76a235a1431a5d
[ "Apache-2.0" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
snapshot/snapshot.gyp
dark-richie/crashpad
d573ac113bd5fce5cc970bb5ae76a235a1431a5d
[ "Apache-2.0" ]
113
2019-12-14T04:28:04.000Z
2021-09-26T18:40:27.000Z
snapshot/snapshot.gyp
dark-richie/crashpad
d573ac113bd5fce5cc970bb5ae76a235a1431a5d
[ "Apache-2.0" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
# Copyright 2014 The Crashpad 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 applicabl...
36.728111
74
0.62522
2b992ea2e9f7bff0a2cc0d51a2445922e3dbed5b
31,437
py
Python
lib/enum34/__init__.py
xbmc-catchuptv-au/script.module.pycaption
4f76781c38d50c138dca2344bcceb748764d76da
[ "Apache-2.0" ]
1
2019-05-06T20:09:13.000Z
2019-05-06T20:09:13.000Z
lib/enum34/__init__.py
xbmc-catchuptv-au/script.module.pycaption
4f76781c38d50c138dca2344bcceb748764d76da
[ "Apache-2.0" ]
2
2020-01-24T13:03:23.000Z
2020-02-06T02:21:01.000Z
lib/enum34/__init__.py
xbmc-catchuptv-au/script.module.pycaption
4f76781c38d50c138dca2344bcceb748764d76da
[ "Apache-2.0" ]
2
2019-06-15T15:25:42.000Z
2019-09-11T02:36:48.000Z
"""Python Enumerations""" import sys as _sys __all__ = ['Enum', 'IntEnum', 'unique'] version = 1, 1, 6 pyver = float('%s.%s' % _sys.version_info[:2]) try: any except NameError: def any(iterable): for element in iterable: if element: return True return False try:...
34.93
79
0.582689
5d8387d3c8a8a5ad1875e4abdb6e104ee9304d43
1,868
py
Python
api/tests/unit/segments/test_conditions.py
SolidStateGroup/Bullet-Train-API
ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19
[ "BSD-3-Clause" ]
126
2019-12-13T18:41:43.000Z
2020-11-10T13:33:55.000Z
api/tests/unit/segments/test_conditions.py
SolidStateGroup/Bullet-Train-API
ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19
[ "BSD-3-Clause" ]
30
2019-12-12T16:52:01.000Z
2020-11-09T18:55:29.000Z
api/tests/unit/segments/test_conditions.py
SolidStateGroup/Bullet-Train-API
ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19
[ "BSD-3-Clause" ]
20
2020-02-14T21:55:36.000Z
2020-11-03T22:29:03.000Z
import pytest from environments.identities.traits.models import Trait from segments.models import ( EQUAL, GREATER_THAN, GREATER_THAN_INCLUSIVE, LESS_THAN, LESS_THAN_INCLUSIVE, NOT_EQUAL, Condition, ) @pytest.mark.parametrize( "operator, trait_value, condition_value, result", [ ...
35.245283
87
0.590471
550d1c9604a9e68abc2d6dbb15cd0cb0b1868811
3,133
py
Python
30_psycopg2_for_pgsql_interfacing.py
nagasudhirpulla/python_wrldc_training
c3a3216c0a11e1dac03d4637b4b59b28f1bb83c6
[ "MIT" ]
null
null
null
30_psycopg2_for_pgsql_interfacing.py
nagasudhirpulla/python_wrldc_training
c3a3216c0a11e1dac03d4637b4b59b28f1bb83c6
[ "MIT" ]
null
null
null
30_psycopg2_for_pgsql_interfacing.py
nagasudhirpulla/python_wrldc_training
c3a3216c0a11e1dac03d4637b4b59b28f1bb83c6
[ "MIT" ]
2
2020-09-30T16:32:18.000Z
2020-10-23T01:13:51.000Z
''' Using psycopg2 module to interface with a postgreSQL database pip install psycopg2 ''' # %% # import psycopg2 module import pandas as pd import datetime as dt import psycopg2 # get these variables from some config mechanism so that connection is not exposed and hardcoded hostStr = 'x.x.x.x' dbStr = 'hrd_training' ...
32.298969
106
0.638047
e97687de3427378489a91eaa65da3b8f5bee7b3b
15,952
py
Python
pandas/core/arrays/_mixins.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-04-28T05:15:42.000Z
2021-04-28T05:15:42.000Z
pandas/core/arrays/_mixins.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/arrays/_mixins.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from functools import wraps from typing import ( Any, Sequence, TypeVar, cast, ) import numpy as np from pandas._libs import lib from pandas._typing import ( F, PositionalIndexer2D, Shape, type_t, ) from pandas.compat.numpy import function as nv from...
32.488798
88
0.606131
417cfee5c46ffb45a3f15d6195be10b0722a8e2a
3,955
py
Python
flytekit/tools/fast_registration.py
v01dXYZ/flytekit
dfb89c619c209e6c88ae335bfb7a10892b50808a
[ "Apache-2.0" ]
null
null
null
flytekit/tools/fast_registration.py
v01dXYZ/flytekit
dfb89c619c209e6c88ae335bfb7a10892b50808a
[ "Apache-2.0" ]
1
2021-02-05T02:57:25.000Z
2021-02-05T02:57:25.000Z
flytekit/tools/fast_registration.py
v01dXYZ/flytekit
dfb89c619c209e6c88ae335bfb7a10892b50808a
[ "Apache-2.0" ]
null
null
null
import os as _os import subprocess as _subprocess import tarfile as _tarfile import tempfile as _tempfile from pathlib import Path as _Path import dirhash as _dirhash from flytekit.interfaces.data import data_proxy as _data_proxy from flytekit.interfaces.data.data_proxy import Data as _Data _tmp_versions_dir = "tmp/...
35.630631
115
0.7067
210d095e7d12c1c350b77c93504cbdb471c60e16
250
py
Python
tests/test_decimals.py
ulamlabs/aioxrpy
89f420a4f225b698b853a1557dff7beedd7d32ea
[ "MIT" ]
7
2020-04-22T06:34:50.000Z
2021-02-22T11:02:40.000Z
tests/test_decimals.py
ulamlabs/aioxrpy
89f420a4f225b698b853a1557dff7beedd7d32ea
[ "MIT" ]
5
2020-04-06T07:38:28.000Z
2020-04-08T11:08:11.000Z
tests/test_decimals.py
ulamlabs/aioxrpy
89f420a4f225b698b853a1557dff7beedd7d32ea
[ "MIT" ]
2
2020-11-29T13:24:56.000Z
2021-01-17T18:14:22.000Z
from decimal import Decimal from aioxrpy import decimals def test_xrp_to_drops(): assert decimals.xrp_to_drops(Decimal('123.456789')) == 123456789 def test_drops_to_xrp(): assert decimals.drops_to_xrp(123456789) == Decimal('123.456789')
20.833333
68
0.764
99fa375f5acfe97cf48995e46de3d62c24b2147d
6,769
py
Python
pplot/scatter.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
4
2016-12-17T20:06:10.000Z
2021-11-19T04:45:29.000Z
pplot/scatter.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
11
2021-01-06T05:35:11.000Z
2022-03-11T23:28:31.000Z
pplot/scatter.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
3
2015-06-12T10:44:16.000Z
2021-07-26T18:39:47.000Z
__author__ = 'thor' import numpy as np import pandas as pd import matplotlib.pyplot as mpl_plt from sklearn.decomposition import PCA from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler, LabelEncoder from sklearn.manifold import TSNE import prettyplotlib as ppl # Get "Set2" colors fr...
40.291667
119
0.560792
1ad2e96d4a806e8d1104d88e59152369da5ebafb
4,554
py
Python
docker-images/taigav2/taiga-back/taiga/projects/tasks/apps.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/taiga/projects/tasks/apps.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
docker-images/taigav2/taiga-back/taiga/projects/tasks/apps.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
46
111
0.706851
cb1aa6cceafdf894251c54a9b468c7f91850ca32
1,305
py
Python
characters/migrations/0001_initial.py
mpirnat/django-tutorial-v2
3d128301357e687542c6627f9d8eca026e04faaa
[ "MIT" ]
6
2015-01-06T20:53:15.000Z
2021-09-09T12:12:03.000Z
characters/migrations/0001_initial.py
mpirnat/django-tutorial-v2
3d128301357e687542c6627f9d8eca026e04faaa
[ "MIT" ]
null
null
null
characters/migrations/0001_initial.py
mpirnat/django-tutorial-v2
3d128301357e687542c6627f9d8eca026e04faaa
[ "MIT" ]
2
2015-01-06T20:53:20.000Z
2021-09-09T12:12:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Character', fields=[ ('id', models.AutoField(au...
35.27027
114
0.537165
17eda8e58efed3c3276d19797363f932ca1b8d4b
249
py
Python
opendeep/optimization/__init__.py
vitruvianscience/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
252
2015-03-13T21:55:22.000Z
2021-09-06T21:37:38.000Z
opendeep/optimization/__init__.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
16
2015-03-14T06:47:04.000Z
2016-09-23T19:13:35.000Z
opendeep/optimization/__init__.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
68
2015-03-14T00:05:53.000Z
2020-06-04T13:36:13.000Z
from __future__ import division, absolute_import, print_function from .adadelta import AdaDelta from .adasecant import AdaSecant from .optimizer import * from .rmsprop import RMSProp from .stochastic_gradient_descent import SGD from . import loss
24.9
64
0.835341
3cfc2349f803e6d930a415680185f7b662ff8814
9,580
py
Python
doc/conf.py
tomasojea/seaborn
9b03f8138949402a351fa06e2598144812aae586
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
tomasojea/seaborn
9b03f8138949402a351fa06e2598144812aae586
[ "BSD-3-Clause" ]
1
2020-10-31T23:31:41.000Z
2020-10-31T23:31:41.000Z
doc/conf.py
tomasojea/seaborn
9b03f8138949402a351fa06e2598144812aae586
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # seaborn documentation build configuration file, created by # sphinx-quickstart on Mon Jul 29 23:25:46 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
31.933333
80
0.704697
6fa787aec5174e63cf4e0740b510dbddc3da5d91
1,993
py
Python
bluefoglite/common/collective_comm/broadcast.py
Bluefog-Lib/Bluefog-Lite
7175a1731f1a401ee55ce8ad94855f0c03ad5604
[ "Apache-2.0" ]
null
null
null
bluefoglite/common/collective_comm/broadcast.py
Bluefog-Lib/Bluefog-Lite
7175a1731f1a401ee55ce8ad94855f0c03ad5604
[ "Apache-2.0" ]
null
null
null
bluefoglite/common/collective_comm/broadcast.py
Bluefog-Lib/Bluefog-Lite
7175a1731f1a401ee55ce8ad94855f0c03ad5604
[ "Apache-2.0" ]
null
null
null
import math from typing import List from bluefoglite.common.tcp.agent import AgentContext from bluefoglite.common.tcp.buffer import SpecifiedBuffer def broadcast_one_to_all( buf: SpecifiedBuffer, root_rank: int, context: AgentContext, *, tag=0 ): # assume the input are all well-defined and behaved. if co...
30.661538
75
0.617662
d3e19254657066386277d00ca1ce44a5504fa530
706
py
Python
024.py
xianlinfeng/project_euler_python3
77eca44eb2b1d13bc70d6dc0258b737449d43a23
[ "MIT" ]
null
null
null
024.py
xianlinfeng/project_euler_python3
77eca44eb2b1d13bc70d6dc0258b737449d43a23
[ "MIT" ]
null
null
null
024.py
xianlinfeng/project_euler_python3
77eca44eb2b1d13bc70d6dc0258b737449d43a23
[ "MIT" ]
null
null
null
import itertools def next(nums): for i in range(len(nums)-1, 0, -1): if nums[i-1] < nums[i]: _, j = min((v, j) for (j, v) in enumerate(nums[i:]) if v > nums[i-1]) nums[i-1], nums[i+j] = nums[i+j], nums[i-1] nums[i:] = sorted(nums[i:]) ...
24.344828
74
0.494334
574a832e9184b5c4a7275d6e754cd3e5b4958e75
7,078
py
Python
rllab/sampler/base.py
Bobeye/rllab
53c0afb73f93c4a78ff21507914d7f7735c21ea9
[ "MIT" ]
1,838
2017-08-10T04:19:28.000Z
2022-03-29T07:41:19.000Z
rllab/sampler/base.py
Bobeye/rllab
53c0afb73f93c4a78ff21507914d7f7735c21ea9
[ "MIT" ]
120
2016-10-05T09:16:16.000Z
2017-07-27T22:57:31.000Z
rllab/sampler/base.py
Bobeye/rllab
53c0afb73f93c4a78ff21507914d7f7735c21ea9
[ "MIT" ]
498
2017-08-16T03:34:28.000Z
2022-03-31T04:41:32.000Z
import numpy as np from rllab.misc import special from rllab.misc import tensor_utils from rllab.algos import util import rllab.misc.logger as logger class Sampler(object): def start_worker(self): """ Initialize the sampler, e.g. launching parallel workers if necessary. """ raise...
38.677596
115
0.606527
47bde410c420828145f25d848ddb4876fcf582ac
3,845
py
Python
helper.py
ctangarife/nsearch
7de1534db51d9441ec28db4c7c2f7256630a3db0
[ "Apache-2.0" ]
null
null
null
helper.py
ctangarife/nsearch
7de1534db51d9441ec28db4c7c2f7256630a3db0
[ "Apache-2.0" ]
null
null
null
helper.py
ctangarife/nsearch
7de1534db51d9441ec28db4c7c2f7256630a3db0
[ "Apache-2.0" ]
1
2020-10-30T19:57:16.000Z
2020-10-30T19:57:16.000Z
import dbmodule from dbmodule import * class Helper: def __init__(self,args="",commnad=""): self.args = args self.commnad = commnad #process the commnads def process(self): if self.commnad == "search": if not self.args: dbmodule.lastresults = dbmodule.searchAll() self.printlas...
35.601852
112
0.615605
dfebf930087efed7d62463d4094004bd0ed755fd
70,669
py
Python
src/sage/graphs/generators/random.py
tashakim/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
4
2020-07-17T04:49:44.000Z
2020-07-29T06:33:51.000Z
src/sage/graphs/generators/random.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
null
null
null
src/sage/graphs/generators/random.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Random Graphs The methods defined here appear in :mod:`sage.graphs.graph_generators`. """ ########################################################################### # # Copyright (C) 2006 Robert L. Miller <rlmillster@gmail.com> # and Emily A. Kirkman...
33.845307
130
0.587627
c619c8bc8cc5f33a81302b10d642eb086f495e30
8,508
py
Python
tests/test_identifier.py
xli/client-sdk-python
1d0ec7f7b395bd827b778f1903001088e799fb05
[ "Apache-2.0" ]
1
2021-02-15T14:41:34.000Z
2021-02-15T14:41:34.000Z
tests/test_identifier.py
xli/client-sdk-python
1d0ec7f7b395bd827b778f1903001088e799fb05
[ "Apache-2.0" ]
null
null
null
tests/test_identifier.py
xli/client-sdk-python
1d0ec7f7b395bd827b778f1903001088e799fb05
[ "Apache-2.0" ]
null
null
null
# Copyright (c) The Diem Core Contributors # SPDX-License-Identifier: Apache-2.0 import pytest from diem import identifier, utils, InvalidSubAddressError, InvalidAccountAddressError test_onchain_address = "f72589b71ff4f8d139674a3f7369c69b" test_sub_address = "cf64428bdeb62af2" none_sub_address = None zero_sub_addres...
40.903846
108
0.758463
0713c2a792bbc06aa2d8a28412fa9d9603d8b18a
47,126
py
Python
dev/services/wms/mwfc/wms_cfg.py
zxh547/dea-config
41c07261921c667454074ce1c8c8f162baa04d0b
[ "Apache-2.0" ]
null
null
null
dev/services/wms/mwfc/wms_cfg.py
zxh547/dea-config
41c07261921c667454074ce1c8c8f162baa04d0b
[ "Apache-2.0" ]
null
null
null
dev/services/wms/mwfc/wms_cfg.py
zxh547/dea-config
41c07261921c667454074ce1c8c8f162baa04d0b
[ "Apache-2.0" ]
null
null
null
response_cfg = { "Access-Control-Allow-Origin": "*", # CORS header "Cache-Control": "public, max-age=3600" } service_cfg = { # Required config "title": "Combined WMS Server", "url": "https://mwfc.datakube.gadevs.ga/wms/", "published_CRSs": { "EPSG:3857": { # Web Mercator "...
45.576402
168
0.342338
964bb890edaa67f281e1b4301a9f5a4bb12f8e99
14,774
py
Python
raiden/blockchain_events_handler.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
raiden/blockchain_events_handler.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
raiden/blockchain_events_handler.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
import gevent import structlog from eth_utils import to_canonical_address from raiden.blockchain.events import get_channel_proxies, decode_event_to_internal from raiden.blockchain.state import get_channel_state from raiden.connection_manager import ConnectionManager from raiden.transfer import views from raiden.utils...
37.027569
143
0.715784
70b31fefbd2906d37a52237764a8ef1103f55500
1,255
py
Python
creepycraig_v2/pipelines.py
frankolson/creepycraig_v2
c6a14a6a28928b70ddd93cb5e0a3885b763082aa
[ "MIT" ]
null
null
null
creepycraig_v2/pipelines.py
frankolson/creepycraig_v2
c6a14a6a28928b70ddd93cb5e0a3885b763082aa
[ "MIT" ]
null
null
null
creepycraig_v2/pipelines.py
frankolson/creepycraig_v2
c6a14a6a28928b70ddd93cb5e0a3885b763082aa
[ "MIT" ]
null
null
null
import pymongo from scrapy.conf import settings from creepycraig_v2.items import ApartmentItem, CarItem class ApartmentPipeline(object): def __init__(self): connection = pymongo.MongoClient( settings['MONGODB_SERVER'], settings['MONGODB_PORT'] ) db = connection[sett...
36.911765
92
0.664542
122e31db4b89452d1edd4b98a488c680ce34e129
3,187
py
Python
src/repro/plots/data.py
bouthilx/repro
611734e4eddd6a76dd4c1e7114a28a634a2a75c1
[ "BSD-3-Clause" ]
null
null
null
src/repro/plots/data.py
bouthilx/repro
611734e4eddd6a76dd4c1e7114a28a634a2a75c1
[ "BSD-3-Clause" ]
null
null
null
src/repro/plots/data.py
bouthilx/repro
611734e4eddd6a76dd4c1e7114a28a634a2a75c1
[ "BSD-3-Clause" ]
null
null
null
import random import json from mahler.client import Client mahler_client = Client() db_client = mahler_client.registrar._db._db VERSION_TAGS = ['v4.2.3', 'v4.2.4', 'v4.2.5', 'v4.2.6', 'v5.0.0'] N_POINTS = 10 colors = """\ #8dd3c7 #d3d394 #bebada #fb8072 #80b1d3 #fdb462 #b3de69 #fccde5 #d9d9...
23.433824
106
0.571384
9773174732d9289b9b379fce6d8f8fd06584e872
2,055
py
Python
fn_stats.py
newsreader/vua-srl-postprocess
0b46bf0235c27444aff1bffb647e2143a7c2d332
[ "Apache-2.0" ]
null
null
null
fn_stats.py
newsreader/vua-srl-postprocess
0b46bf0235c27444aff1bffb647e2143a7c2d332
[ "Apache-2.0" ]
null
null
null
fn_stats.py
newsreader/vua-srl-postprocess
0b46bf0235c27444aff1bffb647e2143a7c2d332
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from KafNafParserPy import * from rdflib import URIRef, Namespace from rdflib.namespace import RDF,Namespace, NamespaceManager from rdflib.graph import Graph import sys import os path='example' predicates_pos_fn = 0 predicates_neg_fn = 0 predicates_fn_total=0 roles_pos_fn = 0 roles_neg_fn...
34.25
127
0.624818
8189a1ca7926edd8b95c8a4bc8cffd0b233e4cce
8,958
py
Python
hubspot/crm/companies/models/error.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
hubspot/crm/companies/models/error.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
hubspot/crm/companies/models/error.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Companies No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from hub...
30.469388
176
0.599576
fcdbf80092bca71a094e68e797eaf72ec772df2d
1,590
py
Python
internal/notes/builtin-SAVE/packages/py-netifaces/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
1
2019-01-17T20:07:19.000Z
2019-01-17T20:07:19.000Z
internal/notes/builtin-SAVE/packages/py-netifaces/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
null
null
null
internal/notes/builtin-SAVE/packages/py-netifaces/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
2
2019-08-06T18:13:57.000Z
2021-11-05T18:19:49.000Z
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
42.972973
84
0.679874
b66759bba3a5b2f1256a998264ca2c4c886c4fae
2,505
py
Python
chainer_chemistry/utils/permutation.py
jo7ueb/chainer-chemistry
74286aef6b53f272d1677b8e226bb7200a3922a8
[ "MIT" ]
null
null
null
chainer_chemistry/utils/permutation.py
jo7ueb/chainer-chemistry
74286aef6b53f272d1677b8e226bb7200a3922a8
[ "MIT" ]
null
null
null
chainer_chemistry/utils/permutation.py
jo7ueb/chainer-chemistry
74286aef6b53f272d1677b8e226bb7200a3922a8
[ "MIT" ]
null
null
null
import numpy def permute_node(node, permutation_index, axis=-1): """Permute index of `node` array Args: node (numpy.ndarray): the array whose `axis` to be permuted. permutation_index (numpy.ndarray): 1d numpy array whose size should be same as permutation axis of `node`. a...
37.38806
79
0.603593
c05c6c62691cf1a1fee00855c8cc2995d5212233
3,209
py
Python
setup.py
frmdstryr/atom
37563874ecc732db1554d5a90824a4428413ae7e
[ "BSD-3-Clause-Clear" ]
1
2021-04-10T13:32:49.000Z
2021-04-10T13:32:49.000Z
setup.py
frmdstryr/atom
37563874ecc732db1554d5a90824a4428413ae7e
[ "BSD-3-Clause-Clear" ]
null
null
null
setup.py
frmdstryr/atom
37563874ecc732db1554d5a90824a4428413ae7e
[ "BSD-3-Clause-Clear" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2013-2019, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #--------------------------------------------...
32.744898
79
0.570583
316d7a245fe9c899356815c10029a5d41fb46883
1,128
py
Python
camera.py
williamliusea/CarND-Advanced-Lane-Lines
cccbfdffbafe4d457242bac8a5e74fc0ea38d3b1
[ "MIT" ]
null
null
null
camera.py
williamliusea/CarND-Advanced-Lane-Lines
cccbfdffbafe4d457242bac8a5e74fc0ea38d3b1
[ "MIT" ]
null
null
null
camera.py
williamliusea/CarND-Advanced-Lane-Lines
cccbfdffbafe4d457242bac8a5e74fc0ea38d3b1
[ "MIT" ]
null
null
null
import matplotlib.image as mpimg import glob import numpy as np import cv2 import pickle import sys class Camera(): def load(self, filename): self.mtx, self.dist = pickle.load( open( filename, "rb" ) ) def calibration(self, filename = None, nx = 9, ny = 6): images = glob.glob('camera_cal/*.jp...
33.176471
120
0.587766
5703f22b1714a6700ba7f6c927c9101fec90ccad
1,837
py
Python
xiaobu/robot/constants.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
xiaobu/robot/constants.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
xiaobu/robot/constants.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8-*- import os import shutil # Wukong main directory APP_PATH = os.path.normpath(os.path.join( os.path.dirname(os.path.abspath(__file__)), os.pardir)) LIB_PATH = os.path.join(APP_PATH, "robot") DATA_PATH = os.path.join(APP_PATH, "static") TEMP_PATH = os.path.join(APP_PATH, "temp") TEMPLATE_PATH...
23.857143
68
0.685357
e7d4781c8975496cf4f97dd3003d2a1395f3a4cc
7,650
py
Python
devel/lib/python2.7/dist-packages/ferns_detector/msg/_ModelStatus.py
gentaiscool/ros-vrep-slam
afae1b35eb2538fcc9ff68952b85c5e4791c46d2
[ "MIT" ]
39
2018-08-28T21:28:07.000Z
2022-03-12T10:30:40.000Z
devel/lib/python2.7/dist-packages/ferns_detector/msg/_ModelStatus.py
zliucr/ros-vrep-slam
afae1b35eb2538fcc9ff68952b85c5e4791c46d2
[ "MIT" ]
1
2019-03-14T09:23:56.000Z
2019-04-27T15:54:53.000Z
devel/lib/python2.7/dist-packages/ferns_detector/msg/_ModelStatus.py
zliucr/ros-vrep-slam
afae1b35eb2538fcc9ff68952b85c5e4791c46d2
[ "MIT" ]
14
2018-07-12T06:59:48.000Z
2021-03-31T08:27:39.000Z
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from ferns_detector/ModelStatus.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg class ModelStatus(genpy.Message): _md5sum = "6f51fe3ba1a4dacfef45b80...
33.552632
145
0.621307
5537d64bd8b1a142b9f516e683e538eedb2c9003
9,635
py
Python
configs/example/se.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
17
2019-02-05T03:44:40.000Z
2022-03-31T07:34:08.000Z
configs/example/se.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
null
null
null
configs/example/se.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
12
2019-03-15T06:29:25.000Z
2022-02-01T19:37:31.000Z
# Copyright (c) 2012-2013 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functiona...
34.658273
79
0.6767
7b1219818b3e56cfa4a110d3476bc5d633a4a5f4
213
py
Python
SensorApp/apps.py
rkmakwana/SensorApp
a8ea03b4981ea8607d92a7682201714cb1d6b4ae
[ "MIT" ]
null
null
null
SensorApp/apps.py
rkmakwana/SensorApp
a8ea03b4981ea8607d92a7682201714cb1d6b4ae
[ "MIT" ]
null
null
null
SensorApp/apps.py
rkmakwana/SensorApp
a8ea03b4981ea8607d92a7682201714cb1d6b4ae
[ "MIT" ]
null
null
null
from importlib import import_module from django.apps import AppConfig as BaseAppConfig class AppConfig(BaseAppConfig): name = "SensorApp" def ready(self): import_module("SensorApp.receivers")
17.75
50
0.746479
66664fe09304a80eefc560e1429ec847ffd02502
303
py
Python
tests/test_unsubscribe.py
Squad002/GoOutSafe-Monolith
4ee5a32668730626ee5bd314c98515e7d7253e13
[ "MIT" ]
null
null
null
tests/test_unsubscribe.py
Squad002/GoOutSafe-Monolith
4ee5a32668730626ee5bd314c98515e7d7253e13
[ "MIT" ]
null
null
null
tests/test_unsubscribe.py
Squad002/GoOutSafe-Monolith
4ee5a32668730626ee5bd314c98515e7d7253e13
[ "MIT" ]
null
null
null
from urllib.parse import urlparse from datetime import date from flask import session from .fixtures import app, client, db from . import helpers from monolith.models import User def test_unsubscribe_view_is_available(client): res = client.get("/unsubscribe") assert res.status_code == 302
20.2
47
0.778878
6306c56584d39080f88d446782a6590a48b715d0
482
py
Python
data/scripts/templates/object/tangible/item/quest/hero_of_tatooine/shared_explosives.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/item/quest/hero_of_tatooine/shared_explosives.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/item/quest/hero_of_tatooine/shared_explosives.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/item/quest/hero_of_tatooine/shared_explosives.iff" result.attribute...
28.352941
86
0.742739
7c8dd78e8d151a58b4d131817361f5a11ed96177
8,456
py
Python
yolo.py
AaronJny/tf2-keras-yolo3
c68daf377f4155d8703d2b05bcc61d8adabf3115
[ "MIT" ]
36
2019-12-22T03:35:00.000Z
2022-01-12T03:57:44.000Z
yolo.py
LiAnGGGGGG/tf2-keras-yolo3
c68daf377f4155d8703d2b05bcc61d8adabf3115
[ "MIT" ]
2
2020-09-22T16:57:13.000Z
2021-08-25T02:31:53.000Z
yolo.py
LiAnGGGGGG/tf2-keras-yolo3
c68daf377f4155d8703d2b05bcc61d8adabf3115
[ "MIT" ]
19
2019-12-24T01:35:52.000Z
2021-12-10T09:24:24.000Z
# -*- coding: utf-8 -*- """ Class definition of YOLO_v3 style detection model on image and video """ import colorsys import os from timeit import default_timer as timer import numpy as np import tensorflow as tf from PIL import Image, ImageFont, ImageDraw from tensorflow.keras.layers import Input from tensorflow.kera...
41.048544
110
0.607025