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
0069da6201085be93267ce6305ea86fc96eb9fed
20,127
py
Python
src/GUI/Final_GUI.py
suchetsapre/vehicle-crash-prediction
c6fa4ee37f026b42f4ccadb7337205f0b61008c0
[ "MIT" ]
null
null
null
src/GUI/Final_GUI.py
suchetsapre/vehicle-crash-prediction
c6fa4ee37f026b42f4ccadb7337205f0b61008c0
[ "MIT" ]
null
null
null
src/GUI/Final_GUI.py
suchetsapre/vehicle-crash-prediction
c6fa4ee37f026b42f4ccadb7337205f0b61008c0
[ "MIT" ]
null
null
null
""" Running this file will allow for experimentation with my GUI """ from __future__ import print_function import datetime import math import os from tkinter import * import PIL.Image import PIL.ImageTk import cv2 import keras import matplotlib.pyplot as plt import numpy as np import pytube from src.ML_Application ...
35.749556
143
0.63303
86575be3471988faff2bb12d17535b26f8d23550
4,497
py
Python
tests/sparseml/pytorch/sparsification/pruning/test_modifier_pruning_constant.py
anmarques/sparseml
c8352f1d896bfb1258add4e563d8163d3702b5ef
[ "Apache-2.0" ]
null
null
null
tests/sparseml/pytorch/sparsification/pruning/test_modifier_pruning_constant.py
anmarques/sparseml
c8352f1d896bfb1258add4e563d8163d3702b5ef
[ "Apache-2.0" ]
null
null
null
tests/sparseml/pytorch/sparsification/pruning/test_modifier_pruning_constant.py
anmarques/sparseml
c8352f1d896bfb1258add4e563d8163d3702b5ef
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 - present / Neuralmagic, 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...
30.591837
84
0.675339
79c8b5f1703df05e862d8ef8c4a60ed59537eca6
356
py
Python
week5/week5_practical4b_3.py
harshonyou/SOFT1
1bd2b0cc26d39c549bec576389bebd0fd011387d
[ "Apache-2.0" ]
null
null
null
week5/week5_practical4b_3.py
harshonyou/SOFT1
1bd2b0cc26d39c549bec576389bebd0fd011387d
[ "Apache-2.0" ]
null
null
null
week5/week5_practical4b_3.py
harshonyou/SOFT1
1bd2b0cc26d39c549bec576389bebd0fd011387d
[ "Apache-2.0" ]
null
null
null
''' Exercise 3: Write a function save_to_log(entry, logfile) that takes two parameters, a string entry to be written at the end of the text file named logfile (also a string). The previous content of the logfile MUST NOT be erased ''' def save_to_log(entry, logfile): with open(logfile,'a') as x: print(entry...
32.363636
91
0.724719
87bbb9d0ae9573ba6ce6cc44ff55519120b8c402
405
py
Python
maxDepth.py
gardenia22/leetcode
1e24425eea5d0aa31742719de80380b3f116ee51
[ "CC0-1.0" ]
null
null
null
maxDepth.py
gardenia22/leetcode
1e24425eea5d0aa31742719de80380b3f116ee51
[ "CC0-1.0" ]
null
null
null
maxDepth.py
gardenia22/leetcode
1e24425eea5d0aa31742719de80380b3f116ee51
[ "CC0-1.0" ]
null
null
null
° # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param {TreeNode} root # @return {integer} def maxDepth(self, root): if root is None: return 0 ...
22.5
77
0.558025
db4550ea6aef8cb51058af6923cf43d2f7355da6
12,559
py
Python
tools/json_schema_compiler/preview.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/json_schema_compiler/preview.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/json_schema_compiler/preview.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Server for viewing the compiled C++ code from tools/json_schema_compiler. """ import cc_generator import code import cpp_type_g...
34.502747
80
0.644478
56b0333e67f7923e809fd921e780ba2ea86bce34
466
py
Python
open_mafia_engine/built_in/lynch_tally.py
open-mafia/open_mafia_engine
19296748757a4a18d395a940d30aa48aaac9dd7a
[ "Apache-2.0" ]
9
2018-08-19T21:47:00.000Z
2021-11-30T20:46:09.000Z
open_mafia_engine/built_in/lynch_tally.py
open-mafia/open_mafia_engine
19296748757a4a18d395a940d30aa48aaac9dd7a
[ "Apache-2.0" ]
2
2021-05-16T00:12:39.000Z
2021-05-16T18:36:47.000Z
open_mafia_engine/built_in/lynch_tally.py
open-mafia/open_mafia_engine
19296748757a4a18d395a940d30aa48aaac9dd7a
[ "Apache-2.0" ]
2
2020-11-28T06:13:10.000Z
2021-05-16T22:23:22.000Z
from typing import List, Optional from open_mafia_engine.core.all import Actor, GameObject from .kills import LynchAction from .voting import Tally class LynchTally(Tally): """Vote tally that lynches the vote leader.""" def respond_leader(self, leader: GameObject) -> Optional[List[LynchAction]]: ""...
29.125
80
0.716738
6184b310214beb2f13b1ef8d9e0dc7412f6405d4
10,875
py
Python
paddlenlp/transformers/ulmfit/modeling.py
akari0216/PaddleNLP
f896be283bbec5096e083859543be451d7ba82c2
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/ulmfit/modeling.py
akari0216/PaddleNLP
f896be283bbec5096e083859543be451d7ba82c2
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/ulmfit/modeling.py
akari0216/PaddleNLP
f896be283bbec5096e083859543be451d7ba82c2
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Copyright 2021 The HuggingFace Inc. team. # # 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/license...
33.256881
106
0.580966
64a92caec9b9a215b5ee8ac3fd2178b3fbf5b04e
2,845
py
Python
src/utils.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/utils.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/utils.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
#!/bin/python3 # Copyright (C) 2020, 2021 Matheus Fernandes Bigolin <mfrdrbigolin@disroot.org> # SPDX-License-Identifier: MIT """General utilities.""" # Avoid ambiguous namespace with the built-in exit and compile. from sys import exit as finish from re import findall from functools import reduce from collections i...
25.176991
79
0.643937
f6987ed8bf146199fd17e23e00c348c70b7bac51
9,912
py
Python
python/tvm/meta_schedule/integration.py
MasterJH5574/relax
47da9537eaccb7526801df11069c05fc457c71bd
[ "Apache-2.0" ]
null
null
null
python/tvm/meta_schedule/integration.py
MasterJH5574/relax
47da9537eaccb7526801df11069c05fc457c71bd
[ "Apache-2.0" ]
null
null
null
python/tvm/meta_schedule/integration.py
MasterJH5574/relax
47da9537eaccb7526801df11069c05fc457c71bd
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.392157
124
0.64659
5db93b558c60b260b7b8b835cd896ec729ad18b6
2,271
py
Python
xmnlp/pinyin/pinyin.py
CGEDJNU/xmnlp
ad2d3c0b8875cf415c3adffc10926605da7a458b
[ "MIT" ]
1
2019-09-12T07:19:58.000Z
2019-09-12T07:19:58.000Z
xmnlp/pinyin/pinyin.py
TactictNLP/xmnlp
ad2d3c0b8875cf415c3adffc10926605da7a458b
[ "MIT" ]
null
null
null
xmnlp/pinyin/pinyin.py
TactictNLP/xmnlp
ad2d3c0b8875cf415c3adffc10926605da7a458b
[ "MIT" ]
1
2020-04-20T08:58:45.000Z
2020-04-20T08:58:45.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals # -------------------------------------------# # author: sean lee # # email: xmlee97@gmail.com # #--------------------------------------------# """MIT License Copyright (c) 2018 Sean Per...
34.409091
78
0.641127
3f2163c65499202ee2f5c3d3b02077d61371cff9
11,000
py
Python
docs/conf.py
companieshouse/headline-news
606cd6f3c501ef8157b347561ab230bad49a1b81
[ "MIT" ]
null
null
null
docs/conf.py
companieshouse/headline-news
606cd6f3c501ef8157b347561ab230bad49a1b81
[ "MIT" ]
null
null
null
docs/conf.py
companieshouse/headline-news
606cd6f3c501ef8157b347561ab230bad49a1b81
[ "MIT" ]
1
2021-04-10T21:14:10.000Z
2021-04-10T21:14:10.000Z
# headline-news documentation build configuration file # # 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 configuration values have a default; values that are commented out serve to show t...
36.666667
128
0.684273
1aed4b58f08b1baf98c81a4b8796f3409d43245e
6,263
py
Python
tests/test_mdp.py
upsidedownpancake/aima-python
4f6c7167872d833714625cf3d25cc1f6f7cf15fe
[ "MIT" ]
1
2018-05-12T17:17:05.000Z
2018-05-12T17:17:05.000Z
tests/test_mdp.py
Abishek10/aima-python
84586ceb8ea176b8f7d2efc5c913e7acb6004901
[ "MIT" ]
null
null
null
tests/test_mdp.py
Abishek10/aima-python
84586ceb8ea176b8f7d2efc5c913e7acb6004901
[ "MIT" ]
null
null
null
from mdp import * sequential_decision_environment_1 = GridMDP([[-0.1, -0.1, -0.1, +1], [-0.1, None, -0.1, -1], [-0.1, -0.1, -0.1, -0.1]], terminals=[(3, 2), (3, 1)]) sequential_decisio...
54.938596
159
0.422641
3a9b10c9befc583dd8a232020cfe2bda77aa828d
1,370
py
Python
tests/st/ops/ascend/test_tbe_ops/test_square.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
1
2020-05-13T11:31:21.000Z
2020-05-13T11:31:21.000Z
tests/st/ops/ascend/test_tbe_ops/test_square.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
tests/st/ops/ascend/test_tbe_ops/test_square.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "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...
31.136364
78
0.69927
3ab4b4cbf2e2ff0e28c788c64a808a069500dde7
11,794
py
Python
tools/common/image_utils.py
tribhuvanesh/visual_redactions
93fac7b5cd9fc7e81341380408df6a8a4f8f6189
[ "Apache-2.0" ]
14
2018-07-03T09:30:02.000Z
2020-12-23T05:46:11.000Z
tools/common/image_utils.py
tribhuvanesh/visual_redactions
93fac7b5cd9fc7e81341380408df6a8a4f8f6189
[ "Apache-2.0" ]
2
2018-07-03T13:42:33.000Z
2018-09-15T13:17:17.000Z
tools/common/image_utils.py
tribhuvanesh/visual_redactions
93fac7b5cd9fc7e81341380408df6a8a4f8f6189
[ "Apache-2.0" ]
9
2018-07-25T02:47:43.000Z
2022-02-17T13:28:49.000Z
#!/usr/bin/python """This is a short description. Replace this with a more detailed description of what this file contains. """ import json import time import pickle import sys import csv import argparse import os import os.path as osp import shutil import numpy as np import matplotlib.pyplot as plt from PIL import ...
29.558897
106
0.637443
f8f5d29809059157b48c92105d0c4b7eb538d214
18,493
py
Python
keras_retinanet/preprocessing/generator.py
wawancenggoro/i3d_lung_nodule_detection_ori
e5e6fcd89603fb22a9926ad0930448fb493d5647
[ "Apache-2.0" ]
1
2019-03-02T07:15:58.000Z
2019-03-02T07:15:58.000Z
keras_retinanet/preprocessing/generator.py
wawancenggoro/i3d_lung_nodule_detection_ori
e5e6fcd89603fb22a9926ad0930448fb493d5647
[ "Apache-2.0" ]
null
null
null
keras_retinanet/preprocessing/generator.py
wawancenggoro/i3d_lung_nodule_detection_ori
e5e6fcd89603fb22a9926ad0930448fb493d5647
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-2018 Fizyr (https://fizyr.com) 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 w...
42.125285
225
0.635592
fec93b3c93e8dea0f507d2f08bc15bfca3f4631d
574
py
Python
test_package/conanfile.py
FromAlaska/CS372Proj1
36091b033b8166a6f1ec93f5915f49430b995c3e
[ "BSL-1.0" ]
3
2020-05-09T17:21:06.000Z
2020-11-25T07:14:54.000Z
test_package/conanfile.py
FromAlaska/CS372Proj1
36091b033b8166a6f1ec93f5915f49430b995c3e
[ "BSL-1.0" ]
null
null
null
test_package/conanfile.py
FromAlaska/CS372Proj1
36091b033b8166a6f1ec93f5915f49430b995c3e
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python from os import getenv from os import path from conans import ConanFile from conans import CMake class CatchConanTest(ConanFile): generators = "cmake" settings = "os", "compiler", "arch", "build_type" username = getenv("CONAN_USERNAME", "philsquared") channel = getenv("CONAN_CHANN...
26.090909
56
0.648084
f0f232ef1c6040a4421f4c69e1c2e73f55f32fa1
8,534
py
Python
art/defences/preprocessor/jpeg_compression.py
mcguires5/adversarial-robustness-toolbox
f8b0552859eaf31c5b66e1d14d28b89178795ad0
[ "MIT" ]
1
2020-07-12T03:45:23.000Z
2020-07-12T03:45:23.000Z
art/defences/preprocessor/jpeg_compression.py
mcguires5/adversarial-robustness-toolbox
f8b0552859eaf31c5b66e1d14d28b89178795ad0
[ "MIT" ]
105
2020-08-24T06:15:43.000Z
2022-03-24T08:03:16.000Z
art/defences/preprocessor/jpeg_compression.py
mcguires5/adversarial-robustness-toolbox
f8b0552859eaf31c5b66e1d14d28b89178795ad0
[ "MIT" ]
null
null
null
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2018 # # 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 # r...
39.146789
120
0.641551
1e0624e15aa5581eb0621e7c27eb9f6dbbb9cd13
231
py
Python
AdHoc/ADDREV.py
PK-100/Competitive_Programming
d0863feaaa99462b2999e85dcf115f7a6c08bb8d
[ "MIT" ]
70
2018-06-25T21:20:15.000Z
2022-03-24T03:55:17.000Z
AdHoc/ADDREV.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
4
2018-09-04T13:12:20.000Z
2021-06-20T08:29:12.000Z
AdHoc/ADDREV.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
24
2018-12-26T05:15:32.000Z
2022-01-23T23:04:54.000Z
# Problem: https://www.spoj.com/IITRPRF1/problems/ADDREV/ def rev(n): st=str(n) st=st[::-1] s=int(st) return s t=int(input()) for _ in range(t): m,n=[int(x) for x in input().strip().split()] s=rev(m) + rev(n) print(rev(s))
17.769231
57
0.61039
b8f38690af9e648addd16f928f8ada07719f1bc3
5,483
py
Python
commongroups/tests/test_commongroups.py
akokai/commongroups
03c67b7f015c7f939a2f8122583dee1b38e64a56
[ "MIT" ]
3
2017-04-27T06:49:38.000Z
2020-09-20T13:47:49.000Z
commongroups/tests/test_commongroups.py
akokai/commongroups
03c67b7f015c7f939a2f8122583dee1b38e64a56
[ "MIT" ]
7
2017-03-23T20:08:03.000Z
2017-11-13T03:59:37.000Z
commongroups/tests/test_commongroups.py
akokai/commongroups
03c67b7f015c7f939a2f8122583dee1b38e64a56
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test suite for commongroups program architecture. For tests of database query logic, stay tuned... Depends: Home environment is configured; structure-searchable database exists and PostgreSQL is running; Google Sheets access is configured. Side-effects: Creates directories an...
31.331429
79
0.696881
aab370f7ae7a2c26319af0dd800be937d809261f
302
py
Python
cfopenapi/blueprints/core.py
joaopcanario/cfopen-api
3a91736feaaab02160344c9d49a9a21be1eaa621
[ "MIT" ]
null
null
null
cfopenapi/blueprints/core.py
joaopcanario/cfopen-api
3a91736feaaab02160344c9d49a9a21be1eaa621
[ "MIT" ]
null
null
null
cfopenapi/blueprints/core.py
joaopcanario/cfopen-api
3a91736feaaab02160344c9d49a9a21be1eaa621
[ "MIT" ]
null
null
null
from flask import Blueprint, redirect, url_for, jsonify core_bp = Blueprint("core_bp", __name__) @core_bp.route('/', methods=['GET']) def root(): try: return redirect(url_for('flasgger.apidocs')), 302 except Exception: return jsonify("API Documentation isn't loaded!"), 200
23.230769
62
0.678808
d91ed4fbf3c8e626f4aabee96db4012540973a47
59
py
Python
syncplay/__init__.py
weeb-poly/syncplay-proxy
71e7a847bd684dcfef35fe290d47d2c328b25743
[ "Apache-2.0" ]
2
2021-09-06T18:42:16.000Z
2022-03-07T19:29:56.000Z
syncplay/__init__.py
weeb-poly/syncplay-proxy
71e7a847bd684dcfef35fe290d47d2c328b25743
[ "Apache-2.0" ]
null
null
null
syncplay/__init__.py
weeb-poly/syncplay-proxy
71e7a847bd684dcfef35fe290d47d2c328b25743
[ "Apache-2.0" ]
1
2021-12-30T15:33:07.000Z
2021-12-30T15:33:07.000Z
projectURL = 'https://github.com/weeb-poly/syncplay-proxy'
29.5
58
0.762712
1e583dc7dccb91cc1a05f53b56d187a09c980e5a
20,216
py
Python
sigridci/sigridci.py
Software-Improvement-Group/sigridci
c3c4b248a6b8cfcbf0b0c7634413e3c5816ff9f0
[ "Apache-2.0" ]
15
2021-02-17T10:52:16.000Z
2022-03-09T09:57:53.000Z
sigridci/sigridci.py
Software-Improvement-Group/sigridci
c3c4b248a6b8cfcbf0b0c7634413e3c5816ff9f0
[ "Apache-2.0" ]
18
2021-02-17T14:51:06.000Z
2022-03-23T08:44:51.000Z
sigridci/sigridci.py
Software-Improvement-Group/sigridci
c3c4b248a6b8cfcbf0b0c7634413e3c5816ff9f0
[ "Apache-2.0" ]
11
2021-02-17T11:27:55.000Z
2022-03-07T15:06:39.000Z
#!/usr/bin/env python3 # Copyright Software Improvement Group # # 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 appli...
41.682474
135
0.616838
e15cb473b9e86f402c7cc6e07595cd1b2e600dc4
237
py
Python
example/example.py
getveryrichet/example_pip_package
b72b66014ac72bb24b6e31679632e51321ecb96c
[ "MIT" ]
null
null
null
example/example.py
getveryrichet/example_pip_package
b72b66014ac72bb24b6e31679632e51321ecb96c
[ "MIT" ]
null
null
null
example/example.py
getveryrichet/example_pip_package
b72b66014ac72bb24b6e31679632e51321ecb96c
[ "MIT" ]
null
null
null
import numpy as np # after from example import example # allows using example.child_example.child_example() from .child import child_example def hello_requests(): print(np) def check_time(): child_example.child_example_time()
23.7
53
0.776371
014e682ff638c2da45728fa7575ef829c6887e07
7,024
py
Python
env/Lib/site-packages/plotly/graph_objs/cone/colorbar/_title.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
env/Lib/site-packages/plotly/graph_objs/cone/colorbar/_title.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
14
2021-10-20T23:33:47.000Z
2021-12-21T04:50:37.000Z
env/Lib/site-packages/plotly/graph_objs/cone/colorbar/_title.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "cone.colorbar" _path_str = "cone.colorbar.title" _valid_props = {"font", "side", "text"} ...
33.2891
82
0.537443
3c526dd62e729b61dfcc912790b4f3616dd2887c
1,116
py
Python
google/cloud/aiplatform_v1/types/job_state.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
google/cloud/aiplatform_v1/types/job_state.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/types/job_state.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
28.615385
74
0.725806
d232b04b709b7a1c7c04ca69739584fcb89073ae
6,497
py
Python
tests/unit/unit_test_annotations.py
Burrch3s/synapsePythonClient
2d1bcca576d43118c78b2e81db69ac6e5bfbf8f5
[ "Apache-2.0" ]
null
null
null
tests/unit/unit_test_annotations.py
Burrch3s/synapsePythonClient
2d1bcca576d43118c78b2e81db69ac6e5bfbf8f5
[ "Apache-2.0" ]
null
null
null
tests/unit/unit_test_annotations.py
Burrch3s/synapsePythonClient
2d1bcca576d43118c78b2e81db69ac6e5bfbf8f5
[ "Apache-2.0" ]
null
null
null
# unit tests for python synapse client ############################################################ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import OrderedDict from datetime import datetime as D...
43.313333
115
0.672464
945199c8b87a369bc40d7ffd58413ad1ecd42e24
1,657
py
Python
pandna/base_bio_data_frame.py
dceoy/pandaseq
2679bc232497e285ba8a09c394863eb6affc580a
[ "MIT" ]
null
null
null
pandna/base_bio_data_frame.py
dceoy/pandaseq
2679bc232497e285ba8a09c394863eb6affc580a
[ "MIT" ]
null
null
null
pandna/base_bio_data_frame.py
dceoy/pandaseq
2679bc232497e285ba8a09c394863eb6affc580a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Pandas-based Data Frame Handlers DNA-sequencing # https://github.com/dceoy/pandna from abc import ABCMeta, abstractmethod import os import subprocess import pandas as pd class BaseBioDataFrame(object, metaclass=ABCMeta): def __init__(self, path, supported_exts=[]): if os.path.is...
30.127273
78
0.592034
8abfff184db95a5821dff4ad5ed2969625a304f4
13,329
py
Python
uwsgiconf/options/routing.py
graceshaw/uwsgiconf
205289bb279dfbcc1d9bfd599dd8ca5d6c527077
[ "BSD-3-Clause" ]
null
null
null
uwsgiconf/options/routing.py
graceshaw/uwsgiconf
205289bb279dfbcc1d9bfd599dd8ca5d6c527077
[ "BSD-3-Clause" ]
null
null
null
uwsgiconf/options/routing.py
graceshaw/uwsgiconf
205289bb279dfbcc1d9bfd599dd8ca5d6c527077
[ "BSD-3-Clause" ]
null
null
null
import os from .routing_actions import * from .routing_modifiers import * from .routing_routers import * from .routing_subjects import * from .routing_vars import * from ..base import OptionsGroup from ..exceptions import ConfigurationError from ..utils import listify class RouteRule: """Represents a routing rul...
31.735714
110
0.637332
382a21773a33f3d0ef34fe435bc30972d50ff231
2,126
py
Python
implicit_solver/lib/system/solver.py
vincentbonnetcg/Numerical-Bric-a-Brac
e71f2305d7452de985e5e9fa8935da611b6d9992
[ "MIT" ]
14
2019-05-04T00:42:47.000Z
2021-09-07T09:57:44.000Z
implicit_solver/lib/system/solver.py
vincentbonnetcg/Numerical-Bric-a-Brac
e71f2305d7452de985e5e9fa8935da611b6d9992
[ "MIT" ]
null
null
null
implicit_solver/lib/system/solver.py
vincentbonnetcg/Numerical-Bric-a-Brac
e71f2305d7452de985e5e9fa8935da611b6d9992
[ "MIT" ]
5
2020-12-07T21:44:41.000Z
2021-09-13T05:29:54.000Z
""" @author: Vincent Bonnet @description : Solver to orchestrate the step of a solver """ import core from lib.system import Scene from core import Details class SolverContext: ''' SolverContext to store time, time stepping, etc. ''' def __init__(self, time = 0.0, frame_dt = 1.0/24.0, num_substep = 4,...
34.852459
96
0.669802
afbe35d5e6242dc618515f281dfec9e1090c5d9e
6,016
py
Python
test/core_tests/value_reader_test.py
jonppe/xknx
b08a122b0f3c170d91aae6213a60c7038e451c93
[ "MIT" ]
1
2020-12-27T13:54:34.000Z
2020-12-27T13:54:34.000Z
test/core_tests/value_reader_test.py
jonppe/xknx
b08a122b0f3c170d91aae6213a60c7038e451c93
[ "MIT" ]
1
2021-02-17T23:54:32.000Z
2021-02-17T23:54:32.000Z
test/core_tests/value_reader_test.py
mielune/xknx
57c248c386f2ae150d983f72a5a8da684097265d
[ "MIT" ]
null
null
null
"""Unit test for value reader.""" import asyncio import unittest from unittest.mock import patch from xknx import XKNX from xknx.core import ValueReader from xknx.dpt import DPTBinary from xknx.telegram import GroupAddress, Telegram, TelegramDirection, TelegramType class TestValueReader(unittest.TestCase): """Te...
40.92517
97
0.677527
2af93665bb776e21644701c6bca41dc9417df9ea
2,078
py
Python
2016/day01/taxicab.py
kmcginn/advent-of-code
96a8d7d723f6f222d431fd9ede88d0a303d86761
[ "MIT" ]
null
null
null
2016/day01/taxicab.py
kmcginn/advent-of-code
96a8d7d723f6f222d431fd9ede88d0a303d86761
[ "MIT" ]
null
null
null
2016/day01/taxicab.py
kmcginn/advent-of-code
96a8d7d723f6f222d431fd9ede88d0a303d86761
[ "MIT" ]
null
null
null
def handleTurn(heading, turn): if heading == 'N': if turn == 'L': return 'W' else: return 'E' elif heading == 'S': if turn == 'L': return 'E' else: return 'W' elif heading == 'E': if turn == 'L': return 'N' ...
30.558824
624
0.4923
2383a23f7e6bd470a09532a4bca173f6de97fe87
6,668
py
Python
src/ircthread.py
argentumproject/electrum-server-arg
66a0980b19a9f7dc818f2924948f9534a7dbb632
[ "MIT" ]
2
2016-12-31T16:28:23.000Z
2018-05-27T08:08:58.000Z
src/ircthread.py
argentumproject/electrum-server-arg
66a0980b19a9f7dc818f2924948f9534a7dbb632
[ "MIT" ]
null
null
null
src/ircthread.py
argentumproject/electrum-server-arg
66a0980b19a9f7dc818f2924948f9534a7dbb632
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright(C) 2011-2016 Thomas Voegtlin # # 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, m...
37.251397
147
0.624325
e8c966ffb7bcea053e191563bc58049800ffb94b
4,577
py
Python
driver/classify20.py
sipeed/MaixUI
6c4f473ee70766b827d6ef9350f5fd006d59086c
[ "MIT" ]
66
2020-07-29T16:27:15.000Z
2022-03-20T13:42:17.000Z
driver/classify20.py
sipeed/MaixUI
6c4f473ee70766b827d6ef9350f5fd006d59086c
[ "MIT" ]
3
2020-08-10T03:07:57.000Z
2022-03-19T13:33:50.000Z
driver/classify20.py
sipeed/MaixUI
6c4f473ee70766b827d6ef9350f5fd006d59086c
[ "MIT" ]
19
2020-08-02T03:04:40.000Z
2022-02-04T09:52:26.000Z
# This file is part of MaixUI # Copyright (c) sipeed.com # # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php # try: from ui_canvas import ui import camera except: from ui_canvas import ui import camera import KPU as kpu # classify20 anchor = (1.889, 2.5245, 2.946...
31.349315
205
0.506008
3b57c731a875e894e52db453e8fbd078d5b68641
8,597
py
Python
userbot/modules/messages.py
oxyda-fox/XBot-Remix
3d97bea5395b223fc89a8cc6cb699cc624ccc967
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/messages.py
oxyda-fox/XBot-Remix
3d97bea5395b223fc89a8cc6cb699cc624ccc967
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/messages.py
oxyda-fox/XBot-Remix
3d97bea5395b223fc89a8cc6cb699cc624ccc967
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
#Encript Marshal By XVenom #https://github.com/xvenom15 import marshal exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\xb2\x00\x00\x00d\x00Z\x00d\x01d\x02l\x01m\x02Z\x02\x01\x00d\x01d\x03l\x03m\x04Z\x04\x01\x00d\x01d\x04l\x05m\x06Z\x06m\x07Z\x07m\x...
2,149.25
8,526
0.762824
62be4516ddb55b3d98c8d6d7661a9c0dd9b1352f
1,560
py
Python
pyromsobs/extraCoastMask.py
metno/pyromsobs
8479a13908797a5e7370f272a3462b7c6d59e45e
[ "MIT" ]
null
null
null
pyromsobs/extraCoastMask.py
metno/pyromsobs
8479a13908797a5e7370f272a3462b7c6d59e45e
[ "MIT" ]
null
null
null
pyromsobs/extraCoastMask.py
metno/pyromsobs
8479a13908797a5e7370f272a3462b7c6d59e45e
[ "MIT" ]
1
2019-05-24T08:53:28.000Z
2019-05-24T08:53:28.000Z
from .OBSstruct import OBSstruct from .utils import setDimensions from netCDF4 import Dataset import numpy as np def inds(ps): if (np.floor(ps) == np.ceil(ps)): ind = [ps.astype(int)] else: ind = [np.floor(ps).astype(int), np.ceil(ps).astype(int)] return ind def masked(var): if np.ma.i...
28.363636
87
0.601923
41debf2826f4ad6a904e296c7ae6e4238e050c08
8,045
py
Python
src/oci/core/models/create_cluster_network_instance_pool_details.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-09-10T22:09:45.000Z
2021-12-24T17:00:07.000Z
src/oci/core/models/create_cluster_network_instance_pool_details.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/create_cluster_network_instance_pool_details.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
36.076233
245
0.679553
2ffa019eae1bcff0b84cfb07b851396a82e83b8b
959
py
Python
DjangoBlog/tests.py
rokuuu1999/NewBrainss
1b0da2fbd1a59db960f05f04f022b033caa4b3bc
[ "MIT" ]
null
null
null
DjangoBlog/tests.py
rokuuu1999/NewBrainss
1b0da2fbd1a59db960f05f04f022b033caa4b3bc
[ "MIT" ]
null
null
null
DjangoBlog/tests.py
rokuuu1999/NewBrainss
1b0da2fbd1a59db960f05f04f022b033caa4b3bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from django.test import Client, RequestFactory, TestCase from blog.models import Article, Category, Tag from django.contrib.auth import get_user_model from DjangoBlog.utils import get_current_site from django.urls import reverse import datetime from DjangoBlog.utils import * ...
25.918919
63
0.632951
e9cb72d249affc5dc4dff5a4085b1a63524a35b3
6,820
py
Python
Han-Ji/naive_bayes/Naive.py
jibanCat/DigitalHumanities
256ad9fa8eba98565fbfb33e25ed045ad42767fc
[ "MIT" ]
1
2021-06-03T20:53:18.000Z
2021-06-03T20:53:18.000Z
Han-Ji/naive_bayes/Naive.py
jibanCat/DigitalHumanities
256ad9fa8eba98565fbfb33e25ed045ad42767fc
[ "MIT" ]
null
null
null
Han-Ji/naive_bayes/Naive.py
jibanCat/DigitalHumanities
256ad9fa8eba98565fbfb33e25ed045ad42767fc
[ "MIT" ]
1
2018-05-22T09:18:21.000Z
2018-05-22T09:18:21.000Z
import sys import os import re import numpy as np import pandas as pd from collections import defaultdict class NaiveBayes: """ A NaiveBayes class designed for calculate the probability of a specific type of tags (time, place, person names, etc). It is currently only able to calculate the probabil...
36.470588
97
0.595015
14fd3f7251f2a9bd5b958b7cbbd76bd2c8b715f1
15,566
py
Python
selfdrive/controls/lib/longitudinal_planner.py
DS1SQM/OPKR085test_210525
787fd16a20782e31d3430a71a50207dc844c3152
[ "MIT" ]
null
null
null
selfdrive/controls/lib/longitudinal_planner.py
DS1SQM/OPKR085test_210525
787fd16a20782e31d3430a71a50207dc844c3152
[ "MIT" ]
null
null
null
selfdrive/controls/lib/longitudinal_planner.py
DS1SQM/OPKR085test_210525
787fd16a20782e31d3430a71a50207dc844c3152
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import math from datetime import datetime import time import numpy as np from common.params import Params from common.numpy_fast import interp import cereal.messaging as messaging from cereal import car from common.realtime import sec_since_boot from selfdrive.swaglog import cloudlog f...
43.480447
177
0.694398
69d44e9ba33a7bea0e21c95a8206937d081cf54d
6,905
py
Python
archivetoparquet.py
ScottSyms/AISArchive
eee55b97d6010679c30bb00601827ba04a91faf5
[ "BSD-2-Clause" ]
null
null
null
archivetoparquet.py
ScottSyms/AISArchive
eee55b97d6010679c30bb00601827ba04a91faf5
[ "BSD-2-Clause" ]
null
null
null
archivetoparquet.py
ScottSyms/AISArchive
eee55b97d6010679c30bb00601827ba04a91faf5
[ "BSD-2-Clause" ]
null
null
null
import pandas as pd from bitstring import BitString import pyarrow import pyarrow.parquet as pq import numpy as np import sys # Constants lookupstring = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ !\"#$%&\\()*+,-./0123456789:;<=>?" def convertPayload(string): """ AIS payloads are encoded in six bit ascii. This conve...
31.674312
91
0.623606
5f5bb022bda5a9f4a8732940f0eeae12e30dcdab
1,071
py
Python
examples/compare_1d.py
ndrwpvlv/sinterp
5c4606e9b82bf703650d320c74005fa16c98cb23
[ "MIT" ]
null
null
null
examples/compare_1d.py
ndrwpvlv/sinterp
5c4606e9b82bf703650d320c74005fa16c98cb23
[ "MIT" ]
null
null
null
examples/compare_1d.py
ndrwpvlv/sinterp
5c4606e9b82bf703650d320c74005fa16c98cb23
[ "MIT" ]
null
null
null
import random import time from numpy import interp from sinterp import interp1d times = [] # list with time of calculation ratios = [] # ratio of calc with interp to interp1d deltas = [] # summary delta of difference results by iteration size = [] for kk in range(2, 5): x1 = 0 x2 = int(10 ** kk) size...
26.121951
85
0.623716
02b1af15aa88e85c0dbc3efd257130f9c8c8bb47
12,680
py
Python
test_notipy.py
nbryans/notipy
f925dcb97d0d4e5124e1f3d4d3a7ed3a0aa47bc7
[ "MIT" ]
null
null
null
test_notipy.py
nbryans/notipy
f925dcb97d0d4e5124e1f3d4d3a7ed3a0aa47bc7
[ "MIT" ]
null
null
null
test_notipy.py
nbryans/notipy
f925dcb97d0d4e5124e1f3d4d3a7ed3a0aa47bc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import notipymail.notipy as notipy import unittest import time import os try: from StringIO import StringIO except ImportError: from io import StringIO class TestUpdating(unittest.TestCase): toAddr = "to@destination.com" toAddr2 = "to2@destination2.com" msg = "Test Message "...
37.514793
126
0.644006
f098ba3dedf95f7c8d57cacbe68543b9f09b8463
2,524
py
Python
scripts/post.py
sebbASF/asfmm
ee93bf6fa617f74ba40bf4b2d3b6af70e873edf9
[ "Apache-2.0" ]
null
null
null
scripts/post.py
sebbASF/asfmm
ee93bf6fa617f74ba40bf4b2d3b6af70e873edf9
[ "Apache-2.0" ]
null
null
null
scripts/post.py
sebbASF/asfmm
ee93bf6fa617f74ba40bf4b2d3b6af70e873edf9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, ...
39.4375
128
0.649762
d9d3133cc49bc0484d36245dd1584855b06f7e74
8,135
py
Python
fanficfare/adapters/adapter_spikeluvercom.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
1
2019-06-13T11:20:33.000Z
2019-06-13T11:20:33.000Z
fanficfare/adapters/adapter_spikeluvercom.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
null
null
null
fanficfare/adapters/adapter_spikeluvercom.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
null
null
null
# Software: eFiction import re import urllib2 import urlparse from bs4.element import Tag from ..htmlcleanup import stripHTML from base_adapter import BaseSiteAdapter, makeDate from .. import exceptions def getClass(): return SpikeluverComAdapter # yields Tag _and_ NavigableString siblings from the given tag....
38.192488
133
0.587216
6f48d22148d40e03dac4ff439f8196edbdc90641
2,966
py
Python
bokeh/models/__init__.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2015-01-31T14:42:39.000Z
2015-01-31T14:42:39.000Z
bokeh/models/__init__.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2021-05-08T06:24:26.000Z
2021-05-08T06:24:26.000Z
bokeh/models/__init__.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2021-03-04T05:23:36.000Z
2021-03-04T05:23:36.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
36.617284
78
0.433918
9d2e5bc7524e4b305ab0524c691b410a62e7d66a
147
py
Python
scripts/portal/go_reward.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/portal/go_reward.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/portal/go_reward.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# 811000500 - Princess No (pno) response = sm.sendAskYesNo("Would you like to leave?") if response: sm.clearPartyInfo(811000100) sm.dispose()
21
54
0.727891
563c085d1b09e42dfc2fa5ce87e1f6cfd2218502
4,773
py
Python
SSD/notebooks/visualization.py
BerkeleyAutomation/traffic-cam-pipeline
7bca5aefb8ee140348a3a2080a36d0acfbd39723
[ "MIT" ]
null
null
null
SSD/notebooks/visualization.py
BerkeleyAutomation/traffic-cam-pipeline
7bca5aefb8ee140348a3a2080a36d0acfbd39723
[ "MIT" ]
null
null
null
SSD/notebooks/visualization.py
BerkeleyAutomation/traffic-cam-pipeline
7bca5aefb8ee140348a3a2080a36d0acfbd39723
[ "MIT" ]
null
null
null
# Copyright 2017 Paul Balanca. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
41.504348
100
0.508695
2ce47c4973f5695e3aebe6f6bafea99ac0d31303
138,924
py
Python
tensorflow/python/framework/ops_test.py
jasonhargrove/tensorflow
2cbcbccc976313810242ea7256c24030815f140f
[ "Apache-2.0" ]
1
2021-08-18T18:07:02.000Z
2021-08-18T18:07:02.000Z
tensorflow/python/framework/ops_test.py
harishsg99/tensorflow
4f5a6e748eb8fb16d10738b7d1c2c95d5e6c008c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/framework/ops_test.py
harishsg99/tensorflow
4f5a6e748eb8fb16d10738b7d1c2c95d5e6c008c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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...
37.145455
97
0.657143
c33e3dddcadc8eb9b4977377c1b3c3f11492854b
7,624
py
Python
web/dataTableHandler.py
haoduohaoduo/stock
6f1b613d375a8692e1d99bf1a417b769a0b8ee50
[ "Apache-2.0" ]
1
2021-08-01T07:39:08.000Z
2021-08-01T07:39:08.000Z
web/dataTableHandler.py
haoduohaoduo/stock
6f1b613d375a8692e1d99bf1a417b769a0b8ee50
[ "Apache-2.0" ]
null
null
null
web/dataTableHandler.py
haoduohaoduo/stock
6f1b613d375a8692e1d99bf1a417b769a0b8ee50
[ "Apache-2.0" ]
1
2021-11-26T07:37:43.000Z
2021-11-26T07:37:43.000Z
#!/usr/local/bin/python3 # -*- coding: utf-8 -*- import json from tornado import gen import libs.stock_web_dic as stock_web_dic import web.base as webBase import logging import datetime # info 蓝色 云财经 # success 绿色 # danger 红色 东方财富 # warning 黄色 WEB_EASTMONEY_URL = u""" <a class='btn btn-danger btn-xs tooltip-dang...
40.338624
149
0.552859
f9d110588df578559f1e77355414cc3f41868188
342
py
Python
ProjectEuler/Task010_SumPrimes.py
greendwin/puzzles
5df1175f178d0c3e1ffa765160057d90e9da37cd
[ "MIT" ]
null
null
null
ProjectEuler/Task010_SumPrimes.py
greendwin/puzzles
5df1175f178d0c3e1ffa765160057d90e9da37cd
[ "MIT" ]
null
null
null
ProjectEuler/Task010_SumPrimes.py
greendwin/puzzles
5df1175f178d0c3e1ffa765160057d90e9da37cd
[ "MIT" ]
null
null
null
PRIMES = [] def check_prime_inc(N): for x in PRIMES: if x * x > N: break if N % x == 0: return PRIMES.append(N) return N def iter_primes(N): for x in xrange(2, N): if check_prime_inc(x): yield x if __name__ == '__main__': print sum(...
14.25
35
0.511696
ab2dcbab8d79624c2225bc1f14182246dac3e864
10,041
py
Python
cairis/controllers/ResponseController.py
RAIJ95/https-github.com-failys-cairis
86601347ea016f4a3f90b6942093d63e91de5f74
[ "Apache-2.0" ]
null
null
null
cairis/controllers/ResponseController.py
RAIJ95/https-github.com-failys-cairis
86601347ea016f4a3f90b6942093d63e91de5f74
[ "Apache-2.0" ]
null
null
null
cairis/controllers/ResponseController.py
RAIJ95/https-github.com-failys-cairis
86601347ea016f4a3f90b6942093d63e91de5f74
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
33.922297
103
0.558012
15eb9c78443af7f81ff0a8305327572ac6749a94
26,951
py
Python
Lib/asyncio/sslproto.py
Neeky/cpython-3.7.3
2b6d6a6132ad497e9ce70a3358468099dd407b2a
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/asyncio/sslproto.py
Neeky/cpython-3.7.3
2b6d6a6132ad497e9ce70a3358468099dd407b2a
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/asyncio/sslproto.py
Neeky/cpython-3.7.3
2b6d6a6132ad497e9ce70a3358468099dd407b2a
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
import collections import warnings try: import ssl except ImportError: # pragma: no cover ssl = None from . import base_events from . import constants from . import protocols from . import transports from .log import logger def _create_transport_context(server_side, server_hostname): if server_side: ...
37.020604
79
0.605655
9ef5d4d677a7cf87dc6f0834054c7817f861e9d1
4,380
py
Python
app/recipe/tests/tests_ingredient_api.py
momchilantonov/recipe_app_api
5fe15fa184f464a677f65d45d33d8241c627b432
[ "MIT" ]
null
null
null
app/recipe/tests/tests_ingredient_api.py
momchilantonov/recipe_app_api
5fe15fa184f464a677f65d45d33d8241c627b432
[ "MIT" ]
null
null
null
app/recipe/tests/tests_ingredient_api.py
momchilantonov/recipe_app_api
5fe15fa184f464a677f65d45d33d8241c627b432
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingredient, Recipe from recipe.serializers import IngredientSerializer INGREDIENTS_URL = reverse('recipe:i...
36.806723
78
0.66484
32194989518a3401f14cf907b8beb81db996805c
1,346
py
Python
app-test.py
webbyfox/suade
52a93df0f4cb1f6442b6c7dd259c8350a7687082
[ "MIT" ]
null
null
null
app-test.py
webbyfox/suade
52a93df0f4cb1f6442b6c7dd259c8350a7687082
[ "MIT" ]
null
null
null
app-test.py
webbyfox/suade
52a93df0f4cb1f6442b6c7dd259c8350a7687082
[ "MIT" ]
null
null
null
from app import app import unittest class BasicTestCase(unittest.TestCase): def test_index(self): tester = app.test_client(self) response = tester.get('/', content_type='html/text') self.assertEqual(response.status_code, 200) self.assertEqual(response.data, b'Welcome to Suade Rep...
34.512821
77
0.664933
2293aae1c740cfcd9eee5978496fad92d91ae67b
30,196
py
Python
simscale_sdk/models/one_of_convective_heat_transfer_boundary_conditions.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/one_of_convective_heat_transfer_boundary_conditions.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/one_of_convective_heat_transfer_boundary_conditions.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class OneOfConvectiveHeatTransferBoundaryConditions(object): """NOTE:...
40.695418
693
0.722811
b2df8f08997aff9e5af9a781eb6dfdc38b377096
441
py
Python
tests/remotes/local.py
sahilbhosale63/dvc
999c9e188801f971b75f51ca84f5bad533cb462c
[ "Apache-2.0" ]
null
null
null
tests/remotes/local.py
sahilbhosale63/dvc
999c9e188801f971b75f51ca84f5bad533cb462c
[ "Apache-2.0" ]
null
null
null
tests/remotes/local.py
sahilbhosale63/dvc
999c9e188801f971b75f51ca84f5bad533cb462c
[ "Apache-2.0" ]
null
null
null
import pytest from tests.basic_env import TestDvc from .base import Base class Local(Base): @staticmethod def get_storagepath(): return TestDvc.mkdtemp() @staticmethod def get_url(): return Local.get_storagepath() @pytest.fixture def local_cloud(): yield Local() @pytest.fixt...
16.333333
49
0.714286
5a47c6982cb27e8cfc468e2c702c4c85a85deb3a
2,870
py
Python
userbot/plugins/_helper.py
kwkwkkw/ironbot
1b7e6def5f3a6af030317b9405ebda7db711fcee
[ "MIT" ]
1
2020-09-16T09:55:12.000Z
2020-09-16T09:55:12.000Z
userbot/plugins/_helper.py
kwkwkkw/ironbot
1b7e6def5f3a6af030317b9405ebda7db711fcee
[ "MIT" ]
null
null
null
userbot/plugins/_helper.py
kwkwkkw/ironbot
1b7e6def5f3a6af030317b9405ebda7db711fcee
[ "MIT" ]
1
2021-07-06T13:44:41.000Z
2021-07-06T13:44:41.000Z
from userbot import CMD_LIST from userbot.utils import admin_cmd import sys from telethon import events, functions, __version__ @command(pattern="^.help ?(.*)") #@borg.on(admin_cmd(pattern=r"help ?(.*)")) async def cmd_list(event): if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"): ...
40.422535
128
0.523693
143ac595c4f7d1f2c5715f0e156253266c333cad
2,078
py
Python
app.py
coffescript/api-rest-flask
3e844f8a13706b6d23a4def36147d3f26ce1981b
[ "MIT" ]
1
2019-11-18T07:51:54.000Z
2019-11-18T07:51:54.000Z
app.py
coffescript/api-rest-flask
3e844f8a13706b6d23a4def36147d3f26ce1981b
[ "MIT" ]
null
null
null
app.py
coffescript/api-rest-flask
3e844f8a13706b6d23a4def36147d3f26ce1981b
[ "MIT" ]
null
null
null
#flask from flask import Flask, jsonify, request app = Flask(__name__) from products import Products @app.route('/ping') def ping(): return jsonify({'message': 'pong!'}) @app.route('/products', methods=['GET']) def getProducts(): return jsonify({"products": Products, "message": "Products list"}) @app.route...
32.984127
88
0.639557
32b5360b83fa5a09241c3e328d4a55678f74f6b0
5,125
py
Python
sims-2/dg-maxwell/s5/plot-sol.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
1
2019-12-19T16:21:13.000Z
2019-12-19T16:21:13.000Z
sims-2/dg-maxwell/s5/plot-sol.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
null
null
null
sims-2/dg-maxwell/s5/plot-sol.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
2
2020-01-08T06:23:33.000Z
2020-01-08T07:06:50.000Z
import pylab import tables import math import numpy import pylab import numpy from matplotlib import rcParams import matplotlib.pyplot as plt # customization for figure rcParams['lines.linewidth'] = 2 rcParams['font.size'] = 18 #rcParams['xtick.major.size'] = 8 # default is 4 #rcP...
33.940397
160
0.654244
5eb09a749fd8fe8df7170e95b9dd852cb5ae5854
225
py
Python
mattslib/__init__.py
greenmachine1902/NEAT
5bfab1e38ccebb6d40ef46c5ea2f7f482b5c6be8
[ "BSD-3-Clause" ]
null
null
null
mattslib/__init__.py
greenmachine1902/NEAT
5bfab1e38ccebb6d40ef46c5ea2f7f482b5c6be8
[ "BSD-3-Clause" ]
null
null
null
mattslib/__init__.py
greenmachine1902/NEAT
5bfab1e38ccebb6d40ef46c5ea2f7f482b5c6be8
[ "BSD-3-Clause" ]
null
null
null
from .list import condense, findMaxMin from . import dict from . import file from . import math_util from . import pygame __all__ = ['dict', 'file', 'list', 'math_util', 'condense', 'findMaxMin'] __version__ = '1.2'
25
74
0.684444
f9342bd4a0dff29830985194be9cb0f0ba672e9e
807
py
Python
src/Canonical/constants.py
mwjjeong/SpliceAI-test
4050038e3c3863ba3d58b311d895ef48b7be7af6
[ "Zlib" ]
null
null
null
src/Canonical/constants.py
mwjjeong/SpliceAI-test
4050038e3c3863ba3d58b311d895ef48b7be7af6
[ "Zlib" ]
null
null
null
src/Canonical/constants.py
mwjjeong/SpliceAI-test
4050038e3c3863ba3d58b311d895ef48b7be7af6
[ "Zlib" ]
2
2020-05-20T03:48:07.000Z
2021-12-18T22:01:17.000Z
CL_max=10000 # Maximum nucleotide context length (CL_max/2 on either side of the # position of interest) # CL_max should be an even number SL=5000 # Sequence length of SpliceAIs (SL+CL will be the input length and # SL will be the output length) # directory settings PROJECT_DIR='/extdata4/baeklab/minwoo/projects/Spl...
40.35
93
0.812887
ec5dcd396e1d3a07df7eb9fac6f34938d7bece5a
3,659
py
Python
tests/test_filesystem.py
robtucker/pyspark-tooling
946773975b4069c448dca1590eff3ae77a25be98
[ "MIT" ]
null
null
null
tests/test_filesystem.py
robtucker/pyspark-tooling
946773975b4069c448dca1590eff3ae77a25be98
[ "MIT" ]
null
null
null
tests/test_filesystem.py
robtucker/pyspark-tooling
946773975b4069c448dca1590eff3ae77a25be98
[ "MIT" ]
null
null
null
import os import uuid import pandas as pd from zipfile import ZipFile from pyspark_tooling.filesystem import EmrFilesystem from tests import base CSV_DATA = """ foo,bar a,1 b,2 c,3 """ YAML_DATA = """ foo: - a: 1 - b: 2 """ SQL_DATA = """ SELECT * FROM my_table WHERE my_condition IS NOT NULL """ class TestFi...
26.514493
73
0.600437
f04000af79bd5b56d7a115679cb95b264c253ec9
1,057
py
Python
ote_sdk/ote_sdk/usecases/evaluation/performance_provider_interface.py
vyashina/training_extensions
e7aa33af94a1f8004d3ea2df259d99234dfca046
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/usecases/evaluation/performance_provider_interface.py
vyashina/training_extensions
e7aa33af94a1f8004d3ea2df259d99234dfca046
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/usecases/evaluation/performance_provider_interface.py
vyashina/training_extensions
e7aa33af94a1f8004d3ea2df259d99234dfca046
[ "Apache-2.0" ]
null
null
null
""" This module contains interface for performance providers. """ # INTEL CONFIDENTIAL # # Copyright (C) 2021 Intel Corporation # # This software and the related documents are Intel copyrighted materials, and # your use of them is governed by the express license under which they were provided to # you ("License"). Unl...
30.2
88
0.741722
2421211bee3d36f0d538abfb5dd8e805e5c70e60
16,243
py
Python
geopandas/io/arrow.py
ameier3/geopandas
0435306e74c71b870c06ea4e26dc4d4ee85ea9d9
[ "BSD-3-Clause" ]
1
2022-01-29T11:04:05.000Z
2022-01-29T11:04:05.000Z
geopandas/io/arrow.py
ameier3/geopandas
0435306e74c71b870c06ea4e26dc4d4ee85ea9d9
[ "BSD-3-Clause" ]
null
null
null
geopandas/io/arrow.py
ameier3/geopandas
0435306e74c71b870c06ea4e26dc4d4ee85ea9d9
[ "BSD-3-Clause" ]
null
null
null
from packaging.version import Version import json import warnings from pandas import DataFrame from geopandas._compat import import_optional_dependency from geopandas.array import from_wkb from geopandas import GeoDataFrame import geopandas from .file import _expand_user METADATA_VERSION = "0.1.0" # reference: https...
32.616466
87
0.653759
c36bd5026b34f96bfd247fabcebb9a1d670945e5
1,076
py
Python
LICENSE.py
thismachinekillszombies/game_machine
63e578ebb3e0d220e02f05f5e3c579c7d1cb1ae2
[ "MIT" ]
null
null
null
LICENSE.py
thismachinekillszombies/game_machine
63e578ebb3e0d220e02f05f5e3c579c7d1cb1ae2
[ "MIT" ]
null
null
null
LICENSE.py
thismachinekillszombies/game_machine
63e578ebb3e0d220e02f05f5e3c579c7d1cb1ae2
[ "MIT" ]
null
null
null
MIT License Copyright (c) 2018 Richard Butterworth 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, publis...
48.909091
78
0.806691
9e9699a6f1d4dddffcaa0df37784cb549f57cab3
4,862
py
Python
run.py
andrew-dorrycott/inventory_search
55a02d324188acd7f370010cec6254ff30b72cb1
[ "Apache-2.0" ]
null
null
null
run.py
andrew-dorrycott/inventory_search
55a02d324188acd7f370010cec6254ff30b72cb1
[ "Apache-2.0" ]
null
null
null
run.py
andrew-dorrycott/inventory_search
55a02d324188acd7f370010cec6254ff30b72cb1
[ "Apache-2.0" ]
null
null
null
# Standard imports import json import logging import logging.config # Third party imports import flask import sqlalchemy import yaml # Application imports from models.products import Product LOGGER = logging.getLogger(__name__) def load_config(): """ Loads the config from config.yaml :returns: Dict o...
28.769231
79
0.548334
6c41327c644909888733e228df0c524bc2be1be2
242
py
Python
tools/list_remove_duplicates.py
lucasayres/python-tools
686b84986aae1b1714fa5645b1f2a3fd6ef8355d
[ "MIT" ]
71
2018-06-28T17:38:15.000Z
2022-02-08T17:42:42.000Z
tools/list_remove_duplicates.py
DalavanCloud/python-tools
686b84986aae1b1714fa5645b1f2a3fd6ef8355d
[ "MIT" ]
null
null
null
tools/list_remove_duplicates.py
DalavanCloud/python-tools
686b84986aae1b1714fa5645b1f2a3fd6ef8355d
[ "MIT" ]
14
2018-07-08T03:29:29.000Z
2022-03-22T21:04:39.000Z
# -*- coding: utf-8 -*- def list_remove_duplicates(dup_list): """Remove duplicates from a list. Args: dup_list (list): List. Returns: list: Return a list of unique values. """ return list(set(dup_list))
18.615385
45
0.599174
376fe2c452eac359c1fab83544fd67398769c9d4
953
py
Python
preprocess.py
DavidHeSkr/GCN-GAN-pytorch
f8adf82596733464cb63dddf978c244b25aebe46
[ "MIT" ]
66
2019-10-24T07:36:37.000Z
2022-03-29T08:46:33.000Z
preprocess.py
DavidHeSkr/GCN-GAN-pytorch
f8adf82596733464cb63dddf978c244b25aebe46
[ "MIT" ]
2
2019-11-16T10:53:18.000Z
2021-08-31T07:08:42.000Z
preprocess.py
DavidHeSkr/GCN-GAN-pytorch
f8adf82596733464cb63dddf978c244b25aebe46
[ "MIT" ]
24
2019-11-16T02:28:34.000Z
2022-03-31T03:31:01.000Z
import yaml import os import numpy as np from utils import get_snapshot # load config config = yaml.load(open('config.yml')) # build path base_path = os.path.join('./data/', config['dataset']) raw_base_path = os.path.join(base_path, 'raw') train_save_path = os.path.join(base_path, 'train.npy') test_save_path = os.p...
27.228571
86
0.721931
9742e94e5d93b43ec44377afbb605dbcfe64b559
5,849
py
Python
vcfkit/call.py
AndersenLab/VCF-kit
a81a1a56790718c53a525c648995c98a416d3bfe
[ "MIT" ]
86
2017-01-18T14:26:26.000Z
2022-03-17T02:26:17.000Z
vcfkit/call.py
AndersenLab/vcf-toolbox
a81a1a56790718c53a525c648995c98a416d3bfe
[ "MIT" ]
38
2016-10-30T18:52:30.000Z
2022-03-12T15:15:35.000Z
vcfkit/call.py
AndersenLab/vcf-toolbox
a81a1a56790718c53a525c648995c98a416d3bfe
[ "MIT" ]
22
2017-01-18T14:44:38.000Z
2021-12-01T20:59:59.000Z
#!/usr/bin/env python """ usage: vk call <seq> --ref=<reference> (--all-sites|--vcf-sites) <vcf> options: -h --help Show this screen. --version Show version. """ import os import sys from collections import defaultdict from signal import SIG_DFL, SIGPIPE, signal from B...
34.815476
92
0.542315
2282b12b3f0aefe044aa7c20c9c06f723033509e
1,698
py
Python
cpa/tests/test.py
DavidStirling/CellProfiler-Analyst
7a0bfcb5cc7db067844595bdbb90f3132f9a8ea9
[ "MIT" ]
98
2015-02-05T18:22:04.000Z
2022-03-29T12:06:48.000Z
cpa/tests/test.py
DavidStirling/CellProfiler-Analyst
7a0bfcb5cc7db067844595bdbb90f3132f9a8ea9
[ "MIT" ]
268
2015-01-14T15:43:24.000Z
2022-02-13T22:04:37.000Z
cpa/tests/test.py
DavidStirling/CellProfiler-Analyst
7a0bfcb5cc7db067844595bdbb90f3132f9a8ea9
[ "MIT" ]
64
2015-06-30T22:26:03.000Z
2022-03-11T01:06:13.000Z
import wx from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg, NavigationToolbar2WxAgg from matplotlib.backends.backend_wx import _load_bitmap import matplotlib as mpl app = wx.App() f = wx.Frame(None) fig = mpl.figure.Figure() p = FigureCanvasWxAgg(f, -1, fig) toolbar = NavigationToolbar2WxAgg(p) toolba...
33.96
115
0.765607
53183842dd44f3cb21817d7848fe772712524167
4,742
py
Python
DLWP/barotropic/pyspharm_transforms.py
jweyn/DLWP
3f32bfab98eacee2abe880d5bd214b6060627edd
[ "MIT" ]
75
2019-05-02T15:31:49.000Z
2022-03-29T07:00:49.000Z
DLWP/barotropic/pyspharm_transforms.py
flashlxy/DLWP
0fddfa3ee927fa298648fc3eb469f5a7a93e51e9
[ "MIT" ]
1
2020-09-10T11:25:07.000Z
2020-09-17T08:15:17.000Z
DLWP/barotropic/pyspharm_transforms.py
flashlxy/DLWP
0fddfa3ee927fa298648fc3eb469f5a7a93e51e9
[ "MIT" ]
28
2019-05-03T06:02:07.000Z
2022-01-28T20:57:18.000Z
"""A spectral transforms engine using pyspharm.""" # (c) Copyright 2016 Andrew Dawson. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
37.046875
75
0.58857
fab61397130183c213b0d01dc643c72b6361cbea
41,770
py
Python
test/run_test.py
deltabravozulu/pytorch
c6eef589971e45bbedacc7f65533d1b8f80a6895
[ "Intel" ]
null
null
null
test/run_test.py
deltabravozulu/pytorch
c6eef589971e45bbedacc7f65533d1b8f80a6895
[ "Intel" ]
1
2021-04-12T19:49:08.000Z
2021-04-12T19:49:08.000Z
test/run_test.py
deltabravozulu/pytorch
c6eef589971e45bbedacc7f65533d1b8f80a6895
[ "Intel" ]
null
null
null
#!/usr/bin/env python import argparse import copy from datetime import datetime import json import modulefinder import os import shutil import signal import subprocess import sys import tempfile import torch from torch.utils import cpp_extension from torch.testing._internal.common_utils import TEST_WITH_ROCM, shell, ...
37.835145
121
0.66361
411aaecfd27f1ddf416a56cfc0cb25271ff91d8f
758
py
Python
src/data/287.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/287.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/287.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import sys input = sys.stdin.readline N, Q = map(int, input().split()) adj = [[] for n in range(N + 1)] for i in range(N - 1): a, b = map(int, input().split()) adj[a].append(b) adj[b].append(a) def BFS(vnum, sv, adj): from collections import deque dist = [-1] * (vnum + 1...
20.486486
52
0.490765
5e483c9c038493a8c3270f624a5f86ff7d79b795
7,456
py
Python
analysis/mf_grc_analysis/1share/2share_by_dist_gen_210117.py
htem/cb2_project_analysis
a677cbadc7e3bf0074975a94ed1d06b4801899c0
[ "MIT" ]
null
null
null
analysis/mf_grc_analysis/1share/2share_by_dist_gen_210117.py
htem/cb2_project_analysis
a677cbadc7e3bf0074975a94ed1d06b4801899c0
[ "MIT" ]
null
null
null
analysis/mf_grc_analysis/1share/2share_by_dist_gen_210117.py
htem/cb2_project_analysis
a677cbadc7e3bf0074975a94ed1d06b4801899c0
[ "MIT" ]
null
null
null
import os import sys import importlib from collections import defaultdict sys.path.insert(0, '/n/groups/htem/Segmentation/shared-nondev/cb2_segmentation/analysis_mf_grc') from tools_pattern import get_eucledean_dist '''Load data''' import compress_pickle fname = '/n/groups/htem/Segmentation/shared-nondev/cb2_segment...
27.925094
160
0.683208
54cba42ab4a78eaa2a343723f3388fb74de689ca
1,831
py
Python
utils/utils_keypoints.py
atapin/Caricature-Your-Face
92fbf9156f0522bcc2592673c23a718e20b5114f
[ "MIT" ]
27
2020-12-30T23:45:05.000Z
2022-03-10T09:15:39.000Z
utils/utils_keypoints.py
TrueMatthewKirkham/Caricature-Your-Face
205610481ebda3405a74fba801b7dd55afaff89a
[ "MIT" ]
3
2021-01-01T07:09:54.000Z
2022-02-21T21:18:10.000Z
utils/utils_keypoints.py
TrueMatthewKirkham/Caricature-Your-Face
205610481ebda3405a74fba801b7dd55afaff89a
[ "MIT" ]
4
2020-12-31T15:31:24.000Z
2021-12-05T22:40:53.000Z
# Code from https://github.com/sunniesuhyoung/DST import torch import numpy as np from warp import umeyama def init_keypoint_params(input_im, content_path, content_pts, style_pts, device, border_num_pts=80): # Align points with linear similarity transformation T = umeyama(src=content_pts.data.cpu().numpy(),...
36.62
106
0.69361
8680e5894c8ecb258e27f2401f29dcb2b7f174c3
36,468
py
Python
det3d/core/sampler/preprocess.py
jianrenw/SOD-TGNN
2533508f9565edee71af96202086ecc688b3dfe0
[ "MIT" ]
1
2022-03-29T12:04:32.000Z
2022-03-29T12:04:32.000Z
det3d/core/sampler/preprocess.py
jianrenw/SOD-TGNN
2533508f9565edee71af96202086ecc688b3dfe0
[ "MIT" ]
1
2022-02-18T08:17:52.000Z
2022-03-30T07:40:24.000Z
det3d/core/sampler/preprocess.py
jianrenw/SOD-TGNN
2533508f9565edee71af96202086ecc688b3dfe0
[ "MIT" ]
null
null
null
import abc import sys import time from collections import OrderedDict from functools import reduce import numba import numpy as np from det3d.core.bbox import box_np_ops from det3d.core.bbox.geometry import ( is_line_segment_intersection_jit, points_in_convex_polygon_3d_jit, points_in_convex_polygon_jit, ...
37.32651
88
0.552786
30e239408e1ecc4b3a0a09c52a722d47abb19835
612
py
Python
ex080.py
rafaelclemes81/Python
0e685b4e528a29bb23ecf11c9ccdbae8730b3ac3
[ "MIT" ]
null
null
null
ex080.py
rafaelclemes81/Python
0e685b4e528a29bb23ecf11c9ccdbae8730b3ac3
[ "MIT" ]
null
null
null
ex080.py
rafaelclemes81/Python
0e685b4e528a29bb23ecf11c9ccdbae8730b3ac3
[ "MIT" ]
null
null
null
''' CRIE UM PROGRAMA ONDE O USUÁRIO POSSA DIGITAR CINCO VALORES NUMÉRICOS E CADASTRE-OS EM UMA LISTA JÁ NA POSIÇÃO CORRETA DE INSERÇÃO (SEM UTILIZAR O SORT). NO FINAL MOSTRE A LISTA ORDENADA NA TELA''' lista = list() for c in range(0,5): n = int(input('Digite um valor: ')) if c == 0 or n > lista[-1]: # poderia ...
38.25
100
0.599673
c83cd425aa75a93b630f78eac26c53ceee6714b7
5,068
py
Python
utils/loss.py
weigq/UDA-1
4f97980980cafd0a2d02a77211ac7dbaf3e331f6
[ "MIT" ]
32
2021-11-08T15:45:30.000Z
2022-03-30T09:08:57.000Z
utils/loss.py
weigq/UDA-1
4f97980980cafd0a2d02a77211ac7dbaf3e331f6
[ "MIT" ]
3
2021-11-16T02:38:51.000Z
2022-02-21T13:29:58.000Z
utils/loss.py
weigq/UDA-1
4f97980980cafd0a2d02a77211ac7dbaf3e331f6
[ "MIT" ]
4
2021-11-09T02:53:18.000Z
2021-12-21T22:11:35.000Z
# -------------------------------------------------------- # Copyright (c) 2021 Microsoft # Licensed under The MIT License # -------------------------------------------------------- import torch from torch import Tensor import torch.nn as nn from utils.torch_funcs import grl_hook, entropy_func class Wei...
38.687023
112
0.597869
ec6a340faa63755296500279ec2eed105ea305b8
2,321
py
Python
tensorflow_probability/my_tfp_bdl/models/bayesian_lenet5.py
zhoudoao-bayes/tf-probability
2c8975cad9ab4103f4fb2b277c4ed0763a488796
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/my_tfp_bdl/models/bayesian_lenet5.py
zhoudoao-bayes/tf-probability
2c8975cad9ab4103f4fb2b277c4ed0763a488796
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/my_tfp_bdl/models/bayesian_lenet5.py
zhoudoao-bayes/tf-probability
2c8975cad9ab4103f4fb2b277c4ed0763a488796
[ "Apache-2.0" ]
null
null
null
# zhoudoao@foxmail.com # 2020.5.12 """ Bayesian LeNet-5 and LeNet-5 model. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow.compat.v2 as tf import tensorflow_probability as tfp tf.enable_v2_behavior() tfd = tfp.distributions def ba...
31.364865
70
0.638949
e3f787eeffcd480f5b455b1bad4e227fabeff746
73
py
Python
ch7/7_6.py
hajin-kim/2020-HighSchool-Python-Tutoring
352025a954bff37d21cc3d59e7d5e0f0269a1f17
[ "MIT" ]
null
null
null
ch7/7_6.py
hajin-kim/2020-HighSchool-Python-Tutoring
352025a954bff37d21cc3d59e7d5e0f0269a1f17
[ "MIT" ]
null
null
null
ch7/7_6.py
hajin-kim/2020-HighSchool-Python-Tutoring
352025a954bff37d21cc3d59e7d5e0f0269a1f17
[ "MIT" ]
null
null
null
n = int(input("횟수 입력: ")) for i in range(n): print(i+1) print("반복 끝!")
12.166667
25
0.547945
1504ef5ebbcec937b7b358d4300870e0d20906ea
9,006
py
Python
leo/peakparser/peakparser.py
jfizzy/ResistanceDB
829d2912c92f645172cdc984a5a2e6119eae8226
[ "MIT" ]
null
null
null
leo/peakparser/peakparser.py
jfizzy/ResistanceDB
829d2912c92f645172cdc984a5a2e6119eae8226
[ "MIT" ]
null
null
null
leo/peakparser/peakparser.py
jfizzy/ResistanceDB
829d2912c92f645172cdc984a5a2e6119eae8226
[ "MIT" ]
null
null
null
''' packages ''' #import traceback #import sys import csv import re import peakparser.peak as peak_module class PeakParser: """ Reads in a list of peaks generated by MAVEN and removes excess unecessary data """ def __init__(self, config): """ Constructor for filereader""" self.data_offset = 24...
40.936364
147
0.462025
9e55d0fafb702791f6fddc743a30892cd8fd97f6
1,076
py
Python
SelectionSort.py
sairohithpasala/Sorting-Algorithms
73d24bdf40a0b5ef79bd72275835319c32666338
[ "MIT" ]
null
null
null
SelectionSort.py
sairohithpasala/Sorting-Algorithms
73d24bdf40a0b5ef79bd72275835319c32666338
[ "MIT" ]
null
null
null
SelectionSort.py
sairohithpasala/Sorting-Algorithms
73d24bdf40a0b5ef79bd72275835319c32666338
[ "MIT" ]
null
null
null
# Python program for SELECTION SORT import timeit def SelectSort(Arr): # Traverse through all array elements for i in range(len(Arr)): # gather the minimal element in remaining unsorted array min_index = i for j in range(i+1, len(Arr)): if Arr[min_index] > ...
29.888889
104
0.577138
506e091d5e612f147c17ddaf220c58b64b38911d
16,695
py
Python
docs/conf.py
MrMonkey94/causalnex
96f110cedccd6e84297bb4382d92fd9e725bfc13
[ "Apache-2.0" ]
1
2020-01-29T17:08:32.000Z
2020-01-29T17:08:32.000Z
docs/conf.py
MrMonkey94/causalnex
96f110cedccd6e84297bb4382d92fd9e725bfc13
[ "Apache-2.0" ]
null
null
null
docs/conf.py
MrMonkey94/causalnex
96f110cedccd6e84297bb4382d92fd9e725bfc13
[ "Apache-2.0" ]
1
2020-01-29T17:08:35.000Z
2020-01-29T17:08:35.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # causalnex documentation build configuration file, # created by, sphinx-quickstart on Mon Dec 18 11:31:24 2017. # # 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 #...
33.125
120
0.610003
fd2df8c0b00a1a406d43dc376ed4d5dcf0ae90ab
1,921
py
Python
Codefights/arcade/python-arcade/level-4/28.Sort-Students/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codefights/arcade/python-arcade/level-4/28.Sort-Students/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codefights/arcade/python-arcade/level-4/28.Sort-Students/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python3 from solution1 import sortStudents as f qa = [ (['John Smith', 'Jacky Mon Simonoff', 'Lucy Smith', 'Angela Zimonova'], ['Jacky Mon Simonoff', 'John Smith', 'Lucy Smith', 'Angela Zimonova']), (['Lucy Smith', 'John Smith', 'Jacky Mon Simonoff', ...
24.628205
47
0.557002
647ba39e90ea3bd481c20540ca73b992efd09ea9
1,531
py
Python
cpo/lib/fyre/utils/network.py
IBM/data-gate-cli
fc0cb1a560a0156c71eb63a550e198d0cd36e1df
[ "Apache-2.0" ]
9
2020-08-21T08:46:34.000Z
2021-09-02T15:47:41.000Z
cpo/lib/fyre/utils/network.py
IBM/data-gate-cli
fc0cb1a560a0156c71eb63a550e198d0cd36e1df
[ "Apache-2.0" ]
10
2020-11-26T15:31:43.000Z
2021-11-08T15:00:01.000Z
cpo/lib/fyre/utils/network.py
IBM/data-gate-cli
fc0cb1a560a0156c71eb63a550e198d0cd36e1df
[ "Apache-2.0" ]
1
2022-03-10T07:14:49.000Z
2022-03-10T07:14:49.000Z
# Copyright 2021 IBM 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 agreed to in wri...
29.442308
120
0.7113
17c66d00b1051811ab46f6e768b0f616acbd0b56
8,049
py
Python
venv/lib/python3.7/site-packages/openpyxl/worksheet/header_footer.py
taoyu0429/xmid2excel
faa93933a07b771eca57cfbd93b34c28366fd921
[ "Unlicense" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
venv/lib/python3.7/site-packages/openpyxl/worksheet/header_footer.py
taoyu0429/xmid2excel
faa93933a07b771eca57cfbd93b34c28366fd921
[ "Unlicense" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
venv/lib/python3.7/site-packages/openpyxl/worksheet/header_footer.py
taoyu0429/xmid2excel
faa93933a07b771eca57cfbd93b34c28366fd921
[ "Unlicense" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
from __future__ import absolute_import # Copyright (c) 2010-2019 openpyxl # Simplified implementation of headers and footers: let worksheets have separate items import re from warnings import warn from openpyxl.descriptors import ( Alias, Bool, Strict, String, Integer, MatchPattern, Typed...
29.269091
104
0.584669
990a0e76efb1f7a07d38b8a2c83c75a97710b450
366
py
Python
pymatgen/analysis/diffraction/__init__.py
hpatel1567/pymatgen
8304b25464206c74305214e45935df90bab95500
[ "MIT" ]
1
2020-03-03T06:33:25.000Z
2020-03-03T06:33:25.000Z
pymatgen/analysis/diffraction/__init__.py
hpatel1567/pymatgen
8304b25464206c74305214e45935df90bab95500
[ "MIT" ]
null
null
null
pymatgen/analysis/diffraction/__init__.py
hpatel1567/pymatgen
8304b25464206c74305214e45935df90bab95500
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This package implements various diffraction analyses. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Shyue Ping Ong" __emai...
22.875
55
0.740437
dc0851a06af74a50d6e516633fc270fa8c32b978
26,603
py
Python
ah.py
OPDIHI/elite
9c33822ef853da510e7314268c21cb7bb2e5cbc8
[ "MIT" ]
2
2022-02-20T19:30:51.000Z
2022-03-19T03:15:21.000Z
ah.py
OPDIHI/elite
9c33822ef853da510e7314268c21cb7bb2e5cbc8
[ "MIT" ]
1
2022-02-18T12:24:17.000Z
2022-02-18T12:24:17.000Z
ah.py
OPDIHI/elite
9c33822ef853da510e7314268c21cb7bb2e5cbc8
[ "MIT" ]
null
null
null
#!/usr/bin/python2 # coding=utf-8-*- # author : Khamdihi XD # (C) Copyright 407 Authentic Exploit # Rebuild Copyright Can't make u real programmer:) # Coded By Khamdihi XD # BEBAS REKODE ASAL BERI NAMA GUE DI AUTHOR NYA # WA ME -> +62 831-4606-1814 + (DONASIDANA/PULSA) # GITHUB ME -> https://github.com/...
36.693793
565
0.569222
85cbb1cfca0c56e44ca33b65287235a4cb9a78c9
5,872
py
Python
post_office/south_migrations/0014_auto__add_field_backendaccess_backend_class.py
carrerasrodrigo/django-post_office
0257a39f9f2d20c1a42c58e8fd4dfaf591221132
[ "MIT" ]
null
null
null
post_office/south_migrations/0014_auto__add_field_backendaccess_backend_class.py
carrerasrodrigo/django-post_office
0257a39f9f2d20c1a42c58e8fd4dfaf591221132
[ "MIT" ]
null
null
null
post_office/south_migrations/0014_auto__add_field_backendaccess_backend_class.py
carrerasrodrigo/django-post_office
0257a39f9f2d20c1a42c58e8fd4dfaf591221132
[ "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 field 'BackendAccess.backend_class' db.add_column(u'post_office_...
68.27907
172
0.566928
20ed3c4dfb1f1d2f7ff4e4991acde4ac548cb58d
77,149
py
Python
tensorflow_probability/python/internal/backend/numpy/numpy_test.py
mederrata/probability
bc6c411b0fbd83141f303f91a27343fe3c43a797
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/backend/numpy/numpy_test.py
mederrata/probability
bc6c411b0fbd83141f303f91a27343fe3c43a797
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/backend/numpy/numpy_test.py
mederrata/probability
bc6c411b0fbd83141f303f91a27343fe3c43a797
[ "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...
38.555222
103
0.636794
96c08e44eb26db6aa55ebfad4debfa5af90cc581
634
py
Python
app/models/config.py
francisye19/demo
927cf6fdadbbaba64459ff59b521a95dbfae644a
[ "MIT" ]
null
null
null
app/models/config.py
francisye19/demo
927cf6fdadbbaba64459ff59b521a95dbfae644a
[ "MIT" ]
null
null
null
app/models/config.py
francisye19/demo
927cf6fdadbbaba64459ff59b521a95dbfae644a
[ "MIT" ]
3
2017-01-10T09:19:40.000Z
2018-11-09T10:40:52.000Z
# -*- coding: utf-8 -*- """ teammate ~~~~~~~~~~~~~~ Model config. :copyright: (c) 2017 by fengweimin. :date: 2017/2/28 """ from datetime import datetime from app.extensions import mdb from app.mongosupport import Model @mdb.register class Config(Model): __collection__ = 'configs' struc...
19.212121
52
0.624606
d1ef191b5d11cf16fd68ee1dcc4a946f91593be1
54,652
py
Python
sdk/python/pulumi_aws/outputs.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/outputs.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/outputs.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
33.263542
291
0.601716
7762969e468e630cab9912c9e39aa8105f563ce4
327
py
Python
setup.py
zhangalbert/a
466b10ded2c85e7fceea60a95f081cb0b11b5222
[ "Apache-2.0" ]
null
null
null
setup.py
zhangalbert/a
466b10ded2c85e7fceea60a95f081cb0b11b5222
[ "Apache-2.0" ]
null
null
null
setup.py
zhangalbert/a
466b10ded2c85e7fceea60a95f081cb0b11b5222
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup(name='a', version='0.1.0', packages=['a', 'a.security'], install_requires=['WebOb>=1.6.1'], author = "albert.zhang", author_email = "longbao.zhang@gmail.com", description = "This is a very light web framework", license = "Apache License 2...
27.25
57
0.611621
89b0e07ae49fe144037df04696d84833f2fcc728
549
py
Python
recipes/jpeg-compressor/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/jpeg-compressor/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/jpeg-compressor/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
from conans import ConanFile, CMake, tools import os class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" def build(self): cmake = CMake(self) cmake.configure() cmake.build() def test(self): if not tools.cross_build...
28.894737
78
0.624772
ba8efe4d5c94751efa02852fca36d1a0d96166a6
417
py
Python
Assignment 2/main_lib/Nurse.py
toileto/OOIS_PCOM7E
25e3c34d985e5cbc5aa3d69efba5370a23edf0a1
[ "MIT" ]
null
null
null
Assignment 2/main_lib/Nurse.py
toileto/OOIS_PCOM7E
25e3c34d985e5cbc5aa3d69efba5370a23edf0a1
[ "MIT" ]
null
null
null
Assignment 2/main_lib/Nurse.py
toileto/OOIS_PCOM7E
25e3c34d985e5cbc5aa3d69efba5370a23edf0a1
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from main_lib.HealthcareProfessional import HealthcareProfessional class Nurse(HealthcareProfessional): def __init__(self, name, appointment_schedule): # Since Nurse inherited from HealthcareProfessional, # we are using super method to activate its parent...
29.785714
66
0.719424
5ea7d6b89558ef89f70aa5c7f56bb0f0498d44e9
258,510
py
Python
instances/passenger_demand/pas-20210422-1717-int4e-1/17.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int4e-1/17.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int4e-1/17.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" PASSENGERS """ numPassengers = 7640 passenger_arriving = ( (0, 3, 4, 1, 1, 1, 0, 1, 5, 0, 0, 1, 0, 1, 5, 2, 3, 3, 1, 2, 1, 1, 1, 0, 0, 0), # 0 (3, 3, 2, 3, 0, 0, 0, 1, 1, 1, 0, 0, 0, 3, 3, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0), # 1 (2, 3, 4, 3, 3, 0, 2, 0, 1, 0, 0, 0, 0, 2, 3, 2, 0, 2, 1, 0, 3, 0, 1, 0, 1, 0), #...
276.481283
500
0.769742
0e3a66238933f9c5b54dd7fdb1c41b196943196e
634
py
Python
featureflow/dummyserver.py
jayvdb/featureflow
7731487b00e38fa4f58c88b7881870fda2d69fdb
[ "MIT" ]
7
2017-06-10T13:26:04.000Z
2021-04-01T07:46:53.000Z
featureflow/dummyserver.py
jayvdb/featureflow
7731487b00e38fa4f58c88b7881870fda2d69fdb
[ "MIT" ]
9
2016-08-05T01:51:36.000Z
2020-06-01T13:32:34.000Z
featureflow/dummyserver.py
jayvdb/featureflow
7731487b00e38fa4f58c88b7881870fda2d69fdb
[ "MIT" ]
5
2016-09-09T03:19:35.000Z
2021-11-28T01:28:56.000Z
import http.server import sys def handler_class(static_content): class DummyHandler(http.server.BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-Length', len(static_content)) self.send_header('Content-Type', 'text/plain') ...
27.565217
67
0.635647
57dba6a08bf6ad19d9a6c2a3a5a4cea8ec11f9eb
10,379
py
Python
struct/measurement/nbody/2pcf/RUN_test.py
naonori/hitomi
02b188eb8ada4d39a10801bf3193581b9bc9c310
[ "MIT" ]
6
2021-09-28T04:00:56.000Z
2022-03-23T03:49:19.000Z
struct/measurement/nbody/2pcf/RUN_test.py
naonori/hitomi
02b188eb8ada4d39a10801bf3193581b9bc9c310
[ "MIT" ]
null
null
null
struct/measurement/nbody/2pcf/RUN_test.py
naonori/hitomi
02b188eb8ada4d39a10801bf3193581b9bc9c310
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import subprocess try: os.mkdir("LOG") except: print("") try: os.mkdir("PARAMS") except: print("") realization = 1 measure = "2PCF" boxsize_x = 1000.0 boxsize_y = 1000.0 boxsize_z = 1000.0 n_mesh_x = 512 n_mesh_y = 512 n_mesh_z = 512 n_k...
48.957547
177
0.458233
e892c7a05a248319723c89a515ffff77ae1d506b
3,134
py
Python
services/web/project/__init__.py
bkolosk1/bert-multilingual-kws-docker
cfdaf03b8a980632342cb79c190d2c98bee9bccd
[ "MIT" ]
null
null
null
services/web/project/__init__.py
bkolosk1/bert-multilingual-kws-docker
cfdaf03b8a980632342cb79c190d2c98bee9bccd
[ "MIT" ]
null
null
null
services/web/project/__init__.py
bkolosk1/bert-multilingual-kws-docker
cfdaf03b8a980632342cb79c190d2c98bee9bccd
[ "MIT" ]
1
2022-03-23T15:36:51.000Z
2022-03-23T15:36:51.000Z
import os import json from flask import ( Flask, jsonify, send_from_directory, request, redirect, url_for ) from flask_restx import Api, Resource, fields, abort, reqparse import werkzeug werkzeug.cached_property = werkzeug.utils.cached_property from werkzeug.utils import secure_filename from w...
31.979592
170
0.741863
5638db1cae5467e823fde3b9dda104a5986f6cf0
2,993
py
Python
contrib/testgen/base58.py
helveticum/helveticum
0781224d86d542281b1f2f98ae533d1252e1e71b
[ "MIT" ]
1
2017-07-06T06:04:15.000Z
2017-07-06T06:04:15.000Z
contrib/testgen/base58.py
helveticum/helveticum
0781224d86d542281b1f2f98ae533d1252e1e71b
[ "MIT" ]
null
null
null
contrib/testgen/base58.py
helveticum/helveticum
0781224d86d542281b1f2f98ae533d1252e1e71b
[ "MIT" ]
null
null
null
# Copyright (c) 2012-2016 The Helveticum Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Helveticum base58 encoding and decoding. Based on https://helveticumtalk.org/index.php?topic=1026.0 (public domain) ''' i...
27.971963
97
0.640829