hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 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 251 | max_issues_repo_name stringlengths 4 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 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8e1956c9e02704f82448e09bd95db729640c5f1 | 18,721 | py | Python | python/temp/yolo_main.py | plasticanne/unity-object-detection-zoo | a436aec8fd6b9b4067aafc20706e7d1896223d64 | [
"MIT"
] | null | null | null | python/temp/yolo_main.py | plasticanne/unity-object-detection-zoo | a436aec8fd6b9b4067aafc20706e7d1896223d64 | [
"MIT"
] | null | null | null | python/temp/yolo_main.py | plasticanne/unity-object-detection-zoo | a436aec8fd6b9b4067aafc20706e7d1896223d64 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Class definition of YOLO_v3 style detection model on image and video
"""
import os
import numpy as np
import tensorflow as tf
from PIL import Image, ImageDraw, ImageFont
import cv2
from keras import backend as K
from keras.layers import Input, Lambda
from keras.models import Model, Sequent... | 41.418142 | 116 | 0.633834 |
b8e2aaafc2b4702776593b03b7fea1abb7e1b4d0 | 3,262 | py | Python | src/extractor-lib/tests/csv_generation/test_normalized_directory_template.py | stephenfuqua/Ed-Fi-X-Fizz | 94597eda585d4f62f69c12e2a58fa8e8846db11b | [
"Apache-2.0"
] | 3 | 2020-10-15T10:29:59.000Z | 2020-12-01T21:40:55.000Z | src/extractor-lib/tests/csv_generation/test_normalized_directory_template.py | stephenfuqua/Ed-Fi-X-Fizz | 94597eda585d4f62f69c12e2a58fa8e8846db11b | [
"Apache-2.0"
] | 40 | 2020-08-17T21:08:33.000Z | 2021-02-02T19:56:09.000Z | src/extractor-lib/tests/csv_generation/test_normalized_directory_template.py | stephenfuqua/Ed-Fi-X-Fizz | 94597eda585d4f62f69c12e2a58fa8e8846db11b | [
"Apache-2.0"
] | 10 | 2021-06-10T16:27:27.000Z | 2021-12-27T12:31:57.000Z | # SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
from os import path
from sys import platform
from ed... | 30.773585 | 87 | 0.701104 |
b8e2f0eed3c941ac36abbbe75adbed48e0a9d358 | 425 | py | Python | python3-tutorial/02 Advanced/1216 UpdateMany.py | CoderDream/python-best-practice | 40e6b5315daefb37c59daa1a1990ac1ae10f8cca | [
"MIT"
] | null | null | null | python3-tutorial/02 Advanced/1216 UpdateMany.py | CoderDream/python-best-practice | 40e6b5315daefb37c59daa1a1990ac1ae10f8cca | [
"MIT"
] | null | null | null | python3-tutorial/02 Advanced/1216 UpdateMany.py | CoderDream/python-best-practice | 40e6b5315daefb37c59daa1a1990ac1ae10f8cca | [
"MIT"
] | null | null | null | # update_one() update_many()
# F name alexa 123
import pymongo
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["runoobdb"]
mycol = mydb["sites"]
myquery = {"name": {"$regex": "^F"}}
newvalues = {"$set": {"alexa": "123"}}
x = mycol.update_many(myquery, newvalues)
print(x.modified_... | 20.238095 | 63 | 0.694118 |
b8e31fa93df9ea85fa09d4f2fd6acdf91de443e9 | 789 | py | Python | search/linear/linear_search.py | alfiejsmith/algorithms | c1d816aba932a1ae0664ff2a5b7784e2a01e1de2 | [
"MIT"
] | null | null | null | search/linear/linear_search.py | alfiejsmith/algorithms | c1d816aba932a1ae0664ff2a5b7784e2a01e1de2 | [
"MIT"
] | null | null | null | search/linear/linear_search.py | alfiejsmith/algorithms | c1d816aba932a1ae0664ff2a5b7784e2a01e1de2 | [
"MIT"
] | null | null | null | from random import shuffle
"""
Will search a list of integers for a value using a linear search algorithm.
Does not require a sorted list to be passed in.
Returns -1 if item is not found
Linear Search:
Best - O(1)
Worst - O(n)
Average - O(n)
Space Complexity - O(1)
"""
| 22.542857 | 86 | 0.636248 |
b8e38e1d075d3a7559a30980f5c79e4ab5617467 | 3,657 | py | Python | gitScrabber/scrabTasks/git/projectDates.py | Eyenseo/gitScrabber | e3f5ce1a7b034fa3e40a54577268228a3be2b141 | [
"MIT"
] | null | null | null | gitScrabber/scrabTasks/git/projectDates.py | Eyenseo/gitScrabber | e3f5ce1a7b034fa3e40a54577268228a3be2b141 | [
"MIT"
] | null | null | null | gitScrabber/scrabTasks/git/projectDates.py | Eyenseo/gitScrabber | e3f5ce1a7b034fa3e40a54577268228a3be2b141 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2017 Roland Jaeger
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... | 37.316327 | 80 | 0.623462 |
b8e396ee442faafcbc18f8f10aa0618271fca39e | 3,526 | py | Python | demo_maecce_for_pls.py | hkaneko1985/dcek | 13d9228b2dc2fd87c2e08a01721e1b1b220f2e19 | [
"MIT"
] | 25 | 2019-08-23T12:39:14.000Z | 2022-03-30T08:58:15.000Z | demo_maecce_for_pls.py | hkaneko1985/dcek | 13d9228b2dc2fd87c2e08a01721e1b1b220f2e19 | [
"MIT"
] | 2 | 2022-01-06T11:21:21.000Z | 2022-01-18T22:11:12.000Z | demo_maecce_for_pls.py | hkaneko1985/dcek | 13d9228b2dc2fd87c2e08a01721e1b1b220f2e19 | [
"MIT"
] | 16 | 2019-12-12T08:20:48.000Z | 2022-01-26T00:34:31.000Z | # -*- coding: utf-8 -*-
# %reset -f
"""
@author: Hiromasa Kaneko
"""
# Demonstration of MAEcce in PLS modeling
import matplotlib.figure as figure
import matplotlib.pyplot as plt
import numpy as np
from dcekit.validation import mae_cce
from sklearn import datasets
from sklearn.cross_decomposition import PL... | 44.632911 | 142 | 0.723199 |
b8e5c7f7a18f5689f0dfad89a71f45469022396b | 151,828 | py | Python | bot.py | admica/evediscobot | 3ece4cd65718ba5d62ef0beab80f1793ac96aa3a | [
"MIT"
] | null | null | null | bot.py | admica/evediscobot | 3ece4cd65718ba5d62ef0beab80f1793ac96aa3a | [
"MIT"
] | null | null | null | bot.py | admica/evediscobot | 3ece4cd65718ba5d62ef0beab80f1793ac96aa3a | [
"MIT"
] | null | null | null | #!/home/admica/python3/bin/python3
#Discord eve bot by admica
import asyncio, discord, time, threading, websocket, json
from discord.ext import commands
from discord.ext.commands import Bot
import aiohttp
import re
from queue import Queue
from datetime import timedelta
from datetime import datetime
import os, sys
impo... | 44.892963 | 671 | 0.42726 |
b8e66118386395c82079c492edb8b95513d242cf | 18,796 | py | Python | tests/help_text_test.py | equinor/osdu-cli | 579922556925ea7ad759a6230498378cf724b445 | [
"MIT"
] | 3 | 2021-08-19T05:59:39.000Z | 2021-11-10T08:02:58.000Z | tests/help_text_test.py | equinor/osdu-cli | 579922556925ea7ad759a6230498378cf724b445 | [
"MIT"
] | 2 | 2021-09-13T11:10:15.000Z | 2021-11-25T13:21:54.000Z | tests/help_text_test.py | equinor/osdu-cli | 579922556925ea7ad759a6230498378cf724b445 | [
"MIT"
] | null | null | null | # -----------------------------------------------------------------------------
# Copyright (c) Equinor ASA. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------------------------------------
"""Tests tha... | 40.508621 | 114 | 0.546606 |
b8e81060803693ffd42ace6d2aecd7a9dd90f046 | 417 | py | Python | testing/resources/test_g.py | tongni1975/processing.py | 0b9ad68a1dc289d5042d1d3b132c13cc157d3f88 | [
"Apache-2.0"
] | null | null | null | testing/resources/test_g.py | tongni1975/processing.py | 0b9ad68a1dc289d5042d1d3b132c13cc157d3f88 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:36:38.000Z | 2021-06-25T15:36:38.000Z | testing/resources/test_g.py | tongni1975/processing.py | 0b9ad68a1dc289d5042d1d3b132c13cc157d3f88 | [
"Apache-2.0"
] | null | null | null | import processing.opengl.PGraphics3D
| 26.0625 | 70 | 0.654676 |
b8e9a8b69a6237c573c52a972df1c7ef664eba25 | 4,811 | py | Python | scripts/experiments/intrinsic_evaluations/exbert/server/data/processing/create_faiss.py | antoilouis/netbert | ccd37ef8a1727557de74498132eea24db2135940 | [
"MIT"
] | 2 | 2021-01-29T01:30:51.000Z | 2021-07-14T16:47:15.000Z | server/data/processing/create_faiss.py | CharlotteSean/exbert | 75e6bb146ab799e3652a887562490d5f31357223 | [
"Apache-2.0"
] | null | null | null | server/data/processing/create_faiss.py | CharlotteSean/exbert | 75e6bb146ab799e3652a887562490d5f31357223 | [
"Apache-2.0"
] | 1 | 2020-03-04T14:02:28.000Z | 2020-03-04T14:02:28.000Z | import faiss
import numpy as np
import utils.path_fixes as pf
from pathlib import Path
from data.processing.corpus_embeddings import CorpusEmbeddings
from functools import partial
import argparse
FAISS_LAYER_PATTERN = 'layer_*.faiss'
LAYER_TEMPLATE = 'layer_{:02d}.faiss'
NLAYERS = 12
NHEADS = 12
def train_indexes(ce... | 33.17931 | 134 | 0.672833 |
b8e9db6f289a79604e54db518d87b8a53a1a0672 | 504 | py | Python | weasyl/test/test_http.py | hyena/weasyl | a43ad885eb07ae89d6639f289a5b95f3a177439c | [
"Apache-2.0"
] | 111 | 2016-05-18T04:18:18.000Z | 2021-11-03T02:05:19.000Z | weasyl/test/test_http.py | hyena/weasyl | a43ad885eb07ae89d6639f289a5b95f3a177439c | [
"Apache-2.0"
] | 1,103 | 2016-05-29T05:17:53.000Z | 2022-03-31T18:12:40.000Z | weasyl/test/test_http.py | TheWug/weasyl | a568a542cc58c11e30621fb672c701531d4306a8 | [
"Apache-2.0"
] | 47 | 2016-05-29T20:48:37.000Z | 2021-11-12T09:40:40.000Z | import pytest
from weasyl import http
| 29.647059 | 102 | 0.603175 |
b8ea0aefe02a0ac8e734a613a8836ee2fbeec6cf | 421 | py | Python | chords/neural_network/classifier.py | fernando-figueredo/ChordsWebApp | 9bf983ab5579c36c75447c74eec0400d78ab49f9 | [
"MIT"
] | 2 | 2021-03-30T01:09:51.000Z | 2022-03-10T21:17:15.000Z | chords/neural_network/classifier.py | fernando-figueredo/ChordsWebApp | 9bf983ab5579c36c75447c74eec0400d78ab49f9 | [
"MIT"
] | null | null | null | chords/neural_network/classifier.py | fernando-figueredo/ChordsWebApp | 9bf983ab5579c36c75447c74eec0400d78ab49f9 | [
"MIT"
] | null | null | null | from neural_network.train import Trainer | 28.066667 | 59 | 0.643705 |
b8ea2be5c0eee4133b1b628fc992cd2fbe84768f | 556 | py | Python | cybox/common/metadata.py | tirkarthi/python-cybox | a378deb68b3ac56360c5cc35ff5aad1cd3dcab83 | [
"BSD-3-Clause"
] | 40 | 2015-03-05T18:22:51.000Z | 2022-03-06T07:29:25.000Z | cybox/common/metadata.py | tirkarthi/python-cybox | a378deb68b3ac56360c5cc35ff5aad1cd3dcab83 | [
"BSD-3-Clause"
] | 106 | 2015-01-12T18:52:20.000Z | 2021-04-25T22:57:52.000Z | cybox/common/metadata.py | tirkarthi/python-cybox | a378deb68b3ac56360c5cc35ff5aad1cd3dcab83 | [
"BSD-3-Clause"
] | 30 | 2015-03-25T07:24:40.000Z | 2021-07-23T17:10:11.000Z | # Copyright (c) 2020, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
from mixbox import entities, fields
import cybox.bindings.cybox_common as common_binding
| 32.705882 | 99 | 0.753597 |
b8ecff777a101fecf5e77b7561d2d3b4b1ad0ea3 | 972 | py | Python | src/app/main/routes.py | Abh4git/PythonMongoService | f64fcb7c4db0db41adb8b74736c82e8de5f6dbec | [
"MIT"
] | null | null | null | src/app/main/routes.py | Abh4git/PythonMongoService | f64fcb7c4db0db41adb8b74736c82e8de5f6dbec | [
"MIT"
] | null | null | null | src/app/main/routes.py | Abh4git/PythonMongoService | f64fcb7c4db0db41adb8b74736c82e8de5f6dbec | [
"MIT"
] | null | null | null | #All Routes are defined here
from flask_cors import CORS, cross_origin
from app.main.controller.products import ProductController
from flask import request, jsonify
import json
#Test route without any connections
api_v2_cors_config = {
"origins": [
'http://localhost:3000' # React
# React
],
"methods": ["O... | 29.454545 | 92 | 0.737654 |
b8ed5ea88b3e1f4c3f96f668efbaca32325efa0f | 6,850 | py | Python | tests/test_user.py | ccfiel/fbchat-asyncio | 4ba39a835c7374c2cbf2a34e4e4fbf5c60ce6891 | [
"BSD-3-Clause"
] | 1 | 2019-11-02T14:44:05.000Z | 2019-11-02T14:44:05.000Z | tests/test_user.py | ccfiel/fbchat-asyncio | 4ba39a835c7374c2cbf2a34e4e4fbf5c60ce6891 | [
"BSD-3-Clause"
] | null | null | null | tests/test_user.py | ccfiel/fbchat-asyncio | 4ba39a835c7374c2cbf2a34e4e4fbf5c60ce6891 | [
"BSD-3-Clause"
] | null | null | null | import pytest
import datetime
from fbchat._user import User, ActiveStatus
| 35.128205 | 88 | 0.489927 |
b8ed8469a90e01bd0b314d93c23d97aa1b93965d | 143 | py | Python | (3)Algorithms/operator_boolean.py | mass9/Python | 66499164e36a4fe9630029d34b292ab06f849b2f | [
"MIT"
] | null | null | null | (3)Algorithms/operator_boolean.py | mass9/Python | 66499164e36a4fe9630029d34b292ab06f849b2f | [
"MIT"
] | null | null | null | (3)Algorithms/operator_boolean.py | mass9/Python | 66499164e36a4fe9630029d34b292ab06f849b2f | [
"MIT"
] | null | null | null | from operator import*
a = -1
b = 5
print('a= ',a)
print('b= ',b)
print()
print(not_(a))
print(truth(a))
print(is_(a,b))
print(is_not(a,b))
| 9.533333 | 21 | 0.594406 |
b8edaac684aec68ed9d6e7241e67d70248284354 | 1,903 | py | Python | nicos_mlz/erwin/setups/system.py | ebadkamil/nicos | 0355a970d627aae170c93292f08f95759c97f3b5 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_mlz/erwin/setups/system.py | ebadkamil/nicos | 0355a970d627aae170c93292f08f95759c97f3b5 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-08-18T10:55:42.000Z | 2021-08-18T10:55:42.000Z | nicos_mlz/erwin/setups/system.py | ISISComputingGroup/nicos | 94cb4d172815919481f8c6ee686f21ebb76f2068 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | description = 'system setup'
group = 'lowlevel'
sysconfig = dict(
cache = 'localhost',
instrument = 'ErWIN',
experiment = 'Exp',
datasinks = ['conssink', 'dmnsink'],
notifiers = [],
)
modules = ['nicos.commands.standard']
devices = dict(
ErWIN = device('nicos.devices.instrument.Instrument',
... | 29.734375 | 67 | 0.575933 |
b8eeeede3579cb2a1baac69df57edebe5d6b3dd1 | 1,771 | py | Python | clustering_normalized_cuts/run.py | kiss2u/google-research | 2cd66234656f9e2f4218ed90a2d8aa9cf3139093 | [
"Apache-2.0"
] | 7 | 2020-03-15T12:14:07.000Z | 2021-12-01T07:01:09.000Z | clustering_normalized_cuts/run.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 25 | 2020-07-25T08:53:09.000Z | 2022-03-12T00:43:02.000Z | clustering_normalized_cuts/run.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 4 | 2021-02-08T10:25:45.000Z | 2021-04-17T14:46:26.000Z | # coding=utf-8
# Copyright 2020 The Google Research 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 applicab... | 29.032787 | 79 | 0.749294 |
b8ef33ed1947340aa880647a993de9c30d1767e8 | 4,029 | py | Python | remps/policy/gaussian.py | albertometelli/remps | d243d4f23c4b8de5220788853c8e2dd5852e593e | [
"MIT"
] | 6 | 2019-06-17T15:13:45.000Z | 2020-08-27T10:09:16.000Z | remps/policy/gaussian.py | albertometelli/remps | d243d4f23c4b8de5220788853c8e2dd5852e593e | [
"MIT"
] | 13 | 2020-01-28T22:43:36.000Z | 2022-03-11T23:46:19.000Z | remps/policy/gaussian.py | albertometelli/remps | d243d4f23c4b8de5220788853c8e2dd5852e593e | [
"MIT"
] | 1 | 2019-08-11T22:41:59.000Z | 2019-08-11T22:41:59.000Z | import tensorflow as tf
from remps.policy.policy import Policy
from remps.utils.utils import get_default_tf_dtype
| 35.034783 | 99 | 0.516505 |
b8f05419337e887d574b7c6ff46bba2da204e4eb | 921 | py | Python | rrr.py | tutacat/beep-play | 41b50ebb0250289616cf3a4839fd0097d524ebd7 | [
"BSD-2-Clause"
] | null | null | null | rrr.py | tutacat/beep-play | 41b50ebb0250289616cf3a4839fd0097d524ebd7 | [
"BSD-2-Clause"
] | null | null | null | rrr.py | tutacat/beep-play | 41b50ebb0250289616cf3a4839fd0097d524ebd7 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import math, random, subprocess, time
sin=math.sin
commands=["/usr/bin/setterm","/usr/bin/xset"]
fname = ""
file = None
type = None
_test = ""
cmd = None
for c in commands:
_test = subprocess.getoutput("setterm --blength 256")
if not _test:
raise SystemError(c+" error")
if _tes... | 28.78125 | 141 | 0.624321 |
b8f101cbd2a4876f4d335fd3cc77c990454b6aca | 26,558 | py | Python | pygamma_agreement/continuum.py | faroit/pygamma-agreement | fcfcfe7332be15bd97e71b9987aa5c6104be299e | [
"MIT"
] | null | null | null | pygamma_agreement/continuum.py | faroit/pygamma-agreement | fcfcfe7332be15bd97e71b9987aa5c6104be299e | [
"MIT"
] | null | null | null | pygamma_agreement/continuum.py | faroit/pygamma-agreement | fcfcfe7332be15bd97e71b9987aa5c6104be299e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2020 CoML
# 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 ... | 37.300562 | 114 | 0.613224 |
b8f295ce12bf7401ea1d40884fb3f417f25a7bfd | 6,907 | py | Python | stomasimulator/febio/xplt/xplt_calcs.py | woolfeh/stomasimulator | ead78b78809f35c17e2d784259bdeb56589a9d1c | [
"MIT"
] | 2 | 2017-07-27T12:57:26.000Z | 2017-07-28T13:55:15.000Z | stomasimulator/febio/xplt/xplt_calcs.py | woolfeh/stomasimulator | ead78b78809f35c17e2d784259bdeb56589a9d1c | [
"MIT"
] | null | null | null | stomasimulator/febio/xplt/xplt_calcs.py | woolfeh/stomasimulator | ead78b78809f35c17e2d784259bdeb56589a9d1c | [
"MIT"
] | 1 | 2020-06-02T15:31:04.000Z | 2020-06-02T15:31:04.000Z | import stomasimulator.geom.geom_utils as geom
if __name__ == '__main__':
pass
| 37.538043 | 106 | 0.624005 |
b8f30a5084a67468fea8c7e34b0fb7344b7f99fe | 801 | py | Python | ifplus/vfs/__init__.py | hitakaken/ifplus | 8354eeceea8abcbcaeb5dcd1c11eef69cbef6557 | [
"MIT"
] | null | null | null | ifplus/vfs/__init__.py | hitakaken/ifplus | 8354eeceea8abcbcaeb5dcd1c11eef69cbef6557 | [
"MIT"
] | null | null | null | ifplus/vfs/__init__.py | hitakaken/ifplus | 8354eeceea8abcbcaeb5dcd1c11eef69cbef6557 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .helpers.vfs import VirtualFileSystem
from .views.files import ns
| 33.375 | 84 | 0.516854 |
b8f325c7a53b048ae96a1a8dd82c6640cb732eac | 51,954 | py | Python | fordclassifier/evaluator/evaluatorClass.py | Orieus/one_def_classification | 3269290e1fa06ec104a38810c5dffa5401f34ef1 | [
"MIT"
] | null | null | null | fordclassifier/evaluator/evaluatorClass.py | Orieus/one_def_classification | 3269290e1fa06ec104a38810c5dffa5401f34ef1 | [
"MIT"
] | null | null | null | fordclassifier/evaluator/evaluatorClass.py | Orieus/one_def_classification | 3269290e1fa06ec104a38810c5dffa5401f34ef1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
@author: Angel Navia Vzquez
May 2018
'''
# import code
# code.interact(local=locals())
import os
import pickle
# from fordclassifier.classifier.classifier import Classifier
import numpy as np
import pandas as pd
from sklearn.metrics import roc_curve, auc
import json
im... | 37.484848 | 100 | 0.508527 |
b8f4752d0093b3381dd899cada064a8f50a481ea | 16 | py | Python | cdn/__init__.py | Kingjmk/mlfaati | 12c0dcbe0389c2c1da0bde80509fb3374955e293 | [
"MIT"
] | 1 | 2021-01-04T07:34:34.000Z | 2021-01-04T07:34:34.000Z | cdn/__init__.py | Kingjmk/mlfaati | 12c0dcbe0389c2c1da0bde80509fb3374955e293 | [
"MIT"
] | null | null | null | cdn/__init__.py | Kingjmk/mlfaati | 12c0dcbe0389c2c1da0bde80509fb3374955e293 | [
"MIT"
] | null | null | null | """
CDN App
""" | 4 | 7 | 0.375 |
b8f6634f75893c98121099a51543c4b0b9463dc6 | 2,722 | py | Python | data/r_outletsdata.py | ljunhui/Koufu_SG_Map | 8d440605cc90c49c6635f4d5202bd262e30b0efb | [
"MIT"
] | 1 | 2021-04-01T13:57:15.000Z | 2021-04-01T13:57:15.000Z | data/r_outletsdata.py | ljunhui/Koufu_SG_Map | 8d440605cc90c49c6635f4d5202bd262e30b0efb | [
"MIT"
] | null | null | null | data/r_outletsdata.py | ljunhui/Koufu_SG_Map | 8d440605cc90c49c6635f4d5202bd262e30b0efb | [
"MIT"
] | null | null | null | # %% Import
import numpy as np
import pandas as pd
import requests
import os
from bs4 import BeautifulSoup
"""
Takes a dictionary of relevant brands and their URLs and returns a raw csv file
"""
# %% Functions
def outlets_crawl(brand, url):
"""
Returns a raw, unformatted df of outlets with it's brand from t... | 33.604938 | 134 | 0.653564 |
b8f7dac938dacb0d70352e73d7ee85999cfcb966 | 5,918 | py | Python | ue4docker/setup_cmd.py | Wadimich/ue4-docker | 01ef4af09cf8e7b9e845203031b2bed3db06034b | [
"MIT"
] | 1 | 2021-05-19T16:41:04.000Z | 2021-05-19T16:41:04.000Z | ue4docker/setup_cmd.py | Wadimich/ue4-docker | 01ef4af09cf8e7b9e845203031b2bed3db06034b | [
"MIT"
] | null | null | null | ue4docker/setup_cmd.py | Wadimich/ue4-docker | 01ef4af09cf8e7b9e845203031b2bed3db06034b | [
"MIT"
] | null | null | null | import docker, os, platform, requests, shutil, subprocess, sys
from .infrastructure import *
# Runs a command without displaying its output and returns the exit code
# Performs setup for Linux hosts
# Performs setup for Windows Server hosts
| 38.679739 | 126 | 0.70784 |
b8f9dd022646dc722a37cd9325b2748aca492315 | 180 | py | Python | src/lesson_developer_tools/unittest_truth.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | 3 | 2018-08-14T09:33:52.000Z | 2022-03-21T12:31:58.000Z | src/lesson_developer_tools/unittest_truth.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | null | null | null | src/lesson_developer_tools/unittest_truth.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | null | null | null | import unittest
| 15 | 35 | 0.694444 |
b8f9fb55632e48828f82b3c4a79b4f130acc6705 | 6,570 | py | Python | tia/trad/monitor_mainTr.py | jmakov/market_tia | 0804fd82b4fb3ea52c171ea0759f0e10fc659bb2 | [
"MIT"
] | 1 | 2020-07-24T04:18:57.000Z | 2020-07-24T04:18:57.000Z | tia/trad/monitor_mainTr.py | jmakov/market_tia | 0804fd82b4fb3ea52c171ea0759f0e10fc659bb2 | [
"MIT"
] | null | null | null | tia/trad/monitor_mainTr.py | jmakov/market_tia | 0804fd82b4fb3ea52c171ea0759f0e10fc659bb2 | [
"MIT"
] | 1 | 2020-07-24T04:22:14.000Z | 2020-07-24T04:22:14.000Z | import sys
import time
from tia.trad.tools.io.follow import followMonitor
import tia.configuration as conf
from tia.trad.tools.errf import eReport
import ujson as json
import matplotlib.pyplot as plt
import math
import collections
import logging
from tia.trad.tools.ipc.processLogger import PROCESS_NAME
LOGGER_NAME = P... | 37.118644 | 120 | 0.555403 |
b8faedfafe51cef8b7826a43e9c04a44b4437054 | 1,975 | py | Python | irocr/config.py | guidj/ir-orc | 46476a847605d7d36deda5eb27d282eaa9e04d9a | [
"Apache-2.0"
] | 1 | 2016-04-05T15:46:28.000Z | 2016-04-05T15:46:28.000Z | irocr/config.py | guidj/ir-orc | 46476a847605d7d36deda5eb27d282eaa9e04d9a | [
"Apache-2.0"
] | null | null | null | irocr/config.py | guidj/ir-orc | 46476a847605d7d36deda5eb27d282eaa9e04d9a | [
"Apache-2.0"
] | null | null | null | import os
import os.path
import ConfigParser
PROJECT_BASE = ''.join([os.path.dirname(os.path.abspath(__file__)), "/../"])
CONFIG_FILE = ''.join([PROJECT_BASE, 'config.ini'])
_UNSET = object()
| 25.320513 | 93 | 0.515443 |
b8fc2913caa7185f3d28c952db02652d27ed5b76 | 8,940 | py | Python | mmtbx/ions/tst_environment.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/ions/tst_environment.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/ions/tst_environment.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | # -*- coding: utf-8; py-indent-offset: 2 -*-
from __future__ import division
from mmtbx.ions.environment import ChemicalEnvironment
import mmtbx.ions.identify
from mmtbx import ions
import mmtbx.monomer_library.pdb_interpretation
from mmtbx import monomer_library
from mmtbx.ions.environment import chem_carboxy, chem_... | 41.581395 | 80 | 0.631767 |
b8fde4b07b6cd3c768fcd79e7fc1ef7c9a747340 | 600 | py | Python | extinfo/extractors/fileinfo_com.py | rpdelaney/extinfo | 35463afe295b1bc83478960e67762ffb10915175 | [
"Apache-2.0"
] | null | null | null | extinfo/extractors/fileinfo_com.py | rpdelaney/extinfo | 35463afe295b1bc83478960e67762ffb10915175 | [
"Apache-2.0"
] | null | null | null | extinfo/extractors/fileinfo_com.py | rpdelaney/extinfo | 35463afe295b1bc83478960e67762ffb10915175 | [
"Apache-2.0"
] | null | null | null | import re
from ..utils import Report, fetch
SITE = "fileinfo.com"
PATH = "/extension"
| 26.086957 | 67 | 0.67 |
b8fdf6d347c186c16105c41f259ca397f53533cf | 801 | py | Python | style/api/routers/prediction.py | imagination-ai/kerem-side-projects-monorepo | 3d9da9d57f305ac2d6a03bab3787acfbee7269ee | [
"MIT"
] | null | null | null | style/api/routers/prediction.py | imagination-ai/kerem-side-projects-monorepo | 3d9da9d57f305ac2d6a03bab3787acfbee7269ee | [
"MIT"
] | 2 | 2022-01-20T15:46:39.000Z | 2022-02-16T20:51:47.000Z | style/api/routers/prediction.py | imagination-ai/kerem-side-projects-monorepo | 3d9da9d57f305ac2d6a03bab3787acfbee7269ee | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from pydantic import BaseModel
from style.predict.servable.serve import get_servable
router = APIRouter()
| 25.03125 | 73 | 0.746567 |
b8fe991a0b450794e796f906cb32a0c3c5911676 | 77 | py | Python | pyrepl/iconsole.py | thinkle/snippets | a19fd709fc618cee9d76b7481b834c3e0d4ed397 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | pyrepl/iconsole.py | thinkle/snippets | a19fd709fc618cee9d76b7481b834c3e0d4ed397 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | pyrepl/iconsole.py | thinkle/snippets | a19fd709fc618cee9d76b7481b834c3e0d4ed397 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-08-28T22:06:53.000Z | 2019-08-28T22:06:53.000Z | from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed()
ipshell()
| 11 | 38 | 0.779221 |
b8feb9d082e79ca3a8c079efe501a2cd98406b92 | 2,623 | py | Python | src/tests/ftest/pool/create_capacity_test.py | berserk-fury/daos | e0a3249aa886962cef2345135b907b45f7109cae | [
"BSD-2-Clause-Patent"
] | null | null | null | src/tests/ftest/pool/create_capacity_test.py | berserk-fury/daos | e0a3249aa886962cef2345135b907b45f7109cae | [
"BSD-2-Clause-Patent"
] | null | null | null | src/tests/ftest/pool/create_capacity_test.py | berserk-fury/daos | e0a3249aa886962cef2345135b907b45f7109cae | [
"BSD-2-Clause-Patent"
] | 1 | 2021-11-03T05:00:42.000Z | 2021-11-03T05:00:42.000Z | #!/usr/bin/python3
"""
(C) Copyright 2021 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
import time
from pool_test_base import PoolTestBase
from server_utils import ServerFailed
| 34.973333 | 80 | 0.626382 |
b8fecc2152a699d192482875bb377312659faf77 | 577 | py | Python | async-utils/setup.py | goc9000/python-library | 0a4a09278df6e84061baedda8997071e2201103f | [
"MIT"
] | null | null | null | async-utils/setup.py | goc9000/python-library | 0a4a09278df6e84061baedda8997071e2201103f | [
"MIT"
] | null | null | null | async-utils/setup.py | goc9000/python-library | 0a4a09278df6e84061baedda8997071e2201103f | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='atmfjstc-async-utils',
version='0.1.0',
author_email='atmfjstc@protonmail.com',
package_dir={'': 'src'},
packages=find_packages(where='src'),
install_requires=[
],
zip_safe=True,
description="Utilities for async code",
... | 20.607143 | 49 | 0.60312 |
b8fef77cc6fd6e6d00ddf3b311025b4035166678 | 5,865 | py | Python | msg_scheduler/analyzer.py | buaales/tt_offline_scheduler | 257d8e2c94fc896c891e7d2a014bb2eebde996ce | [
"MIT"
] | 5 | 2021-05-18T11:34:42.000Z | 2022-02-24T03:33:43.000Z | msg_scheduler/analyzer.py | buaales/tt_offline_scheduler | 257d8e2c94fc896c891e7d2a014bb2eebde996ce | [
"MIT"
] | null | null | null | msg_scheduler/analyzer.py | buaales/tt_offline_scheduler | 257d8e2c94fc896c891e7d2a014bb2eebde996ce | [
"MIT"
] | 3 | 2020-09-10T05:58:59.000Z | 2022-02-25T01:50:25.000Z | import subprocess
import sys
from collections import defaultdict
import pandas as pd
import networkx
import random
import functools
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from .model import Network, Link, Frame, Node
import io
if sys.platform == 'darwin':
matplo... | 38.333333 | 119 | 0.554135 |
b8ff8b94d402dcdb466c2d51a4b1cfbb02411cf0 | 3,286 | py | Python | endpoints/cotect-endpoints/cotect_endpoints/security.py | JNKielmann/cotect | 1b213459b41ef18119948633385ebad2cc16e9e2 | [
"MIT"
] | 19 | 2020-03-18T15:49:58.000Z | 2021-02-11T12:07:22.000Z | endpoints/cotect-endpoints/cotect_endpoints/security.py | JNKielmann/cotect | 1b213459b41ef18119948633385ebad2cc16e9e2 | [
"MIT"
] | 6 | 2020-03-21T18:50:29.000Z | 2022-02-27T01:38:20.000Z | endpoints/cotect-endpoints/cotect_endpoints/security.py | JNKielmann/cotect | 1b213459b41ef18119948633385ebad2cc16e9e2 | [
"MIT"
] | 7 | 2020-03-24T14:42:35.000Z | 2020-04-06T13:22:29.000Z | import logging
import os
import firebase_admin
from fastapi import HTTPException, Security, status
from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
from fastapi.security.api_key import APIKeyCookie, APIKeyHeader, APIKeyQuery
from firebase_admin import auth
from cotect_endpoints.utils import id_ut... | 33.530612 | 114 | 0.693244 |
77009347b5bee01d461e0bc59d8b6aa0208dc523 | 7,201 | py | Python | ui/Pytest/test_Range.py | MoisesHenr/OCEAN | e99c853893adc89652794ace62fcc8ffa78aa7ac | [
"MIT"
] | 15 | 2021-06-15T13:48:03.000Z | 2022-01-26T13:51:46.000Z | ui/Pytest/test_Range.py | MoisesHenr/OCEAN | e99c853893adc89652794ace62fcc8ffa78aa7ac | [
"MIT"
] | 1 | 2021-07-04T02:58:29.000Z | 2021-07-04T02:58:29.000Z | ui/Pytest/test_Range.py | MoisesHenr/OCEAN | e99c853893adc89652794ace62fcc8ffa78aa7ac | [
"MIT"
] | 2 | 2021-06-21T20:44:01.000Z | 2021-06-23T11:10:56.000Z | # Author: Moises Henrique Pereira
# this class handle the functions tests of controller of the component of the numerical features
import pytest
import sys
from PyQt5 import QtWidgets
from ui.mainTest import StaticObjects | 56.257813 | 113 | 0.805583 |
770214b97687e419b49ca7614e24a42a26a9954c | 2,092 | py | Python | tools/clean_autogen_protos.py | embeddery/stackrox | d653406651df4331a714839ec2c0a23a93425c64 | [
"Apache-2.0"
] | 22 | 2022-03-31T14:32:18.000Z | 2022-03-31T22:11:30.000Z | tools/clean_autogen_protos.py | embeddery/stackrox | d653406651df4331a714839ec2c0a23a93425c64 | [
"Apache-2.0"
] | 5 | 2022-03-31T14:35:28.000Z | 2022-03-31T22:40:13.000Z | tools/clean_autogen_protos.py | embeddery/stackrox | d653406651df4331a714839ec2c0a23a93425c64 | [
"Apache-2.0"
] | 4 | 2022-03-31T16:33:58.000Z | 2022-03-31T22:19:26.000Z | #!/usr/bin/env python3
import argparse
import pathlib
GENERATED_EXTENSIONS = ["pb.go", "pb.gw.go", "swagger.json"]
if __name__ == '__main__':
main()
| 31.223881 | 112 | 0.707935 |
7702c9e7da503201d8308cee20a4f5351db96b01 | 21,848 | py | Python | skbl/helpers.py | spraakbanken/skblportalen | 05d0113c9ca73f8092765a08597d23091ba3bc1f | [
"MIT"
] | 2 | 2018-03-15T16:19:36.000Z | 2019-03-18T10:25:38.000Z | skbl/helpers.py | spraakbanken/skblportalen | 05d0113c9ca73f8092765a08597d23091ba3bc1f | [
"MIT"
] | 3 | 2018-06-05T19:35:11.000Z | 2019-03-18T10:26:50.000Z | skbl/helpers.py | spraakbanken/skblportalen | 05d0113c9ca73f8092765a08597d23091ba3bc1f | [
"MIT"
] | 1 | 2018-06-05T19:07:56.000Z | 2018-06-05T19:07:56.000Z | """Define different helper functions."""
import datetime
import json
import re
import sys
import urllib.parse
from urllib.request import Request, urlopen
import icu
import markdown
from flask import current_app, g, make_response, render_template, request, url_for
from flask_babel import gettext
from . import static_... | 34.244514 | 123 | 0.592045 |
77054d9b1fb16933bc175b8744bb05cb5f7182d5 | 5,037 | py | Python | boundaries/migrations/0001_initial.py | MinnPost/represent-boundaries | 17f65d34a6ed761e72dbdf13ea78b64fdeaa356d | [
"MIT"
] | 20 | 2015-03-17T09:10:39.000Z | 2020-06-30T06:08:08.000Z | boundaries/migrations/0001_initial.py | MinnPost/represent-boundaries | 17f65d34a6ed761e72dbdf13ea78b64fdeaa356d | [
"MIT"
] | 14 | 2015-04-24T17:22:00.000Z | 2021-06-22T16:50:24.000Z | boundaries/migrations/0001_initial.py | MinnPost/represent-boundaries | 17f65d34a6ed761e72dbdf13ea78b64fdeaa356d | [
"MIT"
] | 16 | 2015-04-27T23:32:46.000Z | 2020-07-05T11:18:04.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.gis.db.models.fields
| 65.415584 | 239 | 0.6351 |
7706515165e3817a767c32b6ac93a3b7c85f245e | 1,267 | py | Python | gitz/git/reference_branch.py | rec/gitz | cbb07f99dd002c85b5ca95896b33d03150bf9282 | [
"MIT"
] | 24 | 2019-07-26T03:57:16.000Z | 2021-11-22T22:39:13.000Z | gitz/git/reference_branch.py | rec/gitz | cbb07f99dd002c85b5ca95896b33d03150bf9282 | [
"MIT"
] | 212 | 2019-06-13T13:44:26.000Z | 2020-06-02T17:59:51.000Z | gitz/git/reference_branch.py | rec/gitz | cbb07f99dd002c85b5ca95896b33d03150bf9282 | [
"MIT"
] | 2 | 2019-08-09T13:55:38.000Z | 2019-09-07T11:17:59.000Z | from . import functions
from ..program import ARGS
from ..program import ENV
from ..program import PROGRAM
_HELP_REFERENCE_BRANCH = (
'Branch to create from, in the form ``branch`` or ``remote/branch``'
)
| 28.155556 | 75 | 0.651144 |
7707130bae4f273be796d5022abf873f7542914d | 89 | py | Python | cookies/apps.py | hamishwillee/http_tester_site | 5c9fa6840c7931f4a7dbd669616cb7b06e29c068 | [
"MIT"
] | null | null | null | cookies/apps.py | hamishwillee/http_tester_site | 5c9fa6840c7931f4a7dbd669616cb7b06e29c068 | [
"MIT"
] | 8 | 2021-03-19T10:14:39.000Z | 2022-03-12T00:24:41.000Z | cookies/apps.py | ADpDinamo/site | d7313cd6c151a381ccc803b81768673587cb8d45 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
| 14.833333 | 33 | 0.752809 |
77076be0aee637dc1db01b51cb1e1bf652954a05 | 7,016 | py | Python | src/single_pendulum.py | dpopchev/Computation_python | 790bfc451b003ecbc626867035dc03a7b55d1fb9 | [
"MIT"
] | null | null | null | src/single_pendulum.py | dpopchev/Computation_python | 790bfc451b003ecbc626867035dc03a7b55d1fb9 | [
"MIT"
] | null | null | null | src/single_pendulum.py | dpopchev/Computation_python | 790bfc451b003ecbc626867035dc03a7b55d1fb9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# do not hesitate to debug
import pdb
# python computation modules and visualization
import numpy as np
import sympy as sy
import scipy as sp
import matplotlib.pyplot as plt
from sympy import Q as syQ
sy.init_printing(use_latex=True,forecolor="White")
def Lyapunov_stability_test_linear(ev):
... | 34.392157 | 83 | 0.651511 |
770880f1a07d4982b42b16b52ebec66b0adb1c55 | 1,690 | py | Python | web/accounts/views.py | drejkim/reading-quantified-server | 54cf83629ae0139cbf4b9dc82b27a54056afef36 | [
"MIT"
] | 2 | 2020-10-30T23:46:44.000Z | 2021-02-17T09:11:52.000Z | web/accounts/views.py | estherjk/reading-quantified-server | 54cf83629ae0139cbf4b9dc82b27a54056afef36 | [
"MIT"
] | 7 | 2020-05-09T17:15:51.000Z | 2021-09-22T18:16:55.000Z | web/accounts/views.py | drejkim/reading-quantified-server | 54cf83629ae0139cbf4b9dc82b27a54056afef36 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import mixins
from rest_framework import permissions
from rest_framework import viewsets
from rest_framework.decorators import action
from .models import User
from .serializers import UserSerializer
# Create your views here. | 32.5 | 68 | 0.63432 |
77089cdd70ca47f3aa10526e20e9f8906eab1767 | 2,197 | py | Python | fixit/common/pseudo_rule.py | sk-/Fixit | ee0c2c9699f3cf5557b7f1210447c68be1542024 | [
"Apache-2.0"
] | 313 | 2020-09-02T20:35:57.000Z | 2022-03-29T07:55:37.000Z | fixit/common/pseudo_rule.py | sk-/Fixit | ee0c2c9699f3cf5557b7f1210447c68be1542024 | [
"Apache-2.0"
] | 93 | 2020-09-02T19:51:22.000Z | 2022-01-19T18:29:46.000Z | fixit/common/pseudo_rule.py | sk-/Fixit | ee0c2c9699f3cf5557b7f1210447c68be1542024 | [
"Apache-2.0"
] | 46 | 2020-09-02T21:16:57.000Z | 2022-03-16T18:49:37.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import abc
import ast
import io
import tokenize
from pathlib import Path
from typing import Iterable, Optional
from fixit.common.report impor... | 30.513889 | 88 | 0.680018 |
770a2f395758f1a8fbdf72af2cefdb909802a41f | 356 | py | Python | homeschool/referrals/tests/test_models.py | chriswedgwood/homeschool | d5267b13154aaa52c9c3edbf06b251f123583ae8 | [
"MIT"
] | 154 | 2019-12-24T17:45:44.000Z | 2022-03-30T23:03:06.000Z | homeschool/referrals/tests/test_models.py | chriswedgwood/homeschool | d5267b13154aaa52c9c3edbf06b251f123583ae8 | [
"MIT"
] | 397 | 2019-11-05T03:23:45.000Z | 2022-03-31T04:51:55.000Z | homeschool/referrals/tests/test_models.py | chriswedgwood/homeschool | d5267b13154aaa52c9c3edbf06b251f123583ae8 | [
"MIT"
] | 44 | 2020-02-24T13:08:52.000Z | 2022-02-24T05:03:13.000Z | from homeschool.referrals.tests.factories import ReferralFactory
from homeschool.test import TestCase
| 29.666667 | 64 | 0.752809 |
770aad7e1ff56e67c95983849d2bf6bbbc1649fe | 284 | py | Python | slackwebhook/__init__.py | FoundryGroup/Slack-Webhook | 1a71f68eec876684ffaa7ba936bbc099f55dfb81 | [
"MIT"
] | null | null | null | slackwebhook/__init__.py | FoundryGroup/Slack-Webhook | 1a71f68eec876684ffaa7ba936bbc099f55dfb81 | [
"MIT"
] | null | null | null | slackwebhook/__init__.py | FoundryGroup/Slack-Webhook | 1a71f68eec876684ffaa7ba936bbc099f55dfb81 | [
"MIT"
] | null | null | null | ################################################################################
# Python package __init__.py file.
#
# Author: Carl Cortright
# Date: 12/20/2016
#
################################################################################
from slackwebhook import slackwebhook
| 28.4 | 80 | 0.323944 |
770b052dd7eccaa42dd94c9096322a70a4b8491d | 229 | py | Python | scripts/fasta2vcf.py | jodyphelan/pathogenseq | 2e04190f25063d722ef653e819b94eb66407ea8d | [
"MIT"
] | null | null | null | scripts/fasta2vcf.py | jodyphelan/pathogenseq | 2e04190f25063d722ef653e819b94eb66407ea8d | [
"MIT"
] | null | null | null | scripts/fasta2vcf.py | jodyphelan/pathogenseq | 2e04190f25063d722ef653e819b94eb66407ea8d | [
"MIT"
] | 1 | 2018-05-11T14:54:51.000Z | 2018-05-11T14:54:51.000Z | #! /usr/bin/env python
import sys
import pathogenseq as ps
ref_file = sys.argv[1]
query_file = sys.argv[2]
prefix = sys.argv[3]
ps.mauve_call_variants(ref_file,query_file,prefix)
cmd = "bgzip -f %s.vcf" % prefix
ps.run_cmd(cmd)
| 20.818182 | 50 | 0.737991 |
770b263fbdf34c06e41fa87b5529ee3e705b5a07 | 20 | py | Python | test/__init__.py | miguelcarrasco/anothercryptosolver | 57ac6be024574a46492d1e84782ff02763e57010 | [
"MIT"
] | null | null | null | test/__init__.py | miguelcarrasco/anothercryptosolver | 57ac6be024574a46492d1e84782ff02763e57010 | [
"MIT"
] | null | null | null | test/__init__.py | miguelcarrasco/anothercryptosolver | 57ac6be024574a46492d1e84782ff02763e57010 | [
"MIT"
] | null | null | null | __author__ = 'deon'
| 10 | 19 | 0.7 |
770c52f41e079a4cb403bba6dcadc3852fc8a850 | 231 | py | Python | job_scheduler/cache/__init__.py | konkolorado/job-scheduler | e76b24d0592d9d1f62b5a1525b6a152b9983b2fa | [
"MIT"
] | null | null | null | job_scheduler/cache/__init__.py | konkolorado/job-scheduler | e76b24d0592d9d1f62b5a1525b6a152b9983b2fa | [
"MIT"
] | null | null | null | job_scheduler/cache/__init__.py | konkolorado/job-scheduler | e76b24d0592d9d1f62b5a1525b6a152b9983b2fa | [
"MIT"
] | 1 | 2021-08-09T15:28:49.000Z | 2021-08-09T15:28:49.000Z | from job_scheduler.cache.base import ScheduleCache
from job_scheduler.cache.fake import FakeScheduleCache
from job_scheduler.cache.redis import RedisScheduleCache
all = ["ScheduleCache", "RedisScheduleCache", "FakeScheduleCache"]
| 38.5 | 66 | 0.848485 |
770c61ce8220d1f9ab5e398ccfbfd93f6911fe13 | 317 | py | Python | programming/python/ex004.py | Vinicius-Moraes20/personal-projects | c041909ab1c66eeca11768f8f7944eb351c8b8e7 | [
"MIT"
] | null | null | null | programming/python/ex004.py | Vinicius-Moraes20/personal-projects | c041909ab1c66eeca11768f8f7944eb351c8b8e7 | [
"MIT"
] | null | null | null | programming/python/ex004.py | Vinicius-Moraes20/personal-projects | c041909ab1c66eeca11768f8f7944eb351c8b8e7 | [
"MIT"
] | null | null | null | valor = input("Digite algo: ")
print(" do tipo", type(valor))
print("Valor numrico:", valor.isnumeric())
print("Valor Alfa:", valor.isalpha())
print("Valor Alfanumrico:", valor.isalnum())
print("Valor ASCII:", valor.isascii())
print("Valor Decimal", valor.isdecimal())
print("Valor Printavel", valor.isprintable()) | 39.625 | 45 | 0.712934 |
770d1178d917aa0b3ade69999920d0f07b37f63c | 447 | py | Python | backend/src/util/observable.py | r2binx/heimboard | 42059d367e5b15c4910e61f4be0e3b462da8d5f7 | [
"MIT"
] | 6 | 2021-12-20T21:36:03.000Z | 2022-03-30T16:04:54.000Z | backend/src/util/observable.py | r2binx/heimboard | 42059d367e5b15c4910e61f4be0e3b462da8d5f7 | [
"MIT"
] | 16 | 2021-12-20T20:14:43.000Z | 2022-01-26T12:43:59.000Z | backend/src/util/observable.py | r2binx/heimboard | 42059d367e5b15c4910e61f4be0e3b462da8d5f7 | [
"MIT"
] | 1 | 2022-01-25T20:59:35.000Z | 2022-01-25T20:59:35.000Z | from typing import List
| 20.318182 | 48 | 0.621924 |
770d8aff527e695d052230658f4cc6a96df88def | 26,579 | py | Python | ae-tpcc-polyjuice-rl/training/PG.py | derFischer/Polyjuice | 3ce467807822b5659efdd5759cae4563a9152b00 | [
"Apache-2.0"
] | 23 | 2021-05-11T13:14:36.000Z | 2022-03-23T05:59:07.000Z | ae-tpcc-polyjuice-rl/training/PG.py | derFischer/Polyjuice | 3ce467807822b5659efdd5759cae4563a9152b00 | [
"Apache-2.0"
] | 1 | 2021-08-16T07:37:18.000Z | 2021-08-16T07:37:18.000Z | ae-tpcc-polyjuice-rl/training/PG.py | derFischer/Polyjuice | 3ce467807822b5659efdd5759cae4563a9152b00 | [
"Apache-2.0"
] | 1 | 2021-07-01T15:33:25.000Z | 2021-07-01T15:33:25.000Z | #coding=utf-8
import numpy as np
import tensorflow as tf
import os
import sys
import time
import shutil
import re
import signal
import subprocess
import numpy as np
import math
from Policy import *
np.set_printoptions(threshold=np.inf)
BASELINES = 1
| 53.051896 | 177 | 0.637533 |
770d8f29602f5abced8ace8b5ba5e47df2e792c0 | 335 | py | Python | src/data/preprocessors/__init__.py | paulwarkentin/tf-ssd-vgg | f48e3ccbb8eb092d3cb82a9d90164c7328880477 | [
"MIT"
] | 5 | 2021-09-26T07:19:42.000Z | 2022-03-11T23:25:36.000Z | ssd/src/data/preprocessors/__init__.py | bharatmahaur/ComparativeStudy | 2e3b6de882acc2a465e1b7c8bcd23cc9c8181d3d | [
"Apache-2.0"
] | null | null | null | ssd/src/data/preprocessors/__init__.py | bharatmahaur/ComparativeStudy | 2e3b6de882acc2a465e1b7c8bcd23cc9c8181d3d | [
"Apache-2.0"
] | null | null | null | ##
## /src/data/preprocessors/__init__.py
##
## Created by Paul Warkentin <paul@warkentin.email> on 15/07/2018.
## Updated by Paul Warkentin <paul@warkentin.email> on 15/07/2018.
##
from .bbox_preprocessor import BBoxPreprocessor
from .default_preprocessor import DefaultPreprocessor
from .image_preprocessor import Ima... | 30.454545 | 66 | 0.797015 |
770e96f574a33ca2bee58218e94c93fab61c4349 | 4,775 | py | Python | camera.py | chenhsuanlin/signed-distance-SRN | d47ecca9d048e29adfa7f5b0170d1daba897e740 | [
"MIT"
] | 94 | 2020-10-26T17:32:32.000Z | 2022-03-06T12:22:31.000Z | camera.py | albertotono/signed-distance-SRN | 2e750d3fb71cf7570cf9be9f4a39040b5173795d | [
"MIT"
] | 15 | 2020-10-27T12:48:31.000Z | 2022-01-22T02:29:48.000Z | camera.py | albertotono/signed-distance-SRN | 2e750d3fb71cf7570cf9be9f4a39040b5173795d | [
"MIT"
] | 12 | 2020-10-26T20:26:07.000Z | 2021-12-31T08:13:01.000Z | import numpy as np
import os,sys,time
import torch
import torch.nn.functional as torch_F
import collections
from easydict import EasyDict as edict
import util
pose = Pose()
| 37.598425 | 97 | 0.604188 |
7710dc16a8fbe11c81dbff2a20f74da32953814d | 1,550 | py | Python | solutions/python3/problem1265.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | solutions/python3/problem1265.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | solutions/python3/problem1265.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
1265. Print Immutable Linked List in Reverse
You are given an immutable linked list, print out all values of each node in reverse with the help of the following
interface:
ImmutableListNode: An interface of immutable linked list, you are given the head of the list.
You need to use the foll... | 29.245283 | 116 | 0.74129 |
771202ad53d30186bb1f539c888cffb5dbe12c2c | 3,403 | py | Python | standard.py | futureisatyourhand/self-supervised-learning | af8b18639c89d138dbc3490827f7fe867d38387b | [
"Apache-2.0"
] | 1 | 2022-02-09T10:14:12.000Z | 2022-02-09T10:14:12.000Z | standard.py | futureisatyourhand/self-supervised-learning | af8b18639c89d138dbc3490827f7fe867d38387b | [
"Apache-2.0"
] | null | null | null | standard.py | futureisatyourhand/self-supervised-learning | af8b18639c89d138dbc3490827f7fe867d38387b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# --------------------------------------
# @Time : 2021/5/12$ 12:12$
# @Author : Qian Li
# @Email : 1844857573@qq.com
# @File : network.py
# Description : details(i.e., online network,online projector network, online predictor,classifier, target network, target projector,) for self-supe... | 41 | 163 | 0.569498 |
771328ea922df3260ea4280307fa28df861e95c9 | 789 | py | Python | aqualogic/frames.py | mj-sakellaropoulos/aqualogic | 75a4803d36730eb634d4bb31de564e647ed40624 | [
"MIT"
] | null | null | null | aqualogic/frames.py | mj-sakellaropoulos/aqualogic | 75a4803d36730eb634d4bb31de564e647ed40624 | [
"MIT"
] | null | null | null | aqualogic/frames.py | mj-sakellaropoulos/aqualogic | 75a4803d36730eb634d4bb31de564e647ed40624 | [
"MIT"
] | null | null | null | from enum import Enum, unique
| 30.346154 | 78 | 0.712294 |
77135615dccca76a8c5274c97ffda5de511d3e32 | 87 | py | Python | Python/Sum/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 5 | 2020-08-29T15:15:31.000Z | 2022-03-01T18:22:34.000Z | Python/Sum/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | null | null | null | Python/Sum/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 1 | 2020-12-02T11:13:14.000Z | 2020-12-02T11:13:14.000Z | num1 = input()
num2 = input()
num3 = input()
print(int(num1) + int(num2) + int(num3))
| 14.5 | 40 | 0.609195 |
77139d03885bd7af5b622aa37432a424a7f5a2fe | 5,525 | py | Python | Python/scheduledEventsInteractiveTool.py | Azure-Samples/virtual-machines-python-scheduled-events-central-logging | d9028f296e4b78eb449e295b4e72a9204da84dcf | [
"MIT"
] | 7 | 2017-04-20T03:09:10.000Z | 2021-02-08T17:07:54.000Z | Python/scheduledEventsInteractiveTool.py | Azure-Samples/virtual-machines-python-scheduled-events-central-logging | d9028f296e4b78eb449e295b4e72a9204da84dcf | [
"MIT"
] | 8 | 2017-04-19T17:57:48.000Z | 2017-04-21T18:31:44.000Z | Python/scheduledEventsInteractiveTool.py | Azure-Samples/virtual-machines-python-scheduled-events-central-logging | d9028f296e4b78eb449e295b4e72a9204da84dcf | [
"MIT"
] | 4 | 2017-04-19T17:33:50.000Z | 2021-02-10T11:21:01.000Z | #!/usr/bin/python
import json
import socket
import sys
import getopt
import logging
from enum import Enum
from datetime import datetime
import base64
import hmac
import hashlib
import time
import urllib.request
import urllib.parse
import configparser
metadata_url = 'http://169.254.169.254/metadata/scheduledevents?api... | 36.833333 | 97 | 0.673122 |
7714068c84e56c46ce9cbe59a4ed57f2565d3970 | 1,750 | py | Python | E2E_TOD/config.py | kingb12/pptod | 4cc920494b663c5352a507ed1e32f1e2509a8c93 | [
"Apache-2.0"
] | 54 | 2021-10-02T13:31:09.000Z | 2022-03-25T03:44:54.000Z | E2E_TOD/config.py | programmeddeath1/pptod | 52d26ddc7b917c86af721e810a202db7c7d3b398 | [
"Apache-2.0"
] | 8 | 2021-11-10T06:05:20.000Z | 2022-03-25T03:27:29.000Z | E2E_TOD/config.py | programmeddeath1/pptod | 52d26ddc7b917c86af721e810a202db7c7d3b398 | [
"Apache-2.0"
] | 14 | 2021-10-02T13:31:01.000Z | 2022-03-27T15:49:33.000Z | import logging, time, os
| 42.682927 | 91 | 0.645714 |
77147ffa79f630a4609f9a112ce607e6646e1ea3 | 6,438 | py | Python | advanced_functionality/inference_pipeline_sparkml_xgboost_car_evaluation/preprocessor.py | jpmarques19/tensorflwo-test | 0ff8b06e0415075c7269820d080284a42595bb2e | [
"Apache-2.0"
] | 5 | 2019-01-19T23:53:35.000Z | 2022-01-29T14:04:31.000Z | advanced_functionality/inference_pipeline_sparkml_xgboost_car_evaluation/preprocessor.py | jpmarques19/tensorflwo-test | 0ff8b06e0415075c7269820d080284a42595bb2e | [
"Apache-2.0"
] | 6 | 2020-01-28T22:54:35.000Z | 2022-02-10T00:44:46.000Z | advanced_functionality/inference_pipeline_sparkml_xgboost_car_evaluation/preprocessor.py | jpmarques19/tensorflwo-test | 0ff8b06e0415075c7269820d080284a42595bb2e | [
"Apache-2.0"
] | 8 | 2020-12-14T15:49:24.000Z | 2022-03-23T18:38:36.000Z | from __future__ import print_function
import time
import sys
import os
import shutil
import csv
import boto3
from awsglue.utils import getResolvedOptions
import pyspark
from pyspark.sql import SparkSession
from pyspark.ml import Pipeline
from pyspark.ml.feature import StringIndexer, VectorIndexer, OneHotEncoder, Vec... | 42.92 | 225 | 0.694626 |
7714bae382cfe5335e914024d6f5ee9028364bc3 | 1,350 | py | Python | response/response.py | benyamin-7/simple-snmp-collector | f21dc75bc2a28af0ce1c881837166d0034cac213 | [
"MIT"
] | null | null | null | response/response.py | benyamin-7/simple-snmp-collector | f21dc75bc2a28af0ce1c881837166d0034cac213 | [
"MIT"
] | null | null | null | response/response.py | benyamin-7/simple-snmp-collector | f21dc75bc2a28af0ce1c881837166d0034cac213 | [
"MIT"
] | null | null | null | from datetime import datetime
__author__ = 'aGn'
__copyright__ = "Copyright 2018, Planet Earth"
| 24.107143 | 86 | 0.474074 |
77174314400427e0f14a7aea762b47ab497d31f3 | 1,399 | py | Python | properjpg/filesmanager.py | vitorrloureiro/properjpg | 4d68e4b9dc930f829d6f67b1d68e1018bdf6f87e | [
"MIT"
] | 3 | 2022-02-16T14:38:25.000Z | 2022-02-18T12:20:19.000Z | properjpg/filesmanager.py | vitorrloureiro/properjpg | 4d68e4b9dc930f829d6f67b1d68e1018bdf6f87e | [
"MIT"
] | 2 | 2022-02-21T05:54:14.000Z | 2022-02-23T14:14:29.000Z | properjpg/filesmanager.py | vitorrloureiro/properjpg | 4d68e4b9dc930f829d6f67b1d68e1018bdf6f87e | [
"MIT"
] | null | null | null | import mimetypes
import os
from pathlib import Path
def ignore_files(dir: str, files: list[str]):
"""
Returns a list of files to ignore.
To be used by shutil.copytree()
"""
return [f for f in files if Path(dir, f).is_file()]
| 27.98 | 86 | 0.623302 |
77176f91a315883bc70d79d05e8925871389967c | 3,117 | py | Python | mcoc/cdt_core/fetch_data.py | sumitb/mcoc-v3 | 93fa5d9d9b28541d19969765b6186072f0d747e7 | [
"MIT"
] | null | null | null | mcoc/cdt_core/fetch_data.py | sumitb/mcoc-v3 | 93fa5d9d9b28541d19969765b6186072f0d747e7 | [
"MIT"
] | null | null | null | mcoc/cdt_core/fetch_data.py | sumitb/mcoc-v3 | 93fa5d9d9b28541d19969765b6186072f0d747e7 | [
"MIT"
] | null | null | null | from ..abc import MixinMeta
import json
import re
def bcg_recompile(str_data):
"""Scrape out the color decorators from Kabam JSON file"""
hex_re = re.compile(r'\[[0-9a-f]{6,8}\](.+?)\[-\]', re.I)
return hex_re.sub(r'**\1**', str_data)
| 35.827586 | 85 | 0.5624 |
77196d4e2e1432027536633a3f1233790aa78b63 | 7,175 | py | Python | evaluate_network_example.py | VU-BEAM-Lab/DNNBeamforming | e8ee8c1e57188a795816b119279ac2e60e5c5236 | [
"Apache-2.0"
] | 1 | 2021-04-12T19:52:43.000Z | 2021-04-12T19:52:43.000Z | evaluate_network_example.py | VU-BEAM-Lab/DNNBeamforming | e8ee8c1e57188a795816b119279ac2e60e5c5236 | [
"Apache-2.0"
] | null | null | null | evaluate_network_example.py | VU-BEAM-Lab/DNNBeamforming | e8ee8c1e57188a795816b119279ac2e60e5c5236 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Jaime Tierney, Adam Luchies, and Brett Byram
# 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... | 28.137255 | 90 | 0.683902 |
771ab20147dc0551086f34101e79824ead557fa2 | 4,392 | py | Python | nexus_constructor/geometry/slit/slit_geometry.py | ess-dmsc/nexus-geometry-constructor | c4d869b01d988629a7864357b8fc2f49a0325111 | [
"BSD-2-Clause"
] | null | null | null | nexus_constructor/geometry/slit/slit_geometry.py | ess-dmsc/nexus-geometry-constructor | c4d869b01d988629a7864357b8fc2f49a0325111 | [
"BSD-2-Clause"
] | 62 | 2018-09-18T14:50:34.000Z | 2019-02-05T15:43:02.000Z | nexus_constructor/geometry/slit/slit_geometry.py | ess-dmsc/nexus-geometry-constructor | c4d869b01d988629a7864357b8fc2f49a0325111 | [
"BSD-2-Clause"
] | null | null | null | from typing import List
from PySide2.QtGui import QVector3D
from nexus_constructor.common_attrs import SHAPE_GROUP_NAME, CommonAttrs
from nexus_constructor.model.component import Component
from nexus_constructor.model.geometry import OFFGeometryNoNexus
| 33.784615 | 87 | 0.523452 |
771bb5f41967c5159144e1d6ef84a2f513ef5409 | 5,029 | py | Python | part4/test.py | willogy-team/insights--tensorflow | 2d4885c99e7b550e94d679bed1f192f62f7e4139 | [
"MIT"
] | null | null | null | part4/test.py | willogy-team/insights--tensorflow | 2d4885c99e7b550e94d679bed1f192f62f7e4139 | [
"MIT"
] | null | null | null | part4/test.py | willogy-team/insights--tensorflow | 2d4885c99e7b550e94d679bed1f192f62f7e4139 | [
"MIT"
] | null | null | null | import os
import argparse
import numpy as np
import tensorflow as tf
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.models import Model
from tensorflow.keras.preprocessing.image import load_img, img_to_array
import matplotlib.pyplot as plt
from visualizations.manual_plot_by_matplotlib import plot_... | 39.912698 | 162 | 0.766156 |
771d0991f9537430f57ccbbc794e519d04ca435c | 5,149 | py | Python | tlg_bot.py | macrergate/PIK_monitor | 06f337d9b07c63619f3d6bbed0bbac03a6db87b3 | [
"MIT"
] | null | null | null | tlg_bot.py | macrergate/PIK_monitor | 06f337d9b07c63619f3d6bbed0bbac03a6db87b3 | [
"MIT"
] | null | null | null | tlg_bot.py | macrergate/PIK_monitor | 06f337d9b07c63619f3d6bbed0bbac03a6db87b3 | [
"MIT"
] | null | null | null | import telegram
from flatten_dict import flatten
import os
import time
import datetime
from pik import PIKData
from helpers import hash_vals, dump_data, load_data, compare
if __name__ == '__main__':
folder = os.environ.get('DATA_DIR', 'data')
mode = os.environ.get('MODE', 'single')
delay = int(os.envir... | 34.557047 | 105 | 0.571373 |
771d3fa0c3bd43d72d1bdf5d1c6f1888cb0021be | 15,025 | py | Python | CopyrightHeaderChecker.py | medazzo/CopyRitghHeaderChecker- | 320642ebd9216338820b6876519e9fae69252dd7 | [
"MIT"
] | 2 | 2019-01-07T14:42:44.000Z | 2019-01-07T14:42:46.000Z | CopyrightHeaderChecker.py | medazzo/CopyRightHeaderChecker | 320642ebd9216338820b6876519e9fae69252dd7 | [
"MIT"
] | null | null | null | CopyrightHeaderChecker.py | medazzo/CopyRightHeaderChecker | 320642ebd9216338820b6876519e9fae69252dd7 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# @author Mohamed Azzouni , Paris, France
#
import os
import time
import ntpath
import sys
import json
import argparse
from os.path import join, getsize
from shutil import copyfile
behaviour = """{
"reporting": true ,
"updatefiles": true ,
"excludeDirs" :[".git",".repo"],
"shebang":
{
... | 43.175287 | 122 | 0.493178 |
771d6750899b13f63733f55154de5c6a095ec756 | 2,132 | py | Python | PYTHON/singly_linked_list.py | ceccs17d55/open-source-contribution | 63d95a990cdcc1e31c5fca3cb61f2fa34dae9e1f | [
"MIT"
] | 2 | 2022-03-10T17:37:24.000Z | 2022-03-10T17:40:05.000Z | PYTHON/singly_linked_list.py | ceccs17d55/open-source-contribution | 63d95a990cdcc1e31c5fca3cb61f2fa34dae9e1f | [
"MIT"
] | 1 | 2021-10-03T19:52:07.000Z | 2021-10-03T19:52:07.000Z | PYTHON/singly_linked_list.py | ceccs17d55/open-source-contribution | 63d95a990cdcc1e31c5fca3cb61f2fa34dae9e1f | [
"MIT"
] | 1 | 2021-10-04T17:22:09.000Z | 2021-10-04T17:22:09.000Z |
# Nodes: 4 -> 5 -> 7 -> 2
link = LinkedList()
link.head = Node(4)
first_node = Node(5)
second_node = Node(7)
third_node = Node(2)
link.head.next = first_node
first_node.next = second_node
second_node.next = third_node
link.print_list()
# Nodes: 4 -> 5 -> 7 -> 2
# Insert 3 at index 2
# Nodes: 4 -> 5 -> 3 -> 7 ->... | 20.304762 | 61 | 0.533771 |
771de5725155e6d31fa7d7b90220c29436ed35b2 | 22,048 | py | Python | addons/odoo_marketplace/models/res_config.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/odoo_marketplace/models/res_config.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/odoo_marketplace/models/res_config.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | 1 | 2021-05-05T07:59:08.000Z | 2021-05-05T07:59:08.000Z | # -*- coding: utf-8 -*-
#################################################################################
# Author : Webkul Software Pvt. Ltd. (<https://webkul.com/>)
# Copyright(c): 2015-Present Webkul Software Pvt. Ltd.
# License URL : https://store.webkul.com/license.html/
# All Rights Reserved.
#
#
#
# This pr... | 73.249169 | 186 | 0.73408 |
771e1c4b8e1935e576368e845f369c110a609b20 | 18,274 | py | Python | igf_data/utils/tools/picard_util.py | imperial-genomics-facility/data-management-python | 7b867d8d4562a49173d0b823bdc4bf374a3688f0 | [
"Apache-2.0"
] | 7 | 2018-05-08T07:28:08.000Z | 2022-02-21T14:56:49.000Z | igf_data/utils/tools/picard_util.py | imperial-genomics-facility/data-management-python | 7b867d8d4562a49173d0b823bdc4bf374a3688f0 | [
"Apache-2.0"
] | 15 | 2021-08-19T12:32:20.000Z | 2022-02-09T19:52:51.000Z | igf_data/utils/tools/picard_util.py | imperial-genomics-facility/data-management-python | 7b867d8d4562a49173d0b823bdc4bf374a3688f0 | [
"Apache-2.0"
] | 2 | 2017-05-12T15:20:10.000Z | 2020-05-07T16:25:11.000Z | import os,subprocess
from shlex import quote
import pandas as pd
from igf_data.utils.singularity_run_wrapper import execute_singuarity_cmd
from igf_data.utils.fileutils import check_file_path,get_temp_dir
| 43.927885 | 140 | 0.525172 |
771f7ee9bb91bc23000b0e85deecce770eb956d7 | 8,348 | py | Python | app/utils/NetworkingUtils.py | DiegoSilva776/linkehub_insigth_api | 1909a9c1b28901ab6dc0be6815741aed848b4363 | [
"MIT"
] | 2 | 2018-06-25T03:07:28.000Z | 2018-06-26T13:52:23.000Z | app/utils/NetworkingUtils.py | DiegoSilva776/linkehub_insigth_api | 1909a9c1b28901ab6dc0be6815741aed848b4363 | [
"MIT"
] | null | null | null | app/utils/NetworkingUtils.py | DiegoSilva776/linkehub_insigth_api | 1909a9c1b28901ab6dc0be6815741aed848b4363 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import os
import json
import http.client
import urllib
import time
sys.path.append("../")
from models.ApiInstance import ApiInstance
from utils.ConstantUtils import ConstantUtils
'''
NetworkingUtils is responsible for holding the external URLs and the default parameters
o... | 36.295652 | 157 | 0.574868 |
7720601585c87e81f391830224a24710fc679947 | 11,203 | py | Python | utils.py | michaelpatrickpurcell/balanced-nontransitive-dice | d4d6e4cfc282d65edd10e9ff0219615c5ac2b77b | [
"MIT"
] | null | null | null | utils.py | michaelpatrickpurcell/balanced-nontransitive-dice | d4d6e4cfc282d65edd10e9ff0219615c5ac2b77b | [
"MIT"
] | null | null | null | utils.py | michaelpatrickpurcell/balanced-nontransitive-dice | d4d6e4cfc282d65edd10e9ff0219615c5ac2b77b | [
"MIT"
] | null | null | null | import numpy as np
from scipy.special import factorial
from itertools import permutations, product
from pysat.solvers import Minisat22, Minicard
from pysat.pb import PBEnc
from clauses import build_clauses, build_max_min_clauses
from clauses import build_permutation_clauses
from clauses import build_cardinality_lits,... | 29.954545 | 86 | 0.595376 |
7722bc9189fc79c029275036a7e49a54482e4d8c | 38 | py | Python | pkg/agents/team4/trainingAgent/findBestConfigs.py | SOMAS2021/SOMAS2021 | acaa13e3d663d3f59589f3b26860db643b3bf29e | [
"MIT"
] | 13 | 2021-12-02T09:28:47.000Z | 2022-01-14T18:39:51.000Z | pkg/agents/team4/trainingAgent/findBestConfigs.py | SOMAS2021/SOMAS2021 | acaa13e3d663d3f59589f3b26860db643b3bf29e | [
"MIT"
] | 190 | 2021-11-19T15:37:44.000Z | 2022-01-17T00:23:13.000Z | pkg/agents/team4/trainingAgent/findBestConfigs.py | SOMAS2021/SOMAS2021 | acaa13e3d663d3f59589f3b26860db643b3bf29e | [
"MIT"
] | 4 | 2021-11-22T18:21:53.000Z | 2021-12-22T13:55:42.000Z | # TODO: autmatate finding best agents
| 19 | 37 | 0.789474 |
772382a62fd85bce40038234f29c973df9cee412 | 2,653 | py | Python | tests/storage/psql_dos/migrations/django_branch/test_0043_default_link_label.py | mkrack/aiida-core | bab1ad6cfc8e4ff041bce268f9270c613663cb35 | [
"MIT",
"BSD-3-Clause"
] | 153 | 2016-12-23T20:59:03.000Z | 2019-07-02T06:47:52.000Z | tests/storage/psql_dos/migrations/django_branch/test_0043_default_link_label.py | mkrack/aiida-core | bab1ad6cfc8e4ff041bce268f9270c613663cb35 | [
"MIT",
"BSD-3-Clause"
] | 2,466 | 2016-12-24T01:03:52.000Z | 2019-07-04T13:41:08.000Z | tests/storage/psql_dos/migrations/django_branch/test_0043_default_link_label.py | mkrack/aiida-core | bab1ad6cfc8e4ff041bce268f9270c613663cb35 | [
"MIT",
"BSD-3-Clause"
] | 88 | 2016-12-23T16:28:00.000Z | 2019-07-01T15:55:20.000Z | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 35.373333 | 75 | 0.551074 |
7729ca0d13aba7858c6f6bf672c7c5cb27ab55a0 | 7,901 | py | Python | tests/src/SI/MAP/School_Map_regression_testing.py | JalajaTR/cQube | 6bf58ab25f0c36709630987ab730bbd5d9192c03 | [
"MIT"
] | null | null | null | tests/src/SI/MAP/School_Map_regression_testing.py | JalajaTR/cQube | 6bf58ab25f0c36709630987ab730bbd5d9192c03 | [
"MIT"
] | null | null | null | tests/src/SI/MAP/School_Map_regression_testing.py | JalajaTR/cQube | 6bf58ab25f0c36709630987ab730bbd5d9192c03 | [
"MIT"
] | null | null | null | import time
import unittest
from Data.parameters import Data
from SI.MAP.check_infrascore_with_download_functionality import SchoolInfra_scores
from SI.MAP.check_sc_map_clusterwise_records import test_school_map_schoollevel_records
from SI.MAP.click_on_anydistrict_and_download_csv import download_icon
from SI.MAP.clic... | 38.541463 | 98 | 0.678142 |
772a4eead684d14c1321c64fcce204b67581646f | 4,217 | py | Python | src/manual/melt_oxcgrt2.py | lshtm-gis/WHO_PHSM_Cleaning | 5892673922fc555fb86d6e0be548b48c7dc66814 | [
"MIT"
] | null | null | null | src/manual/melt_oxcgrt2.py | lshtm-gis/WHO_PHSM_Cleaning | 5892673922fc555fb86d6e0be548b48c7dc66814 | [
"MIT"
] | 123 | 2020-10-12T11:06:27.000Z | 2021-04-28T15:32:29.000Z | src/manual/melt_oxcgrt2.py | lshtm-gis/WHO_PHSM_Cleaning | 5892673922fc555fb86d6e0be548b48c7dc66814 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 3 15:24:46 2020
@author: hamishgibbs
"""
import pandas as pd
import re
import numpy as np
#%%
ox = pd.read_csv('https://raw.githubusercontent.com/OxCGRT/covid-policy-tracker/master/data/OxCGRT_latest_withnotes.csv')
#%%
ox = ox[0:100]
#%%
ox.fil... | 27.562092 | 121 | 0.609912 |
772a5de76c01fda9fdad90cbd5de3085dda181b3 | 2,082 | py | Python | src/wildfires/cache/same_call.py | akuhnregnier/wildfires | 4d31cbdd4a1303ecebc391a35c73b8f07d8fe400 | [
"MIT"
] | 1 | 2021-01-30T15:38:32.000Z | 2021-01-30T15:38:32.000Z | src/wildfires/cache/same_call.py | akuhnregnier/wildfires | 4d31cbdd4a1303ecebc391a35c73b8f07d8fe400 | [
"MIT"
] | null | null | null | src/wildfires/cache/same_call.py | akuhnregnier/wildfires | 4d31cbdd4a1303ecebc391a35c73b8f07d8fe400 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Decorator guaranteeing uniform function calls."""
from inspect import Parameter, signature
def extract_uniform_args_kwargs(f, *args, ignore=None, **kwargs):
"""Extract uniform arguments given a function and the parameters it is called with.
Args:
f (callable): Function bein... | 29.742857 | 87 | 0.64121 |
772a5f878a0f88d452d599cf44b77a39b7955775 | 2,862 | py | Python | models/mnist_model.py | dcurry09/Tensorflow-Project-OOP | 7b142046cf6d736790029092dc83c0ce0009586b | [
"Apache-2.0"
] | null | null | null | models/mnist_model.py | dcurry09/Tensorflow-Project-OOP | 7b142046cf6d736790029092dc83c0ce0009586b | [
"Apache-2.0"
] | null | null | null | models/mnist_model.py | dcurry09/Tensorflow-Project-OOP | 7b142046cf6d736790029092dc83c0ce0009586b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
Implements a TF Model class by inheriting the Model base class.
@author: David Curry
@version: 1.0
"""
from base.base_model import BaseModel
import tensorflow as tf
| 33.27907 | 144 | 0.621593 |
772b333423680d442d0295b333722d5a3ecb17ce | 2,388 | py | Python | tilemap.py | AI0702/Among-Us-clone | e75a1410c8bc9e82b41f2ab51deec373c8486e29 | [
"Unlicense"
] | null | null | null | tilemap.py | AI0702/Among-Us-clone | e75a1410c8bc9e82b41f2ab51deec373c8486e29 | [
"Unlicense"
] | null | null | null | tilemap.py | AI0702/Among-Us-clone | e75a1410c8bc9e82b41f2ab51deec373c8486e29 | [
"Unlicense"
] | null | null | null | import pygame as pg
from settings import *
import pytmx
| 32.712329 | 74 | 0.562395 |
772bff3df8d91dc18f1f77932eab53991f3d258d | 768 | py | Python | exdir/utils/path.py | knc-neural-calculus/exdir | 5448d41d60c0583892ab7bcf10342d8fb2f2a26b | [
"MIT"
] | 67 | 2017-10-25T11:08:59.000Z | 2022-02-25T18:04:36.000Z | exdir/utils/path.py | knc-neural-calculus/exdir | 5448d41d60c0583892ab7bcf10342d8fb2f2a26b | [
"MIT"
] | 107 | 2017-02-03T16:50:53.000Z | 2022-03-18T04:18:14.000Z | exdir/utils/path.py | knc-neural-calculus/exdir | 5448d41d60c0583892ab7bcf10342d8fb2f2a26b | [
"MIT"
] | 11 | 2018-09-11T11:05:44.000Z | 2022-02-13T10:37:09.000Z | try:
import pathlib
except ImportError as e:
try:
import pathlib2 as pathlib
except ImportError:
raise e
| 24.774194 | 88 | 0.628906 |
772c7aa25a9dad643c71fd03ef2e8fca224182d9 | 15,292 | py | Python | bids2nda/main.py | Shotgunosine/BIDS2NDA | 11d6d39ec1aafbe1e24cf8c3840c71e90aa43ee2 | [
"Apache-2.0"
] | null | null | null | bids2nda/main.py | Shotgunosine/BIDS2NDA | 11d6d39ec1aafbe1e24cf8c3840c71e90aa43ee2 | [
"Apache-2.0"
] | null | null | null | bids2nda/main.py | Shotgunosine/BIDS2NDA | 11d6d39ec1aafbe1e24cf8c3840c71e90aa43ee2 | [
"Apache-2.0"
] | 1 | 2018-08-22T15:51:33.000Z | 2018-08-22T15:51:33.000Z | #!/usr/bin/env python
#
# import modules used here -- sys is a very standard one
from __future__ import print_function
import argparse
import csv
import logging
import zipfile
from collections import OrderedDict
from glob import glob
import os
import sys
import nibabel as nb
import json
import pandas as pd
import num... | 44.069164 | 145 | 0.587889 |
772d6d4f45275295dcb92a649c3abaa349cebcf6 | 431 | py | Python | src/features/threshold.py | HninPwint/nba-career-prediction | ffce32507cad2c4dd020c62cee7f33cf97c886f7 | [
"MIT"
] | 1 | 2021-02-01T10:38:16.000Z | 2021-02-01T10:38:16.000Z | src/features/threshold.py | HninPwint/nba-career-prediction | ffce32507cad2c4dd020c62cee7f33cf97c886f7 | [
"MIT"
] | 3 | 2021-02-02T11:06:16.000Z | 2021-02-06T11:44:19.000Z | src/features/threshold.py | HninPwint/nba-career-prediction | ffce32507cad2c4dd020c62cee7f33cf97c886f7 | [
"MIT"
] | 4 | 2021-01-31T10:57:23.000Z | 2021-02-02T06:16:35.000Z | end
| 26.9375 | 71 | 0.556845 |
7730282673237879a35fb5efc177b9a2f6881b87 | 514 | py | Python | cheers/settings/prod.py | bahattincinic/cheers | 4443b23ad752c233743d71d1e035b757583a05f3 | [
"MIT"
] | 3 | 2019-03-12T03:38:13.000Z | 2021-03-15T16:48:49.000Z | cheers/settings/prod.py | bahattincinic/cheers | 4443b23ad752c233743d71d1e035b757583a05f3 | [
"MIT"
] | null | null | null | cheers/settings/prod.py | bahattincinic/cheers | 4443b23ad752c233743d71d1e035b757583a05f3 | [
"MIT"
] | 2 | 2022-01-05T11:43:42.000Z | 2022-03-16T00:05:19.000Z | from .base import *
import os
import dj_database_url
ALLOWED_HOSTS = ['*']
DEBUG = False
MIDDLEWARE += [
'whitenoise.middleware.WhiteNoiseMiddleware'
]
INSTALLED_APPS = [
'whitenoise.runserver_nostatic',
] + INSTALLED_APPS
DATABASES = {
'default': dj_database_url.config()
}
EMAIL_USE_TLS = True
EM... | 17.133333 | 59 | 0.743191 |
77319ed1468248ddab354a491c37c6712455692a | 1,175 | py | Python | week2/problem1.py | jgathogo/python_level_1 | 129411fe42aa5ef0e32d9d3d9cf2ad90e182e455 | [
"Apache-2.0"
] | 1 | 2021-06-13T09:06:24.000Z | 2021-06-13T09:06:24.000Z | week2/problem1.py | jgathogo/python_level_1 | 129411fe42aa5ef0e32d9d3d9cf2ad90e182e455 | [
"Apache-2.0"
] | null | null | null | week2/problem1.py | jgathogo/python_level_1 | 129411fe42aa5ef0e32d9d3d9cf2ad90e182e455 | [
"Apache-2.0"
] | null | null | null | import os
import sys
"""
Notes:
- It's great that you've used functions even though we haven't reached that part of the course.
Also, the naming of the function is clear and a good variable name.
- Typically, the docstring for the function starts immediately after the triple quote otherwise we
introduce a newline (... | 37.903226 | 131 | 0.72 |
7731f6b63900ac030b3e3491a417310c77c7bf81 | 2,313 | py | Python | Graphs/dijkstra_algorithm.py | hemraj4545/Data-Structures-and-Algorithms-in-Python | 633062369ceb3c9c1627f7e826243be7a84d4a7e | [
"MIT"
] | 3 | 2019-10-05T07:11:06.000Z | 2021-08-04T12:15:39.000Z | Graphs/dijkstra_algorithm.py | Satyagovind/Data-Structures-and-Algorithms-in-Python | e13becf63097e86dc073bc2de3b8d5586623743d | [
"MIT"
] | 5 | 2019-10-03T08:51:34.000Z | 2020-11-19T11:49:13.000Z | Graphs/dijkstra_algorithm.py | Satyagovind/Data-Structures-and-Algorithms-in-Python | e13becf63097e86dc073bc2de3b8d5586623743d | [
"MIT"
] | 6 | 2019-09-25T17:59:34.000Z | 2021-07-17T05:58:14.000Z | """
>>> G = Graph(6)
>>> G.insert(0, 1, 3)
>>> G.insert(0, 2, 7)
>>> G.insert(0, 4, 8)
>>> G.insert(0, 5, 1)
>>> G.insert(1, 2, 2)
>>> G.insert(1, 4, 13)
>>> G.insert(2, 3, 15)
>>> G.insert(3, 5, 17)
>>> G.insert(4, 5, 9)
>>> G.dijkstra(0)[0]
[0, 3, 5, 20, 8, 1]
>>> G... | 30.84 | 108 | 0.531345 |
7732a52cf70bb1c65299ac307a32800ed068e230 | 854 | py | Python | src/7/accessing_variables_defined_inside_a_closure/example2.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 14 | 2017-05-20T04:06:46.000Z | 2022-01-23T06:48:45.000Z | src/7/accessing_variables_defined_inside_a_closure/example2.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 1 | 2021-06-10T20:17:55.000Z | 2021-06-10T20:17:55.000Z | src/7/accessing_variables_defined_inside_a_closure/example2.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 15 | 2017-03-29T17:57:33.000Z | 2021-08-24T02:20:08.000Z | # Example of faking classes with a closure
import sys
# Example use
def Stack():
items = []
return ClosureInstance()
if __name__ == '__main__':
s = Stack()
print(s)
s.push(10)
s.push(20)
s.push('Hello')
print(len(s))
print(s.pop())
print(s.pop())
print(s.pop())
| 20.829268 | 73 | 0.580796 |
7732d1b5ac77c6e2332d3fe38f546a806fa00262 | 434 | py | Python | miniamf/adapters/_array.py | zackw/pyamf | 59ca667e37a20d8464b098f4ebec89de6f319413 | [
"MIT"
] | 14 | 2017-05-04T17:22:30.000Z | 2020-01-23T06:30:19.000Z | miniamf/adapters/_array.py | zackw/pyamf | 59ca667e37a20d8464b098f4ebec89de6f319413 | [
"MIT"
] | 1 | 2020-05-16T06:28:02.000Z | 2020-05-16T06:28:02.000Z | miniamf/adapters/_array.py | zackw/pyamf | 59ca667e37a20d8464b098f4ebec89de6f319413 | [
"MIT"
] | 6 | 2017-09-13T19:30:35.000Z | 2021-07-26T14:41:57.000Z | # Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
U{array<http://docs.python.org/library/array.html>} adapter module.
Will convert all array.array instances to a python list before encoding. All
type information is lost (but degrades nicely).
@since: 0.5
"""
from __future__ import absolute_impor... | 21.7 | 76 | 0.774194 |
77331bed5a7248d07a4fb3851abb1699ae7ce662 | 929 | py | Python | KristaBackup/common/schemes/__init__.py | javister/krista-backup | f8852c20afdf483e842ff22497bdd80eedc30c78 | [
"Apache-2.0"
] | 7 | 2020-07-28T06:53:02.000Z | 2022-03-18T05:23:03.000Z | KristaBackup/common/schemes/__init__.py | javister/krista-backup | f8852c20afdf483e842ff22497bdd80eedc30c78 | [
"Apache-2.0"
] | 1 | 2020-11-25T16:13:26.000Z | 2020-11-25T16:13:26.000Z | KristaBackup/common/schemes/__init__.py | javister/krista-backup | f8852c20afdf483e842ff22497bdd80eedc30c78 | [
"Apache-2.0"
] | 1 | 2020-07-28T13:47:09.000Z | 2020-07-28T13:47:09.000Z | from .scheme_factory import SchemeFactory
from .schemes import schemes
_default_scheme_id = 'default'
def get_scheme(scheme_id=None):
""" scheme_id.
Args:
scheme_id: , .
Returns:
Scheme None, scheme_id .
"""
global _default_scheme_id
if not scheme_id:
sche... | 19.765957 | 62 | 0.70183 |
77342baf47053521f8e1f5ab72083d2e5edeca75 | 4,425 | py | Python | data/utils.py | dojoteef/synst | a1842682cf757e8a501cd9cee16f20e1a14158f1 | [
"BSD-3-Clause"
] | 81 | 2019-06-03T18:04:22.000Z | 2022-02-04T14:20:49.000Z | data/utils.py | dojoteef/synst | a1842682cf757e8a501cd9cee16f20e1a14158f1 | [
"BSD-3-Clause"
] | 7 | 2019-08-02T06:41:20.000Z | 2020-07-31T18:31:48.000Z | data/utils.py | dojoteef/synst | a1842682cf757e8a501cd9cee16f20e1a14158f1 | [
"BSD-3-Clause"
] | 5 | 2019-06-14T04:00:25.000Z | 2020-09-14T02:50:09.000Z | '''
Utilities useful for datasets
'''
import os
from functools import partial
from urllib.request import urlretrieve
import requests
from tqdm import tqdm
from torch.utils.data.dataloader import DataLoader
from torch.utils.data.sampler import BatchSampler, RandomSampler, SequentialSampler
from data.sampler import Se... | 33.522727 | 99 | 0.661695 |
7734720921a60ab16b14a023eaab75451a582742 | 3,092 | py | Python | check_changelog.py | pllim/action-check_astropy_changelog | 915511a895712098ca250cb3416e2c08ffb1a0fa | [
"BSD-3-Clause"
] | null | null | null | check_changelog.py | pllim/action-check_astropy_changelog | 915511a895712098ca250cb3416e2c08ffb1a0fa | [
"BSD-3-Clause"
] | null | null | null | check_changelog.py | pllim/action-check_astropy_changelog | 915511a895712098ca250cb3416e2c08ffb1a0fa | [
"BSD-3-Clause"
] | null | null | null | import json
import os
import sys
from astropy_changelog import loads
from github import Github
event_name = os.environ['GITHUB_EVENT_NAME']
if event_name not in ('pull_request_target', 'pull_request'):
print(f'No-op for {event_name}')
sys.exit(0)
event_jsonfile = os.environ['GITHUB_EVENT_PATH']
with open(ev... | 31.876289 | 79 | 0.654916 |
7734b23f84997ddc3801f990923aea0601af3e94 | 4,037 | py | Python | examples/python/example-05-async.py | lukasm91/serialbox2 | 3a8dba366ef160df684c957e59c0a5f6b1b17244 | [
"BSD-2-Clause"
] | 1 | 2020-09-04T00:43:52.000Z | 2020-09-04T00:43:52.000Z | examples/python/example-05-async.py | mlange05/serialbox2 | fa72d8a39f62c7c0b76536680f7a9953957f59f2 | [
"BSD-2-Clause"
] | null | null | null | examples/python/example-05-async.py | mlange05/serialbox2 | fa72d8a39f62c7c0b76536680f7a9953957f59f2 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
##===-----------------------------------------------------------------------------*- Python -*-===##
##
## S E R I A L B O X
##
## This file is distributed under terms of BSD license.
## See LICENSE.txt for more information.
##
##===-... | 36.7 | 102 | 0.626951 |
7734ec4ada3d6545396115d166790d365032b3f9 | 6,793 | py | Python | johnny_cache/cache.py | Sonictherocketman/cache-proxy | 75650fb143b365e922c03f87e388c5710ad21799 | [
"MIT"
] | 3 | 2019-07-23T02:33:04.000Z | 2021-05-25T16:57:24.000Z | johnny_cache/cache.py | Sonictherocketman/cache-proxy | 75650fb143b365e922c03f87e388c5710ad21799 | [
"MIT"
] | null | null | null | johnny_cache/cache.py | Sonictherocketman/cache-proxy | 75650fb143b365e922c03f87e388c5710ad21799 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from datetime import datetime, timedelta
import json
import os.path
from dateutil.parser import parse
import pytz
import redis
from redis.lock import LockError
import requests
from . import settings
from .logger import logger
UNCACHED_HEADERS = (
'Age',
'Cache-Control',
... | 26.02682 | 83 | 0.568968 |
77356d7dc5fcffe3a5f270ff80863770415d901d | 25,609 | py | Python | discretizer.py | WeiXuanChan/PIMRMeshfree | 1011dc86e7363a53a13353db8e61dca31cc07350 | [
"MIT"
] | null | null | null | discretizer.py | WeiXuanChan/PIMRMeshfree | 1011dc86e7363a53a13353db8e61dca31cc07350 | [
"MIT"
] | null | null | null | discretizer.py | WeiXuanChan/PIMRMeshfree | 1011dc86e7363a53a13353db8e61dca31cc07350 | [
"MIT"
] | 1 | 2017-05-17T09:16:24.000Z | 2017-05-17T09:16:24.000Z | '''
File: discretizer.py
Description: function definition
History:
Date Programmer SAR# - Description
---------- ---------- ----------------------------
Author: w. x. chan 29Apr2016 - Created
'''
import numpy as np
from . import pinm as pinm
from stl import mesh
from mpl_toolkits import mplot3d... | 43.626917 | 189 | 0.619821 |
7735b7ce4419d727877113722c02541feac1a135 | 881 | py | Python | app/utils/urls.py | withshubh/memegen | 9667e0c6737334ca8ceb4347792e3df39ae52b3a | [
"MIT"
] | null | null | null | app/utils/urls.py | withshubh/memegen | 9667e0c6737334ca8ceb4347792e3df39ae52b3a | [
"MIT"
] | 1 | 2017-01-12T23:17:27.000Z | 2017-01-12T23:17:27.000Z | app/utils/urls.py | withshubh/memegen | 9667e0c6737334ca8ceb4347792e3df39ae52b3a | [
"MIT"
] | 1 | 2016-10-31T23:19:15.000Z | 2016-10-31T23:19:15.000Z | from urllib.parse import parse_qs, urlencode, urlparse
from .. import settings
| 23.810811 | 62 | 0.61975 |
7736dad67e1bf0f9644b352cfa50dc3d03404717 | 211 | py | Python | src/westpa/core/reweight/__init__.py | burntyellow/adelman_ci | cca251a51b34843faed0275cce01d7a307829993 | [
"MIT"
] | 140 | 2015-01-07T23:30:36.000Z | 2022-03-28T17:15:30.000Z | lib/west_tools/westpa/reweight/__init__.py | burntyellow/westpa | 9dc62478fcef0001b9c038cd56a40b6be1b9d64a | [
"MIT"
] | 157 | 2015-01-03T03:38:36.000Z | 2022-03-31T14:12:16.000Z | lib/west_tools/westpa/reweight/__init__.py | burntyellow/westpa | 9dc62478fcef0001b9c038cd56a40b6be1b9d64a | [
"MIT"
] | 56 | 2015-01-02T21:21:40.000Z | 2022-03-03T16:27:54.000Z |
'''
Function(s) for the postanalysis toolkit
'''
import logging
log = logging.getLogger(__name__)
from . import _reweight
from ._reweight import (stats_process, reweight_for_c)
from .matrix import FluxMatrix
| 17.583333 | 54 | 0.781991 |