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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f18bb78393580b42e8155261582f5698c9780819 | 723 | py | Python | SearchingAlgorithms/LinearSearch.py | Sai-nook73/TheAlgorithms | fabb67ecfd428751515d5229a2bb3729c8139666 | [
"MIT"
] | 1 | 2018-10-20T22:12:17.000Z | 2018-10-20T22:12:17.000Z | SearchingAlgorithms/LinearSearch.py | aditya1876/TheAlgorithms | e13b3de106c9b04333428d34950d59319520b3d1 | [
"MIT"
] | null | null | null | SearchingAlgorithms/LinearSearch.py | aditya1876/TheAlgorithms | e13b3de106c9b04333428d34950d59319520b3d1 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
main() | 25.821429 | 60 | 0.683264 |
f18bcf9cb98c56325027861d3702d3e848770a5c | 1,175 | py | Python | tests/test_profitable_music_genre.py | swimmio/sqlalchemy_swimm | d24accb7792743cf586bd7062531d108e7063eba | [
"MIT"
] | null | null | null | tests/test_profitable_music_genre.py | swimmio/sqlalchemy_swimm | d24accb7792743cf586bd7062531d108e7063eba | [
"MIT"
] | null | null | null | tests/test_profitable_music_genre.py | swimmio/sqlalchemy_swimm | d24accb7792743cf586bd7062531d108e7063eba | [
"MIT"
] | null | null | null | from decimal import Decimal
from src import profitable_music_genre
EXPECTED_RESULT = [
(Decimal('826.65'), 'Rock'),
(Decimal('382.14'), 'Latin'),
(Decimal('261.36'), 'Metal'),
(Decimal('241.56'), 'Alternative & Punk'),
(Decimal('93.53'), 'TV Shows'),
(Decimal('79.20'), 'Jazz'),
(Decimal('6... | 32.638889 | 96 | 0.588085 |
f18dc483d7521c03921392d10535b3718b96278d | 25,767 | py | Python | pysnmp/ALCATEL-IND1-IPX-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ALCATEL-IND1-IPX-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ALCATEL-IND1-IPX-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 ALCATEL-IND1-IPX-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-IPX-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:02:31 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 137.058511 | 3,836 | 0.75131 |
f18f551efa8ab3b9f224b8bd51c58fdbac90a2eb | 1,045 | py | Python | source/_sample/mpl/tex.py | showa-yojyo/notebook | 82c15074c24d64a1dfcb70a526bc1deb2ecffe68 | [
"MIT"
] | 14 | 2016-04-13T08:10:02.000Z | 2021-04-19T09:42:51.000Z | source/_sample/mpl/tex.py | showa-yojyo/note | 5f262ecda3df132cb66206c465d16e174061d6b9 | [
"MIT"
] | 88 | 2017-09-27T15:07:05.000Z | 2019-10-02T04:05:03.000Z | source/_sample/mpl/tex.py | showa-yojyo/note | 5f262ecda3df132cb66206c465d16e174061d6b9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""tex.py: Demonstrate how to use TeX notation in Matplotlib.
You can obtain the original script file from:
From http://matplotlib.org/mpl_examples/statistics/histogram_demo_features.py
"""
from numpy.random import randn
from scipy.stats import norm
import matplotlib.pyplot as plt
# pylint: disa... | 27.5 | 84 | 0.709091 |
f18f97b4d16aaca6289c19ef8c40fd2b678b8f5a | 942 | py | Python | excercises /exc/database.py | Data-Science-East-AFrica/Introduction--To--Python | eac7a33340a282da93efa18697fe7fbadadf8b7b | [
"MIT"
] | 5 | 2021-07-20T17:47:21.000Z | 2021-08-10T13:01:47.000Z | excercises /exc/database.py | Data-Science-East-AFrica/Introduction--To--Python | eac7a33340a282da93efa18697fe7fbadadf8b7b | [
"MIT"
] | null | null | null | excercises /exc/database.py | Data-Science-East-AFrica/Introduction--To--Python | eac7a33340a282da93efa18697fe7fbadadf8b7b | [
"MIT"
] | 3 | 2021-07-21T08:54:00.000Z | 2021-08-10T16:29:31.000Z | from flask import Flask, render_template, request
from flaskext.mysql import MySQL
app = Flask(__name__)
app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = 'root'
app.config['MYSQL_DB'] = 'MyDB'
mysql = MySQL(app)
if __name__ == '__main__':
app.run(host ... | 25.459459 | 116 | 0.638004 |
f1912bf39e4668d29a6a0d234b0e66f432958934 | 3,436 | py | Python | utils.py | fgerzer/l2rpn_parallel_training | ffa741513b01468311da53011132aad8933169b3 | [
"MIT"
] | null | null | null | utils.py | fgerzer/l2rpn_parallel_training | ffa741513b01468311da53011132aad8933169b3 | [
"MIT"
] | null | null | null | utils.py | fgerzer/l2rpn_parallel_training | ffa741513b01468311da53011132aad8933169b3 | [
"MIT"
] | null | null | null | import multiprocessing as mp
import os
import queue
import signal
import torch
| 26.229008 | 90 | 0.644645 |
74ac48de8e16cbda27909756ffb236d23adc27ea | 376 | py | Python | country/migrations/0023_auto_20210301_0839.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | country/migrations/0023_auto_20210301_0839.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | country/migrations/0023_auto_20210301_0839.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.2 on 2021-03-01 08:39
from django.db import migrations
| 20.888889 | 65 | 0.625 |
74ae0bf85eb2d9d38456959bc42d199b78f2e0f3 | 323 | py | Python | techproject/src/mainapp/products/migrations/0002_auto_20210416_2106.py | Joshuajking/RoyalHotel-WebApp | 351681ea9ee2a79046b09b22a9dae26780cd9e9c | [
"Unlicense"
] | null | null | null | techproject/src/mainapp/products/migrations/0002_auto_20210416_2106.py | Joshuajking/RoyalHotel-WebApp | 351681ea9ee2a79046b09b22a9dae26780cd9e9c | [
"Unlicense"
] | null | null | null | techproject/src/mainapp/products/migrations/0002_auto_20210416_2106.py | Joshuajking/RoyalHotel-WebApp | 351681ea9ee2a79046b09b22a9dae26780cd9e9c | [
"Unlicense"
] | null | null | null | # Generated by Django 2.0.7 on 2021-04-17 02:06
from django.db import migrations
| 17.944444 | 47 | 0.585139 |
74ae327bc907106dc42a102e2715f7253f662f78 | 1,300 | py | Python | Implementations/New folder/E2.py | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | Implementations/New folder/E2.py | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | Implementations/New folder/E2.py | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | command = input()
command = command.strip()
tokens = []
numbers = ['0','1','2','3','4','5','6','7','9']
if (command[:4]=="cout" and command[-1]==';'):
index = 4
while(True):
if(command[index]=='<' and command[index+1]=='<'):
index+=2
s=""
while(command[index]!='<' and... | 23.636364 | 63 | 0.403846 |
74b1b62ded3a565c9e9435f28ddf27ba6a746cb0 | 738 | py | Python | ptmv/snd.py | ryw89/ptmv | 63df738a9700de173e3eb4202ec24a867e2525f4 | [
"MIT"
] | null | null | null | ptmv/snd.py | ryw89/ptmv | 63df738a9700de173e3eb4202ec24a867e2525f4 | [
"MIT"
] | null | null | null | ptmv/snd.py | ryw89/ptmv | 63df738a9700de173e3eb4202ec24a867e2525f4 | [
"MIT"
] | null | null | null | import os
import subprocess
import tempfile
import time
import wave
import simpleaudio | 32.086957 | 90 | 0.752033 |
74b534c8638ef61cac70e5025515efcb596f7590 | 861 | py | Python | modoboa/lib/tests/test_web_utils.py | HarshCasper/modoboa | a00baa0593107992f545ee3e89cd4346b9615a96 | [
"0BSD"
] | 1,602 | 2016-12-15T14:25:34.000Z | 2022-03-31T16:49:25.000Z | modoboa/lib/tests/test_web_utils.py | sebageek/modoboa | 57f5d57ea60a57e8dcac970085dfc07082481fc6 | [
"0BSD"
] | 1,290 | 2016-12-14T15:39:05.000Z | 2022-03-31T13:49:09.000Z | modoboa/lib/tests/test_web_utils.py | sebageek/modoboa | 57f5d57ea60a57e8dcac970085dfc07082481fc6 | [
"0BSD"
] | 272 | 2016-12-22T11:58:18.000Z | 2022-03-17T15:57:24.000Z | """Tests for web_utils."""
from django.test import SimpleTestCase
from .. import web_utils
| 35.875 | 78 | 0.679443 |
74b7f7e963a239b074c92c650bdbd8d4e5bdc2e6 | 1,127 | py | Python | rpg/lib.py | FlorianLeChat/Python-RPG | 833594a964687f57b71eeb63a2a410a8fee43aa1 | [
"MIT"
] | null | null | null | rpg/lib.py | FlorianLeChat/Python-RPG | 833594a964687f57b71eeb63a2a410a8fee43aa1 | [
"MIT"
] | null | null | null | rpg/lib.py | FlorianLeChat/Python-RPG | 833594a964687f57b71eeb63a2a410a8fee43aa1 | [
"MIT"
] | null | null | null | #
# Try to check if the input is a number.
# https://stackoverflow.com/a/1267145
#
#
# Try to retrieve the input from the usage by checking the termination
# controls like CTRL+C to stop the program.
#
#
# Checks if the string is a loadable JSON object.
# https://stackoverflow.com/a/5508597
#
import json
#
# Display... | 20.87037 | 74 | 0.700089 |
74b896e4a2ddce0872f6720cfdf801b97f5c9132 | 643 | py | Python | Engine/code processing/TileSpliter.py | Wildric-Auric/OpenGL_TopDownShooter | c7e43791d46e4f8a742fa723fbed9b6a9812ad8a | [
"MIT"
] | 9 | 2021-12-06T13:57:57.000Z | 2022-01-25T22:14:05.000Z | Engine/code processing/TileSpliter.py | Wildric-Auric/NWengine | c7e43791d46e4f8a742fa723fbed9b6a9812ad8a | [
"MIT"
] | null | null | null | Engine/code processing/TileSpliter.py | Wildric-Auric/NWengine | c7e43791d46e4f8a742fa723fbed9b6a9812ad8a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 30 11:53:32 2021
@author: HP
"""
PATH = "Forest.png"
from PIL import Image
sprites = [Image.new("RGBA", (32, 32), (0,0,0,0)) for x in range(8*6)]
current = 0
with Image.open(PATH) as im:
curI = 0
curJ = 0
for curI in range(0,256,32):
for curJ in range(... | 27.956522 | 78 | 0.522551 |
74b9be151b2b41eaa658ae6d8f1fcf1c497e9235 | 210 | py | Python | examples/pause.bench.py | noirbizarre/minibench | a1ac66dc075181c62bb3c0d3a26beb5c46d5f4ab | [
"MIT"
] | 4 | 2015-11-19T09:42:01.000Z | 2021-12-30T06:18:02.000Z | examples/pause.bench.py | noirbizarre/minibench | a1ac66dc075181c62bb3c0d3a26beb5c46d5f4ab | [
"MIT"
] | null | null | null | examples/pause.bench.py | noirbizarre/minibench | a1ac66dc075181c62bb3c0d3a26beb5c46d5f4ab | [
"MIT"
] | null | null | null | from minibench import Benchmark
import time
| 15 | 34 | 0.67619 |
74ba6eee7aee97ac49609c9586036d1e49876f81 | 3,721 | py | Python | WebODM-master/plugins/cloudimport/platforms/piwigo.py | abhinavsri000/UAVision | 895fd883c1f5f492b4dcb573568b60ef03132cf6 | [
"MIT"
] | null | null | null | WebODM-master/plugins/cloudimport/platforms/piwigo.py | abhinavsri000/UAVision | 895fd883c1f5f492b4dcb573568b60ef03132cf6 | [
"MIT"
] | 8 | 2019-11-24T14:15:19.000Z | 2020-04-19T09:06:04.000Z | WebODM-master/plugins/cloudimport/platforms/piwigo.py | abhinavsri000/UAVision | 895fd883c1f5f492b4dcb573568b60ef03132cf6 | [
"MIT"
] | null | null | null | # Check http://piwigo.com/
from urllib.parse import urlparse
from os import path
from plugins.cloudimport.cloud_platform import File, Folder
from plugins.cloudimport.extensions.cloud_library import CloudLibrary
| 50.283784 | 183 | 0.677775 |
74bb773e96b796a32e9006fbdb28494ee5ebd765 | 1,893 | py | Python | krvjezivot/users/migrations/0003_users_donors.py | jkvakaric/krv-je-zivot | a875dcde468e1e5508713e592f974cb147223b52 | [
"MIT"
] | null | null | null | krvjezivot/users/migrations/0003_users_donors.py | jkvakaric/krv-je-zivot | a875dcde468e1e5508713e592f974cb147223b52 | [
"MIT"
] | null | null | null | krvjezivot/users/migrations/0003_users_donors.py | jkvakaric/krv-je-zivot | a875dcde468e1e5508713e592f974cb147223b52 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2018-05-23 22:44
from django.db import migrations, models
import enumfields.fields
import krvjezivot.donations.enums
import krvjezivot.users.enums
| 36.403846 | 160 | 0.621764 |
74bd070886248dd8615e713b0bc1a5db429a5d79 | 917 | py | Python | data/preprocessing/utils.py | timoninn/pide-pipe | 2eec6c918cf1edbfa22ba6cfe3af57c9abb53ac6 | [
"MIT"
] | 1 | 2019-11-21T07:26:46.000Z | 2019-11-21T07:26:46.000Z | data/preprocessing/utils.py | timoninn/pide-pipe | 2eec6c918cf1edbfa22ba6cfe3af57c9abb53ac6 | [
"MIT"
] | null | null | null | data/preprocessing/utils.py | timoninn/pide-pipe | 2eec6c918cf1edbfa22ba6cfe3af57c9abb53ac6 | [
"MIT"
] | null | null | null | import pandas as pd
def apply_cat_op(
data: pd.DataFrame,
attrs: [str],
operation,
prefix: str
):
"""
Apply one operation to data attributes.
"""
series = [data[attr].map(operation) for attr in attrs]
_data = pd.concat(series, axis=1).add_prefix(prefix)
new_attrs = _data.colum... | 21.833333 | 67 | 0.63904 |
74bd3774ab4911633f14ead2083b5a6b00af8895 | 1,605 | py | Python | python-backend/tests/mines/resources/test_mine_commodity_code.py | MaxWardle/mds | 15d8405e6e95af98da9588f353c5d6692d1aa3d6 | [
"Apache-2.0"
] | null | null | null | python-backend/tests/mines/resources/test_mine_commodity_code.py | MaxWardle/mds | 15d8405e6e95af98da9588f353c5d6692d1aa3d6 | [
"Apache-2.0"
] | null | null | null | python-backend/tests/mines/resources/test_mine_commodity_code.py | MaxWardle/mds | 15d8405e6e95af98da9588f353c5d6692d1aa3d6 | [
"Apache-2.0"
] | 1 | 2019-01-12T23:44:13.000Z | 2019-01-12T23:44:13.000Z | import json
from tests.constants import (
TEST_MINE_TYPE_GUID,
TEST_MINE_COMMODITY_CODES,
TEST_MINE_COMMODITY_DESCRIPTIONS
)
| 29.722222 | 98 | 0.544548 |
74bef04713f2f520c7aedbc13b4faedfb1d77d2d | 1,541 | py | Python | chatbot/app/libs/forecast.py | aeea-0605/chatbot-repo | eed7b1995ecbda6dee46c83cfbae5e3134aa0c74 | [
"MIT"
] | null | null | null | chatbot/app/libs/forecast.py | aeea-0605/chatbot-repo | eed7b1995ecbda6dee46c83cfbae5e3134aa0c74 | [
"MIT"
] | null | null | null | chatbot/app/libs/forecast.py | aeea-0605/chatbot-repo | eed7b1995ecbda6dee46c83cfbae5e3134aa0c74 | [
"MIT"
] | null | null | null | import requests
from app.libs import naver
def kakao_local(KAKAO_KEY, addr):
"""
kakao_local function :
input arguments : kakao_rest_api_key, region(korean)
return lat, lon (about region)
"""
url = f"https://dapi.kakao.com/v2/local/search/address.json?query={addr}"
headers = {"... | 33.5 | 123 | 0.669046 |
74c22070f55c72054e96386544f10505ca9f792a | 14,052 | py | Python | solver.py | mahaitongdae/Approximate-dynamic-Programming | f03f9469f5018c55f06cf8fea2d5f629abc4078b | [
"Apache-2.0"
] | 7 | 2021-05-29T13:09:19.000Z | 2022-03-27T03:40:08.000Z | solver.py | molumitu/Approximate-Dynamic-Programming | 02dcc56ef7c20cbd4211f4eec6eb9acd86208f16 | [
"Apache-2.0"
] | 2 | 2021-05-25T03:58:52.000Z | 2021-12-14T18:58:01.000Z | solver.py | molumitu/Approximate-Dynamic-Programming | 02dcc56ef7c20cbd4211f4eec6eb9acd86208f16 | [
"Apache-2.0"
] | 5 | 2021-04-23T19:25:41.000Z | 2021-12-06T12:52:36.000Z | """
<Reinforcement Learning and Control>(Year 2020)
by Shengbo Eben Li
@ Intelligent Driving Lab, Tsinghua University
OCP example for lane keeping problem in a circle road
[Method]
Model predictive control
"""
from casadi import *
from config import DynamicsConfig
import math
from dynami... | 42.841463 | 117 | 0.401651 |
74c2e56152053bf7a90c2e331edb8e687099cdc7 | 4,965 | py | Python | unit-hypersphere-nn/eval_knn_sphere.py | PepSalehi/algorithms | 1c20f57185e6324aa840ccff98e69764b4213131 | [
"MIT"
] | null | null | null | unit-hypersphere-nn/eval_knn_sphere.py | PepSalehi/algorithms | 1c20f57185e6324aa840ccff98e69764b4213131 | [
"MIT"
] | null | null | null | unit-hypersphere-nn/eval_knn_sphere.py | PepSalehi/algorithms | 1c20f57185e6324aa840ccff98e69764b4213131 | [
"MIT"
] | 1 | 2019-12-09T21:40:46.000Z | 2019-12-09T21:40:46.000Z | #!/usr/bin/env python
"""Create benchmark for k nearest neighbor on unit sphere in R^k."""
# Scroll down to line 90 to "Adjust this" to add your experiment
import random
import numpy as np
import os.path
import logging
import sys
import Queue as queue
import h5py
import time
logging.basicConfig(format='%(asctime)s %... | 32.45098 | 79 | 0.585901 |
74c33f92d092f6f0af09efdb48798234f0bee03a | 5,923 | py | Python | findhorn_multi.py | richplane/PyREmatcher | 93df987478849e5905f0ee5c9ee79801479acb1e | [
"Apache-2.0"
] | 1 | 2020-03-10T14:35:32.000Z | 2020-03-10T14:35:32.000Z | findhorn_multi.py | richplane/PyREmatcher | 93df987478849e5905f0ee5c9ee79801479acb1e | [
"Apache-2.0"
] | null | null | null | findhorn_multi.py | richplane/PyREmatcher | 93df987478849e5905f0ee5c9ee79801479acb1e | [
"Apache-2.0"
] | null | null | null | import scheduler
import pandas as pd
import numpy as np
# This file is a simulation script that run the Scheduler model repeatedly, simulating
#
# There are two different PV arrays
pv_arrays = [
{
'name' : 'Terrace',
'surface_tilt' : 30,
'surface_azimuth' : 163,
'surface_type' : 'g... | 28.339713 | 93 | 0.605774 |
74c34c3ef54a2b9c39a6eda61946e83d4b50fd30 | 139 | py | Python | learnergy/core/__init__.py | anukaal/learnergy | 704fc2b3fcb80df41ed28d750dc4e6475df23315 | [
"Apache-2.0"
] | 39 | 2020-02-27T00:47:45.000Z | 2022-03-28T14:57:26.000Z | learnergy/core/__init__.py | anukaal/learnergy | 704fc2b3fcb80df41ed28d750dc4e6475df23315 | [
"Apache-2.0"
] | 5 | 2021-05-11T08:23:37.000Z | 2022-01-20T12:50:59.000Z | learnergy/core/__init__.py | anukaal/learnergy | 704fc2b3fcb80df41ed28d750dc4e6475df23315 | [
"Apache-2.0"
] | 6 | 2020-04-15T00:23:13.000Z | 2022-01-29T16:22:05.000Z | """A core package for all common learnergy modules.
"""
from learnergy.core.dataset import Dataset
from learnergy.core.model import Model
| 23.166667 | 51 | 0.791367 |
74c416090412740f9213f9dd77f04282a2b98bbb | 372 | py | Python | setup.py | RosettaCommons/pyrosetta_colab_setup | 8e00ed2f1e73e46abc30a2103cef89e48a44a1c8 | [
"MIT"
] | 1 | 2021-07-16T19:31:19.000Z | 2021-07-16T19:31:19.000Z | setup.py | dw5601/pyrosetta_colab_setup | 8e00ed2f1e73e46abc30a2103cef89e48a44a1c8 | [
"MIT"
] | null | null | null | setup.py | dw5601/pyrosetta_colab_setup | 8e00ed2f1e73e46abc30a2103cef89e48a44a1c8 | [
"MIT"
] | 2 | 2021-07-16T19:31:21.000Z | 2021-09-09T06:50:32.000Z | from setuptools import setup
setup(name='pyrosettacolabsetup',
version='0.5',
description='Mounts Google Drive for PyRosetta use in Google Colaboratory',
url='https://github.com/kathyle9/pyrosettacolabsetup',
author='kathyle9',
author_email='kle16@jhu.edu',
license='MIT',
pack... | 31 | 81 | 0.688172 |
74c56a4b96f6fcd9893adae4e172250b3e40e46f | 1,885 | py | Python | my_decorator.py | 4enzo/learning_py | 6f0bc7b974fd7cdb9138a5c41ebaec339373513f | [
"MIT"
] | null | null | null | my_decorator.py | 4enzo/learning_py | 6f0bc7b974fd7cdb9138a5c41ebaec339373513f | [
"MIT"
] | null | null | null | my_decorator.py | 4enzo/learning_py | 6f0bc7b974fd7cdb9138a5c41ebaec339373513f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 2022-03-16
@author: Enzo
'''
import time
import functools
def run_time(func):
""
return inner
#@property
if __name__ == '__main__':
#().()
Foo().normal_func()
#.()
#().(),
Foo.static_func()
#.()
#().(),
F... | 23.271605 | 115 | 0.603714 |
74c637a2577e1df643e2a3b1180f5d79679865a0 | 2,057 | py | Python | pyccl/__init__.py | Russell-Jones-OxPhys/CCL | 1cdc4ecb8ae6fb23806540b39799cc3317473e71 | [
"BSD-3-Clause"
] | null | null | null | pyccl/__init__.py | Russell-Jones-OxPhys/CCL | 1cdc4ecb8ae6fb23806540b39799cc3317473e71 | [
"BSD-3-Clause"
] | null | null | null | pyccl/__init__.py | Russell-Jones-OxPhys/CCL | 1cdc4ecb8ae6fb23806540b39799cc3317473e71 | [
"BSD-3-Clause"
] | null | null | null | """The pyccl package contains all of the submodules that are implemented in
individual files in CCL.
"""
# flake8: noqa
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
# Sets ... | 33.177419 | 84 | 0.787555 |
74c6c5264a18874bfc3529ea2edc3a70a8558e9d | 35,236 | py | Python | src/oci/data_integration/models/task_run.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/data_integration/models/task_run.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/data_integration/models/task_run.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 31.237589 | 245 | 0.630662 |
74c6d82a9c9ae4213c54a331a93faaca5a28ac5b | 285 | py | Python | Python/isPalindrome/palindrometextchecker.py | Wilo/exercises | 30d47dce1414c0fba4e0afa7f23a918d8f9b3895 | [
"MIT"
] | null | null | null | Python/isPalindrome/palindrometextchecker.py | Wilo/exercises | 30d47dce1414c0fba4e0afa7f23a918d8f9b3895 | [
"MIT"
] | null | null | null | Python/isPalindrome/palindrometextchecker.py | Wilo/exercises | 30d47dce1414c0fba4e0afa7f23a918d8f9b3895 | [
"MIT"
] | null | null | null | """
Source: https://en.wikipedia.org/wiki/Palindrome#Names
"""
if __name__=='__main__':
text = input('Give me the text to analyze: ')
print(f'{text} Is Palindrome?: {is_palindrome(text)}')
| 21.923077 | 58 | 0.645614 |
74c6dc83cb39dcad75c3e609d2c57ad3c9f39ba1 | 4,330 | py | Python | test.py | VianneyRousset/paramobject | 1168095fa70dd9a1a4ca1c059922fe59bd6eae33 | [
"Apache-2.0"
] | null | null | null | test.py | VianneyRousset/paramobject | 1168095fa70dd9a1a4ca1c059922fe59bd6eae33 | [
"Apache-2.0"
] | null | null | null | test.py | VianneyRousset/paramobject | 1168095fa70dd9a1a4ca1c059922fe59bd6eae33 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# pylint: disable=disallowed-name
# pylint: disable=missing-class-docstring,
# pylint: disable=missing-function-docstring,
# pylint: disable=no-self-use
import unittest
from paramobject import ParametrizedObject, parameter, Parameter
if __name__ == '__main__':
unittest.main()
| 28.300654 | 70 | 0.607621 |
74c80523d847c7b578674eaea8c5e249c5a4e7b0 | 1,974 | py | Python | src/app/cfg.py | PSPC-SPAC-buyandsell/von_tails | 0bff987fa23c180e920eaaa78e67206a061d8c48 | [
"Apache-2.0"
] | 1 | 2019-07-21T14:03:48.000Z | 2019-07-21T14:03:48.000Z | src/app/cfg.py | PSPC-SPAC-buyandsell/von_tails | 0bff987fa23c180e920eaaa78e67206a061d8c48 | [
"Apache-2.0"
] | null | null | null | src/app/cfg.py | PSPC-SPAC-buyandsell/von_tails | 0bff987fa23c180e920eaaa78e67206a061d8c48 | [
"Apache-2.0"
] | 7 | 2018-10-20T02:38:57.000Z | 2019-07-21T14:03:52.000Z | """
Copyright 2017-2020 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca
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
... | 30.369231 | 100 | 0.72695 |
74c8161d264242d98d46d2da4f36997f20676662 | 221 | py | Python | forumdemo/comment/admin.py | lamdba0602/forumdemo | 82c6223d6b6d7fb3bac049e342d3048a5117a2b7 | [
"Apache-2.0"
] | null | null | null | forumdemo/comment/admin.py | lamdba0602/forumdemo | 82c6223d6b6d7fb3bac049e342d3048a5117a2b7 | [
"Apache-2.0"
] | null | null | null | forumdemo/comment/admin.py | lamdba0602/forumdemo | 82c6223d6b6d7fb3bac049e342d3048a5117a2b7 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Comment
admin.site.register(Comment, CommentAdmin)
| 22.1 | 74 | 0.751131 |
74c877722010d45093123c6bb2302c0e0c62cc73 | 1,516 | py | Python | src/166. Fraction to Recurring Decimal.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/166. Fraction to Recurring Decimal.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/166. Fraction to Recurring Decimal.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | import time
print Solution().fractionToDecimal(2, 1)
print Solution().fractionToDecimal(1, 2)
print Solution().fractionToDecimal(2, 3)
print Solution().fractionToDecimal(4, 9)
print Solution().fractionToDecimal(4, 333) | 27.563636 | 81 | 0.53562 |
74c93ec778e6f2115d37da29c96d96d36fd726a2 | 5,653 | py | Python | code/ml/gptheano/vecgpdm/test.py | dmytrov/gaussianprocess | 7044bd2d66f44e10656fee17e94fdee0c24c70bb | [
"MIT"
] | null | null | null | code/ml/gptheano/vecgpdm/test.py | dmytrov/gaussianprocess | 7044bd2d66f44e10656fee17e94fdee0c24c70bb | [
"MIT"
] | null | null | null | code/ml/gptheano/vecgpdm/test.py | dmytrov/gaussianprocess | 7044bd2d66f44e10656fee17e94fdee0c24c70bb | [
"MIT"
] | null | null | null | import os
import numpy as np
import matplotlibex as plx
import numerical.numpytheano.theanopool as tp
import ml.gptheano.vecgpdm.multiprimitivemodel as mdl
import ml.gptheano.vecgpdm.kernels as krn
import ml.gptheano.vecgpdm.equations as vceq
import numerical.numpytheano as nt
import matplotlibex.mlplot as plx
if __na... | 48.316239 | 140 | 0.66018 |
74ce4a0df4da03c89539d9d88b200fbc9f5506a3 | 993 | py | Python | application/__init__.py | UniversidadeDeVassouras/labproginter-2020.2-PedroHenriqueVasconcelos-t2 | 1ea78c16ada65da602de38b04ca741711734dc96 | [
"Apache-2.0"
] | null | null | null | application/__init__.py | UniversidadeDeVassouras/labproginter-2020.2-PedroHenriqueVasconcelos-t2 | 1ea78c16ada65da602de38b04ca741711734dc96 | [
"Apache-2.0"
] | null | null | null | application/__init__.py | UniversidadeDeVassouras/labproginter-2020.2-PedroHenriqueVasconcelos-t2 | 1ea78c16ada65da602de38b04ca741711734dc96 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
import os
from application.model.entity.aula import Aula
from application.model.entity.disciplina import Disciplina
app = Flask(__name__, static_folder=os.path.abspath("application/view/static"), template_folder=os.path.abspath("application/view/templates"))
aula1 = Aula(1, "Aula 1"... | 47.285714 | 143 | 0.752266 |
74ceb7cd947fd867bc906b9bf5f6fd266238e950 | 2,710 | py | Python | grouper/fe/routes.py | zorkian/grouper | c77c9f5c0b6c1f98108e3ee2fc8ebbd1c4c4e1ec | [
"Apache-2.0"
] | null | null | null | grouper/fe/routes.py | zorkian/grouper | c77c9f5c0b6c1f98108e3ee2fc8ebbd1c4c4e1ec | [
"Apache-2.0"
] | null | null | null | grouper/fe/routes.py | zorkian/grouper | c77c9f5c0b6c1f98108e3ee2fc8ebbd1c4c4e1ec | [
"Apache-2.0"
] | null | null | null | from . import handlers
from ..constants import NAME_VALIDATION, NAME2_VALIDATION, PERMISSION_VALIDATION
HANDLERS = [
(r"/", handlers.Index),
(r"/audits", handlers.AuditsView),
(r"/audits/(?P<audit_id>[0-9]+)/complete", handlers.AuditsComplete),
(r"/audits/create", handlers.AuditsCreate),
(r"/groups... | 38.714286 | 94 | 0.622878 |
74cf17fc6d166d8d3c203930baa97c48e46a06b4 | 6,606 | py | Python | src/fuzzingtool/utils/utils.py | NESCAU-UFLA/FuzzingTool | d0dbe3ee4c17ec8ee72423bf7fabce6849e01807 | [
"MIT"
] | 131 | 2020-12-14T18:45:29.000Z | 2022-03-31T03:00:21.000Z | src/fuzzingtool/utils/utils.py | NESCAU-UFLA/FuzzingTool | d0dbe3ee4c17ec8ee72423bf7fabce6849e01807 | [
"MIT"
] | 51 | 2020-12-14T16:02:38.000Z | 2022-03-31T18:47:12.000Z | src/fuzzingtool/utils/utils.py | NESCAU-UFLA/FuzzingTool | d0dbe3ee4c17ec8ee72423bf7fabce6849e01807 | [
"MIT"
] | 38 | 2020-12-14T21:12:18.000Z | 2022-03-29T18:23:20.000Z | # Copyright (c) 2020 - present Vitor Oriel <https://github.com/VitorOriel>
#
# 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 ... | 35.902174 | 84 | 0.590524 |
74cf21dfcf868ba005dc3a43f11e4b5edc9b582d | 2,779 | py | Python | tests/output/expected_geojson_output/same_uic_ref_overlapping.py | public-transport-quality-grades/oevgk18-generator | e467587d3d3c600a66139756e95bd84040d58c99 | [
"MIT"
] | null | null | null | tests/output/expected_geojson_output/same_uic_ref_overlapping.py | public-transport-quality-grades/oevgk18-generator | e467587d3d3c600a66139756e95bd84040d58c99 | [
"MIT"
] | 3 | 2018-04-30T06:51:33.000Z | 2018-05-30T18:22:58.000Z | tests/output/expected_geojson_output/same_uic_ref_overlapping.py | public-transport-quality-grades/oevgk18-generator | e467587d3d3c600a66139756e95bd84040d58c99 | [
"MIT"
] | null | null | null | result = {
"due-date": "2018-11-13T00:00:00",
"features": [
{
"geometry": {
"coordinates": [
[
[
9.52487,
46.85514
],
[
... | 28.070707 | 38 | 0.16013 |
74d08795ada8a62e2fe3dd29034ff9379f010405 | 17,975 | py | Python | hek/defs/sbsp.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | hek/defs/sbsp.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | hek/defs/sbsp.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | from .coll import *
from .objs.sbsp import SbspTag
from supyr_struct.defs.block_def import BlockDef
cluster_fog_tooltip = (
"Unknown flag is set if negative.\n"
"Add 0x8000 to get fog index."
)
# the order is an array of vertices first, then an array of lightmap vertices.
#
uncompressed_vert... | 32.921245 | 88 | 0.659694 |
74d36a11253d7812de977142377470e5b81ffeb2 | 522 | py | Python | tractseg/experiments/endings_seg.py | jelleman8/TractSeg | 2a42efe6016141f3a32d46c8f509758302c5875b | [
"Apache-2.0"
] | 1 | 2020-06-07T09:36:46.000Z | 2020-06-07T09:36:46.000Z | tractseg/experiments/endings_seg.py | jelleman8/TractSeg | 2a42efe6016141f3a32d46c8f509758302c5875b | [
"Apache-2.0"
] | null | null | null | tractseg/experiments/endings_seg.py | jelleman8/TractSeg | 2a42efe6016141f3a32d46c8f509758302c5875b | [
"Apache-2.0"
] | null | null | null |
from tractseg.experiments.base import Config as BaseConfig
| 26.1 | 108 | 0.703065 |
74d381cc69d2e01f962aec382693cd60d7da90cd | 1,254 | py | Python | test/test_align.py | ishine/fac-via-ppg | 552e2c15046ff6f5e2656324e59d83a3bfe50e85 | [
"Apache-2.0"
] | 98 | 2019-06-27T17:00:01.000Z | 2022-03-10T10:48:18.000Z | test/test_align.py | itsclint/fac-via-ppg | 9f749039ee6d7f92ebc5ad261cdfb67035a85e38 | [
"Apache-2.0"
] | 16 | 2019-09-09T03:21:16.000Z | 2021-11-03T01:55:26.000Z | test/test_align.py | itsclint/fac-via-ppg | 9f749039ee6d7f92ebc5ad261cdfb67035a85e38 | [
"Apache-2.0"
] | 36 | 2019-09-06T09:07:42.000Z | 2021-12-20T13:54:47.000Z | # Copyright 2018 Guanlong Zhao
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | 32.153846 | 74 | 0.704944 |
74d41a0f44d86a7b2cb92a7609690c034a52e6af | 1,844 | py | Python | putput/presets/factory.py | cicorias/putput | 96bde3c2219070bfed1ca76d47a4fe7cd0bc4b44 | [
"MIT"
] | 1 | 2019-01-17T07:45:43.000Z | 2019-01-17T07:45:43.000Z | putput/presets/factory.py | cicorias/putput | 96bde3c2219070bfed1ca76d47a4fe7cd0bc4b44 | [
"MIT"
] | 1 | 2019-01-17T07:47:04.000Z | 2019-01-17T07:47:04.000Z | putput/presets/factory.py | cicorias/putput | 96bde3c2219070bfed1ca76d47a4fe7cd0bc4b44 | [
"MIT"
] | null | null | null | from typing import Callable
from putput.presets import displaCy
from putput.presets import iob2
from putput.presets import luis
from putput.presets import stochastic
def get_preset(preset: str) -> Callable:
"""A factory that gets a 'preset' Callable.
Args:
preset: the preset's name.
Returns:
... | 38.416667 | 119 | 0.611714 |
74d42683a6db7d7fd07c3575b8cbc1f38ea019f1 | 1,273 | py | Python | profilesapi/serializers.py | farbodgerami/profilerestapi | 8ccd42b4b6aff2d7a302d0301be08854fb5cce45 | [
"MIT"
] | null | null | null | profilesapi/serializers.py | farbodgerami/profilerestapi | 8ccd42b4b6aff2d7a302d0301be08854fb5cce45 | [
"MIT"
] | null | null | null | profilesapi/serializers.py | farbodgerami/profilerestapi | 8ccd42b4b6aff2d7a302d0301be08854fb5cce45 | [
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import UserProfile
from profilesapi import models
| 27.673913 | 65 | 0.595444 |
74d6177d2881f21b08bc1ebf5e156825688392d8 | 1,456 | py | Python | consumers/venv/lib/python3.7/site-packages/faust/types/assignor.py | spencerpomme/Public-Transit-Status-with-Apache-Kafka | 2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e | [
"MIT"
] | null | null | null | consumers/venv/lib/python3.7/site-packages/faust/types/assignor.py | spencerpomme/Public-Transit-Status-with-Apache-Kafka | 2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e | [
"MIT"
] | null | null | null | consumers/venv/lib/python3.7/site-packages/faust/types/assignor.py | spencerpomme/Public-Transit-Status-with-Apache-Kafka | 2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e | [
"MIT"
] | null | null | null | import abc
import typing
from typing import List, MutableMapping, Set
from mode import ServiceT
from yarl import URL
from .tuples import TP
if typing.TYPE_CHECKING:
from .app import AppT as _AppT
else:
__all__ = [
'TopicToPartitionMap',
'HostToPartitionMap',
'PartitionAssignorT',
'LeaderAssignor... | 19.413333 | 63 | 0.635989 |
74d87e0b37acbf34d04b4a8b0edf22298797772c | 8,403 | py | Python | tests/utils/test_events.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 3,592 | 2017-03-12T19:44:07.000Z | 2022-03-30T16:03:33.000Z | tests/utils/test_events.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 1,648 | 2017-03-12T23:44:34.000Z | 2022-03-31T15:28:38.000Z | tests/utils/test_events.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 1,736 | 2017-03-13T14:01:28.000Z | 2022-03-31T08:14:24.000Z | from collections import defaultdict
from queue import Queue
from unittest.mock import patch
from redis.exceptions import ConnectionError
from CTFd.config import TestingConfig
from CTFd.utils.events import EventManager, RedisEventManager, ServerSentEvent
from tests.helpers import create_ctfd, destroy_ctfd, login_as_us... | 33.478088 | 86 | 0.558848 |
74d8eac873d23e014e1ce917809e36fa20929174 | 59 | py | Python | coordination/__init__.py | PhobosXIII/qc | a025e25f9d3fddad1565819010362eb8672c0fa9 | [
"Apache-2.0"
] | null | null | null | coordination/__init__.py | PhobosXIII/qc | a025e25f9d3fddad1565819010362eb8672c0fa9 | [
"Apache-2.0"
] | null | null | null | coordination/__init__.py | PhobosXIII/qc | a025e25f9d3fddad1565819010362eb8672c0fa9 | [
"Apache-2.0"
] | null | null | null | default_app_config = 'coordination.apps.CoordinationConfig' | 59 | 59 | 0.881356 |
74da8ec5fba372b359e4f07403a1747186e41b8e | 1,842 | py | Python | hqca/hamiltonian/single_qubit.py | damazz/HQCA | b013ba68f86e42350913c4abc2e1c91695a429b7 | [
"Apache-2.0"
] | null | null | null | hqca/hamiltonian/single_qubit.py | damazz/HQCA | b013ba68f86e42350913c4abc2e1c91695a429b7 | [
"Apache-2.0"
] | null | null | null | hqca/hamiltonian/single_qubit.py | damazz/HQCA | b013ba68f86e42350913c4abc2e1c91695a429b7 | [
"Apache-2.0"
] | 1 | 2021-08-10T00:20:09.000Z | 2021-08-10T00:20:09.000Z | from hqca.core import *
import numpy as np
from hqca.tools import *
| 23.025 | 60 | 0.502172 |
74dacdf39663c95dee29152f69fb689022586231 | 940 | py | Python | graphene_django_jwt/schema/middleware.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | graphene_django_jwt/schema/middleware.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | graphene_django_jwt/schema/middleware.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AnonymousUser
from graphene_django_jwt.blacklist import Blacklist
from graphene_django_jwt.shortcuts import get_user_by_token
from graphene_django_jwt.utils import get_credentials, get_payload
| 31.333333 | 66 | 0.695745 |
74dacf2c9e75725ac09507970ff9b0ade72e52f4 | 10,797 | py | Python | cache.py | kirypto/TimelineTrackerCLI | a1b4dc443b5f75f8fa57c2f7ab8cbabda206999b | [
"MIT"
] | null | null | null | cache.py | kirypto/TimelineTrackerCLI | a1b4dc443b5f75f8fa57c2f7ab8cbabda206999b | [
"MIT"
] | 5 | 2021-09-08T03:35:47.000Z | 2021-09-23T03:19:51.000Z | cache.py | kirypto/TimelineTrackerCLI | a1b4dc443b5f75f8fa57c2f7ab8cbabda206999b | [
"MIT"
] | null | null | null | import pickle
from datetime import datetime, timedelta
from pathlib import Path
from re import match
from time import sleep
from typing import Any, TypeVar, Optional, Callable, Dict
from copy import deepcopy
_MILLIS_PER_HOUR = 1000 * 60 * 60
TArg1 = TypeVar("TArg1")
TArg2 = TypeVar("TArg2")
TArg3 = TypeVar("TArg3")
T... | 40.897727 | 129 | 0.655738 |
74df8759453571d823c18298dd18392289d43dc6 | 1,994 | py | Python | main.py | triplet02/LibriSpeech-preprocess | e125755224aa821fd11b1170a116671ef6a7ca3b | [
"MIT"
] | 3 | 2020-08-11T09:30:38.000Z | 2021-04-28T12:41:36.000Z | main.py | triplet02/LibriSpeech-preprocess | e125755224aa821fd11b1170a116671ef6a7ca3b | [
"MIT"
] | null | null | null | main.py | triplet02/LibriSpeech-preprocess | e125755224aa821fd11b1170a116671ef6a7ca3b | [
"MIT"
] | null | null | null | import argparse
from utils.functional import ParameterError
from utils.preprocess import preprocess, create_labels, create_script, collect
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='LibriSpeech Dataset Preprocessor')
parser.add_argument('--src_path', type=str, default="Check YOUR ... | 64.322581 | 118 | 0.665496 |
74dfa68abf173cd4810a33da91b69644bc051e05 | 5,425 | py | Python | src/main.py | RiTUAL-UH/cs_elmo | 1260ab2e2e6acec49523d231c38d19d78f5ca375 | [
"MIT"
] | 4 | 2020-07-07T07:50:59.000Z | 2022-03-03T02:53:25.000Z | src/main.py | RiTUAL-UH/cs_elmo | 1260ab2e2e6acec49523d231c38d19d78f5ca375 | [
"MIT"
] | 1 | 2021-08-04T13:43:28.000Z | 2021-08-06T06:07:41.000Z | src/main.py | RiTUAL-UH/cs_elmo | 1260ab2e2e6acec49523d231c38d19d78f5ca375 | [
"MIT"
] | 2 | 2021-05-30T08:31:09.000Z | 2021-08-30T21:21:47.000Z | import os
import re
import json
import argparse
import random
import numpy as np
import torch
import experiments.experiment_langid as experiment_lid
import experiments.experiment_ner as experiment_ner
import experiments.experiment_pos as experiment_pos
from types import SimpleNamespace as Namespace
PROJ_DIR = os.pat... | 42.716535 | 140 | 0.641475 |
74dfae685d77ad2ae40a616f88e65960a0ab4b21 | 1,110 | py | Python | Data_TAPTC/main_convert_txt2dict.py | adamslab-ub/BiG-MRTA | e49cd948653b15a70348d85a65b1b42c847f8b5b | [
"MIT"
] | 1 | 2021-10-11T03:45:32.000Z | 2021-10-11T03:45:32.000Z | Data_TAPTC/main_convert_txt2dict.py | adamslab-ub/BiG-MRTA | e49cd948653b15a70348d85a65b1b42c847f8b5b | [
"MIT"
] | null | null | null | Data_TAPTC/main_convert_txt2dict.py | adamslab-ub/BiG-MRTA | e49cd948653b15a70348d85a65b1b42c847f8b5b | [
"MIT"
] | 1 | 2021-12-07T07:26:03.000Z | 2021-12-07T07:26:03.000Z | # Author: Payam Ghassemi, payamgha@buffalo.edu
# Dec 02, 2020
# Copyright 2020 Payam Ghassemi
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from scipy.spatial import distance as dist
import scipy.io
import pickle
## TAPTC Dataset
group_list = [1,2]
instance_list = [0, 1, 2]
ratio_dea... | 30.833333 | 81 | 0.56036 |
74e29cdd1a2d50b8d743d24622e2c04473dba081 | 2,229 | py | Python | main.py | zs-liu/GOC-VRPTW-MAA | 82d1b7a9bb22650256578733f4bdd59b97524f95 | [
"MIT"
] | 11 | 2019-07-09T03:09:28.000Z | 2021-11-19T03:27:45.000Z | main.py | zs-liu/GOC-VRPTW-MAA | 82d1b7a9bb22650256578733f4bdd59b97524f95 | [
"MIT"
] | 3 | 2020-01-03T01:25:47.000Z | 2021-02-26T04:18:43.000Z | main.py | zs-liu/GOC-VRPTW-MAA | 82d1b7a9bb22650256578733f4bdd59b97524f95 | [
"MIT"
] | 2 | 2020-01-02T14:56:39.000Z | 2021-10-08T18:38:50.000Z | from tools import GlobalMap
from tools import pickle_dump, pickle_load
from PGA import Controller, Nature, Chromo, Route
load = True
save = True # warning: if save set to be true, it may save the 'controller' to save_dir, which is up to 100MB
generation_num = 500 # can set this number very large, cause it will store... | 46.4375 | 119 | 0.663526 |
74e3b933c18b228da1df42ddda603eec6025cda5 | 503 | py | Python | auto-bench.py | cmr/rust-bench | d3de14b00c9b292c5577e979a05b6ca5be9649d4 | [
"BSL-1.0"
] | 2 | 2015-01-28T22:56:58.000Z | 2019-07-10T12:53:43.000Z | auto-bench.py | cmr/rust-bench | d3de14b00c9b292c5577e979a05b6ca5be9649d4 | [
"BSL-1.0"
] | 1 | 2015-07-13T22:10:49.000Z | 2015-07-13T23:58:52.000Z | auto-bench.py | cmr/rust-bench | d3de14b00c9b292c5577e979a05b6ca5be9649d4 | [
"BSL-1.0"
] | null | null | null | #!/usr/bin/python2
import os
from plumbum import local, FG
from plumbum.cmd import git
# the commits already tested
HISTORY = '/home/cmr/benches/data'
BUILDDIR = '/mnt/rustb'
BENCH_OVERRIDE = '/home/cmr/benches/bench-override.txt'
for hash in open(BENCH_OVERRIDE).read().split('\n'):
if len(hash) == 40:
... | 20.958333 | 55 | 0.667992 |
74e482e2705d6fd41d57114ce472fcffb99ab95d | 81,410 | py | Python | lib/tests/test_transaction.py | TheCharlatan/vialectrum | c54cd9aa08835db985d77ead9d91a00d66afa4b0 | [
"MIT"
] | null | null | null | lib/tests/test_transaction.py | TheCharlatan/vialectrum | c54cd9aa08835db985d77ead9d91a00d66afa4b0 | [
"MIT"
] | null | null | null | lib/tests/test_transaction.py | TheCharlatan/vialectrum | c54cd9aa08835db985d77ead9d91a00d66afa4b0 | [
"MIT"
] | null | null | null | import unittest
from lib import transaction
from lib.bitcoin import TYPE_ADDRESS
from lib.keystore import xpubkey_to_address
from lib.util import bh2u
unsigned_blob = '01000000012a5c9a94fcde98f5581cd00162c60a13936ceb75389ea65bf38633b424eb4031000000005701ff4c53ff0488b21e03ef2afea18000000089689bff23e1e7fb2f161daa37270... | 130.256 | 3,862 | 0.90683 |
74e89dfec82ee2c1a437ddad9133d11bb81f77b9 | 2,581 | py | Python | CheckWater.py | Artem1199/PlantManager | 1b15cb82c546157f1c62622a09bf9e8c704f7733 | [
"MIT"
] | 1 | 2021-11-30T17:13:44.000Z | 2021-11-30T17:13:44.000Z | CheckWater.py | Artem1199/PlantManager | 1b15cb82c546157f1c62622a09bf9e8c704f7733 | [
"MIT"
] | null | null | null | CheckWater.py | Artem1199/PlantManager | 1b15cb82c546157f1c62622a09bf9e8c704f7733 | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
import datetime
from ReadWriteConfig import *
import Adafruit_ADS1x15
now = datetime.datetime.now()
print("Starting CheckWater.py", str(now))
adc = Adafruit_ADS1x15.ADS1015() # Pick Sensors
GAIN = 0 #import gain for adc reading
SS_COUNT = 0
with open("PlantMgr.xml", "r") as f:
... | 24.817308 | 105 | 0.688105 |
74ea5534a2222aa50e6797b5e6858f4c0a624a2e | 273 | py | Python | Ex_94.py | soldierloko/Curso-em-Video | d867366425f72fe15903cb17cdc222a7fe7a3831 | [
"MIT"
] | null | null | null | Ex_94.py | soldierloko/Curso-em-Video | d867366425f72fe15903cb17cdc222a7fe7a3831 | [
"MIT"
] | null | null | null | Ex_94.py | soldierloko/Curso-em-Video | d867366425f72fe15903cb17cdc222a7fe7a3831 | [
"MIT"
] | null | null | null | #Faa um programa que tenha uma lista chamada nmeros e duas funes chamadas sorteia() e somarpar().
#A primeira funo vai sortear 5 nmeros e vai coloca-los dentro da lista e a segunda funo vai mostrar a soma entre todos os valores PARES sorteados pela funo anterior | 136.5 | 171 | 0.805861 |
74eb3b3c95a8e64caf08d40fca8885231185e822 | 7,917 | py | Python | views.py | Eileen30/Final-Project | 18cb2d54a58a9843cd813278e413ff1d15381090 | [
"MIT"
] | null | null | null | views.py | Eileen30/Final-Project | 18cb2d54a58a9843cd813278e413ff1d15381090 | [
"MIT"
] | null | null | null | views.py | Eileen30/Final-Project | 18cb2d54a58a9843cd813278e413ff1d15381090 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework.response import Response
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.authtoken.models import Token
from rest_framework.views import APIView
from rest_framework.decorators import api_view,permission_classes
from .models im... | 34.723684 | 134 | 0.659341 |
74ec6cc9d1101bfd2bfb410ae7b7ce959f6d91a6 | 5,092 | py | Python | alipay/aop/api/domain/AlipayOfflineProviderShopactionRecordModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/AlipayOfflineProviderShopactionRecordModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/AlipayOfflineProviderShopactionRecordModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.OuterShopDO import OuterShopDO
| 30.860606 | 81 | 0.590927 |
74edb93d9d0f36c2269aab0e11e28b72cbcd34f1 | 6,327 | py | Python | src/pwnbot.py | jtorres-dev/discord_ctfbot | c4063e7b495a7096ff4e43e1c7bf39111f3ab401 | [
"MIT"
] | 2 | 2021-07-18T10:06:09.000Z | 2021-11-10T17:17:16.000Z | src/pwnbot.py | jtorres-dev/discord_ctfbot | c4063e7b495a7096ff4e43e1c7bf39111f3ab401 | [
"MIT"
] | null | null | null | src/pwnbot.py | jtorres-dev/discord_ctfbot | c4063e7b495a7096ff4e43e1c7bf39111f3ab401 | [
"MIT"
] | 1 | 2022-02-16T20:19:31.000Z | 2022-02-16T20:19:31.000Z | import discord
import ctftime
import os
import random
from discord.ext import commands, tasks
from datetime import datetime
# Token generated from https://discord.com/developers/applications
# Keep this private, if exposed generate new one
TOKEN = ''
# Bot channel ID was grabbed from Settings > Appearance > Developer... | 29.84434 | 146 | 0.657974 |
74efa60c00742571338fd87162e5f60aaa666228 | 820 | py | Python | setup.py | monkeython/multipla | 8d55573e8603699aff7049163de1c2ef8ff60b65 | [
"BSD-3-Clause"
] | null | null | null | setup.py | monkeython/multipla | 8d55573e8603699aff7049163de1c2ef8ff60b65 | [
"BSD-3-Clause"
] | null | null | null | setup.py | monkeython/multipla | 8d55573e8603699aff7049163de1c2ef8ff60b65 | [
"BSD-3-Clause"
] | 2 | 2016-06-20T07:32:45.000Z | 2018-03-05T01:43:28.000Z | import os
import sys
NAME = 'multipla'
PACKAGE = __import__(NAME)
AUTHOR, EMAIL = PACKAGE.__author__.rsplit(' ', 1)
with open('docs/index.rst', 'r') as INDEX:
DESCRIPTION = INDEX.readline()
with open('README.rst', 'r') as README:
LONG_DESCRIPTION = README.read()
URL = 'https://github.com/monkeython/%s' % NA... | 23.428571 | 49 | 0.646341 |
74eff959c06498bc647cc2206b113e55d6dbb2ff | 5,747 | py | Python | src/DB_logger.py | adibarra/Generic-DiscordBot | bfef8ab2dac2153fa1f3e37f3022fcddcafe1489 | [
"MIT"
] | null | null | null | src/DB_logger.py | adibarra/Generic-DiscordBot | bfef8ab2dac2153fa1f3e37f3022fcddcafe1489 | [
"MIT"
] | null | null | null | src/DB_logger.py | adibarra/Generic-DiscordBot | bfef8ab2dac2153fa1f3e37f3022fcddcafe1489 | [
"MIT"
] | null | null | null | # Generic-DiscordBot
# author: github/adibarra
# imports
import os
import time
import uuid
import enum
import glob
import traceback
from zipfile import ZipFile
from DB_prefsloader import PreferenceLoader
| 44.550388 | 158 | 0.523578 |
74f077b85990ba288e14c9a7c9b02037876cd116 | 3,286 | py | Python | dbparti/backends/exceptions.py | bsauer/django-db-parti | e382b6010891d714084c69ec09eee20b7c826734 | [
"BSD-3-Clause"
] | null | null | null | dbparti/backends/exceptions.py | bsauer/django-db-parti | e382b6010891d714084c69ec09eee20b7c826734 | [
"BSD-3-Clause"
] | null | null | null | dbparti/backends/exceptions.py | bsauer/django-db-parti | e382b6010891d714084c69ec09eee20b7c826734 | [
"BSD-3-Clause"
] | null | null | null | from dbparti import connection
| 36.10989 | 153 | 0.650335 |
74f0b6c0862dce65538cbea19beab8636aa3411a | 414 | py | Python | store/urls.py | hardik1410/ShopEase | 8d941cad662f8ed4bddab43f1ed486307f6654ff | [
"MIT"
] | null | null | null | store/urls.py | hardik1410/ShopEase | 8d941cad662f8ed4bddab43f1ed486307f6654ff | [
"MIT"
] | null | null | null | store/urls.py | hardik1410/ShopEase | 8d941cad662f8ed4bddab43f1ed486307f6654ff | [
"MIT"
] | 4 | 2021-08-14T19:03:20.000Z | 2022-03-31T20:58:05.000Z | from django.urls import path
from django.conf.urls import url
from store import views
from .views import getStore, addStore, updateStore, deleteStore
urlpatterns = [
url(r'getStore/', views.getStore),
url(r'addStore/', views.addStore),
url(r'updateStore/', views.updateStore),
url(r'deleteStore/', views... | 31.846154 | 76 | 0.724638 |
74f164646bf9105a73d7725d17c38876c0b6ed35 | 702 | py | Python | pythia/opal/content/KeyboardAttributes.py | willic3/pythia | 2657b95a0c07fd3c914ab6b5f7ec89a8edba004c | [
"BSD-3-Clause"
] | 1 | 2015-11-30T08:01:39.000Z | 2015-11-30T08:01:39.000Z | pythia/opal/content/KeyboardAttributes.py | willic3/pythia | 2657b95a0c07fd3c914ab6b5f7ec89a8edba004c | [
"BSD-3-Clause"
] | 27 | 2018-05-24T18:31:25.000Z | 2021-10-16T03:57:52.000Z | pythia/opal/content/KeyboardAttributes.py | willic3/pythia | 2657b95a0c07fd3c914ab6b5f7ec89a8edba004c | [
"BSD-3-Clause"
] | 7 | 2019-07-19T02:30:56.000Z | 2021-06-02T22:00:01.000Z | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~... | 21.9375 | 80 | 0.435897 |
74f1d9921e9f47ecc63831f5691a1c67010b6be9 | 1,727 | py | Python | wwwhero/migrations/0006_auto_20210109_1311.py | IharSha/build_a_hero | 4a0f0aa701c205d04edd6bc801707a73bcc210f2 | [
"BSD-3-Clause"
] | null | null | null | wwwhero/migrations/0006_auto_20210109_1311.py | IharSha/build_a_hero | 4a0f0aa701c205d04edd6bc801707a73bcc210f2 | [
"BSD-3-Clause"
] | 2 | 2021-01-08T11:53:33.000Z | 2021-09-23T07:04:20.000Z | wwwhero/migrations/0006_auto_20210109_1311.py | IharSha/build_a_hero | 4a0f0aa701c205d04edd6bc801707a73bcc210f2 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-09 13:11
from django.db import migrations, models
import django.db.models.deletion
| 39.25 | 156 | 0.599884 |
74f429bdcef0e346f018f9944dbfda03ff4cdefe | 46 | py | Python | pyexcel_xlsbr/_version.py | chfw/pyexcel-xlsbr | 647ff05890ec4430750e5670309a407bb1b0f113 | [
"BSD-3-Clause"
] | null | null | null | pyexcel_xlsbr/_version.py | chfw/pyexcel-xlsbr | 647ff05890ec4430750e5670309a407bb1b0f113 | [
"BSD-3-Clause"
] | 2 | 2018-08-03T16:58:14.000Z | 2019-03-18T01:17:54.000Z | pyexcel_xlsbr/_version.py | chfw/pyexcel-xlsbr | 647ff05890ec4430750e5670309a407bb1b0f113 | [
"BSD-3-Clause"
] | 1 | 2021-10-31T01:49:17.000Z | 2021-10-31T01:49:17.000Z | __version__ = "0.5.0-rc1"
__author__ = "C.W."
| 15.333333 | 25 | 0.630435 |
74f5be47b06ee956535890594fc75ca5ccd2bebb | 2,310 | py | Python | tests/test_release.py | andyjessen/great_expectations | 74f7f2aa7b51144f34156ed49490dae4edaa5cb7 | [
"Apache-2.0"
] | null | null | null | tests/test_release.py | andyjessen/great_expectations | 74f7f2aa7b51144f34156ed49490dae4edaa5cb7 | [
"Apache-2.0"
] | null | null | null | tests/test_release.py | andyjessen/great_expectations | 74f7f2aa7b51144f34156ed49490dae4edaa5cb7 | [
"Apache-2.0"
] | null | null | null | import datetime as dt
import json
from typing import Dict, Optional, cast
import dateutil.parser
import pytest
from packaging import version
from great_expectations.data_context.util import file_relative_path
def test_release_schedule_adheres_to_schema(
release_schedule: Dict[dt.datetime, version.Version]
) -... | 34.477612 | 114 | 0.685281 |
74f6091cbc1a7b64f8585e19e2ec7a05edb37029 | 14,541 | py | Python | src/models/ast_models_2d.py | MichaelLynn1996/ast | 5c5becaca37646a4ec5b247584e112d00931af2c | [
"BSD-3-Clause"
] | null | null | null | src/models/ast_models_2d.py | MichaelLynn1996/ast | 5c5becaca37646a4ec5b247584e112d00931af2c | [
"BSD-3-Clause"
] | null | null | null | src/models/ast_models_2d.py | MichaelLynn1996/ast | 5c5becaca37646a4ec5b247584e112d00931af2c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 6/10/21 5:04 PM
# @Author : Yuan Gong
# @Affiliation : Massachusetts Institute of Technology
# @Email : yuangong@mit.edu
# @File : ast_models.py
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.cuda.amp import autocast
import os
import wget
impor... | 47.211039 | 191 | 0.580428 |
74f6d6fd82eaa5ae993b1a30f808e7a5ca202721 | 2,172 | py | Python | Testing/test_springs.py | geosharma/PyNite | b7419ac352b48d7cd92b1a34a30d0083e19cfb78 | [
"MIT"
] | 199 | 2019-04-12T05:30:43.000Z | 2022-03-29T23:42:01.000Z | Testing/test_springs.py | mohashrafy/PyNite | efffccdbff6727d3b271ba2937e35892d9df8c00 | [
"MIT"
] | 103 | 2019-07-22T19:41:26.000Z | 2022-03-31T22:18:32.000Z | Testing/test_springs.py | mohashrafy/PyNite | efffccdbff6727d3b271ba2937e35892d9df8c00 | [
"MIT"
] | 69 | 2019-02-07T12:02:01.000Z | 2022-03-24T13:24:38.000Z | # -*- coding: utf-8 -*-
"""
MIT License
Copyright (c) 2020 D. Craig Brinck, SE; tamalone1
"""
import unittest
from PyNite import FEModel3D
import sys
from io import StringIO
| 35.032258 | 68 | 0.574586 |
74f899e21e839972b7e9857acc8c5b5a51ab3347 | 1,824 | py | Python | 2009/scientific-computing/prax3/src/RLPrax2_2.py | rla/old-code | 06aa69c3adef8434992410687d466dc42779e57b | [
"Ruby",
"MIT"
] | 2 | 2015-11-08T10:01:47.000Z | 2020-03-10T00:00:58.000Z | 2009/scientific-computing/prax3/src/RLPrax2_2.py | rla/old-code | 06aa69c3adef8434992410687d466dc42779e57b | [
"Ruby",
"MIT"
] | null | null | null | 2009/scientific-computing/prax3/src/RLPrax2_2.py | rla/old-code | 06aa69c3adef8434992410687d466dc42779e57b | [
"Ruby",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Raivo Laanemets
# rlaanemt@ut.ee
import sys
from Taring import Taring
# Abiklass nelja tringuviske mngu simuleerimiseks.
# Phiprogramm.
# Vtab argumendiks simulatsioonis kasutatava
# mngukordade arvu ja vljastab tulemuse, kas
# mngu on mistlik mngida vi mitte.
def main(argv):
manguMaks... | 30.915254 | 86 | 0.660636 |
74f8c3e3431ef6f5e87146529884800731d26959 | 31,841 | py | Python | atesa/lmax.py | team-mayes/atesa | 71df0011f4f9b5809ede98fcf08fce393aff2d53 | [
"BSD-3-Clause"
] | 5 | 2019-08-12T19:50:17.000Z | 2021-02-01T04:12:14.000Z | atesa/lmax.py | team-mayes/atesa | 71df0011f4f9b5809ede98fcf08fce393aff2d53 | [
"BSD-3-Clause"
] | 1 | 2021-09-17T18:20:38.000Z | 2021-09-17T18:20:38.000Z | atesa/lmax.py | team-mayes/atesa | 71df0011f4f9b5809ede98fcf08fce393aff2d53 | [
"BSD-3-Clause"
] | null | null | null | """
Likelihood maximization script. This program is designed to be entirely separable from ATESA in that it can be called
manually to perform likelihood maximization to user specifications and with arbitrary input files; however, it is
required by ATESA's aimless shooting information error convergence criterion.
"""
i... | 52.542904 | 214 | 0.613486 |
74fb0e8bb963a3c95eb5f18fd38ef44be33fa7cd | 6,057 | py | Python | backend_getData/get_poptweets_topic.py | ZilinZhou1995/RetweetVis | 84d399710b38eb8ede6eb0e9870e119c19812105 | [
"MIT"
] | null | null | null | backend_getData/get_poptweets_topic.py | ZilinZhou1995/RetweetVis | 84d399710b38eb8ede6eb0e9870e119c19812105 | [
"MIT"
] | null | null | null | backend_getData/get_poptweets_topic.py | ZilinZhou1995/RetweetVis | 84d399710b38eb8ede6eb0e9870e119c19812105 | [
"MIT"
] | 1 | 2019-04-21T20:07:09.000Z | 2019-04-21T20:07:09.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Downloads all tweets from a given user.
Uses twitter.Api.GetUserTimeline to retreive the last 3,200 tweets from a user.
Twitter doesn't allow retreiving more tweets than this through the API, so we get
as many as possible.
t.py should contain the imported variables.... | 29.402913 | 121 | 0.655605 |
74fc1e0f95ad776ae2b5d3b56edfeda578af068f | 4,571 | py | Python | curl_command/bin/curl-command.py | bmacher/splunk-curl-command | a3280a71050c1282347e3b6e0b2d9346c0ccdb72 | [
"Apache-2.0"
] | 1 | 2019-10-23T18:23:24.000Z | 2019-10-23T18:23:24.000Z | curl_command/bin/curl-command.py | bmacher/splunk-curl-command | a3280a71050c1282347e3b6e0b2d9346c0ccdb72 | [
"Apache-2.0"
] | 5 | 2018-11-20T17:29:43.000Z | 2019-11-30T00:40:13.000Z | curl_command/bin/curl-command.py | bmacher/splunk-curl-command | a3280a71050c1282347e3b6e0b2d9346c0ccdb72 | [
"Apache-2.0"
] | 5 | 2019-08-14T12:02:26.000Z | 2021-05-13T06:48:22.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Splunk specific dependencies
import sys, os
from splunklib.searchcommands import dispatch, GeneratingCommand, Configuration, Option, validators, splunklib_logger as logger
# Command specific dependencies
import requests
from requests.auth import HTTPDigestAuth
import js... | 28.391304 | 127 | 0.628965 |
74fcf295aa9e507bf2049ceebe8e53843a683cab | 3,338 | py | Python | fmas/solver/integrating_factor_method.py | nunoedgarhubsoftphotoflow/py-fmas | 241d942fe0cd6a49001b1bf110dd32bccc86bb16 | [
"MIT"
] | 4 | 2021-04-28T07:02:54.000Z | 2022-01-25T13:15:49.000Z | fmas/solver/integrating_factor_method.py | Photonics-Precision-Technologies/py-fmas | 241d942fe0cd6a49001b1bf110dd32bccc86bb16 | [
"MIT"
] | 3 | 2021-06-10T07:11:35.000Z | 2021-11-22T15:23:01.000Z | fmas/solver/integrating_factor_method.py | Photonics-Precision-Technologies/py-fmas | 241d942fe0cd6a49001b1bf110dd32bccc86bb16 | [
"MIT"
] | 5 | 2021-05-20T08:53:44.000Z | 2022-01-25T13:18:34.000Z | """
Implements integrating factor method (IFM).
.. codeauthor:: Oliver Melchert <melchert@iqo.uni-hannover.de>
"""
import numpy as np
from ..config import W_MAX_FAC
from ..stepper import RungeKutta4
from .solver_base import SolverBaseClass
| 38.367816 | 79 | 0.62882 |
2d01e05dc6e480caa3d5fc12d39cf0eb0ea2ab3d | 227 | py | Python | discordbot/src/commands/url.py | matrix2113/discord-masz | 1aeeefde61fc9828e31290330208fc8254f6daf4 | [
"MIT"
] | null | null | null | discordbot/src/commands/url.py | matrix2113/discord-masz | 1aeeefde61fc9828e31290330208fc8254f6daf4 | [
"MIT"
] | null | null | null | discordbot/src/commands/url.py | matrix2113/discord-masz | 1aeeefde61fc9828e31290330208fc8254f6daf4 | [
"MIT"
] | null | null | null | import os
from discord.ext import commands
| 25.222222 | 96 | 0.731278 |
2d026378df64ec8bffa56d192a63dbfd8b0413f9 | 9,185 | py | Python | pgmock/selector.py | cwbane/pgmock | 5c0d2be637c23729a306c0346b9ec1340450a54b | [
"BSD-3-Clause"
] | 54 | 2018-03-29T21:41:41.000Z | 2022-01-26T11:38:22.000Z | pgmock/selector.py | cwbane/pgmock | 5c0d2be637c23729a306c0346b9ec1340450a54b | [
"BSD-3-Clause"
] | 2 | 2018-07-31T19:39:24.000Z | 2020-04-16T06:28:12.000Z | pgmock/selector.py | cwbane/pgmock | 5c0d2be637c23729a306c0346b9ec1340450a54b | [
"BSD-3-Clause"
] | 1 | 2018-08-22T16:15:08.000Z | 2018-08-22T16:15:08.000Z | """
pgmock.selector
---------------
Contains the primary functionality for chainable SQL selectors
"""
import pgmock.exceptions
import pgmock.mocker
import pgmock.render
def body():
"""Obtains the body of a selector.
When applicable, this selector returns the body of another selection.
For example, a ``... | 30.213816 | 97 | 0.657376 |
2d027dd1899fc456d6f79fdb25756da0442fe0e9 | 19,594 | py | Python | tests/test_admin.py | douglatornell/randopony-tetra | 258b0a8223b2a820d66b1a4d98eb0a54e07afa25 | [
"BSD-3-Clause"
] | 1 | 2020-06-30T18:56:22.000Z | 2020-06-30T18:56:22.000Z | tests/test_admin.py | douglatornell/randopony-tetra | 258b0a8223b2a820d66b1a4d98eb0a54e07afa25 | [
"BSD-3-Clause"
] | null | null | null | tests/test_admin.py | douglatornell/randopony-tetra | 258b0a8223b2a820d66b1a4d98eb0a54e07afa25 | [
"BSD-3-Clause"
] | null | null | null | """Tests for RandoPony admin views and functionality.
"""
from datetime import datetime
import unittest
from unittest.mock import patch
from pyramid import testing
from pyramid_mailer import get_mailer
from sqlalchemy import create_engine
from randopony.models.meta import (
Base,
DBSession,
)
| 39.583838 | 80 | 0.610289 |
2d030913e77eb6eca6bd9709c64648c6db9c27c0 | 1,296 | py | Python | ptf_nn/ptf_nn_test_eth.py | linarnan/ptf | 83444198f295a6fc8486b095379f67d8f7c25ad6 | [
"Apache-2.0"
] | 113 | 2016-06-09T08:13:44.000Z | 2022-03-25T08:19:24.000Z | ptf_nn/ptf_nn_test_eth.py | linarnan/ptf | 83444198f295a6fc8486b095379f67d8f7c25ad6 | [
"Apache-2.0"
] | 85 | 2015-10-08T17:15:11.000Z | 2022-01-20T00:49:28.000Z | ptf_nn/ptf_nn_test_eth.py | linarnan/ptf | 83444198f295a6fc8486b095379f67d8f7c25ad6 | [
"Apache-2.0"
] | 103 | 2015-12-02T12:43:12.000Z | 2022-03-10T03:07:40.000Z | #!/usr/bin/env python
# Copyright 2013-present Barefoot Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 27.574468 | 74 | 0.708333 |
2d036ce61565c7bf56d00dfde72b453399c3d5d5 | 4,204 | py | Python | src/lib/parsers/parseretinac.py | Project-Prismatica/Prism-Shell | 006d04fdabbe51c4a3fd642e05ba276251f1bba4 | [
"MIT"
] | null | null | null | src/lib/parsers/parseretinac.py | Project-Prismatica/Prism-Shell | 006d04fdabbe51c4a3fd642e05ba276251f1bba4 | [
"MIT"
] | null | null | null | src/lib/parsers/parseretinac.py | Project-Prismatica/Prism-Shell | 006d04fdabbe51c4a3fd642e05ba276251f1bba4 | [
"MIT"
] | 1 | 2018-02-22T02:18:48.000Z | 2018-02-22T02:18:48.000Z | #!/usr/bin/python
# parseretinac.py
#
# By Adrien de Beaupre adriendb@gmail.com | adrien@intru-shun.ca
# Copyright 2011 Intru-Shun.ca Inc.
# v0.09
# 16 October 2011
#
# The current version of these scripts are at: http://dshield.handers.org/adebeaupre/ossams-parser.tgz
#
# Parses retina community version XML... | 42.897959 | 133 | 0.657469 |
2d044fb1a3dfdc1b6f94ddb3bf895f789b7701bb | 101 | py | Python | nunaserver/nunaserver/wsgi.py | UAVCAN/nunaweb | 3dc59d5385716a2ad8581807a80d52489ffae8e8 | [
"MIT"
] | 3 | 2021-02-10T22:56:35.000Z | 2021-09-11T12:43:27.000Z | nunaserver/nunaserver/wsgi.py | UAVCAN/nunaweb | 3dc59d5385716a2ad8581807a80d52489ffae8e8 | [
"MIT"
] | 33 | 2021-02-03T20:01:19.000Z | 2021-10-05T10:24:08.000Z | nunaserver/nunaserver/wsgi.py | bbworld1/nunaweb | 3dc59d5385716a2ad8581807a80d52489ffae8e8 | [
"MIT"
] | 1 | 2021-02-20T08:29:08.000Z | 2021-02-20T08:29:08.000Z | """
WSGI entrypoint.
"""
from nunaserver.server import app
if __name__ == "__main__":
app.run()
| 12.625 | 33 | 0.663366 |
2d0642d0a2bf80cc847ea773f1cbfa1193d454b9 | 5,103 | py | Python | animate.py | manuelnaranjo/pyrealtimecharter | 72fa4faa132686ba2a401cc7dfff326d36ecc505 | [
"Apache-2.0"
] | null | null | null | animate.py | manuelnaranjo/pyrealtimecharter | 72fa4faa132686ba2a401cc7dfff326d36ecc505 | [
"Apache-2.0"
] | null | null | null | animate.py | manuelnaranjo/pyrealtimecharter | 72fa4faa132686ba2a401cc7dfff326d36ecc505 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Copyright 2010 Naranjo, Manuel Francisco <manuel@aircable.net>
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/... | 26.169231 | 82 | 0.619636 |
2d08a3431a7b7bdb644d552c4edd0dea46523c64 | 3,276 | py | Python | eval_bp.py | tkuri/irradiance_estimation | 3f7e0e8d4772222faad7257a70a8dec0198e4810 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T18:06:40.000Z | 2020-07-22T18:06:40.000Z | eval_bp.py | tkuri/irradiance_estimation | 3f7e0e8d4772222faad7257a70a8dec0198e4810 | [
"BSD-3-Clause"
] | null | null | null | eval_bp.py | tkuri/irradiance_estimation | 3f7e0e8d4772222faad7257a70a8dec0198e4810 | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import csv, os, argparse
if __name__ == '__main__':
main() | 39 | 220 | 0.603175 |
2d0993fa55c49c49655d93776ed8097eb1fd56f0 | 2,412 | py | Python | Ubiquitous Computing/src/raspberry/JSONFormater.py | Alvarohf/University-work | 407791f552da73c474bc8a75fb22627a75a2db5f | [
"MIT"
] | null | null | null | Ubiquitous Computing/src/raspberry/JSONFormater.py | Alvarohf/University-work | 407791f552da73c474bc8a75fb22627a75a2db5f | [
"MIT"
] | null | null | null | Ubiquitous Computing/src/raspberry/JSONFormater.py | Alvarohf/University-work | 407791f552da73c474bc8a75fb22627a75a2db5f | [
"MIT"
] | null | null | null |
import json
import time
from enum import Enum
from math import ceil
import datetime
| 33.041096 | 145 | 0.730514 |
2d09beee1a938763f1267c41d2e3b5efec33f46a | 1,335 | py | Python | midterm/problem5.py | MarcoDSilva/MIT6001x-Introduction-to-Computer-Science-and-Programming-in-Python | 7a62970e4f06c24e0d34c2ee5ad2c2377e9cdce8 | [
"MIT"
] | null | null | null | midterm/problem5.py | MarcoDSilva/MIT6001x-Introduction-to-Computer-Science-and-Programming-in-Python | 7a62970e4f06c24e0d34c2ee5ad2c2377e9cdce8 | [
"MIT"
] | null | null | null | midterm/problem5.py | MarcoDSilva/MIT6001x-Introduction-to-Computer-Science-and-Programming-in-Python | 7a62970e4f06c24e0d34c2ee5ad2c2377e9cdce8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 5 16:32:17 2020
Write a Python function that returns a list of keys in aDict that map to
integer values that are unique (i.e. values appear exactly once in aDict).
The list of keys you return should be sorted in increasing order.
(If aDict does not contain any unique v... | 26.7 | 79 | 0.589513 |
2d09d5c976fe0b439fd326a0507f29f1c53af7a3 | 4,149 | py | Python | testing/unit_tests/test_loader.py | MotionCorrect/ivadomed | 5e402fe6dc180847ad12bb813ba5b0431d243f04 | [
"MIT"
] | null | null | null | testing/unit_tests/test_loader.py | MotionCorrect/ivadomed | 5e402fe6dc180847ad12bb813ba5b0431d243f04 | [
"MIT"
] | 6 | 2021-03-24T16:23:29.000Z | 2021-04-08T15:22:53.000Z | testing/unit_tests/test_loader.py | MotionCorrect/ivadomed | 5e402fe6dc180847ad12bb813ba5b0431d243f04 | [
"MIT"
] | null | null | null | import os
import pytest
import csv_diff
import logging
import torch
from unit_tests.t_utils import remove_tmp_dir, create_tmp_dir, __data_testing_dir__, __tmp_dir__
from ivadomed.loader import utils as imed_loader_utils
from ivadomed.loader import loader as imed_loader
logger = logging.getLogger(__name__)
# TODO: ... | 42.336735 | 114 | 0.692215 |
2d0a276b47c37e24eec5f6d1ee16f632abf1a52e | 105 | py | Python | src/library/__init__.py | smiley-py/mailrobot | 3b79557af7cf08da76347738d7203577003832fc | [
"MIT"
] | null | null | null | src/library/__init__.py | smiley-py/mailrobot | 3b79557af7cf08da76347738d7203577003832fc | [
"MIT"
] | null | null | null | src/library/__init__.py | smiley-py/mailrobot | 3b79557af7cf08da76347738d7203577003832fc | [
"MIT"
] | null | null | null | from .scheduled import CustomScheduled
from .gmail import CustomGmail
from .outlook import CustomOutlook
| 26.25 | 38 | 0.857143 |
2d0be59b7bb1d28debf0ba11e1837d4e4a08540c | 2,637 | py | Python | slash/utils/__init__.py | kbh2o/slash | 532b7e3acdf46103ece5b86f21c29f9b58587289 | [
"BSD-3-Clause"
] | 70 | 2015-12-05T12:33:10.000Z | 2022-03-03T04:56:58.000Z | slash/utils/__init__.py | kbh2o/slash | 532b7e3acdf46103ece5b86f21c29f9b58587289 | [
"BSD-3-Clause"
] | 711 | 2015-10-06T11:01:48.000Z | 2022-02-09T12:40:47.000Z | slash/utils/__init__.py | kbh2o/slash | 532b7e3acdf46103ece5b86f21c29f9b58587289 | [
"BSD-3-Clause"
] | 37 | 2015-10-13T11:00:51.000Z | 2022-02-08T07:28:11.000Z | import functools
from ..ctx import context
from ..core.markers import repeat_marker
from ..core import requirements
from ..exceptions import SkipTest
def skip_test(*args):
"""
Skips the current test execution by raising a :class:`slash.exceptions.SkipTest`
exception. It can optionally receive a reason ar... | 34.246753 | 119 | 0.732651 |
2d0f2cb3dba067d1ddeaa732d402fb07400b6dc5 | 7,245 | py | Python | tests/document/tei/author_test.py | elifesciences/sciencebeam-parser | 66964f283612b8d6fa8a23ad8790292c1ec07651 | [
"MIT"
] | 13 | 2021-08-04T12:11:17.000Z | 2022-03-28T20:41:20.000Z | tests/document/tei/author_test.py | elifesciences/sciencebeam-parser | 66964f283612b8d6fa8a23ad8790292c1ec07651 | [
"MIT"
] | 33 | 2021-08-05T08:37:59.000Z | 2022-03-29T18:42:09.000Z | tests/document/tei/author_test.py | elifesciences/sciencebeam-parser | 66964f283612b8d6fa8a23ad8790292c1ec07651 | [
"MIT"
] | 1 | 2022-01-05T14:53:06.000Z | 2022-01-05T14:53:06.000Z | import logging
from lxml import etree
from sciencebeam_parser.document.layout_document import (
LayoutBlock
)
from sciencebeam_parser.document.semantic_document import (
SemanticAddressLine,
SemanticAffiliationAddress,
SemanticAuthor,
SemanticCountry,
SemanticDepartment,
SemanticGivenName,... | 41.164773 | 86 | 0.666943 |
2d101408df77d502c57edb58c6e74b6c893be284 | 1,345 | py | Python | labs/lab-09/checkpoint5.py | AayushSriram/oss-repo | 46817d341f4530d1505cc56aa3ed67de106f8c2a | [
"MIT"
] | null | null | null | labs/lab-09/checkpoint5.py | AayushSriram/oss-repo | 46817d341f4530d1505cc56aa3ed67de106f8c2a | [
"MIT"
] | null | null | null | labs/lab-09/checkpoint5.py | AayushSriram/oss-repo | 46817d341f4530d1505cc56aa3ed67de106f8c2a | [
"MIT"
] | null | null | null | from pymongo import MongoClient
from bson.objectid import ObjectId
from datetime import datetime as dt
import pprint
client = MongoClient()
db = client['mongo_db_lab']
defs = db['definitions']
def random_word_requester():
'''
This function should return a random word and its definition and also
log in the... | 33.625 | 73 | 0.669145 |
2d102ba963d0416b1e7dda9fdfd6232ee7b52e79 | 640 | py | Python | server/project/api_v1/migrations/0003_auto_20191020_1229.py | Utree/TRAGRAM | d994394d580296c6acccbc3e222454b883ffb4d5 | [
"MIT"
] | null | null | null | server/project/api_v1/migrations/0003_auto_20191020_1229.py | Utree/TRAGRAM | d994394d580296c6acccbc3e222454b883ffb4d5 | [
"MIT"
] | null | null | null | server/project/api_v1/migrations/0003_auto_20191020_1229.py | Utree/TRAGRAM | d994394d580296c6acccbc3e222454b883ffb4d5 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.8 on 2019-10-20 03:29
from django.db import migrations, models
| 26.666667 | 102 | 0.60625 |
2d12bbb1e89b0a3a7d504dd09f39cc0aa58d6b36 | 613 | py | Python | leads/migrations/0012_auto_20190521_0128.py | goplannr-samim/manager-app | cd5bf7f1fea28d51dea55e48fa69cc461520a878 | [
"MIT"
] | null | null | null | leads/migrations/0012_auto_20190521_0128.py | goplannr-samim/manager-app | cd5bf7f1fea28d51dea55e48fa69cc461520a878 | [
"MIT"
] | 8 | 2020-06-05T20:58:52.000Z | 2022-03-11T23:48:48.000Z | leads/migrations/0012_auto_20190521_0128.py | goplannr-samim/manager-app | cd5bf7f1fea28d51dea55e48fa69cc461520a878 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-05-20 19:58
from django.db import migrations, models
| 25.541667 | 89 | 0.595432 |
2d1379d95f7df0ce70b900f0765da4e8506a208a | 3,996 | py | Python | inference/_archive/pairwise_alignment_without_regularization.py | emitch/SEAMLeSS | cae21c67316ed36529fdc2e470a105a9f847975c | [
"MIT"
] | 4 | 2018-12-17T18:45:57.000Z | 2021-04-29T16:30:42.000Z | inference/_archive/pairwise_alignment_without_regularization.py | emitch/SEAMLeSS | cae21c67316ed36529fdc2e470a105a9f847975c | [
"MIT"
] | 19 | 2019-01-02T19:09:12.000Z | 2020-12-14T18:50:47.000Z | inference/_archive/pairwise_alignment_without_regularization.py | emitch/SEAMLeSS | cae21c67316ed36529fdc2e470a105a9f847975c | [
"MIT"
] | 2 | 2020-03-18T01:24:03.000Z | 2022-01-06T06:19:58.000Z | import sys
import torch
from args import get_argparser, parse_args, get_aligner, get_bbox
from os.path import join
if __name__ == '__main__':
parser = get_argparser()
parser.add_argument('--align_start',
help='align without vector voting the 2nd & 3rd sections, otherwise copy them', action='store_true')
args... | 36.327273 | 104 | 0.696947 |
2d146ad7b735919c96c63ca899f284a422b94a05 | 7,406 | py | Python | ansys/dpf/core/operators/math/add_fc.py | jfthuong/pydpf-core | bf2895ebc546e0004f759289bfc9a23196559ac3 | [
"MIT"
] | 18 | 2021-10-16T10:38:29.000Z | 2022-03-29T11:26:42.000Z | ansys/dpf/core/operators/math/add_fc.py | jfthuong/pydpf-core | bf2895ebc546e0004f759289bfc9a23196559ac3 | [
"MIT"
] | 79 | 2021-10-11T23:18:54.000Z | 2022-03-29T14:53:14.000Z | ansys/dpf/core/operators/math/add_fc.py | jfthuong/pydpf-core | bf2895ebc546e0004f759289bfc9a23196559ac3 | [
"MIT"
] | 5 | 2021-11-29T18:35:37.000Z | 2022-03-16T16:49:21.000Z | """
add_fc
===============
Autogenerated DPF operator classes.
"""
from warnings import warn
from ansys.dpf.core.dpf_operator import Operator
from ansys.dpf.core.inputs import Input, _Inputs
from ansys.dpf.core.outputs import Output, _Outputs
from ansys.dpf.core.operators.specification import PinSpecification, Specific... | 32.340611 | 90 | 0.591007 |
2d146bb820a85f7d6fb3444bdf5489473f1b1fff | 2,261 | py | Python | cms_helpers/cms_toolbars.py | jonasundderwolf/django-cms-helpers | d28e3516fa7e17cb51f87c40ba1d66f692106975 | [
"MIT"
] | null | null | null | cms_helpers/cms_toolbars.py | jonasundderwolf/django-cms-helpers | d28e3516fa7e17cb51f87c40ba1d66f692106975 | [
"MIT"
] | 5 | 2019-03-19T12:18:13.000Z | 2020-09-29T19:08:24.000Z | cms_helpers/cms_toolbars.py | jonasundderwolf/django-cms-helpers | d28e3516fa7e17cb51f87c40ba1d66f692106975 | [
"MIT"
] | 2 | 2020-09-18T09:47:02.000Z | 2020-09-29T13:22:58.000Z | from cms.extensions.toolbar import ExtensionToolbar
from cms.utils import get_language_list
from django.utils.encoding import force_text
from django.utils.translation import get_language_info
| 38.982759 | 79 | 0.634233 |
2d14eb741016a57b6a2f35372262d7462258b606 | 838 | py | Python | astropath/utilities/version.py | AstroPathJHU/AstroPathPipeline | 3b0d9cdad18b84e55d00724f89f09bc7f7464c98 | [
"Apache-2.0"
] | 14 | 2021-06-14T05:05:58.000Z | 2022-01-15T14:07:30.000Z | astropath/utilities/version.py | AstroPathJHU/AstroPathPipeline | 3b0d9cdad18b84e55d00724f89f09bc7f7464c98 | [
"Apache-2.0"
] | null | null | null | astropath/utilities/version.py | AstroPathJHU/AstroPathPipeline | 3b0d9cdad18b84e55d00724f89f09bc7f7464c98 | [
"Apache-2.0"
] | 2 | 2021-08-14T16:22:50.000Z | 2022-01-16T17:47:07.000Z | import datetime, os, pkg_resources, re, setuptools_scm
from .. import __name__ as package_name
try:
if int(os.environ.get("_ASTROPATH_VERSION_NO_GIT", 0)):
env_var_no_git = True
raise LookupError
env_var_no_git = False
astropathversion = "v"+setuptools_scm.get_version(root="../..", relative_to=__file__)
... | 44.105263 | 141 | 0.731504 |
2d15860238c72c1cb7074178d1db48f26a5c4c75 | 8,665 | py | Python | scripts/gazebo_move_object.py | RCPRG-ros-pkg/rcprg_gazebo_utils | d50151280f430d1b0894b12beb4071906ac726ff | [
"BSD-3-Clause"
] | null | null | null | scripts/gazebo_move_object.py | RCPRG-ros-pkg/rcprg_gazebo_utils | d50151280f430d1b0894b12beb4071906ac726ff | [
"BSD-3-Clause"
] | null | null | null | scripts/gazebo_move_object.py | RCPRG-ros-pkg/rcprg_gazebo_utils | d50151280f430d1b0894b12beb4071906ac726ff | [
"BSD-3-Clause"
] | 1 | 2022-02-08T14:36:16.000Z | 2022-02-08T14:36:16.000Z | #!/usr/bin/env python
## Provides interactive 6D pose marker and allows moving object in Gazebo.
# @ingroup utilities
# @file gazebo_move_object.py
# @namespace scripts.gazebo_move_object Provides interactive 6D pose marker and allows moving object in Gazebo
# Copyright (c) 2017, Robot Control and Pattern Recognition... | 42.47549 | 127 | 0.698211 |
2d15b122b23c15b02e89dc3b15d9d5d2f2b7f067 | 7,835 | py | Python | MTHMBE/views.py | jvprosser/MTHMBE | 14a76e69a36fd3f62f2f75d3ea2b8b7aacda5743 | [
"Apache-2.0"
] | null | null | null | MTHMBE/views.py | jvprosser/MTHMBE | 14a76e69a36fd3f62f2f75d3ea2b8b7aacda5743 | [
"Apache-2.0"
] | null | null | null | MTHMBE/views.py | jvprosser/MTHMBE | 14a76e69a36fd3f62f2f75d3ea2b8b7aacda5743 | [
"Apache-2.0"
] | null | null | null | from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore
from flask import Flask
from flask_apscheduler import APScheduler
from flask_sqlalchemy import SQLAlchemy
from MTHMBE import app
from models import RMStats,Impala_Stats
import core
#import time
from time import mktime, strftime,localtime
from pytz import t... | 35.452489 | 188 | 0.656669 |
2d16887fdcae384895d88c96a4d2415a3d2e37ee | 885 | py | Python | 02 - Regresor_KNN.py | FelipePepe/Curso_MachineLearning | 37d46fab19f360ec9608b085ea1f64aee1f9ab7f | [
"MIT"
] | 1 | 2019-08-08T10:42:30.000Z | 2019-08-08T10:42:30.000Z | 02 - Regresor_KNN.py | FelipePepe/Curso_MachineLearning | 37d46fab19f360ec9608b085ea1f64aee1f9ab7f | [
"MIT"
] | null | null | null | 02 - Regresor_KNN.py | FelipePepe/Curso_MachineLearning | 37d46fab19f360ec9608b085ea1f64aee1f9ab7f | [
"MIT"
] | null | null | null | ###
### Precios de casas en boston
###
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression, Ridge
from sklearn.neighbors import KNeighborsRegressor
boston = load_boston()
# Visualiza el nombre de los valores de los datos.
pri... | 22.692308 | 75 | 0.769492 |
2d16e13ee85db57fbfc265de62da15cc3c980992 | 2,699 | py | Python | docarray/array/storage/elastic/seqlike.py | jina-ai/docarray | 24301254d95fd755fb6e821df6bc2c6b977b138b | [
"Apache-2.0"
] | 591 | 2022-01-09T14:39:59.000Z | 2022-03-31T13:19:39.000Z | docarray/array/storage/elastic/seqlike.py | jina-ai/docarray | 24301254d95fd755fb6e821df6bc2c6b977b138b | [
"Apache-2.0"
] | 210 | 2022-01-10T07:59:29.000Z | 2022-03-31T14:49:18.000Z | docarray/array/storage/elastic/seqlike.py | jina-ai/docarray | 24301254d95fd755fb6e821df6bc2c6b977b138b | [
"Apache-2.0"
] | 40 | 2022-01-09T14:52:20.000Z | 2022-03-31T07:59:45.000Z | from typing import Union, Iterable, Dict
from ..base.seqlike import BaseSequenceLikeMixin
from .... import Document
| 35.513158 | 90 | 0.616895 |
2d18d621b88951046d025760b37ab1a6e58eca7a | 15,331 | py | Python | quantdom/ui.py | HiteshMah-Jan/Quantdom | e05304006d3805f941d5f1033135730287b447e6 | [
"Apache-2.0"
] | 578 | 2017-11-08T02:53:45.000Z | 2022-03-27T10:46:15.000Z | quantdom/ui.py | HiteshMah-Jan/Quantdom | e05304006d3805f941d5f1033135730287b447e6 | [
"Apache-2.0"
] | 18 | 2018-02-03T14:49:42.000Z | 2022-01-25T13:30:57.000Z | quantdom/ui.py | HiteshMah-Jan/Quantdom | e05304006d3805f941d5f1033135730287b447e6 | [
"Apache-2.0"
] | 192 | 2017-12-03T16:03:06.000Z | 2022-03-29T19:29:19.000Z | """Ui."""
import logging
import logging.config
import os.path
from datetime import datetime
from PyQt5 import QtCore, QtGui
from .lib import (
EquityChart,
OptimizatimizedResultsTable,
OptimizationTable,
Portfolio,
QuotesChart,
ResultsTable,
Settings,
Symbol,
TradesTable,
get_... | 33.843267 | 79 | 0.662775 |