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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
052c8a3287a40e2446164e87ba133bbda46f1779 | 294 | py | Python | Workshops/enBuyukSayi.py | brkyydnmz/Python | 8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0 | [
"MIT"
] | null | null | null | Workshops/enBuyukSayi.py | brkyydnmz/Python | 8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0 | [
"MIT"
] | null | null | null | Workshops/enBuyukSayi.py | brkyydnmz/Python | 8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
sayi1 = int(input("1. Say:"))
sayi2 = int(input("2. Say:"))
sayi3 = int(input("3. Say:"))
if (sayi1>=sayi2) and (sayi1>=sayi3):
enBuyuk = sayi1
elif(sayi2>=sayi1) and (sayi2>=sayi3):
enBuyuk = sayi2
else:
enBuyuk = sayi3
print("En Byk Say:",enBuyuk) | 21 | 38 | 0.608844 |
052d317538142bae7b508c18b4e71450d9b3e276 | 399 | py | Python | 08/seven-segment_part1.py | ReinprechtStefan/AdventOfCode2021 | a2750c5fbcc7fc927d710f4db6926d015a2fb673 | [
"Apache-2.0"
] | null | null | null | 08/seven-segment_part1.py | ReinprechtStefan/AdventOfCode2021 | a2750c5fbcc7fc927d710f4db6926d015a2fb673 | [
"Apache-2.0"
] | null | null | null | 08/seven-segment_part1.py | ReinprechtStefan/AdventOfCode2021 | a2750c5fbcc7fc927d710f4db6926d015a2fb673 | [
"Apache-2.0"
] | null | null | null | with open('input.txt') as f:
lines = f.readlines()
counter = 0
for line in lines:
right_part = line.split(" | ")[1]
for segment in right_part.strip().split(" "):
#print(segment, len(segment))
if len(segment) in [2,3,4,7]:
counter += 1
#e... | 22.166667 | 53 | 0.491228 |
052ffb78d4e1a7b366b635d756b5d2bbba48de18 | 7,605 | py | Python | main/gui.py | MBmasher/weighted-object | eaaf25338240873b7c4197097b2bb73be256b702 | [
"MIT"
] | null | null | null | main/gui.py | MBmasher/weighted-object | eaaf25338240873b7c4197097b2bb73be256b702 | [
"MIT"
] | null | null | null | main/gui.py | MBmasher/weighted-object | eaaf25338240873b7c4197097b2bb73be256b702 | [
"MIT"
] | null | null | null | import Tkinter
import weighted_objects
import tkFileDialog
import time
import ttk
import numpy
import sys
while True:
# Ask user for file dialog.
Tkinter.Tk().withdraw()
osu_file_path = tkFileDialog.askopenfilename(title="Select an osu file", filetypes=(("osu files", "*.osu"),))
# Calcula... | 39.201031 | 118 | 0.598028 |
05311a2863ffbf10e5b4872464958a44b018f474 | 2,929 | py | Python | src/benchmark/probe_training_wrapper.py | dumpmemory/PEARL_v1 | df46be5ed86ba7850486b578a8926aa151e7bf87 | [
"MIT"
] | 24 | 2021-06-10T04:09:00.000Z | 2021-11-02T11:23:35.000Z | src/benchmark/probe_training_wrapper.py | dumpmemory/PEARL_v1 | df46be5ed86ba7850486b578a8926aa151e7bf87 | [
"MIT"
] | 1 | 2021-06-08T15:27:38.000Z | 2021-06-08T15:41:05.000Z | src/benchmark/probe_training_wrapper.py | dumpmemory/PEARL_v1 | df46be5ed86ba7850486b578a8926aa151e7bf87 | [
"MIT"
] | 4 | 2021-06-10T02:28:12.000Z | 2021-08-24T13:00:14.000Z | from .probe import ProbeTrainer
# train using embeddings
# train using images
# main training method | 46.492063 | 148 | 0.635712 |
0531675b4efb814c0c0505cc13c93cd557315404 | 1,310 | py | Python | grr/server/grr_response_server/blob_stores/db_blob_store.py | oueldz4/grr | 8c60d9198cc0875a8ea80b90237eb0a8272082ff | [
"Apache-2.0"
] | null | null | null | grr/server/grr_response_server/blob_stores/db_blob_store.py | oueldz4/grr | 8c60d9198cc0875a8ea80b90237eb0a8272082ff | [
"Apache-2.0"
] | null | null | null | grr/server/grr_response_server/blob_stores/db_blob_store.py | oueldz4/grr | 8c60d9198cc0875a8ea80b90237eb0a8272082ff | [
"Apache-2.0"
] | 1 | 2020-07-09T01:08:48.000Z | 2020-07-09T01:08:48.000Z | #!/usr/bin/env python
"""REL_DB blobstore implementation."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from grr_response_server import blob_store
from grr_response_server import data_store
| 31.190476 | 79 | 0.79084 |
053268be449fba403f273951c902bae23a8253b1 | 333 | py | Python | tests/ut_repytests_loose-testnetmessportreuse.py | SeattleTestbed/repy_v1 | f40a02e2e398b1ec67fede84b41a264ae7356d2c | [
"MIT"
] | 1 | 2021-08-18T05:58:17.000Z | 2021-08-18T05:58:17.000Z | tests/ut_repytests_loose-testnetmessportreuse.py | SeattleTestbed/repy_v1 | f40a02e2e398b1ec67fede84b41a264ae7356d2c | [
"MIT"
] | 3 | 2015-11-17T21:01:03.000Z | 2016-07-14T09:08:04.000Z | tests/ut_repytests_loose-testnetmessportreuse.py | SeattleTestbed/repy_v1 | f40a02e2e398b1ec67fede84b41a264ae7356d2c | [
"MIT"
] | 5 | 2015-07-02T13:29:23.000Z | 2021-09-25T07:48:30.000Z | #pragma out
#pragma repy restrictions.loose
if callfunc == 'initialize':
ip = getmyip()
noopch = recvmess(ip,<messport>,noop)
recvmess(ip,<messport1>,foo)
sleep(.1)
sendmess(ip,<messport1>,'hi',ip,<messport>)
stopcomm(noopch)
| 18.5 | 45 | 0.678679 |
05343aca0c5c82c59e3358b3b9d65dce1ef6b0de | 806 | py | Python | pyzfscmds/check.py | johnramsden/pyzfscmds | b5d430ffd0454bc6b09e256aeea67164714d9809 | [
"BSD-3-Clause"
] | 9 | 2018-07-08T20:01:33.000Z | 2022-03-29T11:31:51.000Z | pyzfscmds/check.py | johnramsden/pyzfscmds | b5d430ffd0454bc6b09e256aeea67164714d9809 | [
"BSD-3-Clause"
] | 1 | 2019-07-10T12:16:53.000Z | 2019-07-10T12:16:53.000Z | pyzfscmds/check.py | johnramsden/pyzfscmds | b5d430ffd0454bc6b09e256aeea67164714d9809 | [
"BSD-3-Clause"
] | 5 | 2018-06-04T02:33:43.000Z | 2020-05-25T22:48:58.000Z | """
Startup checks
"""
import subprocess
import pyzfscmds.system.agnostic as zfssys
def is_root_on_zfs():
"""Check if running root on ZFS"""
system = zfssys.check_valid_system()
if system is None:
raise RuntimeError(f"System is not yet supported by pyzfscmds\n")
root_dataset = None
if z... | 23.705882 | 77 | 0.66005 |
0536d3d2cb26fae2a4bb43f1a3c0258c006ca24c | 2,015 | py | Python | dist.py | dladustn95/Dialogue_generator | 004fa49e3140e6c7ceb14448604c8aa45966f70d | [
"MIT"
] | 4 | 2020-09-03T03:39:53.000Z | 2021-08-25T03:53:41.000Z | dist.py | dladustn95/Dialogue_generator | 004fa49e3140e6c7ceb14448604c8aa45966f70d | [
"MIT"
] | null | null | null | dist.py | dladustn95/Dialogue_generator | 004fa49e3140e6c7ceb14448604c8aa45966f70d | [
"MIT"
] | 1 | 2020-09-04T07:04:50.000Z | 2020-09-04T07:04:50.000Z | import sys
sp="#####"
distinct_1(sys.argv[1])
distinct_2(sys.argv[1])
distinct_3(sys.argv[1]) | 34.152542 | 79 | 0.655583 |
0537e1ab85799850e99a5e3c6bb0f22f481e1ab8 | 5,036 | py | Python | Scripts/plot_PolarVortexStrength_PDFs.py | zmlabe/StratoVari | c5549f54482a2b05e89bded3e3b0b3c9faa686f3 | [
"MIT"
] | 4 | 2019-11-23T19:44:21.000Z | 2020-02-20T16:54:45.000Z | Scripts/plot_PolarVortexStrength_PDFs.py | zmlabe/StratoVari | c5549f54482a2b05e89bded3e3b0b3c9faa686f3 | [
"MIT"
] | null | null | null | Scripts/plot_PolarVortexStrength_PDFs.py | zmlabe/StratoVari | c5549f54482a2b05e89bded3e3b0b3c9faa686f3 | [
"MIT"
] | 2 | 2019-06-21T19:27:55.000Z | 2021-02-12T19:13:22.000Z | """
Calculate PDFs for polar vortex response
Notes
-----
Author : Zachary Labe
Date : 25 June 2019
"""
### Import modules
import numpy as np
import matplotlib.pyplot as plt
import datetime
import read_MonthlyData as MO
import calc_Utilities as UT
import cmocean
import scipy.stats as sts
### Define director... | 34.027027 | 79 | 0.53475 |
053869e3d79166cc0d895c117eef19a63bd977af | 906 | py | Python | test/test_airtunnel/operators/test_sql_helpers.py | joerg-schneider/airflow-bootstrap | bbed0a2d5addd0dd6221b75c06982f47e0d837d4 | [
"MIT"
] | 23 | 2019-09-30T15:22:58.000Z | 2021-04-09T10:53:23.000Z | test/test_airtunnel/operators/test_sql_helpers.py | joerg-schneider/airflow-bootstrap | bbed0a2d5addd0dd6221b75c06982f47e0d837d4 | [
"MIT"
] | 1 | 2019-11-24T18:37:56.000Z | 2019-11-24T18:37:56.000Z | test/test_airtunnel/operators/test_sql_helpers.py | joerg-schneider/airflow-bootstrap | bbed0a2d5addd0dd6221b75c06982f47e0d837d4 | [
"MIT"
] | 4 | 2020-01-14T03:31:34.000Z | 2021-05-07T21:34:22.000Z | import pytest
from airtunnel.operators.sql import sql_helpers
TEST_SCRIPT = "ddl/test_schema/test_table.sql"
| 26.647059 | 74 | 0.728477 |
053914ae8ca6bed144522d26cba1f2a52c6014f5 | 2,582 | py | Python | EE475/Ch6P13.py | PhoeniXuzoo/NU-Projects | a217ad46e6876ceffb3dec1d6e52f775674b2e8b | [
"MIT"
] | null | null | null | EE475/Ch6P13.py | PhoeniXuzoo/NU-Projects | a217ad46e6876ceffb3dec1d6e52f775674b2e8b | [
"MIT"
] | null | null | null | EE475/Ch6P13.py | PhoeniXuzoo/NU-Projects | a217ad46e6876ceffb3dec1d6e52f775674b2e8b | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
## softmax: 0.1 600
## perceptron: 0.05 550
if __name__ == "__main__":
csvname = 'breast_cancer_data.csv'
x, y = readData(csvname)
w = np.ones([x.shape[0] + 1, 1])
x = np.insert(x, 0, values=np.ones([1, x.shape[1]]), axis=0)
xSoftList = [... | 29.011236 | 82 | 0.573199 |
05399638e32621d9f8eab1ecc185a769af934b80 | 416 | py | Python | square.py | Formalhalt/Phyton-Calculators | 25f686e45a8333e9a141568c8f695350bde36bc6 | [
"CC0-1.0"
] | null | null | null | square.py | Formalhalt/Phyton-Calculators | 25f686e45a8333e9a141568c8f695350bde36bc6 | [
"CC0-1.0"
] | null | null | null | square.py | Formalhalt/Phyton-Calculators | 25f686e45a8333e9a141568c8f695350bde36bc6 | [
"CC0-1.0"
] | null | null | null |
height = float(input("Enter height of the square: "))
width = float(input("Enter width of the Square: "))
perimeter = (2 * height) + (2 * width)
area = height * height
print("The perimeter of the square is", perimeter)
print("The area of the square is", area)
close = input("Press X to exit")
#... | 23.111111 | 96 | 0.663462 |
053b161da791d51b0f7c77d904ccb2a6a0472da3 | 6,492 | py | Python | dls7-1[cnn].py | cutz-j/computer_vision | 23408231221bb16539ea1964f000bdbb7f9e7e20 | [
"MIT"
] | null | null | null | dls7-1[cnn].py | cutz-j/computer_vision | 23408231221bb16539ea1964f000bdbb7f9e7e20 | [
"MIT"
] | null | null | null | dls7-1[cnn].py | cutz-j/computer_vision | 23408231221bb16539ea1964f000bdbb7f9e7e20 | [
"MIT"
] | null | null | null | import numpy as np
from common.util import im2col
from collections import OrderedDict
from common.layers import *
from common.gradient import numerical_gradient
## 4 ##
x = np.random.rand(10, 1, 28, 28) # (m, c, h, w)
print(x.shape)
x[0].shape # data 1
x[0, 0] # data channel
x1 = np.random.rand(1, 3, 7, 7)
col1 =... | 31.211538 | 95 | 0.518792 |
053b82076a707b4cf23d2d9a676fce87856d471c | 17,136 | py | Python | tests/test_crawler.py | jacopoabbate/datavault-api-python-client | 70c3113b56db77de3835b4210dd7bffb22b34c9f | [
"MIT"
] | null | null | null | tests/test_crawler.py | jacopoabbate/datavault-api-python-client | 70c3113b56db77de3835b4210dd7bffb22b34c9f | [
"MIT"
] | null | null | null | tests/test_crawler.py | jacopoabbate/datavault-api-python-client | 70c3113b56db77de3835b4210dd7bffb22b34c9f | [
"MIT"
] | null | null | null | import datetime
import pytest
import requests
from datavault_api_client import crawler
from datavault_api_client.data_structures import DiscoveredFileInfo
| 36.69379 | 100 | 0.623424 |
053c288fde8eaacd236f5d1f96f0de4ba7806a4f | 2,976 | py | Python | prototype/couch/couch_concurrent.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 2 | 2015-06-09T16:07:09.000Z | 2015-07-28T10:06:31.000Z | prototype/couch/couch_concurrent.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 3 | 2020-07-22T15:14:55.000Z | 2021-12-13T19:35:06.000Z | prototype/couch/couch_concurrent.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
__author__ = 'Michael Meisinger'
import gevent
import random
from pyon.datastore.datastore import DatastoreManager
from pyon.public import IonObject
import ooi.timer
"""
from prototype.couch.couch_concurrent import runcc
runcc(dict(num_obj=100000, num_read=2000, num_thread=3))
"""
| 30.680412 | 109 | 0.652218 |
053c773f4e711f1e0bdb6a424915109fb1e18820 | 2,226 | py | Python | serve.py | racterub/itac-flask | 5b30e51c9a625483eaf312fb64472622b60b00eb | [
"MIT"
] | null | null | null | serve.py | racterub/itac-flask | 5b30e51c9a625483eaf312fb64472622b60b00eb | [
"MIT"
] | null | null | null | serve.py | racterub/itac-flask | 5b30e51c9a625483eaf312fb64472622b60b00eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : 2020-04-06 23:45:54
# @Author : Racter Liu (racterub) (racterub@gmail.com)
# @Link : https://racterub.me
# @License : MIT
from flask import Flask, render_template, request, url_for, redirect, session, send_from_directory, send_file, make_response
app = F... | 24.195652 | 124 | 0.612309 |
053ff9d6d078fd3f1bdb31f203cc1982c89849c7 | 4,067 | py | Python | api/list_bp.py | kziovas/practise-todolist | 53e6b789b46e1104a076835ac606544ba1ef7b25 | [
"MIT"
] | 2 | 2021-07-27T08:38:35.000Z | 2021-08-03T10:00:58.000Z | api/list_bp.py | kziovas/practise-sanic-rest-api-to-do-list | 53e6b789b46e1104a076835ac606544ba1ef7b25 | [
"MIT"
] | null | null | null | api/list_bp.py | kziovas/practise-sanic-rest-api-to-do-list | 53e6b789b46e1104a076835ac606544ba1ef7b25 | [
"MIT"
] | null | null | null | from sanic.response import json
from sanic import Blueprint
from service import ListService
from injector import inject, singleton
from logging import Logger
from sanic import Sanic
| 37.311927 | 157 | 0.715761 |
0541032df78b9eac36f755de81be4a580d936532 | 5,223 | py | Python | src/AoC_2015/d24_sleigh_balance_subset_sum/sleigh_balance.py | derailed-dash/Advent-of-Code | 12378baf33ef4a59958e84eb60e795b6530c22ba | [
"MIT"
] | 9 | 2021-12-31T20:13:03.000Z | 2022-03-05T07:05:06.000Z | src/AoC_2015/d24_sleigh_balance_subset_sum/sleigh_balance.py | derailed-dash/Advent-of-Code | 12378baf33ef4a59958e84eb60e795b6530c22ba | [
"MIT"
] | 1 | 2022-01-25T08:35:04.000Z | 2022-01-29T00:07:00.000Z | src/AoC_2015/d24_sleigh_balance_subset_sum/sleigh_balance.py | derailed-dash/Advent-of-Code | 12378baf33ef4a59958e84eb60e795b6530c22ba | [
"MIT"
] | null | null | null | """
Author: Darren
Date: 02/05/2021
Solving https://adventofcode.com/2015/day/24
We require three bags of equal weight.
Bag 1 in the passenger compartment, needs to have fewest packages.
Bags 2 and 3 to either side.
Solution:
Use subset sum function to work out which combinations of packages adds up to... | 34.589404 | 103 | 0.681409 |
0541425822ca873cc1104abcaddefbf0b86d3c05 | 8,946 | py | Python | artap/algorithm_bayesopt.py | tamasorosz/artap | e8df160bfc9c378c3fc96b0b86e92d75d89cf26b | [
"MIT"
] | 5 | 2021-06-13T17:04:37.000Z | 2022-03-04T17:16:06.000Z | artap/algorithm_bayesopt.py | tamasorosz/artap | e8df160bfc9c378c3fc96b0b86e92d75d89cf26b | [
"MIT"
] | null | null | null | artap/algorithm_bayesopt.py | tamasorosz/artap | e8df160bfc9c378c3fc96b0b86e92d75d89cf26b | [
"MIT"
] | 8 | 2021-03-11T18:23:47.000Z | 2022-02-22T11:13:23.000Z | from .problem import Problem
from .algorithm import Algorithm
from .config import artap_root
import time
import numpy as np
import os
import sys
sys.path.append(artap_root + os.sep + "lib" + os.sep)
import bayesopt
from multiprocessing import Process, Pipe, Queue, Manager
# from multiprocessing.managers import Base... | 31.611307 | 127 | 0.59099 |
0543197cdee0aacdb12b0d10810f263f61b2c8d7 | 538 | py | Python | Sorting/ShortBubbleSort.py | sonivaibhv/Algo | ea53d61a17687ef08bb2a7dbfd9331fd10f49ea8 | [
"MIT"
] | 1 | 2017-05-06T13:05:35.000Z | 2017-05-06T13:05:35.000Z | Sorting/ShortBubbleSort.py | CuriousLearner/Algorithms | e44a04b3a0797da36a9de18c116a48241ce59d9d | [
"MIT"
] | null | null | null | Sorting/ShortBubbleSort.py | CuriousLearner/Algorithms | e44a04b3a0797da36a9de18c116a48241ce59d9d | [
"MIT"
] | null | null | null | def Short_Bubble_Sort(alist):
'''
Sorting alist using Short Bubble Sort
'''
passnum = len(alist) - 1
exchangesDone = True
while passnum > 0 and exchangesDone:
exchangesDone = False
for i in range(passnum):
if alist[i] > alist[i+1]:
exchangesDone = True... | 25.619048 | 59 | 0.565056 |
0543991c023c828b9777016230758b911a5898f1 | 5,997 | py | Python | src/arclink/libs/python/seiscomp/db/generic/genwrap.py | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/arclink/libs/python/seiscomp/db/generic/genwrap.py | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/arclink/libs/python/seiscomp/db/generic/genwrap.py | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2021-09-15T08:13:27.000Z | 2021-09-15T08:13:27.000Z | # This file was created by a source code generator:
# genxml2wrap.py
# Do not modify. Change the definition and
# run the generator again!
#
# (c) 2010 Mathias Hoffmann, GFZ Potsdam
#
#
import datetime
#
#
# QualityControl::QCLog
# QualityControl::WaveformQuality
# QualityControl::Outage
# Inventory::StationRefe... | 18.395706 | 73 | 0.691346 |
05461bddcd3bd1546efdbcd5e16d6aa27b51efe8 | 7,754 | py | Python | mailchimp_marketing_asyncio/models/problem_detail_document.py | john-parton/mailchimp-asyncio | 3865ca0867bec8f537dc1e3256aa3a160c00f8a2 | [
"Apache-2.0"
] | null | null | null | mailchimp_marketing_asyncio/models/problem_detail_document.py | john-parton/mailchimp-asyncio | 3865ca0867bec8f537dc1e3256aa3a160c00f8a2 | [
"Apache-2.0"
] | null | null | null | mailchimp_marketing_asyncio/models/problem_detail_document.py | john-parton/mailchimp-asyncio | 3865ca0867bec8f537dc1e3256aa3a160c00f8a2 | [
"Apache-2.0"
] | 1 | 2022-03-09T14:52:22.000Z | 2022-03-09T14:52:22.000Z | # coding: utf-8
"""
Mailchimp Marketing API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 3.0.74
Contact: apihelp@mailchimp.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import... | 32.995745 | 181 | 0.607557 |
054f8d75e59fcecffb5d9b04254a41c1dbff6742 | 1,118 | py | Python | loadingstatus.py | NesbiDevelopment/PythonHelper | 6dc7545cd0ebd5bd3daf32860a7dc45d1caf50e3 | [
"MIT"
] | null | null | null | loadingstatus.py | NesbiDevelopment/PythonHelper | 6dc7545cd0ebd5bd3daf32860a7dc45d1caf50e3 | [
"MIT"
] | null | null | null | loadingstatus.py | NesbiDevelopment/PythonHelper | 6dc7545cd0ebd5bd3daf32860a7dc45d1caf50e3 | [
"MIT"
] | null | null | null | import time
import sys
| 31.055556 | 75 | 0.584079 |
0552a237d536bb49e4a74fe8039eabfd37370524 | 1,596 | py | Python | main.py | WillyHHsu/rest | 1adba475579cb2c0f9b8690b7f822c02b483146a | [
"MIT"
] | null | null | null | main.py | WillyHHsu/rest | 1adba475579cb2c0f9b8690b7f822c02b483146a | [
"MIT"
] | null | null | null | main.py | WillyHHsu/rest | 1adba475579cb2c0f9b8690b7f822c02b483146a | [
"MIT"
] | null | null | null | import os
from fastapi import FastAPI
from fastapi_sqlalchemy import DBSessionMiddleware
from fastapi_sqlalchemy import db
from dotenv import load_dotenv
from sqlalchemy import schema
from db import models as db_model
from schemas import models as schema
load_dotenv()
POSTGRES_USER = os.getenv('POSTGRES_USER')
POSTG... | 29.555556 | 107 | 0.759398 |
05546175c9355e358802def95353b9059d638d79 | 866 | py | Python | src/compas_blender/utilities/data.py | KEERTHANAUDAY/compas | 4d1101cf302f95a4472a01a1265cc64eaec6aa4a | [
"MIT"
] | null | null | null | src/compas_blender/utilities/data.py | KEERTHANAUDAY/compas | 4d1101cf302f95a4472a01a1265cc64eaec6aa4a | [
"MIT"
] | null | null | null | src/compas_blender/utilities/data.py | KEERTHANAUDAY/compas | 4d1101cf302f95a4472a01a1265cc64eaec6aa4a | [
"MIT"
] | null | null | null | import bpy
__all__ = [
"delete_all_data",
]
def delete_all_data():
"""Delete all collections, mesh and curve objects, meshes, curves, materials."""
for collection in bpy.data.collections:
bpy.data.collections.remove(collection)
for obj in bpy.data.objects:
if obj.type == 'MESH':
... | 27.0625 | 84 | 0.51963 |
055668b6a61ba32a80522c93f3aa4dbcf035bb7b | 2,335 | py | Python | teams_to_tsv.py | FSU-ACM-OSSG/Contest-Server | f9aabd9742a6aa78cbefc685fd2760a1f83d7721 | [
"MIT"
] | 8 | 2019-01-13T21:57:53.000Z | 2021-11-29T12:32:48.000Z | teams_to_tsv.py | FSU-ACM-OSSG/Contest-Server | f9aabd9742a6aa78cbefc685fd2760a1f83d7721 | [
"MIT"
] | 73 | 2018-02-13T00:58:39.000Z | 2022-02-10T11:59:53.000Z | teams_to_tsv.py | FSU-ACM-OSSG/Contest-Server | f9aabd9742a6aa78cbefc685fd2760a1f83d7721 | [
"MIT"
] | 4 | 2018-02-08T18:56:54.000Z | 2019-02-13T19:01:53.000Z | ##############
# team_to_tsv script
# Creates two tsv files for importing into domjudge
# Team info gets stored inside teams.tsv in the following format
# <team_id(int)> <external_id> <category_id> <team_name>
# Account info gets stored inside acccounts.tsv in the following format
# team <team-name> <use... | 36.484375 | 77 | 0.614561 |
05573cc8d3a341c5de3d72784bf092562a5a2e63 | 1,848 | py | Python | mishris/utils/util.py | virazura/mishris | 60762364347bfa50ffc9948e9d227c569fe68da5 | [
"MIT"
] | null | null | null | mishris/utils/util.py | virazura/mishris | 60762364347bfa50ffc9948e9d227c569fe68da5 | [
"MIT"
] | null | null | null | mishris/utils/util.py | virazura/mishris | 60762364347bfa50ffc9948e9d227c569fe68da5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import frappe
import filetype
"""
NEED IMPORT LOCAL LANG FROM FRAPPE
"""
| 34.222222 | 165 | 0.67803 |
055a29385d9e76d3a424d3a90ed95bbdc4015019 | 4,906 | py | Python | cleverapi/clever_api.py | oncecreated/cleverapi | 39b41860604a909d3e5262c1c795c0741570a653 | [
"MIT"
] | 13 | 2018-06-30T14:16:42.000Z | 2020-03-04T20:23:47.000Z | cleverapi/clever_api.py | oncecreated/cleverapi | 39b41860604a909d3e5262c1c795c0741570a653 | [
"MIT"
] | 11 | 2018-09-09T09:54:27.000Z | 2019-04-15T13:40:19.000Z | cleverapi/clever_api.py | oncecreated/cleverapi | 39b41860604a909d3e5262c1c795c0741570a653 | [
"MIT"
] | 14 | 2018-07-24T17:38:56.000Z | 2020-03-04T20:24:12.000Z | import hashlib
import json
import uuid
import requests
import aiohttp
from .exceptions import ApiResponseError
from .action import Action
| 28.858824 | 91 | 0.584183 |
055ac96948dda92e22c15b66cc5f914681a2cae3 | 5,350 | py | Python | blagging/views.py | androiddrew/blag-fork | 249144c9a017581a6c5e387f5d86f33421d82ae3 | [
"MIT"
] | null | null | null | blagging/views.py | androiddrew/blag-fork | 249144c9a017581a6c5e387f5d86f33421d82ae3 | [
"MIT"
] | 7 | 2017-01-03T15:34:30.000Z | 2017-07-13T15:27:08.000Z | blagging/views.py | androiddrew/blag-fork | 249144c9a017581a6c5e387f5d86f33421d82ae3 | [
"MIT"
] | null | null | null | from datetime import datetime as dt
from flask import render_template, redirect, request, url_for, abort
from flask_login import login_user, logout_user, login_required, current_user, login_url
from . import app, db, login_manager
from .models import Post, Tag, Author, tags as Post_Tag
from .forms import LoginForm, Pos... | 33.647799 | 119 | 0.65271 |
055b1e351a5242b821e047dfcb5c1f7591a3c693 | 509 | py | Python | id.py | txkodo/pyDatapack | f647e0043d09e3d456a8019fb00cb945c0d6b6a7 | [
"MIT"
] | null | null | null | id.py | txkodo/pyDatapack | f647e0043d09e3d456a8019fb00cb945c0d6b6a7 | [
"MIT"
] | null | null | null | id.py | txkodo/pyDatapack | f647e0043d09e3d456a8019fb00cb945c0d6b6a7 | [
"MIT"
] | null | null | null | import string
import secrets
| 36.357143 | 92 | 0.740668 |
055c22d5891f38a9238c8713208320ff8c57d8d5 | 185 | py | Python | bot/states/states.py | amtp1/ubi-4 | bbfa07f0936960058d7f282b1c83be7150494dc1 | [
"BSD-3-Clause"
] | null | null | null | bot/states/states.py | amtp1/ubi-4 | bbfa07f0936960058d7f282b1c83be7150494dc1 | [
"BSD-3-Clause"
] | null | null | null | bot/states/states.py | amtp1/ubi-4 | bbfa07f0936960058d7f282b1c83be7150494dc1 | [
"BSD-3-Clause"
] | null | null | null | from aiogram.dispatcher.filters.state import StatesGroup, State | 26.428571 | 63 | 0.783784 |
055c45d3bc0e2eb761a389c587de2205205755a0 | 255 | py | Python | apps/user/urls.py | dimastbk/x-one_test | aedf4dd4c5299c1f6e6afde2f557bd284e50f6dc | [
"MIT"
] | 1 | 2020-08-10T11:46:17.000Z | 2020-08-10T11:46:17.000Z | apps/user/urls.py | dimastbk/x-one_test | aedf4dd4c5299c1f6e6afde2f557bd284e50f6dc | [
"MIT"
] | null | null | null | apps/user/urls.py | dimastbk/x-one_test | aedf4dd4c5299c1f6e6afde2f557bd284e50f6dc | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from apps.user.views import AuthViewSet, UserViewSet
router = DefaultRouter()
router.register("", AuthViewSet, basename="auth")
router.register("", UserViewSet, basename="user")
urlpatterns = router.urls
| 28.333333 | 52 | 0.796078 |
055c91bef8da3c2b5ab9913ec9ae41927e8fef83 | 1,514 | py | Python | evkit/utils/misc.py | joel99/midlevel-reps | f0b4a4d8ccf09a0488cd18af24723172aff99446 | [
"MIT"
] | 120 | 2019-04-22T04:45:28.000Z | 2022-03-23T01:53:17.000Z | evkit/utils/misc.py | joel99/midlevel-reps | f0b4a4d8ccf09a0488cd18af24723172aff99446 | [
"MIT"
] | 14 | 2019-06-12T08:21:21.000Z | 2021-08-25T15:36:58.000Z | evkit/utils/misc.py | joel99/midlevel-reps | f0b4a4d8ccf09a0488cd18af24723172aff99446 | [
"MIT"
] | 19 | 2019-06-19T07:00:36.000Z | 2022-03-24T07:18:30.000Z | import collections
import torch
import pprint
import string
remove_whitespace = str.maketrans('', '', string.whitespace)
def cfg_to_md(cfg, uuid):
''' Because tensorboard uses markdown'''
return uuid + "\n\n " + pprint.pformat((cfg)).replace("\n", " \n").replace("\n \'", "\n \'") + ""
def compute_... | 22.939394 | 110 | 0.579921 |
055cc455230997c5276c879e8d734a4e3c932b7e | 1,652 | py | Python | g13gui/g13/manager_tests.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | 3 | 2021-10-16T01:28:24.000Z | 2021-12-07T21:49:54.000Z | g13gui/g13/manager_tests.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | 12 | 2021-05-09T16:57:18.000Z | 2021-06-16T19:20:57.000Z | g13gui/g13/manager_tests.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | null | null | null | #!/usr/bin/python
import unittest
import time
import usb.util
from g13gui.observer.observer import ObserverTestCase
from g13gui.model.prefs import Preferences
from g13gui.g13.manager import DeviceManager
from g13gui.g13.manager import LCD_BUFFER_SIZE
if __name__ == '__main__':
unittest.main()
| 24.656716 | 65 | 0.598668 |
055df8a4d5bc728dd507e18c15a01996fcd7eeb9 | 754 | py | Python | mpikat/utils/unix_socket.py | ewanbarr/mpikat | 1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9 | [
"MIT"
] | 2 | 2018-11-12T12:17:27.000Z | 2019-02-08T15:44:14.000Z | mpikat/utils/unix_socket.py | ewanbarr/mpikat | 1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9 | [
"MIT"
] | 3 | 2018-08-03T12:05:20.000Z | 2018-08-03T12:13:53.000Z | mpikat/utils/unix_socket.py | ewanbarr/mpikat | 1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9 | [
"MIT"
] | 4 | 2019-01-21T16:31:34.000Z | 2019-12-03T09:27:15.000Z | import socket
import logging
log = logging.getLogger('mpikat.utils.unix_socket')
| 26.928571 | 78 | 0.635279 |
0560a6e08907adcfebf943f18a20892cd59deb17 | 311 | py | Python | Exercises/python/Cod1/cod1.py | Rick222555000/Princess | 29c4c22351eeb8f2124ffe63632351fa373668e8 | [
"MIT"
] | null | null | null | Exercises/python/Cod1/cod1.py | Rick222555000/Princess | 29c4c22351eeb8f2124ffe63632351fa373668e8 | [
"MIT"
] | null | null | null | Exercises/python/Cod1/cod1.py | Rick222555000/Princess | 29c4c22351eeb8f2124ffe63632351fa373668e8 | [
"MIT"
] | null | null | null | #1- Crie um programa que ler 3 nmeros inteiros A, B, C e exibe a mensagem se o resultado R=(A+B)/C maior que B ou no.
A, B, C = int(input()), int(input()), int(input())
R = (A + B)/C
print(Maior(R, B)) | 25.916667 | 121 | 0.59164 |
0560aa251cb9f57348aa3861ec51b4ed5e27e782 | 1,021 | py | Python | mlearn/static/py/funcs.py | achandir/django-machine-learning-beta | 9604953addee0c1bea90d308b4248a69d332f5a8 | [
"BSD-3-Clause"
] | null | null | null | mlearn/static/py/funcs.py | achandir/django-machine-learning-beta | 9604953addee0c1bea90d308b4248a69d332f5a8 | [
"BSD-3-Clause"
] | null | null | null | mlearn/static/py/funcs.py | achandir/django-machine-learning-beta | 9604953addee0c1bea90d308b4248a69d332f5a8 | [
"BSD-3-Clause"
] | null | null | null | from django.core.files.storage import FileSystemStorage
from django.conf import settings
import os
| 30.029412 | 84 | 0.539667 |
05622f786bb071a97ceb1da54cab05760a5a36c8 | 624 | py | Python | classes.py | thepfanner/CrisisComABM | 919ab45ad522ec82806a6dff8ef8807a88e398d0 | [
"MIT"
] | 1 | 2017-03-31T01:48:07.000Z | 2017-03-31T01:48:07.000Z | classes.py | thepfanner/CrisisComABM | 919ab45ad522ec82806a6dff8ef8807a88e398d0 | [
"MIT"
] | null | null | null | classes.py | thepfanner/CrisisComABM | 919ab45ad522ec82806a6dff8ef8807a88e398d0 | [
"MIT"
] | null | null | null | __author__ = 'sp'
| 19.5 | 48 | 0.517628 |
0564823c9e294186f86aee5daa972c4a2f49f3f0 | 2,400 | py | Python | app.py | saty2146/flask_api_log | 760ac901b310649fe5dc98c6a8bdd0fdb5883a82 | [
"Apache-2.0"
] | null | null | null | app.py | saty2146/flask_api_log | 760ac901b310649fe5dc98c6a8bdd0fdb5883a82 | [
"Apache-2.0"
] | null | null | null | app.py | saty2146/flask_api_log | 760ac901b310649fe5dc98c6a8bdd0fdb5883a82 | [
"Apache-2.0"
] | null | null | null | #!venv/bin/python
import os, re, json
from flask import Flask, request
from flask_restful import Resource, Api
from json import dumps
from flask_jsonpify import jsonify
from flask import render_template
from boxes import *
app = Flask(__name__)
api = Api(app)
api.add_resource(Syslog, '/syslog') # Route_1
if __name... | 30.379747 | 96 | 0.617917 |
056594b9b59d36dfeef52d15b7455e3dcb8e0bf9 | 1,362 | py | Python | federateme.py | elitest/federateme.py | 887d27ddae814d7ed03fd7c993493d927d2492d5 | [
"Unlicense"
] | null | null | null | federateme.py | elitest/federateme.py | 887d27ddae814d7ed03fd7c993493d927d2492d5 | [
"Unlicense"
] | null | null | null | federateme.py | elitest/federateme.py | 887d27ddae814d7ed03fd7c993493d927d2492d5 | [
"Unlicense"
] | 1 | 2021-04-13T20:02:14.000Z | 2021-04-13T20:02:14.000Z | #!/usr/bin/env python3
import boto.utils, json, requests
if detect_ec2():
print(gen_link())
else:
print("This is not an AWS instance. Please run on an AWS EC2 instance.")
| 41.272727 | 175 | 0.642438 |
0565ccb5f3f8b36de113f3a2bcbbc32675fef341 | 58,839 | py | Python | pysnmp-with-texts/FORCE10-MONITORING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/FORCE10-MONITORING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/FORCE10-MONITORING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module FORCE10-MONITORING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FORCE10-MONITORING-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:14:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 131.044543 | 6,796 | 0.791261 |
056746e5dbf852638494e8c736e9cb3208ccd43b | 1,964 | py | Python | recycler.py | LAION-AI/crawlingathome | 43a477777fb403046d67224747cde1dac9f2094a | [
"MIT"
] | 11 | 2021-06-02T03:46:52.000Z | 2021-09-11T22:19:12.000Z | recycler.py | LAION-AI/crawlingathome | 43a477777fb403046d67224747cde1dac9f2094a | [
"MIT"
] | 9 | 2021-06-14T07:46:20.000Z | 2021-08-28T22:50:46.000Z | recycler.py | LAION-AI/crawlingathome | 43a477777fb403046d67224747cde1dac9f2094a | [
"MIT"
] | 7 | 2021-06-01T11:59:36.000Z | 2022-03-20T13:44:18.000Z | import numpy as np
from requests import session
from .core import CPUClient, GPUClient, HybridClient
from .temp import TempCPUWorker
from .errors import *
# Dump a client's attributes into a dictionary so that it can be used remotely.
# Load an existing client using its attributes. It's best to load using an existi... | 35.709091 | 118 | 0.614562 |
0567803d049b2b08966e5134ef97c6b64fdfc130 | 1,921 | py | Python | config.py | uncharted-distil/distil-auto-ml | 244661942cff11617c81830d7f58a9f9b5c9499d | [
"Apache-2.0"
] | 2 | 2019-06-20T23:32:10.000Z | 2021-01-24T22:32:07.000Z | config.py | uncharted-distil/distil-auto-ml | 244661942cff11617c81830d7f58a9f9b5c9499d | [
"Apache-2.0"
] | 157 | 2019-04-09T18:40:42.000Z | 2021-05-06T13:44:33.000Z | config.py | uncharted-distil/distil-auto-ml | 244661942cff11617c81830d7f58a9f9b5c9499d | [
"Apache-2.0"
] | 1 | 2019-07-12T22:17:46.000Z | 2019-07-12T22:17:46.000Z | import os
DB_LOCATION = os.getenv("DB_URI", "test.db")
# Debug flag to output more verbose logging
# - defaults to False
DEBUG = os.getenv("DEBUG", False)
# Configurable output directory for saving machine learning model pickles
# - defaults to ../output
OUTPUT_DIR = os.getenv("OUTPUT_DIR", "output")
# Port to make... | 34.303571 | 85 | 0.753774 |
0567c00611e59a9c33c0140344f11e8c956bd4aa | 278 | py | Python | python/testData/completion/slots.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/slots.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/slots.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z |
a = A()
a.ba<caret>
class B(object):
__slots__ = ['bar']
class C(B):
pass
C().ba<caret>
class D(object):
pass
class E(D):
__slots__ = ['bar']
E().ba<caret>
class F:
__slots__ = ['baz']
F().ba<caret> | 9.586207 | 30 | 0.535971 |
056887fff4c016e1bd810fe62a7c889a8d65cc5e | 1,952 | py | Python | aircraft_framework_win/framework_PhD/framework/Stability/Dynamic/state_vector.py | AlejandroRios/IAANDOCAC-aircraft-framework | 9768e9736af70e20e8ef1cc0ad6501f3a28dbb47 | [
"Apache-2.0"
] | null | null | null | aircraft_framework_win/framework_PhD/framework/Stability/Dynamic/state_vector.py | AlejandroRios/IAANDOCAC-aircraft-framework | 9768e9736af70e20e8ef1cc0ad6501f3a28dbb47 | [
"Apache-2.0"
] | null | null | null | aircraft_framework_win/framework_PhD/framework/Stability/Dynamic/state_vector.py | AlejandroRios/IAANDOCAC-aircraft-framework | 9768e9736af70e20e8ef1cc0ad6501f3a28dbb47 | [
"Apache-2.0"
] | null | null | null | """
Function :
Title :
Written by:
Email : aarc.88@gmail.com
Date :
Last edit :
Language : Python 3.8 or >
Aeronautical Institute of Technology - Airbus Brazil
Description:
-
Inputs:
-
Outputs:
-
TODO's:
-
"""
# =========================================================================... | 22.436782 | 79 | 0.236168 |
056958a4ad13bb68213d3b4a27aff485fb258a2f | 317 | py | Python | 10-Days-of-Statistics/Python/day-0_weighted_mean.py | joaopalmeiro/hackerrank | 271b87645710e5ed56cbfd8c4209f3a7436e3f72 | [
"MIT"
] | null | null | null | 10-Days-of-Statistics/Python/day-0_weighted_mean.py | joaopalmeiro/hackerrank | 271b87645710e5ed56cbfd8c4209f3a7436e3f72 | [
"MIT"
] | null | null | null | 10-Days-of-Statistics/Python/day-0_weighted_mean.py | joaopalmeiro/hackerrank | 271b87645710e5ed56cbfd8c4209f3a7436e3f72 | [
"MIT"
] | null | null | null | N = int(input())
X = list(map(int, input().split()))
W = list(map(int, input().split()))
print(weighted_mean(X, W))
| 16.684211 | 50 | 0.630915 |
0569e6f550e0e8fb6bd11e2714deff2f7f71997f | 2,274 | py | Python | common/settings.py | hehanlin/jobbole | 46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9 | [
"BSD-3-Clause"
] | 2 | 2018-01-18T09:16:16.000Z | 2022-02-12T08:59:23.000Z | common/settings.py | hehanlin/jobbole | 46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9 | [
"BSD-3-Clause"
] | null | null | null | common/settings.py | hehanlin/jobbole | 46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import os
os_env = os.environ
# logging
LoggingConfig = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"simple": {
"format": "%(asctime)s- %(module)s:%(lineno)d [%(levelname)1.1s] %(name)s: %(message)s",
'datefmt': '%Y/%m/%d %... | 30.72973 | 100 | 0.554969 |
056bdc49927b577c2ca6f33c088621f5b1d3d179 | 8,834 | py | Python | interface.py | singularitai/Morphling | e7a3af969123c0d3c0f3c6f1036a97e9be0b289c | [
"MIT",
"Condor-1.1",
"Unlicense"
] | 9 | 2021-03-22T09:18:58.000Z | 2022-03-02T01:42:11.000Z | interface.py | singularitai/Morphling | e7a3af969123c0d3c0f3c6f1036a97e9be0b289c | [
"MIT",
"Condor-1.1",
"Unlicense"
] | null | null | null | interface.py | singularitai/Morphling | e7a3af969123c0d3c0f3c6f1036a97e9be0b289c | [
"MIT",
"Condor-1.1",
"Unlicense"
] | 2 | 2022-03-29T07:59:12.000Z | 2022-03-31T09:10:47.000Z | import os
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Mock.ui'
#
# Created by: PyQt5 UI code generator 5.12.3
#
# WARNING! All changes made in this file will be lost!
import sys
import subprocess
import application_backend as ab
from PyQt5 im... | 43.732673 | 130 | 0.677043 |
056ef751fabceeae1db74a620559c093e5b86dfa | 10,935 | py | Python | load-testing/locustfile.py | MaksimAniskov/aws-global-odoo | 0f225a2f4ede3215264fd3d3912fa7b4e87d4a8f | [
"MIT"
] | null | null | null | load-testing/locustfile.py | MaksimAniskov/aws-global-odoo | 0f225a2f4ede3215264fd3d3912fa7b4e87d4a8f | [
"MIT"
] | 1 | 2022-01-26T08:58:34.000Z | 2022-01-26T08:58:34.000Z | load-testing/locustfile.py | MaksimAniskov/aws-global-odoo | 0f225a2f4ede3215264fd3d3912fa7b4e87d4a8f | [
"MIT"
] | null | null | null | from locust import HttpUser, task, between
import re
import random
import json
import os
if __name__ == "__main__":
from locust.env import Environment
my_env = Environment(user_classes=[OdooUserCrmKanban])
OdooUserCrmKanban(my_env).run()
| 34.714286 | 102 | 0.438317 |
05702fee1b4a5bd092fcebf23643ddbeb574cdf2 | 939 | py | Python | code/model/testSpeedPolar.py | PBarde/IBoatPIE | dd8038f981940b732be979b49e9b14102c3d4cca | [
"MIT"
] | 1 | 2018-02-22T15:38:01.000Z | 2018-02-22T15:38:01.000Z | code/model/testSpeedPolar.py | PBarde/IBoatPIE | dd8038f981940b732be979b49e9b14102c3d4cca | [
"MIT"
] | null | null | null | code/model/testSpeedPolar.py | PBarde/IBoatPIE | dd8038f981940b732be979b49e9b14102c3d4cca | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 13 18:03:27 2017
@author: paul
"""
from SimulatorTLKT import Boat
from SimulatorTLKT import FIT_VELOCITY
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from math import pi
matplotlib.rcParams.update({'font.size': 22})
pOfS=... | 25.378378 | 85 | 0.690096 |
05705dae303e8a7ae7b9765283158fc78c1a5987 | 3,387 | py | Python | src/mcxlib/usage_examples.py | carlashley/meecxprofile | 1fe776b3f23dd9b224d87dd155cc1681cf13fb5e | [
"Apache-2.0"
] | 2 | 2021-09-10T12:52:43.000Z | 2021-09-10T15:38:29.000Z | src/mcxlib/usage_examples.py | carlashley/meecxprofile | 1fe776b3f23dd9b224d87dd155cc1681cf13fb5e | [
"Apache-2.0"
] | null | null | null | src/mcxlib/usage_examples.py | carlashley/meecxprofile | 1fe776b3f23dd9b224d87dd155cc1681cf13fb5e | [
"Apache-2.0"
] | null | null | null | from pprint import pformat
ds_obj_mcx_note = ('The MCX data returned back from \'dscl\' is a string nested in the attribute queried.\n'
'Settings can be filtered by using key filters.\n'
'Multiple values can be filtered for specific domains by comma seperating the values\n'
... | 91.540541 | 138 | 0.437851 |
057149c969c7c699e7d3de460f67852d23e83cd2 | 2,622 | py | Python | monitors/dns-monitor.py | CompeteNZ/Minotaur | 47afb2ed7bd9c21d1adf8cf4fd0d5396c80fd803 | [
"MIT"
] | null | null | null | monitors/dns-monitor.py | CompeteNZ/Minotaur | 47afb2ed7bd9c21d1adf8cf4fd0d5396c80fd803 | [
"MIT"
] | null | null | null | monitors/dns-monitor.py | CompeteNZ/Minotaur | 47afb2ed7bd9c21d1adf8cf4fd0d5396c80fd803 | [
"MIT"
] | null | null | null | # DESCRIPTION
# Run dns check and store the results in the db
# monitor_source = host address
# DEPENDENCIES
# Install python
# Install mysql.connector "python -m pip install mysql-connector-python"
# Install dotenv "python -m pip install python-dotenv"
# Install nslookup "python -m pip install nslookup"
# HOW TO RUN... | 30.137931 | 131 | 0.676583 |
0571570e4ea6cc0ac98e3e348473a3292c2d2151 | 797 | py | Python | program_param.py | duszek123/Example_Project | 72e65ce5f31774c250cf388dbfb0a6d2a6b3ffeb | [
"MIT"
] | null | null | null | program_param.py | duszek123/Example_Project | 72e65ce5f31774c250cf388dbfb0a6d2a6b3ffeb | [
"MIT"
] | null | null | null | program_param.py | duszek123/Example_Project | 72e65ce5f31774c250cf388dbfb0a6d2a6b3ffeb | [
"MIT"
] | null | null | null | import torch
import cv2
#data dir with train i validation picture
data_dir = '/home/pawel/Pulpit/picture_data'
#source video stream
camera_source = '/dev/video2'
#flag, false, not used
save = False
#input picture size (px)
input_size = (224,224)
size_pict = input_size[0]
#part of the data from the database intended f... | 24.151515 | 71 | 0.756587 |
0572b494de8de54123140e45c9c69a2ed0fbad3b | 501 | py | Python | models/fields/__init__.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 67 | 2021-12-02T05:53:44.000Z | 2022-03-31T07:21:26.000Z | models/fields/__init__.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 13 | 2021-12-05T14:23:46.000Z | 2022-03-25T21:07:20.000Z | models/fields/__init__.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 16 | 2022-01-11T11:48:24.000Z | 2022-03-27T19:20:58.000Z | from .classifier import SpatialClassifier
| 31.3125 | 68 | 0.628743 |
0572d30a3c1b204b7741919022f74dedf09c6c6c | 1,693 | py | Python | get_data/__init__.py | BrunoASNascimento/inmet_api | ec663543b1f6a77900166df2e6bf64d1f26f910d | [
"MIT"
] | null | null | null | get_data/__init__.py | BrunoASNascimento/inmet_api | ec663543b1f6a77900166df2e6bf64d1f26f910d | [
"MIT"
] | null | null | null | get_data/__init__.py | BrunoASNascimento/inmet_api | ec663543b1f6a77900166df2e6bf64d1f26f910d | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
import requests
import pandas as pd
cleaner_data(get_data())
| 32.557692 | 151 | 0.559362 |
05757df9e7e0717b064bec504f59f7b4d4c67024 | 7,795 | py | Python | get_both_current_and_active_power.py | wed35/Two-dimensional-Images-of-Current-and-Active-Power-Signals-for-Elevator-Condition-Recognition | d8a01915f46457257bda7c699fe36e7bdf4f907d | [
"MIT"
] | null | null | null | get_both_current_and_active_power.py | wed35/Two-dimensional-Images-of-Current-and-Active-Power-Signals-for-Elevator-Condition-Recognition | d8a01915f46457257bda7c699fe36e7bdf4f907d | [
"MIT"
] | null | null | null | get_both_current_and_active_power.py | wed35/Two-dimensional-Images-of-Current-and-Active-Power-Signals-for-Elevator-Condition-Recognition | d8a01915f46457257bda7c699fe36e7bdf4f907d | [
"MIT"
] | null | null | null | #%%
# import libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from datetime import datetime
import os
import time
%matplotlib inline
#%%
import pymysql
#%%
def colon_time(time_elements): # make time format as hh:mm:ss.ms
'''
PARAMETER => ['hh', 'mm', 'ss', 'ms']
'''
if... | 29.194757 | 134 | 0.630276 |
057648a66341634f2bd91398e33248914e65d08f | 435 | py | Python | src/pynorare/cli_util.py | concepticon/pynorare | 3cf5ea2d1597c5acc84963f781ff49d96b4d7e02 | [
"MIT"
] | null | null | null | src/pynorare/cli_util.py | concepticon/pynorare | 3cf5ea2d1597c5acc84963f781ff49d96b4d7e02 | [
"MIT"
] | 5 | 2020-07-20T11:05:07.000Z | 2022-03-11T15:51:52.000Z | src/pynorare/cli_util.py | concepticon/pynorare | 3cf5ea2d1597c5acc84963f781ff49d96b4d7e02 | [
"MIT"
] | null | null | null | from pyconcepticon import Concepticon
from pynorare.dataset import get_dataset_cls
| 24.166667 | 81 | 0.691954 |
0576551dec71ed65de6452c0a4914168209bd3e8 | 2,987 | py | Python | braille/lang.py | galou/braille-converter | bf3b898c212a5067d61ce7dc6828df227ddd9db5 | [
"MIT"
] | 24 | 2015-04-03T10:24:18.000Z | 2022-01-29T10:50:34.000Z | braille/lang.py | galou/braille-converter | bf3b898c212a5067d61ce7dc6828df227ddd9db5 | [
"MIT"
] | 2 | 2016-03-28T04:10:14.000Z | 2017-02-22T23:25:12.000Z | braille/lang.py | galou/braille-converter | bf3b898c212a5067d61ce7dc6828df227ddd9db5 | [
"MIT"
] | 10 | 2015-05-06T06:26:21.000Z | 2019-11-13T23:11:11.000Z | # Copyright 2012 Jonathan Paugh
# See COPYING for license details
'''
Functions that deal with lang files or rulesets
'''
import ds
import comp as cpl
from .options import opt
from .util import fwarn, do_re, gettype
import os
langdir = os.path.join(os.path.dirname(__file__), 'lang')
if not os.path.isdir(langdir):
... | 23.706349 | 69 | 0.657181 |
057756ea7512bea24b4425c570ad661d5b1d078c | 118 | py | Python | Codeforces/B_Simple_Game.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/B_Simple_Game.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/B_Simple_Game.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | n,m=map(int,input().split())
mid=n//2
if n==1 and m==1:
print("1")
elif mid<m:
print(m-1)
else:
print(m+1) | 14.75 | 28 | 0.542373 |
057a549b59e9c893c4abd50247ba001cdab7fac2 | 966 | py | Python | toughradius/tests/test_base.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | 1 | 2019-05-12T15:06:58.000Z | 2019-05-12T15:06:58.000Z | toughradius/tests/test_base.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | null | null | null | toughradius/tests/test_base.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding:utf-8
from toughlib import config as iconfig
import os
import requests | 27.6 | 95 | 0.575569 |
057b75bb649e28b716661271413ac2187e4d17f1 | 48 | py | Python | game/data/components/__init__.py | UnidayStudio/Easy-2D-Game-Engine | 1a8501cba538d7542b0e24bf64eead388085480f | [
"MIT"
] | 8 | 2019-12-15T22:32:30.000Z | 2021-06-14T07:38:51.000Z | game/data/components/__init__.py | UnidayStudio/Easy-2D-Game-Engine | 1a8501cba538d7542b0e24bf64eead388085480f | [
"MIT"
] | null | null | null | game/data/components/__init__.py | UnidayStudio/Easy-2D-Game-Engine | 1a8501cba538d7542b0e24bf64eead388085480f | [
"MIT"
] | 2 | 2020-09-10T17:34:23.000Z | 2021-03-11T09:26:26.000Z | from game.data.components.TestComponent import * | 48 | 48 | 0.854167 |
057bdb050500b53da7e385ff2282c3ebb232fe64 | 121 | py | Python | hcaptcha/__init__.py | yunusbyrak/py-hcaptcha | f429bfaba7619c2ac255ae101423d72c2866aa09 | [
"MIT"
] | 1 | 2022-01-09T23:49:03.000Z | 2022-01-09T23:49:03.000Z | hcaptcha/__init__.py | bryonpokemon/py-hcaptcha | 92f723c8f5180d921731d7d04deb637099514a2e | [
"MIT"
] | null | null | null | hcaptcha/__init__.py | bryonpokemon/py-hcaptcha | 92f723c8f5180d921731d7d04deb637099514a2e | [
"MIT"
] | 1 | 2022-01-09T23:49:03.000Z | 2022-01-09T23:49:03.000Z | from .challenges import Challenge
from .solvers import Solver
from .agents import random_agent
from .exceptions import *
| 24.2 | 33 | 0.826446 |
057c321a1c38497a94f1e9f85d9de7c4b624cddb | 10,869 | py | Python | mscode/xp/general_comparison.py | cohenjer/mscode | e761c4af0227c386bdc7d22a55a2218486faf708 | [
"MIT"
] | null | null | null | mscode/xp/general_comparison.py | cohenjer/mscode | e761c4af0227c386bdc7d22a55a2218486faf708 | [
"MIT"
] | null | null | null | mscode/xp/general_comparison.py | cohenjer/mscode | e761c4af0227c386bdc7d22a55a2218486faf708 | [
"MIT"
] | null | null | null | # recovery (and error) vs noise for all algorithms
# recovery (and error) vs condB for all algorithms
# recovery vs (k,d) for all algorithms (heatmap)
# todo: also condD?
# Questions:
# - test two distributions for X: Gaussian, and decreasing
# - to choose lambda(s), we fix according to average best one from a set o... | 44.004049 | 261 | 0.631153 |
057c9190ccad439b376e3bce3f11d837eb5a4576 | 42 | py | Python | tests/test_modules/simple_test_package/aa.py | ajylee/call_map | 21e7684b0814eae6f16cd4bc75597dc4e9239ec0 | [
"BSD-2-Clause"
] | 20 | 2017-12-24T00:19:15.000Z | 2021-11-15T07:42:25.000Z | tests/test_modules/simple_test_package/aa.py | ajylee/call_map | 21e7684b0814eae6f16cd4bc75597dc4e9239ec0 | [
"BSD-2-Clause"
] | 1 | 2017-10-22T21:03:41.000Z | 2017-12-24T04:26:22.000Z | tests/test_modules/simple_test_package/aa.py | ajylee/call_map | 21e7684b0814eae6f16cd4bc75597dc4e9239ec0 | [
"BSD-2-Clause"
] | 2 | 2017-11-04T10:06:59.000Z | 2019-08-01T22:24:49.000Z | from . import bb
| 8.4 | 16 | 0.547619 |
057cd72af1308e0a81b1f8fd12ba9d1678f47b2d | 1,262 | py | Python | tests/fixtures.py | GustavoKatel/pushbullet-cli | e5102772752a97db539594b0d50b5effb36a22e2 | [
"MIT"
] | 176 | 2017-01-30T16:21:48.000Z | 2022-02-10T05:32:57.000Z | tests/fixtures.py | GustavoKatel/pushbullet-cli | e5102772752a97db539594b0d50b5effb36a22e2 | [
"MIT"
] | 49 | 2017-01-21T20:27:03.000Z | 2022-01-16T02:57:51.000Z | tests/fixtures.py | GustavoKatel/pushbullet-cli | e5102772752a97db539594b0d50b5effb36a22e2 | [
"MIT"
] | 21 | 2017-01-26T06:08:54.000Z | 2022-01-04T19:53:25.000Z | import click
import pytest
from click.testing import CliRunner
def wrap_runner_func(runner, func):
return invoke
| 21.033333 | 61 | 0.723455 |
057dcb0e3d38cc7460f6b046f1c4949c4d391cb9 | 2,478 | py | Python | sktime/transformations/hierarchical/tests/test_aggregate.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T02:45:39.000Z | 2021-12-22T02:45:39.000Z | sktime/transformations/hierarchical/tests/test_aggregate.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | sktime/transformations/hierarchical/tests/test_aggregate.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
"""Tests for hierarchical aggregator."""
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
__author__ = ["ciaran-g"]
import pytest
from sktime.transformations.hierarchical.aggregate import Aggregator
from sktime.utils._testing.hierarchical impor... | 33.486486 | 80 | 0.717514 |
057e82bc7eee8bfd854f64e90c47dfe5089a763d | 563 | py | Python | doni/tests/unit/api/test_availability_window.py | ChameleonCloud/doni | e280a0fddf4ee7d2abb69ceed49a9728e88cf99b | [
"Apache-2.0"
] | null | null | null | doni/tests/unit/api/test_availability_window.py | ChameleonCloud/doni | e280a0fddf4ee7d2abb69ceed49a9728e88cf99b | [
"Apache-2.0"
] | 49 | 2021-03-16T14:58:18.000Z | 2022-03-14T22:06:36.000Z | doni/tests/unit/api/test_availability_window.py | ChameleonCloud/doni | e280a0fddf4ee7d2abb69ceed49a9728e88cf99b | [
"Apache-2.0"
] | null | null | null | from flask.testing import FlaskClient
from doni.tests.unit import utils
| 29.631579 | 82 | 0.708703 |
057ec8e5e224d55258d512334e2a91039899ab2c | 747 | py | Python | src/genui/generators/serializers.py | Tontolda/genui | c5b7da7c5a99fc16d34878e2170145ac7c8e31c4 | [
"0BSD"
] | 15 | 2021-05-31T13:39:17.000Z | 2022-03-30T12:04:14.000Z | src/genui/generators/serializers.py | martin-sicho/genui | ea7f1272030a13e8e253a7a9b6479ac6a78552d3 | [
"MIT"
] | 3 | 2021-04-08T22:02:22.000Z | 2022-03-16T09:10:20.000Z | src/genui/generators/serializers.py | Tontolda/genui | c5b7da7c5a99fc16d34878e2170145ac7c8e31c4 | [
"0BSD"
] | 5 | 2021-03-04T11:00:54.000Z | 2021-12-18T22:59:22.000Z | """
serializers
Created by: Martin Sicho
On: 27-01-20, 17:00
"""
from rest_framework import serializers
from genui.utils.serializers import GenericModelSerializerMixIn
from genui.compounds.serializers import MolSetSerializer
from genui.projects.serializers import ProjectSerializer
from . import models
| 29.88 | 96 | 0.781794 |
057f8e845bc31c86789aa18cb713245d93a393bc | 5,898 | py | Python | cccbr_methods/models.py | lelandpaul/cccbr_methods | 8fce303d7d7fd178f1b371389a4cc318852e392a | [
"MIT"
] | null | null | null | cccbr_methods/models.py | lelandpaul/cccbr_methods | 8fce303d7d7fd178f1b371389a4cc318852e392a | [
"MIT"
] | 1 | 2021-12-13T20:44:46.000Z | 2021-12-13T20:44:46.000Z | cccbr_methods/models.py | lelandpaul/cccbr_methods | 8fce303d7d7fd178f1b371389a4cc318852e392a | [
"MIT"
] | null | null | null | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
from datetime import datetime, timedelta
from sqlalchemy import Table, Column, Integer, String, Date, ForeignKey, Boolean
from sqlalchemy.orm import relationship, backref
from sqlalchemy.orm import sessionmaker
from re import s... | 45.369231 | 106 | 0.590709 |
057fec44c986714a8f02d47b39f9f891463a6252 | 848 | py | Python | peuler_012_better.py | bayramcicek/mini-programs | 3f876e3274b7beeb5e7413ac9c5275813d9f0d2d | [
"Unlicense"
] | null | null | null | peuler_012_better.py | bayramcicek/mini-programs | 3f876e3274b7beeb5e7413ac9c5275813d9f0d2d | [
"Unlicense"
] | null | null | null | peuler_012_better.py | bayramcicek/mini-programs | 3f876e3274b7beeb5e7413ac9c5275813d9f0d2d | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
import math
test = Solution
triangle_arr = [0]
temp, box, curr_num = 0, 0, 0
for i in range(1, 1001):
while temp <= i:
box += 1
curr_num = (box * (box + 1)) / 2
temp = test.number_of_factor(curr_num)
triangle_arr.append(curr_num)
print(curr_num)
# number_test ... | 20.190476 | 69 | 0.5625 |
05803580ad5cf536a86b26fbe2b79573b774b99b | 9,253 | py | Python | swyft/plot/plot.py | undark-lab/swyft | 50aa524e2f3a2b3d1354543178ff72bc7f055a35 | [
"MIT"
] | 104 | 2020-11-26T09:46:03.000Z | 2022-03-18T06:22:03.000Z | swyft/plot/plot.py | cweniger/swyft | 2c0ed514622a37e8ec4e406b99a8327ecafb7ab4 | [
"MIT"
] | 83 | 2021-03-02T15:54:26.000Z | 2022-03-10T08:09:05.000Z | swyft/plot/plot.py | undark-lab/swyft | 50aa524e2f3a2b3d1354543178ff72bc7f055a35 | [
"MIT"
] | 10 | 2021-02-04T14:27:36.000Z | 2022-03-31T17:39:34.000Z | import numpy as np
import pylab as plt
from scipy.integrate import simps
def plot_1d(
samples,
pois,
truth=None,
bins=100,
figsize=(15, 10),
color="k",
labels=None,
label_args={},
ncol=None,
subplots_kwargs={},
fig=None,
contours=True,
) -> None:
"""Make beautifu... | 29.848387 | 88 | 0.514428 |
05819bbe1c0902e6600dadc33453e92046d7a1ff | 3,038 | py | Python | control-gastos/python/main.py | manuelduarte077/Ejercicios-con-Python-NodeJS | d7b26fdeeb1640272847274b99b2f607145d58a4 | [
"MIT"
] | 1 | 2021-07-13T18:43:59.000Z | 2021-07-13T18:43:59.000Z | control-gastos/python/main.py | manuelduarte077/Ejercicios-con-Python-NodeJS | d7b26fdeeb1640272847274b99b2f607145d58a4 | [
"MIT"
] | null | null | null | control-gastos/python/main.py | manuelduarte077/Ejercicios-con-Python-NodeJS | d7b26fdeeb1640272847274b99b2f607145d58a4 | [
"MIT"
] | null | null | null | import os
from tabulate import tabulate
import requests
iniciar()
| 31 | 79 | 0.600066 |
05826df3789ad47bc005b4bcd34765514c7e2fd2 | 409 | py | Python | examples/idioms/programs/016.1530-depth-first-traversing-of-a-binary-tree.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 31 | 2020-05-02T13:34:26.000Z | 2021-06-06T17:25:52.000Z | examples/idioms/programs/016.1530-depth-first-traversing-of-a-binary-tree.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 108 | 2019-11-18T19:41:52.000Z | 2022-03-18T13:58:17.000Z | examples/idioms/programs/016.1530-depth-first-traversing-of-a-binary-tree.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 4 | 2020-05-19T08:57:44.000Z | 2020-09-21T08:53:46.000Z | """Depth-first traversing of a binary tree.
Call a function _f on every node of binary tree _bt, in depth-first infix order
Source: programming-idioms.org
"""
# Implementation author: TinyFawks
# Created on 2016-02-18T08:50:27.130406Z
# Last modified on 2016-02-18T09:16:52.625429Z
# Version 2
# Recursive DFS.
| 18.590909 | 79 | 0.694377 |
0582a1028ca60869856e20d167bdffc0aa95e128 | 412 | py | Python | pal95_doc/docs/__init__.py | MacHu-GWU/pal95_doc-project | 753b865435f316e985320247489e68f465741827 | [
"MIT"
] | 13 | 2019-10-01T02:51:27.000Z | 2022-02-28T17:38:58.000Z | pal95_doc/docs/__init__.py | MacHu-GWU/pal95_doc-project | 753b865435f316e985320247489e68f465741827 | [
"MIT"
] | 2 | 2020-11-09T09:17:21.000Z | 2021-04-27T21:20:59.000Z | pal95_doc/docs/__init__.py | MacHu-GWU/pal95_doc-project | 753b865435f316e985320247489e68f465741827 | [
"MIT"
] | 1 | 2020-02-28T12:05:22.000Z | 2020-02-28T12:05:22.000Z | # -*- coding: utf-8 -*-
from .equipment import lt_equipment
from .spell import lt_spell_lxy, lt_spell_zle, lt_spell_lyr, lt_spell_an
from .monster import lt_monster
from .zone import lt_zone
doc_data = dict(
lt_equipment=lt_equipment,
lt_spell_lxy=lt_spell_lxy,
lt_spell_zle=lt_spell_zle,
lt_spell_lyr=... | 25.75 | 72 | 0.764563 |
0582c3422fbd8d71835125e19cb23d6667d70ef1 | 3,157 | py | Python | nexrad/nexrad_tutorial.py | uva-hydroinformatics-lab/precipitation_processing | 54ef1673900b6bb2ee38daec3aac33748a8402cd | [
"MIT"
] | 1 | 2019-01-08T03:57:49.000Z | 2019-01-08T03:57:49.000Z | nexrad/nexrad_tutorial.py | uva-hydroinformatics/precipitation_processing | 54ef1673900b6bb2ee38daec3aac33748a8402cd | [
"MIT"
] | null | null | null | nexrad/nexrad_tutorial.py | uva-hydroinformatics/precipitation_processing | 54ef1673900b6bb2ee38daec3aac33748a8402cd | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy.ma as ma
import numpy as np
import pyart.graph
import tempfile
import pyart.io
import boto
s3conn = boto.connect_s3("AKIAISFFH4JXWC2HYFSA","9Az+XWYP9cbL3Sh641z/tbMuC1CSpjPjQTFkHj8D")
bucket = s3conn.get_bucket('noaa-nexrad-level2')
s3key = bucket.get_key('2015/05/... | 36.287356 | 113 | 0.667089 |
05830297f5e87cadfedcaa83499c7c9b2affb118 | 3,746 | py | Python | ServeRest-APITesting-Python/Tests/test_cart.py | barbosamp/automacao-api-rest-jornada-learning | 9ceb57bc6f4d845c35a149d760775c10c3a38614 | [
"MIT"
] | 2 | 2020-11-20T18:40:32.000Z | 2021-04-20T23:13:13.000Z | ServeRest-APITesting-Python/Tests/test_cart.py | barbosamp/automacao-api-rest-jornada-learning | 9ceb57bc6f4d845c35a149d760775c10c3a38614 | [
"MIT"
] | 1 | 2020-10-22T16:16:40.000Z | 2020-10-22T16:16:40.000Z | ServeRest-APITesting-Python/Tests/test_cart.py | kpedron/automacao-api-rest-jornada-learning | 50ceaf9f43b03383cc65e92460b6b9a398a88e02 | [
"MIT"
] | 2 | 2020-10-16T02:37:20.000Z | 2020-10-31T13:54:46.000Z | import unittest
import requests
import json
import pytest
BASE_URL = "https://api.serverest.dev"
| 32.017094 | 108 | 0.591564 |
05836efbaef8a6e021845f469c0a620d95e4b977 | 372 | py | Python | MotorTorpedoQuotePT109/QuotePT109/migrations/0002_page_likes.py | alex-lake29/MotorTorpedoQuotePT-109 | 012d45e8a329022492acad86e6693abf0ba5b7d2 | [
"MIT"
] | null | null | null | MotorTorpedoQuotePT109/QuotePT109/migrations/0002_page_likes.py | alex-lake29/MotorTorpedoQuotePT-109 | 012d45e8a329022492acad86e6693abf0ba5b7d2 | [
"MIT"
] | null | null | null | MotorTorpedoQuotePT109/QuotePT109/migrations/0002_page_likes.py | alex-lake29/MotorTorpedoQuotePT-109 | 012d45e8a329022492acad86e6693abf0ba5b7d2 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2022-03-21 19:27
from django.db import migrations, models
| 19.578947 | 49 | 0.583333 |
0585d3beb2756c9c282cc3b3a1b2f3b72dff380a | 474 | py | Python | message_sender/migrations/0003_auto_20161124_1357.py | praekeltfoundation/seed-message-sender | d90ef4dc9fa248df97ca97f07569c6c70afcd1bd | [
"BSD-3-Clause"
] | 1 | 2017-01-03T08:53:18.000Z | 2017-01-03T08:53:18.000Z | message_sender/migrations/0003_auto_20161124_1357.py | praekelt/seed-message-sender | d90ef4dc9fa248df97ca97f07569c6c70afcd1bd | [
"BSD-3-Clause"
] | 45 | 2016-03-16T09:32:27.000Z | 2018-06-28T10:05:19.000Z | message_sender/migrations/0003_auto_20161124_1357.py | praekeltfoundation/seed-message-sender | d90ef4dc9fa248df97ca97f07569c6c70afcd1bd | [
"BSD-3-Clause"
] | 1 | 2016-09-28T09:32:05.000Z | 2016-09-28T09:32:05.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-11-24 13:57
from __future__ import unicode_literals
from django.db import migrations, models
| 24.947368 | 74 | 0.656118 |
058753427b8d12d1061f42dc505d9be81b5a17ea | 15,639 | py | Python | src/02_ppo.py | grzegorzwojdyga/trl | 1921e71a7465a43dcc135d97821aa8b03bfebf8c | [
"Apache-2.0"
] | null | null | null | src/02_ppo.py | grzegorzwojdyga/trl | 1921e71a7465a43dcc135d97821aa8b03bfebf8c | [
"Apache-2.0"
] | null | null | null | src/02_ppo.py | grzegorzwojdyga/trl | 1921e71a7465a43dcc135d97821aa8b03bfebf8c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""02-ppo.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1GXTVkhpJyQQsUWn6tGQAWPmstw9adAzj
# PPO for transformer models
> A Pytorch implementation of Proximal Policy Optimization for transfomer models.
This follows the l... | 47.390909 | 564 | 0.632585 |
0587d07321592ddb102cc4ed98640454fd0d67f7 | 4,589 | py | Python | RockPaperScissors.py | andreimaftei28/projects-on-JetBrainAcademy | 8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1 | [
"MIT"
] | null | null | null | RockPaperScissors.py | andreimaftei28/projects-on-JetBrainAcademy | 8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1 | [
"MIT"
] | null | null | null | RockPaperScissors.py | andreimaftei28/projects-on-JetBrainAcademy | 8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1 | [
"MIT"
] | 3 | 2020-12-19T13:48:06.000Z | 2021-08-12T18:36:33.000Z | """Rock Paper Scisssors game using OOP"""
import random
from tempfile import mkstemp
from shutil import move, copymode
from os import fdopen, remove
#If rating.txt does not exist, it get's created here
fill = open("rating.txt", "a", encoding="utf-8")
fill.close()
#creating instance of the RockPa... | 33.014388 | 123 | 0.504249 |
0588017972ca3ca8aebe2412eda69531f658e740 | 807 | py | Python | jarvis/accounts/tests/factories.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2019-01-03T06:10:04.000Z | 2019-01-03T06:10:04.000Z | jarvis/accounts/tests/factories.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2021-03-31T19:11:52.000Z | 2021-03-31T19:11:52.000Z | jarvis/accounts/tests/factories.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | null | null | null | from faker import Faker
from ..models import Client, UserProfile
from django.contrib.auth import get_user_model
from factory import django, SubFactory, fuzzy, Sequence, LazyAttribute
fake = Faker()
User = get_user_model()
| 21.810811 | 70 | 0.700124 |
0588430e94f2e77e31265668a8e628ff493b0db0 | 24 | py | Python | tests/components/devcon/__init__.py | pcaston/Open-Peer-Power | 81805d455c548e0f86b0f7fedc793b588b2afdfd | [
"Apache-2.0"
] | null | null | null | tests/components/devcon/__init__.py | pcaston/Open-Peer-Power | 81805d455c548e0f86b0f7fedc793b588b2afdfd | [
"Apache-2.0"
] | null | null | null | tests/components/devcon/__init__.py | pcaston/Open-Peer-Power | 81805d455c548e0f86b0f7fedc793b588b2afdfd | [
"Apache-2.0"
] | 1 | 2019-04-24T14:10:08.000Z | 2019-04-24T14:10:08.000Z | """Tests for Devcon."""
| 12 | 23 | 0.583333 |
05884cb8cc1e8c53f7f9b4339d31feb82c92a4b6 | 98 | py | Python | Code coach problems/Easy/Python/Isogram_Detector.py | Djivs/sololearn-code-solutions | 7727dd97f79863a88841548770481f6f2abdc7bf | [
"MIT"
] | 1 | 2020-07-27T07:32:57.000Z | 2020-07-27T07:32:57.000Z | Code coach problems/Easy/Python/Isogram_Detector.py | Djivs/sololearn-code-solutions | 7727dd97f79863a88841548770481f6f2abdc7bf | [
"MIT"
] | null | null | null | Code coach problems/Easy/Python/Isogram_Detector.py | Djivs/sololearn-code-solutions | 7727dd97f79863a88841548770481f6f2abdc7bf | [
"MIT"
] | 1 | 2020-11-07T12:45:21.000Z | 2020-11-07T12:45:21.000Z | a = input()
i = 0
while i != len(a):
if a[i] in a[i+1:]:
break
print(str(i == len(a)).lower())
| 14 | 31 | 0.510204 |
0589b9d3ea2a64dcded6b8ab04bba1a44e732a41 | 2,813 | py | Python | src/cbc_binary_toolkit/schemas.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 8 | 2020-05-12T18:08:52.000Z | 2021-12-27T06:11:00.000Z | src/cbc_binary_toolkit/schemas.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 4 | 2020-05-13T16:07:49.000Z | 2020-06-30T18:47:14.000Z | src/cbc_binary_toolkit/schemas.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 3 | 2020-05-16T19:57:57.000Z | 2020-11-01T08:43:31.000Z | # -*- coding: utf-8 -*-
# *******************************************************
# Copyright (c) VMware, Inc. 2020-2021. All Rights Reserved.
# SPDX-License-Identifier: MIT
# *******************************************************
# *
# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
# * WARRANTIES OR C... | 31.606742 | 93 | 0.542126 |
058a7c137ede0bf5c3a55a3ce41c3dfb2936df30 | 2,079 | py | Python | src/views/list.py | AllForJan/prizma-backend | fe866e74fa01e900cc7eab624bb5716a4bae056d | [
"MIT"
] | 2 | 2018-04-08T22:18:11.000Z | 2018-04-26T08:12:46.000Z | src/views/list.py | AllForJan/prizma-backend | fe866e74fa01e900cc7eab624bb5716a4bae056d | [
"MIT"
] | null | null | null | src/views/list.py | AllForJan/prizma-backend | fe866e74fa01e900cc7eab624bb5716a4bae056d | [
"MIT"
] | 2 | 2018-04-08T22:18:13.000Z | 2018-04-08T22:18:18.000Z | from elasticsearch import Elasticsearch
from flask import request, jsonify
from flask_restful import Resource
from db.manager import get_conn
import settings
conn = get_conn()
| 25.353659 | 89 | 0.457431 |
058ba31e5a3c9cecbd73c880b21c4ea42a75e1cf | 3,056 | py | Python | tests/test_cli.py | SlawekNowy/vpk | 3c9e175f48d8d56b5995387bcaa2c16ec62f9688 | [
"MIT"
] | 116 | 2015-08-29T23:24:28.000Z | 2022-03-04T19:35:52.000Z | tests/test_cli.py | SlawekNowy/vpk | 3c9e175f48d8d56b5995387bcaa2c16ec62f9688 | [
"MIT"
] | 27 | 2015-07-30T16:44:17.000Z | 2021-12-25T19:00:44.000Z | tests/test_cli.py | SlawekNowy/vpk | 3c9e175f48d8d56b5995387bcaa2c16ec62f9688 | [
"MIT"
] | 21 | 2015-08-03T23:57:25.000Z | 2021-12-21T10:29:59.000Z | import sys
import unittest
from contextlib import contextmanager
try:
from io import StringIO
except ImportError:
from StringIO import StringIO
from vpk import cli
| 35.534884 | 105 | 0.634162 |
058c253ae43e29116887b045dfd233f62ef4ccf0 | 218 | py | Python | cpab/cpaNd/model/__init__.py | freifeld/cpabDiffeo | 22df6cdbd7111b9ae3e7f1c0e31ff85e92d281a6 | [
"MIT"
] | 17 | 2016-03-16T21:35:36.000Z | 2021-11-11T04:16:21.000Z | cpab/cpaNd/model/__init__.py | freifeld/cpabDiffeo | 22df6cdbd7111b9ae3e7f1c0e31ff85e92d281a6 | [
"MIT"
] | null | null | null | cpab/cpaNd/model/__init__.py | freifeld/cpabDiffeo | 22df6cdbd7111b9ae3e7f1c0e31ff85e92d281a6 | [
"MIT"
] | 4 | 2016-08-12T23:02:09.000Z | 2019-03-14T18:20:36.000Z | from _LogLikelihood import LogLikelihood
from _LogPrior import LogPrior
#from _ScaleDependentLogLikelihoodGaussian import ScaleDependentLogLikelihoodGaussian
from _ScaleDependentLogPrior import ScaleDependentLogPrior
| 36.333333 | 85 | 0.917431 |
058c66b876771cc78eea5a8cc9478dd196dd972b | 1,768 | py | Python | authentic/authentic.settings.py | GuillaumeGautierLA/publik | 5ef6c19e9b91bf066717b4bc9df2540f4c2e1bc2 | [
"MIT"
] | null | null | null | authentic/authentic.settings.py | GuillaumeGautierLA/publik | 5ef6c19e9b91bf066717b4bc9df2540f4c2e1bc2 | [
"MIT"
] | 13 | 2019-12-21T09:48:42.000Z | 2020-07-01T19:12:28.000Z | authentic/authentic.settings.py | GuillaumeGautierLA/publik | 5ef6c19e9b91bf066717b4bc9df2540f4c2e1bc2 | [
"MIT"
] | 4 | 2020-01-06T16:00:00.000Z | 2021-01-08T14:46:29.000Z | # To pass env vars to Python scripts run by Publik in services which remove custom env vars:
# https://unix.stackexchange.com/questions/44370/how-to-make-unix-service-see-environment-variables
# So we hardcode the values in the file below when the container starts
import sys
sys.path.insert(0, "/home")
from pyenv impor... | 26.38806 | 99 | 0.750566 |
058f090a9e7707433a3105b87e3e591439fed2ac | 8,377 | py | Python | code/train/train_model.py | 96jhwei/Genetic-U-Net | 25116f01afcf8ed4386cd0fc258da15e1c982cb5 | [
"MIT"
] | 14 | 2021-09-09T11:22:17.000Z | 2022-03-14T10:06:36.000Z | code/train/train_model.py | 96jhwei/Genetic-U-Net | 25116f01afcf8ed4386cd0fc258da15e1c982cb5 | [
"MIT"
] | 1 | 2021-11-24T10:30:36.000Z | 2021-11-24T10:30:36.000Z | code/train/train_model.py | 96jhwei/Genetic-U-Net | 25116f01afcf8ed4386cd0fc258da15e1c982cb5 | [
"MIT"
] | 5 | 2021-11-02T09:29:49.000Z | 2022-03-25T09:44:25.000Z | import numpy
from torch.utils.data import DataLoader
from tqdm import tqdm
from loss.FocalLoss import FocalLossForSigmoid
import torch
from metrics.calculate_metrics import calculate_metrics
import shutil
from metrics.average_meter import AverageMeter
import torch.multiprocessing
from torch.nn.utils.clip_gra... | 45.037634 | 133 | 0.493613 |
059016200f557d7398f34c3a96008e7fee9686c3 | 961 | py | Python | dataset/check_for_duplicates.py | mathildor/TF-SegNet | dff209c8174b5e8fa77b4c2644298f6903a09445 | [
"MIT"
] | 98 | 2017-11-06T15:55:22.000Z | 2022-03-22T11:29:47.000Z | dataset/check_for_duplicates.py | yingz9/TF-SegNet | dff209c8174b5e8fa77b4c2644298f6903a09445 | [
"MIT"
] | 8 | 2017-11-15T06:05:41.000Z | 2019-06-19T06:53:03.000Z | dataset/check_for_duplicates.py | yingz9/TF-SegNet | dff209c8174b5e8fa77b4c2644298f6903a09445 | [
"MIT"
] | 34 | 2017-11-06T03:05:54.000Z | 2022-01-25T16:00:09.000Z |
import os
from PIL import Image
import numpy
from PIL import ImageChops
""" TESTED:
No duplicates in:
- within validation images first part (stopped because of training - took to much time)
"""
image_path="../../IR_images/combined_dataset/val_images/images"
# image_path="../../IR_images/combined_data... | 26.694444 | 95 | 0.648283 |
059038232d1c85e48c2eed487377d93d1ad944f4 | 1,983 | py | Python | _posts/import.py | suepeng/suepeng.github.io | 844e0063e0604a77886aad5eaea588c4df2792a9 | [
"MIT"
] | null | null | null | _posts/import.py | suepeng/suepeng.github.io | 844e0063e0604a77886aad5eaea588c4df2792a9 | [
"MIT"
] | null | null | null | _posts/import.py | suepeng/suepeng.github.io | 844e0063e0604a77886aad5eaea588c4df2792a9 | [
"MIT"
] | null | null | null | import os, glob
from dateutil import parser
from bs4 import BeautifulSoup
ext = lambda line, cap: line.replace("\s", "").replace(cap, "").strip()
#------------------------------
# Main
#------------------------------
if __name__ == "__main__":
posts = 0
doc = []
for idx, line in enumerate(open("raw.txt... | 31.983871 | 86 | 0.474534 |
0594a8c465e7b18e9888443f247ba1cf8ff7c9cf | 702 | py | Python | layers/reshape.py | WJGiles/Dorknet | 1582937e843b1a911334291c25ea415fb56e5ccc | [
"MIT"
] | null | null | null | layers/reshape.py | WJGiles/Dorknet | 1582937e843b1a911334291c25ea415fb56e5ccc | [
"MIT"
] | null | null | null | layers/reshape.py | WJGiles/Dorknet | 1582937e843b1a911334291c25ea415fb56e5ccc | [
"MIT"
] | 1 | 2020-07-27T17:03:22.000Z | 2020-07-27T17:03:22.000Z | import numpy as np
from .layer import Layer | 33.428571 | 85 | 0.564103 |
05975def902880bc29f1fd9e4b623039913f810f | 4,003 | py | Python | src/upload/upload.py | alliance-genome/agr_ferret | e2ccef16308b1a8a6f1b2a3dde6e29e0530da721 | [
"MIT"
] | 2 | 2020-07-22T14:25:00.000Z | 2021-09-20T18:29:08.000Z | src/upload/upload.py | alliance-genome/agr_ferret | e2ccef16308b1a8a6f1b2a3dde6e29e0530da721 | [
"MIT"
] | 6 | 2019-09-24T14:09:42.000Z | 2021-06-07T15:27:55.000Z | src/upload/upload.py | alliance-genome/agr_ferret | e2ccef16308b1a8a6f1b2a3dde6e29e0530da721 | [
"MIT"
] | 3 | 2020-12-19T08:57:51.000Z | 2020-12-19T08:58:09.000Z | # Functions for use in downloading files.
import logging, os, requests, json, hashlib, urllib
from requests_toolbelt.utils import dump
from retry import retry
logger = logging.getLogger(__name__)
| 51.320513 | 131 | 0.673995 |
0597da213baf4860aef1103fe9f6eaf312ad6be5 | 9,246 | py | Python | Klipps/convert.py | rafalkaron/KindleClippingsBeautifier | 10d79da2a073f8867041a2520d7a234937237243 | [
"MIT"
] | 1 | 2020-05-25T11:30:54.000Z | 2020-05-25T11:30:54.000Z | Klipps/convert.py | rafalkaron/KindleClippingsBeautifier | 10d79da2a073f8867041a2520d7a234937237243 | [
"MIT"
] | null | null | null | Klipps/convert.py | rafalkaron/KindleClippingsBeautifier | 10d79da2a073f8867041a2520d7a234937237243 | [
"MIT"
] | null | null | null | # coding: utf-8
import re
import datetime
from .feed import read_file
__author__ = "Rafa Karo <rafalkaron@gmail.com>"
def clipps_str_to_html_str(clipps_str):
"""Return a string that contains the converted \"Kindle Clippings.txt file\" to HTML."""
# ADD ELEMENTS (SVG favicon encoded with: https://yoksel.github... | 72.234375 | 4,532 | 0.701709 |
05983c5f355ffca2350a3a76badc57638f8db8e8 | 1,308 | py | Python | rlpy/Domains/__init__.py | okkhoy/rlpy | af25d2011fff1d61cb7c5cc8992549808f0c6103 | [
"BSD-3-Clause"
] | 265 | 2015-01-21T08:11:12.000Z | 2021-12-21T08:06:21.000Z | rlpy/Domains/__init__.py | okkhoy/rlpy | af25d2011fff1d61cb7c5cc8992549808f0c6103 | [
"BSD-3-Clause"
] | 22 | 2015-03-26T17:41:43.000Z | 2019-12-19T08:47:36.000Z | rlpy/Domains/__init__.py | okkhoy/rlpy | af25d2011fff1d61cb7c5cc8992549808f0c6103 | [
"BSD-3-Clause"
] | 85 | 2015-02-18T00:25:15.000Z | 2021-11-15T11:10:00.000Z | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
#from Domain import Domain
from future import standard_library
standard_library.install_aliases()
from .HelicopterHover import HelicopterHover, HelicopterHoverExtended
fro... | 40.875 | 73 | 0.786697 |
0598570bbddd550266f613922fec2e9624969d88 | 365 | py | Python | mercury_engine_data_structures/adapters/enum_adapter.py | Antidote/mercury-engine-data-structures | d8e8ba1eacaa37f4fc76b78bb208ffc2cde61f64 | [
"MIT"
] | 2 | 2021-06-18T16:47:00.000Z | 2021-07-06T22:36:32.000Z | mercury_engine_data_structures/adapters/enum_adapter.py | Antidote/mercury-engine-data-structures | d8e8ba1eacaa37f4fc76b78bb208ffc2cde61f64 | [
"MIT"
] | 1 | 2021-10-01T20:26:01.000Z | 2021-10-01T20:26:01.000Z | mercury_engine_data_structures/adapters/enum_adapter.py | Antidote/mercury-engine-data-structures | d8e8ba1eacaa37f4fc76b78bb208ffc2cde61f64 | [
"MIT"
] | 5 | 2021-08-23T17:01:01.000Z | 2021-11-20T03:57:14.000Z | from construct import Adapter, Int32ub, Enum
| 26.071429 | 51 | 0.682192 |
05995048419b1dbd1bd29b14c238cf37023f8b47 | 2,740 | py | Python | lib/strider/virt/vagrantbox.py | jcftang/strider | 432a68eb1303541b6d955bd6ecf7439d1f9b0d48 | [
"Apache-2.0"
] | 16 | 2016-02-10T13:06:50.000Z | 2021-02-28T06:21:16.000Z | lib/strider/virt/vagrantbox.py | jcftang/strider | 432a68eb1303541b6d955bd6ecf7439d1f9b0d48 | [
"Apache-2.0"
] | 4 | 2016-02-20T16:33:40.000Z | 2016-05-28T10:46:06.000Z | lib/strider/virt/vagrantbox.py | jcftang/strider | 432a68eb1303541b6d955bd6ecf7439d1f9b0d48 | [
"Apache-2.0"
] | 1 | 2016-09-01T11:06:56.000Z | 2016-09-01T11:06:56.000Z | import vagrant
import os
from subprocess import CalledProcessError
from strider.common.instance_data import InstanceData, SshData
import strider.common.logger
| 31.860465 | 75 | 0.550365 |
552672dd092eb5fb84094dd67c6ad2cf6eb3df04 | 4,739 | py | Python | python/aces/lutFormats/tests/UnitTestsLutFormats.py | aforsythe/clf | 47ba8bee31bd13e4f23632c7b0a38293be31c019 | [
"AMPAS"
] | 43 | 2015-07-09T23:13:41.000Z | 2022-02-04T15:45:42.000Z | python/aces/lutFormats/tests/UnitTestsLutFormats.py | aforsythe/clf | 47ba8bee31bd13e4f23632c7b0a38293be31c019 | [
"AMPAS"
] | 1 | 2019-09-18T14:30:39.000Z | 2019-09-18T14:30:39.000Z | python/aces/lutFormats/tests/UnitTestsLutFormats.py | aforsythe/clf | 47ba8bee31bd13e4f23632c7b0a38293be31c019 | [
"AMPAS"
] | 9 | 2015-07-10T15:26:55.000Z | 2020-08-20T11:52:47.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The Academy / ASC Common LUT Format Sample Implementations are provided by the
Academy under the following terms and conditions:
Copyright 2015 Academy of Motion Picture Arts and Sciences ("A.M.P.A.S.").
Portions contributed by others as indicated. All rights reserve... | 40.853448 | 84 | 0.779067 |
552683d69b93369ce9f2b67f499349c272254782 | 10,177 | py | Python | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_CFW_MultiPil.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_CFW_MultiPil.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_CFW_MultiPil.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non... | 40.384921 | 105 | 0.584455 |
552924a7e504599cbe9d1cfc08f6a123e6773a8c | 880 | py | Python | setup.py | hubmapconsortium/python-sdk | 17eaec434f1f65190a6e53d0055fe382841222de | [
"MIT"
] | null | null | null | setup.py | hubmapconsortium/python-sdk | 17eaec434f1f65190a6e53d0055fe382841222de | [
"MIT"
] | 8 | 2021-11-09T13:35:48.000Z | 2022-03-04T15:56:52.000Z | setup.py | hubmapconsortium/python-sdk | 17eaec434f1f65190a6e53d0055fe382841222de | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="hubmap-sdk",
version="1.0.1",
author="Hubmap",
author_email="api-developers@hubmapconsortium.org",
description="Python Client Libary to use HuBMAP web services",
long_de... | 25.142857 | 66 | 0.606818 |