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 |
|---|---|---|---|---|---|
src/golem/__init__.py | aspuru-guzik-group/golem | 10 | 101441 | <gh_stars>1-10
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from .golem import Golem
from .extensions import BaseDist, Delta, Normal, TruncatedNormal, FoldedNormal
from .extensions import Uniform, TruncatedUniform, BoundedUniform, Gamma
from .extensions import Poisson, Di... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
869,
29918,
3259,
1053,
679,
29918,
26100,
13,
1649,
3259,
1649,
353,
679,
29918,
26100,
580,
1839,
3259,
2033,
13,
6144,
679,
29918,
26100,
13,
13,
3166,
869... |
fib.py | ednl/bigint | 0 | 57140 | <reponame>ednl/bigint
#!/usr/bin/env python3
from sys import argv
try:
N = int(argv[1])
except (IndexError, ValueError):
exit("Not a number")
a = 0
b = 1
for _ in range(N):
a, b = b, a + b
print(a)
| [
1,
529,
276,
1112,
420,
29958,
287,
12938,
29914,
3752,
524,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
3166,
10876,
1053,
1852,
29894,
13,
13,
2202,
29901,
13,
1678,
405,
353,
938,
29898,
19218,
29961,
29896... |
BOOK/MAIN/05-file-handling/chapter-5/02-copy-atheletics.py | kabirsrivastava3/python-practice | 0 | 1613339 | # A file sports.dat contains information in following format :
#Event ~ Participant
#A function that would read contents from file sports.dat and creates a file named Atheletic.dat copying only those records from sports.dat where the event name is " Atheletics ".
def eventParticipant():
file1 = open("sports.txt"... | [
1,
396,
319,
934,
14717,
29889,
4130,
3743,
2472,
297,
1494,
3402,
584,
13,
29937,
2624,
3695,
3455,
12654,
424,
13,
29937,
29909,
740,
393,
723,
1303,
8118,
515,
934,
14717,
29889,
4130,
322,
10017,
263,
934,
4257,
319,
1552,
1026,
2... |
platformer/ai.py | lukaszzalewski0001/2d_platformer | 0 | 1600877 | '''
Copyright 2019 <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 agree... | [
1,
14550,
13,
1678,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
529,
5813,
15513,
13,
13,
1678,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
1678,
366,
11... |
Python/maxArea.py | alexwu2021/practice | 0 | 164482 | <reponame>alexwu2021/practice
class Solution(object):
def maxArea(self, height):
"""
:type height: List[int]
:rtype: int
"""
n = len(height)
d = [0] * n
for i in range(n):
d[i] = height[i]
for i in range(1, n):
... | [
1,
529,
276,
1112,
420,
29958,
744,
29916,
29893,
29884,
29906,
29900,
29906,
29896,
29914,
29886,
1461,
625,
13,
1990,
24380,
29898,
3318,
1125,
13,
1678,
822,
4236,
13799,
29898,
1311,
29892,
3171,
1125,
13,
4706,
9995,
13,
4706,
584,
... |
bc/documents/models.py | Buckinghamshire-Digital-Service/buckinghamshire-council | 1 | 155177 | <gh_stars>1-10
from django.db import models
from wagtail.documents.models import AbstractDocument
from wagtail.documents.models import Document as WagtailDocument
class CustomDocument(AbstractDocument):
talentlink_attachment_id = models.IntegerField(blank=True, null=True)
admin_form_fields = WagtailDocument.... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
13,
3166,
281,
351,
18237,
29889,
3225,
29879,
29889,
9794,
1053,
25513,
6268,
13,
3166,
281,
351,
18237,
29889,
3225,
29879,... |
majortom_gateway/__init__.py | grantperry/majortom_gateway_package | 0 | 114098 | from majortom_gateway.gateway_api import GatewayAPI
name = "majortom_gateway"
| [
1,
515,
10067,
441,
290,
29918,
17062,
1582,
29889,
17062,
1582,
29918,
2754,
1053,
22510,
1582,
8787,
13,
978,
353,
376,
655,
29926,
441,
290,
29918,
17062,
1582,
29908,
13,
2
] |
dataset/gla_vol_time_series/cumul_to_rates_rgi01regions.py | subond/ww_tvol_study | 20 | 36802 | <gh_stars>10-100
import os, sys
import pandas as pd
import numpy as np
import pyddem.tdem_tools as tt
# example to integrate the RGI-O1 cumulative time series into rates with time-varying glacier areas
# file with time-varying areas for RGI regions
fn_tarea = '/home/atom/data/inventory_products/RGI/tarea_zemp.csv'
#... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
2897,
29892,
10876,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
5215,
282,
2941,
2310,
29889,
29873,
2310,
29918,
8504,
408,
260,... |
courseproject/main.py | hpaldan/IOT_SummerCourseProject_2021 | 0 | 76024 | #from mqtt import MQTTClient
from mqtt import MQTTClient_lib as MQTTClient
from network import WLAN
import machine
from machine import Pin
import time
import math
import config
adc = machine.ADC()
apin = adc.channel(pin='P19')
wlan = WLAN(mode=WLAN.STA)
wlan.connect(config.WIFI_NAME, auth=(WLAN.WPA2, con... | [
1,
396,
3166,
286,
29939,
698,
1053,
341,
29984,
19988,
4032,
30004,
13,
3166,
286,
29939,
698,
1053,
341,
29984,
19988,
4032,
29918,
1982,
408,
341,
29984,
19988,
4032,
30004,
13,
3166,
3564,
1053,
399,
29931,
2190,
30004,
13,
5215,
49... |
tapioca_zendesk/tapioca_zendesk.py | nossas/bonde-zendesk | 0 | 156395 | <reponame>nossas/bonde-zendesk<filename>tapioca_zendesk/tapioca_zendesk.py
# coding: utf-8
from tapioca import (
TapiocaAdapter, generate_wrapper_from_adapter, JSONAdapterMixin)
from .resource_mapping import RESOURCE_MAPPING
import os
ZENDESK_API_ROOT = os.getenv('ZENDESK_API_ROOT')
assert ZENDESK_API_ROOT is n... | [
1,
529,
276,
1112,
420,
29958,
29876,
2209,
294,
29914,
6718,
311,
29899,
29920,
355,
8488,
29966,
9507,
29958,
29873,
2754,
6400,
29918,
29920,
355,
8488,
29914,
29873,
2754,
6400,
29918,
29920,
355,
8488,
29889,
2272,
13,
29937,
14137,
... |
core/utils.py | decosterkevin/foodtrack-back | 0 | 90001 | <reponame>decosterkevin/foodtrack-back
from geopy.geocoders import OpenCage
from django.conf import settings
from enum import Enum
def get_location_from_address(address):
geolocator = OpenCage(api_key=settings.OPENCAGE_API_KEY)
location = geolocator.geocode(address)
if location.latitude and location.longi... | [
1,
529,
276,
1112,
420,
29958,
7099,
15664,
446,
3845,
29914,
1181,
397,
11294,
29899,
1627,
13,
3166,
1737,
2270,
29889,
479,
542,
397,
414,
1053,
4673,
29907,
482,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3166,
14115,
1053,
1174,
... |
my-python-lab/ExponentnumApp.py | baizoukou/my-python-lab | 0 | 75513 | <filename>my-python-lab/ExponentnumApp.py<gh_stars>0
## creat fct
def raise_to_power(base_num, pow_num): ## fct take 2 input num
result = 1 ## def var call result is going to store result
for index in range(pow_num): ## specify for loop that loop through range of num
result = result * base_num ## ... | [
1,
529,
9507,
29958,
1357,
29899,
4691,
29899,
8205,
29914,
1252,
3296,
1949,
2052,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
2277,
907,
271,
285,
312,
30004,
13,
30004,
13,
1753,
12020,
29918,
517,
29918,
13519,
2989... |
jobs/jobs/celeryp.py | gitdaniel228/jobSearch | 0 | 155849 | <reponame>gitdaniel228/jobSearch
import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'jobs.settings.production')
from django.conf import settings
app = Celery('jobs')
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
| [
1,
529,
276,
1112,
420,
29958,
5559,
18386,
709,
29906,
29906,
29947,
29914,
9057,
7974,
13,
5215,
2897,
13,
3166,
6432,
708,
1053,
14227,
708,
13,
13,
359,
29889,
21813,
29889,
842,
4381,
877,
29928,
29967,
2190,
17080,
29918,
10490,
2... |
tests/__init__.py | vpv11110000/pyss | 0 | 52769 | <reponame>vpv11110000/pyss<gh_stars>0
# -*- coding: utf-8 -*-
import sys
import os
import random
import unittest
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
DIRNAME_MODULE = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0])))) + os.sep
sys.path.append(D... | [
1,
529,
276,
1112,
420,
29958,
29894,
29886,
29894,
29896,
29896,
29896,
29896,
29900,
29900,
29900,
29900,
29914,
2272,
893,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
... |
neural_lambda_calculus/__init__.py | brandontrabucco/neural_lambda_calculus | 0 | 150893 | """Author: <NAME>, <NAME>, Copyright 2019""" | [
1,
9995,
13720,
29901,
529,
5813,
10202,
529,
5813,
10202,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
15945,
29908,
2
] |
caf_verilog/cpx_multiply.py | chiranthsiddappa/caf_verilog | 1 | 140423 | from .quantizer import quantize
from .io_helper import write_quantized_output
from numpy import floor
import os
from jinja2 import Environment, FileSystemLoader
from shutil import copy
from .caf_verilog_base import CafVerilogBase
class CpxMultiply(CafVerilogBase):
def __init__(self, x, y, x_i_bits=12, x_q_bits=0... | [
1,
515,
869,
12150,
3950,
1053,
4323,
675,
13,
3166,
869,
601,
29918,
20907,
1053,
2436,
29918,
12150,
1891,
29918,
4905,
13,
3166,
12655,
1053,
11904,
13,
5215,
2897,
13,
3166,
432,
262,
1764,
29906,
1053,
16738,
29892,
3497,
3924,
100... |
user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 0 | 775 | <filename>user_service/user_service/api.py
# -*- coding: utf-8 -*-
"""
API definition module.
"""
from flask import Blueprint
from flask_restful import Api
from .resources.user import UserAuth, UserItem, UserList, UserFollow
# Create an API-related blueprint
api_bp = Blueprint(name='api', import_name=__name__)
api... | [
1,
529,
9507,
29958,
1792,
29918,
5509,
29914,
1792,
29918,
5509,
29914,
2754,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
13,
8787,
5023,
3883,
29889,
13,
15945,
... |
zerojudge/a080.py | x06lan/mt | 0 | 126070 | # from _typeshed import Self
import sys
input_text=[]
try :
while True:
tem=input()
if tem=="":
break
input_text.append(tem)
except:
pass
tree_data={}
class newtree():
def __init__(self):
self.tree={}
self.node=1
def tree_add_text(self,mom,input):
... | [
1,
396,
515,
903,
8768,
17143,
1053,
21782,
13,
5215,
10876,
13,
2080,
29918,
726,
29922,
2636,
13,
2202,
584,
13,
1678,
1550,
5852,
29901,
13,
4706,
1350,
29922,
2080,
580,
13,
4706,
565,
1350,
26359,
1115,
13,
9651,
2867,
13,
4706,
... |
instaclient/instagram/postmedia.py | pthalin/instaclient | 0 | 37647 | from typing import Optional, List, TYPE_CHECKING
if TYPE_CHECKING:
from instaclient.client.instaclient import InstaClient
from instaclient.instagram.instaobject import InstaBaseObject
class PostMedia(InstaBaseObject):
def __init__(self,
client:'InstaClient',
id:int,
type:str,
viewer:str,
s... | [
1,
515,
19229,
1053,
28379,
29892,
2391,
29892,
323,
6959,
29918,
3210,
16658,
4214,
13,
361,
323,
6959,
29918,
3210,
16658,
4214,
29901,
13,
1678,
515,
832,
562,
1593,
29889,
4645,
29889,
2611,
562,
1593,
1053,
2799,
29874,
4032,
13,
3... |
fiware_cloto/cloto/tests/acceptance/commons/configuration.py | telefonicaid/fiware-cloto | 2 | 112281 | <reponame>telefonicaid/fiware-cloto<gh_stars>1-10
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright 2014 Telefónica Investigación y Desarrollo, S.A.U
#
# This file is part of FI-WARE project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance... | [
1,
529,
276,
1112,
420,
29958,
15494,
18753,
983,
333,
29914,
7241,
2519,
29899,
695,
3747,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
... |
test_ensemble.py | Sette/CoNAS | 0 | 190425 | <reponame>Sette/CoNAS<filename>test_ensemble.py
# -*- coding: utf-8 -*-
"""test_ensemble.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Y0wUtSeRwwUQm2tJneNIcHT_C_cxRJiY
"""
path_logits_darts = "cnn/"
path_logits1 = "cnn_space1/"
path_logits2 = ... | [
1,
529,
276,
1112,
420,
29958,
29903,
2353,
29914,
7967,
29940,
3289,
29966,
9507,
29958,
1688,
29918,
24031,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
1688,
29918,
24... |
morphablegraphs/motion_generator/graph_walk.py | dfki-asr/morphablegraphs | 5 | 125464 | #!/usr/bin/env python
#
# Copyright 2019 DFKI GmbH.
#
# 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, merg... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
360,
29943,
29968,
29902,
18156,
29889,
13,
29937,
13,
29937,
20894,
2333,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,... |
dime/__init__.py | CURENT/dime | 0 | 149009 | from .dime import Dime
| [
1,
515,
869,
29881,
603,
1053,
360,
603,
13,
2
] |
problem01.py | goznauk/ProjectEuler.py | 0 | 50161 | <reponame>goznauk/ProjectEuler.py<gh_stars>0
i = 1
sum = 0
for i in range(1000) :
if i%3==0 :
sum += i
elif i%5==0 :
sum += i
print sum
| [
1,
529,
276,
1112,
420,
29958,
1484,
3749,
585,
29895,
29914,
7653,
29923,
8584,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
13,
29875,
353,
29871,
29896,
13,
2083,
353,
29871,
29900,
13,
1454,
474,
297,
3464,
29898,
... |
main.py | Alyxion/AquasuiteTempSync | 0 | 165592 | <gh_stars>0
# Simple Python script which fetches JSON data in the Circonus from the Aquasuite Web Service
# and stores it in a local file so it can be progressed by the FanControl tool by <NAME>
import requests
import os
import json
import time
import signal
import traceback
class GracefulKiller:
kill_now = False... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
12545,
5132,
2471,
607,
6699,
267,
4663,
848,
297,
278,
25079,
535,
375,
515,
278,
16020,
294,
29884,
568,
2563,
6692,
13,
29937,
322,
14422,
372,
297,
263,
1887,
934,
577,
372... |
hardware/opentrons_hardware/drivers/can_bus/can_messenger.py | mrod0101/opentrons | 0 | 161649 | <reponame>mrod0101/opentrons<filename>hardware/opentrons_hardware/drivers/can_bus/can_messenger.py
"""Can messenger class."""
import asyncio
from typing import List, Optional
import logging
from opentrons_hardware.drivers.can_bus import (
CanDriver,
NodeId,
ArbitrationId,
ArbitrationIdParts,
CanMes... | [
1,
529,
276,
1112,
420,
29958,
29885,
5964,
29900,
29896,
29900,
29896,
29914,
459,
296,
12628,
29966,
9507,
29958,
6800,
2519,
29914,
459,
296,
12628,
29918,
6800,
2519,
29914,
24477,
874,
29914,
3068,
29918,
8262,
29914,
3068,
29918,
2988... |
api.py | klapp101/GOAT | 1 | 26525 | import json
import requests
import time
from discord_webhook import DiscordWebhook, DiscordEmbed
webhook_url = 'https://discordapp.com/api/webhooks/672159508675690497/4UtaClAc7rKMJsEvbR4iYf-Razv4M3ZWtkYDOxBzLfiDzJhI7RSFpoLn6iijBiRcaNOR'
webhook = DiscordWebhook(webhook_url)
pid = '508214-660'
headers = {
'Connecti... | [
1,
1053,
4390,
13,
5215,
7274,
13,
5215,
931,
13,
3166,
2313,
536,
29918,
2676,
20849,
1053,
8565,
536,
3609,
20849,
29892,
8565,
536,
6026,
2580,
13,
13,
2676,
20849,
29918,
2271,
353,
525,
991,
597,
2218,
16090,
932,
29889,
510,
299... |
coptim/functions/rosenbrock.py | cmazzaanthony/Optimization_Algorithms | 3 | 27697 | <reponame>cmazzaanthony/Optimization_Algorithms
import numpy as np
from coptim.function import Function
class Rosenbrock(Function):
def eval(self, x):
assert len(x) == 2, '2 dimensional input only.'
return 100 * (x[1] - x[0] ** 2) ** 2 + (1 - x[0]) ** 2
def gradient(self, x):
assert ... | [
1,
529,
276,
1112,
420,
29958,
29883,
655,
10177,
9716,
2592,
29914,
20624,
326,
2133,
29918,
22461,
12404,
13,
5215,
12655,
408,
7442,
13,
3166,
1302,
415,
326,
29889,
2220,
1053,
6680,
13,
13,
13,
1990,
28929,
6729,
384,
29898,
6678,
... |
tripleo_ansible/ansible_plugins/modules/tripleo_nova_image_cache.py | pavankrao/tripleo-ansible | 0 | 1609587 | <gh_stars>0
#!/usr/bin/python
# Copyright 2019 Red Hat, Inc.
# 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
#
# Unle... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
4367,
25966,
29892,
9266,
29889,
13,
29937,
2178,
26863,
2538,
9841,
29889,
13,
2993... |
typical90/aj/main.py | KATO-Hiro/AtCoder | 2 | 189232 | # -*- coding: utf-8 -*-
def main():
import sys
input = sys.stdin.readline
n, q = map(int, input().split())
x = [0] * n
y = [0] * n
for i in range(n):
xi, yi = map(int, input().split())
x[i] = xi + yi
y[i] = xi - yi
x_min, x_max = min(x), max(x)
y_min, y_... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
1053,
10876,
13,
13,
1678,
1881,
353,
10876,
29889,
4172,
262,
29889,
949,
1220,
13,
13,
1678,
302,
29892,
3855,
... |
RecoVertex/BeamSpotProducer/test/BeamFit_LumiBased_NewAlignWorkflow.py | ckamtsikis/cmssw | 852 | 148337 | import FWCore.ParameterSet.Config as cms
process = cms.Process("BSworkflow")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
"/store/express/Run2015A/StreamExpress/ALCARECO/TkAlMinBias-Express-v1/000/246/959/00000/14174DF2-490A-E511-9862-02163E0143E9.root",
)
)
process.load... | [
1,
1053,
383,
29956,
9203,
29889,
9329,
2697,
29889,
3991,
408,
274,
1516,
13,
13,
5014,
353,
274,
1516,
29889,
7032,
703,
9851,
1287,
1731,
1159,
13,
13,
5014,
29889,
4993,
353,
274,
1516,
29889,
4435,
703,
11426,
4435,
613,
13,
1678... |
tower/utils/enemygen.py | alisonbnt/watchtower | 1 | 178662 | from ..creature import Enemy
class EnemyGenerator(object):
def __init__(self):
self.health = None
self.block = None
self.hit = None
def generate_enemy(self, creature, choices):
species = creature.get_species()
self.health = species['health']
self.block = spec... | [
1,
515,
6317,
1037,
1535,
1053,
1174,
6764,
13,
13,
13,
1990,
1174,
6764,
21575,
29898,
3318,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
354,
4298,
353,
6213,
13,
4706,
1583,
29889,
1271,
353,
6213,... |
DallalKosh/app/migrations/0009_auto_20171108_0603.py | CarenZarin/DallalKosh | 1 | 1605333 | <reponame>CarenZarin/DallalKosh
# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-08 06:03
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0008_auto_20171108_0549'),
]
operations = [
... | [
1,
529,
276,
1112,
420,
29958,
8179,
264,
29999,
27139,
29914,
29928,
497,
284,
29968,
10578,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29896,
... |
holmes/migrations/versions/21087e990aa8_change_violation_to_.py | scorphus/holmes-api | 0 | 187383 | <filename>holmes/migrations/versions/21087e990aa8_change_violation_to_.py
"""Change violation to contain less info
Revision ID: 21087e990aa8
Revises: <PASSWORD>
Create Date: 2013-12-02 22:11:34.036524
"""
# revision identifiers, used by Alembic.
revision = '21087e990aa8'
down_revision = '2<PASSWORD>'
from alembic i... | [
1,
529,
9507,
29958,
5391,
4467,
29914,
26983,
800,
29914,
26100,
29914,
29906,
29896,
29900,
29947,
29955,
29872,
29929,
29929,
29900,
7340,
29947,
29918,
3167,
29918,
1403,
22671,
29918,
517,
5396,
2272,
13,
15945,
29908,
7277,
5537,
362,
... |
bot_facebook/views/__init__.py | lariodiniz/BootPlayGame | 0 | 70120 | <reponame>lariodiniz/BootPlayGame
from .ativa_bot_view import ativaBotView | [
1,
529,
276,
1112,
420,
29958,
29880,
1306,
397,
262,
466,
29914,
20967,
13454,
14199,
13,
3166,
869,
8657,
29918,
7451,
29918,
1493,
1053,
472,
4244,
29933,
327,
1043,
2
] |
transform_username.py | bbhunter/username-generation-guide | 38 | 132948 | <filename>transform_username.py
#!/usr/bin/env python3
import argparse
import os
import re
class Rule:
def __str__(self):
return f'{self.action}: {self.arg1}, {self.arg2}'
def load_rules(filename):
lines = open(filename).read().splitlines()
for line in lines:
l = line
if not l or... | [
1,
529,
9507,
29958,
9067,
29918,
6786,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
5215,
1852,
5510,
13,
5215,
2897,
13,
5215,
337,
13,
13,
13,
1990,
27308,
29901,
13,
1678,
822,
4770,
710,
12035,
... |
Xana/ProcData/CbfMethods.py | ClLov/Xana | 0 | 148130 | <gh_stars>0
from os.path import isfile
import cbf
####################################
#--- Standard cbf w/r functions ---#
####################################
def loadcbf(filename):
if isfile(filename):
f = cbf.read(filename)
return f.data
else:
print("file ", filename, " does not ex... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
2897,
29889,
2084,
1053,
338,
1445,
13,
5215,
274,
1635,
13,
13,
13383,
13383,
4136,
13,
29937,
5634,
10117,
274,
1635,
281,
29914,
29878,
3168,
11474,
29937,
13,
13383,
13383,
41... |
performance/driver/classes/channel/cmdline.py | mesosphere/dcos-perf-test-driver | 2 | 90274 | import fcntl
import os
import select
import shlex
import signal
import threading
import time
from subprocess import Popen, PIPE
from performance.driver.core.events import Event, LogLineEvent, ParameterUpdateEvent, TeardownEvent, StartEvent
from performance.driver.core.template import TemplateString, TemplateDict
from... | [
1,
1053,
285,
20047,
29880,
13,
5215,
2897,
13,
5215,
1831,
13,
5215,
528,
2506,
13,
5215,
7182,
13,
5215,
3244,
292,
13,
5215,
931,
13,
13,
3166,
1014,
5014,
1053,
349,
3150,
29892,
349,
29902,
4162,
13,
13,
3166,
4180,
29889,
9465... |
functest/opnfv_tests/openstack/tempest/conf_utils.py | hashnfv/hashnfv-functest | 0 | 98069 | <reponame>hashnfv/hashnfv-functest
#!/usr/bin/env python
#
# Copyright (c) 2015 All rights reserved
# This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
#
# http://www.apache.org/licenses/LICENSE-... | [
1,
529,
276,
1112,
420,
29958,
8568,
29876,
29888,
29894,
29914,
8568,
29876,
29888,
29894,
29899,
7692,
312,
342,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
... |
test/unit2/usersignup/validation_test.py | cdoremus/udacity-python_web_development-cs253 | 0 | 166515 | <reponame>cdoremus/udacity-python_web_development-cs253<gh_stars>0
'''
Created on Apr 25, 2012
@author: h87966
'''
import unittest
from unit2.usersignup.validation import UserSignupValidation
from unit2.usersignup.validation import VERIFICATION_MESSAGES
from unit2.usersignup.validation import VERIFICATION_MESSAGES_KEY... | [
1,
529,
276,
1112,
420,
29958,
2252,
3668,
375,
29914,
566,
5946,
29899,
4691,
29918,
2676,
29918,
25431,
29899,
2395,
29906,
29945,
29941,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
12008,
13,
20399,
373,
319,
558,
29871,
29906,
2... |
user/views/contact.py | fsr/course-management | 11 | 75282 | <filename>user/views/contact.py<gh_stars>10-100
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.http import HttpRequest
from django.shortcuts import render, redirect
from django.views.decorators.csrf import csrf_protect
from django.utils.translation impo... | [
1,
529,
9507,
29958,
1792,
29914,
7406,
29914,
12346,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
19557,
4097,
1053,
6464,
29918,
12403,
13,
... |
map.py | CaptainYin/ParLTRANS | 0 | 149510 | <reponame>CaptainYin/ParLTRANS<gh_stars>0
import os
import csv
import numpy as np
import replace
#split iniloc file
parf='IPL_20130913_4590_eddy2'
parent_dir='Model6.5'
jobscript_prefix='6_5'
MapNum=96
parfpath='../loc/wbc20/'+parf+'.csv'
loc=np.loadtxt(open(parfpath,'rb'),delimiter=',',usecols=(0,1,2,3))
offset=loc.sh... | [
1,
529,
276,
1112,
420,
29958,
21133,
475,
29979,
262,
29914,
2177,
29931,
26813,
29903,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
5215,
11799,
13,
5215,
12655,
408,
7442,
13,
5215,
5191,
13,
29937,
5451,
297,
30... |
spar_python/analytics/ta2/circuit_parameters/main.py | nathanawmk/SPARTA | 37 | 111964 | <filename>spar_python/analytics/ta2/circuit_parameters/main.py
# *****************************************************************
# Copyright 2015 MIT Lincoln Laboratory
# Project: SPAR
# Authors: Yang
# Description: Script to add additional parameters to Stealth
# ... | [
1,
529,
9507,
29958,
29879,
862,
29918,
4691,
29914,
7054,
22026,
29914,
941,
29906,
29914,
6034,
3121,
29918,
16744,
29914,
3396,
29889,
2272,
13,
29937,
334,
7775,
7775,
7775,
7775,
13,
29937,
29871,
14187,
1266,
29871,
29906,
29900,
2989... |
tests/test_fast_pot.py | mudigonda/hmc_scripts | 0 | 193265 | from mjhmc.search.objective import obj_func
from mjhmc.samplers.markov_jump_hmc import MarkovJumpHMC
from mjhmc.misc.distributions import ProductOfT
from mjhmc.misc.autocor import autocorrelation
from mjhmc.misc.autocor import sample_to_df
from mjhmc.fast import hmc
from scipy.sparse import rand
import numpy as np
impo... | [
1,
515,
286,
29926,
7184,
29883,
29889,
4478,
29889,
3318,
573,
1053,
5446,
29918,
9891,
13,
3166,
286,
29926,
7184,
29883,
29889,
13445,
572,
414,
29889,
3502,
586,
29918,
29926,
3427,
29918,
7184,
29883,
1053,
4485,
586,
29967,
3427,
29... |
orthnet/poly/__init__.py | Orcuslc/OrthNet | 32 | 156506 | from ._legendre import Legendre, Legendre_Normalized
from ._laguerre import Laguerre
from ._hermite import Hermite, Hermite2
from ._chebyshev import Chebyshev, Chebyshev2
from ._jacobi import Jacobi
__all__ = ['Legendre', 'Legendre_Normalized', 'Laguerre', 'Hermite', 'Hermite2', 'Chebyshev', 'Chebyshev2', 'Jacobi'] | [
1,
515,
869,
29918,
1397,
9030,
1053,
5682,
9030,
29892,
5682,
9030,
29918,
19077,
1891,
13,
3166,
869,
29918,
3110,
2853,
276,
1053,
16952,
2853,
276,
13,
3166,
869,
29918,
29882,
837,
568,
1053,
10515,
568,
29892,
10515,
568,
29906,
1... |
gzdice/rollers/FateRoller.py | gleeblezoid/Diceroller | 1 | 174934 | # Roller for FATE dice
import random
from ..menus import base_menus as m
def fateroller():
pool = int(input("How many dice are you rolling? "))
rollagain = "Y"
while str.upper(rollagain) == "Y":
try:
sides = 6
if pool < 1:
print("Silly human")
... | [
1,
396,
8731,
1358,
363,
383,
3040,
17629,
13,
13,
5215,
4036,
13,
3166,
6317,
1527,
375,
1053,
2967,
29918,
1527,
375,
408,
286,
13,
13,
13,
1753,
285,
1008,
324,
1358,
7295,
13,
1678,
11565,
353,
938,
29898,
2080,
703,
5328,
1784,... |
src/user/migrations/0018_delete_emailpreference.py | ResearchHub/ResearchHub-Backend-Open | 18 | 91565 | <reponame>ResearchHub/ResearchHub-Backend-Open
# Generated by Django 2.2.8 on 2019-12-11 22:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0017_emailpreference'),
]
operations = [
migrations.DeleteModel(
name='EmailPrefe... | [
1,
529,
276,
1112,
420,
29958,
1666,
2842,
16046,
29914,
1666,
2842,
16046,
29899,
5841,
355,
29899,
6585,
13,
29937,
3251,
630,
491,
15337,
29871,
29906,
29889,
29906,
29889,
29947,
373,
29871,
29906,
29900,
29896,
29929,
29899,
29896,
299... |
airflow_server/dags/cbs.py | carmelp16/anyway-etl | 0 | 163927 | <reponame>carmelp16/anyway-etl
from airflow import DAG
from airflow.utils.dates import days_ago
from anyway_etl_airflow.operators.cli_bash_operator import CliBashOperator
dag_kwargs = dict(
default_args={
'owner': 'airflow',
},
schedule_interval='@daily',
catchup=False,
start_date=days_ag... | [
1,
529,
276,
1112,
420,
29958,
29883,
2817,
295,
29886,
29896,
29953,
29914,
1384,
1582,
29899,
300,
29880,
13,
3166,
4799,
1731,
1053,
360,
10051,
13,
3166,
4799,
1731,
29889,
13239,
29889,
15190,
1053,
3841,
29918,
4425,
13,
13,
3166,
... |
Imaginary/2021/crypto/Textbook_RSA_2_Timmy_the_Lonely_Oracle/oracle.py | ruhan-islam/ctf-archives | 1 | 121833 | <filename>Imaginary/2021/crypto/Textbook_RSA_2_Timmy_the_Lonely_Oracle/oracle.py
#!/usr/bin/env -S python3 -u
from Crypto.Util.number import *
from hidden import p, q, flag1
e = 65537
n = p*q
ns = str(n)
ctxt = pow(bytes_to_long(flag1), e, n)
class SneakyUserException(Exception):
pass
def print_ctxt(t):
print("He... | [
1,
529,
9507,
29958,
1888,
351,
3821,
29914,
29906,
29900,
29906,
29896,
29914,
29883,
17929,
29914,
1626,
2909,
29918,
29934,
8132,
29918,
29906,
29918,
13711,
1357,
29918,
1552,
29918,
29931,
265,
873,
29918,
29949,
10792,
29914,
11347,
298... |
conan_ue4cli/commands/build.py | hobbeshunter/conan-ue4cli | 0 | 86918 | import argparse, os, shutil, tempfile
from os.path import basename, exists, join
from ..common import PackageBuilder, ProfileManagement, RecipeCache, Utility
from .update import update
# The default username used when building packages
DEFAULT_USER = 'adamrehn'
def build(manager, argv):
# Our supported command-lin... | [
1,
1053,
1852,
5510,
29892,
2897,
29892,
528,
4422,
29892,
5694,
1445,
13,
3166,
2897,
29889,
2084,
1053,
2362,
3871,
29892,
4864,
29892,
5988,
13,
3166,
6317,
9435,
1053,
22029,
5627,
29892,
20802,
27107,
29892,
830,
24044,
10408,
29892,
... |
language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py | Xtuden-com/language | 1,199 | 1727 | <filename>language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py<gh_stars>1000+
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain... | [
1,
529,
9507,
29958,
11675,
29914,
2151,
29918,
1062,
13857,
29914,
1655,
284,
29918,
2151,
29918,
1990,
3709,
29914,
13239,
29914,
4594,
29896,
29900,
29941,
29918,
18616,
13640,
911,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896... |
setup.py | codingjoe/codingjoes_new_package | 0 | 192096 | #!/usr/bin/env python
from setuptools import setup
setup(version_format='{tag}.dev{commits}')
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
3166,
731,
21245,
8789,
1053,
6230,
13,
13,
14669,
29898,
3259,
29918,
4830,
2433,
29912,
4039,
1836,
3359,
29912,
2055,
1169,
29913,
1495,
13,
2
] |
StatusWindow.py | BlackXanthus/PyBirch5 | 0 | 35728 |
####
#Made reduntant in Alpha 0.4
#
# As this provided no extra functionality from the Channel, and is, in essance,
# simply a speciall channel, various additions were made to Channel.py
# To perform the same function. This has meant less duplication of code.
####
import sys, sip
from PyQt5 import QtCore, QtGui
#fro... | [
1,
29871,
13,
4136,
13,
29937,
29924,
1943,
2654,
1657,
424,
297,
838,
2026,
29871,
29900,
29889,
29946,
13,
29937,
13,
29937,
1094,
445,
4944,
694,
4805,
9863,
515,
278,
17368,
29892,
322,
338,
29892,
297,
3686,
749,
29892,
13,
29937,
... |
zerver/lib/timestamp.py | Supermanu/zulip | 0 | 107404 | <gh_stars>0
from __future__ import absolute_import
import datetime
import calendar
from django.utils.timezone import utc as timezone_utc
def floor_to_hour(dt):
# type: (datetime.datetime) -> datetime.datetime
return datetime.datetime(*dt.timetuple()[:4]) \
.replace(tzinfo=dt.tzinfo)
def fl... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
13,
5215,
12865,
13,
5215,
17684,
13,
3166,
9557,
29889,
13239,
29889,
2230,
8028,
1053,
3477,
29883,
408,
29431,
29918,
329,
... |
download.py | reed-hackathon-2022/mc-bot | 1 | 30722 | <gh_stars>1-10
import io
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from googleapiclient.http import MediaIoBaseDownload
from google.oauth2 import service_account
from oauth2client.service_account import ServiceAccountCredentials
SCOPES = ['https://www.googleapis.com... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
12013,
13,
13,
3166,
5386,
29889,
23106,
29906,
29889,
11944,
9409,
1053,
24596,
9409,
13,
3166,
5386,
481,
293,
1593,
29889,
2218,
11911,
29891,
1053,
2048,
13... |
src/anim.py | JovialKnoll/monsters | 2 | 18914 | <gh_stars>1-10
import pygame.mixer
from vec2d import Vec2d
from saveable import Saveable
class Anim(Saveable):
__slots__ = (
'func',
'time',
'pos',
'sound',
'positional_sound',
)
def __init__(self, func: str, time: int, x_or_pair, y=None,
sound: p... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
22028,
29889,
28084,
261,
13,
13,
3166,
9649,
29906,
29881,
1053,
26393,
29906,
29881,
13,
3166,
4078,
519,
1053,
16913,
519,
13,
13,
13,
1990,
24980,
29898,
... |
sketches/aquarium/aquarium.pyde | kantel/processingpy | 4 | 153845 | from fish import Fish
WIDTH = 640
HEIGHT = 416
NFISHES = 15 # Anzahl der Fische
FPS = 60
fishes = []
def setup():
global bg
size(WIDTH, HEIGHT)
this.surface.setTitle(u"<NAME>, bonbonbuntes Aquarium")
bg = loadImage("background.png")
for _ in range(NFISHES):
fishes.append(Fish())
fram... | [
1,
515,
9427,
1053,
12030,
13,
13,
22574,
353,
29871,
29953,
29946,
29900,
13,
9606,
22530,
353,
29871,
29946,
29896,
29953,
13,
22498,
3235,
29950,
2890,
353,
29871,
29896,
29945,
29871,
396,
530,
17301,
589,
383,
2010,
13,
29943,
7024,
... |
array/arrayBasicprogram.py | abegpatel/Array-Practice-Programs | 1 | 50115 | <filename>array/arrayBasicprogram.py
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 24 22:12:02 2021
@author: Abeg
"""
#all symmetric pair of an array
def symmetricpair(pairs):
s=set()
for (x,y) in pairs:
s.add((x,y))
if (y,x) in s:
print((x,y),"|",((y,x)))
pairs=[(11,20),(30,40),(5,10... | [
1,
529,
9507,
29958,
2378,
29914,
2378,
16616,
8860,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
15945,
19451,
13,
20399,
373,
15050,
1085,
29871,
29906,
29946,
29871,
29906,
2... |
models/nlp/albert/run_pretraining.py | indhub/deep-learning-models | 0 | 128252 | """
albert-base
wrapped_train_step w/ 32bsz, 1acc: 3.13 it/s; 3.51 it/s
wrapped train_step w/ skipping loss/acc allreduce: ? it/s, 3.54 it/s
wrapped train_step w/ skipping xla: ? it/s, 1.50 it/s
wrapped train_batch & wrapped_allreduce: 2.99 it/s, 3.42 it/s
Max per-GPU batch size (albert):
base:
- 512seq: 32 on p3dn w/... | [
1,
9995,
13,
284,
2151,
29899,
3188,
13,
29893,
336,
2986,
29918,
14968,
29918,
10568,
281,
29914,
29871,
29941,
29906,
29890,
3616,
29892,
29871,
29896,
5753,
29901,
29871,
29941,
29889,
29896,
29941,
372,
29914,
29879,
29936,
29871,
29941,
... |
src/backend/qaweb/connectors.py | MovElb/Ann | 0 | 134810 | import os
import sys
import urllib.parse
import aiohttp
import aioredis
import aiowiki
import ujson
from typing import Any, List, Dict
from aiohttp import web
from aioredis import Redis
class BaseConnector:
def __init__(self, url: str, read_timeout: int, conn_timeout: int):
self._url = url
self.... | [
1,
1053,
2897,
13,
5215,
10876,
13,
5215,
3142,
1982,
29889,
5510,
13,
13,
5215,
263,
601,
1124,
13,
5215,
263,
1611,
287,
275,
13,
5215,
7468,
340,
10058,
13,
5215,
318,
3126,
13,
3166,
19229,
1053,
3139,
29892,
2391,
29892,
360,
9... |
python/461.hamming-distance.py | stavanmehta/leetcode | 0 | 1602548 | class Solution:
def hammingDistance(self, x: int, y: int) -> int:
| [
1,
770,
24380,
29901,
13,
1678,
822,
16366,
4056,
27469,
29898,
1311,
29892,
921,
29901,
938,
29892,
343,
29901,
938,
29897,
1599,
938,
29901,
13,
308,
13,
2
] |
wefe/word_embedding_model.py | raffaem/wefe | 0 | 131715 | <filename>wefe/word_embedding_model.py
from gensim.models.keyedvectors import BaseKeyedVectors
class WordEmbeddingModel:
"""A container for Word Embedding pre-trained models.
It can hold gensim's KeyedVectors or gensim's api loaded models.
It includes the name of the model and some vocab prefix if needed... | [
1,
529,
9507,
29958,
705,
1725,
29914,
1742,
29918,
17987,
8497,
29918,
4299,
29889,
2272,
13,
3166,
26943,
326,
29889,
9794,
29889,
1989,
287,
345,
14359,
1053,
7399,
2558,
287,
29963,
11142,
13,
13,
13,
1990,
10803,
6026,
2580,
8497,
... |
MISSIONS/bvr_sim/agent/dummy_observer/attack_seq_adjust.py | binary-husky/hmp2g | 2 | 142380 | <filename>MISSIONS/bvr_sim/agent/dummy_observer/attack_seq_adjust.py
from typing import List
from ..agent import Agent
from ..env_cmd import CmdEnv
from UTILS.colorful import *
from UTILS.tensor_ops import dir2rad, np_softmax, reg_rad_at, reg_rad, repeat_at
from .maneuver import maneuver_angle_to_ms, maneuver_angle_to_... | [
1,
529,
9507,
29958,
10403,
13507,
29903,
29914,
29890,
13416,
29918,
3601,
29914,
14748,
29914,
29881,
11770,
29918,
711,
2974,
29914,
1131,
547,
29918,
11762,
29918,
328,
5143,
29889,
2272,
13,
3166,
19229,
1053,
2391,
13,
3166,
6317,
147... |
training_with_dt.py | AlfredYang1986/phcleanning | 0 | 1606261 | <gh_stars>0
# -*- coding: utf-8 -*-
"""<EMAIL>.
功能描述:job3:left join cpa和prod
* @author yzy
* @version 0.0
* @since 2020/08/12
* @note 落盘数据:cpa_prod_join
"""
import os
from pyspark.sql import SparkSession
from dataparepare import *
from interfere import *
from pyspark.sql.types import *
from pyspark.sql.func... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
29966,
26862,
6227,
15513,
13,
13,
31134,
30815,
233,
146,
146,
235,
194,
179,
30383,
905... |
src/poretitioner/utils/filtering.py | uwmisl/poretitioner | 2 | 7180 | """
=========
filtering.py
=========
This module provides more granular filtering for captures.
You can customize your own filters too.
"""
from __future__ import annotations
import re
from abc import ABC, ABCMeta, abstractmethod
from dataclasses import dataclass
from json import JSONEncoder
from pathlib import Posi... | [
1,
9995,
13,
4936,
29922,
13,
4572,
292,
29889,
2272,
13,
4936,
29922,
13,
13,
4013,
3883,
8128,
901,
3803,
1070,
21166,
363,
4332,
1973,
29889,
13,
3492,
508,
2888,
675,
596,
1914,
18094,
2086,
29889,
13,
13,
15945,
29908,
13,
3166,
... |
foreman/data_refinery_foreman/foreman/management/commands/test_import_external_sample_attributes.py | AlexsLemonade/refinebio | 106 | 63570 | from unittest.mock import patch
from django.test import TestCase
import vcr
from data_refinery_common.models import (
Contribution,
Experiment,
ExperimentSampleAssociation,
OntologyTerm,
Sample,
SampleAttribute,
)
from data_refinery_foreman.foreman.management.commands.import_external_sample_a... | [
1,
515,
443,
27958,
29889,
17640,
1053,
13261,
13,
13,
3166,
9557,
29889,
1688,
1053,
4321,
8259,
13,
13,
5215,
325,
7283,
13,
13,
3166,
848,
29918,
999,
262,
708,
29918,
9435,
29889,
9794,
1053,
313,
13,
1678,
2866,
3224,
29892,
13,
... |
src/Books/book.py | cclauss/pydantic-books-example | 4 | 83224 | <reponame>cclauss/pydantic-books-example<gh_stars>1-10
from __future__ import annotations
from datetime import date
from typing import Optional
from pydantic import BaseModel, validator
class Author(BaseModel):
name: str
@validator("name")
def author_name_must_not_be_an_empty_string(cls, v):
if... | [
1,
529,
276,
1112,
420,
29958,
617,
433,
1558,
29914,
2272,
29881,
7716,
29899,
12733,
29899,
4773,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
3166,
12865,
10... |
code/socialDistribution/models/author.py | CMPUT404F21TEAM/social-distribution | 0 | 187373 | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
import datetime
import uuid
from cmput404.constants import API_BASE, STRING_MAXLEN, URL_MAXLEN
from .follow import Follow
class Author(models.Model):
""" Author model which represents all authors.
... | [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
4911,
13,
3166,
9557,
29889,
13239,
1053,
29431,
13,
13,
5215,
12865,
13,
5215,
318,
5416,
13,
13,
3166,
7477,
649,
29946,
29900,
29946... |
reports/migrations/0005_moneyback_payment_system.py | Igorishe/Report_Traker | 0 | 147191 | <filename>reports/migrations/0005_moneyback_payment_system.py<gh_stars>0
# Generated by Django 3.2.3 on 2021-09-13 09:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reports', '0004_alter_moneyback_wallet'),
]
operations = [
migratio... | [
1,
529,
9507,
29958,
276,
4011,
29914,
26983,
800,
29914,
29900,
29900,
29900,
29945,
29918,
29885,
4992,
1627,
29918,
27825,
29918,
5205,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
3251,
630,
491,
15337,
29871,
2... |
Spark/spark_media_CP.py | Dielam/Dielam.github.io | 0 | 1612011 | <filename>Spark/spark_media_CP.py
#!/usr/bin/python
#<NAME>
from pyspark import SparkConf, SparkContext
from shutil import rmtree
import string
import sys
import os
import os.path as path
if path.exists("output"):
rmtree("output")
if len(sys.argv) <= 1:
print("Error. No ha introducido Codigo Postal.")
else:
... | [
1,
529,
9507,
29958,
29903,
6378,
29914,
12597,
29918,
9799,
29918,
6271,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
13,
29937,
29966,
5813,
29958,
13,
13,
3166,
282,
952,
6378,
1053,
20814,
16376,
29892,
20814,
2677,
... |
core/data/collates/collate_functions.py | cjy97/LibFewShot | 471 | 75806 | # -*- coding: utf-8 -*-
import itertools
from collections import Iterable
import torch
class GeneralCollateFunction(object):
"""A Generic `Collate_fn`.
For finetuning-train.
"""
def __init__(self, trfms, times):
"""Initialize a `GeneralCollateFunction`.
Args:
trfms (lis... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
4256,
8504,
13,
3166,
16250,
1053,
20504,
519,
13,
13,
5215,
4842,
305,
13,
13,
13,
1990,
4593,
1625,
9632,
6678,
29898,
3318,
1125,
13,
1678,
... |
blog/context_processors/main_menu.py | evg-dev/pyblog | 0 | 162756 | from django.core.context_processors import request
from blog.models import Category
def menu(request):
return {"category_menu": Category.objects.all(), }
| [
1,
515,
9557,
29889,
3221,
29889,
4703,
29918,
5014,
943,
1053,
2009,
13,
3166,
12618,
29889,
9794,
1053,
17943,
13,
13,
13,
1753,
6143,
29898,
3827,
1125,
13,
1678,
736,
8853,
7320,
29918,
6510,
1115,
17943,
29889,
12650,
29889,
497,
3... |
tests/test_file_service/test_files_grouping_by_category.py | Masynchin/filogram | 0 | 159409 | from filogram import file_service
def test_correct_files_grouping_by_category(create_unique_file):
files = []
for category in ["books", "audio", "texts", "audio"]:
file = create_unique_file(category=category)
files.append(file)
(book_file, audio_file, text_file, another_audio_file) = file... | [
1,
515,
977,
13342,
1053,
934,
29918,
5509,
13,
13,
13,
1753,
1243,
29918,
15728,
29918,
5325,
29918,
2972,
292,
29918,
1609,
29918,
7320,
29898,
3258,
29918,
13092,
29918,
1445,
1125,
13,
1678,
2066,
353,
5159,
13,
1678,
363,
7663,
297... |
Stackless/demo/fakechannel.py | masamitsu-murase/stackless | 854 | 155836 | import stackless
class MyChannel:
def __init__(self):
self.queue = []
self.balance = 0
self.temp = None
def send(self, data):
if self.balance < 0:
receiver = self.queue.pop(0)
self.temp = data
receiver.insert()
self.balance += 1... | [
1,
1053,
5096,
2222,
13,
13,
13,
1990,
1619,
13599,
29901,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
9990,
353,
5159,
13,
4706,
1583,
29889,
5521,
749,
353,
29871,
29900,
13,
4706,
1583,
29889,
7382,
353... |
ex065.py | raquelEllem/exerciciosPython | 0 | 151576 | <filename>ex065.py<gh_stars>0
cont = soma = media = maior = menor = 0
res = 'S'
while res == 'S':
num = int(input('Digite um número: '))
res = str(input('Quer continuar? [S/N] ').strip().upper())
soma += num
cont += 1
if cont == 1:
maior = menor = num
else:
if maior < num:
... | [
1,
529,
9507,
29958,
735,
29900,
29953,
29945,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
1285,
353,
1047,
29874,
353,
5745,
353,
17136,
353,
26764,
353,
29871,
29900,
13,
690,
353,
525,
29903,
29915,
13,
8000,
620,
... |
warprnnt_numba/rnnt_loss/rnnt_atomic_locks/utils/naive_gpu_rnnt_kernel.py | titu1994/warprnnt_numba | 7 | 126693 | # Copyright (c) 2021, NVIDIA CORPORATION. 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 by appli... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29896,
29892,
405,
13044,
10764,
315,
1955,
29925,
1955,
8098,
29889,
29871,
2178,
10462,
21676,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
... |
devito/ir/iet/efunc.py | fffarias/devito-1 | 199 | 1611713 | <filename>devito/ir/iet/efunc.py
from collections import namedtuple
from cached_property import cached_property
from sympy import Or
import cgen as c
import numpy as np
from devito.ir.iet.nodes import (BlankLine, Call, Callable, Conditional, Dereference,
DummyExpr, Iteration, List, Po... | [
1,
529,
9507,
29958,
3359,
2049,
29914,
381,
29914,
2035,
29914,
1389,
4661,
29889,
2272,
13,
3166,
16250,
1053,
4257,
23583,
13,
13,
3166,
22152,
29918,
6799,
1053,
22152,
29918,
6799,
13,
3166,
5016,
2272,
1053,
1394,
13,
5215,
274,
1... |
src/opencmiss/utils/iron/bindings/python/opencmiss/iron/_utils.in.py | tsalemink/opencmiss.utils | 0 | 48226 | """Utility routines and classes used by OpenCMISS
"""
from . import _@IRON_PYTHON_MODULE@
class CMFEError(Exception):
"""Base class for errors in the OpenCMISS library"""
pass
class CMFEType(object):
"""Base class for all OpenCMISS types"""
pass
class Enum(object):
pass
def wrap_cmiss_rou... | [
1,
9995,
7270,
537,
6745,
1475,
322,
4413,
1304,
491,
4673,
29907,
10403,
1799,
13,
15945,
29908,
13,
13,
3166,
869,
1053,
903,
29992,
8193,
1164,
29918,
20055,
4690,
1164,
29918,
6720,
14849,
1307,
29992,
13,
13,
13,
1990,
315,
29924,
... |
filesystems/click.py | Julian/Filesystems | 2 | 37021 | <reponame>Julian/Filesystems<gh_stars>1-10
"""
Click support for `filesystems.Path`.
"""
from __future__ import absolute_import
import click
import filesystems
class Path(click.ParamType):
name = "path"
def convert(self, value, param, context):
if not isinstance(value, str):
return va... | [
1,
529,
276,
1112,
420,
29958,
27501,
713,
29914,
10547,
973,
29879,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
13,
4164,
2304,
363,
421,
5325,
973,
29879,
29889,
2605,
1412,
13,
15945,
29908,
13,... |
grr/server/hunts/results.py | nickamon/grr | 0 | 2748 | <gh_stars>0
#!/usr/bin/env python
"""Classes to store and manage hunt results.
"""
from grr.lib import rdfvalue
from grr.lib import registry
from grr.lib.rdfvalues import structs as rdf_structs
from grr_response_proto import jobs_pb2
from grr.server import access_control
from grr.server import aff4
from grr.server imp... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
15945,
29908,
27403,
304,
3787,
322,
10933,
298,
1657,
2582,
29889,
13,
15945,
29908,
13,
13,
3166,
867,
29878,
29889,
1982,
1053,
... |
selected_cols.py | launis/areadata | 0 | 113614 | def selected_cols(largeset = False, parties=True, pnroalue = True):
if largeset==True:
numeric_features = ['Miehet, 2018 (HE) osuudesta asukkaat',
'Naiset, 2018 (HE) osuudesta asukkaat',
'Asuntojen keskipinta-ala, 2018 (RA) osuus total',
... | [
1,
822,
4629,
29918,
22724,
29898,
27489,
267,
300,
353,
7700,
29892,
13973,
29922,
5574,
29892,
282,
29876,
307,
284,
434,
353,
5852,
1125,
30004,
13,
30004,
13,
1678,
565,
5573,
267,
300,
1360,
5574,
29901,
30004,
13,
4706,
16985,
299... |
ithz/security.py | ergoithz/ithz | 1 | 1602296 | <reponame>ergoithz/ithz
# -*- coding: utf-8 -*-
from google.appengine.api import users
from ithz.data import *
class SectionRights(object):
view = None # level list
edit = None # level list
add = False # boolean
assign = False # boolean
def __init__(self):
self.view = [0]
self.edit ... | [
1,
529,
276,
1112,
420,
29958,
261,
1484,
389,
29920,
29914,
389,
29920,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
5386,
29889,
932,
10599,
29889,
2754,
1053,
4160,
13,
3166,
372,
29882,... |
pydocusign/test.py | enefeq/pydocusign | 10 | 181484 | <filename>pydocusign/test.py
"""Utilities to run tests around `pydocusign`."""
import os
def fixtures_dir():
"""Return absolute path to `pydocusign`'s fixtures dir, as best guess.
This function supports two situations:
* you use it in code repository's root, i.e. ``fixtures/`` folder is in the
sam... | [
1,
529,
9507,
29958,
2272,
1514,
375,
647,
29914,
1688,
29889,
2272,
13,
15945,
29908,
7270,
1907,
304,
1065,
6987,
2820,
421,
2272,
1514,
375,
647,
29952,
1213,
15945,
13,
5215,
2897,
13,
13,
13,
1753,
5713,
486,
1973,
29918,
3972,
7... |
allocator.py | javicacheiro/resource-allocator | 0 | 86690 | """Resource Allocation API"""
import kvstore
PREFIX = 'resources'
DISK_PREFIX = 'disks'
ADDRESS_PREFIX = 'networks'
class ResourceManager(object):
"""Resource Management base class"""
def __init__(self, endpoint='http://127.0.0.1:8500/v1/kv'):
self.endpoint = endpoint
self._kv = kvstore.Clie... | [
1,
9995,
6848,
838,
5479,
3450,
15945,
29908,
13,
5215,
10908,
8899,
13,
13,
15094,
25634,
353,
525,
13237,
29915,
13,
23711,
29968,
29918,
15094,
25634,
353,
525,
2218,
2039,
29915,
13,
17744,
26785,
29918,
15094,
25634,
353,
525,
11618,... |
eda/numerical_data/correlation_heat_map.py | kmsk99/data_science_toolbar | 0 | 150345 | corr_data = df_train[['Id', 'MSSubClass', 'LotFrontage', 'LotArea', 'OverallQual',
'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1',
'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF',
'LowQualFinSF', 'GrLivArea', 'Bsm... | [
1,
27760,
29918,
1272,
353,
4489,
29918,
14968,
29961,
1839,
1204,
742,
525,
29924,
1799,
431,
2385,
742,
525,
29931,
327,
29348,
482,
742,
525,
29931,
327,
13799,
742,
525,
3563,
497,
24399,
742,
13,
462,
418,
525,
3563,
497,
10983,
... |
utils/indicators/cost_abat_value/calculate.py | kvanderwijst/IAMDiagnostics | 0 | 77451 | import numpy as np
from utils.data.handling import set_value_from_var_column
def create_columns(
data,
prev_meta,
years=["2050", "2100"],
cprices=[130.3, 1441.3],
policy_scenario="diag-c80-gr5",
mute=False,
):
meta = prev_meta.copy()
created_columns = []
## Calculate policy cost... | [
1,
1053,
12655,
408,
7442,
13,
13,
3166,
3667,
29879,
29889,
1272,
29889,
3179,
1847,
1053,
731,
29918,
1767,
29918,
3166,
29918,
1707,
29918,
4914,
13,
13,
13,
1753,
1653,
29918,
13099,
29898,
13,
1678,
848,
29892,
13,
1678,
12379,
299... |
Day9b/Day9b.py | mathuin/advent-of-code-2017 | 0 | 152680 | #!/usr/bin/python3
import sys
# stream processing
# streams have groups and garbage.
# groups are delimited by {}.
# groups can contain other groups and garbage.
# garbage is delimited by <>.
# garbage can't contain groups.
# any character followed by ! is cancelled.
# goal is to find total score for all groups.
# g... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29941,
13,
13,
5215,
10876,
13,
13,
29937,
4840,
9068,
13,
13,
29937,
20873,
505,
6471,
322,
25861,
29889,
13,
29937,
6471,
526,
628,
326,
1573,
491,
426,
1836,
13,
29937,
6471,
508,
1712,
916... |
python/modules/mysql_server.py | 91-jinrong/-91_monitor | 1 | 7779 | <filename>python/modules/mysql_server.py
#!/bin/env python
#-*-coding:utf-8-*-
import os
import sys
import string
import time
import datetime
import MySQLdb
class MySQL:
def __int__(self,host,port,user,passwd,dbname,timeout,charset):
self.host = host
self.port = port
self.user = user
... | [
1,
529,
9507,
29958,
4691,
29914,
7576,
29914,
7938,
29918,
2974,
29889,
2272,
13,
29937,
14708,
2109,
29914,
6272,
3017,
13,
29937,
29899,
29930,
29899,
29883,
3689,
29901,
9420,
29899,
29947,
29899,
29930,
29899,
13,
5215,
2897,
13,
5215,... |
hsi/log.py | morrocoy/hsi | 1 | 197992 | # -*- coding: utf-8 -*-
""" An interface module for mcx (Monte Carlo eXtreme).
Created on Tue Mar 16 21:43:18 2021
@author: kpapke
"""
import logging
class LogManager(object):
""" Class to manage multiple loggers from different modules
"""
def __init__(self):
""" Constructor. """
self.l... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
530,
5067,
3883,
363,
286,
18904,
313,
7185,
371,
15021,
321,
29990,
2484,
1004,
467,
13,
13,
20399,
373,
323,
434,
1085,
29871,
29896,
2... |
tests/test_timeparser.py | vgoehler/python-i3-battery-block | 0 | 2570 | <gh_stars>0
from datetime import time
import pytest
from i3_battery_block_vgg.timeparser import __parse_time_manually
from i3_battery_block_vgg.timeparser import parse_time
@pytest.mark.parametrize(
"time_input, expected",
[
("12:13", time(hour=12, minute=13)),
("12:13:14", time(hour=12, min... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
12865,
1053,
931,
13,
13,
5215,
11451,
1688,
13,
13,
3166,
474,
29941,
29918,
29890,
2620,
29891,
29918,
1271,
29918,
29894,
1505,
29889,
2230,
16680,
1053,
4770,
5510,
29918,
2230,... |
tests/test_code/py/chained/chained.py | FreddyZeng/code2flow | 2,248 | 170675 | class Chain():
def __init__(self, val):
self.val = val
def add(self, b):
self.val += b
return self
def sub(self, b):
self.val -= b
return self
def mul(self, b):
self.val *= b
return self
print(Chain(5).add(5).sub(2).mul(10))
| [
1,
770,
678,
475,
7295,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
659,
1125,
13,
4706,
1583,
29889,
791,
353,
659,
13,
13,
1678,
822,
788,
29898,
1311,
29892,
289,
1125,
13,
4706,
1583,
29889,
791,
4619,
289,
13,
4706,
736,
158... |
server/website/context.py | eIGato/mahjong-portal | 10 | 76184 | <reponame>eIGato/mahjong-portal
from django.conf import settings
from django.utils import timezone
from django.utils.translation import get_language
def context(request):
language = get_language()
return {
"GOOGLE_VERIFICATION_CODE": settings.GOOGLE_VERIFICATION_CODE,
"YANDEX_VERIFICATION_COD... | [
1,
529,
276,
1112,
420,
29958,
29872,
6259,
1219,
29914,
655,
29882,
29926,
549,
29899,
25089,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
13239,
1053,
29431,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
679... |
src/pywink/test/devices/sensor_test.py | vickyg3/python-wink | 0 | 77072 | <gh_stars>0
import json
import os
import unittest
from unittest.mock import MagicMock
from pywink.api import get_devices_from_response_dict
from pywink.devices import types as device_types
from pywink.devices.piggy_bank import WinkPorkfolioBalanceSensor
from pywink.devices.smoke_detector import WinkSmokeDetector, Win... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
4390,
13,
5215,
2897,
13,
5215,
443,
27958,
13,
13,
3166,
443,
27958,
29889,
17640,
1053,
26494,
18680,
13,
13,
3166,
282,
5693,
682,
29889,
2754,
1053,
679,
29918,
3359,
1575,
... |
PreliminaryAnalysis/Interarrival Times/daily_rate_changes.py | alfredholmes/cryptocurrency_data_analysis | 0 | 62255 | <reponame>alfredholmes/cryptocurrency_data_analysis
import classification
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import expon, norm
def main():
transactions = classification.load_transactions()
orders = classification.classify_trades(transactions)
interarrivals = classificat... | [
1,
529,
276,
1112,
420,
29958,
3131,
1127,
5391,
4467,
29914,
29883,
4641,
542,
10880,
29918,
1272,
29918,
15916,
13,
5215,
12965,
13,
13,
5215,
12655,
408,
7442,
13,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
3166,
4560,
2272,... |
wearebeautiful/bin/make_bundle.py | MarcTschudin/wearebeautiful.info | 0 | 47422 | #!/usr/bin/env python
import sys
sys.path.append("..")
import json
import click
import datetime
import os
import shutil
from zipfile import ZipFile
from tempfile import mkdtemp
from scale_mesh import scale_mesh
from wearebeautiful.bundles import validate_manifest, MAX_SCREENSHOT_SIZE
from wearebeautiful import model_... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
10876,
13,
9675,
29889,
2084,
29889,
4397,
703,
636,
1159,
13,
13,
5215,
4390,
13,
5215,
2828,
13,
5215,
12865,
13,
5215,
2897,
13,
5215,
528,
4422,
13,
3166,
14319,
1445,
... |
easyAI/games/Reversi.py | obravocedillo/easyAI | 0 | 172951 | """
The game of Reversi. Warning: this game is not coded in an optimal
way, the AI will be slow.
"""
import numpy as np
from easyAI import TwoPlayersGame
to_string = lambda a : "ABCDEFGH"[a[0]] + str(a[1]+1)
to_array = lambda s : np.array(["ABCDEFGH".index(s[0]),int(s[1])-1])
class Reversi( TwoPlayersGame ):
"""... | [
1,
9995,
13,
1576,
3748,
310,
830,
874,
29875,
29889,
24412,
29901,
445,
3748,
338,
451,
274,
6797,
297,
385,
14413,
13,
1582,
29892,
278,
319,
29902,
674,
367,
5232,
29889,
13,
15945,
29908,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
... |
rdp/__init__.py | emulbreh/rdp | 0 | 49480 | from rdp.grammar import Grammar, GrammarBuilder, ignore
from rdp.symbols import Terminal, repeat, Regexp, Optional, Lookahead
from rdp.symbols import epsilon, flatten, drop, keep
from rdp.parser import Parser
from rdp.exceptions import ParseError, LeftRecursion, InvalidGrammar, TokenizeError
| [
1,
515,
364,
6099,
29889,
1393,
3034,
1053,
16878,
3034,
29892,
16878,
3034,
5627,
29892,
11455,
13,
3166,
364,
6099,
29889,
18098,
29879,
1053,
29175,
29892,
12312,
29892,
2169,
4548,
29892,
28379,
29892,
7419,
29874,
2813,
13,
3166,
364,
... |
Voicelab/toolkits/Voicelab/MeasureFormantPositionsNode.py | FrancisTembo/VoiceLab | 27 | 178305 | from Voicelab.pipeline.Node import Node
from parselmouth.praat import call
from Voicelab.toolkits.Voicelab.VoicelabNode import VoicelabNode
from Voicelab.toolkits.Voicelab.MeasurePitchNode import measure_pitch
from scipy import stats
import statistics
class MeasureFormantPositionsNode(VoicelabNode):
def __init__(... | [
1,
515,
4785,
293,
295,
370,
29889,
13096,
5570,
29889,
4247,
1053,
9071,
13,
3166,
610,
2838,
21026,
29889,
29886,
336,
271,
1053,
1246,
13,
3166,
4785,
293,
295,
370,
29889,
10154,
29895,
1169,
29889,
29963,
29877,
293,
295,
370,
2988... |
astar.py | jeff012345/clue-part-duo | 0 | 7299 | <reponame>jeff012345/clue-part-duo
import heapq
from typing import List
from definitions import RoomPosition, Position
import random
import sys
class PriorityQueue:
def __init__(self):
self.elements: Array = []
def empty(self) -> bool:
return len(self.elements) == 0
def put(self, ... | [
1,
529,
276,
1112,
420,
29958,
1324,
600,
29900,
29896,
29906,
29941,
29946,
29945,
29914,
695,
434,
29899,
1595,
29899,
700,
29877,
13,
5215,
16947,
29939,
13,
3166,
19229,
1053,
2391,
13,
3166,
15848,
1053,
25114,
8003,
29892,
20627,
13... |
registry/migrations/versions/0df25c7758bf_add_a_tsv_for_the_instance_contents.py | jbn/quilt | 0 | 128522 | <gh_stars>0
"""Add a tsv for the instance contents
Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2018-03-13 14:49:51.719830
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '9576b2ed4073'
br... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
2528,
263,
260,
4501,
363,
278,
2777,
8118,
13,
13,
1123,
4924,
3553,
29901,
529,
10818,
29958,
13,
1123,
1730,
267,
29901,
529,
25711,
17013,
29958,
13,
4391,
4712,
29901... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.