hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
cfd178d2024eaa4f878a0b7ed083d8eb3e399e26
16,766
py
Python
src/config/schema-transformer/schema_transformer/resources/bgp_router.py
atsgen/tf-controller
9321889cdd3d7108980cc88937b2e82956502cc5
[ "Apache-2.0" ]
37
2020-09-21T10:42:26.000Z
2022-01-09T10:16:40.000Z
src/config/schema-transformer/schema_transformer/resources/bgp_router.py
atsgen/tf-controller
9321889cdd3d7108980cc88937b2e82956502cc5
[ "Apache-2.0" ]
null
null
null
src/config/schema-transformer/schema_transformer/resources/bgp_router.py
atsgen/tf-controller
9321889cdd3d7108980cc88937b2e82956502cc5
[ "Apache-2.0" ]
21
2020-08-25T12:48:42.000Z
2022-03-22T04:32:18.000Z
# # Copyright (c) 2019 Juniper Networks, Inc. All rights reserved. # from builtins import str from cfgm_common.exceptions import NoIdError, RefsExistError from vnc_api.gen.resource_client import BgpRouter from vnc_api.gen.resource_xsd import AddressFamilies, BgpSessionAttributes from vnc_api.gen.resource_xsd import B...
40.694175
79
0.586485
cfd18c0693619d0fdb0cb134fdd955a738fdd3c2
346
py
Python
Exercicios-Python/CursoEmVideo/ex035.py
bruno1906/ExerciciosPython
af657fb8083bc60b80d35d0d9f66495a2f1e3b43
[ "MIT" ]
null
null
null
Exercicios-Python/CursoEmVideo/ex035.py
bruno1906/ExerciciosPython
af657fb8083bc60b80d35d0d9f66495a2f1e3b43
[ "MIT" ]
null
null
null
Exercicios-Python/CursoEmVideo/ex035.py
bruno1906/ExerciciosPython
af657fb8083bc60b80d35d0d9f66495a2f1e3b43
[ "MIT" ]
null
null
null
print('-*-'*20) print('Analisador de tringulos ') print('-*-'*20) r1=float(input('Primeiro segmento:')) r2=float(input('Segundo segmento:')) r3=float(input('Terceiro segmento:')) if r1<r2+r3 and r2<r1+r3 and r3<r1+r2: print('Os segmentos acima podem formar um triangulo') else: print('Os segmentos acima no podem...
28.833333
61
0.702312
cfd3e8a0b276c09d141e4dd860393f923ac386ae
859
py
Python
startup/23-feedback.py
NSLS-II-ISS/profile_collection
77e5567fa8c5b3dfb249174ce951279899b2c917
[ "BSD-3-Clause" ]
null
null
null
startup/23-feedback.py
NSLS-II-ISS/profile_collection
77e5567fa8c5b3dfb249174ce951279899b2c917
[ "BSD-3-Clause" ]
22
2017-08-16T18:50:44.000Z
2021-11-10T21:11:03.000Z
startup/23-feedback.py
NSLS-II-ISS/profile_collection
77e5567fa8c5b3dfb249174ce951279899b2c917
[ "BSD-3-Clause" ]
8
2016-04-01T19:46:06.000Z
2022-01-07T20:04:42.000Z
from xas.pid import PID from xas.image_analysis import determine_beam_position_from_fb_image # # from piezo_feedback.piezo_fb import PiezoFeedback from PyQt5.QtCore import QThread machine_name = os.uname()[1] if 'ws1' in machine_name: local_hostname = 'ws01' elif 'ws2' in machine_name: local_hostname = 'ws02...
22.025641
68
0.669383
cfd3f97eb4d130eda425f8c300f730959a8cb016
281
py
Python
views.py
pythonran/easy_server
2840d76db45ac9103d2a1b7f9f044687d4f1a77e
[ "Apache-2.0" ]
null
null
null
views.py
pythonran/easy_server
2840d76db45ac9103d2a1b7f9f044687d4f1a77e
[ "Apache-2.0" ]
null
null
null
views.py
pythonran/easy_server
2840d76db45ac9103d2a1b7f9f044687d4f1a77e
[ "Apache-2.0" ]
null
null
null
from view_core import View from easyserver import easyResponse import json
21.615385
45
0.597865
cfd44512663eea712840408dc55eca32ccdb748a
343
py
Python
3.py
hubieva-a/lab5
99b128b43268a00781be4d89d4e9d6246de80156
[ "MIT" ]
null
null
null
3.py
hubieva-a/lab5
99b128b43268a00781be4d89d4e9d6246de80156
[ "MIT" ]
null
null
null
3.py
hubieva-a/lab5
99b128b43268a00781be4d89d4e9d6246de80156
[ "MIT" ]
null
null
null
# . , . # !/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': n = str(input(" - ")) m = len(n) for i in range(1, m): i = str(i) if n.find(i) % 2 == 1: n = n.replace('', '') print(n)
24.5
77
0.504373
cfd482fdd9dbd30406b4382b67d77afe7fc1986b
1,647
py
Python
2015/03/fc_2015_03_12.py
mfwarren/FreeCoding
58ac87f35ad2004a3514782556762ee0ed72c39a
[ "MIT" ]
null
null
null
2015/03/fc_2015_03_12.py
mfwarren/FreeCoding
58ac87f35ad2004a3514782556762ee0ed72c39a
[ "MIT" ]
1
2015-04-27T01:43:45.000Z
2015-04-27T01:43:45.000Z
2015/03/fc_2015_03_12.py
mfwarren/FreeCoding
58ac87f35ad2004a3514782556762ee0ed72c39a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # imports go here import pika import multiprocessing import time import random import json import logging import datetime # # Free Coding session for 2015-03-12 # Written by Matt Warren # logger = logging.getLogger(__name__) if __name__ == "__main__": producer() consumer()
23.528571
92
0.657559
cfd5da88072e9a053dc3f863c3a94ca75ce3bfd8
11,515
py
Python
profbit/coinbase_stats.py
prof-bit/profbit-api
e75c11091a35c1815e08822528d32ccb8e678bd8
[ "MIT" ]
43
2017-11-23T04:18:53.000Z
2021-07-20T18:23:44.000Z
profbit/coinbase_stats.py
prof-bit/profbit-api
e75c11091a35c1815e08822528d32ccb8e678bd8
[ "MIT" ]
28
2017-11-27T17:17:30.000Z
2021-06-01T22:03:08.000Z
profbit/coinbase_stats.py
prof-bit/profbit-api
e75c11091a35c1815e08822528d32ccb8e678bd8
[ "MIT" ]
11
2017-11-27T21:45:21.000Z
2020-12-19T21:12:32.000Z
import datetime import re from collections import defaultdict from copy import copy from enum import Enum from functools import lru_cache from urllib import parse from coinbase.wallet.client import OAuthClient from .app import app from .currency_map import CURRENCY_MAP TIMESTAMP_REGEX = re.compile( r'(\d{4})-(\d...
35.106707
78
0.667043
cfd8cf5392dc721a2eb8cd8e9047d8a18cbaacd5
5,637
py
Python
apps/staff/management/commands/addemall.py
mrtaalebi/sitigo
cce8b4f5299b58d7365789ead416d4568b443743
[ "Apache-2.0" ]
null
null
null
apps/staff/management/commands/addemall.py
mrtaalebi/sitigo
cce8b4f5299b58d7365789ead416d4568b443743
[ "Apache-2.0" ]
8
2020-02-12T01:02:15.000Z
2022-03-11T23:53:39.000Z
apps/staff/management/commands/addemall.py
mrtaalebi/sitigo
cce8b4f5299b58d7365789ead416d4568b443743
[ "Apache-2.0" ]
null
null
null
from django.core.management import BaseCommand from apps.staff.models import Team, Role, Staff from apps.content.models import Event
39.145833
166
0.529714
cfd8f10c0d6b006c5bd0b0879c39184c3c7a4227
14,109
py
Python
test/test_trustProcessor/test_worker.py
mugpahug/pycu-sdr
012aad85a66fd02bb13e325e2b0a978d7667a718
[ "BSD-3-Clause" ]
1
2021-07-10T13:13:11.000Z
2021-07-10T13:13:11.000Z
test/test_trustProcessor/test_worker.py
mugpahug/pycu-sdr
012aad85a66fd02bb13e325e2b0a978d7667a718
[ "BSD-3-Clause" ]
1
2021-07-12T06:04:07.000Z
2021-07-12T06:04:07.000Z
test/test_trustProcessor/test_worker.py
mugpahug/pycu-sdr
012aad85a66fd02bb13e325e2b0a978d7667a718
[ "BSD-3-Clause" ]
1
2021-07-10T13:13:15.000Z
2021-07-10T13:13:15.000Z
# Copyright: (c) 2021, Edwin G. W. Peters import sys sys.path.append('../../py-cuda-sdr/') sys.path.append('../') import importlib import softCombiner import json,rjsmin importlib.reload(softCombiner) import numpy as np import matplotlib.pyplot as plt import logging import zmq import time import unittest import nump...
40.426934
159
0.605784
cfda25ea8c41e2c58ebbd422c6cbddbd5774f03e
311
py
Python
Deployment/extract_chorus.py
Parvez13/Predicting-Hit-Songs-Using-Repeated-Chorus
00ef57c05c729ee43a6ad7ad6276f1a403452f2d
[ "MIT" ]
null
null
null
Deployment/extract_chorus.py
Parvez13/Predicting-Hit-Songs-Using-Repeated-Chorus
00ef57c05c729ee43a6ad7ad6276f1a403452f2d
[ "MIT" ]
null
null
null
Deployment/extract_chorus.py
Parvez13/Predicting-Hit-Songs-Using-Repeated-Chorus
00ef57c05c729ee43a6ad7ad6276f1a403452f2d
[ "MIT" ]
null
null
null
from pychorus import find_and_output_chorus
19.4375
52
0.655949
cfdad83932c36e7117f7fb9ec96a475ceb6f246a
653
py
Python
api/stats.py
ryomakawakami/chess-app
ca2932017cc23e9cdd7d818aa3a976024202cb56
[ "MIT" ]
null
null
null
api/stats.py
ryomakawakami/chess-app
ca2932017cc23e9cdd7d818aa3a976024202cb56
[ "MIT" ]
null
null
null
api/stats.py
ryomakawakami/chess-app
ca2932017cc23e9cdd7d818aa3a976024202cb56
[ "MIT" ]
null
null
null
from flask import request from flask_jwt_extended import get_jwt_identity, jwt_required from flask_restx import Namespace, Resource, fields from models import Stats stats_ns = Namespace('stats', description='A namespace for stats.') stats_model = stats_ns.model('Stats', { 'id': fields.Integer(), 'username': ...
28.391304
78
0.721286
cfdc5fe206c24d67d093476b18ea47335843481f
806
py
Python
aula7/exercicio/exercicio2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula7/exercicio/exercicio2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula7/exercicio/exercicio2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
#--- Exerccio 2 - Dicionrios #--- Escreva um programa que leia os dados de 11 jogadores #--- Jogador: Nome, Posicao, Numero, PernaBoa #--- Crie um dicionario para armazenar os dados #--- Imprima todos os jogadores e seus dados #--- Resoluo Nicole Gruber lista_jogadores=[] for i in range(1,3): Nome=input('Digite o...
38.380952
138
0.702233
cfdc8a09f616768f455348cd6eb92b6b67cedd41
1,071
py
Python
plotaif.py
dwsideriusNIST/adsorptioninformationformat
c23138af20622f62266ef62bf5373839c29ad1c9
[ "MIT" ]
5
2021-04-03T04:23:36.000Z
2021-05-14T08:46:37.000Z
plotaif.py
dwsideriusNIST/adsorptioninformationformat
c23138af20622f62266ef62bf5373839c29ad1c9
[ "MIT" ]
5
2021-02-04T10:04:45.000Z
2021-11-12T05:03:58.000Z
plotaif.py
dwsideriusNIST/adsorptioninformationformat
c23138af20622f62266ef62bf5373839c29ad1c9
[ "MIT" ]
2
2021-02-01T22:00:05.000Z
2021-04-15T19:41:20.000Z
# -*- coding: utf-8 -*- """Plot AIF from command line""" import sys import os from gemmi import cif # pylint: disable-msg=no-name-in-module import matplotlib.pyplot as plt import numpy as np filename = sys.argv[1] aif = cif.read(filename) block = aif.sole_block() ads_press = np.array(block.find_loop('_adsorp_pressur...
36.931034
78
0.720822
cfdcf1f43b160c36f9e07c86fc5d9b4c6ad7b380
12,080
py
Python
fastapi_token/oauth2.py
yangyaofei/fastapi-token-gen
a65cda8c3dd9a6901593c43d4f6d370d987cd673
[ "MIT" ]
null
null
null
fastapi_token/oauth2.py
yangyaofei/fastapi-token-gen
a65cda8c3dd9a6901593c43d4f6d370d987cd673
[ "MIT" ]
1
2021-09-02T07:41:56.000Z
2021-09-02T07:41:56.000Z
fastapi_token/oauth2.py
yangyaofei/fastapi-token-gen
a65cda8c3dd9a6901593c43d4f6d370d987cd673
[ "MIT" ]
null
null
null
import hashlib import math import time import typing import jwt import pydantic from fastapi.exceptions import HTTPException from fastapi.requests import Request from fastapi.security import OAuth2PasswordBearer from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN from fastapi_token.encrypt import g...
36.495468
127
0.644288
cfde219f134665c1545cb687c39a9a1a9fe75755
5,561
py
Python
Step02_Build_CNN_model/makeFiles4Basset.py
talkowski-lab/SMC_CNN_Model
19eee4eac060e5dea72387335bc960693941b703
[ "MIT" ]
1
2021-06-12T00:56:22.000Z
2021-06-12T00:56:22.000Z
Step02_Build_CNN_model/makeFiles4Basset.py
talkowski-lab/SMC_CNN_Model
19eee4eac060e5dea72387335bc960693941b703
[ "MIT" ]
null
null
null
Step02_Build_CNN_model/makeFiles4Basset.py
talkowski-lab/SMC_CNN_Model
19eee4eac060e5dea72387335bc960693941b703
[ "MIT" ]
1
2021-11-08T22:05:05.000Z
2021-11-08T22:05:05.000Z
#!/usr/bin/env python from __future__ import division import numpy.random as npr import pysam from Bio.Seq import reverse_complement BASSET_FOLDER = "" #Main doit([("../Output_data/up01tripletNames_pos_fdr01.txt","Inclusion"), ("../Output_data/dn01tripletNames_pos_fdr01.txt","Exclusion"), ("....
31.241573
156
0.517173
cfe1b765d04390c8054e0dca1f787ade874e2916
433
py
Python
tests/unit_tests/test_system_program.py
524119574/solana-py
2e67b7cb03cc8b8c97d61db1908e208ea4130158
[ "MIT" ]
null
null
null
tests/unit_tests/test_system_program.py
524119574/solana-py
2e67b7cb03cc8b8c97d61db1908e208ea4130158
[ "MIT" ]
null
null
null
tests/unit_tests/test_system_program.py
524119574/solana-py
2e67b7cb03cc8b8c97d61db1908e208ea4130158
[ "MIT" ]
null
null
null
"""Unit tests for solana.system_program.""" import solana.system_program as sp from solana.account import Account def test_transfer(): """Test creating a transaction for transfer.""" params = sp.TransferParams(from_pubkey=Account().public_key(), to_pubkey=Account().public_key(), lamports=123) txn = sp.tra...
36.083333
114
0.736721
cfe32d1805ca5c9b99d405aebfbc9ec70014e365
1,702
py
Python
vaultier/vaultier/urls_api.py
dz0ny/Vaultier
e23d86c7576f4785b4e369242d7b5f7125e4d8c6
[ "BSD-3-Clause" ]
30
2015-07-13T11:11:23.000Z
2021-01-25T14:21:18.000Z
vaultier/vaultier/urls_api.py
corpusops/vaultier
3baef4346add0b3bdff322257467f74b2a0c856c
[ "BSD-3-Clause" ]
null
null
null
vaultier/vaultier/urls_api.py
corpusops/vaultier
3baef4346add0b3bdff322257467f74b2a0c856c
[ "BSD-3-Clause" ]
31
2015-08-10T12:10:16.000Z
2020-09-18T09:43:28.000Z
from django.conf.urls import patterns, url from rest_framework import routers from accounts.api import UserViewSet, LostKeyViewSet, AuthView, MemberViewSet from nodes.api import NodeViewSet, NodePathView, NodeDataView, PolicyViewSet from news.api import NewsApiView from search.api import SearchView from vaultier.views...
37.822222
77
0.716804
cfe5d3050fdcafb0b2e8679258684898732aba8c
528
py
Python
code_reviews/palabras_largas/palabras_largas_refactored.py
proto-tools-docs/Soluciones
7a619e00572a3496cb08a90702f152f52c6d5e56
[ "MIT" ]
null
null
null
code_reviews/palabras_largas/palabras_largas_refactored.py
proto-tools-docs/Soluciones
7a619e00572a3496cb08a90702f152f52c6d5e56
[ "MIT" ]
null
null
null
code_reviews/palabras_largas/palabras_largas_refactored.py
proto-tools-docs/Soluciones
7a619e00572a3496cb08a90702f152f52c6d5e56
[ "MIT" ]
null
null
null
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Solucin completa en: https://github.com/AyudaEnPython/Soluciones/blob/main/ejercicios/palabras_largas.py """ from prototools.entradas import entrada_int if __name__ == "__main__": main()
26.4
83
0.693182
cfe874e110bb95201d21ec88573684fcbfff0dff
158
py
Python
classes/wars.py
aarkwright/pyThia
064b25f433b055b9187dfae9a83907a3f9b47100
[ "MIT" ]
null
null
null
classes/wars.py
aarkwright/pyThia
064b25f433b055b9187dfae9a83907a3f9b47100
[ "MIT" ]
null
null
null
classes/wars.py
aarkwright/pyThia
064b25f433b055b9187dfae9a83907a3f9b47100
[ "MIT" ]
null
null
null
from .helpers import *
15.8
37
0.613924
cfe9f22ae5f5f53b905ba14a3970233e98bc5275
6,170
py
Python
rotkehlchen/db/ledger_actions.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
137
2018-03-05T11:53:29.000Z
2019-11-03T16:38:42.000Z
rotkehlchen/db/ledger_actions.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
385
2018-03-08T12:43:41.000Z
2019-11-10T09:15:36.000Z
rotkehlchen/db/ledger_actions.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
59
2018-03-08T10:08:27.000Z
2019-10-26T11:30:44.000Z
import logging from typing import TYPE_CHECKING, List, Optional, Tuple from pysqlcipher3 import dbapi2 as sqlcipher from rotkehlchen.accounting.ledger_actions import LedgerAction from rotkehlchen.constants.limits import FREE_LEDGER_ACTIONS_LIMIT from rotkehlchen.db.filtering import LedgerActionsFilterQuery from rotke...
40.064935
128
0.635656
cfea7cb35e71b8037df53794515557e7827e0962
1,573
py
Python
sarcastic_bot/inference.py
sarvasvarora/sarcasm-generator
766641f577663b92697e1dba0adc199e2de18584
[ "MIT" ]
1
2022-02-28T19:32:11.000Z
2022-02-28T19:32:11.000Z
sarcastic_bot/inference.py
Kevin-Xu-2001/sarcasm-generator
766641f577663b92697e1dba0adc199e2de18584
[ "MIT" ]
null
null
null
sarcastic_bot/inference.py
Kevin-Xu-2001/sarcasm-generator
766641f577663b92697e1dba0adc199e2de18584
[ "MIT" ]
1
2022-02-28T19:28:27.000Z
2022-02-28T19:28:27.000Z
import transformers from utils import get_tokenizer import numpy as np import torch as pt
28.089286
79
0.647807
cfed615c93813dc24fbc5ba55b533312a1aae9d2
2,545
py
Python
src/filter/filter_with_hvg/script.py
openpipeline-bio/openpipeline
1e030961303b21b4351503cdc5f0a25d2879d094
[ "MIT" ]
2
2021-11-10T13:16:09.000Z
2022-02-11T12:46:43.000Z
src/filter/filter_with_hvg/script.py
openpipeline-bio/openpipeline
1e030961303b21b4351503cdc5f0a25d2879d094
[ "MIT" ]
4
2021-10-20T12:58:52.000Z
2022-02-02T11:05:20.000Z
src/filter/filter_with_hvg/script.py
openpipeline-bio/openpipeline
1e030961303b21b4351503cdc5f0a25d2879d094
[ "MIT" ]
null
null
null
import scanpy as sc import muon as mu import numpy as np ## VIASH START par = { 'input': 'resources_test/pbmc_1k_protein_v3/pbmc_1k_protein_v3_filtered_feature_bc_matrix.h5mu', 'modality': ['rna'], 'output': 'output.h5mu', 'var_name_filter': 'filter_with_hvg', 'do_subset': False, 'flavor': 'seurat', 'n_t...
29.593023
140
0.62947
cfedaa462833ec64858b3b7ea07cb6e88e5a8fbe
3,783
py
Python
Tests/test_database.py
nas-/steam-inv-dumper
cfed99b324dd08298a6a5351e772042726cc664d
[ "Unlicense", "MIT" ]
null
null
null
Tests/test_database.py
nas-/steam-inv-dumper
cfed99b324dd08298a6a5351e772042726cc664d
[ "Unlicense", "MIT" ]
null
null
null
Tests/test_database.py
nas-/steam-inv-dumper
cfed99b324dd08298a6a5351e772042726cc664d
[ "Unlicense", "MIT" ]
null
null
null
import decimal import os from datetime import datetime from unittest import TestCase from db.db import Listing, Item, init_db TWODIGITS = decimal.Decimal('0.01') # def test_item_id_constrain(self): # item_for_db = Item(item_id='12345', market_hash_name='casekey1') # Item.query.session.add(item_f...
35.688679
97
0.620407
cfeffd41ed8561bf926ed92f85a292a0d9b2f377
112
py
Python
hub/models/__init__.py
harenlewis/api-hub
f79cd8b82e95c039269765a4542866286803a322
[ "MIT" ]
null
null
null
hub/models/__init__.py
harenlewis/api-hub
f79cd8b82e95c039269765a4542866286803a322
[ "MIT" ]
2
2020-06-05T19:41:09.000Z
2021-06-10T21:07:30.000Z
hub/models/__init__.py
harenlewis/api-hub
f79cd8b82e95c039269765a4542866286803a322
[ "MIT" ]
null
null
null
from .projects import Project from .apis import Api from .permissions import APIPermissions from .types import *
28
39
0.821429
cff1acb028a442105c7a88da1c72d65ee9945c3b
1,416
py
Python
adapter/acumos/tests/fixtures/models/example-model-listofm/example_model.py
onap/dcaegen2-platform
9e930892d28fc4a3378fad8f942c9f91cffe4698
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
adapter/acumos/tests/fixtures/models/example-model-listofm/example_model.py
onap/dcaegen2-platform
9e930892d28fc4a3378fad8f942c9f91cffe4698
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
adapter/acumos/tests/fixtures/models/example-model-listofm/example_model.py
onap/dcaegen2-platform
9e930892d28fc4a3378fad8f942c9f91cffe4698
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-10-15T15:02:20.000Z
2021-10-15T15:02:20.000Z
# ============LICENSE_START==================================================== # org.onap.dcae # ============================================================================= # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. # ====================================================================...
33.714286
80
0.552966
cff1f748809c0e3b5b185042908d7fdd45411643
14,082
py
Python
src/main/python/ftm/plot_events.py
lucb31/beam
c688da8bf824456dd476fb4cba93a499a8c4acd3
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/main/python/ftm/plot_events.py
lucb31/beam
c688da8bf824456dd476fb4cba93a499a8c4acd3
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/main/python/ftm/plot_events.py
lucb31/beam
c688da8bf824456dd476fb4cba93a499a8c4acd3
[ "BSD-3-Clause-LBNL" ]
1
2020-03-19T08:16:16.000Z
2020-03-19T08:16:16.000Z
import xml.etree.ElementTree as ET import pandas as pd import matplotlib.pyplot as plt import matplotlib.dates as mdates import datetime import tikzplotlib import numpy as np from os import path from python.ftm.charging_power_calculation import calc_avg_charging_power_numeric from python.ftm.util import seconds_to_tim...
43.732919
188
0.638475
cff604b05a37b829ebc45bdab750338b3e114a56
410
py
Python
test-grandchild-zombie.py
tsaarni/11th-init
32e28cfafbd8c12a1dc369dae54bce13a7c819e4
[ "Apache-2.0" ]
null
null
null
test-grandchild-zombie.py
tsaarni/11th-init
32e28cfafbd8c12a1dc369dae54bce13a7c819e4
[ "Apache-2.0" ]
null
null
null
test-grandchild-zombie.py
tsaarni/11th-init
32e28cfafbd8c12a1dc369dae54bce13a7c819e4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env -S python3 -u import os import time pid = os.fork() if pid != 0: print("Child pid={}".format(pid)) time.sleep(999999) else: time.sleep(1) # child forks grandchild and exits pid2 = os.fork() if pid2 != 0: print("Grandchild pid={}".format(pid2)) time.sleep(5) print("Child exits a...
19.52381
54
0.646341
cff62439bd9f68cd8b9fbda08f8270d240786404
219
py
Python
hello/views.py
CupOfJoe-L/python-docs-hello-django
cc33b187e1b34731f036aa3bbd1d48270e3e7b5d
[ "MIT" ]
null
null
null
hello/views.py
CupOfJoe-L/python-docs-hello-django
cc33b187e1b34731f036aa3bbd1d48270e3e7b5d
[ "MIT" ]
null
null
null
hello/views.py
CupOfJoe-L/python-docs-hello-django
cc33b187e1b34731f036aa3bbd1d48270e3e7b5d
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render
36.5
124
0.780822
cff6ef64731c31c3337a745a26d8620d5ecfffab
1,024
py
Python
HuberyBlog/extra_apps/django_comments/migrations/0004_auto_20190130_1520.py
SomnambulistOfChina/ChineseSomnambulist
dc6efcb4ea1bc02f8999cd78bebfd648253631a6
[ "Apache-2.0" ]
5
2019-05-21T08:26:18.000Z
2021-07-20T11:32:49.000Z
HuberyBlog/extra_apps/django_comments/migrations/0004_auto_20190130_1520.py
SomnambulistOfChina/ChineseSomnambulist
dc6efcb4ea1bc02f8999cd78bebfd648253631a6
[ "Apache-2.0" ]
null
null
null
HuberyBlog/extra_apps/django_comments/migrations/0004_auto_20190130_1520.py
SomnambulistOfChina/ChineseSomnambulist
dc6efcb4ea1bc02f8999cd78bebfd648253631a6
[ "Apache-2.0" ]
2
2019-07-20T08:35:04.000Z
2020-02-29T07:34:42.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2019-01-30 15:20 from __future__ import unicode_literals from django.db import migrations, models
29.257143
162
0.584961
cff7b4aaadc6503b4d3c0b54bed2cfd5a237b248
1,489
py
Python
inputs/stations/extract_china_station_raw.py
bearlin/tool_get_famous_scenery_station_airport_and_their_scws_tokens
210adf69118065e01d7ae50e57b7c773a1a1bd65
[ "MIT" ]
null
null
null
inputs/stations/extract_china_station_raw.py
bearlin/tool_get_famous_scenery_station_airport_and_their_scws_tokens
210adf69118065e01d7ae50e57b7c773a1a1bd65
[ "MIT" ]
null
null
null
inputs/stations/extract_china_station_raw.py
bearlin/tool_get_famous_scenery_station_airport_and_their_scws_tokens
210adf69118065e01d7ae50e57b7c773a1a1bd65
[ "MIT" ]
null
null
null
#!/usr/bin/python from sys import argv import re import codecs print "Start." script, filename = argv print "script: %r." % script print "filename: %r." % filename print "Opening the rawfile..." rawfile = codecs.open(filename, 'r', encoding='utf-8') dumpfile = codecs.open(filename + ".dump", 'w', encoding='utf-8') ...
26.122807
77
0.661518
cff7b999b160053abb8253ada7bfc9377bae99f4
706
py
Python
test/test_1020.py
ralphribeiro/uri-projecteuler
7151d86e014aea9c56026cc88f50b4e940117dd8
[ "MIT" ]
null
null
null
test/test_1020.py
ralphribeiro/uri-projecteuler
7151d86e014aea9c56026cc88f50b4e940117dd8
[ "MIT" ]
null
null
null
test/test_1020.py
ralphribeiro/uri-projecteuler
7151d86e014aea9c56026cc88f50b4e940117dd8
[ "MIT" ]
null
null
null
from unittest import TestCase from exercicios.ex1020 import calcula_idade_em_dias
28.24
66
0.6983
cff8bbd354a25a3a52b9aff9eeab5db75ff581a6
385
py
Python
operators/keycloak-operator/python/pulumi_pulumi_kubernetes_crds_operators_keycloak_operator/keycloak/v1alpha1/__init__.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
operators/keycloak-operator/python/pulumi_pulumi_kubernetes_crds_operators_keycloak_operator/keycloak/v1alpha1/__init__.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
2
2020-09-18T17:12:23.000Z
2020-12-30T19:40:56.000Z
operators/keycloak-operator/python/pulumi_pulumi_kubernetes_crds_operators_keycloak_operator/keycloak/v1alpha1/__init__.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .Keycloak import * from .KeycloakBackup import * from .KeycloakClient import * from .KeycloakRealm import * from .Ke...
29.615385
80
0.735065
cff9f88274481686df449003ce13d6828ce565ea
72
py
Python
atlas/foundations_events/src/integration/__init__.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_events/src/integration/__init__.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_events/src/integration/__init__.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
import foundations from integration.test_consumers import TestConsumers
24
52
0.902778
cffe84fc8998209b2c270a0a862cd75d59cdea30
19,967
py
Python
APMSSO_Ansible/plugins/callback/apmsso_callback_log.py
CA-APM/infra-agent-automation
172bc08ba9d911e904f1bf61bd7e5a6cecbc58b1
[ "Apache-2.0" ]
null
null
null
APMSSO_Ansible/plugins/callback/apmsso_callback_log.py
CA-APM/infra-agent-automation
172bc08ba9d911e904f1bf61bd7e5a6cecbc58b1
[ "Apache-2.0" ]
null
null
null
APMSSO_Ansible/plugins/callback/apmsso_callback_log.py
CA-APM/infra-agent-automation
172bc08ba9d911e904f1bf61bd7e5a6cecbc58b1
[ "Apache-2.0" ]
1
2020-10-27T11:21:47.000Z
2020-10-27T11:21:47.000Z
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' callback: default type:...
44.272727
227
0.609355
320088f4f7310c529dfb38713c7c2d70334122c3
4,634
py
Python
research/deeplab/datasets/add_voc2012_aug_dataset.py
dohai90/models
ba13f98f5cfbf2fcac5605fcf34be3183602ed98
[ "Apache-2.0" ]
null
null
null
research/deeplab/datasets/add_voc2012_aug_dataset.py
dohai90/models
ba13f98f5cfbf2fcac5605fcf34be3183602ed98
[ "Apache-2.0" ]
null
null
null
research/deeplab/datasets/add_voc2012_aug_dataset.py
dohai90/models
ba13f98f5cfbf2fcac5605fcf34be3183602ed98
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under the ...
35.646154
112
0.628615
32009a1006b690062c5d23b1c5164be464ba2e41
196
py
Python
customize/urls.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
7
2016-02-21T17:25:54.000Z
2021-10-09T19:36:10.000Z
customize/urls.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
19
2020-02-11T23:55:01.000Z
2022-03-31T18:11:56.000Z
customize/urls.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
3
2016-01-20T22:34:58.000Z
2020-09-16T07:45:42.000Z
from django.urls import path from . import views as v app_name = 'customize' # urlpatterns = ( # path('view/', v.view, name='view'), # # path('edit/<int:pk>/', v.edit, name='edit'), # )
19.6
52
0.596939
320404224e0824be939a5a70677d023b0f162d69
12,147
py
Python
year1/python/coursework_(anagrams)/efficiency.py
OthmanEmpire/university
3405e1463e82ca2e6f7deef05c3b1ba0ab9c1278
[ "MIT" ]
1
2016-05-21T17:23:50.000Z
2016-05-21T17:23:50.000Z
year1/python/coursework_(anagrams)/efficiency.py
OthmanEmpire/university_code
3405e1463e82ca2e6f7deef05c3b1ba0ab9c1278
[ "MIT" ]
null
null
null
year1/python/coursework_(anagrams)/efficiency.py
OthmanEmpire/university_code
3405e1463e82ca2e6f7deef05c3b1ba0ab9c1278
[ "MIT" ]
null
null
null
##### Student name: Othman ALI KHAN ##### Student ID: 200 684 094 ### This program has a series of functions/procedures that produce anagrams. ### The final procedure/function of the program reads from a text file, extracts ### all student names and then produces a one word and two word anagrams. # This function ta...
29.34058
80
0.618671
32054eeae46e4ba00e86c6648fd69eab7186bf01
1,149
py
Python
viewwork/management/commands/vw_namespace.py
pikhovkin/django-viewwork
65597f599ecbd0def37b04eae77017fb8f5dfbe6
[ "MIT" ]
4
2021-12-12T03:56:05.000Z
2022-01-10T08:54:31.000Z
viewwork/management/commands/vw_namespace.py
pikhovkin/django-viewwork
65597f599ecbd0def37b04eae77017fb8f5dfbe6
[ "MIT" ]
null
null
null
viewwork/management/commands/vw_namespace.py
pikhovkin/django-viewwork
65597f599ecbd0def37b04eae77017fb8f5dfbe6
[ "MIT" ]
null
null
null
import sys from django.apps import apps from django.core.management import BaseCommand from viewwork import BaseViewWork from viewwork.models import Menu
32.828571
90
0.615318
32057b2f2625521defc8d8e72d5b52ef1fd8a76a
464
py
Python
validator/setup.py
acmiyaguchi/mozschema-validator
04d265bb9359107580f8726bce5102b14a68f156
[ "MIT" ]
null
null
null
validator/setup.py
acmiyaguchi/mozschema-validator
04d265bb9359107580f8726bce5102b14a68f156
[ "MIT" ]
2
2018-04-13T20:54:16.000Z
2018-05-01T01:11:32.000Z
validator/setup.py
acmiyaguchi/schema-validator
04d265bb9359107580f8726bce5102b14a68f156
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from setuptools import setup setup( name='validator', version='0.1.0', author='Anthony Miyaguchi', author_email='amiyaguchi@mozilla.com', description='Spark schema validation job', url='https://github.com/acmiyaguchi/schema-validator', install_requir...
22.095238
58
0.637931
320a76d5189d903f640cc449f9133bd6edbaa15e
2,846
py
Python
pythia/opal/weaver/BodyMill.py
willic3/pythia
2657b95a0c07fd3c914ab6b5f7ec89a8edba004c
[ "BSD-3-Clause" ]
1
2015-11-30T08:01:39.000Z
2015-11-30T08:01:39.000Z
pythia/opal/weaver/BodyMill.py
willic3/pythia
2657b95a0c07fd3c914ab6b5f7ec89a8edba004c
[ "BSD-3-Clause" ]
27
2018-05-24T18:31:25.000Z
2021-10-16T03:57:52.000Z
pythia/opal/weaver/BodyMill.py
willic3/pythia
2657b95a0c07fd3c914ab6b5f7ec89a8edba004c
[ "BSD-3-Clause" ]
7
2019-07-19T02:30:56.000Z
2021-06-02T22:00:01.000Z
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2005 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~...
23.915966
80
0.403725
320aa58bd216c32664f39ff0e59533daf06dc918
3,156
py
Python
BuildLex/LexiconBase.py
viitormiiguel/AnalysisFinancial
21d19c4eb200655ffd8605d4c38ab280a4552384
[ "MIT" ]
null
null
null
BuildLex/LexiconBase.py
viitormiiguel/AnalysisFinancial
21d19c4eb200655ffd8605d4c38ab280a4552384
[ "MIT" ]
null
null
null
BuildLex/LexiconBase.py
viitormiiguel/AnalysisFinancial
21d19c4eb200655ffd8605d4c38ab280a4552384
[ "MIT" ]
2
2020-04-30T18:47:05.000Z
2021-05-24T15:07:41.000Z
import sys import codecs import nltk from nltk.corpus import stopwords from nltk import pos_tag, word_tokenize import csv import datetime from collections import Counter import re now = datetime.datetime.now() today = now.strftime("%Y-%m-%d") dTrading = 'C:/Users/vitor/Documents/GetDataset/TradingView/'...
31.247525
77
0.528517
320ad48a9ce114d8bdd4b71a46c677d11ec86fc2
1,826
py
Python
kay/generics/__init__.py
Letractively/kay-framework
a4cfabe3497e13c3785e5ec381b9cff11a378df3
[ "Apache-2.0", "BSD-3-Clause" ]
1
2015-11-05T08:30:09.000Z
2015-11-05T08:30:09.000Z
kay/generics/__init__.py
ianlewis/kay
1bf28487dc2a273eaa44d442aec8baa6453240b7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
kay/generics/__init__.py
ianlewis/kay
1bf28487dc2a273eaa44d442aec8baa6453240b7
[ "Apache-2.0", "BSD-3-Clause" ]
1
2016-05-23T16:30:15.000Z
2016-05-23T16:30:15.000Z
# -*- coding: utf-8 -*- """ Kay generics. :Copyright: (c) 2009 Takashi Matsuo <tmatsuo@candit.jp> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.exceptions import NotAuthorized OP_LIST = 'list' OP_SHOW = 'show' OP_CREATE = 'create' OP_UPDATE = 'update' OP_DELETE = 'delete' # presets...
29.934426
77
0.66046
320d00ea94241ab31bfc65e233e956efb1387ef6
3,527
py
Python
main.py
engelke/google-signin-demo
81b34a57c82d651e7a44d2f9acc7c36f27abaf07
[ "Apache-2.0" ]
3
2020-08-26T18:29:19.000Z
2021-11-26T21:14:34.000Z
main.py
engelke/google-signin-demo
81b34a57c82d651e7a44d2f9acc7c36f27abaf07
[ "Apache-2.0" ]
1
2020-08-26T19:00:40.000Z
2020-08-26T19:00:40.000Z
main.py
engelke/google-signin-demo
81b34a57c82d651e7a44d2f9acc7c36f27abaf07
[ "Apache-2.0" ]
null
null
null
# # This is a minimal server-side web application that authenticates visitors # using Google Sign-in. # # See the README.md and LICENSE.md files for the purpose of this code. # # ENVIRONMENT VARIABLES YOU MUST SET # # The following values must be provided in environment variables for Google # Sign-in to work. # # The...
34.242718
78
0.695775
320ef756777e5acb69752b571d8d9c61238ae8e8
422
py
Python
examples/sum_sum_plus_one_lt.py
uta8a/Jikka
6cc465a9c233bea91ad149dadd0a8a7cd1a223eb
[ "Apache-2.0" ]
139
2019-07-19T15:09:34.000Z
2022-03-10T06:26:04.000Z
examples/sum_sum_plus_one_lt.py
uta8a/Jikka
6cc465a9c233bea91ad149dadd0a8a7cd1a223eb
[ "Apache-2.0" ]
102
2019-07-19T16:49:08.000Z
2021-09-26T14:45:32.000Z
examples/sum_sum_plus_one_lt.py
uta8a/Jikka
6cc465a9c233bea91ad149dadd0a8a7cd1a223eb
[ "Apache-2.0" ]
11
2019-10-17T05:46:10.000Z
2022-02-27T14:05:19.000Z
# https://judge.kimiyuki.net/problem/sum-sum-plus-one-lt from typing import * if __name__ == "__main__": main()
17.583333
56
0.521327
3210ad0eb9f3c039c04a54147643c60d613ffab0
429
py
Python
tests/mocks.py
Mahir-Sparkess/django-haystack-elasticsearch
dd47f0e9c492908d4cc090ad4377fe7fc5e5efb8
[ "BSD-3-Clause" ]
25
2016-12-29T14:08:00.000Z
2019-03-08T06:41:02.000Z
tests/mocks.py
Mahir-Sparkess/django-haystack-elasticsearch
dd47f0e9c492908d4cc090ad4377fe7fc5e5efb8
[ "BSD-3-Clause" ]
3
2017-05-02T14:55:31.000Z
2021-11-15T17:47:04.000Z
tests/mocks.py
Mahir-Sparkess/django-haystack-elasticsearch
dd47f0e9c492908d4cc090ad4377fe7fc5e5efb8
[ "BSD-3-Clause" ]
14
2017-01-12T03:33:43.000Z
2021-05-10T04:39:37.000Z
# encoding: utf-8 from __future__ import absolute_import, division, print_function, unicode_literals from django.apps import apps from haystack.models import SearchResult
33
90
0.762238
32112170e06e9bed0804a0e97eda8789d22e6e36
164
py
Python
Codewars/HighestScoringWord.py
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
Codewars/HighestScoringWord.py
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
Codewars/HighestScoringWord.py
SelvorWhim/competitive
b9daaf21920d6f7669dc0c525e903949f4e33b62
[ "Unlicense" ]
null
null
null
oa = ord('a')
18.222222
57
0.615854
32123a8dc6e051f2c7fb4618cac502b6d5f56cc8
1,520
py
Python
src/utils/boolmask.py
r39ashmi/LastMileRoutingResearchChallenge
529fd68c69393501e0aedc55e957f927608eb393
[ "MIT" ]
null
null
null
src/utils/boolmask.py
r39ashmi/LastMileRoutingResearchChallenge
529fd68c69393501e0aedc55e957f927608eb393
[ "MIT" ]
null
null
null
src/utils/boolmask.py
r39ashmi/LastMileRoutingResearchChallenge
529fd68c69393501e0aedc55e957f927608eb393
[ "MIT" ]
1
2022-02-06T07:27:49.000Z
2022-02-06T07:27:49.000Z
import torch def mask_long_scatter(mask, values, check_unset=True): """ Sets values in mask in dimension -1 with arbitrary batch dimensions If values contains -1, nothing is set Note: does not work for setting multiple values at once (like normal scatter) """ assert mask.size()[:-1] == valu...
40
131
0.621711
32147d157b7f67d07b64ae72daa2b900f0c45344
1,401
py
Python
w20data.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
w20data.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
w20data.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
import fppy
28.591837
60
0.511777
3215f19ecc641f982700a40585e4986b5ee1a928
467
py
Python
tests/script/tavern_chars.py
ufosc/MuddySwamp
2e28f9db1f0f4e1c4aafccdf7f58bf2a22b82366
[ "MIT" ]
10
2018-10-14T00:29:27.000Z
2020-05-02T23:59:30.000Z
tests/script/tavern_chars.py
ufosc/MuddySwamp
2e28f9db1f0f4e1c4aafccdf7f58bf2a22b82366
[ "MIT" ]
36
2018-06-13T05:48:10.000Z
2020-02-05T18:51:52.000Z
tests/script/tavern_chars.py
ufosc/MuddySwamp
2e28f9db1f0f4e1c4aafccdf7f58bf2a22b82366
[ "MIT" ]
8
2018-08-30T03:13:13.000Z
2020-05-15T21:42:52.000Z
"""a few CharacterClasses for testing the 'find' method (see save 'tavern.yaml')""" from swampymud.character import Character
24.578947
58
0.700214
32164d5e1796ce8618580e0c6f7288cde383f143
256
py
Python
iptfe/blog/urls.py
I-prefer-the-front-end/I-prefer-the-front-end
62e3c3e6b40ea350104bde5bd99bc88065506234
[ "MIT" ]
null
null
null
iptfe/blog/urls.py
I-prefer-the-front-end/I-prefer-the-front-end
62e3c3e6b40ea350104bde5bd99bc88065506234
[ "MIT" ]
null
null
null
iptfe/blog/urls.py
I-prefer-the-front-end/I-prefer-the-front-end
62e3c3e6b40ea350104bde5bd99bc88065506234
[ "MIT" ]
null
null
null
from django.conf.urls import url from blog import views urlpatterns = [ url(r'^archive/$', views.archive, name='archive'), url(r'^comment/$', views.comment, name='comment'), url(r'^(?P<slug>[A-Za-z0-9_\-.]+)?/?$', views.post, name='post'), ]
25.6
69
0.617188
32165aca27fde8f36646a522b8ab5e04657a70e7
10,473
py
Python
gui/qt_ui/OptimizationQT.py
victorgabr/pps
dfe3fae64fd4dedde85204643f9c797c0373f96c
[ "BSD-3-Clause" ]
7
2018-11-18T07:11:05.000Z
2021-05-06T21:53:40.000Z
gui/qt_ui/OptimizationQT.py
victorgabr/pps
dfe3fae64fd4dedde85204643f9c797c0373f96c
[ "BSD-3-Clause" ]
9
2019-09-23T16:34:09.000Z
2020-05-26T18:49:43.000Z
gui/qt_ui/OptimizationQT.py
victorgabr/pps
dfe3fae64fd4dedde85204643f9c797c0373f96c
[ "BSD-3-Clause" ]
2
2019-04-18T14:34:31.000Z
2019-06-19T19:34:33.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\Victor\Dropbox\DFR\film2dose\qt_ui\evo_widget.ui' # # Created: Tue Sep 29 14:54:23 2015 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui ...
64.648148
187
0.584264
3218111e5ba3d23ed7e14e3bec03d4945cc872d0
713
py
Python
bin_env/MapperData.py
ArChiiii/TSP_DRL_PtrNet
8218a508c563d9641b341dff5a6241d90e4e031b
[ "MIT" ]
null
null
null
bin_env/MapperData.py
ArChiiii/TSP_DRL_PtrNet
8218a508c563d9641b341dff5a6241d90e4e031b
[ "MIT" ]
null
null
null
bin_env/MapperData.py
ArChiiii/TSP_DRL_PtrNet
8218a508c563d9641b341dff5a6241d90e4e031b
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List from enum import Enum
16.581395
35
0.730715
32187f107d12a45164fecf3944eeebf9791b84ea
894
py
Python
apps/cursos/urls.py
ravellys/drf-geek-university
bc4d1c847556d9c5518e30aad16b2f58fb81f437
[ "MIT" ]
null
null
null
apps/cursos/urls.py
ravellys/drf-geek-university
bc4d1c847556d9c5518e30aad16b2f58fb81f437
[ "MIT" ]
null
null
null
apps/cursos/urls.py
ravellys/drf-geek-university
bc4d1c847556d9c5518e30aad16b2f58fb81f437
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework.routers import SimpleRouter from apps.cursos.api.views_genericsview import CursoAPIView, CursosAPIView, AvaliacaoAPIView, AvaliacoesAPIView from apps.cursos.api.viewsets import CursoViewSet, AvaliacaoViewSet router = SimpleRouter() router.register('cursos', CursoViewS...
40.636364
117
0.759508
32192f629351c3c68beb0f689c9a0a85ec1e8711
337
py
Python
jrdb/models/managers.py
hankehly/JRDB
ad470e867d204ea975f7b98b57881d72fcfb41c7
[ "MIT" ]
1
2022-02-19T14:44:34.000Z
2022-02-19T14:44:34.000Z
jrdb/models/managers.py
hankehly/JRDB
ad470e867d204ea975f7b98b57881d72fcfb41c7
[ "MIT" ]
null
null
null
jrdb/models/managers.py
hankehly/JRDB
ad470e867d204ea975f7b98b57881d72fcfb41c7
[ "MIT" ]
1
2022-02-19T14:46:40.000Z
2022-02-19T14:46:40.000Z
import pandas as pd from django.db import models from django.db.models.query import ModelIterable
28.083333
86
0.718101
3219b2872136a395e8a2e3e3549ad44159209de5
2,661
py
Python
scripts/variability_study_run.py
cshunk/covidsim
9776efb0726af4f59b83fe6afcc9b7e6b9e967aa
[ "BSD-2-Clause" ]
null
null
null
scripts/variability_study_run.py
cshunk/covidsim
9776efb0726af4f59b83fe6afcc9b7e6b9e967aa
[ "BSD-2-Clause" ]
null
null
null
scripts/variability_study_run.py
cshunk/covidsim
9776efb0726af4f59b83fe6afcc9b7e6b9e967aa
[ "BSD-2-Clause" ]
1
2021-03-08T16:48:38.000Z
2021-03-08T16:48:38.000Z
""" Runs the susceptibility variability study. Modify the params variable to set the parameters of the study. Parameters: pInfect: Rate of infection pRemove: Rate of removal pInfected: Starting percent of population that is infected population: Approximate popul...
40.318182
119
0.706877
321c81c85a8740bad1290ae090219e2ef4e2ca70
9,663
py
Python
hpo/helpers.py
ekremozturk/ZAP-few-shot
1e8ffb3ce7d0ab7443fe46c64b79ff9b3555c73a
[ "MIT" ]
null
null
null
hpo/helpers.py
ekremozturk/ZAP-few-shot
1e8ffb3ce7d0ab7443fe46c64b79ff9b3555c73a
[ "MIT" ]
null
null
null
hpo/helpers.py
ekremozturk/ZAP-few-shot
1e8ffb3ce7d0ab7443fe46c64b79ff9b3555c73a
[ "MIT" ]
null
null
null
import json import torch import torch.nn as nn import numpy as np import torchvision from torchvision import models, transforms import ConfigSpace as CS import ConfigSpace.hyperparameters as CSH from efficientnet_pytorch import EfficientNet from PIL import Image from trivialaugment import aug_lib np.random.seed(42) to...
41.119149
145
0.682707
321e00ff13e52ae86d4f403e299ca5c116ffd062
100
py
Python
doc/examples/example04.py
vinceatbluelabs/config_resolver
6de95833d037629405c649ba8dbc6a9ced064393
[ "MIT" ]
1
2015-11-05T18:31:54.000Z
2015-11-05T18:31:54.000Z
doc/examples/example04.py
vinceatbluelabs/config_resolver
6de95833d037629405c649ba8dbc6a9ced064393
[ "MIT" ]
63
2015-01-27T13:15:42.000Z
2021-06-07T06:50:59.000Z
doc/examples/example04.py
vinceatbluelabs/config_resolver
6de95833d037629405c649ba8dbc6a9ced064393
[ "MIT" ]
1
2020-05-12T18:12:03.000Z
2020-05-12T18:12:03.000Z
from config_resolver import get_config cfg = get_config("bird_feeder", "acmecorp") print(cfg.meta)
20
43
0.79
321e0a7e2a6361338f09693d7eb99d81ee18c568
4,372
py
Python
src/build_test_xll.py
thatcr/cffi-xll
70c20dc470ffc8944a37ad73456198a162662b2f
[ "MIT" ]
null
null
null
src/build_test_xll.py
thatcr/cffi-xll
70c20dc470ffc8944a37ad73456198a162662b2f
[ "MIT" ]
null
null
null
src/build_test_xll.py
thatcr/cffi-xll
70c20dc470ffc8944a37ad73456198a162662b2f
[ "MIT" ]
null
null
null
from cffi import FFI from pathlib import Path sdk_dir = (Path(__file__).parent / '..' / 'ExcelXllSdk' ).resolve() ffi = FFI() # note need cffi 1.5.1 in order to support __stdcall ffi.embedding_api(r''' extern int __stdcall xlAutoOpen(void); extern int __stdcall xlAutoClose(void); ''' ) # should we define...
30.151724
93
0.667887
3222fcb5fddaddea2720f4e9d4db836b8e2ac48a
262
py
Python
src/third_party/v8/js2c-wrap.py
morsvolia/mongo
8cbe89efab77d70ac653d20b693cffe15a47acea
[ "Apache-2.0" ]
324
2015-01-01T14:56:10.000Z
2022-03-08T04:52:37.000Z
src/third_party/v8/js2c-wrap.py
morsvolia/mongo
8cbe89efab77d70ac653d20b693cffe15a47acea
[ "Apache-2.0" ]
38
2015-01-31T03:57:16.000Z
2019-04-21T03:30:53.000Z
src/third_party/v8/js2c-wrap.py
morsvolia/mongo
8cbe89efab77d70ac653d20b693cffe15a47acea
[ "Apache-2.0" ]
60
2015-01-14T14:19:41.000Z
2021-02-10T21:54:12.000Z
#!/usr/bin/python2 import sys js2c_dir = sys.argv[1] sys.path.append(js2c_dir) import js2c srcs = sys.argv[2] natives = sys.argv[3].split(',') type = sys.argv[4] compression = sys.argv[5] js2c.JS2C(natives, [srcs], {'TYPE': type, 'COMPRESSION': compression})
18.714286
70
0.69084
5c4e75d8e5dee686013162ab6550991513b5daf3
3,767
py
Python
starfish/core/morphology/Filter/map.py
haoxusci/starfish
d7bd856024c75f2ce41504406f2a663566c3814b
[ "MIT" ]
164
2018-03-21T21:52:56.000Z
2022-03-23T17:14:39.000Z
starfish/core/morphology/Filter/map.py
lbgbox/starfish
0e879d995d5c49b6f5a842e201e3be04c91afc7e
[ "MIT" ]
1,728
2018-03-15T23:16:09.000Z
2022-03-12T00:09:18.000Z
starfish/core/morphology/Filter/map.py
lbgbox/starfish
0e879d995d5c49b6f5a842e201e3be04c91afc7e
[ "MIT" ]
66
2018-03-25T17:21:15.000Z
2022-01-16T09:17:11.000Z
import warnings from typing import Optional, Union from starfish.core.morphology.binary_mask import BinaryMaskCollection from starfish.core.types import FunctionSource, FunctionSourceBundle from ._base import FilterAlgorithm
37.67
99
0.620388
5c4f330b1eecb840bd796102bfa5afeb13757022
410
py
Python
aula2/exercicio1.py
ArseniumGX/bluemer-modulo1-python
2f7c69252a9a86cc573c192d1d9685b0c20466f8
[ "MIT" ]
null
null
null
aula2/exercicio1.py
ArseniumGX/bluemer-modulo1-python
2f7c69252a9a86cc573c192d1d9685b0c20466f8
[ "MIT" ]
null
null
null
aula2/exercicio1.py
ArseniumGX/bluemer-modulo1-python
2f7c69252a9a86cc573c192d1d9685b0c20466f8
[ "MIT" ]
null
null
null
""" 01 E os 10% do garom?** Defina uma varivel para o valor de uma refeio que custou R$ 42,54; Defina uma varivel para o valor da taxa de servio que de 10%; Defina uma varivel que calcula o valor total da conta e exiba-o no console com essa formatao: R$ XXXX.XX. """ valor = 42.54 taxa = 1...
22.777778
88
0.65122
5c4fcde5d930a8c52566bd9877af8e54344d9963
9,969
py
Python
CAAPR/CAAPR_AstroMagic/PTS/pts/do/modeling/seba/check_heating.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
7
2016-05-20T21:56:39.000Z
2022-02-07T21:09:48.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/do/modeling/seba/check_heating.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2019-03-21T16:10:04.000Z
2019-03-22T17:21:56.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/do/modeling/seba/check_heating.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2020-05-19T16:17:17.000Z
2020-05-19T16:17:17.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** Astronomical Observatory, Ghent University ** # ***************************************************************** ## ...
35.476868
121
0.641388
5c518a7aefaa27641c2404d80d6ad365a3bb2bb2
40,140
py
Python
Clock/PyQtPiClock.py
tonymorris/PiClock
d5a1b96eaef012834844b4c34e2344ec5671031b
[ "MIT" ]
2
2017-07-03T16:13:27.000Z
2017-07-03T16:13:49.000Z
Clock/PyQtPiClock.py
tonymorris/PiClock
d5a1b96eaef012834844b4c34e2344ec5671031b
[ "MIT" ]
null
null
null
Clock/PyQtPiClock.py
tonymorris/PiClock
d5a1b96eaef012834844b4c34e2344ec5671031b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # NOQA import sys import os import platform import signal import datetime import time import json import locale import random import re from PyQt4 import QtGui, QtCore, QtNetwork from PyQt4.QtGui import QPixmap, QMovie, QBrush, QColor, QPainter from PyQt4.QtCore import QUrl fro...
34.33704
150
0.555605
5c540f4414022745fd23cc4a4a838f528acc04c4
4,413
py
Python
Datasets/paddy_millet_data.py
kabbas570/CED-Net-Crops-and-Weeds-Segmentation-for-Smart-Farming-Using
87a8d231625adcdce6168a25ee146bc74f22ba5d
[ "CC-BY-4.0" ]
null
null
null
Datasets/paddy_millet_data.py
kabbas570/CED-Net-Crops-and-Weeds-Segmentation-for-Smart-Farming-Using
87a8d231625adcdce6168a25ee146bc74f22ba5d
[ "CC-BY-4.0" ]
null
null
null
Datasets/paddy_millet_data.py
kabbas570/CED-Net-Crops-and-Weeds-Segmentation-for-Smart-Farming-Using
87a8d231625adcdce6168a25ee146bc74f22ba5d
[ "CC-BY-4.0" ]
1
2021-03-29T01:49:49.000Z
2021-03-29T01:49:49.000Z
import cv2 import glob import numpy as np import matplotlib.pyplot as plt mask_id = [] for infile in sorted(glob.glob('/home/user01/data_ssd/Abbas/PAPER/Datasets/Paddy_Millet/train/masks/*.png')): # path to masks of train data mask_id.append(infile) image_id = [] for infile in sorted(glob.glob('/home/user01/data_...
32.211679
148
0.62044
5c54b1071331d0cf5f7b74bd77dc54e11ba98a33
4,224
py
Python
procyclist/dataset.py
vigosan/procyclist_performance
dafde3405b2908254649efb16bf771f107033bfb
[ "MIT" ]
11
2018-09-03T10:38:14.000Z
2021-04-21T23:51:32.000Z
procyclist/dataset.py
vigosan/procyclist_performance
dafde3405b2908254649efb16bf771f107033bfb
[ "MIT" ]
10
2018-11-28T20:35:54.000Z
2021-05-24T09:01:18.000Z
procyclist/dataset.py
agrinh/procyclist_performance
5f53ac72ce8c22d39d96a630c4cd2a91d80c7f7a
[ "MIT" ]
6
2018-11-13T12:12:31.000Z
2022-01-06T19:13:01.000Z
import configparser import glob import inspect import hashlib import os import numpy as np from procyclist.sessions import Sessions from procyclist.utilities import resample
33.792
79
0.622869
5c5559b78579f373c0dde96fd743f3cb2ca083e9
87
py
Python
src/sasctl/utils/pyml2ds/connectors/ensembles/__init__.py
jameskochubasas/python-sasctl
65107c2d4355390ca09e83eb89167c86506c9926
[ "Apache-2.0" ]
30
2019-07-12T00:18:21.000Z
2022-03-18T08:36:35.000Z
src/sasctl/utils/pyml2ds/connectors/ensembles/__init__.py
jameskochubasas/python-sasctl
65107c2d4355390ca09e83eb89167c86506c9926
[ "Apache-2.0" ]
89
2019-07-12T20:46:46.000Z
2022-03-29T16:16:46.000Z
src/sasctl/utils/pyml2ds/connectors/ensembles/__init__.py
jameskochubasas/python-sasctl
65107c2d4355390ca09e83eb89167c86506c9926
[ "Apache-2.0" ]
41
2019-07-11T15:08:55.000Z
2022-01-10T05:30:50.000Z
from .xgb import XgbParser from .lgb import LightgbmParser from .pmml import PmmlParser
29
31
0.83908
5c561f038b7ee0bf311b720a2387e7dd83031ea2
1,107
py
Python
gene_grouper.py
kpj/DictyPy
1535356081018e5c545f988b79395de802604a38
[ "MIT" ]
null
null
null
gene_grouper.py
kpj/DictyPy
1535356081018e5c545f988b79395de802604a38
[ "MIT" ]
null
null
null
gene_grouper.py
kpj/DictyPy
1535356081018e5c545f988b79395de802604a38
[ "MIT" ]
null
null
null
import collections, json
35.709677
130
0.63505
5c566b7fdfac11b53ad2a9603b239b7a26b57b41
669
py
Python
client/modules/face_recognizer/loading_bar.py
m0re4u/SmartLight-
d5d0ede51138b12eab5aa41c4ae68198c0314f49
[ "MIT" ]
null
null
null
client/modules/face_recognizer/loading_bar.py
m0re4u/SmartLight-
d5d0ede51138b12eab5aa41c4ae68198c0314f49
[ "MIT" ]
1
2017-03-03T14:07:23.000Z
2017-03-08T12:40:46.000Z
client/modules/face_recognizer/loading_bar.py
m0re4u/SmartLight
d5d0ede51138b12eab5aa41c4ae68198c0314f49
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys # Print iterations progress def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100): """ Call in a loop to create terminal progress bar """ str_format = "{0:." + str(decimals) + "f}" percents = str_format.format(...
27.875
70
0.584454
5c574926b24a4140ef94447c8311157dec0cd1b6
6,759
py
Python
src/hub/dataload/uploader.py
erikyao/myvariant.info
a4eaaca7ab6c069199f8942d5afae2dece908147
[ "Apache-2.0" ]
39
2017-07-01T22:34:39.000Z
2022-03-15T22:25:59.000Z
src/hub/dataload/uploader.py
erikyao/myvariant.info
a4eaaca7ab6c069199f8942d5afae2dece908147
[ "Apache-2.0" ]
105
2017-06-28T17:26:06.000Z
2022-03-17T17:49:53.000Z
src/hub/dataload/uploader.py
erikyao/myvariant.info
a4eaaca7ab6c069199f8942d5afae2dece908147
[ "Apache-2.0" ]
14
2017-06-12T18:29:36.000Z
2021-03-18T15:51:27.000Z
import glob, os, math, asyncio from functools import partial import biothings.hub.dataload.uploader as uploader from biothings.hub.dataload.storage import UpsertStorage from biothings.utils.mongo import doc_feeder, id_feeder import biothings.utils.mongo as mongo from biothings.utils.common import iter_n from biothings...
47.598592
127
0.591212
5c58a0d52b8cef211264dbb50ca9899b22373ef3
632
py
Python
invenio_records_resources/services/records/params/__init__.py
jrcastro2/invenio-records-resources
a9760846080bfa1da4ed55c6f5b1f7bb96acd0b5
[ "MIT" ]
null
null
null
invenio_records_resources/services/records/params/__init__.py
jrcastro2/invenio-records-resources
a9760846080bfa1da4ed55c6f5b1f7bb96acd0b5
[ "MIT" ]
null
null
null
invenio_records_resources/services/records/params/__init__.py
jrcastro2/invenio-records-resources
a9760846080bfa1da4ed55c6f5b1f7bb96acd0b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Invenio-Records-Resources is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. """Search parameter interpreter API.""" from .base import ParamInterpreter from .facets import Facets...
23.407407
76
0.727848
5c5a27b354be3b48b969b146ca8840b1b25355c8
3,770
py
Python
tests/actions/action_config_validator_test.py
mcunha/forseti-security
cbf25f6173c1a25d4e43a9738eca73f927361cb8
[ "Apache-2.0" ]
null
null
null
tests/actions/action_config_validator_test.py
mcunha/forseti-security
cbf25f6173c1a25d4e43a9738eca73f927361cb8
[ "Apache-2.0" ]
null
null
null
tests/actions/action_config_validator_test.py
mcunha/forseti-security
cbf25f6173c1a25d4e43a9738eca73f927361cb8
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Forseti Security Authors. 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 ap...
35.904762
79
0.744562
5c5b855dafbecfa12d8f6ff9bfebe6eb2b90cd1b
710
py
Python
PublisherAzureTestsResults/variables.py
ismailktami/robotframework-azuretestplans-results
261f936a24121a90cf0a778a61b31bb01f490d41
[ "MIT" ]
1
2022-03-18T13:30:34.000Z
2022-03-18T13:30:34.000Z
PublisherAzureTestsResults/variables.py
ismailktami/robotframework-azuretestplans-results
261f936a24121a90cf0a778a61b31bb01f490d41
[ "MIT" ]
null
null
null
PublisherAzureTestsResults/variables.py
ismailktami/robotframework-azuretestplans-results
261f936a24121a90cf0a778a61b31bb01f490d41
[ "MIT" ]
null
null
null
from robot.libraries.BuiltIn import BuiltIn import json
47.333333
144
0.691549
5c5c213568b43978a2a464caf11808d69aa7c3fb
50
py
Python
run.py
NeeharikaESai/NSP
6db6243cbcb58d90e649603be92f6a038cd3c279
[ "MIT" ]
null
null
null
run.py
NeeharikaESai/NSP
6db6243cbcb58d90e649603be92f6a038cd3c279
[ "MIT" ]
8
2020-06-05T18:39:09.000Z
2022-03-11T23:26:32.000Z
run.py
NSP-Community/NSP-Production
329af474892b911f2025a920fdb3ab390bb6de81
[ "MIT" ]
1
2019-10-27T20:11:58.000Z
2019-10-27T20:11:58.000Z
import os os.system("python manage.py runserver")
16.666667
39
0.78
5c5cf1c2f2bcf20985787c9b1a6a054234532e3c
4,651
py
Python
floodviz/linked_data_utils.py
USGS-VIZLAB/active-flood-viz
fff04a5703967969aa8d01a5f67fe95772ea4aec
[ "CC0-1.0" ]
3
2021-04-16T04:24:40.000Z
2022-02-11T22:17:14.000Z
floodviz/linked_data_utils.py
USGS-VIZLAB/active-flood-viz
fff04a5703967969aa8d01a5f67fe95772ea4aec
[ "CC0-1.0" ]
22
2017-06-19T15:05:08.000Z
2022-02-14T22:15:04.000Z
floodviz/linked_data_utils.py
USGS-VIZLAB/active-flood-viz
fff04a5703967969aa8d01a5f67fe95772ea4aec
[ "CC0-1.0" ]
8
2017-06-19T13:59:23.000Z
2017-07-10T20:40:10.000Z
from datetime import date
29.624204
104
0.488927
5c5e26cc30ecbbb4eb894bfe41f3cdb6a7003f66
9,012
py
Python
aib/init/tables/adm_tax_cats.py
FrankMillman/AccInABox
fc4cd26bf525c1bbe8e541d9339c69b0adbad546
[ "MIT" ]
3
2015-02-25T19:44:43.000Z
2020-12-18T05:49:09.000Z
aib/init/tables/adm_tax_cats.py
FrankMillman/AccInABox
fc4cd26bf525c1bbe8e541d9339c69b0adbad546
[ "MIT" ]
1
2019-11-20T12:31:34.000Z
2019-11-20T12:31:35.000Z
aib/init/tables/adm_tax_cats.py
FrankMillman/AccInABox
fc4cd26bf525c1bbe8e541d9339c69b0adbad546
[ "MIT" ]
1
2020-06-07T06:25:19.000Z
2020-06-07T06:25:19.000Z
# table definition table = { 'table_name' : 'adm_tax_cats', 'module_id' : 'adm', 'short_descr' : 'Sales tax categories', 'long_descr' : 'Sales tax categories', 'sub_types' : None, 'sub_trans' : None, 'sequence' : ['seq', [], None], 'tree_params' : None, 'ro...
29.355049
101
0.478251
5c619374c3e3b568269594210e18079873113b10
56
py
Python
account/views.py
shrimp509/django_message_board
b8ba07c4d912408664319c2c09c24ea6caad26f6
[ "MIT" ]
1
2021-01-22T08:43:05.000Z
2021-01-22T08:43:05.000Z
account/views.py
shrimp509/django_message_board
b8ba07c4d912408664319c2c09c24ea6caad26f6
[ "MIT" ]
5
2021-03-19T00:50:09.000Z
2021-09-22T18:44:18.000Z
account/views.py
shrimp509/django_message_board
b8ba07c4d912408664319c2c09c24ea6caad26f6
[ "MIT" ]
null
null
null
from django.shortcuts import render # no views but api
14
35
0.785714
5c619d840ba0505fc5c075311b9464f9ca4496fd
1,104
py
Python
TagListsAndScripts/parse_sentences.py
ciminilab/2021_Jamali_submitted
0cb449ab6fc2dd1974d1c3cda192ae4cb847b62d
[ "BSD-3-Clause" ]
1
2021-08-16T14:16:32.000Z
2021-08-16T14:16:32.000Z
TagListsAndScripts/parse_sentences.py
ciminilab/2021_Jamali_submitted
0cb449ab6fc2dd1974d1c3cda192ae4cb847b62d
[ "BSD-3-Clause" ]
null
null
null
TagListsAndScripts/parse_sentences.py
ciminilab/2021_Jamali_submitted
0cb449ab6fc2dd1974d1c3cda192ae4cb847b62d
[ "BSD-3-Clause" ]
null
null
null
import csv to_be_removed_chars = ['"', "(", ")", "]", "[", ",", ";", "\n", "."] to_be_removed_letters = ["and", "or", "add", "of", "in", "analysis", "with", "to", "a", "from", "are", "is", "as", "that", "i", "at"] fname = "WishHadBetterSolutions.csv" fin = open("../%s" % fname, encoding="ISO-...
32.470588
114
0.548007
5c62dc56ece7620a65aca836edbd7df4ee9b5ef1
245
py
Python
genderdecoder/__init__.py
sagahansson/genderdecoder
db18f51c8a3708aac9f4ba5d71e4c8f78df33257
[ "MIT" ]
null
null
null
genderdecoder/__init__.py
sagahansson/genderdecoder
db18f51c8a3708aac9f4ba5d71e4c8f78df33257
[ "MIT" ]
null
null
null
genderdecoder/__init__.py
sagahansson/genderdecoder
db18f51c8a3708aac9f4ba5d71e4c8f78df33257
[ "MIT" ]
null
null
null
import sys import os current_dir = os.getcwd() sys.path.append(current_dir + "/genderdecoder/genderdecoder") from assess import assess, assess_v2, assess_v3 from wordlists import feminine_coded_words from wordlists import masculine_coded_words
27.222222
61
0.836735
5c66f8bf1322d0f470910527d6e4d2ba22bad011
3,544
py
Python
tests/app/test_argument_actions.py
pyapp-org/pyapp
46c9e8e3dbf1a872628fad8224b99b458972c92c
[ "BSD-3-Clause" ]
5
2020-01-09T14:46:33.000Z
2021-04-23T15:25:11.000Z
tests/app/test_argument_actions.py
pyapp-org/pyapp
46c9e8e3dbf1a872628fad8224b99b458972c92c
[ "BSD-3-Clause" ]
111
2019-06-30T05:45:57.000Z
2022-03-28T11:15:29.000Z
tests/app/test_argument_actions.py
pyapp-org/pyapp
46c9e8e3dbf1a872628fad8224b99b458972c92c
[ "BSD-3-Clause" ]
2
2019-05-29T09:01:10.000Z
2021-04-23T15:25:32.000Z
from argparse import ArgumentError from argparse import ArgumentParser from argparse import Namespace from enum import Enum import pytest from pyapp.app import argument_actions def test_init__value_choices(self, value_target): assert value_target.choices == ("red", "green", "blue") def test_init_...
29.533333
79
0.597912
5c67075d9a02f5436a7386d8c0f32d76899c0dc6
1,342
py
Python
src/prodstats/cq/__init__.py
la-mar/prodstats
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
[ "MIT" ]
null
null
null
src/prodstats/cq/__init__.py
la-mar/prodstats
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
[ "MIT" ]
null
null
null
src/prodstats/cq/__init__.py
la-mar/prodstats
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
[ "MIT" ]
1
2021-01-05T18:58:08.000Z
2021-01-05T18:58:08.000Z
# flake8: noqa import functools import logging from celery.schedules import crontab import config as conf import cq.signals import cq.tasks as tasks import db import loggers from const import HoleDirection, IHSPath from cq.worker import celery_app logger = logging.getLogger(__name__)
26.84
90
0.670641
5c6a3b9ea2a838f47726211dad6d309beba9aff6
2,710
py
Python
ruclip/__init__.py
AlexWortega/ru-clip
841f3ed69307ecac65d5f0e0a475902c626b4561
[ "Apache-2.0" ]
1
2022-01-23T10:18:11.000Z
2022-01-23T10:18:11.000Z
ruclip/__init__.py
AlexWortega/ru-clip
841f3ed69307ecac65d5f0e0a475902c626b4561
[ "Apache-2.0" ]
null
null
null
ruclip/__init__.py
AlexWortega/ru-clip
841f3ed69307ecac65d5f0e0a475902c626b4561
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from huggingface_hub import hf_hub_url, cached_download from . import model, processor, predictor from .model import CLIP from .processor import RuCLIPProcessor from .predictor import Predictor MODELS = { 'ruclip-vit-base-patch32-224': dict( repo_id='sberbank-ai/ruclip-v...
32.650602
117
0.6369
5c6c0888dbb7c41a10165e561af163c693fbb054
1,014
py
Python
Utility/Torch/Models/Supertransformer/StorageTools.py
smithblack-0/Utility
875ab69fffad1412174d9d0a1de70edc1fd64152
[ "MIT" ]
null
null
null
Utility/Torch/Models/Supertransformer/StorageTools.py
smithblack-0/Utility
875ab69fffad1412174d9d0a1de70edc1fd64152
[ "MIT" ]
null
null
null
Utility/Torch/Models/Supertransformer/StorageTools.py
smithblack-0/Utility
875ab69fffad1412174d9d0a1de70edc1fd64152
[ "MIT" ]
null
null
null
""" Storing tensors such that torchscript can work with them can be quite a pain. This set of tools makes it a lot easier. Tensors are stored by placing them in the initialization region, and become something that can then be accessed by looking at .stored """ from __future__ import annotations from typing import ...
28.166667
77
0.75641
5c6c2c785d2c2f358098daac5406d05ec819f892
6,030
py
Python
zprime_search/python/Systematics.py
cdragoiu/particle_physics
1814ea2f072ccfbf1412397b19a3b5dad7ddb639
[ "MIT" ]
null
null
null
zprime_search/python/Systematics.py
cdragoiu/particle_physics
1814ea2f072ccfbf1412397b19a3b5dad7ddb639
[ "MIT" ]
null
null
null
zprime_search/python/Systematics.py
cdragoiu/particle_physics
1814ea2f072ccfbf1412397b19a3b5dad7ddb639
[ "MIT" ]
null
null
null
import math, ROOT, sys from PlotStyle import * # estimate systematics ----------------------------------------------------------------------------- # plot systematics --------------------------------------------------------------------------------- # run as the main program only -------------------------------------...
41.586207
100
0.550415
5c6d46868738690ee471889a27efbec60fc9e7e3
1,797
py
Python
userprofile/models.py
hyywestwood/web
85e25d9ec79269d7a2d1336f8dbc57d08a053220
[ "MIT" ]
null
null
null
userprofile/models.py
hyywestwood/web
85e25d9ec79269d7a2d1336f8dbc57d08a053220
[ "MIT" ]
10
2021-03-19T11:16:35.000Z
2022-03-12T00:32:11.000Z
userprofile/models.py
hyywestwood/web
85e25d9ec79269d7a2d1336f8dbc57d08a053220
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # from PIL import Image # # from django.db.models.signals import post_save # # from django.dispatch import receiver from imagekit.models import ProcessedImageField from imagekit.processors import ResizeToFit # # Userbug # # @receiver(pos...
29.95
87
0.649972
5c6f454d44d619e8e7a395b0689912f481759edf
400
py
Python
scripts/factors.py
prathimacode-hub/python-scripts-bible
7643f6324c9f771f573f254289d912d812fe2494
[ "MIT" ]
null
null
null
scripts/factors.py
prathimacode-hub/python-scripts-bible
7643f6324c9f771f573f254289d912d812fe2494
[ "MIT" ]
null
null
null
scripts/factors.py
prathimacode-hub/python-scripts-bible
7643f6324c9f771f573f254289d912d812fe2494
[ "MIT" ]
1
2021-05-14T10:18:09.000Z
2021-05-14T10:18:09.000Z
# Script Name : factors.py # Author : Abhijit Kumar # Created : 20th May 2017 # Description : Find the number from its factors. import math print('The factors of the number you type when prompted will be displayed') a = int(input('Type now // ')) b = 1 while b <= math.sqrt(a): if a % b == 0: print("A factor...
23.529412
75
0.6475
5c6f6066b3c7cb622e5718a9e9136600fd2f5a6b
375
py
Python
src/api/urls.py
rjuppa/onepip
dd8de82ba58f5f192792fa21b466f9726227e0c5
[ "MIT" ]
null
null
null
src/api/urls.py
rjuppa/onepip
dd8de82ba58f5f192792fa21b466f9726227e0c5
[ "MIT" ]
null
null
null
src/api/urls.py
rjuppa/onepip
dd8de82ba58f5f192792fa21b466f9726227e0c5
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from rest_framework import routers from . import views # Routers provide an easy way of automatically determining the URL conf. router = routers.DefaultRouter() router.register(r'users', views.UserViewSet) urlpatterns = [ url(r'^prices/(?P<mid>[0-9]+)/$', views.PriceLis...
22.058824
72
0.72
5c70200d818bbd29469723be65d620d6130bcb9a
238
py
Python
whitenoise/management/commands/runfixtures.py
vsgiri/white-noise
e0d52e3a5363c92010c74a1e3721da799ef99eba
[ "MIT" ]
4
2019-01-11T17:05:09.000Z
2022-03-05T19:57:22.000Z
whitenoise/management/commands/runfixtures.py
vsgiri/white-noise
e0d52e3a5363c92010c74a1e3721da799ef99eba
[ "MIT" ]
2
2019-07-02T23:14:46.000Z
2019-07-12T00:30:41.000Z
whitenoise/management/commands/runfixtures.py
vsgiri/white-noise
e0d52e3a5363c92010c74a1e3721da799ef99eba
[ "MIT" ]
1
2019-07-02T21:57:06.000Z
2019-07-02T21:57:06.000Z
from django.core.management.base import BaseCommand, CommandError
21.636364
65
0.684874
5c707802f510e0652797a2cd74eaba08d03e27de
754
py
Python
zendesk_jira_migrator/main.py
adrianbeloqui/zendesk_jira_migrator
66317bda46a46206c375ebadf1fdbdebb59ffbcf
[ "MIT" ]
null
null
null
zendesk_jira_migrator/main.py
adrianbeloqui/zendesk_jira_migrator
66317bda46a46206c375ebadf1fdbdebb59ffbcf
[ "MIT" ]
1
2021-06-01T23:09:17.000Z
2021-06-01T23:09:17.000Z
zendesk_jira_migrator/main.py
adrianbeloqui/zendesk_jira_migrator
66317bda46a46206c375ebadf1fdbdebb59ffbcf
[ "MIT" ]
null
null
null
from .migrator import Migrator
25.133333
60
0.579576
5c713ff2a82d4eceef63fb0863a378dd1018e09b
1,123
py
Python
ejercicios/sum_negative.py
carlosviveros/Soluciones
115f4fa929c7854ca497e4c994352adc64565456
[ "MIT" ]
4
2021-12-14T23:51:25.000Z
2022-03-24T11:14:00.000Z
ejercicios/sum_negative.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
ejercicios/sum_negative.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
5
2021-11-10T06:49:50.000Z
2022-03-24T01:42:28.000Z
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Given a list of numbers, stop processing input after the cumulative sum of all the input becomes negative. Input format: A list of integers to be processed Constrains: All numbers input are integers between -1000 and 1000 Output format: Print all the numbe...
19.033898
73
0.674087
5c73899f8a7a4e6cae0196f83d72e8c2a0f1bcf4
18,505
py
Python
logiq/src/Qmath.py
Bnz-0/logiq
5b7c4cf894f00aa5648192f9c4bece6a45c9f894
[ "MIT" ]
1
2019-12-04T13:45:14.000Z
2019-12-04T13:45:14.000Z
logiq/src/Qmath.py
Bnz-0/logiq
5b7c4cf894f00aa5648192f9c4bece6a45c9f894
[ "MIT" ]
null
null
null
logiq/src/Qmath.py
Bnz-0/logiq
5b7c4cf894f00aa5648192f9c4bece6a45c9f894
[ "MIT" ]
null
null
null
from random import random, sample from .Qerrors import DimensionError, GenericLogiqError, InitializationError from .qtils import equal, isScalar, math, mod_square, np #### Qmath.py # # This file contains 2 classes that wrap the numpy.matrix class: the vector and the matrix class, # it contains also other mathematica...
30.187602
247
0.565685
5c74acae48971fced213c7aa8abe0174ef6fc121
7,123
py
Python
mindspore/ops/operations/inner_ops.py
taroxd/mindspore
9bb620ff2caaac7f1c53c4b104935f22352cb88f
[ "Apache-2.0" ]
55
2020-12-17T10:26:06.000Z
2022-03-28T07:18:26.000Z
mindspore/ops/operations/inner_ops.py
taroxd/mindspore
9bb620ff2caaac7f1c53c4b104935f22352cb88f
[ "Apache-2.0" ]
null
null
null
mindspore/ops/operations/inner_ops.py
taroxd/mindspore
9bb620ff2caaac7f1c53c4b104935f22352cb88f
[ "Apache-2.0" ]
14
2021-01-29T02:39:47.000Z
2022-03-23T05:00:26.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
40.702857
120
0.617858
5c76d353c73fffeb302eb7a2493011a32a6440ce
854
py
Python
networks/marketing_prj/kr/main.py
artemkush1/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
1
2021-05-23T13:43:11.000Z
2021-05-23T13:43:11.000Z
networks/marketing_prj/kr/main.py
artemk1337/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
1
2020-02-14T02:12:11.000Z
2020-02-14T02:12:11.000Z
networks/marketing_prj/kr/main.py
artemkush1/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
null
null
null
import numpy as np from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_absolute_error as mae import matplotlib.pyplot as plt import pandas as pd import csv df = pd.read_csv('vgsales.csv') print(df.head()) y = df['Global_Sales'] df =...
20.333333
88
0.758782
5c7946b5e79a5bd47ad9d30e84ff4d4b7b42808e
2,045
py
Python
utils/filter_data.py
tinvukhac/learned-spatial-join
d52967fbfd506829bdb92719dc80b042a8119b7d
[ "Apache-2.0" ]
6
2021-12-17T22:19:25.000Z
2022-03-17T23:35:04.000Z
utils/filter_data.py
tinvukhac/sjml-resources
f5805f726ccfa628c2dc20ad42eb8262f80bee94
[ "Apache-2.0" ]
null
null
null
utils/filter_data.py
tinvukhac/sjml-resources
f5805f726ccfa628c2dc20ad42eb8262f80bee94
[ "Apache-2.0" ]
2
2021-01-26T04:17:43.000Z
2021-02-16T16:10:13.000Z
from itertools import combinations if __name__ == '__main__': main()
31.461538
120
0.501711
5c7ad7ba73bda6550010553157a877165f7db93e
1,693
py
Python
multi-layer-polar-cython/cython/test.py
MaverickPeter/DiSCO-pytorch
912e18a9733cb8798b41291ceaa23685576462da
[ "MIT" ]
41
2020-10-23T10:55:21.000Z
2022-03-31T04:57:06.000Z
multi-layer-polar-cython/cython/test.py
MaverickPeter/DiSCO-pytorch
912e18a9733cb8798b41291ceaa23685576462da
[ "MIT" ]
3
2021-04-19T07:40:37.000Z
2022-03-23T01:35:41.000Z
multi-layer-polar-cython/cython/test.py
MaverickPeter/DiSCO-pytorch
912e18a9733cb8798b41291ceaa23685576462da
[ "MIT" ]
7
2020-12-08T13:18:26.000Z
2022-03-06T03:58:23.000Z
import gputransform import numpy as np import numpy.testing as npt import time import os import numpy.testing as npt import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # load test point cloud util # load test point cloud sim_data_orig = load_pc_file("2.bin") # visualize point cloud x = sim_data_...
22.573333
123
0.700532
5c7b005e76d1d272f859bd8434eb849b792f547e
1,349
py
Python
djfw/pagination/middleware.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2020-04-21T15:09:18.000Z
2020-04-21T15:09:18.000Z
djfw/pagination/middleware.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
70
2019-04-10T22:32:32.000Z
2022-03-11T23:12:54.000Z
djfw/pagination/middleware.py
kozzztik/tulius
81b8f6484eefdc453047f62173a08f5e6f640cd6
[ "MIT" ]
1
2019-04-12T14:55:39.000Z
2019-04-12T14:55:39.000Z
import asyncio def get_page(self): """ A function which will be monkeypatched onto the request to get the current integer representing the current page. """ try: if self.POST: p = self.POST['page'] else: p = self.GET['page'] if p == 'last': ...
25.942308
79
0.673091
5c7c478f035abb708c63f7338a4e3b10d331b4f9
35,339
py
Python
tasks.py
Lucaweihs/ai2thor
9e5d28dd97b8b2c310cfbbba119703cf5b099f7a
[ "Apache-2.0" ]
1
2019-04-30T07:43:09.000Z
2019-04-30T07:43:09.000Z
tasks.py
Lucaweihs/ai2thor
9e5d28dd97b8b2c310cfbbba119703cf5b099f7a
[ "Apache-2.0" ]
null
null
null
tasks.py
Lucaweihs/ai2thor
9e5d28dd97b8b2c310cfbbba119703cf5b099f7a
[ "Apache-2.0" ]
null
null
null
import os import datetime import zipfile import threading import hashlib import shutil import subprocess import pprint from invoke import task import boto3 S3_BUCKET = 'ai2-thor' UNITY_VERSION = '2018.3.6f1' def build_sha256(path): m = hashlib.sha256() with open(path, "rb") as f: m.update(f.r...
35.516583
178
0.604714
5c7d69cf4bcf2289ab3c3b5c106e109c577910a8
1,364
py
Python
treap/treap_test.py
Monras/Treap
867465fca019e0ca3745c07235900706e74e1173
[ "CC-BY-3.0" ]
null
null
null
treap/treap_test.py
Monras/Treap
867465fca019e0ca3745c07235900706e74e1173
[ "CC-BY-3.0" ]
null
null
null
treap/treap_test.py
Monras/Treap
867465fca019e0ca3745c07235900706e74e1173
[ "CC-BY-3.0" ]
null
null
null
#Test code to treap.py from treap import * def test(): """test code to treap.py""" treap = Treap() treap.add("A", 2) treap.add("B", 123) treap.add("C", 23) treap.add("D", "T") all = treap.get_all() assert treap.size() == 4 assert treap.search("A") == all[0] assert treap.get_min(...
27.28
41
0.576979
5c7dd017cb985d2be70863e2a6c94eef99b97a29
11,416
py
Python
eteach/com/pybsoft/eteach/regression/mvlinear.py
juanmr82/e-teach
710bc119ece349c08f0228c274922d3479bec452
[ "Apache-2.0" ]
null
null
null
eteach/com/pybsoft/eteach/regression/mvlinear.py
juanmr82/e-teach
710bc119ece349c08f0228c274922d3479bec452
[ "Apache-2.0" ]
null
null
null
eteach/com/pybsoft/eteach/regression/mvlinear.py
juanmr82/e-teach
710bc119ece349c08f0228c274922d3479bec452
[ "Apache-2.0" ]
null
null
null
''' Created on Aug 10, 2018 @author: Juan Reina @contact: juanmr82@gmail.com This module uses tensorflow on a dataset to implement a multivarian linear regression. The following input arguments are needed and for practical purposes, in CSV format and only float values 1. File name. Must be specified with -...
37.676568
122
0.567537
5c7e92a7efb78b46d445a09f3df8edb6402d0d07
4,118
py
Python
l0bnb/_third_party.py
rahulmaz/L0BnB
72c262581dd2d7e1489668c2fb2052214b6bbcdd
[ "MIT" ]
1
2020-04-16T03:40:36.000Z
2020-04-16T03:40:36.000Z
l0bnb/_third_party.py
rahulmaz/L0BnB
72c262581dd2d7e1489668c2fb2052214b6bbcdd
[ "MIT" ]
1
2020-04-16T04:12:12.000Z
2020-04-16T04:12:12.000Z
l0bnb/_third_party.py
rahulmaz/L0BnB
72c262581dd2d7e1489668c2fb2052214b6bbcdd
[ "MIT" ]
1
2020-04-16T03:42:19.000Z
2020-04-16T03:42:19.000Z
import sys import numpy as np
35.808696
118
0.620204
5c7eab84cedcd9a684eaec97ef3ab71e3134b344
287
py
Python
Kattis/joinstrings.py
MilladMuhammadi/Competitive-Programming
9f84a2d2734a5efe0e1fde0062e51782cd5af2c6
[ "MIT" ]
null
null
null
Kattis/joinstrings.py
MilladMuhammadi/Competitive-Programming
9f84a2d2734a5efe0e1fde0062e51782cd5af2c6
[ "MIT" ]
null
null
null
Kattis/joinstrings.py
MilladMuhammadi/Competitive-Programming
9f84a2d2734a5efe0e1fde0062e51782cd5af2c6
[ "MIT" ]
null
null
null
li = [] nli = [] n = int(input()) for i in range(n): li.append(input()) nli.append([i]) a=0 #print(nli) for i in range(n-1): a,b = map(int,input().split()) a-=1 b-=1 nli[a]+=nli[b] nli[b] = [] res = "" for i in range(n): print(li[nli[a][i]],sep='',end='')
16.882353
38
0.484321