max_stars_repo_path stringlengths 4 237 | max_stars_repo_name stringlengths 6 117 | max_stars_count int64 0 95.2k | id stringlengths 1 7 | content stringlengths 12 593k | input_ids listlengths 7 549k |
|---|---|---|---|---|---|
CondTools/Ecal/test/preshower/writeESGain_LG.py | SWuchterl/cmssw | 6 | 1609228 | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
#process.load("CondCore.DBCommon.CondDBCommon_cfi")
process.load("CondCore.CondDB.CondDB_cfi")
process.CondDB.connect = 'sqlite_file:ESGain_LG.db'
process.MessageLogger = cms.Service("MessageLogger",
debugModule... | [
1,
1053,
383,
29956,
9203,
29889,
9329,
2697,
29889,
3991,
408,
274,
1516,
13,
13,
5014,
353,
274,
1516,
29889,
7032,
703,
18267,
1159,
13,
29937,
5014,
29889,
1359,
703,
10983,
9203,
29889,
4051,
18877,
29889,
10983,
4051,
18877,
29918,
... |
python-fundamentals/day-5-Tuples/python-tuples-basics.py | laminsawo/python-365-days | 0 | 74012 | <reponame>laminsawo/python-365-days
# A tuple operates like a list but it's initial values can't be modified
# Tuples are declared using the ()
# Use case examples of using Tuple - Dates of the week, Months of the Year, Hours of the clock
# we can create a tuple like this...
monthsOfTheYear = ("Jan", "Feb", "Ma... | [
1,
529,
276,
1112,
420,
29958,
5288,
1144,
29874,
827,
29914,
4691,
29899,
29941,
29953,
29945,
29899,
16700,
13,
29937,
319,
18761,
1751,
1078,
763,
263,
1051,
541,
372,
29915,
29879,
2847,
1819,
508,
29915,
29873,
367,
9120,
30004,
13,
... |
main.py | adadesions/chicken_farm | 0 | 120817 | <gh_stars>0
import cv2
import pyzed.sl as sl
import numpy as np
import time
def print_camera_information(cam):
print("Resolution: {0}, {1}.".format(round(cam.get_resolution().width, 2), cam.get_resolution().height))
print("Camera FPS: {0}.".format(cam.get_camera_fps()))
print("Firmware: {0}.".format(cam.g... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
13850,
29906,
13,
5215,
11451,
24688,
29889,
2536,
408,
2243,
13,
5215,
12655,
408,
7442,
13,
5215,
931,
13,
13,
13,
1753,
1596,
29918,
26065,
29918,
19678,
29898,
11108,
1125,
13... |
aiida/backends/djsite/db/migrations/0006_delete_dbpath.py | louisponet/aiida-core | 1 | 1610804 | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13383,
13383,
13383,
13383,
7346,
2277,
29937,
13,
29937,
14187,
1266,
313,
29883,
511,
450,
319,
2236,
7698,
3815,
29889,
2178,
10462,
21676,
29889,
462,
... |
raspberry-pi.py | Jiivee/hue-raspberry-motion-sensor | 0 | 1612537 | import requests
import RPi.GPIO as GPIO
import time
sensor = 4
GPIO.setmode(GPIO.BCM)
GPIO.setup(sensor, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
previous_state = False
current_state = False
last_movement = time.time()
light_on = False
while True:
time.sleep(0.5)
previous_state = current_state
current_state ... | [
1,
1053,
7274,
13,
5215,
390,
12197,
29889,
29954,
2227,
29949,
408,
402,
2227,
29949,
13,
5215,
931,
13,
13,
29879,
6073,
353,
29871,
29946,
13,
29954,
2227,
29949,
29889,
842,
8513,
29898,
29954,
2227,
29949,
29889,
5371,
29924,
29897,
... |
crawler/views.py | kuna/twfavcrawler | 0 | 37028 | <reponame>kuna/twfavcrawler
from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from models import *
import twitter
# -------------------------------
def main(request):
return render(request, "main.htm")
# if not logined, then go to auth page fir... | [
1,
529,
276,
1112,
420,
29958,
29895,
4347,
29914,
7516,
29888,
485,
29883,
1610,
1358,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
29892,
6684,
13,
3166,
9557,
29889,
1124,
1053,
9056,
5103,
29892,
9056,
5103,
24735,
29892,
14... |
Chapter8/study8_10.py | nicuo/Python3 | 0 | 162127 | <gh_stars>0
import sqlalchemy
conn = sqlalchemy.create_engine('sqlite:///books.db')
sql = 'select title from book order by title asc'
rows = conn.execute(sql)
for row in rows:
print(row)
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
4576,
284,
305,
6764,
13,
13082,
353,
4576,
284,
305,
6764,
29889,
3258,
29918,
10599,
877,
22793,
597,
29914,
12733,
29889,
2585,
1495,
13,
2850,
353,
525,
2622,
3611,
515,
3143,... |
Operation/Sub.py | janvi16/-HACKTOBERFEST2K20 | 0 | 41881 | <reponame>janvi16/-HACKTOBERFEST2K20<gh_stars>0
#python program to subtract two numbers using function
def subtraction(x,y): #function definifion for subtraction
sub=x-y
return sub
num1=int(input("please enter first number: "))#input from user to num1
num2=int(input("please enter second number: "))#input from... | [
1,
529,
276,
1112,
420,
29958,
8931,
1403,
29896,
29953,
24028,
29950,
11375,
4986,
13635,
16359,
1254,
29906,
29968,
29906,
29900,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
4691,
1824,
304,
23197,
1023,
3694,
773,
740,
13,
... |
catalogueapi/api/serializers.py | OpertusMundi/catalogue-service | 0 | 1612639 | <gh_stars>0
from flask_restx import fields, inputs
from catalogueapi.api.restx import api
polygon = api.model('polygon geometry', {
'type': fields.String(description='Type of geometry', default="Polygon"),
'coordinates': fields.List(fields.List(
fields.List(fields.Float, type="Array"),
required... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
29784,
29918,
5060,
29916,
1053,
4235,
29892,
10970,
13,
3166,
16653,
434,
2754,
29889,
2754,
29889,
5060,
29916,
1053,
7882,
13,
13,
3733,
17125,
353,
7882,
29889,
4299,
877,
3733,... |
signal_viewer/Window.py | dozou/pyio_plugins | 0 | 82874 | <gh_stars>0
# -*- coding: utf-8 -*-
from pyio.DataSturucture import DataContainer
from pyio.Window.LineEdit import LabelOnSpinBox, RangeView
from signal_viewer.Charts import ChartObject
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QGroupBox, QLabel, QPushButton
from PyQt5.QtGui import QPainter
from Py... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
11451,
601,
29889,
1469,
855,
332,
12425,
1053,
3630,
7895,
13,
3166,
11451,
601,
29889,
5907,
29... |
settings/GonY_settings.py | bopopescu/Lauecollect | 0 | 1610982 | prefix = '14IDB:m153'
description = 'Alio Y'
target = 0.48996875
EPICS_enabled = True | [
1,
10944,
353,
525,
29896,
29946,
1367,
29933,
29901,
29885,
29896,
29945,
29941,
29915,
13,
8216,
353,
525,
29909,
5991,
612,
29915,
13,
5182,
353,
29871,
29900,
29889,
29946,
29947,
29929,
29929,
29953,
29947,
29955,
29945,
13,
29923,
222... |
hello.py | LMiceOrg/postdoc-voting | 0 | 4770 | #coding: utf-8
import sys
import os
import asyncio
import websockets
import json
import socket
import xlrd
#global vars
phd_data = None
pro_data = None
def get_host_ip():
try:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(('192.168.127.12', 65535))
ip = s.getsockname()[0]... | [
1,
396,
29883,
3689,
29901,
23616,
29899,
29947,
13,
5215,
10876,
13,
5215,
2897,
13,
13,
5215,
408,
948,
3934,
13,
5215,
1856,
578,
9737,
13,
5215,
4390,
13,
5215,
9909,
13,
5215,
921,
29880,
5499,
13,
13,
29937,
10945,
24987,
13,
... |
automation/auto_update_image_pr.py | WaqasAhmedLatif/cloud-native-edition | 23 | 17405 | import os
import json
from common import update_json_file, get_logger, exec_cmd
from yamlparser import Parser
from pathlib import Path
logger = get_logger("update-image")
# Functions that work to update gluu_versions.json
def determine_final_official_and_dev_version(tag_list):
"""
Determine official version... | [
1,
1053,
2897,
13,
5215,
4390,
13,
3166,
3619,
1053,
2767,
29918,
3126,
29918,
1445,
29892,
679,
29918,
21707,
29892,
2279,
29918,
9006,
13,
3166,
343,
8807,
16680,
1053,
1459,
643,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
21707,
353,... |
no12/no12.py | shopetan/ksnctf | 0 | 62446 | <reponame>shopetan/ksnctf<gh_stars>0
import requests
postdata = """<?php system('cat flag_flag_flag.txt'); die();?>"""
url = """http://ctfq.sweetduet.info:10080/~q12/?-d+allow_url_include%3DOn+-d+auto_prepend_file%3Dphp://input"""
#url = """http://ctfq.sweetduet.info:10080/~q12/?-s"""
hax = requests.post(url,postdata)... | [
1,
529,
276,
1112,
420,
29958,
19032,
300,
273,
29914,
2039,
29876,
312,
29888,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
7274,
13,
2490,
1272,
353,
9995,
8169,
1961,
1788,
877,
4117,
7353,
29918,
15581,
29918,
15581,
29889,... |
src/data/1135.py | NULLCT/LOMC | 0 | 31693 | from sys import setrecursionlimit
setrecursionlimit(10**7)
N, Q = [int(x) for x in input().split()]
to = [[] for _ in range(N)]
for _ in range(N - 1):
a, b = [int(x) - 1 for x in input().split()]
to[a].append(b)
to[b].append(a)
depth = [-1] * N
def dfs(v, p, d):
depth[v] = d
for u in to[v]:
... | [
1,
515,
10876,
1053,
731,
3757,
1295,
291,
13400,
13,
13,
842,
3757,
1295,
291,
13400,
29898,
29896,
29900,
1068,
29955,
29897,
13,
13,
29940,
29892,
660,
353,
518,
524,
29898,
29916,
29897,
363,
921,
297,
1881,
2141,
5451,
580,
29962,
... |
adventofcode/2020/25/crack_key/__init__.py | bneradt/toy | 0 | 24289 | <filename>adventofcode/2020/25/crack_key/__init__.py<gh_stars>0
from .crack_key import derive_loop_size, derive_encryption_key
| [
1,
529,
9507,
29958,
328,
794,
974,
401,
29914,
29906,
29900,
29906,
29900,
29914,
29906,
29945,
29914,
29883,
22282,
29918,
1989,
29914,
1649,
2344,
26914,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
869,
29883,
22282,
29... |
config.py | AlbertMillan/adversarial-training-pytorch | 14 | 54773 | <gh_stars>10-100
import numpy as np
import math
import torch
from torchvision import transforms
mean=np.array([0.4914, 0.4822, 0.4465])
std=np.array([0.2023, 0.1994, 0.2010])
max_val = np.array([ (1. - mean[0]) / std[0],
(1. - mean[1]) / std[1],
(1. - mean[2]) / std[2],
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
12655,
408,
7442,
13,
5215,
5844,
13,
5215,
4842,
305,
13,
3166,
4842,
305,
4924,
1053,
4327,
29879,
13,
13,
12676,
29922,
9302,
29889,
2378,
41... |
qf_lib/data_providers/bloomberg/tabular_data_provider.py | webclinic017/qf-lib | 198 | 160132 | <gh_stars>100-1000
# Copyright 2016-present CERN – European Organization for Nuclear Research
#
# 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... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
29937,
268,
14187,
1266,
29871,
29906,
29900,
29896,
29953,
29899,
6338,
315,
1001,
29940,
785,
7824,
9205,
2133,
363,
405,
1682,
1945,
1055... |
mysite/bms/models.py | rajhiren/django-bms | 0 | 186037 | from django.contrib.auth import get_user_model
from django.db import models
from django.urls import reverse
from django.utils import timezone
class Role(models.Model):
COACH = 'C'
PLAYER = 'P'
ADMIN = 'A'
ROLE_TYPES = [
(COACH, 'Coach'),
(PLAYER, 'Player'),
(ADMIN, 'Admin'),
... | [
1,
515,
9557,
29889,
21570,
29889,
5150,
1053,
679,
29918,
1792,
29918,
4299,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
26045,
1053,
11837,
13,
3166,
9557,
29889,
13239,
1053,
29431,
13,
13,
13,
1990,
1528,
280,
29... |
darknet/detect.py | Kwull/yolo-detector | 0 | 177146 | from ctypes import *
import random
import os
import requests
import time
import urllib
import cv2
from skimage import draw
import numpy as np
import json
import datetime
import paho.mqtt.client as paho
import yaml
import pytz
import re
import subprocess
import select
with open("/config/detect.conf"... | [
1,
515,
274,
8768,
1053,
334,
30004,
13,
5215,
4036,
30004,
13,
5215,
2897,
30004,
13,
5215,
7274,
30004,
13,
5215,
931,
30004,
13,
5215,
3142,
1982,
30004,
13,
5215,
13850,
29906,
30004,
13,
3166,
2071,
3027,
1053,
4216,
30004,
13,
5... |
tools/makeDB.py | TheodorRene/DailyPuzzles | 2 | 42611 | <filename>tools/makeDB.py
#!/home/theodorc/dev/Python-3.6.5/python
import sqlite3
from sys import argv
from os import path
# \s*([rnbqkpRNBQKP1-8]+\/){7}([rnbqkpRNBQKP1-8]+)\s[bw-]\s(([a-hkqA-HKQ]{1,4})|(-))\s(([a-h][36])|(-))\s\d+\s\d+\s* possible regex for verifing FEN
config = {
"mod": 5,
"offset": 1,
... | [
1,
529,
9507,
29958,
8504,
29914,
5675,
4051,
29889,
2272,
13,
29937,
14708,
5184,
29914,
1552,
17606,
29883,
29914,
3359,
29914,
11980,
29899,
29941,
29889,
29953,
29889,
29945,
29914,
4691,
13,
13,
5215,
21120,
29941,
13,
3166,
10876,
105... |
bloop/ext/pendulum.py | monoflo/bloop | 0 | 159760 | import pendulum
from .. import types
# https://github.com/sdispater/pendulum/issues/97
DEFAULT_TIMEZONE = "utc"
class DateTime(types.DateTime):
python_type = pendulum.Pendulum
def __init__(self, timezone=DEFAULT_TIMEZONE):
self.timezone = timezone
super().__init__()
def dynamo_dump(se... | [
1,
1053,
282,
355,
352,
398,
13,
13,
3166,
6317,
1053,
4072,
13,
13,
13,
29937,
2045,
597,
3292,
29889,
510,
29914,
29879,
2218,
29886,
1008,
29914,
14081,
352,
398,
29914,
12175,
29914,
29929,
29955,
13,
23397,
29918,
15307,
29999,
124... |
matchms/filtering/default_filters.py | NLeSC/Spec2Vec | 0 | 1614153 | <reponame>NLeSC/Spec2Vec
from ..typing import SpectrumType
from .add_adduct import add_adduct
from .add_precursor_mz import add_precursor_mz
from .correct_charge import correct_charge
from .derive_ionmode import derive_ionmode
from .make_charge_scalar import make_charge_scalar
from .make_ionmode_lowercase import make_i... | [
1,
529,
276,
1112,
420,
29958,
29940,
3226,
7187,
29914,
10299,
29906,
25987,
13,
3166,
6317,
1017,
15702,
1053,
27738,
5848,
1542,
13,
3166,
869,
1202,
29918,
328,
2199,
1053,
788,
29918,
328,
2199,
13,
3166,
869,
1202,
29918,
17990,
5... |
skidl/libs/msp430_sklib.py | arjenroodselaar/skidl | 700 | 113780 | <filename>skidl/libs/msp430_sklib.py
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib
SKIDL_lib_version = '0.0.1'
msp430 = SchLib(tool=SKIDL).add_parts(*[
Part(name='MSP430AFE221IPW',dest=TEMPLATE,tool=SKIDL,keywords='MSP430 MIXED SIGNAL MICROCONTROLLER',description='24pin TSSOP, 16KB Flash Memory, 512B R... | [
1,
529,
9507,
29958,
808,
333,
29880,
29914,
10254,
29914,
29885,
1028,
29946,
29941,
29900,
29918,
808,
1982,
29889,
2272,
13,
3166,
2071,
333,
29880,
1053,
18581,
1367,
29931,
29892,
17067,
3580,
29931,
3040,
29892,
3455,
29892,
17434,
29... |
salesman_paypal/payment.py | dinoperovic/django-salesman-paypal | 2 | 112717 | <reponame>dinoperovic/django-salesman-paypal<filename>salesman_paypal/payment.py
from __future__ import annotations
import json
import logging
from decimal import Decimal
from typing import Any, TypeVar
from django.http import HttpRequest, HttpResponse
from django.shortcuts import redirect, render
from django.urls im... | [
1,
529,
276,
1112,
420,
29958,
24581,
3372,
586,
293,
29914,
14095,
29899,
29879,
2122,
1171,
29899,
10472,
7830,
29966,
9507,
29958,
29879,
2122,
1171,
29918,
10472,
7830,
29914,
27825,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,... |
users/urls.py | Shawn9717/awards | 0 | 102659 |
from django.urls import path,include,re_path
from . import views
from django.contrib.auth import views as auth_views
app_name = "users"
urlpatterns = [
path('api/profile',views.ProfileList.as_view()),
path('profile/',views.profile,name = 'profile'),
#path('user_profile/',views.user_profile,name = 'us... | [
1,
29871,
13,
3166,
9557,
29889,
26045,
1053,
2224,
29892,
2856,
29892,
276,
29918,
2084,
13,
3166,
869,
1053,
8386,
13,
3166,
9557,
29889,
21570,
29889,
5150,
1053,
8386,
408,
4817,
29918,
7406,
13,
13,
932,
29918,
978,
353,
376,
7193,... |
explanation/analyse.py | whj0401/RLOBF | 3 | 190041 | # -*- coding: utf-8 -*-
import os
bin_names = 'md5sum, sha512sum, comm, uniq, nl, b2sum, sum, wc, sha256sum, ptx, sha1sum, join, dir, shuf, tail, tsort, ls, sort, base64, base32'
bin_names = bin_names.split(', ')
total_opcodes = 0
num_valid_funcs = 0
for name in bin_names:
op_dir = './%s_ops_info/' % name
... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
2897,
13,
13,
2109,
29918,
7039,
353,
525,
3487,
29945,
2083,
29892,
528,
29874,
29945,
29896,
29906,
2083,
29892,
844,
29892,
443,
29875,
2993... |
Cart/main.py | Isaquehg/smart-shelf | 0 | 96248 | from time import sleep
from machine import Pin, PWM
led = Pin(25, Pin.OUT)
motorD1 = PWM(Pin(6, Pin.OUT))
motorD2 = PWM(Pin(7, Pin.OUT))
motorE1 = PWM(Pin(8, Pin.OUT))
motorE2 = PWM(Pin(9, Pin.OUT))
button = Pin(22, Pin.IN, Pin.PULL_DOWN)
FD = Pin(12, Pin.IN, Pin.PULL_DOWN)
D = Pin(13, Pin.IN, Pin.PULL_DOWN)
E = Pin(... | [
1,
515,
931,
1053,
8709,
13,
3166,
4933,
1053,
17434,
29892,
349,
26735,
13,
13,
839,
353,
17434,
29898,
29906,
29945,
29892,
17434,
29889,
12015,
29897,
13,
14817,
272,
29928,
29896,
353,
349,
26735,
29898,
29925,
262,
29898,
29953,
2989... |
news_crawler/utils.py | andreeaiana/renewrs_corpus_extraction | 2 | 1614198 | # -*- coding: utf-8 -*-
# Utils for news_crawler project
def remove_empty_paragraphs(paragraphs):
""" Removes empty paragraphs from a list of paragraphs """
return [para for para in paragraphs if para != ' ' and para != '']
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
22310,
29879,
363,
9763,
29918,
29883,
1610,
1358,
2060,
13,
13,
13,
1753,
3349,
29918,
6310,
29918,
26956,
29879,
29898,
26956,
29879,
1125,
13,
... |
tecmov-cartopy.py | mrinalghosh/gpstec | 1 | 171800 | #!/usr/bin/env python
# Cartopy implementation of TEC plotting in polar coordinates
# author: @mrinalghosh
import matplotlib.pyplot as plt
import matplotlib.path as mpath
import numpy as np
import cartopy.feature as cfeature
import cartopy.crs as ccrs
import h5py
from argparse import ArgumentParser
from datetime impo... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
29937,
12370,
2270,
5314,
310,
323,
11206,
6492,
1259,
297,
16755,
10350,
13,
29937,
4148,
29901,
732,
29885,
29878,
979,
12443,
10578,
13,
13,
5215,
22889,
29889,
2272,
5317,
408,
... |
recognition/streamlit_app.py | jfthuong/photo-organizer | 0 | 185660 | <gh_stars>0
import requests # type:ignore
import sys
import tempfile
from operator import itemgetter
from pathlib import Path
from typing import Callable, List, Tuple, Union
import streamlit as st
from streamlit.uploaded_file_manager import UploadedFile
import torch
import torchvision.transforms as transforms
from fa... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
7274,
29871,
396,
1134,
29901,
17281,
13,
5215,
10876,
13,
5215,
5694,
1445,
13,
3166,
5455,
1053,
2944,
657,
357,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
19229,
1053,
8251,
... |
azure_cli.py | isabella232/azure-storage-dd | 2 | 183297 | <reponame>isabella232/azure-storage-dd<filename>azure_cli.py
"""
CLI for Azure
"""
#stdlib
import argparse
# cli modules
from cli.storage_azure import StorageCLI
if __name__ == "__main__":
tools = [
StorageCLI,
]
parser = argparse.ArgumentParser(
description="Azure CLI to create/manage r... | [
1,
529,
276,
1112,
420,
29958,
275,
1107,
433,
29906,
29941,
29906,
29914,
17688,
29899,
12925,
29899,
1289,
29966,
9507,
29958,
17688,
29918,
11303,
29889,
2272,
13,
15945,
29908,
13,
27205,
363,
12634,
13,
15945,
29908,
13,
13,
29937,
4... |
solution/1978(소수 찾기).py | OMEGA-Y/Baekjoon-sol | 0 | 43683 | input()
num = set(map(int,input().split()))
prime = set([i for i in range(3,max(num)+1,2)])
for i in range(3,max(num)+1,2):
if i in prime:
prime -= set([i for i in range(i*2,max(num)+1,i)])
prime.add(2)
print(len(num.intersection(prime))) | [
1,
1881,
580,
13,
1949,
353,
731,
29898,
1958,
29898,
524,
29892,
2080,
2141,
5451,
22130,
13,
13,
10080,
353,
731,
4197,
29875,
363,
474,
297,
3464,
29898,
29941,
29892,
3317,
29898,
1949,
7240,
29896,
29892,
29906,
29897,
2314,
13,
14... |
bauer_bsm/exporter/chargy.py | alkradhazar/test1 | 7 | 1603994 | # BSM Python library and command line tool
#
# Copyright (C) 2020 chargeIT mobility GmbH
#
# SPDX-License-Identifier: Apache-2.0
from ..bsm import config
from ..bsm import dlms
from ..bsm.client import BsmClientDevice, SnapshotStatus, SunSpecBsmClientDevice
from ..sunspec.core import suns
from collections import Orde... | [
1,
396,
350,
17061,
5132,
3489,
322,
1899,
1196,
5780,
13,
29937,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29906,
29900,
8323,
1806,
22458,
1793,
18156,
13,
29937,
13,
29937,
10937,
29928,
29990,
29899,
29931,
293,
... |
mdemanipulation/src/mdeoperation.py | modelia/ai-for-model-manipulation | 0 | 10196 | <gh_stars>0
#!/usr/bin/env python2
import math
import os
import random
import sys
import time
import logging
import argparse
import numpy as np
from six.moves import xrange
import json
import torch
import torch.nn as nn
import torch.optim as optim
from torch import cuda
from torch.autograd import Variable
from torch... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29906,
13,
13,
5215,
5844,
13,
5215,
2897,
13,
5215,
4036,
13,
5215,
10876,
13,
5215,
931,
13,
5215,
12183,
13,
5215,
1852,
5510,
1... |
custom/icds/management/commands/export_orphaned_cases.py | rochakchauhan/commcare-hq | 1 | 82166 | import csv
from django.core.management import BaseCommand
from corehq.apps.es import CaseES, filters
from corehq.apps.locations.models import SQLLocation
from dimagi.utils.chunked import chunked
from corehq.util.log import with_progress_bar
CHILD_PROPERTIES = ['case_id', 'owner_id', 'opened_on', 'modified_on',
... | [
1,
1053,
11799,
13,
13,
3166,
9557,
29889,
3221,
29889,
21895,
1053,
7399,
6255,
13,
13,
3166,
7136,
29882,
29939,
29889,
13371,
29889,
267,
1053,
11733,
2890,
29892,
18094,
13,
3166,
7136,
29882,
29939,
29889,
13371,
29889,
2029,
800,
29... |
tests/test_arrays.py | AppliedAcousticsChalmers/levitate | 11 | 60880 | <filename>tests/test_arrays.py
import levitate.arrays
import levitate.hardware
import numpy as np
import pytest
# Tests created with these air properties
from levitate.materials import air
air.c = 343
air.rho = 1.2
# Tests were mostly written before the layout was transposed,
# so a lot of the "expected" positions et... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
2378,
29879,
29889,
2272,
13,
5215,
14453,
10388,
29889,
2378,
29879,
13,
5215,
14453,
10388,
29889,
6800,
2519,
13,
5215,
12655,
408,
7442,
13,
5215,
11451,
1688,
13,
13,
29937,
4321,
29879... |
cgi-bin/front_module.py | Jesr2104/Chromosome-browser | 1 | 177497 | #!/usr/bin/env python3
"""
###################
last changes
edidted the data processing.py
duplicate_processing funciton
added the product id to 'query' dict
###################
"""
"""
Program: front_module
File: front_module.py
Version: V1.0
Date: 10.05.18
Function: creates and reciv... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
15945,
29908,
13,
13383,
2277,
29937,
13,
4230,
3620,
13,
287,
333,
9446,
278,
848,
9068,
29889,
2272,
13,
1678,
7929,
29918,
19170,
3653,
277,
265,
13,
1678,
2715,
278,
3234,
... |
printer/src/cxi/cxifont.py | toringerhartCAMM/czi2tiff | 0 | 95879 | #!/usr/bin/env python
##
## /svn-src/printer/src/cxi/cxifont.py
##
import sys
DEBUG = 0
DEFAULT_BIT_SIZE=10
SPACE = " "
EOL = "\r\n"
default_bit_list = {
"A":21, "B":22.4, "C":23.8, "D":23.8, "E":21, "F":19.6, "G":25.2, "H":23.8,
"I":8.5, "J":16, "K":21, "L":18.2, "M":28, "N":23.8, "O":25.2, "P":21,
"Q":25.2, "R"... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
2277,
13,
2277,
29871,
847,
27517,
29899,
4351,
29914,
558,
1639,
29914,
4351,
29914,
29883,
5389,
29914,
18904,
361,
609,
29889,
2272,
13,
2277,
13,
13,
5215,
10876,
13,
13,
18525... |
python-flask-server/jatdb_server/models/__init__.py | NGenetzky/jatdb | 0 | 46279 | # coding: utf-8
# flake8: noqa
from __future__ import absolute_import
# import models into model package
from jatdb_server.models.content_file import ContentFile
from jatdb_server.models.trello_action import TrelloAction
from jatdb_server.models.trello_query import TrelloQuery
from jatdb_server.models.universal_resour... | [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
13,
29937,
17422,
446,
29947,
29901,
694,
25621,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
29937,
1053,
4733,
964,
1904,
3577,
13,
3166,
432,
271,
2585,
29918,
2974,
2... |
example_project/news_with_archive/migrations/0001_initial.py | richardbarran/django-minipub | 7 | 29632 | # Generated by Django 2.0 on 2018-02-14 13:39
from django.db import migrations, models
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29906,
29889,
29900,
373,
29871,
29906,
29900,
29896,
29947,
29899,
29900,
29906,
29899,
29896,
29946,
29871,
29896,
29941,
29901,
29941,
29929,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
... |
lib/emailsmtp/urls.py | hdknr/emailqueue | 0 | 121463 | from django.conf.urls import patterns, url
import views
urlpatterns = patterns(
'',
)
| [
1,
515,
9557,
29889,
5527,
29889,
26045,
1053,
15038,
29892,
3142,
13,
5215,
8386,
13,
13,
13,
2271,
11037,
29879,
353,
15038,
29898,
13,
1678,
15516,
13,
29897,
13,
2
] |
gui/sum_v1/apps.py | time-crunched/nlp-toolbox | 0 | 145591 | from django.apps import AppConfig
class SumV1Config(AppConfig):
name = 'sum_v1'
| [
1,
515,
9557,
29889,
13371,
1053,
2401,
3991,
13,
13,
13,
1990,
6991,
29963,
29896,
3991,
29898,
2052,
3991,
1125,
13,
1678,
1024,
353,
525,
2083,
29918,
29894,
29896,
29915,
13,
2
] |
src/alembic/versions/89944f8b35b3_db_games_model_migrations.py | green2cerberuz/db_vgames | 0 | 38041 | """DB Games model migrations
Revision ID: 89944f8b35b3
Revises:
Create Date: 2020-11-14 03:49:03.255055
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "89944f8b35b3"
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### comman... | [
1,
9995,
4051,
12482,
1904,
9725,
800,
13,
13,
1123,
4924,
3553,
29901,
29871,
29947,
29929,
29929,
29946,
29946,
29888,
29947,
29890,
29941,
29945,
29890,
29941,
13,
1123,
1730,
267,
29901,
29871,
13,
4391,
4712,
29901,
29871,
29906,
29900... |
NEAT.py | Dongyeongkim/SWANN-Nengo | 5 | 169792 | <reponame>Dongyeongkim/SWANN-Nengo<filename>NEAT.py
import time
import numpy as np
import random as rd
def translate_gene_into_nengo_param(gene_pool):
gene_pool_list = []
for gene in gene_pool:
gene_node_list = []
for nuc in gene:
gene_node_list.append(nuc[0])
gene_node... | [
1,
529,
276,
1112,
420,
29958,
29928,
549,
4099,
549,
20903,
29914,
23066,
2190,
29940,
29899,
29940,
22260,
29966,
9507,
29958,
8186,
1299,
29889,
2272,
13,
5215,
931,
13,
5215,
12655,
408,
7442,
13,
5215,
4036,
408,
364,
29881,
13,
13... |
python/day10_challenge1.py | BKreisel/Advent-of-Code-2018 | 0 | 48195 | from collections import namedtuple
from re import compile
from sys import exit as sysexit
from typing import List
from util import read_input
DAY = 10
UPPER_LIMIT = 25000
Point = namedtuple("Point", ["x", "y"])
Star = namedtuple("Star", ["position", "velocity"])
line_re = compile(r"position=<(?P<x>[-\s\d]+),(?P<y>[-\... | [
1,
515,
16250,
1053,
4257,
23583,
13,
3166,
337,
1053,
6633,
13,
3166,
10876,
1053,
6876,
408,
9878,
14167,
277,
13,
13,
3166,
19229,
1053,
2391,
13,
3166,
3667,
1053,
1303,
29918,
2080,
13,
13,
28658,
353,
29871,
29896,
29900,
13,
48... |
src/demos/python/irrlicht/demo_IRR_motors.py | yurivict/chrono | 1 | 129377 | # =============================================================================
# PROJECT CHRONO - http:#projectchrono.org
#
# Copyright (c) 2014 projectchrono.org
# All rights reserved.
#
# Use of this source code is governed by a BSD-style license that can be found
# in the LICENSE file at the top level of the distri... | [
1,
396,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
29937,
13756,
17637,
5868,
29934,
1164,
29949,
448,
1732,
21968,
4836,
5904,
29877,
29889,
990,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29946,
... |
scripts/plot_one_dim_ho.py | Benedicte/quantum-systems | 8 | 1613660 | import numpy as np
import matplotlib.pyplot as plt
from quantum_systems import ODQD
def plot_one_body_system(system):
for i in range(system.l // 2):
plt.plot(
system.grid,
system.spf[2 * i].real ** 2 + system.eigen_energies[i],
label=fr"$\psi_{i}(x)$",
)
p... | [
1,
1053,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
3166,
12101,
29918,
5205,
29879,
1053,
438,
29928,
29984,
29928,
13,
13,
13,
1753,
6492,
29918,
650,
29918,
2587,
29918,
5205,
29898,
5205,
1125,
13,
167... |
SampleScripts/grasp.py | kyspencer/GAMMA-PC-A-Greedy-Memetic-Algorithm-for-Storing-Cooling-Objects | 0 | 27218 | # grasp.py
# This script implements the GRASP heuristic for the dynamic bin packing
# problem.
# Author: <NAME>
from __future__ import print_function
import numpy as np
import random
import solutions_dynamic as solmaker
import sys
from copy import deepcopy
from itertools import combinations
from math import ceil... | [
1,
396,
25274,
29889,
2272,
13,
29937,
259,
910,
2471,
10703,
278,
18016,
3289,
29925,
540,
332,
4695,
363,
278,
7343,
9016,
4870,
292,
13,
29937,
259,
1108,
29889,
13,
29937,
259,
13361,
29901,
529,
5813,
29958,
13,
13,
3166,
4770,
2... |
4_Coverage_Evaluation/MNIST/utils.py | j-chan-hkust/deep_testing_of_advanced_learning_systems | 0 | 143878 | <reponame>j-chan-hkust/deep_testing_of_advanced_learning_systems<filename>4_Coverage_Evaluation/MNIST/utils.py
# some utils taken from the DeepXplore Implementation
import random
from collections import defaultdict
import numpy as np
from keras import backend as K
from keras.models import Model
from keras.preprocessi... | [
1,
529,
276,
1112,
420,
29958,
29926,
29899,
5083,
29899,
29882,
29895,
504,
29914,
24535,
29918,
13424,
29918,
974,
29918,
328,
16858,
29918,
21891,
29918,
5205,
29879,
29966,
9507,
29958,
29946,
29918,
29907,
957,
482,
29918,
29923,
4387,
... |
deepsleep/model.py | learning310/deepsleepnet | 266 | 73826 | import tensorflow as tf
from deepsleep.nn import *
class DeepFeatureNet(object):
def __init__(
self,
batch_size,
input_dims,
n_classes,
is_train,
reuse_params,
use_dropout,
name="deepfeaturenet"
):
self.batch_size ... | [
1,
1053,
26110,
408,
15886,
30004,
13,
30004,
13,
3166,
316,
8961,
5436,
29889,
15755,
1053,
334,
30004,
13,
30004,
13,
1990,
21784,
19132,
6779,
29898,
3318,
1125,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
30004,
13,
4706,
15... |
Python/leetcode/UniqueBinarySearchTreesIi.py | darrencheng0817/AlgorithmLearning | 2 | 84068 | '''
Created on 1.12.2016
@author: Darren
''''''
Given n, generate all structurally unique BST s (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST s shown below.
1 3 3 2 1
\ / / / \ \
... | [
1,
14550,
30004,
13,
20399,
373,
29871,
29896,
29889,
29896,
29906,
29889,
29906,
29900,
29896,
29953,
30004,
13,
30004,
13,
29992,
8921,
29901,
7335,
1267,
30004,
13,
4907,
4907,
4907,
30004,
13,
29954,
5428,
302,
29892,
5706,
599,
2281,
... |
examples/nnrt/nnrt_datasource_yolo.py | cuiboyuan/plato | 135 | 136163 | """
The COCO dataset or other datasets for the YOLOv5 model with using NNRT.
"""
import logging
import os
import math
from plato.config import Config
from plato.datasources import base
from nnrt_datasource_yolo_utils import LoadImagesAndLabels
def make_divisible(x, divisor):
# Returns x evenly divisible by divis... | [
1,
9995,
13,
1576,
4810,
3217,
8783,
470,
916,
20035,
363,
278,
612,
29949,
3927,
29894,
29945,
1904,
411,
773,
405,
29940,
13079,
29889,
13,
15945,
29908,
13,
13,
5215,
12183,
13,
5215,
2897,
13,
5215,
5844,
13,
3166,
715,
1219,
2988... |
config.py | tdaff/automation | 1 | 25799 | #!/usr/bin/env python
"""
configuration for faps
Provides the Options class that will transparently handle the different option
sources through the .get() method. Pulls in defaults, site and job options plus
command line customisation. Instantiating Options will set up the logging for
the particular job.
"""
__all_... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
15945,
29908,
13,
13305,
363,
285,
2547,
13,
13,
1184,
29894,
2247,
278,
25186,
770,
393,
674,
1301,
862,
2705,
4386,
278,
1422,
2984,
13,
29879,
2863,
1549,
278,
869,
657,
580,
... |
tests/test_ni_usb_6211.py | Jyrijoul/arduino-adc-tester | 0 | 42820 | from tester.ni_usb_6211 import NiUsb6211
import numpy as np
OUTPUT_READ_CHANNEL = "ai0"
VCC_READ_CHANNEL = "ai1"
TOLERANCE = 0.001
def test_find_devices():
devices = NiUsb6211.find_devices()
assert type(devices) == list, "Not a list!"
if len(devices) > 0:
assert type(devices[0]) == str, "An eleme... | [
1,
515,
1243,
261,
29889,
1240,
29918,
28685,
29918,
29953,
29906,
29896,
29896,
1053,
15981,
15922,
29890,
29953,
29906,
29896,
29896,
13,
5215,
12655,
408,
7442,
13,
13,
12015,
12336,
29918,
16310,
29918,
3210,
2190,
29940,
6670,
353,
376... |
rl_botics/envs/fvrs.py | Suman7495/rl-botics | 18 | 64060 | <reponame>Suman7495/rl-botics
import numpy as np
#from rllab.core.serializable import Serializable
#from rllab.envs.base import Step
#from rllab.envs.proxy_env import ProxyEnv
#from rllab.misc.overrides import overrides
import gym
from gym import Wrapper
from gym.spaces import Discrete, Box
from rl_botics.env.gym_pom... | [
1,
529,
276,
1112,
420,
29958,
29903,
7889,
29955,
29946,
29929,
29945,
29914,
2096,
29899,
7451,
1199,
13,
5215,
12655,
408,
7442,
13,
13,
29937,
3166,
364,
645,
370,
29889,
3221,
29889,
15550,
13902,
1053,
18896,
13902,
13,
29937,
3166,... |
scripts/python/s3list-old.py | kalantal/s3-tests | 2 | 129912 | #!/bin/env python
import boto3
from pprint import pprint
def main():
def enumerate_s3_buckets():
print "Bucket list:"
s3 = boto3.resource('s3')
endpoint_url = 's3.amazonaws.com',
for bucket in s3.buckets.all():
print "s3://" + ("{}".format(bucket.name))
enumerate_... | [
1,
18787,
2109,
29914,
6272,
3017,
13,
13,
5215,
289,
3747,
29941,
13,
3166,
282,
2158,
1053,
282,
2158,
13,
13,
1753,
1667,
7295,
13,
13,
1678,
822,
26985,
29918,
29879,
29941,
29918,
2423,
9737,
7295,
13,
4706,
1596,
376,
29933,
270... |
Combined Neural Network/FAC/importData_image_quality.py | neu-spiral/ClassificationAndComparisonViaNeuralNetworks | 0 | 1603728 | <filename>Combined Neural Network/FAC/importData_image_quality.py
from __future__ import absolute_import
from __future__ import print_function
import pickle
import numpy as np
from keras.preprocessing.image import load_img, img_to_array
from scipy.misc import imresize
class importData(object):
def __init__(self, c... | [
1,
529,
9507,
29958,
1523,
29890,
1312,
2448,
3631,
8527,
29914,
29943,
2477,
29914,
5215,
1469,
29918,
3027,
29918,
29567,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
3166,
4770,
29888,
9130,
1649,
1053,
... |
Submarine/controlserver/photo.py | MoffKalast/RaspberryUnderwaterROV | 5 | 112134 |
import sys
import time
import io
import picamera
import logging
import socketserver
import threading
from threading import Condition
from http import server
streamRES = "800x600"
recordRES = "1640x1232"
record = False
exposureMode = 'night'
meterMode = 'average'
rotation = 180
captureNumber = 5
captureExposure = ... | [
1,
29871,
13,
5215,
10876,
13,
5215,
931,
13,
5215,
12013,
13,
5215,
11942,
314,
1572,
13,
5215,
12183,
13,
5215,
9909,
2974,
13,
5215,
3244,
292,
13,
3166,
3244,
292,
1053,
11790,
654,
13,
3166,
1732,
1053,
1923,
13,
13,
5461,
1598... |
awacs/proton.py | alanjjenkins/awacs | 0 | 9493 | <reponame>alanjjenkins/awacs
# Copyright (c) 2012-2021, <NAME> <<EMAIL>>
# All rights reserved.
#
# See LICENSE file for full license.
from .aws import Action as BaseAction
from .aws import BaseARN
service_name = "AWS Proton"
prefix = "proton"
class Action(BaseAction):
def __init__(self, action: str = None) -> ... | [
1,
529,
276,
1112,
420,
29958,
284,
273,
29926,
4142,
11335,
29914,
1450,
16815,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29906,
29899,
29906,
29900,
29906,
29896,
29892,
529,
5813,
29958,
3532,
26862,
6227,
67... |
mlutils/workshop/tfrec/datautils/tfrecord_maker.py | mlsamsom/mlutils | 0 | 86520 | import os
import progressbar
import numpy as np
import tensorflow as tf
import skimage.io as io
from sklearn.preprocessing import LabelBinarizer
from pathutils import list_images
def _byte_feature(value):
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
def _int64_feature(value):
retu... | [
1,
1053,
2897,
13,
5215,
6728,
1646,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
26110,
408,
15886,
13,
5215,
2071,
3027,
29889,
601,
408,
12013,
13,
3166,
2071,
19668,
29889,
1457,
19170,
1053,
15796,
29933,
18220,
3950,
13,
13,
3166,
... |
p009.py | anadahalli/project-euler | 1 | 117108 | <filename>p009.py
"""Problem 009
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
a2 + b2 = c2
For example, 32 + 42 = 9 + 16 = 25 = 52.
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product abc.
"""
ans = next(a * b * c
for a in range(1, 5... | [
1,
529,
9507,
29958,
29886,
29900,
29900,
29929,
29889,
2272,
13,
15945,
29908,
26604,
29871,
29900,
29900,
29929,
13,
13,
29909,
349,
1541,
351,
487,
273,
21954,
29873,
338,
263,
731,
310,
2211,
5613,
3694,
29892,
263,
529,
289,
529,
2... |
graphing/special_graphs/bipartite/marginal_matching.py | ryu577/grapphy | 0 | 157077 | <gh_stars>0
import networkx as nx
import numpy as np
def get_schedule(probs_left, probs_right, edges, num_nodes=20):
source = 0
dest = np.max(edges)+1
left_max_ix = max(edges[::, 0])
right_max_ix = max(edges[::, 1])
g = nx.DiGraph()
for v in probs_left.keys():
cap = int(probs_left[v]*... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
3564,
29916,
408,
302,
29916,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1753,
679,
29918,
816,
11272,
29898,
771,
5824,
29918,
1563,
29892,
2070,
29879,
29918,
1266,
29892,
12770,
2... |
blog/views.py | monk-after-90s/diyblog | 0 | 82531 | <reponame>monk-after-90s/diyblog
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
# Create your views here.
from django.urls import reverse
from django.... | [
1,
529,
276,
1112,
420,
29958,
3712,
29895,
29899,
7045,
29899,
29929,
29900,
29879,
29914,
6051,
29891,
7312,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
19557,
4097,
1053,
6464,
29918,
12403,
13,
3166,
9557,
29889,
21570,
29889,
515... |
src/spn/structure/leaves/parametric/Moment.py | AmurG/SPFlow | 0 | 130285 | <filename>src/spn/structure/leaves/parametric/Moment.py<gh_stars>0
"""
Created on April 15, 2018
@author: <NAME>
"""
from spn.algorithms.stats.Moments import add_node_moment
from spn.structure.leaves.parametric.Parametric import *
import numpy as np
import logging
logger = logging.getLogger(__name__)
def parametric_... | [
1,
529,
9507,
29958,
4351,
29914,
1028,
29876,
29914,
23905,
29914,
280,
5989,
29914,
3207,
300,
2200,
29914,
29924,
2932,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
20399,
373,
3786,
29871,
29896,
2994... |
tests/api/test_security.py | Drakulix/knex | 7 | 65460 | <filename>tests/api/test_security.py
import requests
import os
class TestPOST(object):
def test_main_page(self, flask_api_url):
response = requests.get(flask_api_url + '/')
assert response.status_code == 404
def test_login_fake_user(self, flask_api_url):
session = requests.Session()
... | [
1,
529,
9507,
29958,
21150,
29914,
2754,
29914,
1688,
29918,
8926,
29889,
2272,
13,
5215,
7274,
13,
5215,
2897,
13,
13,
13,
1990,
4321,
5438,
29898,
3318,
1125,
13,
1678,
822,
1243,
29918,
3396,
29918,
3488,
29898,
1311,
29892,
29784,
2... |
futoin/cid/tool/bundlermixin.py | futoin/citool | 13 | 93504 | <filename>futoin/cid/tool/bundlermixin.py
#
# Copyright 2015-2020 <NAME> <<EMAIL>>
#
# 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
#
# Unles... | [
1,
529,
9507,
29958,
29888,
3066,
262,
29914,
25232,
29914,
10154,
29914,
16293,
29880,
837,
861,
262,
29889,
2272,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29945,
29899,
29906,
29900,
29906,
29900,
529,
5813,
29958,
3... |
google/appengine/api/search/stub/document_matcher.py | luduvigo/app-blog-code | 0 | 186441 | #!/usr/bin/env python
#
# Copyright 2007 Google 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 applicable law o... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29900,
29955,
5087,
9266,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
... |
analysis/markovs_chain/Python/code_with_comments.py | ilvivl/Python_Project | 2 | 64922 | <reponame>ilvivl/Python_Project<gh_stars>1-10
# В этом файле находится много комментариев, которые Илья должен переправить в тех
import numpy as np
import pandas as pd
import networkx as nx
import matplotlib.pyplot as plt
from pprint import pprint
def forward(pi, A, B, obs):
# Длина последовательности наблюдений... | [
1,
529,
276,
1112,
420,
29958,
309,
24759,
29880,
29914,
11980,
29918,
7653,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
939,
17045,
6725,
29977,
753,
21259,
15169,
5294,
19900,
641,
4020,
29892,
15261,
208... |
launchpad/explorer.py | mikbukow/launchpad | 2 | 48254 | <reponame>mikbukow/launchpad
from flask import Blueprint
explorer = Blueprint('explorer', __name__, template_folder='templates')
@explorer.route('/')
def index():
return 'Explorer index'
@explorer.route('/test')
def test():
return 'Explorer test'
| [
1,
529,
276,
1112,
420,
29958,
29885,
638,
2423,
7000,
29914,
15343,
8305,
13,
3166,
29784,
1053,
10924,
2158,
13,
13,
735,
14716,
353,
10924,
2158,
877,
735,
14716,
742,
4770,
978,
1649,
29892,
4472,
29918,
12083,
2433,
20943,
1495,
13... |
techtest/store/migrations/0001_initial.py | rahulkannojia07/gaming-store-adyen | 0 | 189100 | # Generated by Django 3.2.6 on 2021-08-15 05:38
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ProductDetails',
fields=[
('product_id', mo... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29906,
29889,
29953,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29947,
29899,
29896,
29945,
29871,
29900,
29945,
29901,
29941,
29947,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
platform/core/tests/base/clients.py | hackerwins/polyaxon | 0 | 44750 | <gh_stars>0
import datetime
import json
import uuid
from collections import Mapping
from urllib.parse import urlparse
from hestia.auth import AuthenticationTypes
from hestia.ephemeral_services import EphemeralServices
from hestia.internal_services import InternalServices
from django.test import Client
from django.te... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12865,
13,
5215,
4390,
13,
5215,
318,
5416,
13,
13,
3166,
16250,
1053,
341,
20304,
13,
3166,
3142,
1982,
29889,
5510,
1053,
3142,
5510,
13,
13,
3166,
298,
342,
423,
29889,
5150,... |
neighbourhoodapp/migrations/0004_rename_police_autorities_neighbourhood_police_authorities.py | Angelamutyota/Intheloop | 0 | 1611277 | # Generated by Django 3.2.5 on 2021-07-25 11:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('neighbourhoodapp', '0003_neighbourhood_picture'),
]
operations = [
migrations.RenameField(
model_name='neighbourhood',
old_n... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29906,
29889,
29945,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29955,
29899,
29906,
29945,
29871,
29896,
29896,
29901,
29945,
29906,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
cogs/welcome.py | nihaals/DabbitPrimeBot | 0 | 113956 | <filename>cogs/welcome.py<gh_stars>0
from discord.ext import commands
import discord
class Welcome():
def __init__(self, bot):
self.bot = bot
# welcome = False
#
# @commands.command()
# async def welcome(self, ctx, welcome):
# welcome = not welcome
# await ctx.send(self.bot... | [
1,
529,
9507,
29958,
29883,
12099,
29914,
20466,
2763,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
2313,
536,
29889,
1062,
1053,
8260,
13,
5215,
2313,
536,
13,
13,
1990,
21829,
7295,
13,
1678,
822,
4770,
2344,
1... |
tests/test_tag_value_parser.py | quaresmajose/tools-python | 74 | 6335 | # Copyright (c) 2014 <NAME>
# 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, softwar... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29946,
529,
5813,
29958,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,... |
src/utils/benchmark.py | jina-ai/benchmark | 11 | 114950 | <gh_stars>10-100
from collections import namedtuple
from contextlib import ExitStack
from statistics import mean, stdev
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple
from .profiler import Profiler, merge_profiles
from .timecontext import TimeContext
BenchmarkResult = namedtuple(
'Benchma... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
16250,
1053,
4257,
23583,
13,
3166,
3030,
1982,
1053,
25954,
7264,
13,
3166,
13964,
1053,
2099,
29892,
380,
3359,
13,
3166,
19229,
1053,
3139,
298... |
lightbus_examples/ex01_simple/products/web.py | adamcharnock/lightbus-examples | 0 | 127037 | """
A very simple web server for managing a company's products
"""
from uuid import uuid4
from flask import Flask, request, redirect, render_template
import lightbus
from . import db
# Create a flask webserver
web = Flask(__name__, static_folder='../../../static')
# Create our bus
from . import bus as bus_ # Impo... | [
1,
9995,
13,
29909,
1407,
2560,
1856,
1923,
363,
767,
6751,
263,
5001,
29915,
29879,
9316,
13,
13,
15945,
29908,
13,
3166,
318,
5416,
1053,
318,
5416,
29946,
13,
13,
3166,
29784,
1053,
2379,
1278,
29892,
2009,
29892,
6684,
29892,
4050,
... |
app/util/exception.py | proglang/servercodetest | 0 | 182505 | <reponame>proglang/servercodetest
import traceback
import json
from django.conf import settings
from . import log as logging, format
DEBUG = settings.DEBUG
#TODO: Loca
class Traceback:
class Entry:
def __init__(self, index, file, line, func, code):
self.index = index
self.file =... | [
1,
529,
276,
1112,
420,
29958,
771,
3820,
574,
29914,
2974,
19284,
300,
342,
13,
5215,
9637,
1627,
13,
5215,
4390,
13,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
13,
3166,
869,
1053,
1480,
408,
12183,
29892,
3402,
13,
13,
18525,
3... |
024. Longest Increasing Subsequence/BetterSolution.py | SyouTono242/Rosalind | 0 | 85986 | <gh_stars>0
##### Functions ################################################################
def lgis3( seq, count ):
'''
Returns reversed version of (a) longest increasing subsequence.
seq: the sequence for which (a) longest increasing subsequence is desired.
count: number of items in seq
Notes:... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
4136,
29937,
6680,
29879,
835,
13383,
13383,
13383,
7346,
4136,
29937,
13,
13,
1753,
301,
29887,
275,
29941,
29898,
19359,
29892,
2302,
29871,
1125,
13,
1678,
14550,
13,
1678,
16969,
1876... |
modules/TCP_generic.py | re4lity/XFLTReaT | 1 | 66176 | # MIT License
# Copyright (c) 2017 <NAME>
# 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... | [
1,
396,
341,
1806,
19245,
13,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
529,
5813,
29958,
13,
13,
29937,
20894,
2333,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,
... |
server.py | evaustin17/DeepAR | 0 | 124081 | import http.server
import socketserver
PORT = 8888
class Handler(http.server.SimpleHTTPRequestHandler):
pass
Handler.extensions_map['.wasm'] = 'application/wasm'
httpd = socketserver.TCPServer(("", PORT), Handler)
print(("serving at port"), PORT)
httpd.serve_forever()
| [
1,
1053,
1732,
29889,
2974,
13,
5215,
9909,
2974,
13,
13,
15082,
353,
29871,
29947,
29947,
29947,
29947,
13,
13,
1990,
5166,
1358,
29898,
1124,
29889,
2974,
29889,
15427,
10493,
3089,
4598,
1125,
13,
1678,
1209,
13,
13,
4598,
29889,
242... |
main.py | pierrePalud/MeudonPDR-stat-files-extraction | 0 | 44654 | <reponame>pierrePalud/MeudonPDR-stat-files-extraction
import sys
import glob
import os
import numpy as np
import pandas as pd
from tqdm.auto import tqdm
import argparse
def extract_input_parameters(path_file_in, df_input_params, dict_result={}):
"""extracts the data from the input file of the simulation
Par... | [
1,
529,
276,
1112,
420,
29958,
29886,
6349,
18210,
566,
29914,
6816,
566,
265,
29925,
8353,
29899,
6112,
29899,
5325,
29899,
1062,
13857,
13,
5215,
10876,
13,
5215,
13149,
13,
5215,
2897,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,... |
tests/data/okta/groups.py | sckevmit/cartography | 1 | 1610670 | <gh_stars>1-10
from okta.models.usergroup.UserGroup import UserGroup
from okta.models.usergroup.UserGroupProfile import UserGroupProfile
LIST_GROUP_MEMBER_RESPONSE = """
[
{
"id": "00u1f96ECLNVOKVMUSEA",
"status": "ACTIVE",
"created": "2013-12-12T16:14:22.000Z",
"activated": "2013-12-12T16:14:22.000Z... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
3431,
941,
29889,
9794,
29889,
1792,
2972,
29889,
2659,
4782,
1053,
4911,
4782,
13,
3166,
3431,
941,
29889,
9794,
29889,
1792,
2972,
29889,
2659,
4782,
13909,
1... |
docs/gallery/pca/plot_009_variable_contributions_bubble.py | andersle/psynlig | 1 | 97111 | <gh_stars>1-10
# Copyright (c) 2020, <NAME>.
# Distributed under the MIT License. See LICENSE for more info.
"""
PCA variable contributions (bubble version)
===========================================
This example will plot contributions to the principal
components from the original variables. Here, we show
the absolu... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29900,
29892,
529,
5813,
15513,
13,
29937,
6652,
7541,
1090,
278,
341,
1806,
19245,
29889,
2823,
365,... |
PBO_ 18130/tugas_4.1.py | viraditty09/PBO | 0 | 50028 | <filename>PBO_ 18130/tugas_4.1.py
a = [1,2,3]
print(a)
a.append(5)
print(a)
list1=[1,2,3,4,5]
list2=['rambutan','langsa','salak','durian','apel']
list1.extend(list2)
c = [1,2,3]
print(c)
c.insert(0,12)
print(c)
### Perbedaan antara fungsi Append,extend,dan insert
# append berfungsi untuk menambahkan elemen ke da... | [
1,
529,
9507,
29958,
29925,
8456,
29918,
29871,
29896,
29947,
29896,
29941,
29900,
29914,
29873,
688,
294,
29918,
29946,
29889,
29896,
29889,
2272,
13,
29874,
353,
518,
29896,
29892,
29906,
29892,
29941,
29962,
13,
2158,
29898,
29874,
29897,
... |
models/test.py | tuanpnUET/Federated-Learning-Demo | 1 | 194861 | <reponame>tuanpnUET/Federated-Learning-Demo
import torch
from torch import nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
def test_img(net_g, datatest, args):
net_g.eval()
# testing
test_loss = 0
correct = 0
data_loader = DataLoader(datatest, batch_size=args.bs)
l =... | [
1,
529,
276,
1112,
420,
29958,
9161,
273,
21257,
29965,
2544,
29914,
29943,
2447,
630,
29899,
29931,
799,
1076,
29899,
23444,
13,
5215,
4842,
305,
13,
3166,
4842,
305,
1053,
302,
29876,
13,
5215,
4842,
305,
29889,
15755,
29889,
2220,
28... |
90-subsets-ii.py | yuenliou/leetcode | 0 | 8627 | #!/usr/local/bin/python3.7
# -*- coding: utf-8 -*-
from typing import List
class Solution:
def subsetsWithDup(self, nums: List[int]) -> List[List[int]]:
"""
题解:https://leetcode-cn.com/problems/subsets/solution/c-zong-jie-liao-hui-su-wen-ti-lei-xing-dai-ni-gao-/
"""
def backtrack(sta... | [
1,
18787,
4855,
29914,
2997,
29914,
2109,
29914,
4691,
29941,
29889,
29955,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
19229,
1053,
2391,
13,
13,
1990,
24380,
29901,
13,
1678,
822,
27639,
... |
backend/src/apiserver/visualization/test_exporter.py | cclauss/pipelines | 0 | 77860 | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
5087,
365,
12182,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
... |
scripts/cutflow_detail.py | umd-lhcb/lhcb-ntuples-gen | 0 | 130189 | #!/usr/bin/env python
#
# Author: <NAME>
# License: BSD 2-clause
# Last Change: Thu Jul 29, 2021 at 03:51 PM +0200
import uproot
import sys
import os
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
from argparse import ArgumentParser
from pyTuplingUtils.utils import extract_uid
from pyTuplingUtils.cu... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
13,
29937,
13361,
29901,
529,
5813,
29958,
13,
29937,
19245,
29901,
350,
7230,
29871,
29906,
29899,
16398,
1509,
13,
29937,
9208,
10726,
29901,
498,
29884,
2739,
29871,
29906,
29929... |
doc/source/notebooks/tailor/mdn_plotting.py | elvijs/GPflow | 0 | 80448 | import numpy as np
from scipy.stats import norm
def make_grid(xx, yy):
"""
Returns two n-by-n matrices. The first one contains all the x values
and the second all the y values of a cartesian product between `xx` and `yy`.
"""
n = len(xx)
xx, yy = np.meshgrid(xx, yy)
grid = np.array([xx.r... | [
1,
1053,
12655,
408,
7442,
13,
13,
3166,
4560,
2272,
29889,
16202,
1053,
6056,
13,
13,
13,
1753,
1207,
29918,
7720,
29898,
4419,
29892,
343,
29891,
1125,
13,
1678,
9995,
13,
1678,
16969,
1023,
302,
29899,
1609,
29899,
29876,
13516,
2988... |
devel/lib/python2.7/dist-packages/sensor/msg/_Led.py | frozaidi/RobotSystems | 0 | 85901 | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from sensor/Led.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import sensor.msg
class Led(genpy.Message):
_md5sum = "30e1b14f90ea917fa794eb562e3a6723"
... | [
1,
396,
910,
5132,
934,
3913,
278,
1494,
8025,
29901,
23616,
29899,
29947,
13,
15945,
29908,
1300,
468,
759,
630,
491,
2531,
2272,
515,
23530,
29914,
29931,
287,
29889,
7645,
29889,
1938,
451,
3863,
1213,
15945,
13,
5215,
775,
2395,
13,... |
server/explorer/utils/collection.py | s-bauer/yang-explorer | 437 | 80763 | <filename>server/explorer/utils/collection.py<gh_stars>100-1000
"""
Copyright 2015, Cisco Systems, 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
Un... | [
1,
529,
9507,
29958,
2974,
29914,
735,
14716,
29914,
13239,
29914,
10855,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
15945,
29908,
13,
11882,
1266,
29871,
29906,
29900,
2989... |
src/encoded/tests/test_types_functional_characterization_experiment.py | procha2/encoded | 0 | 197556 | <reponame>procha2/encoded<gh_stars>0
import pytest
def test_fcc_replicate_type(
testapp, functional_characterization_experiment, pooled_clone_sequencing
):
res = testapp.get(
functional_characterization_experiment['@id']+'@@index-data'
)
assert res.json['object']['replication_type'] == 'unrepl... | [
1,
529,
276,
1112,
420,
29958,
771,
5815,
29906,
29914,
26716,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
11451,
1688,
13,
13,
13,
1753,
1243,
29918,
29888,
617,
29918,
3445,
5926,
29918,
1853,
29898,
13,
1678,
1243,
932,
2... |
src/image_output.py | malon43/entropy-visualization | 0 | 54365 | <filename>src/image_output.py
# SPDX-License-Identifier: MIT
from argparse import ArgumentTypeError, FileType
from itertools import chain
from sys import stderr, stdout
from output_common import OutputMethodBase, Parameter, print_check_closed_pipe
from math import ceil, log, sqrt
import re
from palettes import palette... | [
1,
529,
9507,
29958,
4351,
29914,
3027,
29918,
4905,
29889,
2272,
13,
29937,
10937,
29928,
29990,
29899,
29931,
293,
1947,
29899,
12889,
29901,
341,
1806,
13,
13,
3166,
1852,
5510,
1053,
23125,
1542,
2392,
29892,
3497,
1542,
13,
3166,
425... |
py/qxcomscroll/web/playground.py | wthie/qxcomscroll | 0 | 42455 | <gh_stars>0
#! /usr/bin/env python
#-*- coding: iso-8859-1 -*-
"""
playground - the basic object which serves as the root
author : <NAME>, wth
last edit: wth, 21.03.2011
modhistory:
03.06.2009 - wth, thinking about disconnecting
21.03.2011 - wth, reworked for qxcomscroll
"""
import os... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
30004,
13,
29937,
29899,
29930,
29899,
14137,
29901,
338,
29877,
29899,
29947,
29947,
29945,
29929,
29899,
29896,
448,
29930,
29899,
... |
dlib/tools/python/test/test_vector.py | asm-jaime/facerec | 11,719 | 38077 | <reponame>asm-jaime/facerec
from dlib import vector, vectors, vectorss, dot
try:
import cPickle as pickle # Use cPickle on Python 2.7
except ImportError:
import pickle
from pytest import raises
def test_vector_empty_init():
v = vector()
assert len(v) == 0
assert v.shape == (0, 1)
assert str(v... | [
1,
529,
276,
1112,
420,
29958,
11625,
29899,
1764,
603,
29914,
17470,
406,
29883,
13,
3166,
270,
1982,
1053,
4608,
29892,
12047,
29892,
4608,
893,
29892,
8329,
13,
2202,
29901,
13,
1678,
1053,
274,
29925,
860,
280,
408,
5839,
280,
29871... |
tests/test_users.py | Gingernaut/microAuth | 28 | 180228 | import ujson
class TestAccount:
def test_get_account_without_auth(self, test_server):
res = test_server.get("/account")
assert res.status_code == 401
def test_get_info(self, test_server, create_account_jwt):
res = test_server.get(
"/account", headers={"Authorization": f"Be... | [
1,
1053,
318,
3126,
13,
13,
13,
1990,
4321,
10601,
29901,
13,
1678,
822,
1243,
29918,
657,
29918,
10149,
29918,
14037,
29918,
5150,
29898,
1311,
29892,
1243,
29918,
2974,
1125,
13,
4706,
620,
353,
1243,
29918,
2974,
29889,
657,
11974,
1... |
zeppos_root/root.py | changrunner/zeppos_root | 0 | 37816 | <reponame>changrunner/zeppos_root
from pathlib import Path
from os import path
from zeppos_logging.app_logger import AppLogger
class Root:
@staticmethod
def find_root_of_project(current_module_filename,
root_marker_filename_list=[".root", "manage.py", "Pipfile"]):
AppLogge... | [
1,
529,
276,
1112,
420,
29958,
305,
574,
27492,
29914,
911,
407,
359,
29918,
4632,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
2897,
1053,
2224,
13,
3166,
3777,
407,
359,
29918,
21027,
29889,
932,
29918,
21707,
1053,
2401,
16363,
13,
... |
thesis/parsers/base.py | alki22/thesis | 0 | 184830 | <filename>thesis/parsers/base.py
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from collections import OrderedDict
from tabulate import tabulate
from thesis.utils import try_number
from tqdm import tqdm
class Word(object):
def __init__(self, word, columns):
word = Orde... | [
1,
529,
9507,
29958,
26533,
29914,
862,
4253,
29914,
3188,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
29104,
29918,... |
desktop/core/ext-py/nose-1.3.7/functional_tests/support/ltfn/test_pak1/__init__.py | kokosing/hue | 5,079 | 112399 | from state import called
def setup():
called.append('test_pak1.setup')
def teardown():
called.append('test_pak1.teardown')
def test_one_one():
called.append('test_pak1.test_one_one')
def test_one_two():
called.append('test_pak1.test_one_two')
| [
1,
515,
2106,
1053,
2000,
13,
13,
1753,
6230,
7295,
13,
1678,
2000,
29889,
4397,
877,
1688,
29918,
29886,
557,
29896,
29889,
14669,
1495,
13,
13,
1753,
734,
538,
776,
7295,
13,
1678,
2000,
29889,
4397,
877,
1688,
29918,
29886,
557,
29... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.