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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5b04b9b27666fa97a4c16c1aed953d2ea9e8b60 | 824 | py | Python | 1st_week/06_find_first_unique_character_sparta_ver.py | ysong0504/algorithm | 76bfef16bd5bdc13b7ad260ee5f4e9dc62316403 | [
"MIT"
] | null | null | null | 1st_week/06_find_first_unique_character_sparta_ver.py | ysong0504/algorithm | 76bfef16bd5bdc13b7ad260ee5f4e9dc62316403 | [
"MIT"
] | null | null | null | 1st_week/06_find_first_unique_character_sparta_ver.py | ysong0504/algorithm | 76bfef16bd5bdc13b7ad260ee5f4e9dc62316403 | [
"MIT"
] | null | null | null |
result = find_not_repeating_first_character
print(" = d =", result("abadabac"))
print(" = c =", result("aabbcddd"))
print(" =_ =", result("aaaaaaaa"))
| 29.428571 | 71 | 0.661408 |
633433b979d95716a0827e164f37cd9e29c19d6a | 1,782 | py | Python | simulator.py | baumrasen/JSN-SR04T-Serial-Simulator | 883ffac31dce1d9a7456af8282fc1bc24a09d0a9 | [
"MIT"
] | null | null | null | simulator.py | baumrasen/JSN-SR04T-Serial-Simulator | 883ffac31dce1d9a7456af8282fc1bc24a09d0a9 | [
"MIT"
] | null | null | null | simulator.py | baumrasen/JSN-SR04T-Serial-Simulator | 883ffac31dce1d9a7456af8282fc1bc24a09d0a9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import time
import serial
# create serial
ser = serial.Serial(
port='/dev/ttyAMA1', #Replace ttyAMA1 for your needs
baudrate = 9600,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
timeout=0.05
)
# edit here for... | 23.76 | 102 | 0.530864 |
633477a8a78066ac7ae776d824603b118e7b3ca3 | 2,688 | py | Python | binary_image_classifier/simple_keras.py | bsaikiran535/catsdogs | 07a0b15bc5e65cd68d355feb64a622b279b78fd4 | [
"MIT"
] | null | null | null | binary_image_classifier/simple_keras.py | bsaikiran535/catsdogs | 07a0b15bc5e65cd68d355feb64a622b279b78fd4 | [
"MIT"
] | null | null | null | binary_image_classifier/simple_keras.py | bsaikiran535/catsdogs | 07a0b15bc5e65cd68d355feb64a622b279b78fd4 | [
"MIT"
] | null | null | null | from IPython import embed
from keras.layers import Conv2D, Activation, MaxPooling2D, Flatten, Dense, Dropout
from keras.models import Sequential
from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array
TRAIN_PATH = '/Users/sai/dev/datasets/catsdogs-kaggle/data2/train/'
# Constants
NUM_CHANNELS... | 25.358491 | 88 | 0.649926 |
63348b523a1e8dad3500b346984e69a09705dc2d | 1,326 | py | Python | NicBot/cogs/db/utils.py | nicdgonzalez/NicBot-discord.py | 3a21510c1e4e2c933f48708478ae792159324a7c | [
"MIT"
] | null | null | null | NicBot/cogs/db/utils.py | nicdgonzalez/NicBot-discord.py | 3a21510c1e4e2c933f48708478ae792159324a7c | [
"MIT"
] | null | null | null | NicBot/cogs/db/utils.py | nicdgonzalez/NicBot-discord.py | 3a21510c1e4e2c933f48708478ae792159324a7c | [
"MIT"
] | null | null | null | from json import dump, load
from os import getcwd, mkdir
from os.path import exists
from ...errors import UpdateNewFile
| 22.862069 | 63 | 0.436652 |
633516036af3a4c3e8ae99b1bb4a34061f655d7d | 959 | py | Python | Reacher-PyBullet/00_Random_Gym.py | hyunjun529/Learn-OpenAI-GYM | 51e1f3dc4cdfa7582690fc8338918aeb9671f4e3 | [
"MIT"
] | null | null | null | Reacher-PyBullet/00_Random_Gym.py | hyunjun529/Learn-OpenAI-GYM | 51e1f3dc4cdfa7582690fc8338918aeb9671f4e3 | [
"MIT"
] | null | null | null | Reacher-PyBullet/00_Random_Gym.py | hyunjun529/Learn-OpenAI-GYM | 51e1f3dc4cdfa7582690fc8338918aeb9671f4e3 | [
"MIT"
] | null | null | null | import gym
from gym import wrappers
env = gym.make('Reacher-v1')
env.reset()
env.render()
outdir = './log/'
f_act = open(outdir + 'log_act.txt', 'w')
f_obs = open(outdir + 'log_obs.txt', 'w')
f_rwd = open(outdir + 'log_rwd.txt', 'w')
f_info = open(outdir + 'log_info.txt', 'w')
env = wrappers.Monitor(env, directory=... | 25.236842 | 68 | 0.606882 |
633589fb97c7e506f46870a065a0488ff3565e70 | 20 | py | Python | ckan_cloud_operator/providers/ckan/deployment/drone/constants.py | pdelboca/ckan-cloud-operator | 20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61 | [
"MIT"
] | 14 | 2019-11-18T12:01:03.000Z | 2021-09-15T15:29:50.000Z | ckan_cloud_operator/providers/ckan/deployment/drone/constants.py | pdelboca/ckan-cloud-operator | 20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61 | [
"MIT"
] | 52 | 2019-09-09T14:22:41.000Z | 2021-09-29T08:29:24.000Z | ckan_cloud_operator/providers/ckan/deployment/drone/constants.py | pdelboca/ckan-cloud-operator | 20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61 | [
"MIT"
] | 8 | 2019-10-05T12:46:25.000Z | 2021-09-15T15:13:05.000Z | PROVIDER_ID='drone'
| 10 | 19 | 0.8 |
63359a3288cdf817808c76a0f398a98386d7b22c | 1,815 | py | Python | run_pipeline_beaco2n.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | run_pipeline_beaco2n.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | run_pipeline_beaco2n.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | """
This can be used to run the whole data scrape, process and export pipeline.
If you just want to run a single state see the scripts in the beaco2n/ directory.
"""
import argparse
from gather.pipeline import run_beaco2n
if __name__ == "__main__":
example_text = """Usage:
$ python run_pipeline_beaco2n.py --... | 34.245283 | 126 | 0.710744 |
633602ac685ea404ebc217673c3a63149c5038b0 | 3,412 | py | Python | app/forms.py | nickma101/2bij3 | d0a74cc1457470c711e97138865abd86aa320b5a | [
"MIT"
] | null | null | null | app/forms.py | nickma101/2bij3 | d0a74cc1457470c711e97138865abd86aa320b5a | [
"MIT"
] | null | null | null | app/forms.py | nickma101/2bij3 | d0a74cc1457470c711e97138865abd86aa320b5a | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
import wtforms
from wtforms import StringField, PasswordField, BooleanField, RadioField, SelectField, SubmitField, SelectMultipleField, TextAreaField, widgets, IntegerField
from wtforms.validators import DataRequired, ValidationError, Email, EqualTo, InputRequired, Length, NumberRange
f... | 46.108108 | 219 | 0.723916 |
63375c19200ea5c4ad796897e81df65ed7bb6676 | 3,176 | py | Python | phosphodisco/tests/test_classes.py | ruggleslab/phosphodisco-1 | 4663e2c97b96304483234a80bc9b35befbf92795 | [
"MIT"
] | 1 | 2020-10-30T18:08:58.000Z | 2020-10-30T18:08:58.000Z | phosphodisco/tests/test_classes.py | ruggleslab/phosphodisco-1 | 4663e2c97b96304483234a80bc9b35befbf92795 | [
"MIT"
] | 5 | 2020-09-09T21:53:44.000Z | 2021-11-09T00:43:06.000Z | phosphodisco/tests/test_classes.py | ruggleslab/phosphodisco-1 | 4663e2c97b96304483234a80bc9b35befbf92795 | [
"MIT"
] | 3 | 2020-05-11T14:46:31.000Z | 2021-08-20T19:22:34.000Z | import phosphodisco as phdc
import numpy as np
import pandas as pd
seed = 5
np.random.seed(seed)
prot = pd.util.testing.makeDataFrame()
phospho = pd.util.testing.makeDataFrame()
phospho.index = pd.MultiIndex.from_tuples(
[(prot.index[np.random.randint(0, 15)], ind) for ind in phospho.index]
)
# phospho = phd... | 34.901099 | 112 | 0.68199 |
6337fe4a780a9017d4452a00d6c6cd11afc30a4d | 6,500 | py | Python | parsl/tests/configs/user_opts.py | vkhodygo/parsl | ce2552caed9d223c3d8a84c16f830abc5f926331 | [
"Apache-2.0"
] | 1 | 2020-11-21T17:32:09.000Z | 2020-11-21T17:32:09.000Z | parsl/tests/configs/user_opts.py | vkhodygo/parsl | ce2552caed9d223c3d8a84c16f830abc5f926331 | [
"Apache-2.0"
] | null | null | null | parsl/tests/configs/user_opts.py | vkhodygo/parsl | ce2552caed9d223c3d8a84c16f830abc5f926331 | [
"Apache-2.0"
] | 1 | 2022-03-09T10:51:12.000Z | 2022-03-09T10:51:12.000Z | """
Specification of user-specific configuration options.
The fields must be configured separately for each user. To disable any associated configurations, comment
out the entry.
User specific overrides that should not go in version control can be set by creating a
file called local_user_opts.py, which declares a dic... | 39.156627 | 149 | 0.616769 |
6338d410ae60bec391fb5bbc9bdfc0b712ca6028 | 1,771 | py | Python | controller/notebook_menu.py | tuannguyendang/montypython | c0b8ff7a8130e811ba16bfab8d5e013eac37f432 | [
"Apache-2.0"
] | null | null | null | controller/notebook_menu.py | tuannguyendang/montypython | c0b8ff7a8130e811ba16bfab8d5e013eac37f432 | [
"Apache-2.0"
] | null | null | null | controller/notebook_menu.py | tuannguyendang/montypython | c0b8ff7a8130e811ba16bfab8d5e013eac37f432 | [
"Apache-2.0"
] | null | null | null | import sys
from model import NoteBook
if __name__ == '__main__':
NoteBookMenu().run()
| 24.260274 | 78 | 0.52061 |
6339d0b5926989fda79429ab96aca5d2ce51621f | 5,500 | py | Python | prey_and_pred_size.py | gimon0330/Natural-Selection-Simulator | 171a34a901e6d863a8fb179a862e7dc4bc84e495 | [
"Apache-2.0"
] | 1 | 2021-11-12T12:33:36.000Z | 2021-11-12T12:33:36.000Z | prey_and_pred_size.py | gimon0330/Natural-Selection-Simulator | 171a34a901e6d863a8fb179a862e7dc4bc84e495 | [
"Apache-2.0"
] | null | null | null | prey_and_pred_size.py | gimon0330/Natural-Selection-Simulator | 171a34a901e6d863a8fb179a862e7dc4bc84e495 | [
"Apache-2.0"
] | null | null | null | import pygame, random, time, sys, math
pygame.init()
SCREEN_WIDTH = 1080
SCREEN_HEIGHT = 720
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
pygame.display.set_caption(" ")
clock = pygame.time.Clock()
screen.fill((255,255,255))
all_sprites = pygame.sprite.Group()
predetor_spri... | 29.72973 | 124 | 0.535091 |
6339f1ab281fecc21a9c0911b00b070cc3487a59 | 1,300 | py | Python | Homework3.py | msalum/Phyton-TkInter | b4ee45f6703d0a584970e059438e92ac8dcb0f9f | [
"MIT"
] | null | null | null | Homework3.py | msalum/Phyton-TkInter | b4ee45f6703d0a584970e059438e92ac8dcb0f9f | [
"MIT"
] | null | null | null | Homework3.py | msalum/Phyton-TkInter | b4ee45f6703d0a584970e059438e92ac8dcb0f9f | [
"MIT"
] | null | null | null | from tkinter import *
import tkinter.scrolledtext as scrl
from tkinter import messagebox
import tkinter.filedialog as tkfd
# SAVE
# OPEN
# CLOSE
#GUI
root = Tk()
root.title("Python Notepad")
root.geometry("640x480")
frame1 = Frame(
master = root
)
frame1.pack(fill='both', expand='yes')
# MENU
menuBar = Me... | 20 | 128 | 0.672308 |
633abef67a261f6f9857eba9e728f553af7a9bfd | 4,403 | py | Python | moto/mediapackage/responses.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 1 | 2021-12-12T04:23:06.000Z | 2021-12-12T04:23:06.000Z | moto/mediapackage/responses.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 4 | 2017-09-30T07:52:52.000Z | 2021-12-13T06:56:55.000Z | moto/mediapackage/responses.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 2 | 2021-11-24T08:05:43.000Z | 2021-11-25T16:18:48.000Z | from __future__ import unicode_literals
from moto.core.responses import BaseResponse
from .models import mediapackage_backends
import json
| 40.768519 | 84 | 0.684988 |
633af4736f589b2ac6076fac4005749e84b59aa5 | 1,453 | py | Python | gsnodegraph/graph/btn.py | iwoithe/gsnodegraph | 54450c6703ac9f75b69f39c8a4490cab7d9a965a | [
"Apache-2.0"
] | 14 | 2021-05-19T15:45:24.000Z | 2022-03-29T21:31:52.000Z | gsnodegraph/graph/btn.py | iwoithe/gsnodegraph | 54450c6703ac9f75b69f39c8a4490cab7d9a965a | [
"Apache-2.0"
] | 9 | 2021-05-02T02:34:12.000Z | 2022-02-18T16:46:22.000Z | gsnodegraph/graph/btn.py | iwoithe/gsnodegraph | 54450c6703ac9f75b69f39c8a4490cab7d9a965a | [
"Apache-2.0"
] | 2 | 2021-09-28T22:18:23.000Z | 2021-11-21T20:55:32.000Z |
import wx
from gsnodegraph.constants import (BTN_NORMAL_COLOR, BTN_CLICKED_COLOR,
BTN_FOCUSED_COLOR)
from gsnodegraph.assets import ICON_ADD_NODE
| 25.946429 | 77 | 0.61872 |
633cbdf44eb8244abef9d93cca4e8be91fd33dc8 | 259 | py | Python | Lib/async/test/test_daytime.py | pyparallel/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | Lib/async/test/test_daytime.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | Lib/async/test/test_daytime.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | import async
import async.services
QOTD_IP = '10.211.55.3'
QOTD_PORT = 20017
QOTD_DATA = b'An apple a day keeps the doctor away.\r\n'
server = async.server('10.211.55.3', 20013)
async.register(transport=server, protocol=async.services.Daytime)
async.run()
| 21.583333 | 65 | 0.749035 |
633cfa8e0c87a2f94a51376a2674ae1d228de67a | 1,211 | py | Python | dev_tools/text_translate.py | Torivon/MiniAdventure | a0f9873e5a3ae772ef9dc47cfaa944a48fae6bb4 | [
"MIT"
] | 5 | 2015-12-20T15:07:50.000Z | 2021-08-12T18:20:53.000Z | dev_tools/text_translate.py | Torivon/MiniAdventure | a0f9873e5a3ae772ef9dc47cfaa944a48fae6bb4 | [
"MIT"
] | 86 | 2016-01-07T22:28:53.000Z | 2016-12-13T19:19:28.000Z | dev_tools/text_translate.py | Torivon/MiniAdventure | a0f9873e5a3ae772ef9dc47cfaa944a48fae6bb4 | [
"MIT"
] | 3 | 2016-01-09T04:15:52.000Z | 2016-12-31T02:47:18.000Z | import sys
import struct
if len(sys.argv) == 1:
sys.exit("Must include a file to process")
with open(sys.argv[1]) as input_file:
header_file = ""
data_file = ""
text_dict = {}
count = 0
for line in input_file.readlines():
if count == 0:
header_file = line.strip()
... | 25.229167 | 57 | 0.501239 |
633f13ba50e5024214a5521c3bb7da838e21a64e | 918 | py | Python | backee/model/items.py | pruh/backee | 3e88d799a50f75033ae15d6c16655da8ae791886 | [
"MIT"
] | null | null | null | backee/model/items.py | pruh/backee | 3e88d799a50f75033ae15d6c16655da8ae791886 | [
"MIT"
] | 2 | 2020-01-22T22:21:02.000Z | 2020-01-22T22:28:37.000Z | backee/model/items.py | pruh/backee | 3e88d799a50f75033ae15d6c16655da8ae791886 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Tuple, Dict, Optional
from abc import ABC, abstractmethod
from backee.model.db_connectors import DbConnector
from backee.model.rotation_strategy import RotationStrategy
| 17.653846 | 59 | 0.724401 |
633fe84973c2e35383e77383db0029a500fbf5d1 | 578 | py | Python | daemon.py | hyoungseok/corona | 19c327ab338c64335fe7f5352b8a07de7f65a153 | [
"Apache-2.0"
] | null | null | null | daemon.py | hyoungseok/corona | 19c327ab338c64335fe7f5352b8a07de7f65a153 | [
"Apache-2.0"
] | null | null | null | daemon.py | hyoungseok/corona | 19c327ab338c64335fe7f5352b8a07de7f65a153 | [
"Apache-2.0"
] | null | null | null | import os
import re
import time
import util
start_pattern = re.compile("^start_[a-zA-Z0-9]+$")
print(f"startDaemon={int(time.time())}")
while os.path.exists(f"state/daemon"):
time.sleep(5)
print(f"aliveCheck={int(time.time())}")
file_list = os.listdir("state")
start_match = list(filter(start_pattern.... | 27.52381 | 66 | 0.650519 |
634048ca3fe820c1580baa3d86d72e8e2f474b56 | 352 | py | Python | django_eveonline_group_states/migrations/0003_remove_groupstate_default.py | KryptedGaming/django-group-states | 2c37ca53604eef5ca77c2bd0c8bce018387e090b | [
"MIT"
] | null | null | null | django_eveonline_group_states/migrations/0003_remove_groupstate_default.py | KryptedGaming/django-group-states | 2c37ca53604eef5ca77c2bd0c8bce018387e090b | [
"MIT"
] | 1 | 2020-11-24T05:01:30.000Z | 2020-12-29T16:09:11.000Z | django_eveonline_group_states/migrations/0003_remove_groupstate_default.py | KryptedGaming/django-eveonline-group-states | 2c37ca53604eef5ca77c2bd0c8bce018387e090b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-11-05 14:10
from django.db import migrations
| 19.555556 | 66 | 0.619318 |
63411ef904c5bb1a60b8f39984a7821e83fe65a2 | 2,868 | py | Python | Project-:-Mars-Crater/code.py | sureshchaudhari13/ga-learner-dsmp-repo | 0a2d726b1f7be8c31592f5650e7dbd3f23cdb609 | [
"MIT"
] | null | null | null | Project-:-Mars-Crater/code.py | sureshchaudhari13/ga-learner-dsmp-repo | 0a2d726b1f7be8c31592f5650e7dbd3f23cdb609 | [
"MIT"
] | null | null | null | Project-:-Mars-Crater/code.py | sureshchaudhari13/ga-learner-dsmp-repo | 0a2d726b1f7be8c31592f5650e7dbd3f23cdb609 | [
"MIT"
] | null | null | null | # import libraries
import warnings
warnings.filterwarnings('ignore')
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
import pandas as pd
# Code starts here
# Read the data
df = pd.read_csv(filepath_or_buffer=path,compression='zip')
print(df.head())
# Dependent vari... | 21.89313 | 126 | 0.766736 |
63418a81f50d1bd2426bb311f19ae09d97821011 | 63 | py | Python | test.py | jessicafinnie/ExampleForClass | df675e5889b7851518bd14419057288b24187551 | [
"MIT"
] | null | null | null | test.py | jessicafinnie/ExampleForClass | df675e5889b7851518bd14419057288b24187551 | [
"MIT"
] | null | null | null | test.py | jessicafinnie/ExampleForClass | df675e5889b7851518bd14419057288b24187551 | [
"MIT"
] | null | null | null | # Testing commit, push, pull in PyCharm
print("Hello, world!") | 21 | 39 | 0.714286 |
63430951fe67dd703e48e204907feb9ad2486b73 | 345 | py | Python | sispo/plugins/plugins.py | oknuutti/sispo | c54019fca4e941a83cc78eda1356b8441bd04d17 | [
"BSD-2-Clause"
] | null | null | null | sispo/plugins/plugins.py | oknuutti/sispo | c54019fca4e941a83cc78eda1356b8441bd04d17 | [
"BSD-2-Clause"
] | null | null | null | sispo/plugins/plugins.py | oknuutti/sispo | c54019fca4e941a83cc78eda1356b8441bd04d17 | [
"BSD-2-Clause"
] | null | null | null | import importlib
| 31.363636 | 75 | 0.663768 |
6343280840016ec3b7f24d4262cab88630fb8ed2 | 1,309 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension EXT.blend_color
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_blend_color'
_DEPRECATED = False
GL_CONSTANT_COLOR_EXT ... | 42.225806 | 96 | 0.811306 |
63439e6172bf80edaf0341030b779950b0eec1a7 | 165 | py | Python | python_runtime/exonum_runtime/merkledb/indices/__init__.py | alekseysidorov/exonum-python-backend | fae38042acba4c7fd9ca05f6afa1e9bec54dd86d | [
"Apache-2.0"
] | 2 | 2019-10-06T17:23:08.000Z | 2019-10-07T09:35:59.000Z | python_runtime/exonum_runtime/merkledb/indices/__init__.py | alekseysidorov/exonum-python-backend | fae38042acba4c7fd9ca05f6afa1e9bec54dd86d | [
"Apache-2.0"
] | null | null | null | python_runtime/exonum_runtime/merkledb/indices/__init__.py | alekseysidorov/exonum-python-backend | fae38042acba4c7fd9ca05f6afa1e9bec54dd86d | [
"Apache-2.0"
] | 1 | 2020-01-18T09:29:30.000Z | 2020-01-18T09:29:30.000Z | """TODO"""
from .list_index import ListIndex
from .map_index import MapIndex
from .proof_list_index import ProofListIndex
from .proof_map_index import ProofMapIndex
| 27.5 | 44 | 0.836364 |
63446e4d927fb53761761a122344b0bc8d13ee0c | 46 | py | Python | captum/__init__.py | ashkan-software/captum | b8b7d4b10a9646e4da827635d6947499fbde3326 | [
"BSD-3-Clause"
] | 1 | 2020-02-02T19:23:01.000Z | 2020-02-02T19:23:01.000Z | captum/__init__.py | ashkan-software/captum | b8b7d4b10a9646e4da827635d6947499fbde3326 | [
"BSD-3-Clause"
] | 7 | 2020-09-07T15:59:35.000Z | 2022-02-26T19:34:09.000Z | captum/__init__.py | orionr/captum-2 | 06009a0c68e56f549964a132ba9c4c4f418af7bd | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
__version__ = "0.2.0"
| 11.5 | 22 | 0.652174 |
63470210edc52e9575d1a514bb0b181522c66e68 | 1,857 | py | Python | utilities/mininet/test_topo.py | osinstom/p4rt-ovs | c3b1c38d47ea47175b38f92a9f0064ca15bb28e4 | [
"Apache-2.0"
] | 1 | 2020-04-29T20:35:07.000Z | 2020-04-29T20:35:07.000Z | utilities/mininet/test_topo.py | osinstom/p4rt-ovs | c3b1c38d47ea47175b38f92a9f0064ca15bb28e4 | [
"Apache-2.0"
] | null | null | null | utilities/mininet/test_topo.py | osinstom/p4rt-ovs | c3b1c38d47ea47175b38f92a9f0064ca15bb28e4 | [
"Apache-2.0"
] | null | null | null | import argparse
from mininet.net import Mininet
from mininet.topo import Topo
from mininet.topolib import TreeTopo
from mininet.log import setLogLevel
from mininet.cli import CLI
from mininet.node import OVSSwitch
from p4rtovs_mininet import P4rtOVSSwitch
# def createSwitch(program=None):
# """ Helper class that... | 24.116883 | 102 | 0.630587 |
63495a91beceb69204b6a7d9ec3a3f68467b0207 | 4,611 | py | Python | peaksIdentification/plotter.py | andreagia/peaks-identification | ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a | [
"MIT"
] | null | null | null | peaksIdentification/plotter.py | andreagia/peaks-identification | ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a | [
"MIT"
] | null | null | null | peaksIdentification/plotter.py | andreagia/peaks-identification | ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a | [
"MIT"
] | null | null | null |
import matplotlib.pyplot as plt
import plotly.express as px
import pandas as pd
# from scipy.spatial import distance_matrix
import plotly.graph_objects as go
from peaksIdentification.postprocessing import sliding_avg
import numpy as np
| 27.446429 | 112 | 0.52288 |
6349f6b9df91ef831b4fab9e98c2dfc2a30fb406 | 50 | py | Python | jellyConnect/__init_.py | jay4842/jellyDatabaseConnector | 6d5528db245e25b2d4ef19148337635596703145 | [
"MIT"
] | null | null | null | jellyConnect/__init_.py | jay4842/jellyDatabaseConnector | 6d5528db245e25b2d4ef19148337635596703145 | [
"MIT"
] | null | null | null | jellyConnect/__init_.py | jay4842/jellyDatabaseConnector | 6d5528db245e25b2d4ef19148337635596703145 | [
"MIT"
] | null | null | null | from connection import *
from queryEngine import * | 25 | 25 | 0.82 |
634b5edb577cf025eb6e507290b5b9b48d5eaebf | 2,776 | py | Python | fault/value_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 31 | 2018-07-16T15:03:14.000Z | 2022-03-10T08:36:09.000Z | fault/value_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 216 | 2018-07-18T20:00:34.000Z | 2021-10-05T17:40:47.000Z | fault/value_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 10 | 2019-02-17T00:56:58.000Z | 2021-11-05T13:31:37.000Z | import fault
import magma
import magma as m
from magma.protocol_type import MagmaProtocol
from hwtypes import BitVector, Bit, FPVector
from fault.value import AnyValue, UnknownValue, HiZ
from fault.ms_types import RealType
from fault.array import Array
from fault.select_path import SelectPath
from hwtypes.adt import En... | 31.545455 | 80 | 0.668588 |
634ed0d52bdd4c99e5cef73d6d695c8443f52073 | 752 | py | Python | minicom.py | nepeat/minicom-tone-gen | e03c627a86075f3ad7af0f576a683634504dd910 | [
"MIT"
] | null | null | null | minicom.py | nepeat/minicom-tone-gen | e03c627a86075f3ad7af0f576a683634504dd910 | [
"MIT"
] | null | null | null | minicom.py | nepeat/minicom-tone-gen | e03c627a86075f3ad7af0f576a683634504dd910 | [
"MIT"
] | 1 | 2021-12-18T02:04:04.000Z | 2021-12-18T02:04:04.000Z | from playsound import playsound
import tonemap
| 37.6 | 98 | 0.630319 |
634ed756936c1307192650998b99ba8d51030a09 | 717 | py | Python | ps1/ps1b.py | willcohen/mit-6.00sc-python | 68d83c4baff918aed56e5ec6e634b620ed986d8e | [
"MIT"
] | null | null | null | ps1/ps1b.py | willcohen/mit-6.00sc-python | 68d83c4baff918aed56e5ec6e634b620ed986d8e | [
"MIT"
] | null | null | null | ps1/ps1b.py | willcohen/mit-6.00sc-python | 68d83c4baff918aed56e5ec6e634b620ed986d8e | [
"MIT"
] | null | null | null | # Problem Set 1
outstanding = float(raw_input('''Enter the outstanding balance on your
credit card: '''))
interestrate = float(raw_input('''Enter the annual credit card
interest rate as a decimal: '''))
minpay = 0
balance = outstanding
while balance > 0:
minpay += 10
updatedbalance = outstanding
for x in ... | 28.68 | 72 | 0.666667 |
6350381060c9588e76e613d273657138ea46c5c5 | 6,311 | py | Python | ledgereth/__main__.py | unparalleled-js/ledger-eth-lib | ec9e4d0e801c98d09e5c8b04983e12540cff1650 | [
"MIT"
] | 10 | 2020-10-26T05:46:47.000Z | 2022-03-07T22:28:50.000Z | ledgereth/__main__.py | unparalleled-js/ledger-eth-lib | ec9e4d0e801c98d09e5c8b04983e12540cff1650 | [
"MIT"
] | 13 | 2020-02-04T09:08:45.000Z | 2022-03-21T00:05:28.000Z | ledgereth/__main__.py | unparalleled-js/ledger-eth-lib | ec9e4d0e801c98d09e5c8b04983e12540cff1650 | [
"MIT"
] | 6 | 2020-02-04T18:22:56.000Z | 2022-03-01T13:44:51.000Z | import argparse
import sys
from enum import IntEnum
from eth_utils import decode_hex, encode_hex
from ledgereth import (
create_transaction,
find_account,
get_account_by_path,
get_accounts,
sign_message,
sign_typed_data_draft,
)
from ledgereth.comms import init_dongle
COMMANDS = {
... | 25.447581 | 86 | 0.61369 |
63504c8288f6b3e29c374e6692908482fa639432 | 1,324 | py | Python | src/es/utils/nodes.py | DefenseStorm/es-cli | ad48c778dc426d5504fff7c36e9a2d61aeafb85f | [
"MIT"
] | null | null | null | src/es/utils/nodes.py | DefenseStorm/es-cli | ad48c778dc426d5504fff7c36e9a2d61aeafb85f | [
"MIT"
] | 2 | 2018-09-17T18:18:44.000Z | 2019-01-30T22:01:21.000Z | src/es/utils/nodes.py | DefenseStorm/es-cli | ad48c778dc426d5504fff7c36e9a2d61aeafb85f | [
"MIT"
] | 1 | 2018-09-07T17:19:08.000Z | 2018-09-07T17:19:08.000Z |
import argparse
import os
import re
import requests
import subprocess
from . import config as es_config
| 34.842105 | 100 | 0.664653 |
6353578656d78a5bb7c9aaf1ae55612bd73bf0e5 | 6,840 | py | Python | run_klue.py | tucan9389/KLUE-baseline | add61158e61f86adfca65087237443828b650090 | [
"Apache-2.0"
] | 71 | 2021-07-29T11:34:50.000Z | 2022-03-21T08:17:21.000Z | run_klue.py | tucan9389/KLUE-baseline | add61158e61f86adfca65087237443828b650090 | [
"Apache-2.0"
] | 3 | 2021-08-20T14:19:58.000Z | 2021-12-03T06:42:27.000Z | run_klue.py | tucan9389/KLUE-baseline | add61158e61f86adfca65087237443828b650090 | [
"Apache-2.0"
] | 16 | 2021-08-01T02:29:11.000Z | 2022-02-25T07:51:03.000Z | import argparse
import logging
import os
import sys
from pathlib import Path
from typing import List, Optional, Dict, Any
import pytorch_lightning as pl
from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint
from pytorch_lightning.loggers import CSVLogger
from klue_baseline import KLUE_TASKS
from klue... | 34.029851 | 176 | 0.660088 |
63537ba60e3a4d8d1007a7de63eba806a0202456 | 1,917 | py | Python | common/net_simple.py | scotty1373/Torcs_PPO | 864e30e7d02bef852907cd2abb9bba7a0630b53a | [
"MIT"
] | 3 | 2022-01-07T09:04:42.000Z | 2022-02-06T16:32:56.000Z | common/net_simple.py | scotty1373/Torcs_PPO | 864e30e7d02bef852907cd2abb9bba7a0630b53a | [
"MIT"
] | null | null | null | common/net_simple.py | scotty1373/Torcs_PPO | 864e30e7d02bef852907cd2abb9bba7a0630b53a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import time
import torch
from torch import nn
from torch.distributions import Normal
| 35.5 | 70 | 0.661972 |
63554d60d7544ece34d46b37302c0ae72070b00c | 6,489 | py | Python | CV1_assignment1/problem3_.py | cjy513203427/CV_Assignment | ac837dcd67f0d237017ef0124210bf9da0151487 | [
"MIT"
] | null | null | null | CV1_assignment1/problem3_.py | cjy513203427/CV_Assignment | ac837dcd67f0d237017ef0124210bf9da0151487 | [
"MIT"
] | null | null | null | CV1_assignment1/problem3_.py | cjy513203427/CV_Assignment | ac837dcd67f0d237017ef0124210bf9da0151487 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
# Plot 2D points
# Plot 3D points
def cart2hom(points):
""" Transforms from cartesian to homogeneous coordinates.
Args:
points: a np array of points in cartesian coordinates
Returns:
points_hom: a np array of points in homogeneous coordi... | 22.375862 | 108 | 0.602404 |
6355cd9fc41a16ef9af937885f1b13913544530d | 2,370 | py | Python | OpenFOAM-wrapper/run_foam_single.py | Lenferd/ANSYS-OpenFOAM | b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16 | [
"MIT"
] | null | null | null | OpenFOAM-wrapper/run_foam_single.py | Lenferd/ANSYS-OpenFOAM | b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16 | [
"MIT"
] | null | null | null | OpenFOAM-wrapper/run_foam_single.py | Lenferd/ANSYS-OpenFOAM | b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16 | [
"MIT"
] | null | null | null | import os
from executor.executor import Executor
from argparse import ArgumentParser
from configs.mesh import add_mesh_switch_arguments
from configs.mesh import SimpleBlockMeshConfig, SimpleBlockMeshArguments
from configs.mesh import RailMeshArguments, RailMeshConfig
from configs.fragmentation import FragmentationConf... | 39.5 | 102 | 0.781435 |
63561da871584dc80cc681224fdd788cac77302f | 892 | py | Python | lms/pshell.py | mattdricker/lms | 40b8a04f95e69258c6c0d7ada543f4b527918ecf | [
"BSD-2-Clause"
] | 38 | 2017-12-30T23:49:53.000Z | 2022-02-15T21:07:49.000Z | lms/pshell.py | mattdricker/lms | 40b8a04f95e69258c6c0d7ada543f4b527918ecf | [
"BSD-2-Clause"
] | 1,733 | 2017-11-09T18:46:05.000Z | 2022-03-31T11:05:50.000Z | lms/pshell.py | mattdricker/lms | 40b8a04f95e69258c6c0d7ada543f4b527918ecf | [
"BSD-2-Clause"
] | 10 | 2018-07-11T17:12:46.000Z | 2022-01-07T20:00:23.000Z | import sys
from contextlib import suppress
from transaction.interfaces import NoTransaction
from lms import models
| 23.473684 | 86 | 0.64574 |
63579a88721e0d3e200a379d5e13ea6f5c821b4d | 27 | py | Python | mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/development/automated_tests/transcrypt/div_issues/issue55/sub1.py | ang-jason/fip_powerx_mini_projects-foxtrot | 37e3671969b516369e2d1c7cab5890b75c489f56 | [
"MIT"
] | 2,200 | 2016-10-12T16:47:13.000Z | 2022-03-30T16:40:35.000Z | mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/development/automated_tests/transcrypt/div_issues/issue55/sub1.py | ang-jason/fip_powerx_mini_projects-foxtrot | 37e3671969b516369e2d1c7cab5890b75c489f56 | [
"MIT"
] | 672 | 2016-10-12T16:36:48.000Z | 2022-03-25T00:57:04.000Z | mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/development/automated_tests/transcrypt/div_issues/issue55/sub1.py | ang-jason/fip_powerx_mini_projects-foxtrot | 37e3671969b516369e2d1c7cab5890b75c489f56 | [
"MIT"
] | 230 | 2016-10-20T14:31:40.000Z | 2022-03-16T15:57:15.000Z | p = 'p'
q = 'q'
r = 'r'
| 6.75 | 8 | 0.222222 |
6358b098420866d24c9e82073283db2a21735a5a | 666 | py | Python | database/sql_server/create_table.py | miguelgfierro/pybase | de8e4f11ed5c655e748178e65195c7e70a9c98af | [
"BSD-3-Clause"
] | 14 | 2020-02-07T21:36:39.000Z | 2022-03-12T22:37:04.000Z | database/sql_server/create_table.py | miguelgfierro/pybase | de8e4f11ed5c655e748178e65195c7e70a9c98af | [
"BSD-3-Clause"
] | 19 | 2019-05-18T23:58:30.000Z | 2022-01-09T16:45:35.000Z | database/sql_server/create_table.py | miguelgfierro/pybase | de8e4f11ed5c655e748178e65195c7e70a9c98af | [
"BSD-3-Clause"
] | 5 | 2020-10-06T06:10:27.000Z | 2021-07-08T12:58:46.000Z | import pyodbc
def create_table(table_name, cursor):
"""Create a table and drop it if it exists.
Args:
table_name (str): Table name.
cursor (object): pyobdc cursor.
**Examples**
.. code-block:: python
conn = pyodbc.connect(connection_string)
cur = conn.curso... | 23.785714 | 97 | 0.588589 |
6358b66597519efb625eaca18ac93b55e3628738 | 9,050 | py | Python | parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_case.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_case.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_case.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from Instrucciones.TablaSimbolos.Instruccion import Instruccion
from Instrucciones.TablaSimbolos.Tipo import Tipo_Dato
from Instrucciones.Excepcion import Excepcion
from Instrucciones.Expresiones import Relacional
| 40.765766 | 121 | 0.631713 |
635b340138a681c68148582d1c62f125d6b4f774 | 10,896 | py | Python | vbox/src/VBox/ValidationKit/testmanager/core/useraccount.py | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/ValidationKit/testmanager/core/useraccount.py | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/ValidationKit/testmanager/core/useraccount.py | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# $Id: useraccount.py 69111 2017-10-17 14:26:02Z vboxsync $
"""
Test Manager - User DB records management.
"""
__copyright__ = \
"""
Copyright (C) 2012-2017 Oracle Corporation
This file is part of VirtualBox Open Source Edition (OSE), as
available from http://www.virtualbox.org. This file is ... | 37.187713 | 127 | 0.55112 |
635c4ec1c60bd1d815137a50f68717285f1fe57d | 11,129 | py | Python | Bip39Generator.py | crc32/AlphaSeed | 10089f7324cde8b52c9bc02c7c85421f82888d4f | [
"MIT"
] | 3 | 2022-01-04T02:21:37.000Z | 2022-01-22T23:49:06.000Z | Bip39Generator.py | crc32/AlphaSeed | 10089f7324cde8b52c9bc02c7c85421f82888d4f | [
"MIT"
] | null | null | null | Bip39Generator.py | crc32/AlphaSeed | 10089f7324cde8b52c9bc02c7c85421f82888d4f | [
"MIT"
] | 1 | 2022-01-09T16:50:42.000Z | 2022-01-09T16:50:42.000Z | #!/usr/bin/env python
# entropy generating geigercounter
# Modified from https://apollo.open-resource.org/mission:log:2014:06:13:generating-entropy-from-radioactive-decay-with-pigi
import geiger
import time
import datetime
import textwrap
import binascii # for conversion between Hexa and bytes
import qrcode
import i... | 35.218354 | 123 | 0.538952 |
635d54351361f86080532efa30b9a8d9dcf38427 | 3,908 | py | Python | crawto/classification_visualization.py | crawftv/CRAwTO | 8c6fdb93ed963cbddfe967b041e8beb578d1e94d | [
"BSD-3-Clause"
] | 1 | 2020-04-03T12:43:27.000Z | 2020-04-03T12:43:27.000Z | crawto/classification_visualization.py | crawftv/CRAwTO | 8c6fdb93ed963cbddfe967b041e8beb578d1e94d | [
"BSD-3-Clause"
] | 21 | 2020-02-14T04:29:03.000Z | 2020-07-14T02:19:37.000Z | crawto/classification_visualization.py | crawftv/CRAwTO | 8c6fdb93ed963cbddfe967b041e8beb578d1e94d | [
"BSD-3-Clause"
] | 1 | 2019-10-25T01:06:58.000Z | 2019-10-25T01:06:58.000Z | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import seaborn as sns
import sklearn
from sklearn import metrics
from sklearn.metrics import (
auc,
average_precision_score,
classification_report,
confusion_matrix,
precision_recall_curve,
roc_auc_score,
roc_curve,
)
f... | 30.771654 | 109 | 0.64739 |
6361883ccbeef4311c362908b9ce22b95ef0ef47 | 4,308 | py | Python | pyspedas/themis/tests/tests.py | pulupa/pyspedas | 7228199cf16eca2a27d130f1e4985ef1e69462ea | [
"MIT"
] | 75 | 2019-02-22T12:59:33.000Z | 2022-02-26T15:33:20.000Z | pyspedas/themis/tests/tests.py | pulupa/pyspedas | 7228199cf16eca2a27d130f1e4985ef1e69462ea | [
"MIT"
] | 40 | 2019-07-02T07:46:34.000Z | 2022-02-23T21:48:50.000Z | pyspedas/themis/tests/tests.py | pulupa/pyspedas | 7228199cf16eca2a27d130f1e4985ef1e69462ea | [
"MIT"
] | 43 | 2019-02-22T13:03:41.000Z | 2022-01-24T19:26:59.000Z | """Test gmag and themis load functions."""
import os
import unittest
from pyspedas.utilities.data_exists import data_exists
import pyspedas
if __name__ == '__main__':
unittest.main()
| 34.190476 | 79 | 0.612581 |
6361be6747f74fe445a4fb5c773189efbc6d790b | 6,673 | py | Python | tests/test_subscription_service.py | rukzuk/paymill-python | 637cdb2a56e75e2c062611907982d786fb258bb5 | [
"MIT"
] | null | null | null | tests/test_subscription_service.py | rukzuk/paymill-python | 637cdb2a56e75e2c062611907982d786fb258bb5 | [
"MIT"
] | null | null | null | tests/test_subscription_service.py | rukzuk/paymill-python | 637cdb2a56e75e2c062611907982d786fb258bb5 | [
"MIT"
] | null | null | null | __author__ = 'yalnazov'
try:
import unittest2 as unittest
except ImportError:
import unittest
from paymill.paymill_context import PaymillContext
from paymill.models.subscription import Subscription
import test_config
| 50.172932 | 114 | 0.528848 |
6362b82e328d27e85d3822efc006649be370c499 | 123 | py | Python | basic_syntax_conditional_statements_and_loops/lab/number_between_1_and_100.py | PetkoAndreev/Python-fundamentals | dcf2ecb65d7a82a6688a7529a14eb8a331a83256 | [
"MIT"
] | null | null | null | basic_syntax_conditional_statements_and_loops/lab/number_between_1_and_100.py | PetkoAndreev/Python-fundamentals | dcf2ecb65d7a82a6688a7529a14eb8a331a83256 | [
"MIT"
] | null | null | null | basic_syntax_conditional_statements_and_loops/lab/number_between_1_and_100.py | PetkoAndreev/Python-fundamentals | dcf2ecb65d7a82a6688a7529a14eb8a331a83256 | [
"MIT"
] | null | null | null | num = float(input())
while num < 1 or num > 100:
num = float(input())
print(f'The number {num} is between 1 and 100') | 20.5 | 47 | 0.626016 |
6363782e48bd5eaedc0c8edeecafa798bb0dc04d | 94 | py | Python | heronpy/connectors/textfiles/__init__.py | ajorgensen/heron | 6430c51a4a6030e93018e0ed40e5936a64317636 | [
"Apache-2.0"
] | 2 | 2016-07-04T07:10:31.000Z | 2018-03-28T16:59:02.000Z | heronpy/connectors/textfiles/__init__.py | ajorgensen/heron | 6430c51a4a6030e93018e0ed40e5936a64317636 | [
"Apache-2.0"
] | null | null | null | heronpy/connectors/textfiles/__init__.py | ajorgensen/heron | 6430c51a4a6030e93018e0ed40e5936a64317636 | [
"Apache-2.0"
] | 1 | 2017-06-05T17:55:45.000Z | 2017-06-05T17:55:45.000Z | '''module for textfiles connectors'''
__import__('pkg_resources').declare_namespace(__name__)
| 31.333333 | 55 | 0.808511 |
6363c6bbeaa5d8ba27ac83c8c4a9925fa4151cdf | 1,824 | py | Python | examples/animate/recamanSeq.py | beidongjiedeguang/manim-express | e9c89b74da3692db3ea9b568727e78d5cbcef503 | [
"MIT"
] | 12 | 2021-06-14T07:28:29.000Z | 2022-02-25T02:49:49.000Z | examples/animate/recamanSeq.py | beidongjiedeguang/manim-kunyuan | e9c89b74da3692db3ea9b568727e78d5cbcef503 | [
"MIT"
] | 1 | 2022-02-01T12:30:14.000Z | 2022-02-01T12:30:14.000Z | examples/animate/recamanSeq.py | beidongjiedeguang/manim-express | e9c89b74da3692db3ea9b568727e78d5cbcef503 | [
"MIT"
] | 2 | 2021-05-13T13:24:15.000Z | 2021-05-18T02:56:22.000Z | from examples.example_imports import *
VIOLET = "#EE82EE"
INDIGO = "#4B0082"
VIBGYOR = [VIOLET, INDIGO, BLUE, GREEN, YELLOW, ORANGE, RED]
if __name__ == "__main__":
import os
RecamanSequence().render()
| 27.223881 | 76 | 0.533443 |
636542941608f361eff45699a289086724f66554 | 95 | py | Python | pygfs/utils.py | eWaterCycle/pyGFS | 3d2c533b7781c4ae94ac393877d91d4325e0c0cb | [
"Apache-2.0"
] | 1 | 2021-05-19T05:42:28.000Z | 2021-05-19T05:42:28.000Z | pygfs/utils.py | eWaterCycle/pyGFS | 3d2c533b7781c4ae94ac393877d91d4325e0c0cb | [
"Apache-2.0"
] | null | null | null | pygfs/utils.py | eWaterCycle/pyGFS | 3d2c533b7781c4ae94ac393877d91d4325e0c0cb | [
"Apache-2.0"
] | null | null | null | def check_gribfile(f):
'''
check if file is a grib file and readeable
'''
pass
| 15.833333 | 46 | 0.589474 |
6365ef6932b09a9ca176a69f9f72ff21e3cd604b | 5,182 | py | Python | validator/txnserver/web_pages/prevalidation_page.py | gabykyei/GC_BlockChain_T_Rec | b72cb483064852d0a60286943ff55233462fea08 | [
"Apache-2.0"
] | 1 | 2019-03-18T13:31:11.000Z | 2019-03-18T13:31:11.000Z | validator/txnserver/web_pages/prevalidation_page.py | gabykyei/GC_BlockChain_T_Rec | b72cb483064852d0a60286943ff55233462fea08 | [
"Apache-2.0"
] | null | null | null | validator/txnserver/web_pages/prevalidation_page.py | gabykyei/GC_BlockChain_T_Rec | b72cb483064852d0a60286943ff55233462fea08 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 37.014286 | 80 | 0.604979 |
6368cb3cf505c5009517da98c8fe412698d9997a | 2,052 | py | Python | additional_models/model2.py | srikanth311/CarND-Behavioral-Cloning-P3 | 2d6f7f73f646b5d83d283d33a84770ea6fae11d0 | [
"MIT"
] | null | null | null | additional_models/model2.py | srikanth311/CarND-Behavioral-Cloning-P3 | 2d6f7f73f646b5d83d283d33a84770ea6fae11d0 | [
"MIT"
] | null | null | null | additional_models/model2.py | srikanth311/CarND-Behavioral-Cloning-P3 | 2d6f7f73f646b5d83d283d33a84770ea6fae11d0 | [
"MIT"
] | null | null | null | # https://stackoverflow.com/questions/34518656/how-to-interpret-loss-and-accuracy-for-a-machine-learning-model
from additional_models.data2 import read_csv_data, get_samples
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Flatten, Lambda
from keras.layers.convolutional import Conv2D
f... | 34.779661 | 110 | 0.694444 |
636b12312c9285edfa8c85a571b4320d339a5502 | 4,254 | py | Python | networks/recognition/models.py | FaceID-Dongguk-Univ/FaceID | 61147b11e70b1c172cbbff618d10f7e518c2c801 | [
"MIT"
] | null | null | null | networks/recognition/models.py | FaceID-Dongguk-Univ/FaceID | 61147b11e70b1c172cbbff618d10f7e518c2c801 | [
"MIT"
] | null | null | null | networks/recognition/models.py | FaceID-Dongguk-Univ/FaceID | 61147b11e70b1c172cbbff618d10f7e518c2c801 | [
"MIT"
] | 2 | 2021-09-30T14:02:04.000Z | 2021-10-08T07:44:20.000Z | """
MIT License
Copyright (c) 2019 Kuan-Yu Huang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | 35.45 | 79 | 0.666432 |
636c08dd9863e232a0e141c5bf49a4049685e262 | 6,693 | py | Python | magnum/tests/unit/db/test_x509keypair.py | mjbrewer/testIndex | 420dc071d4240a89b6f266e8d2575cedb39bfea0 | [
"Apache-2.0"
] | null | null | null | magnum/tests/unit/db/test_x509keypair.py | mjbrewer/testIndex | 420dc071d4240a89b6f266e8d2575cedb39bfea0 | [
"Apache-2.0"
] | null | null | null | magnum/tests/unit/db/test_x509keypair.py | mjbrewer/testIndex | 420dc071d4240a89b6f266e8d2575cedb39bfea0 | [
"Apache-2.0"
] | 1 | 2020-09-09T14:35:08.000Z | 2020-09-09T14:35:08.000Z | # Copyright 2015 NEC Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 42.903846 | 79 | 0.659346 |
636f486add13f8c9416be0f98507743cabd74049 | 2,769 | py | Python | src/rysia/core/tensorflow/helper.py | vdeuschle/rysia | c8c5adc2c770424b3a328a936f23a80a38c9f0f2 | [
"Apache-2.0"
] | 2 | 2020-08-17T15:46:30.000Z | 2020-08-20T19:20:57.000Z | src/rysia/core/tensorflow/helper.py | vdeuschle/rysia | c8c5adc2c770424b3a328a936f23a80a38c9f0f2 | [
"Apache-2.0"
] | null | null | null | src/rysia/core/tensorflow/helper.py | vdeuschle/rysia | c8c5adc2c770424b3a328a936f23a80a38c9f0f2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Vincent Deuschle. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file accompanyin... | 48.578947 | 119 | 0.653666 |
637294b6bbc4dcbace3b74bbe577dbb797c776c8 | 1,670 | py | Python | examples/stdicons.py | diegomvh/pyqt | 435756fab9751eab2e30f5f3351d7fc43589533f | [
"MIT"
] | 1 | 2022-03-07T20:20:51.000Z | 2022-03-07T20:20:51.000Z | examples/stdicons.py | diegomvh/pyqt | 435756fab9751eab2e30f5f3351d7fc43589533f | [
"MIT"
] | null | null | null | examples/stdicons.py | diegomvh/pyqt | 435756fab9751eab2e30f5f3351d7fc43589533f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui
def show_std_icons():
"""
Show all standard Icons
"""
app = QtGui.QApplication([])
dialog = ShowStdIcons(None)
print(get_std_icon("cacho"))
dialog.show()
import sys
sys.exit(app.exec_())
if __name__ == ... | 31.509434 | 82 | 0.578443 |
6372c851f000a2f462e3b75cd28ab4a885253034 | 3,616 | py | Python | examples/run_homographs.py | vinnamkim/GEM | cac74b711ef1547e5bc68b85fdf7f7437933b325 | [
"BSD-3-Clause"
] | null | null | null | examples/run_homographs.py | vinnamkim/GEM | cac74b711ef1547e5bc68b85fdf7f7437933b325 | [
"BSD-3-Clause"
] | null | null | null | examples/run_homographs.py | vinnamkim/GEM | cac74b711ef1547e5bc68b85fdf7f7437933b325 | [
"BSD-3-Clause"
] | null | null | null | '''
Run the graph embedding methods on Karate graph and evaluate them on
graph reconstruction and visualization. Please copy the
gem/data/karate.edgelist to the working directory
'''
import matplotlib.pyplot as plt
from time import time
from gem.utils import graph_util, plot_util
from gem.evaluation import visualize... | 39.304348 | 145 | 0.601217 |
6372eab4ac944c27e2845406a864b91ae6b8f10c | 256 | py | Python | src/ScientificProgrammingPrimer/ch_01/gaussian.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/ScientificProgrammingPrimer/ch_01/gaussian.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/ScientificProgrammingPrimer/ch_01/gaussian.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
mu = 0
sigma = 2
x = np.arange( -4.0, 4.0, 0.1 )
plt.plot( x, f(x) )
plt.show() | 18.285714 | 86 | 0.574219 |
6372ee8c2eee6d970a09c164123669b1173e689f | 120 | py | Python | easy_transformers/constants.py | ManoharSai2000/easy-transformers | 9f10bcf469ff30093e3af763eaca066740fb1795 | [
"Apache-2.0"
] | null | null | null | easy_transformers/constants.py | ManoharSai2000/easy-transformers | 9f10bcf469ff30093e3af763eaca066740fb1795 | [
"Apache-2.0"
] | null | null | null | easy_transformers/constants.py | ManoharSai2000/easy-transformers | 9f10bcf469ff30093e3af763eaca066740fb1795 | [
"Apache-2.0"
] | null | null | null | DEFAULT_MAX_LENGTH = 512
DEFAULT_EASY_TRANSFORMERS_CACHE_SIZE = 1
DEFAULT_EASY_TRANSFORMERS_TEXT_EMB_CACHE_SIZE = 10000
| 30 | 53 | 0.9 |
63735a38a8d7214835bb46850a5181ef1c373ff8 | 1,981 | py | Python | tests/test_color.py | cowo78/pynextion | 40215761bc8abbd7cc53fefa68e8b78a67b73aed | [
"Apache-2.0"
] | null | null | null | tests/test_color.py | cowo78/pynextion | 40215761bc8abbd7cc53fefa68e8b78a67b73aed | [
"Apache-2.0"
] | 1 | 2019-02-24T14:40:42.000Z | 2019-02-24T14:40:42.000Z | tests/test_color.py | cowo78/pynextion | 40215761bc8abbd7cc53fefa68e8b78a67b73aed | [
"Apache-2.0"
] | null | null | null | from pynextion.color import (
NamedColor,
Color
)
| 27.136986 | 67 | 0.540636 |
63748db7a5ced0b64fd8d94829c93ed18e0dccd7 | 1,149 | py | Python | src/Classes/MSDS400/Module 2/gas_mix.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/Classes/MSDS400/Module 2/gas_mix.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | src/Classes/MSDS400/Module 2/gas_mix.py | bmoretz/Python-Playground | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | [
"MIT"
] | null | null | null | # A company is developing a new additive for gasoline.
# The additive is a mixture of three liquid ingredients, I, II, and III.
# For proper performance, the total amount of additive must be at least 7 oz per gal of gasoline.
# However, for safety reasons, the amount of additive should not exceed 19 oz per gal of ga... | 33.794118 | 170 | 0.684073 |
6375bb306a93b9eec7919581139fd4a68e0b853c | 3,994 | py | Python | sankey_chart.py | fwd1990man/PythonSankeyChart | ee97570587fda84fb52798132b46f68c1775623a | [
"MIT"
] | 1 | 2021-05-19T00:09:24.000Z | 2021-05-19T00:09:24.000Z | sankey_chart.py | vladhj38/PythonSankeyChart | ee97570587fda84fb52798132b46f68c1775623a | [
"MIT"
] | null | null | null | sankey_chart.py | vladhj38/PythonSankeyChart | ee97570587fda84fb52798132b46f68c1775623a | [
"MIT"
] | null | null | null | import drawSvg as draw
import pandas as pd
from PIL import Image
df = pd.DataFrame([[15.7, 11.9, 3.8]], index=[1], columns=['Comp', 'Traffic', 'Ticket'])
# df = pd.DataFrame([[9.0, -2.0, 11.1]], index=[1], columns=['Comp', 'Traffic', 'Ticket'])
comp_val = df.at[1, 'Comp']
traffic_val = df.at[1, 'Traffic']
ticket_val... | 21.589189 | 90 | 0.525538 |
6376ae7819f9e26b72824b9b1885ad2420eb93b4 | 3,135 | py | Python | SndClass.py | fit087/scientific_python | 17b128c064e49581043ef3c1cf84e61c25287065 | [
"MIT"
] | 1 | 2020-02-28T22:57:54.000Z | 2020-02-28T22:57:54.000Z | SndClass.py | fit087/scientific_python | 17b128c064e49581043ef3c1cf84e61c25287065 | [
"MIT"
] | null | null | null | SndClass.py | fit087/scientific_python | 17b128c064e49581043ef3c1cf84e61c25287065 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 11 13:07:06 2020
@author: Adolfo Correa
Professor: Dr. Iuri Segtovich
"""
import numpy as np
print('\nExercise 1\n')
# Exercise 1
# =============================================
x = [1, 346432, 68, 1223, 5, 47, 678]
max_val = x[0]
for elem in x:
if e... | 19.233129 | 109 | 0.482616 |
6377a7cfc960f1b8f02d09cde803ef13fad43a69 | 4,495 | py | Python | backups/button.py | lsjsg/People_counting_raspberry_pi | 5b2b8c4807e72bc1a0f86b0afeb5abf58fe07ed4 | [
"MIT"
] | 2 | 2019-05-19T20:09:47.000Z | 2019-08-27T15:45:10.000Z | backups/button.py | roskeys/People_counting_raspberry_pi | 5b2b8c4807e72bc1a0f86b0afeb5abf58fe07ed4 | [
"MIT"
] | null | null | null | backups/button.py | roskeys/People_counting_raspberry_pi | 5b2b8c4807e72bc1a0f86b0afeb5abf58fe07ed4 | [
"MIT"
] | 1 | 2020-03-21T15:08:10.000Z | 2020-03-21T15:08:10.000Z | from time import sleep
import pyrebase
import RPi.GPIO as GPIO
url = 'https://dw-1d-kivy.firebaseio.com' # URL to Firebase database
apikey = '"AIzaSyADs22Rdhef_5w28Y4oOvx0Aat1NiKCl5U"' # unique token used for authentication
config = {"apiKey": apikey, "databaseURL": url, }
# Create a firebase object by specifying ... | 30.371622 | 117 | 0.606007 |
63786d836006075a18bb63e6fb9cab3c649282bd | 6,526 | py | Python | project/app/api/rental_pred_viz.py | labs26-citrics/Labs26-Citrics-DS-TeamB | 980ff695f49be7bcb3ffdda38dba56049ef1e988 | [
"MIT"
] | 1 | 2021-01-04T19:32:50.000Z | 2021-01-04T19:32:50.000Z | project/app/api/rental_pred_viz.py | labs26-citrics/Labs26-Citrics-DS-TeamB | 980ff695f49be7bcb3ffdda38dba56049ef1e988 | [
"MIT"
] | 3 | 2020-09-08T22:27:35.000Z | 2020-10-01T22:19:13.000Z | project/app/api/rental_pred_viz.py | labs26-citrics/Labs26-Citrics-DS-TeamB | 980ff695f49be7bcb3ffdda38dba56049ef1e988 | [
"MIT"
] | 4 | 2020-10-13T21:56:42.000Z | 2021-03-03T01:59:37.000Z | from fastapi import APIRouter, HTTPException
import numpy as np
import pandas as pd
import plotly.graph_objects as go
import plotly.express as px
import os
router = APIRouter()
DATA_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "..","data", "rental_all.csv")
def studio_rental_viz(city_id):
"""
... | 21.973064 | 96 | 0.596843 |
63787af43ccc0aea55b2d299610f4773a1860ff2 | 2,185 | py | Python | release/scripts/addons/oscurart_tools/object/search_and_select.py | simileV/blenderStereo29 | 09b993449aaca671a9eb2a6a22327246936eb3db | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2020-07-20T15:41:58.000Z | 2020-07-20T15:41:58.000Z | release/scripts/addons/oscurart_tools/object/search_and_select.py | ringsce/Rings3D | 8059d1e2460fc8d6f101eff8e695f68a99f6671d | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | release/scripts/addons/oscurart_tools/object/search_and_select.py | ringsce/Rings3D | 8059d1e2460fc8d6f101eff8e695f68a99f6671d | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | 36.416667 | 74 | 0.652632 |
637a49b80162d3c9d3ede67a0b42de3e48ef8458 | 6,605 | py | Python | find_facilities.py | tayuny/the-wandering-chicago | d861f0de4ce0ebc23d246768e45690fbda055be6 | [
"Unlicense"
] | null | null | null | find_facilities.py | tayuny/the-wandering-chicago | d861f0de4ce0ebc23d246768e45690fbda055be6 | [
"Unlicense"
] | null | null | null | find_facilities.py | tayuny/the-wandering-chicago | d861f0de4ce0ebc23d246768e45690fbda055be6 | [
"Unlicense"
] | null | null | null | '''
Main code for finding the nearest target spots and
export an webpage
'''
import os
import webbrowser
import pandas as pd
import util
import gmplot
COLOR_MAP = {'family support (children services)': '#FFFACD',
'family support (senior services)':'#FFFACD',
'family support (domestic violenc... | 39.550898 | 94 | 0.640575 |
637a981be4eccfd221f02a9a564f08b97ca045a8 | 765 | py | Python | tests/run_tests.py | lbanawa/photo_filters | a9729d96929770599ddca2715026b69d8837168f | [
"MIT"
] | null | null | null | tests/run_tests.py | lbanawa/photo_filters | a9729d96929770599ddca2715026b69d8837168f | [
"MIT"
] | 7 | 2020-03-02T01:48:58.000Z | 2022-01-13T02:21:10.000Z | tests/run_tests.py | lbanawa/photo_filters | a9729d96929770599ddca2715026b69d8837168f | [
"MIT"
] | null | null | null | import inspect
import os
import sys
import unittest
__author__ = "David Juboor"
__version__ = "1.0"
# Can't use __file__ because when running with coverage via command line, ___file__ is not the full path
my_location = os.path.dirname(os.path.abspath(inspect.stack()[0][1]))
if __name__ == '__main__':
print(tes... | 27.321429 | 104 | 0.745098 |
637a9ea66b82d2beaeba55846d62607bb1b78e7b | 8,500 | py | Python | core/core_service.py | greatkeke/V2ray.FunPi | e58f78331f2fa19eb2af0082bccdc8e904e73217 | [
"MIT"
] | 576 | 2020-08-10T07:02:49.000Z | 2022-03-21T05:21:12.000Z | core/core_service.py | raydoom/V2ray.FunPi | 53d8c205e5dd260abd59f95a633d3c5062ace0e0 | [
"MIT"
] | 13 | 2020-08-14T00:55:28.000Z | 2022-03-21T05:23:27.000Z | core/core_service.py | raydoom/V2ray.FunPi | 53d8c205e5dd260abd59f95a633d3c5062ace0e0 | [
"MIT"
] | 52 | 2020-08-10T13:20:58.000Z | 2022-03-17T08:56:34.000Z | # encoding: utf-8
"""
File: core_service
Author: twotrees.us@gmail.com
Date: 2020730 31 10:55
Desc:
"""
import psutil
import os
import os.path
from .package import jsonpickle
from typing import List
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.schedulers.base impor... | 32.442748 | 160 | 0.626588 |
637b2a10deb0627e199f297b833ffac4a9356c63 | 4,282 | py | Python | src/dropSQL/ast/join.py | LakshyaaSoni/dropSQL | da07ad3edf2d55f0521a385ad10678fc353b4b2b | [
"MIT"
] | 35 | 2017-11-27T22:24:46.000Z | 2022-01-16T23:50:01.000Z | src/dropSQL/ast/join.py | LakshyaaSoni/dropSQL | da07ad3edf2d55f0521a385ad10678fc353b4b2b | [
"MIT"
] | null | null | null | src/dropSQL/ast/join.py | LakshyaaSoni/dropSQL | da07ad3edf2d55f0521a385ad10678fc353b4b2b | [
"MIT"
] | 2 | 2018-02-20T06:06:12.000Z | 2021-10-16T18:30:15.000Z | import abc
from typing import *
from dropSQL.engine.row_set import *
from dropSQL.engine.types import *
from dropSQL.generic import *
from dropSQL.parser.streams import *
from dropSQL.parser.tokens import *
from .alias import AliasedTable
from .ast import *
from .expression import Expression
if TYPE_CHECKING:
fro... | 26.432099 | 96 | 0.570061 |
637cb1919870ccb4eeaec9f7ea5827d1ff65b585 | 2,007 | py | Python | raspberry/car_unlock/lib/MyMQTT.py | FrancescoConforte/Car2Smart | b14f447c55e0d82e9d00124c1494faddc94c9ed1 | [
"MIT"
] | null | null | null | raspberry/car_unlock/lib/MyMQTT.py | FrancescoConforte/Car2Smart | b14f447c55e0d82e9d00124c1494faddc94c9ed1 | [
"MIT"
] | null | null | null | raspberry/car_unlock/lib/MyMQTT.py | FrancescoConforte/Car2Smart | b14f447c55e0d82e9d00124c1494faddc94c9ed1 | [
"MIT"
] | null | null | null | import paho.mqtt.client as PahoMQTT
import json
| 34.016949 | 74 | 0.63129 |
637d0020a33a6fdd3c4651808a9b764d4bbf5ed2 | 128 | py | Python | member/urls.py | itssunny322/User_activity | c150b1e8e52f4cb019d6d390c6007e038fbb1688 | [
"Apache-2.0"
] | null | null | null | member/urls.py | itssunny322/User_activity | c150b1e8e52f4cb019d6d390c6007e038fbb1688 | [
"Apache-2.0"
] | 3 | 2021-03-19T02:57:29.000Z | 2021-09-22T18:58:45.000Z | member/urls.py | itssunny322/User_activity | c150b1e8e52f4cb019d6d390c6007e038fbb1688 | [
"Apache-2.0"
] | null | null | null |
from django.urls import path
from .views import *
urlpatterns = [
path('users', UserView.as_view(), name='user_list'),
]
| 14.222222 | 56 | 0.679688 |
637ebf676d3ea3b214dcf86fafe7c2902594ff07 | 895 | py | Python | Lib/css/stylesheets/CreditAgricole.py | jeamick/ares-visual | 3cf5068f874b3f6fe898968b2a7efa86fadca99d | [
"MIT"
] | null | null | null | Lib/css/stylesheets/CreditAgricole.py | jeamick/ares-visual | 3cf5068f874b3f6fe898968b2a7efa86fadca99d | [
"MIT"
] | 2 | 2019-03-27T00:36:09.000Z | 2019-04-09T00:39:12.000Z | Lib/css/stylesheets/CreditAgricole.py | jeamick/ares-visual | 3cf5068f874b3f6fe898968b2a7efa86fadca99d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Olivier Nogus
# All colors are coming from the template
# https://credit-agricole.ua/pdf/Credit_Agricole_AR_2016_ENG_full_17072017_.pdf
import CssBase
charts = ['#71bf44', '#1d99d6', '#6bcff6', '#bed630', '#00805f', '#00a96c', '#66bbaa', '#bbeeee', '... | 16.574074 | 109 | 0.458101 |
637ff6c71153ab5cecfe30bce4a405dfd2c17978 | 1,960 | py | Python | src/python/gwas_analysis/dask/codecs.py | tomwhite/gwas-analysis | 5b219607b8311722f16f7df8a8aad09ba69dc448 | [
"Apache-2.0"
] | 19 | 2020-03-18T01:06:58.000Z | 2022-02-06T19:59:30.000Z | src/python/gwas_analysis/dask/codecs.py | tomwhite/gwas-analysis | 5b219607b8311722f16f7df8a8aad09ba69dc448 | [
"Apache-2.0"
] | 39 | 2020-01-20T19:50:19.000Z | 2021-01-07T19:01:48.000Z | src/python/gwas_analysis/dask/codecs.py | tomwhite/gwas-analysis | 5b219607b8311722f16f7df8a8aad09ba69dc448 | [
"Apache-2.0"
] | 5 | 2020-03-13T20:47:24.000Z | 2022-01-13T09:43:35.000Z | from dask.distributed import WorkerPlugin
from numcodecs import PackBits
from numcodecs.compat import ensure_ndarray, ndarray_copy
import numpy as np
# See: https://github.com/zarr-developers/numcodecs/blob/master/numcodecs/packbits.py
| 30.625 | 113 | 0.654082 |
63806501475b50be287ea81ec9eea6bfef44daae | 6,363 | py | Python | astromodels/core/property.py | giacomov/astromodels | bfad6993465df66d9c071c00d6e0c747266bd3a7 | [
"BSD-3-Clause"
] | 11 | 2015-12-02T17:28:57.000Z | 2018-10-08T02:33:32.000Z | astromodels/core/property.py | giacomov/astromodels | bfad6993465df66d9c071c00d6e0c747266bd3a7 | [
"BSD-3-Clause"
] | 73 | 2016-05-29T10:17:30.000Z | 2018-12-21T19:35:00.000Z | astromodels/core/property.py | giacomov/astromodels | bfad6993465df66d9c071c00d6e0c747266bd3a7 | [
"BSD-3-Clause"
] | 15 | 2016-06-03T21:28:10.000Z | 2019-01-07T14:23:15.000Z | import collections
import copy
from typing import Any, Dict, List, Optional, Tuple, Union
from astromodels.utils.logging import setup_logger
from .tree import Node
log = setup_logger(__name__)
# Exception for when a parameter is out of its bounds
def _repr__base(self, rich_output): # pragma: no cover
... | 27.786026 | 115 | 0.54534 |
6381b46ba4699339e587d7107a305cb39d4ea409 | 4,354 | py | Python | modules/import_ships.py | sprintska/menagerie | 43a92f161f4b6aba9841ef7edb6fe10e84ab1f77 | [
"MIT"
] | null | null | null | modules/import_ships.py | sprintska/menagerie | 43a92f161f4b6aba9841ef7edb6fe10e84ab1f77 | [
"MIT"
] | null | null | null | modules/import_ships.py | sprintska/menagerie | 43a92f161f4b6aba9841ef7edb6fe10e84ab1f77 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import json
import logging
import logging.handlers
import os
import pickle
import requests
import sqlite3
import shutil
from contextlib import closing
_handler = logging.handlers.WatchedFileHandler("/var/log/menagerie.log")
logging.basicConfig(handlers=[_handler], level=logging.INFO)
API_TARGET_U... | 29.821918 | 101 | 0.426964 |
63821dda649cfe4db5f1c008cef5ae903f0936db | 2,296 | py | Python | source/custom_scripts/backfill_app_stats_ee2_reserved_cpu.py | kbase/metrics | 33b134d6d9dea8cc4e9cf0ebe6b370aef1dc3486 | [
"MIT"
] | 1 | 2015-12-16T13:33:04.000Z | 2015-12-16T13:33:04.000Z | source/custom_scripts/backfill_app_stats_ee2_reserved_cpu.py | kbase/metrics | 33b134d6d9dea8cc4e9cf0ebe6b370aef1dc3486 | [
"MIT"
] | 54 | 2016-06-01T19:28:09.000Z | 2022-03-31T00:08:38.000Z | source/custom_scripts/backfill_app_stats_ee2_reserved_cpu.py | kbase/metrics | 33b134d6d9dea8cc4e9cf0ebe6b370aef1dc3486 | [
"MIT"
] | 8 | 2015-12-16T13:33:04.000Z | 2020-02-07T23:30:33.000Z | import os
import mysql.connector as mysql
sql_host = os.environ["SQL_HOST"]
query_on = os.environ["QUERY_ON"]
metrics_mysql_password = os.environ["METRICS_MYSQL_PWD"]
reserved_cpu_lookup_dict = make_lookup_dict()
backfill_reserved_cpu(reserved_cpu_lookup_dict)
| 30.613333 | 88 | 0.678571 |
6383bbf4486f5639d8906a1645240b576336ba7a | 7,157 | py | Python | rein_train.py | jhkim6467/input_distill | 0e49e7552fa17cf72143fcc5ff84a8b25cb02232 | [
"MIT"
] | null | null | null | rein_train.py | jhkim6467/input_distill | 0e49e7552fa17cf72143fcc5ff84a8b25cb02232 | [
"MIT"
] | null | null | null | rein_train.py | jhkim6467/input_distill | 0e49e7552fa17cf72143fcc5ff84a8b25cb02232 | [
"MIT"
] | null | null | null | from __future__ import division, unicode_literals
import argparse
import time
import math
import random
import torch.nn as nn, torch
import torch.nn.init as init
import torch.optim as optim
import os
import numpy as np
import pickle
from torch.autograd import Variable
from torch.utils.data import DataLoader
from scip... | 31.808889 | 144 | 0.619254 |
6385ed5301b4cb8b06313076f50b0982e7fb2002 | 2,605 | py | Python | pyblas/level2/icamax.py | timleslie/pyblas | 9109f2cc24e674cf59a3b39f95c2d7b8116ae884 | [
"BSD-3-Clause"
] | null | null | null | pyblas/level2/icamax.py | timleslie/pyblas | 9109f2cc24e674cf59a3b39f95c2d7b8116ae884 | [
"BSD-3-Clause"
] | 1 | 2020-10-10T23:23:06.000Z | 2020-10-10T23:23:06.000Z | pyblas/level2/icamax.py | timleslie/pyblas | 9109f2cc24e674cf59a3b39f95c2d7b8116ae884 | [
"BSD-3-Clause"
] | null | null | null | # > \brief \b ICAMAX
#
# =========== DOCUMENTATION ===========
#
# Online html documentation available at
# http://www.netlib.org/lapack/explore-html/
#
# Definition:
# ===========
#
# INTEGER FUNCTION ICAmax(N,CX,INCX)
#
# .. Scalar Arguments ..
# INTEGER INCX,N
# ..
# .. Ar... | 22.652174 | 84 | 0.471785 |
63872bec7ad482c58ec938d8ed3b9e283f7be51a | 135 | py | Python | core/__init__.py | david-wm-sanders/oeo | 1ce26ddcd83d957183eefaae508c2a6800d47e94 | [
"MIT"
] | 1 | 2019-07-28T04:40:16.000Z | 2019-07-28T04:40:16.000Z | core/__init__.py | david-wm-sanders/oeo | 1ce26ddcd83d957183eefaae508c2a6800d47e94 | [
"MIT"
] | null | null | null | core/__init__.py | david-wm-sanders/oeo | 1ce26ddcd83d957183eefaae508c2a6800d47e94 | [
"MIT"
] | null | null | null | from .oeo import Oeo
from .element import Element
from .stats import Stats
from .move import Move, MoveCategory
from .item import Item
| 22.5 | 36 | 0.8 |
63872c71ea983b463c94d5253e8b2aae917c2ae9 | 8,708 | py | Python | iepy/extraction/active_learning_core.py | silky/iepy | 5967d025ce47d28e1d8725c14d5b05dda36afa3c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2019-06-27T11:32:36.000Z | 2019-06-27T11:32:36.000Z | iepy/extraction/active_learning_core.py | silky/iepy | 5967d025ce47d28e1d8725c14d5b05dda36afa3c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | iepy/extraction/active_learning_core.py | silky/iepy | 5967d025ce47d28e1d8725c14d5b05dda36afa3c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | import logging
import random
import sys
import numpy
from sklearn.cross_validation import StratifiedKFold
from sklearn.metrics import precision_recall_curve
from iepy import defaults
from iepy.extraction.relation_extraction_classifier import RelationExtractionClassifier
logger = logging.getLogger(__name__)
HIPREC... | 38.875 | 108 | 0.636082 |
6389f2d088c36850ddd534900c1ca48ec6be6f71 | 3,211 | py | Python | core/src/autogluon/core/utils/mo_hbo_utils.py | zhiqiangdon/autogluon | 71ee7ef0f05d8f0aad112d8c1719174aa33194d9 | [
"Apache-2.0"
] | 4,462 | 2019-12-09T17:41:07.000Z | 2022-03-31T22:00:41.000Z | core/src/autogluon/core/utils/mo_hbo_utils.py | zhiqiangdon/autogluon | 71ee7ef0f05d8f0aad112d8c1719174aa33194d9 | [
"Apache-2.0"
] | 1,408 | 2019-12-09T17:48:59.000Z | 2022-03-31T20:24:12.000Z | core/src/autogluon/core/utils/mo_hbo_utils.py | zhiqiangdon/autogluon | 71ee7ef0f05d8f0aad112d8c1719174aa33194d9 | [
"Apache-2.0"
] | 623 | 2019-12-10T02:04:18.000Z | 2022-03-20T17:11:01.000Z | """ Methods helpful for multi-objective HPO.
"""
import numpy as np
def retrieve_pareto_front(training_history, objectives):
"""Retrieves the pareto efficient points discovered during a
scheduler's search process.
Parameters
----------
training_history:
A training history dictionary gen... | 31.174757 | 78 | 0.63625 |
638a0baf11ca5164a0488e66a941c341fef23f5f | 1,191 | py | Python | twinpy/interfaces/phonopy.py | kei0822kei/twinpy | 14b47df1fa5b57a54f57d5c2120ed3fe9502a9bc | [
"MIT"
] | null | null | null | twinpy/interfaces/phonopy.py | kei0822kei/twinpy | 14b47df1fa5b57a54f57d5c2120ed3fe9502a9bc | [
"MIT"
] | 5 | 2021-01-19T13:08:28.000Z | 2021-02-20T12:03:59.000Z | twinpy/interfaces/phonopy.py | kei0822kei/twinpy | 14b47df1fa5b57a54f57d5c2120ed3fe9502a9bc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Interfaces for Phonopy.
"""
from phonopy.structure.atoms import PhonopyAtoms
def get_phonopy_structure(cell:tuple) -> PhonopyAtoms:
"""
Return phonopy structure.
Args:
cell: (lattice, scaled_positions, symbols).
Returns:
PhonopyAtoms: Phonopy structure.
... | 25.891304 | 77 | 0.645676 |
638c0be826b6716fae5d37c58132d62b7412ca00 | 151 | py | Python | unecorn/admin.py | anast239/unecorn | 8a874f8cced013668dd29398176a8fb60cc04057 | [
"MIT"
] | null | null | null | unecorn/admin.py | anast239/unecorn | 8a874f8cced013668dd29398176a8fb60cc04057 | [
"MIT"
] | null | null | null | unecorn/admin.py | anast239/unecorn | 8a874f8cced013668dd29398176a8fb60cc04057 | [
"MIT"
] | null | null | null | from django.contrib import admin
from unecorn.models import *
admin.site.register(Discount)
admin.site.register(Category)
admin.site.register(Company) | 25.166667 | 32 | 0.827815 |
638fa7d83e983c9f58b992517e42b211927ac9d7 | 101 | py | Python | smaland/totp.py | emilwareus/smaland | b455199b072c84bcf6d576c92fc18004e0cbe60b | [
"MIT"
] | 3 | 2020-03-15T21:07:48.000Z | 2021-03-15T20:37:39.000Z | smaland/totp.py | emilwareus/smaland | b455199b072c84bcf6d576c92fc18004e0cbe60b | [
"MIT"
] | null | null | null | smaland/totp.py | emilwareus/smaland | b455199b072c84bcf6d576c92fc18004e0cbe60b | [
"MIT"
] | 1 | 2020-04-05T08:17:14.000Z | 2020-04-05T08:17:14.000Z | import os
import pyotp
| 10.1 | 29 | 0.633663 |
63926d6791f595f27ac1f2b7ab67e1b7d3e158ff | 1,929 | py | Python | tests/test_configurations/test_validation.py | marcofavorito/agents-aea | e520f2f5d076a193514e194d94aa76c6423ac5bc | [
"Apache-2.0"
] | null | null | null | tests/test_configurations/test_validation.py | marcofavorito/agents-aea | e520f2f5d076a193514e194d94aa76c6423ac5bc | [
"Apache-2.0"
] | null | null | null | tests/test_configurations/test_validation.py | marcofavorito/agents-aea | e520f2f5d076a193514e194d94aa76c6423ac5bc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | 37.096154 | 83 | 0.613271 |
63945e496bccbd028111b476e664c3eb1a506627 | 149 | py | Python | catfact.py | machow/catfact | d316ddc399c5832827748bfd0090c9aab328be0e | [
"MIT"
] | null | null | null | catfact.py | machow/catfact | d316ddc399c5832827748bfd0090c9aab328be0e | [
"MIT"
] | 1 | 2020-08-17T16:39:22.000Z | 2020-08-17T17:26:28.000Z | catfact.py | machow/forcats-py | d316ddc399c5832827748bfd0090c9aab328be0e | [
"MIT"
] | null | null | null | __version__ = "0.0.1"
# NOTE: I am moving the forcats module from siuba to here
# https://github.com/machow/siuba/blob/master/siuba/dply/forcats.py
| 29.8 | 67 | 0.744966 |
6394a005b0b9bebb0d580dab268f093e10997fc7 | 958 | py | Python | src/djanban/apps/boards/migrations/0007_auto_20160724_2331.py | diegojromerolopez/djanban | 6451688d49cf235d03c604b19a6a8480b33eed87 | [
"MIT"
] | 33 | 2017-06-14T18:04:25.000Z | 2021-06-15T07:07:56.000Z | src/djanban/apps/boards/migrations/0007_auto_20160724_2331.py | diegojromerolopez/djanban | 6451688d49cf235d03c604b19a6a8480b33eed87 | [
"MIT"
] | 1 | 2017-05-10T08:45:55.000Z | 2017-05-10T08:45:55.000Z | src/djanban/apps/boards/migrations/0007_auto_20160724_2331.py | diegojromerolopez/djanban | 6451688d49cf235d03c604b19a6a8480b33eed87 | [
"MIT"
] | 8 | 2017-08-27T11:14:25.000Z | 2021-03-03T12:11:16.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-24 21:31
from __future__ import unicode_literals
from django.db import migrations, models
| 30.903226 | 135 | 0.625261 |
6394f2f9f555e0a8608e94bc903806f7f599f382 | 547 | py | Python | consultas/consultas/report/reporte_ars/reporte_ars.py | Lewinta/Consultas | e01ad870a2bad0eb5938d8800e3e2934402fce62 | [
"MIT"
] | null | null | null | consultas/consultas/report/reporte_ars/reporte_ars.py | Lewinta/Consultas | e01ad870a2bad0eb5938d8800e3e2934402fce62 | [
"MIT"
] | null | null | null | consultas/consultas/report/reporte_ars/reporte_ars.py | Lewinta/Consultas | e01ad870a2bad0eb5938d8800e3e2934402fce62 | [
"MIT"
] | null | null | null | # Copyright (c) 2013, Lewin Villar and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe | 36.466667 | 109 | 0.740402 |
63962ee9e6bd04454a63c550017a084b6549e70a | 2,014 | py | Python | features/list.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | 3 | 2021-03-29T13:28:31.000Z | 2021-10-12T09:33:14.000Z | features/list.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | null | null | null | features/list.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | 1 | 2021-04-05T10:19:34.000Z | 2021-04-05T10:19:34.000Z | from features import addFeature
from lib import implants
from lib import globals
import tableprint
import timeago
import sys
import time
global lastImplantCount
lastImplantCount = 0
addFeature(ListCommand)
| 30.515152 | 134 | 0.626614 |
639784db5f7b3e514273818d74c8edc0b31fcc00 | 2,883 | py | Python | cst_toolbox/misc.py | danielberenberg/system-triangle-citizen | 9b3aef8ce61c798119456f7c0febbabd15d4b054 | [
"AFL-1.1"
] | null | null | null | cst_toolbox/misc.py | danielberenberg/system-triangle-citizen | 9b3aef8ce61c798119456f7c0febbabd15d4b054 | [
"AFL-1.1"
] | null | null | null | cst_toolbox/misc.py | danielberenberg/system-triangle-citizen | 9b3aef8ce61c798119456f7c0febbabd15d4b054 | [
"AFL-1.1"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import shutil
import secrets
from pathlib import Path
def exists(f):
"""Existing path 'type'"""
f = Path(f)
if not f.exists():
raise FileNotFoundError(f"{f} doesn't exist")
return f
def nat(x):
"""Natural number > 0 'type'"""
x = int(x)
... | 23.826446 | 88 | 0.58897 |
6398388ca17e95891e06f879a77203f8c6d615b1 | 226 | py | Python | tests/xtests/view_base/apps.py | Linuxbody/Xadmin | 09f588dda215c9e872d7c007622c1a8d32956265 | [
"BSD-3-Clause"
] | null | null | null | tests/xtests/view_base/apps.py | Linuxbody/Xadmin | 09f588dda215c9e872d7c007622c1a8d32956265 | [
"BSD-3-Clause"
] | 1 | 2021-02-08T20:51:30.000Z | 2021-02-08T20:51:30.000Z | tests/xtests/view_base/apps.py | Linuxbody/Xadmin | 09f588dda215c9e872d7c007622c1a8d32956265 | [
"BSD-3-Clause"
] | 1 | 2017-08-23T06:49:46.000Z | 2017-08-23T06:49:46.000Z | #!/usr/bin/env python
#coding:utf-8
import sys
if sys.getdefaultencoding()=='ascii':
reload(sys)
sys.setdefaultencoding('utf-8')
from django.apps import AppConfig
| 18.833333 | 37 | 0.721239 |
63992d2753f85baec5addc65ebdd06abc6f26af5 | 2,569 | py | Python | equidistantpoints/cli.py | ksbg/edpoints | f0534ad7deb6ec50992dc382bf3395e7e494aace | [
"MIT"
] | 5 | 2019-04-01T12:15:35.000Z | 2021-11-23T21:56:14.000Z | equidistantpoints/cli.py | ksbg/edpoints | f0534ad7deb6ec50992dc382bf3395e7e494aace | [
"MIT"
] | null | null | null | equidistantpoints/cli.py | ksbg/edpoints | f0534ad7deb6ec50992dc382bf3395e7e494aace | [
"MIT"
] | 1 | 2019-03-23T08:43:03.000Z | 2019-03-23T08:43:03.000Z | """Command-line usage of the package"""
from argparse import ArgumentParser
from . import EquidistantPoints
def parse_args():
"""Command-line arguments parsing"""
parser = ArgumentParser()
parser.add_argument(
'n_points',
help='Number of points to be generated',
metavar='N',
... | 32.518987 | 96 | 0.609965 |
6399347054a80cac6c21b3faa78dc0fa728a196b | 406 | py | Python | conda_verify/package/test_setup_files.py | soapy1/conda-verify | 4941b8ea37bf4afa5ca16366ae855f756037f230 | [
"BSD-3-Clause"
] | null | null | null | conda_verify/package/test_setup_files.py | soapy1/conda-verify | 4941b8ea37bf4afa5ca16366ae855f756037f230 | [
"BSD-3-Clause"
] | null | null | null | conda_verify/package/test_setup_files.py | soapy1/conda-verify | 4941b8ea37bf4afa5ca16366ae855f756037f230 | [
"BSD-3-Clause"
] | 1 | 2020-02-03T12:43:17.000Z | 2020-02-03T12:43:17.000Z | from conda_verify.conda_package_check import CondaPackageCheck
| 36.909091 | 78 | 0.780788 |
639a947ce1dccf8c0d1cdff0245bd69ac98bd8c8 | 346 | py | Python | py/kgc/csv_numbered_fields.py | bcgov/diutils | caf510c81f7f43372d4a8e18f77eaa86cdede6a5 | [
"Apache-2.0"
] | 3 | 2020-02-13T21:34:28.000Z | 2021-01-11T17:24:56.000Z | py/kgc/csv_numbered_fields.py | bcgov/diputils | 6a491e8f1dd9330b58083953a274544b6c0f5bea | [
"Apache-2.0"
] | 14 | 2020-04-17T19:33:50.000Z | 2021-12-12T22:03:43.000Z | py/kgc/csv_numbered_fields.py | bcgov/diutils | caf510c81f7f43372d4a8e18f77eaa86cdede6a5 | [
"Apache-2.0"
] | 1 | 2021-11-19T01:18:41.000Z | 2021-11-19T01:18:41.000Z | # write new version of csv with numbered (not named) fields
import os
import sys
args = sys.argv
lines = open(args[1]).readlines()
lines = [line.strip() for line in lines]
hdr = lines[0].split(',')
hdr = ','.join([str(i) for i in range(len(hdr))])
lines[0] = hdr
open(args[1] + "_numbered_fields.csv", "wb").write(('\... | 24.714286 | 79 | 0.656069 |
639b89ff3173f96edbd1e584cff4ca8d08819f9f | 2,532 | py | Python | bike/parsing/load.py | debiancn/bicyclerepair | dd054e802d6d8ad80baeccee0396da68144f2a26 | [
"ICU"
] | 2 | 2020-05-29T06:31:53.000Z | 2020-12-19T21:49:25.000Z | bike/parsing/load.py | debiancn/bicyclerepair | dd054e802d6d8ad80baeccee0396da68144f2a26 | [
"ICU"
] | null | null | null | bike/parsing/load.py | debiancn/bicyclerepair | dd054e802d6d8ad80baeccee0396da68144f2a26 | [
"ICU"
] | null | null | null | from bike.globals import *
import os
from bike.parsing.fastparser import fastparser
Cache.instance = Cache()
| 26.652632 | 77 | 0.648499 |
639c16e6f34dd9dd30026f135c3b0b6e5f096b19 | 736 | py | Python | tests/expander/test_expand_config_shared.py | alphatwirl/qtwirl | 85cc5fa53a9932a83c3fb6115a054590bcf999a7 | [
"BSD-3-Clause"
] | null | null | null | tests/expander/test_expand_config_shared.py | alphatwirl/qtwirl | 85cc5fa53a9932a83c3fb6115a054590bcf999a7 | [
"BSD-3-Clause"
] | null | null | null | tests/expander/test_expand_config_shared.py | alphatwirl/qtwirl | 85cc5fa53a9932a83c3fb6115a054590bcf999a7 | [
"BSD-3-Clause"
] | null | null | null | # Tai Sakuma <tai.sakuma@gmail.com>
import pytest
try:
import unittest.mock as mock
except ImportError:
import mock
from qtwirl._parser.expander import _expand_config
##__________________________________________________________________||
##__________________________________________________________________||... | 26.285714 | 70 | 0.766304 |
639c1fc6dce0c0de8ecc27f3959b4ad5d2555fed | 2,815 | py | Python | molecool/visualize.py | janash/sample_python_package | 367a1f446671aca81b789077adfb771385786d48 | [
"BSD-3-Clause"
] | 1 | 2020-05-01T18:43:56.000Z | 2020-05-01T18:43:56.000Z | molecool/visualize.py | janash/sample_python_package | 367a1f446671aca81b789077adfb771385786d48 | [
"BSD-3-Clause"
] | null | null | null | molecool/visualize.py | janash/sample_python_package | 367a1f446671aca81b789077adfb771385786d48 | [
"BSD-3-Clause"
] | null | null | null | """
Functions for visualization of molecules
"""
import numpy as np
import matplotlib.pyplot as plt
from .atom_data import atom_colors
def draw_molecule(coordinates, symbols, draw_bonds=None, save_location=None, dpi=300):
"""Draw a picture of a molecule.
Parameters
----------
coordinates : np.ndarray... | 28.72449 | 86 | 0.617052 |
639d17d627a197d64b7fb4116f0b3b64aa07ae6b | 2,185 | py | Python | interesting_info.py | jicarretero/fiware-users | cedb87550fc3a1e95b0087e3174160301fe3b80d | [
"Apache-2.0"
] | null | null | null | interesting_info.py | jicarretero/fiware-users | cedb87550fc3a1e95b0087e3174160301fe3b80d | [
"Apache-2.0"
] | null | null | null | interesting_info.py | jicarretero/fiware-users | cedb87550fc3a1e95b0087e3174160301fe3b80d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
##
# Copyright 2017 FIWARE Foundation, e.V.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apach... | 28.012821 | 103 | 0.70389 |