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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f958f12563b74a6555a910c0edcd3c3aff2c51a | 16,170 | py | Python | gem/quaternion.py | AlexMarinescu/pyGameMath | 5257291431bb45db0274dc48edf24694ecfe2e2d | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2020-04-15T22:30:52.000Z | 2022-01-18T01:05:45.000Z | gem/quaternion.py | SmithSamuelM/gem | d05dfa50739aa0b3dcd5e9cd2eb7d147fb4c0d63 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | gem/quaternion.py | SmithSamuelM/gem | d05dfa50739aa0b3dcd5e9cd2eb7d147fb4c0d63 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-11-12T00:41:21.000Z | 2021-11-12T00:41:21.000Z | import math
import six.moves as sm
from gem import vector
from gem import matrix
def quat_identity():
''' Returns the quaternion identity. '''
return [1.0, 0.0, 0.0, 0.0]
def quat_add(quat, quat1):
''' Add two quaternions. '''
return [quat[0] + quat1[0], quat[1] + quat1[1], quat[2] + quat1[2], quat[3]... | 32.865854 | 123 | 0.60402 |
8f9628a559aa22d53c2c81a12924391437a37584 | 466 | py | Python | src/app/auth0.py | scraiber/scraiber-api | 010d0875ba0820e0ec7790d74df8a2955fac360e | [
"Apache-2.0"
] | 1 | 2022-03-29T06:41:41.000Z | 2022-03-29T06:41:41.000Z | src/app/auth0.py | scraiber/scraiber-api | 010d0875ba0820e0ec7790d74df8a2955fac360e | [
"Apache-2.0"
] | null | null | null | src/app/auth0.py | scraiber/scraiber-api | 010d0875ba0820e0ec7790d74df8a2955fac360e | [
"Apache-2.0"
] | null | null | null | import os
from fastapi import HTTPException
from fastapi_cloudauth.auth0 import Auth0CurrentUser
from app.api.models.auth0 import Auth0User
current_user = Auth0CurrentUser(
domain=os.environ["AUTH0_DOMAIN"],
client_id=os.environ["AUTH0_CLIENTID_FRONTEND"]
)
current_user.user_info = Auth0User
| 24.526316 | 79 | 0.787554 |
8f965f29b335fd5b6b8629d0ff9d0ab59a78971e | 167 | py | Python | 10-Days-of-Statistics/Day 0/weighted-mean.py | vivekec/hackerrank | 71b27a098f8432cd9ca13c6a93e9fd1c246dc8d3 | [
"MIT"
] | null | null | null | 10-Days-of-Statistics/Day 0/weighted-mean.py | vivekec/hackerrank | 71b27a098f8432cd9ca13c6a93e9fd1c246dc8d3 | [
"MIT"
] | null | null | null | 10-Days-of-Statistics/Day 0/weighted-mean.py | vivekec/hackerrank | 71b27a098f8432cd9ca13c6a93e9fd1c246dc8d3 | [
"MIT"
] | null | null | null | N = int(input())
X = list(map(int, input().split()))
W = list(map(int, input().split()))
out = 0
for i in range(N):
out += X[i] * W[i]
print(round(out/sum(W),1))
| 18.555556 | 35 | 0.550898 |
8f980b7c105970772ce222d03d8f0a75f6d84be2 | 9,141 | py | Python | entity.py | TheNicGard/DungeonStar | 525aeb53217166d2ce83e4e91a3b8c1b102f0dcb | [
"MIT"
] | 3 | 2019-07-11T17:54:42.000Z | 2021-03-09T10:58:13.000Z | entity.py | BandW2011/DungeonStar | 525aeb53217166d2ce83e4e91a3b8c1b102f0dcb | [
"MIT"
] | 1 | 2019-07-11T17:55:38.000Z | 2020-05-03T06:34:56.000Z | entity.py | TheNicGard/DungeonStar | 525aeb53217166d2ce83e4e91a3b8c1b102f0dcb | [
"MIT"
] | null | null | null | import tcod as libtcod
import math
from components.item import Item
from render_functions import RenderOrder
def get_blocking_entities_at_location(entities, destination_x, destination_y):
for entity in entities:
if entity.blocks and entity.x == destination_x and entity.y == destin... | 37.310204 | 122 | 0.597528 |
8f98fada61d1cea79e871415ec49c42c654a446a | 240 | py | Python | code/python/tests/data/load/rvk_test.py | slub/docsa | c33a8243a60fbccbcd0a6418a59337e4ed39dc75 | [
"Apache-2.0"
] | 11 | 2022-01-05T17:19:10.000Z | 2022-02-14T18:57:37.000Z | code/python/tests/data/load/rvk_test.py | slub/docsa | c33a8243a60fbccbcd0a6418a59337e4ed39dc75 | [
"Apache-2.0"
] | null | null | null | code/python/tests/data/load/rvk_test.py | slub/docsa | c33a8243a60fbccbcd0a6418a59337e4ed39dc75 | [
"Apache-2.0"
] | null | null | null | """Tests RVK data source."""
from slub_docsa.data.load.rvk import read_rvk_subjects
def test_rvk_first_level_classes():
"""Check that there are 34 first level classes in RVK."""
assert len(list(read_rvk_subjects(depth=1))) == 34
| 26.666667 | 61 | 0.733333 |
8f99c35a950490ba3164b9cd0128d650d0ec5cf9 | 5,459 | py | Python | qasrl/models/question.py | gililior/qasrl-modeling | 2f9684536f6d5f0283b0e4b90a911ea12fa72f72 | [
"MIT"
] | 1 | 2021-07-18T18:55:54.000Z | 2021-07-18T18:55:54.000Z | qasrl/models/question.py | gililior/qasrl-modeling | 2f9684536f6d5f0283b0e4b90a911ea12fa72f72 | [
"MIT"
] | 2 | 2021-09-13T15:52:39.000Z | 2021-10-06T21:58:06.000Z | qasrl/models/question.py | gililior/qasrl-modeling | 2f9684536f6d5f0283b0e4b90a911ea12fa72f72 | [
"MIT"
] | 1 | 2021-09-19T13:46:49.000Z | 2021-09-19T13:46:49.000Z | from typing import Dict, List, TextIO, Optional, Set, Tuple
from overrides import overrides
import torch
from torch.nn.modules import Linear, Dropout
from torch.autograd import Variable
import torch.nn.functional as F
from allennlp.common import Params
from allennlp.common.checks import ConfigurationError
from allenn... | 50.546296 | 122 | 0.709104 |
8f9bddff56587ac3d789227ba3b06f0068debc2b | 312 | py | Python | src/cube/op/reduce/stat/pct/__init__.py | jedhsu/cortex | d610570743d59272c7e6326d10c53d55950e87fc | [
"Apache-2.0"
] | null | null | null | src/cube/op/reduce/stat/pct/__init__.py | jedhsu/cortex | d610570743d59272c7e6326d10c53d55950e87fc | [
"Apache-2.0"
] | null | null | null | src/cube/op/reduce/stat/pct/__init__.py | jedhsu/cortex | d610570743d59272c7e6326d10c53d55950e87fc | [
"Apache-2.0"
] | null | null | null | from ._operator import PercentileOperator
from .maximum import Maximum
from .median import Median
from .minimum import Minimum
from .percentile import Percentile
from .quantile import Quantile
__all__ = [
"PercentileOperator",
"Maximum",
"Minimum",
"Median",
"Quantile",
"Percentile",
]
| 19.5 | 41 | 0.724359 |
8f9c7d739dfd9df8261ba3fb8f8da2e2029bd3f2 | 7,059 | py | Python | libkloudtrader/algorithm.py | KloudTrader/libkloudtrader | 015e2779f80ba2de93be9fa6fd751412a9d5f492 | [
"Apache-2.0"
] | 11 | 2019-01-16T16:10:09.000Z | 2021-03-02T00:59:17.000Z | libkloudtrader/algorithm.py | KloudTrader/kloudtrader | 015e2779f80ba2de93be9fa6fd751412a9d5f492 | [
"Apache-2.0"
] | 425 | 2019-07-10T06:59:49.000Z | 2021-01-12T05:32:14.000Z | libkloudtrader/algorithm.py | KloudTrader/kloudtrader | 015e2779f80ba2de93be9fa6fd751412a9d5f492 | [
"Apache-2.0"
] | 6 | 2019-03-15T16:25:06.000Z | 2021-05-03T10:02:13.000Z | from typing import Any, List
import random
import time
import datetime
import numpy as np
import pandas as pd
import libkloudtrader.stocks as stocks
from libkloudtrader.exceptions import InvalidAlgorithmMode, EmptySymbolBucket, InvalidDataFeedType
from libkloudtrader.enumerables import Data_Types
import libkloudtrader.... | 40.803468 | 145 | 0.563536 |
8f9cadd05315c0a6dcf0e9ce19e102b8ba6ec07e | 28 | py | Python | src/catatumbo/core/__init__.py | MBizm/Catatumbo | 1494e8fd53a7096acc49d085a9eb9822df297473 | [
"Apache-2.0"
] | 2 | 2019-10-04T15:27:09.000Z | 2020-04-27T14:20:29.000Z | src/catatumbo/core/__init__.py | MBizm/Catatumbo | 1494e8fd53a7096acc49d085a9eb9822df297473 | [
"Apache-2.0"
] | 13 | 2019-12-28T01:31:12.000Z | 2020-11-16T09:36:05.000Z | src/catatumbo/core/__init__.py | MBizm/Catatumbo | 1494e8fd53a7096acc49d085a9eb9822df297473 | [
"Apache-2.0"
] | 3 | 2020-04-29T17:01:10.000Z | 2020-11-16T07:25:48.000Z | __all__ = ["NeoPixelColors"] | 28 | 28 | 0.75 |
8f9d7cb9d8688441fb1f44b0f15087c179e57505 | 34,164 | py | Python | src/wavecalLib.py | rterrien/HPFSpec2 | e7cefc37184926ae65a4626a0fe3299cc6b3deb3 | [
"MIT"
] | null | null | null | src/wavecalLib.py | rterrien/HPFSpec2 | e7cefc37184926ae65a4626a0fe3299cc6b3deb3 | [
"MIT"
] | null | null | null | src/wavecalLib.py | rterrien/HPFSpec2 | e7cefc37184926ae65a4626a0fe3299cc6b3deb3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function, division, unicode_literals
import numpy as np
import copy
import scipy.optimize
from skimage import filters
from skimage import morphology
from scipy import interpolate
from astropy.stats import biweight_location, mad_std
from collections import OrderedDict... | 33.363281 | 140 | 0.61837 |
8fa0f8b72083d7c88830c1eaf19a165da04a03d6 | 4,215 | py | Python | src/update_repositories_md.py | computer-science-engineering/readme | 0025ec188fa65f0fbd80f5f0a379ab3eb44bafc8 | [
"MIT"
] | null | null | null | src/update_repositories_md.py | computer-science-engineering/readme | 0025ec188fa65f0fbd80f5f0a379ab3eb44bafc8 | [
"MIT"
] | 8 | 2021-01-04T10:38:37.000Z | 2021-04-24T06:32:12.000Z | src/update_repositories_md.py | computer-science-engineering/readme | 0025ec188fa65f0fbd80f5f0a379ab3eb44bafc8 | [
"MIT"
] | null | null | null | import json
import os
from itertools import chain, groupby
from operator import itemgetter, sub
from urllib.parse import urlparse
import git
import numpy as np
import validators
from mdutils.mdutils import MdUtils
LCS_REPO_NAME = 'learning-computer-science'
def find_files():
"""Return the list of files to proc... | 32.423077 | 83 | 0.612337 |
8fa273b6250c57b641ea8334821621b4a5dcb2d9 | 625 | py | Python | intercepts.py | XDCoder3289/x_y_intercepts_coordinate-plane | f332829f0f8055c2a05b7cbf9564105b81e96407 | [
"MIT"
] | null | null | null | intercepts.py | XDCoder3289/x_y_intercepts_coordinate-plane | f332829f0f8055c2a05b7cbf9564105b81e96407 | [
"MIT"
] | null | null | null | intercepts.py | XDCoder3289/x_y_intercepts_coordinate-plane | f332829f0f8055c2a05b7cbf9564105b81e96407 | [
"MIT"
] | null | null | null | # Calculator for calculating x and y intercepts
xaxis = int(input("Enter the x axis(excluding the variable): "))
yaxis = int(input("Enter the y axis(excluding the variable): "))
equality = int(input("What is the equation equal to: "))
# example 3x + 4y = 6
# x - intercept can be found out by supposing y = 0
# ... | 27.173913 | 66 | 0.6256 |
8fa2e306d164210f244cc0bee43333a0e7295e06 | 953 | py | Python | light_zombie.py | tommybobbins/halloween_scarer | de2655de8e52670c75d8e49b8f4ef74744ff8ea0 | [
"MIT"
] | null | null | null | light_zombie.py | tommybobbins/halloween_scarer | de2655de8e52670c75d8e49b8f4ef74744ff8ea0 | [
"MIT"
] | 1 | 2020-08-12T15:00:03.000Z | 2020-08-12T15:00:03.000Z | light_zombie.py | tommybobbins/halloween_scarer | de2655de8e52670c75d8e49b8f4ef74744ff8ea0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import RPi.GPIO as GPIO
import pygame
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
GPIO.setup(7, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
from time import sleep
pygame.init()
currState = False
prevState = False
while True:
try:
sleep(0.1)
prevState = currState
currState = ... | 24.435897 | 80 | 0.578174 |
8fa316264e67e68643ee75008d6b3c26e94699e0 | 253 | py | Python | control_codes.py | SreeHarshaNelaturu/runway-transformers-CTRL | a7f38ed8999eac90f0e17185ec5e7d138f0ddb9f | [
"Apache-2.0"
] | null | null | null | control_codes.py | SreeHarshaNelaturu/runway-transformers-CTRL | a7f38ed8999eac90f0e17185ec5e7d138f0ddb9f | [
"Apache-2.0"
] | null | null | null | control_codes.py | SreeHarshaNelaturu/runway-transformers-CTRL | a7f38ed8999eac90f0e17185ec5e7d138f0ddb9f | [
"Apache-2.0"
] | null | null | null | CONTROL_CODES = {
"Questions": 456,
"Funny": 58917,
"Gaming": 40358,
"Movies": 46273,
"Science": 2090,
"Politics": 16360,
"Technologies": 32516,
"Books": 6665,
"Links": 63674,
"Reviews": 41671,
"News": 4256
}
| 18.071429 | 26 | 0.541502 |
8fa326c4091b838484b5abb3f52cd9234df636d6 | 2,872 | py | Python | emonitor/modules/messages/__init__.py | Durburz/eMonitor | 56f3b1fe39b9da3a12b49bdd60d0cfca51c23351 | [
"BSD-3-Clause"
] | 21 | 2015-03-04T11:36:47.000Z | 2021-04-20T07:51:53.000Z | emonitor/modules/messages/__init__.py | Durburz/eMonitor | 56f3b1fe39b9da3a12b49bdd60d0cfca51c23351 | [
"BSD-3-Clause"
] | 79 | 2015-01-04T21:35:49.000Z | 2020-03-05T07:22:10.000Z | emonitor/modules/messages/__init__.py | Durburz/eMonitor | 56f3b1fe39b9da3a12b49bdd60d0cfca51c23351 | [
"BSD-3-Clause"
] | 27 | 2015-03-04T11:36:48.000Z | 2021-09-20T08:15:17.000Z | from flask import send_from_directory
from sqlalchemy.exc import ProgrammingError
from emonitor.utils import Module
from emonitor.extensions import babel
from emonitor.modules.messages.messages import Messages
from emonitor.modules.messages.message_weather import WeatherWidget
from emonitor.modules.messages.message_bas... | 38.293333 | 183 | 0.680014 |
8fa45edbf6a77ed236667d3c6563904200b0867d | 1,950 | py | Python | cimbar/util/symhash.py | sz3/cimbar | 6d41d8b7bf42a646e6afec5772525fc6296c4c5a | [
"MIT"
] | 25 | 2020-08-21T01:19:34.000Z | 2022-03-26T12:58:31.000Z | cimbar/util/symhash.py | sz3/cimbar | 6d41d8b7bf42a646e6afec5772525fc6296c4c5a | [
"MIT"
] | null | null | null | cimbar/util/symhash.py | sz3/cimbar | 6d41d8b7bf42a646e6afec5772525fc6296c4c5a | [
"MIT"
] | 4 | 2021-01-04T08:54:32.000Z | 2022-03-26T13:00:20.000Z | import imagehash
| 29.545455 | 81 | 0.533846 |
8fa564508aacb9915e56555874467fa0ba4e8257 | 330 | py | Python | DESAFIO-010.py | Lukones/Evolution-Projetos-Python | d979f3702f0e22ab5256b19fd957dba587c44f85 | [
"MIT"
] | null | null | null | DESAFIO-010.py | Lukones/Evolution-Projetos-Python | d979f3702f0e22ab5256b19fd957dba587c44f85 | [
"MIT"
] | null | null | null | DESAFIO-010.py | Lukones/Evolution-Projetos-Python | d979f3702f0e22ab5256b19fd957dba587c44f85 | [
"MIT"
] | null | null | null | # Um programa que vai dar um aumento para um determinado funcionrio, sendo necessrio informar o
# preo e a porcetagem #
x = float(input('Veja o aumento do seu funcionrio!\nDigite o salrio dele: R$'))
y = float(input('Digite agora a porcetagem: '))
p = x+(x*(y/100))
print(f'O salrio do seu funcionrio vai para: R${p:.2f... | 47.142857 | 97 | 0.718182 |
8fa64af0defdace2aa308738b335dc0d388fc4e7 | 1,744 | py | Python | backend/kesaseteli/applications/tests/factories.py | SuviVappula/kesaseteli | 144f93e2804658ec221790e86a7e66adc82868fc | [
"MIT"
] | null | null | null | backend/kesaseteli/applications/tests/factories.py | SuviVappula/kesaseteli | 144f93e2804658ec221790e86a7e66adc82868fc | [
"MIT"
] | null | null | null | backend/kesaseteli/applications/tests/factories.py | SuviVappula/kesaseteli | 144f93e2804658ec221790e86a7e66adc82868fc | [
"MIT"
] | null | null | null | import random
import uuid
import factory
from django.contrib.auth import get_user_model
from applications.enums import ApplicationStatus
from applications.models import Application, SummerVoucher
from companies.tests.factories import CompanyFactory
| 31.709091 | 79 | 0.732225 |
8fa7f6762b4b297a687b0b54264b6ca46ad28ff4 | 258 | py | Python | fourth-year/EGC/EGC-1230-julgomrod/decide/census/admin.py | JulianGR/university | 2f643825b238892d602baf0c8e71e4c1b0fdefc2 | [
"MIT"
] | null | null | null | fourth-year/EGC/EGC-1230-julgomrod/decide/census/admin.py | JulianGR/university | 2f643825b238892d602baf0c8e71e4c1b0fdefc2 | [
"MIT"
] | null | null | null | fourth-year/EGC/EGC-1230-julgomrod/decide/census/admin.py | JulianGR/university | 2f643825b238892d602baf0c8e71e4c1b0fdefc2 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Census
admin.site.register(Census, CensusAdmin)
| 18.428571 | 44 | 0.717054 |
8fa806eec0f9962a1d72ce6896e50f6d4b6fa870 | 3,417 | py | Python | leaf/doc_events/salary_slip.py | leaftechnology/leaf | 7f1ce0628a19605615a93c2673f08bdc91ca2c0d | [
"MIT"
] | null | null | null | leaf/doc_events/salary_slip.py | leaftechnology/leaf | 7f1ce0628a19605615a93c2673f08bdc91ca2c0d | [
"MIT"
] | null | null | null | leaf/doc_events/salary_slip.py | leaftechnology/leaf | 7f1ce0628a19605615a93c2673f08bdc91ca2c0d | [
"MIT"
] | 1 | 2020-06-11T21:44:59.000Z | 2020-06-11T21:44:59.000Z | import frappe
from datetime import *
| 48.126761 | 180 | 0.648815 |
8fa83efc91ad5f26caada18999efa7a20f73758a | 1,427 | py | Python | setup.py | openeuler-mirror/A-Tune-Collector | ce1d990034eb3fbdcc8e0101be955a7370bdc6c8 | [
"MulanPSL-1.0"
] | null | null | null | setup.py | openeuler-mirror/A-Tune-Collector | ce1d990034eb3fbdcc8e0101be955a7370bdc6c8 | [
"MulanPSL-1.0"
] | null | null | null | setup.py | openeuler-mirror/A-Tune-Collector | ce1d990034eb3fbdcc8e0101be955a7370bdc6c8 | [
"MulanPSL-1.0"
] | null | null | null | import os
import shutil
from setuptools import setup, find_packages
from setuptools.command.install import install
from setuptools.command.test import test
version = '0.1'
s = setup(name='atune_collector',
version=version,
description="The tool for data collection and analysis",
clas... | 26.924528 | 111 | 0.602663 |
8fa88115d46b2c412775b4cba4b87b0497c0dd29 | 3,002 | py | Python | projects/CharGrid/inference.py | timctho/detectron2-chargrid | 547479c88ad7d1de2348377706167a84d024a622 | [
"Apache-2.0"
] | 3 | 2020-03-15T18:33:21.000Z | 2020-03-28T18:06:45.000Z | projects/CharGrid/inference.py | timctho/detectron2-chargrid | 547479c88ad7d1de2348377706167a84d024a622 | [
"Apache-2.0"
] | 2 | 2021-09-08T01:46:39.000Z | 2022-01-13T02:22:56.000Z | projects/CharGrid/inference.py | timctho/detectron2-chargrid | 547479c88ad7d1de2348377706167a84d024a622 | [
"Apache-2.0"
] | null | null | null | import os
import random
import cv2
import detectron2.utils.comm as comm
from detectron2 import model_zoo
from detectron2.checkpoint import DetectionCheckpointer
from detectron2.config import get_cfg
from detectron2.data import build_detection_test_loader, build_detection_train_loader, get_detection_dataset_dicts, \
... | 33.730337 | 117 | 0.675883 |
8fab5fa61656c5e5cabced79af44120fbf3f0dc1 | 7,953 | py | Python | romshake/core/numerical_rom_builder.py | jrekoske/reduced-order-shaking | cd01ef9d6a313a06d2083d7dcb1cc59cb767cc47 | [
"MIT"
] | null | null | null | romshake/core/numerical_rom_builder.py | jrekoske/reduced-order-shaking | cd01ef9d6a313a06d2083d7dcb1cc59cb767cc47 | [
"MIT"
] | null | null | null | romshake/core/numerical_rom_builder.py | jrekoske/reduced-order-shaking | cd01ef9d6a313a06d2083d7dcb1cc59cb767cc47 | [
"MIT"
] | null | null | null | import os
import pickle
import logging
import numpy as np
import pandas as pd
from scipy.stats import qmc
from romshake.sample import voronoi
from romshake.core.reduced_order_model import ReducedOrderModel
FNAME = 'rom_builder.pkl'
| 40.576531 | 78 | 0.608324 |
8fac5dd366786148f026b7a575637e3933c748e7 | 37,610 | py | Python | misc/model.py | TheShadow29/grounded-video-description | eae96ba8db084e9cec6aac5cb920112f761f3ac5 | [
"BSD-3-Clause"
] | 1 | 2021-04-19T12:05:34.000Z | 2021-04-19T12:05:34.000Z | misc/model.py | TheShadow29/grounded-video-description | eae96ba8db084e9cec6aac5cb920112f761f3ac5 | [
"BSD-3-Clause"
] | null | null | null | misc/model.py | TheShadow29/grounded-video-description | eae96ba8db084e9cec6aac5cb920112f761f3ac5 | [
"BSD-3-Clause"
] | 1 | 2021-07-12T07:16:18.000Z | 2021-07-12T07:16:18.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torc... | 50.619112 | 168 | 0.602632 |
8fac820506cfa2b173f4a71f0937824ec8098018 | 5,371 | py | Python | apps/front/urls.py | 1786016767jjk/pj | 17de9e2ab2bac842abf7ad4605c00dcb1a7d079f | [
"Apache-2.0"
] | null | null | null | apps/front/urls.py | 1786016767jjk/pj | 17de9e2ab2bac842abf7ad4605c00dcb1a7d079f | [
"Apache-2.0"
] | null | null | null | apps/front/urls.py | 1786016767jjk/pj | 17de9e2ab2bac842abf7ad4605c00dcb1a7d079f | [
"Apache-2.0"
] | null | null | null | #
from flask.views import MethodView
from apps.front.forms import SendSmsCodeForm,SignupFrom,FindpwdFrom,SendCodeForm,AddPostForm,SigninFrom
from flask import Blueprint,make_response
from flask import render_template,session
from flask import views,request,jsonify
import string,random
from apps.common.baseResp impor... | 31.046243 | 183 | 0.62614 |
8fac9ed6a463a4b70203af101a3a252ddbc496f4 | 1,911 | py | Python | logger.py | thatsIch/sublime-rainmeter | 89d67adfd0ef196360785aa2aedecb693f71e965 | [
"MIT"
] | 56 | 2015-11-16T06:45:51.000Z | 2021-12-31T10:06:55.000Z | logger.py | thatsIch/sublime-rainmeter | 89d67adfd0ef196360785aa2aedecb693f71e965 | [
"MIT"
] | 82 | 2016-11-06T01:18:50.000Z | 2021-12-15T04:37:50.000Z | logger.py | thatsIch/sublime-rainmeter | 89d67adfd0ef196360785aa2aedecb693f71e965 | [
"MIT"
] | 8 | 2015-11-26T19:28:49.000Z | 2021-03-08T22:39:26.000Z | """This module provides general methods for logging puprposes.
Basic operations are:
* info
* error
with these operations it is easier to track from where the information is printed
"""
import os
import inspect
from datetime import datetime
import sublime
__LOG = None
'''
Called automatically from ST3 if plugin... | 22.482353 | 99 | 0.682365 |
8facb2ec26a85b2474131d61a99ac332f5257a9c | 1,552 | py | Python | discordbot/utils/constants.py | juup1ter/gulag | 857c5a1581732f509b85ddb05fb89d989d05ce2a | [
"MIT"
] | null | null | null | discordbot/utils/constants.py | juup1ter/gulag | 857c5a1581732f509b85ddb05fb89d989d05ce2a | [
"MIT"
] | null | null | null | discordbot/utils/constants.py | juup1ter/gulag | 857c5a1581732f509b85ddb05fb89d989d05ce2a | [
"MIT"
] | null | null | null | from app.constants.gamemodes import GameMode
mode_2_str = {
0: "standard",
1: "taiko",
2: "catch",
3: "mania"
}
mods2str = {
"vn": "vanilla",
"rx": "relax",
"ap": "autopilot"
}
mode2gulag = {
"0.vn": 0,
"1.vn": 1,
"2.vn": 2,
"3.vn": 3,
"0.rx": 4,
"1.rx": 5,
"2.r... | 20.693333 | 54 | 0.565722 |
8fb18dd9019ef56c95d458fb46ca62af50467f38 | 4,655 | py | Python | doc_gen/doc_gen.py | alters-mit/multimodal_challenge | 1a2c6bdde290e474fa2cd6400970ef723f50ac30 | [
"MIT"
] | 1 | 2022-01-23T08:57:02.000Z | 2022-01-23T08:57:02.000Z | doc_gen/doc_gen.py | alters-mit/multimodal_challenge | 1a2c6bdde290e474fa2cd6400970ef723f50ac30 | [
"MIT"
] | null | null | null | doc_gen/doc_gen.py | alters-mit/multimodal_challenge | 1a2c6bdde290e474fa2cd6400970ef723f50ac30 | [
"MIT"
] | null | null | null | from pathlib import Path
from py_md_doc import PyMdDoc
import re
if __name__ == "__main__":
# API documentation.
md = PyMdDoc(input_directory=Path("../multimodal_challenge"), files=["dataset/dataset_trial.py",
"dataset/env_audio_materials... | 62.905405 | 120 | 0.565199 |
8fb2aab2d43bbb4a377c18a57b8bf99fa7afb6cb | 13,288 | py | Python | squidasm/sim/stack/common.py | QuTech-Delft/squidasm | 1d223a428620a2fb42a8a0e321dce732a1678f0d | [
"MIT"
] | 2 | 2022-01-16T00:25:27.000Z | 2022-01-21T13:56:45.000Z | squidasm/sim/stack/common.py | QuTech-Delft/squidasm | 1d223a428620a2fb42a8a0e321dce732a1678f0d | [
"MIT"
] | 8 | 2022-01-20T14:00:47.000Z | 2022-03-29T13:05:21.000Z | squidasm/sim/stack/common.py | QuTech-Delft/squidasm | 1d223a428620a2fb42a8a0e321dce732a1678f0d | [
"MIT"
] | 1 | 2022-01-23T18:55:47.000Z | 2022-01-23T18:55:47.000Z | import logging
from dataclasses import dataclass
from typing import Dict, Generator, List, Optional, Set, Tuple, Union
import netsquid as ns
from netqasm.lang import operand
from netqasm.lang.encoding import RegisterName
from netqasm.sdk.shared_memory import Arrays, RegisterGroup, setup_registers
from netsquid.compone... | 33.725888 | 88 | 0.620184 |
8fb3efefb1acc2f84cef71783ae8bbf501a5f8f1 | 81 | py | Python | day05/t05/apps.py | SunShuoJia/pyproject | 71f3cada463fd90243b2cdac8c982fb622f9ef9c | [
"Apache-2.0"
] | null | null | null | day05/t05/apps.py | SunShuoJia/pyproject | 71f3cada463fd90243b2cdac8c982fb622f9ef9c | [
"Apache-2.0"
] | null | null | null | day05/t05/apps.py | SunShuoJia/pyproject | 71f3cada463fd90243b2cdac8c982fb622f9ef9c | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
| 13.5 | 33 | 0.728395 |
8fb746921db0beee169291a09d57914c192dae4a | 3,599 | py | Python | rocheml/test/test_datasetgenerator.py | haydenroche5/rocheml | e081915f83697a6b95d7e13a63eb9a69e4bdde84 | [
"MIT"
] | null | null | null | rocheml/test/test_datasetgenerator.py | haydenroche5/rocheml | e081915f83697a6b95d7e13a63eb9a69e4bdde84 | [
"MIT"
] | null | null | null | rocheml/test/test_datasetgenerator.py | haydenroche5/rocheml | e081915f83697a6b95d7e13a63eb9a69e4bdde84 | [
"MIT"
] | null | null | null | import unittest
from datasetio.datasetwriter import DatasetWriter
from datasetio.datasetgenerator import DatasetGenerator
import h5py
import os
import numpy as np
import string
import random
import math
if __name__ == '__main__':
unittest.main()
| 35.284314 | 87 | 0.591275 |
8fb95897fc6132f54c3634fa070e9779aa537d0c | 990 | py | Python | tests/test_logger.py | dpa-newslab/livebridge | 2f1a05277419f6e9a77b36b4980d86eed778f9d2 | [
"Apache-2.0"
] | 3 | 2016-11-08T22:23:59.000Z | 2017-03-08T09:19:14.000Z | tests/test_logger.py | dpa-newslab/livebridge | 2f1a05277419f6e9a77b36b4980d86eed778f9d2 | [
"Apache-2.0"
] | 6 | 2017-01-09T15:56:50.000Z | 2018-06-05T10:19:30.000Z | tests/test_logger.py | dpa-newslab/livebridge | 2f1a05277419f6e9a77b36b4980d86eed778f9d2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2017 dpa-infocom GmbH
#
# 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... | 34.137931 | 74 | 0.733333 |
8fb9bcc594037c317be9de793989951eff153fd5 | 179 | py | Python | civic_scraper/scrapers/__init__.py | DiPierro/civic-scraper | de3b41f6b1609b68be75d2223f4d0c8061267246 | [
"Apache-2.0"
] | null | null | null | civic_scraper/scrapers/__init__.py | DiPierro/civic-scraper | de3b41f6b1609b68be75d2223f4d0c8061267246 | [
"Apache-2.0"
] | null | null | null | civic_scraper/scrapers/__init__.py | DiPierro/civic-scraper | de3b41f6b1609b68be75d2223f4d0c8061267246 | [
"Apache-2.0"
] | null | null | null | from .site import Site
from .civicplus import CivicPlusSite
from .granicus import GranicusSite
SUPPORTED_SITES = {
'granicus': GranicusSite,
'civicplus': CivicPlusSite,
} | 22.375 | 36 | 0.765363 |
8fba32d12111f85dc80af9dc8bb2227ff00fd5d8 | 1,814 | py | Python | tests/v2/test_parser.py | balloob/aiohue | f50478027ccf3b8ee6b804abb9fb48ea436e1561 | [
"Apache-2.0"
] | 14 | 2018-03-02T15:39:19.000Z | 2020-02-25T12:52:40.000Z | tests/v2/test_parser.py | balloob/aiohue | f50478027ccf3b8ee6b804abb9fb48ea436e1561 | [
"Apache-2.0"
] | 16 | 2018-03-19T15:02:18.000Z | 2020-02-08T02:06:07.000Z | tests/v2/test_parser.py | balloob/aiohue | f50478027ccf3b8ee6b804abb9fb48ea436e1561 | [
"Apache-2.0"
] | 14 | 2018-03-17T10:43:30.000Z | 2020-03-12T10:49:51.000Z | """Test parser functions that converts the incoming json from API into dataclass models."""
from dataclasses import dataclass
from typing import Optional
import pytest
from aiohue.util import dataclass_from_dict
def test_dataclass_from_dict():
"""Test dataclass from dict parsing."""
raw = {
"a": 1,... | 25.549296 | 91 | 0.624035 |
8fba6a4b08985a65fc7dc336160371e54cc2ae45 | 2,155 | py | Python | core/src/zeit/cms/workflow/modified.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 5 | 2019-05-16T09:51:29.000Z | 2021-05-31T09:30:03.000Z | core/src/zeit/cms/workflow/modified.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 107 | 2019-05-24T12:19:02.000Z | 2022-03-23T15:05:56.000Z | core/src/zeit/cms/workflow/modified.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 3 | 2020-08-14T11:01:17.000Z | 2022-01-08T17:32:19.000Z | from datetime import datetime
import pytz
import zeit.cms.content.dav
import zeit.cms.interfaces
import zeit.cms.workflow.interfaces
import zope.component
import zope.dublincore.interfaces
import zope.interface
MIN_DATE = datetime.min.replace(tzinfo=pytz.UTC)
| 34.206349 | 78 | 0.76891 |
8fbaf754c41ad4481aa6be8c252c4463ffd41432 | 10,141 | py | Python | bin/dm_proc_imob.py | gabiherman/datman | dcbca4981ff7bb1be536d6c62c3b27786cabdef9 | [
"Apache-2.0"
] | null | null | null | bin/dm_proc_imob.py | gabiherman/datman | dcbca4981ff7bb1be536d6c62c3b27786cabdef9 | [
"Apache-2.0"
] | null | null | null | bin/dm_proc_imob.py | gabiherman/datman | dcbca4981ff7bb1be536d6c62c3b27786cabdef9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
This analyzes imitate observe behavioural data.It could be generalized
to analyze any rapid event-related design experiment fairly easily.
Usage:
dm_proc_imob.py [options] <study>
Arguments:
<study> Name of study in system-wide configuration file.
Options:
--subject ... | 40.40239 | 176 | 0.636229 |
8fbb68c568c6e4e77d42ecc94d8fb2c6c29e37eb | 2,598 | py | Python | tests/test_directory_check_empty.py | pradyunsg/release-helper | 3c338d920d8803db13ca25fdef85c753b9612261 | [
"MIT"
] | 1 | 2022-02-23T19:23:10.000Z | 2022-02-23T19:23:10.000Z | tests/test_directory_check_empty.py | pradyunsg/release-helper | 3c338d920d8803db13ca25fdef85c753b9612261 | [
"MIT"
] | null | null | null | tests/test_directory_check_empty.py | pradyunsg/release-helper | 3c338d920d8803db13ca25fdef85c753b9612261 | [
"MIT"
] | null | null | null | from pathlib import Path
from release_helper.commands.directory_check_empty import cmd
| 27.347368 | 83 | 0.658968 |
8fbddd6698d341ba15c0546d8eddaff98692a0b3 | 1,713 | py | Python | examples/cls/v20201016/uploadlog.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 465 | 2018-04-27T09:54:59.000Z | 2022-03-29T02:18:01.000Z | examples/cls/v20201016/uploadlog.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 91 | 2018-04-27T09:48:11.000Z | 2022-03-12T08:04:04.000Z | examples/cls/v20201016/uploadlog.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 232 | 2018-05-02T08:02:46.000Z | 2022-03-30T08:02:48.000Z | # -*- coding: utf-8 -*-
import os
import sys
from tencentcloud.common import credential
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
# client models
from tencentcloud.common import common_client
from tencentcloud.common.profile.client_profile import ClientProfile
from... | 34.959184 | 95 | 0.730881 |
8fbe0c898a3e6ca3bd07184204c83e01965e71a7 | 1,746 | py | Python | collectors/spiders/committee_speech.py | alvesmatheus/fala-camarada | 47015fe95422d5f71c279e47edacdd31ea3f71b8 | [
"MIT"
] | 7 | 2021-02-11T20:36:16.000Z | 2021-02-12T17:22:05.000Z | collectors/spiders/committee_speech.py | alvesmatheus/fala-camarada | 47015fe95422d5f71c279e47edacdd31ea3f71b8 | [
"MIT"
] | null | null | null | collectors/spiders/committee_speech.py | alvesmatheus/fala-camarada | 47015fe95422d5f71c279e47edacdd31ea3f71b8 | [
"MIT"
] | null | null | null | import re
import pandas as pd
from scrapy import Spider, Request
from bs4 import BeautifulSoup
from collectors.loaders import CommitteeSpeechLoader
from collectors.utils.constants import (
COMMITTEES_SCHEDULE_PATH,
SPEECH_SPEAKER_PATTERN,
COMMITTEE_SPEECH_URL
)
| 30.103448 | 73 | 0.631157 |
8fc021d0c8051f8cee45541b0c98bbc63e0e0171 | 16,823 | py | Python | steelpy/f2uModel/mesh/sqlite/element.py | svortega/steelpy | bef35eb8ab8728fc29f57b7070b5f3bac0b0e840 | [
"MIT"
] | 4 | 2021-09-28T12:52:01.000Z | 2022-02-24T22:30:22.000Z | steelpy/f2uModel/mesh/sqlite/element.py | svortega/steelpy | bef35eb8ab8728fc29f57b7070b5f3bac0b0e840 | [
"MIT"
] | null | null | null | steelpy/f2uModel/mesh/sqlite/element.py | svortega/steelpy | bef35eb8ab8728fc29f57b7070b5f3bac0b0e840 | [
"MIT"
] | null | null | null | # Copyright (c) 2009-2022 fem2ufo
#
# Python stdlib imports
from dataclasses import dataclass
from array import array
from collections import Counter
from collections.abc import Mapping
from math import dist
from typing import NamedTuple, Tuple, List, Iterator, Iterable, Union, Dict
from itertools import chain
# pa... | 33.713427 | 97 | 0.535041 |
8fc0d6ad5b5827802c283b1aeac28939ea11fd86 | 1,256 | py | Python | tools/convert_lf.py | might-and-magic/mm678_i18n | ddc37c743ac37169908641dcd5328a7ccae5138f | [
"MIT"
] | 17 | 2020-02-25T14:37:23.000Z | 2022-02-21T15:33:09.000Z | tools/convert_lf.py | tomchen/csv2po | 75e53fbc5c473b16e8dac153ee99793fad0cd5d0 | [
"MIT"
] | 1 | 2022-01-09T02:14:56.000Z | 2022-02-13T10:08:11.000Z | tools/convert_lf.py | tomchen/csv2po | 75e53fbc5c473b16e8dac153ee99793fad0cd5d0 | [
"MIT"
] | 3 | 2020-10-06T20:38:13.000Z | 2021-02-17T02:11:17.000Z | # Batch convert LF to '\n' and vice versa
# Tool of csv2po.py
# By Tom CHEN <tomchen.org@gmail.com> (tomchen.org)
import re
from pathlib import Path
from getfilepaths import getFilePaths
# batchConvertLf(inputPath = Path('0_source/zh_CN/customlist/t'), outputPath = Path('0_source/zh_CN/customlist/t2'), SlashNTolf = F... | 44.857143 | 176 | 0.710191 |
8fc2ed7dd777338b030108cb7bb036127694653d | 5,939 | py | Python | src/semantic_segmentation/classic_trainer.py | alteia-ai/ICSS | 088ddb7a8b92c71cc0b95e55d186069b8af50b0a | [
"MIT"
] | 7 | 2022-01-10T19:04:34.000Z | 2022-03-16T03:19:48.000Z | src/semantic_segmentation/classic_trainer.py | alteia-ai/ICSS | 088ddb7a8b92c71cc0b95e55d186069b8af50b0a | [
"MIT"
] | null | null | null | src/semantic_segmentation/classic_trainer.py | alteia-ai/ICSS | 088ddb7a8b92c71cc0b95e55d186069b8af50b0a | [
"MIT"
] | null | null | null | import logging
import os
import time
from glob import glob
import cv2 as cv
import numpy as np
import pandas as pd
import torch
from src.semantic_segmentation.loaders import GTDataset, RGBIncrementalDataset
from src.semantic_segmentation.trainer import Trainer
from src.semantic_segmentation.utils.losses import CrossEn... | 42.120567 | 140 | 0.58461 |
8fc4cecc84d6adcbf94bcf44dcce76669aaebe2d | 478 | py | Python | accounts/models.py | ejolie/movie | 6cfa5d02378c216e9cf031c26d2752f029b6c010 | [
"MIT"
] | 5 | 2019-05-14T04:30:33.000Z | 2019-05-18T07:36:07.000Z | accounts/models.py | ejolie/movie | 6cfa5d02378c216e9cf031c26d2752f029b6c010 | [
"MIT"
] | 2 | 2020-06-05T20:47:28.000Z | 2021-06-10T21:27:10.000Z | accounts/models.py | ejolie/movie | 6cfa5d02378c216e9cf031c26d2752f029b6c010 | [
"MIT"
] | 2 | 2019-09-17T07:45:08.000Z | 2020-08-28T14:59:31.000Z | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.conf import settings
| 28.117647 | 88 | 0.730126 |
8fc514e61a20a24fe65d84d51d7ce87fb6c435d2 | 919 | py | Python | statistics_tickets/admin.py | Wellheor1/l2 | d980210921c545c68fe9d5522bb693d567995024 | [
"MIT"
] | 10 | 2018-03-14T06:17:06.000Z | 2022-03-10T05:33:34.000Z | statistics_tickets/admin.py | Wellheor1/l2 | d980210921c545c68fe9d5522bb693d567995024 | [
"MIT"
] | 512 | 2018-09-10T07:37:34.000Z | 2022-03-30T02:23:43.000Z | statistics_tickets/admin.py | D00dleman/l2 | 0870144537ee340cd8db053a608d731e186f02fb | [
"MIT"
] | 24 | 2018-07-31T05:52:12.000Z | 2022-02-08T00:39:41.000Z | from django.contrib import admin
from statistics_tickets.models import ResultOfTreatment, VisitPurpose, StatisticsTicket, Outcomes, ExcludePurposes, ConditionsCare, Place
admin.site.register(VisitPurpose)
admin.site.register(ResultOfTreatment)
admin.site.register(Outcomes)
admin.site.register(ExcludePurposes)
admin... | 35.346154 | 156 | 0.773667 |
8fc56b79ae9b52445ccd630cff6f04a731c8c363 | 2,706 | py | Python | src/mathenjeu/cli/openssl.py | sdpython/mathenjeu | 97fc9140ef89ac9c3c6ba46803121fd5d23eb8d1 | [
"MIT"
] | 1 | 2019-10-12T00:48:35.000Z | 2019-10-12T00:48:35.000Z | src/mathenjeu/cli/openssl.py | sdpython/mathenjeu | 97fc9140ef89ac9c3c6ba46803121fd5d23eb8d1 | [
"MIT"
] | 8 | 2019-01-13T11:52:55.000Z | 2020-11-19T01:27:28.000Z | src/mathenjeu/cli/openssl.py | sdpython/mathenjeu | 97fc9140ef89ac9c3c6ba46803121fd5d23eb8d1 | [
"MIT"
] | null | null | null | """
@file
@brief Starts an app locally to test it.
"""
from OpenSSL import crypto
def create_self_signed_cert(keyfile="key.pem", certfile="cert.pem",
country='FR', state='Paris', location='Paris',
organization='mathenjeu', cn='mathenjeu',
... | 35.142857 | 128 | 0.648189 |
8fc6fe26d0fb3306b6bcffa7399868bdf1e85079 | 600 | py | Python | ads/views.py | NubMaster68/houseSale | 171b9f3e331e9a652992365db1223c40944978da | [
"MIT"
] | null | null | null | ads/views.py | NubMaster68/houseSale | 171b9f3e331e9a652992365db1223c40944978da | [
"MIT"
] | null | null | null | ads/views.py | NubMaster68/houseSale | 171b9f3e331e9a652992365db1223c40944978da | [
"MIT"
] | null | null | null | # from django.shortcuts import render
from django.http import HttpResponse
from django.views.generic import ListView
from django.views.generic import DetailView
from django.shortcuts import render
from .models import Ad
# def index(request):
# return HttpResponse("Hello, world. You're at the polls index.") | 31.578947 | 76 | 0.755 |
8fc8cb9153d75f29f52cbd961e16ca92d1a97e91 | 1,099 | py | Python | .github/rename_to_lowercase.py | openmicroanalysis/calczaf | f95de343dae908c1b3a531b9ed24fa1f5daf3e6d | [
"MIT"
] | 1 | 2021-06-29T17:56:14.000Z | 2021-06-29T17:56:14.000Z | .github/rename_to_lowercase.py | openmicroanalysis/calczaf | f95de343dae908c1b3a531b9ed24fa1f5daf3e6d | [
"MIT"
] | 3 | 2015-12-02T22:29:35.000Z | 2019-02-21T03:30:56.000Z | .github/rename_to_lowercase.py | openmicroanalysis/calczaf | f95de343dae908c1b3a531b9ed24fa1f5daf3e6d | [
"MIT"
] | null | null | null | import os
import shutil
import argparse
if __name__ == '__main__':
main()
| 31.4 | 80 | 0.678799 |
8fcb61eebe8ee15539f00118a131def866c5523d | 2,099 | py | Python | drive.py | eshimelis/RCC | 536ec0cc8373fb7d5cd5ca59166d7e55bf6a8643 | [
"MIT"
] | null | null | null | drive.py | eshimelis/RCC | 536ec0cc8373fb7d5cd5ca59166d7e55bf6a8643 | [
"MIT"
] | null | null | null | drive.py | eshimelis/RCC | 536ec0cc8373fb7d5cd5ca59166d7e55bf6a8643 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
import numpy as np
import rospy
from rospy.numpy_msg import numpy_msg
from sensor_msgs.msg import LaserScan
from ackermann_msgs.msg import AckermannDriveStamped
########################### Ignore Code Below ###########################
if __name__ == "__main__":
rospy.init_node('wall... | 30.42029 | 76 | 0.626965 |
8fcd1b52e4ca537618ff73d6c446833b5723c14c | 32,556 | py | Python | volatility_connector.py | splunk-soar-connectors/volatility | 42b6deb77a08c88cc10dd012ef189b50f8f60d8a | [
"Apache-2.0"
] | null | null | null | volatility_connector.py | splunk-soar-connectors/volatility | 42b6deb77a08c88cc10dd012ef189b50f8f60d8a | [
"Apache-2.0"
] | null | null | null | volatility_connector.py | splunk-soar-connectors/volatility | 42b6deb77a08c88cc10dd012ef189b50f8f60d8a | [
"Apache-2.0"
] | null | null | null | # File: volatility_connector.py
#
# Copyright (c) 2014-2016 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 41.419847 | 130 | 0.629991 |
8fd08194d8b2f0502b3827d5a45622a36c8a6856 | 80 | py | Python | ideal/contrib/django/__init__.py | mvantellingen/python-ideal | fe1254ff8b8199791855b8467c80cca3563d6f68 | [
"MIT"
] | 8 | 2018-02-12T10:22:57.000Z | 2019-11-14T16:10:28.000Z | ideal/contrib/django/__init__.py | mvantellingen/python-ideal | fe1254ff8b8199791855b8467c80cca3563d6f68 | [
"MIT"
] | 5 | 2018-02-12T09:15:46.000Z | 2018-02-23T12:43:29.000Z | ideal/contrib/django/__init__.py | mvantellingen/python-ideal | fe1254ff8b8199791855b8467c80cca3563d6f68 | [
"MIT"
] | 1 | 2018-02-15T12:29:05.000Z | 2018-02-15T12:29:05.000Z | # Moved Django integration to a seperate module to serve as Django's app name.
| 40 | 79 | 0.775 |
8fd10d4b55b2a58a75c683ed15c835d168e08322 | 89 | py | Python | renting/apps.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | renting/apps.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | renting/apps.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | 3 | 2020-12-30T11:35:22.000Z | 2021-01-07T13:10:26.000Z | from django.apps import AppConfig
| 14.833333 | 33 | 0.752809 |
8fd15d8d08dc9ac65b46cdb43fd15e5581c97ffc | 127 | py | Python | stubs/asttokens/util.py | jamescooke/flake8-aaa | 9df248e10538946531b67da4564bb229a91baece | [
"MIT"
] | 44 | 2018-04-08T21:25:43.000Z | 2022-01-20T14:28:16.000Z | stubs/asttokens/util.py | jamescooke/flake8-aaa | 9df248e10538946531b67da4564bb229a91baece | [
"MIT"
] | 72 | 2018-03-30T14:30:48.000Z | 2022-03-31T16:18:16.000Z | stubs/asttokens/util.py | jamescooke/flake8-aaa | 9df248e10538946531b67da4564bb229a91baece | [
"MIT"
] | 1 | 2018-10-17T18:49:25.000Z | 2018-10-17T18:49:25.000Z | import collections
| 21.166667 | 97 | 0.740157 |
8fd1772e98d57dfc163eac7dcaf96158ad02de68 | 8,117 | py | Python | rgw/v2/tests/multisite/test_dynamic_bucket_resharding.py | viduship/ceph-qe-scripts | 886619fa6600c24cbf989d65868951b9c3decd72 | [
"MIT"
] | null | null | null | rgw/v2/tests/multisite/test_dynamic_bucket_resharding.py | viduship/ceph-qe-scripts | 886619fa6600c24cbf989d65868951b9c3decd72 | [
"MIT"
] | null | null | null | rgw/v2/tests/multisite/test_dynamic_bucket_resharding.py | viduship/ceph-qe-scripts | 886619fa6600c24cbf989d65868951b9c3decd72 | [
"MIT"
] | null | null | null | import os
import sys
sys.path.append(os.path.abspath(os.path.join(__file__, "../../../..")))
import argparse
import json
import time
import traceback
import v2.lib.resource_op as s3lib
import v2.utils.log as log
import v2.utils.utils as utils
import yaml
from v2.lib.exceptions import TestExecError
from v2.lib.read_io... | 40.585 | 104 | 0.643957 |
8fd22f3b02ea78de31bf1097cb5218ccd7460292 | 5,410 | py | Python | jsondictionary.py | gbarreiro/diccionariojson | 5918ed4b39b418592f16d2baa724c4c1f631c43b | [
"MIT"
] | null | null | null | jsondictionary.py | gbarreiro/diccionariojson | 5918ed4b39b418592f16d2baa724c4c1f631c43b | [
"MIT"
] | null | null | null | jsondictionary.py | gbarreiro/diccionariojson | 5918ed4b39b418592f16d2baa724c4c1f631c43b | [
"MIT"
] | 1 | 2020-12-29T14:11:07.000Z | 2020-12-29T14:11:07.000Z | import os
import sys
import json
from json.decoder import JSONDecodeError
# Program which manages a simple database (a Python dictionary stored in a file)
# Carga la base de datos desde el fichero de texto
nombre_archivo = 'file.json' # nombre por defecto
if(len(sys.argv)==2):
nombre_archivo = sys.argv[1] # nombr... | 40.373134 | 139 | 0.58207 |
8fd2361042e743045e38a14500beab675486954c | 8,929 | py | Python | ggpy/cruft/autocode/GdlCleaner.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | 1 | 2015-01-26T19:07:45.000Z | 2015-01-26T19:07:45.000Z | ggpy/cruft/autocode/GdlCleaner.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | ggpy/cruft/autocode/GdlCleaner.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" generated source for module GdlCleaner """
# package: org.ggp.base.util.gdl.transforms
import java.util.ArrayList
import java.util.List
import org.ggp.base.util.gdl.grammar.Gdl
import org.ggp.base.util.gdl.grammar.GdlConstant
import org.ggp.base.util.gdl.grammar.GdlDistinct
import org.ggp... | 40.586364 | 112 | 0.624482 |
8fd4993d9f2830ffd5acae8b1b2c37958dbdbbf5 | 11,205 | py | Python | create_tf_record.py | goruck/edge-tpu-train | 21608ddf19b736be2639342363ff331ca8b272f3 | [
"MIT"
] | 10 | 2020-07-28T21:00:05.000Z | 2022-02-24T13:35:46.000Z | create_tf_record.py | maxpark/edge-tpu-train | 21608ddf19b736be2639342363ff331ca8b272f3 | [
"MIT"
] | 10 | 2020-07-17T02:19:54.000Z | 2022-03-12T00:41:22.000Z | create_tf_record.py | maxpark/edge-tpu-train | 21608ddf19b736be2639342363ff331ca8b272f3 | [
"MIT"
] | 9 | 2020-10-28T01:17:58.000Z | 2022-03-31T07:34:17.000Z | """
Convert dataset to TFRecord for TF object detection training.
Example usage:
python3 create_tf_record.py \
--root_dir ./ \
--image_dir images \
--annotation_dir annotations \
--output_dir tf-record \
--dataset_name radar-ml
Only datset_name is required.
Based on:
... | 36.858553 | 119 | 0.635341 |
8fd4b63b6acd5e2ad54b41469f8ca999bd2693f8 | 1,774 | py | Python | chromium/tools/perf/benchmarks/start_with_url.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 27 | 2016-04-27T01:02:03.000Z | 2021-12-13T08:53:19.000Z | chromium/tools/perf/benchmarks/start_with_url.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 2 | 2017-03-09T09:00:50.000Z | 2017-09-21T15:48:20.000Z | chromium/tools/perf/benchmarks/start_with_url.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from benchmarks import startup2
import page_sets
from telemetry import benchmark
# Disable accessing protected member for startup2._StartupPerfBenchmark. ... | 32.851852 | 79 | 0.769448 |
8fd609f33e73003a14511ee46598d44faf2d22bd | 2,791 | py | Python | Cogs/core.py | Lustidrike/Economy-Bot | f5b989b9086d9c0834555126c275d12381dd108f | [
"MIT"
] | 2 | 2019-09-24T21:44:00.000Z | 2019-09-24T21:44:17.000Z | Cogs/core.py | Lustidrike/Economy-Bot | f5b989b9086d9c0834555126c275d12381dd108f | [
"MIT"
] | 1 | 2021-03-31T14:35:11.000Z | 2021-11-08T17:48:47.000Z | Cogs/core.py | Lustidrike/Economy-Bot | f5b989b9086d9c0834555126c275d12381dd108f | [
"MIT"
] | 1 | 2020-08-16T16:59:57.000Z | 2020-08-16T16:59:57.000Z | import logging
import discord
import datetime
import json
from operator import itemgetter
from discord.ext import commands
from os import linesep
from .base_cog import BaseCog
from conf import config
log = logging.getLogger(__name__)
def setup(bot):
"""Core cog load."""
bot.add_cog(Core(bot))
log.info("... | 32.453488 | 165 | 0.672161 |
8fd7196e944e33633b2168238c45d830dd4dee65 | 5,627 | py | Python | src/harness/cu_pass/dpa_calculator/cbsds_creator/cbsd_height_distributor/height_distribution_definitions.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | src/harness/cu_pass/dpa_calculator/cbsds_creator/cbsd_height_distributor/height_distribution_definitions.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | src/harness/cu_pass/dpa_calculator/cbsds_creator/cbsd_height_distributor/height_distribution_definitions.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import List
from cu_pass.dpa_calculator.constants import REGION_TYPE_DENSE_URBAN, REGION_TYPE_RURAL, REGION_TYPE_SUBURBAN, REGION_TYPE_URBAN
from cu_pass.dpa_calculator.helpers.list_distributor.fractional_distribution.fractional_distribution import \
FractionalDistribu... | 32.526012 | 136 | 0.696997 |
8fd73c44229c291bcccd7266f8ab8045ad9ba324 | 28,491 | py | Python | html/backend/variables.py | programmersidharth/web | e7df13308e301afc604ade82992ff4b4162d4810 | [
"MIT"
] | 1 | 2022-03-14T05:37:15.000Z | 2022-03-14T05:37:15.000Z | html/backend/variables.py | programmersidharth/web | e7df13308e301afc604ade82992ff4b4162d4810 | [
"MIT"
] | null | null | null | html/backend/variables.py | programmersidharth/web | e7df13308e301afc604ade82992ff4b4162d4810 | [
"MIT"
] | null | null | null | # icons used for filtering
ICONS = ['10k', '10mp', '11mp', '12mp', '13mp', '14mp', '15mp', '16mp', '17mp', '18mp', '19mp', '1k', '1k_plus', '1x_mobiledata', '20mp', '21mp', '22mp', '23mp', '24mp', '2k', '2k_plus', '2mp', '30fps', '30fps_select', '360', '3d_rotation', '3g_mobiledata', '3k', '3k_plus', '3mp', '3p', '4g_m... | 5,698.2 | 14,241 | 0.745183 |
8fd939c052fc4c9e9ec94a7f3786498d2183b5eb | 83 | py | Python | jaseci_core/jaseci/actions/std.py | Gim3l/jaseci | cca187ed3e6aae31514c6c0353a7844f7703d039 | [
"MIT"
] | null | null | null | jaseci_core/jaseci/actions/std.py | Gim3l/jaseci | cca187ed3e6aae31514c6c0353a7844f7703d039 | [
"MIT"
] | null | null | null | jaseci_core/jaseci/actions/std.py | Gim3l/jaseci | cca187ed3e6aae31514c6c0353a7844f7703d039 | [
"MIT"
] | null | null | null | """Built in actions for Jaseci"""
from .module.standard_actions import * # noqa
| 16.6 | 46 | 0.710843 |
8fda72af2a11ecb22d4d1d7e69668167ef276bd0 | 1,008 | py | Python | tests/test_rendering/test_delta.py | ryu57/pyHalo | 61b9ab49d76f3552f5680b2e457fbd3e49b9cc89 | [
"MIT"
] | 7 | 2020-12-09T23:58:34.000Z | 2022-03-13T12:18:32.000Z | tests/test_rendering/test_delta.py | ryu57/pyHalo | 61b9ab49d76f3552f5680b2e457fbd3e49b9cc89 | [
"MIT"
] | 8 | 2020-10-12T21:30:22.000Z | 2022-01-25T16:04:54.000Z | tests/test_rendering/test_delta.py | ryu57/pyHalo | 61b9ab49d76f3552f5680b2e457fbd3e49b9cc89 | [
"MIT"
] | 6 | 2021-06-07T16:30:41.000Z | 2022-01-12T16:58:04.000Z | import numpy.testing as npt
import pytest
import numpy as np
from pyHalo.Rendering.MassFunctions.delta import DeltaFunction
if __name__ == '__main__':
pytest.main()
| 28 | 103 | 0.638889 |
8fdacbeae6f9e86eed514fcf51543bad698647f9 | 4,716 | py | Python | LayeredGraphAPI/VisualizeGraph.py | whytestalyon/LayeredGraph | f7126d50b5d362c6e9302244de268c34ca9c31b0 | [
"Apache-2.0"
] | null | null | null | LayeredGraphAPI/VisualizeGraph.py | whytestalyon/LayeredGraph | f7126d50b5d362c6e9302244de268c34ca9c31b0 | [
"Apache-2.0"
] | 1 | 2020-03-06T16:00:11.000Z | 2020-03-06T16:00:11.000Z | LayeredGraphAPI/VisualizeGraph.py | whytestalyon/LayeredGraph | f7126d50b5d362c6e9302244de268c34ca9c31b0 | [
"Apache-2.0"
] | 2 | 2019-01-15T01:32:56.000Z | 2019-11-12T15:58:43.000Z | #!/usr/bin/env python
'''
VisualizeGraph.py
This file contains helpful sub-routines for generating images from a Random Walk run.
'''
import math
import os
import struct
from LayeredGraph import LayeredGraph
def saveGraphImage(mg, outFN, rankings=None, minWeight=0.0, drawEdgeWeights=False, nodeTypes=None):
'''
... | 43.666667 | 135 | 0.550254 |
8fdadfd6b7318f2fb0f818d5d171f52fa0f3f300 | 6,881 | py | Python | MyBot/hlt.py | ranb2002/halite | 85bce75c10ab89c563e9e5cc34e8a221fdc74f42 | [
"MIT"
] | null | null | null | MyBot/hlt.py | ranb2002/halite | 85bce75c10ab89c563e9e5cc34e8a221fdc74f42 | [
"MIT"
] | null | null | null | MyBot/hlt.py | ranb2002/halite | 85bce75c10ab89c563e9e5cc34e8a221fdc74f42 | [
"MIT"
] | null | null | null | import sys
import math
import heapq
from collections import namedtuple
from itertools import chain, zip_longest
def grouper(iterable, n, fillvalue=None):
"Collect data into fixed-length chunks or blocks"
# grouper('ABCDEFG', 3, 'x') --> ABC DEF Gxx"
args = [iter(iterable)] * n
return zip_longest(*args... | 38.657303 | 170 | 0.596425 |
8fdc77f56f8c8adbfa20a7252c3438a08642f3a4 | 934 | py | Python | tools/leetcode.143.Reorder List/leetcode.143.Reorder List.submission9.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.143.Reorder List/leetcode.143.Reorder List.submission9.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.143.Reorder List/leetcode.143.Reorder List.submission9.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param {ListNode} head
# @return {void} Do not return anything, modify head in-place instead.
def reorderList(self, head):
if not head: return
... | 934 | 934 | 0.481799 |
8fdcf04045655bc17942f9bca87ae63747446edb | 2,389 | py | Python | server/attender-mobile/api/facebook_login.py | denbedilov/SIStore | da8e6f38170959efe756bafe2f83adcf1fbb14a4 | [
"MIT"
] | null | null | null | server/attender-mobile/api/facebook_login.py | denbedilov/SIStore | da8e6f38170959efe756bafe2f83adcf1fbb14a4 | [
"MIT"
] | null | null | null | server/attender-mobile/api/facebook_login.py | denbedilov/SIStore | da8e6f38170959efe756bafe2f83adcf1fbb14a4 | [
"MIT"
] | null | null | null | __author__ = 'itamar'
import sys
from engine.facebook_logic import fb_logic
import logging
import webapp2
from engine.DAL import DAL
sys.path.insert(0, 'lib') #we need this line in order to make libraries imported from lib folder work properly
import requests
FACEBOOK_APP_ID = "683953828381840"
login = webapp2... | 32.283784 | 119 | 0.551277 |
8fdf3ea0d8d65163228f397b06ee77dbf23617ec | 806 | py | Python | signalbot/functions/trivia.py | pblaas/signalbot | 11d9b5fdcc63ddbc99ea817b0fcdb6a6d3cc42da | [
"MIT"
] | null | null | null | signalbot/functions/trivia.py | pblaas/signalbot | 11d9b5fdcc63ddbc99ea817b0fcdb6a6d3cc42da | [
"MIT"
] | null | null | null | signalbot/functions/trivia.py | pblaas/signalbot | 11d9b5fdcc63ddbc99ea817b0fcdb6a6d3cc42da | [
"MIT"
] | null | null | null | """Trivia module."""
import urllib3
import json
import random
import html
| 29.851852 | 80 | 0.635236 |
8fe00210c18d98dc5d9a994f2ffe553d62d4a261 | 1,159 | py | Python | digsby/ext/src/BuddyList/configure.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/ext/src/BuddyList/configure.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/ext/src/BuddyList/configure.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | import os
import sipconfig
#CAS: this is a win32 version, specific to my machine, provided for example.
# The name of the SIP build file generated by SIP and used by the build
# system.
build_file = "blist.sbf"
# Get the SIP configuration information.
config = sipconfig.Configuration()
# Run SIP to gene... | 36.21875 | 110 | 0.737705 |
8fe27a1949dc877c5846bcf1e9fa40cefe34e4b0 | 298 | py | Python | raspicam/__init__.py | exhuma/raspicam | 4155669a4a5e1d99d352c192771d0cdac648e25b | [
"MIT"
] | null | null | null | raspicam/__init__.py | exhuma/raspicam | 4155669a4a5e1d99d352c192771d0cdac648e25b | [
"MIT"
] | 3 | 2017-09-09T13:28:18.000Z | 2017-09-09T16:22:19.000Z | raspicam/__init__.py | exhuma/raspicam | 4155669a4a5e1d99d352c192771d0cdac648e25b | [
"MIT"
] | null | null | null | '''
This module contains shortcuts to simplify accessing package internals when
using raspicam as a form of library, or scripting it.
'''
from os.path import dirname, join
from .main import Application
with open(join(dirname(__file__), 'version.txt')) as fp:
__version__ = fp.read().strip()
| 24.833333 | 75 | 0.748322 |
8fe2df93b4941d4d43bd78c6bab5216309c20c5c | 1,196 | py | Python | apps/pageresources/models.py | aspic2/rendermaps | 517905c5f970bbb8bba87e9599be874fc0fd250d | [
"MIT"
] | null | null | null | apps/pageresources/models.py | aspic2/rendermaps | 517905c5f970bbb8bba87e9599be874fc0fd250d | [
"MIT"
] | 24 | 2018-02-21T22:51:24.000Z | 2022-03-11T23:12:25.000Z | apps/pageresources/models.py | aspic2/jobs-by-neighborhood | 517905c5f970bbb8bba87e9599be874fc0fd250d | [
"MIT"
] | null | null | null | # # -*- coding: utf-8 -*-
# from __future__ import unicode_literals
#
# from django.contrib.postgres.fields import JSONField
# from django.contrib.auth.models import User
# from .pagelists.components import COMPONENT_CHOICES
# from .pagelists.content import CONTENT_CHOICES
# from ..languages.models import LANGUAGE_CODE... | 47.84 | 104 | 0.77592 |
8fe525e1bcdcf2d80e15cfd4df2b184377d84c8c | 4,365 | py | Python | dashboard/dashboard/services/swarming_service_test.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | null | null | null | dashboard/dashboard/services/swarming_service_test.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | null | null | null | dashboard/dashboard/services/swarming_service_test.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | 1 | 2020-07-24T05:13:01.000Z | 2020-07-24T05:13:01.000Z | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import json
import mock
from dashboard.services import swarming_service
| 30.524476 | 73 | 0.666208 |
8fe528743929b197a2b3736b4bdf710fad3a15e9 | 9,871 | py | Python | m2-modified/tests/unit/picasso/test_rest.py | CCI-MOC/ABMI | 955c12ae9d2dc7afe7323f6c25f2af120f5b281a | [
"Apache-2.0"
] | null | null | null | m2-modified/tests/unit/picasso/test_rest.py | CCI-MOC/ABMI | 955c12ae9d2dc7afe7323f6c25f2af120f5b281a | [
"Apache-2.0"
] | null | null | null | m2-modified/tests/unit/picasso/test_rest.py | CCI-MOC/ABMI | 955c12ae9d2dc7afe7323f6c25f2af120f5b281a | [
"Apache-2.0"
] | null | null | null | # Tests the rest calls in picasso/rest.py
# TODO Make a TestLib and add common setup and teardown functions
import time
import unittest
from unittest import TestCase
import requests
from threading import Thread
import ims.common.config as config
config.load()
import ims.picasso.rest as rest
from ims.rpc.server.name... | 32.577558 | 79 | 0.664573 |
8fe5d7b26c0ea9f708ffcc671befa4d94503df4f | 3,199 | py | Python | ssh_tarpit/utils.py | Snawoot/ssh-tarp | 8c10f1d94497de246b37cf00cb19a5359cccc1e5 | [
"Unlicense"
] | 24 | 2019-08-23T23:45:42.000Z | 2022-03-01T04:21:19.000Z | ssh_tarpit/utils.py | Snawoot/ssh-tarp | 8c10f1d94497de246b37cf00cb19a5359cccc1e5 | [
"Unlicense"
] | 8 | 2021-03-08T15:10:06.000Z | 2021-06-16T11:04:54.000Z | ssh_tarpit/utils.py | Snawoot/ssh-tarp | 8c10f1d94497de246b37cf00cb19a5359cccc1e5 | [
"Unlicense"
] | 5 | 2021-03-13T06:49:10.000Z | 2022-02-28T09:25:22.000Z | import asyncio
import logging
import logging.handlers
import os
import queue
def raw_log_handler(verbosity, logfile=None):
if logfile:
if is_nt():
handler = logging.FileHandler(logfile)
else:
handler = logging.handlers.WatchedFileHandler(logfile)
RotateHand... | 25.388889 | 72 | 0.589872 |
8fe650bd344f12877d6483ceb013ce5a8f97a5b9 | 41,012 | py | Python | luna/gateware/interface/serdes_phy/xc7_gtp.py | shrine-maiden-heavy-industries/luna | 6e737ea004d64c0b81de13e68657fecb45f93c1b | [
"BSD-3-Clause"
] | null | null | null | luna/gateware/interface/serdes_phy/xc7_gtp.py | shrine-maiden-heavy-industries/luna | 6e737ea004d64c0b81de13e68657fecb45f93c1b | [
"BSD-3-Clause"
] | null | null | null | luna/gateware/interface/serdes_phy/xc7_gtp.py | shrine-maiden-heavy-industries/luna | 6e737ea004d64c0b81de13e68657fecb45f93c1b | [
"BSD-3-Clause"
] | null | null | null | #
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com>
# Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr>
#
# Code based in part on ``litex`` and ``liteiclink``.
# SPDX-License-Identifier: BSD-3-Clause
""" Soft PIPE backend for the Xilinx 7 Series GTP trans... | 39.510597 | 100 | 0.467961 |
8fe7efedfa8f56385459dfe830c3948c64e75c65 | 2,202 | py | Python | src/image_scripts/paper/PS_0p0V_a.py | flaviu-gostin/xrd_analysis_workflow | 47699b88d3e603ea1cc80079d59bd084a68d9bdb | [
"MIT"
] | 2 | 2020-09-11T19:49:30.000Z | 2021-11-17T09:23:49.000Z | src/image_scripts/paper/PS_0p0V_a.py | flaviu-gostin/xrd_analysis_workflow | 47699b88d3e603ea1cc80079d59bd084a68d9bdb | [
"MIT"
] | 1 | 2020-11-21T19:51:10.000Z | 2020-11-21T19:51:10.000Z | src/image_scripts/paper/PS_0p0V_a.py | flaviu-gostin/xrd_analysis_workflow | 47699b88d3e603ea1cc80079d59bd084a68d9bdb | [
"MIT"
] | null | null | null | """Create a powder diffraction figure"""
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator
import sys
sys.path.append('..')
from plot_diffraction_patterns import powder_diffr_fig
measured_patterns_dir = "../../../results/intermediate/integrated_1D/PS_0p0V_a"
reference_peaks_dir = "../../..... | 35.516129 | 80 | 0.600363 |
8fe92b1149ccbb3016a52a9201a0ef277bcf37fb | 3,319 | py | Python | applications/autocomplete/setup.py | Vishakha1990/Lambdas | 803028633f25911cbc74c28e4c1ec11276912102 | [
"Apache-2.0"
] | null | null | null | applications/autocomplete/setup.py | Vishakha1990/Lambdas | 803028633f25911cbc74c28e4c1ec11276912102 | [
"Apache-2.0"
] | null | null | null | applications/autocomplete/setup.py | Vishakha1990/Lambdas | 803028633f25911cbc74c28e4c1ec11276912102 | [
"Apache-2.0"
] | 1 | 2020-01-08T18:00:04.000Z | 2020-01-08T18:00:04.000Z | #!/usr/bin/env python
import os, sys, random, string
from common import *
import rethinkdb as r
AC = 'ac' # DB
WORDS = 'words' # TABLE
LINE = 'line' # COLUMN
WORD = 'word' # COLUMN
FREQ = 'freq' # COLUMN
PREFS = 'prefs' # TABLE
PREF = 'pref' # COLUMN
LOWER = 'lower' # COLUMN
UPPER = 'upper' # COLUMN
NGINX_EXAMPLE = 'do... | 31.609524 | 80 | 0.592347 |
8fe97bb9e8bdef14a32c685ef3d9f30bd722998a | 416 | py | Python | clusim/__init__.py | yy/clusim | 5d3081d74e08d3e42e99f27834e1f9408af222a1 | [
"MIT"
] | 2 | 2019-01-13T19:21:09.000Z | 2022-03-04T17:05:42.000Z | clusim/__init__.py | yy/clusim | 5d3081d74e08d3e42e99f27834e1f9408af222a1 | [
"MIT"
] | null | null | null | clusim/__init__.py | yy/clusim | 5d3081d74e08d3e42e99f27834e1f9408af222a1 | [
"MIT"
] | null | null | null | __package__ = 'clusim'
__title__ = 'CluSim: A python package for clustering similarity'
__description__ = 'This package implements a series of methods to compare \
disjoint, overlapping, and hierarchical clusterings.'
__copyright__ = '2017, Gates, A.J., Ahn YY'
__author__ = """\n""".join([
'Alexander J Gates ... | 27.733333 | 75 | 0.701923 |
8fe9940e44ce2241934d04f7ba6f7f4cf5081967 | 182 | py | Python | examples/a.py | alehander42/dynamo | cfaf08de4dd8d8fbb94a3514098dbf5a7ae638fe | [
"MIT"
] | 3 | 2017-12-17T19:42:46.000Z | 2019-04-14T20:26:59.000Z | examples/a.py | alehander42/dynamo | cfaf08de4dd8d8fbb94a3514098dbf5a7ae638fe | [
"MIT"
] | null | null | null | examples/a.py | alehander42/dynamo | cfaf08de4dd8d8fbb94a3514098dbf5a7ae638fe | [
"MIT"
] | null | null | null | from typing import Dict
print(z(''))
| 13 | 31 | 0.510989 |
8fe9c1240cc746c7e927be39f2fe9727d0339c7f | 88 | py | Python | segme/metric/__init__.py | shkarupa-alex/segme | d5bc0043f9e709c8ccaf8949d662bc6fd6144006 | [
"MIT"
] | 2 | 2021-05-25T18:53:00.000Z | 2021-05-26T12:11:41.000Z | segme/metric/__init__.py | shkarupa-alex/segme | d5bc0043f9e709c8ccaf8949d662bc6fd6144006 | [
"MIT"
] | null | null | null | segme/metric/__init__.py | shkarupa-alex/segme | d5bc0043f9e709c8ccaf8949d662bc6fd6144006 | [
"MIT"
] | 2 | 2021-11-21T02:39:37.000Z | 2021-12-08T07:26:56.000Z | from .conn import Conn
from .grad import Grad
from .mse import MSE
from .sad import SAD
| 17.6 | 22 | 0.772727 |
8fe9d5b16c7dbd3f606d8cb090fc50be32d7f3c4 | 219 | py | Python | lab4/hello-openfaas/handler.py | JasonShin/openfaas-for-fun | e5f0debd7efa5af492f71c2fbc47c0e74ea3254e | [
"MIT"
] | 1 | 2019-10-27T16:00:47.000Z | 2019-10-27T16:00:47.000Z | lab4/hello-openfaas/handler.py | JasonShin/openfaas-for-fun | e5f0debd7efa5af492f71c2fbc47c0e74ea3254e | [
"MIT"
] | 4 | 2018-08-24T12:31:55.000Z | 2018-08-24T12:57:52.000Z | lab4/hello-openfaas/handler.py | JasonShin/openfaas-for-fun | e5f0debd7efa5af492f71c2fbc47c0e74ea3254e | [
"MIT"
] | 1 | 2020-09-02T08:49:01.000Z | 2020-09-02T08:49:01.000Z | import os
import sys
import json
| 21.9 | 66 | 0.684932 |
8feab8882dff671c56c9fbfeba6ac87921f9199e | 8,132 | py | Python | online_main.py | samar-khanna/cs224w-project | 50b255f87fe395cb8b638ec599825af2d1fc172b | [
"MIT"
] | 2 | 2022-03-06T17:14:12.000Z | 2022-03-11T13:37:59.000Z | online_main.py | samar-khanna/cs224w-project | 50b255f87fe395cb8b638ec599825af2d1fc172b | [
"MIT"
] | null | null | null | online_main.py | samar-khanna/cs224w-project | 50b255f87fe395cb8b638ec599825af2d1fc172b | [
"MIT"
] | 2 | 2022-03-06T16:26:39.000Z | 2022-03-06T17:14:20.000Z | import os
import torch
import pickle
import argparse
import torch.optim as optim
from gnn_stack import GNNStack
from link_predictor import LinkPredictor
from torch_geometric.data import DataLoader
from ogb.linkproppred import PygLinkPropPredDataset
from train import train
from online_train import online_train
from onl... | 46.204545 | 113 | 0.65728 |
8feb7480e4bbc54978c0c32f4a7ee1a2f74788fe | 13,618 | py | Python | playground/simulation/forwardtesting/session.py | murlokito/playground | 405a7091bbfd6705db967e872ed6c4591bd892e6 | [
"MIT"
] | null | null | null | playground/simulation/forwardtesting/session.py | murlokito/playground | 405a7091bbfd6705db967e872ed6c4591bd892e6 | [
"MIT"
] | null | null | null | playground/simulation/forwardtesting/session.py | murlokito/playground | 405a7091bbfd6705db967e872ed6c4591bd892e6 | [
"MIT"
] | null | null | null | __title__ = "simulation"
__author__ = "murlux"
__copyright__ = "Copyright 2019, " + __author__
__credits__ = (__author__, )
__license__ = "MIT"
__email__ = "murlux@protonmail.com"
import bokeh.plotting
import pandas as pd
import numpy as np
import warnings
import time
import logging
from datetime import datetime as dt... | 41.773006 | 123 | 0.561463 |
8fedf3a0ec2751e741efa2d9e33434bea22c0af3 | 7,117 | py | Python | tests/test_evfuncs.py | NickleDave/evfuncs | 504b4f351f94741f1385739c281ba495766ba7f9 | [
"BSD-3-Clause"
] | 2 | 2020-07-10T00:20:44.000Z | 2021-01-14T23:45:20.000Z | tests/test_evfuncs.py | NickleDave/evfuncs | 504b4f351f94741f1385739c281ba495766ba7f9 | [
"BSD-3-Clause"
] | 13 | 2018-11-23T04:54:39.000Z | 2022-03-17T15:54:24.000Z | tests/test_evfuncs.py | NickleDave/evfuncs | 504b4f351f94741f1385739c281ba495766ba7f9 | [
"BSD-3-Clause"
] | 4 | 2018-11-24T04:38:11.000Z | 2021-06-08T14:28:59.000Z | """
test evfuncs module
"""
import os
from glob import glob
import unittest
import numpy as np
from scipy.io import loadmat
import evfuncs
if __name__ == '__main__':
unittest.main()
| 48.746575 | 90 | 0.592244 |
8fedfcce6c5ef82d8b9d1d4d5e9b552833de3e9b | 203 | py | Python | msgbot/fb_bot/parser/portal_const.py | mshvern/fbportalbot | 6674056a7aaa5bc793612684979c6f57e4d0059c | [
"Apache-2.0"
] | null | null | null | msgbot/fb_bot/parser/portal_const.py | mshvern/fbportalbot | 6674056a7aaa5bc793612684979c6f57e4d0059c | [
"Apache-2.0"
] | null | null | null | msgbot/fb_bot/parser/portal_const.py | mshvern/fbportalbot | 6674056a7aaa5bc793612684979c6f57e4d0059c | [
"Apache-2.0"
] | 1 | 2019-09-06T13:38:20.000Z | 2019-09-06T13:38:20.000Z | main_url = "http://www.portalcinema.com.ua/"
info_url = 'products/index/getinfo'
poster_url = 'uploads/products/main/'
access_token = ''
verify_token = ''
webhook_url = ''
allowed_host = ''
test_id = ''
| 22.555556 | 44 | 0.704433 |
8ff1e45352cd99cbac855e077cebbf9c64db6800 | 12,868 | py | Python | ahrs/filters/roleq.py | jaluebbe/ahrs | 4b4a33b1006e0d455a71ac8379a2697202361758 | [
"MIT"
] | null | null | null | ahrs/filters/roleq.py | jaluebbe/ahrs | 4b4a33b1006e0d455a71ac8379a2697202361758 | [
"MIT"
] | null | null | null | ahrs/filters/roleq.py | jaluebbe/ahrs | 4b4a33b1006e0d455a71ac8379a2697202361758 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Recursive Optimal Linear Estimator of Quaternion
================================================
This is a modified `OLEQ <./oleq.html>`_, where a recursive estimation of the
attitude is made with the measured angular velocity [Zhou2018]_. This
estimation is set as the initial value for th... | 38.41194 | 130 | 0.559994 |
8ff1fc7f5b6a1164af4260cd817188ff96c48ecb | 103 | py | Python | bitmovin_api_sdk/encoding/configurations/video/vp9/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/configurations/video/vp9/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/configurations/video/vp9/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.configurations.video.vp9.customdata.customdata_api import CustomdataApi
| 51.5 | 102 | 0.902913 |
8ff331bc3a412efbad4a3a5552077887b1637581 | 9,475 | py | Python | test/integration_test/test_bad_network.py | heshu-by/likelib-ws | 85987d328dc274622f4b758afa1b6af43d15564f | [
"Apache-2.0"
] | null | null | null | test/integration_test/test_bad_network.py | heshu-by/likelib-ws | 85987d328dc274622f4b758afa1b6af43d15564f | [
"Apache-2.0"
] | null | null | null | test/integration_test/test_bad_network.py | heshu-by/likelib-ws | 85987d328dc274622f4b758afa1b6af43d15564f | [
"Apache-2.0"
] | null | null | null | from tester import test_case, Env, NodeConfig, Id, TEST_CHECK, TEST_CHECK_EQUAL,\
ClientType, get_distributor_address_path, TransactionStatusCode
from time import sleep
import subprocess, os
from random import randrange
def node_transfers(client, addresses, transaction_wait, finish_address, amoun... | 46.446078 | 117 | 0.731504 |
8ff65882f9235b10adf0a5603fc7d6647c9a1d7c | 32,488 | py | Python | ambari-server/src/test/python/TestSensitiveDataEncryption.py | samyzh/ambari | ff73620da41697ed2ca9ece676f71ec9ba28a7d5 | [
"Apache-2.0"
] | 1,664 | 2015-01-03T09:35:21.000Z | 2022-03-31T04:55:24.000Z | ambari-server/src/test/python/TestSensitiveDataEncryption.py | samyzh/ambari | ff73620da41697ed2ca9ece676f71ec9ba28a7d5 | [
"Apache-2.0"
] | 3,018 | 2015-02-19T20:16:10.000Z | 2021-11-13T20:47:48.000Z | ambari-server/src/test/python/TestSensitiveDataEncryption.py | samyzh/ambari | ff73620da41697ed2ca9ece676f71ec9ba28a7d5 | [
"Apache-2.0"
] | 1,673 | 2015-01-06T14:14:42.000Z | 2022-03-31T07:22:30.000Z | '''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | 48.780781 | 203 | 0.731409 |
8ff8cf529d3b25790ac72afa6ba74a58b9621d31 | 720 | py | Python | 0-python-tutorial/09-operators08-bitwise03.py | luis2ra/py3-00-w3schools | 6bb851837f8ef9520491d13fa2c909047c9b18cf | [
"MIT"
] | null | null | null | 0-python-tutorial/09-operators08-bitwise03.py | luis2ra/py3-00-w3schools | 6bb851837f8ef9520491d13fa2c909047c9b18cf | [
"MIT"
] | null | null | null | 0-python-tutorial/09-operators08-bitwise03.py | luis2ra/py3-00-w3schools | 6bb851837f8ef9520491d13fa2c909047c9b18cf | [
"MIT"
] | null | null | null | # Demo Python Operators
'''
Python Bitwise Operators
~ NOT Inverts all the bits
'''
a = 60
b = 13
variable1 = ~a
variable2 = ~b
print("Variable 'a': ", a, "Variable 'a' en binario: ", format(a, 'b'))
print("Procesando '~a': ", variable1, "Resultado en binario: ", format(variable1, 'b'))
... | 28.8 | 87 | 0.590278 |
8ff94ac0731085a0d5493ef70f80657677ea8039 | 1,398 | py | Python | ymir/backend/src/ymir_viz/tests/controllers/test_dataset_controller.py | Zhang-SJ930104/ymir | dd6481be6f229ade4cf8fba64ef44a15357430c4 | [
"Apache-2.0"
] | 64 | 2021-11-15T03:48:00.000Z | 2022-03-25T07:08:46.000Z | ymir/backend/src/ymir_viz/tests/controllers/test_dataset_controller.py | Zhang-SJ930104/ymir | dd6481be6f229ade4cf8fba64ef44a15357430c4 | [
"Apache-2.0"
] | 35 | 2021-11-23T04:14:35.000Z | 2022-03-26T09:03:43.000Z | ymir/backend/src/ymir_viz/tests/controllers/test_dataset_controller.py | Aryalfrat/ymir | d4617ed00ef67a77ab4e1944763f608bface4be6 | [
"Apache-2.0"
] | 57 | 2021-11-11T10:15:40.000Z | 2022-03-29T07:27:54.000Z | from mir.tools.mir_storage_ops import MirStorageOps
| 29.744681 | 107 | 0.489986 |
8ffa6607a3b81463f5f6885cf5cd8b7fca56aaf9 | 489 | py | Python | oarepo_taxonomies/config.py | sulfadimetoxin/oarepo-taxonomies | b8385173614aa711a5e316c8fc24ac065b48aa3d | [
"MIT"
] | null | null | null | oarepo_taxonomies/config.py | sulfadimetoxin/oarepo-taxonomies | b8385173614aa711a5e316c8fc24ac065b48aa3d | [
"MIT"
] | 9 | 2020-08-24T08:49:15.000Z | 2021-08-05T16:45:23.000Z | oarepo_taxonomies/config.py | sulfadimetoxin/oarepo-taxonomies | b8385173614aa711a5e316c8fc24ac065b48aa3d | [
"MIT"
] | 1 | 2020-08-20T18:39:43.000Z | 2020-08-20T18:39:43.000Z | from flask_taxonomies.constants import INCLUDE_DATA, INCLUDE_ANCESTORS, INCLUDE_URL, INCLUDE_SELF, \
INCLUDE_ANCESTOR_LIST, INCLUDE_ANCESTOR_TAG, INCLUDE_PARENT, INCLUDE_LEVEL
FLASK_TAXONOMIES_REPRESENTATION = {
"taxonomy": {
'include': [INCLUDE_DATA, INCLUDE_ANCESTORS, INCLUDE_URL, INCLUDE_SELF,
... | 37.615385 | 100 | 0.705521 |
8ffb9bb104fc4ecdc1b59a3518ce4c5fd9a36d4b | 1,145 | py | Python | core/ctrl/notifications.py | prochor666/ctrl | bb6bef2dd8e0690f632be4990e8564bfe4c1e859 | [
"MIT"
] | null | null | null | core/ctrl/notifications.py | prochor666/ctrl | bb6bef2dd8e0690f632be4990e8564bfe4c1e859 | [
"MIT"
] | null | null | null | core/ctrl/notifications.py | prochor666/ctrl | bb6bef2dd8e0690f632be4990e8564bfe4c1e859 | [
"MIT"
] | null | null | null | from core import app, data, utils
from core.ctrl import mailer
| 27.261905 | 66 | 0.570306 |
8ffe8bb288c1ed075f62b6cccdeb1e96d42a84bd | 416 | py | Python | apps/tickets/migrations/0010_ticket_close_reason.py | RonaldTheodoro/tcc-simple-ticket | 1681de4c00dbc41c3c21f34a6b757062c7c9d640 | [
"MIT"
] | null | null | null | apps/tickets/migrations/0010_ticket_close_reason.py | RonaldTheodoro/tcc-simple-ticket | 1681de4c00dbc41c3c21f34a6b757062c7c9d640 | [
"MIT"
] | null | null | null | apps/tickets/migrations/0010_ticket_close_reason.py | RonaldTheodoro/tcc-simple-ticket | 1681de4c00dbc41c3c21f34a6b757062c7c9d640 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.6 on 2018-06-17 21:00
from django.db import migrations, models
| 21.894737 | 76 | 0.612981 |
8fff417bb2a35dd2af5bd1c303692887ce88c5e5 | 66 | py | Python | tests/__init__.py | collectiveacuity/jsonModel | 64aa8127f2a0d26e6bff27f70bbcdde8f6a2835b | [
"MIT"
] | 2 | 2016-02-17T20:50:39.000Z | 2017-06-20T15:34:32.000Z | tests/__init__.py | collectiveacuity/jsonModel | 64aa8127f2a0d26e6bff27f70bbcdde8f6a2835b | [
"MIT"
] | null | null | null | tests/__init__.py | collectiveacuity/jsonModel | 64aa8127f2a0d26e6bff27f70bbcdde8f6a2835b | [
"MIT"
] | null | null | null | __author__ = 'rcj1492'
__created__ = '2016.02'
__license__ = 'MIT' | 22 | 23 | 0.727273 |
8903853635f4c1e466c5c4c036f17e355da9ccf7 | 156 | py | Python | hocr_spec/__init__.py | kba/hocr-spec-python | 1d41c6f524ba709af451a1a897a805b6414547cd | [
"MIT"
] | 5 | 2017-01-17T20:13:18.000Z | 2021-03-25T18:00:28.000Z | hocr_spec/__init__.py | kba/hocr-spec-python | 1d41c6f524ba709af451a1a897a805b6414547cd | [
"MIT"
] | 4 | 2016-09-15T15:59:56.000Z | 2020-01-03T11:25:26.000Z | hocr_spec/__init__.py | kba/hocr-spec-python | 1d41c6f524ba709af451a1a897a805b6414547cd | [
"MIT"
] | 3 | 2017-05-03T10:03:25.000Z | 2017-07-19T13:47:15.000Z | # -*- coding: utf-8 -*-
"""
Classes forvalidating and parsing hOCR, close to the spec.
"""
from .spec import HocrSpec
from .validate import HocrValidator
| 19.5 | 59 | 0.711538 |
890479256d9b79890bc86482da30e3d9f405aa9f | 1,765 | py | Python | examples/message.py | smadivad/sreemessage | b9642c32bfea65ec7b523bffd7b23306b235e651 | [
"BSD-2-Clause"
] | 57 | 2015-04-07T21:20:12.000Z | 2022-03-30T17:27:48.000Z | examples/message.py | smadivad/sreemessage | b9642c32bfea65ec7b523bffd7b23306b235e651 | [
"BSD-2-Clause"
] | 33 | 2015-09-24T21:29:48.000Z | 2022-02-11T22:17:29.000Z | examples/message.py | smadivad/sreemessage | b9642c32bfea65ec7b523bffd7b23306b235e651 | [
"BSD-2-Clause"
] | 59 | 2015-01-08T13:00:13.000Z | 2022-03-09T16:55:46.000Z | #!/usr/bin/env python
import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import messagebird
# ACCESS_KEY = ''
# MESSAGE_ID = ''
try:
ACCESS_KEY
except NameError:
print('You need to set an ACCESS_KEY constant in this file')
sys.exit(1)
try:
MESSAGE_ID
except NameError:
print('Y... | 32.090909 | 74 | 0.616997 |
8904c57096c354f788916e14175c19f20d188140 | 3,147 | py | Python | fileWork.py | codedandy/imageRenamer | c7795a406fed3f424d6d2e199dd615350fe00c49 | [
"MIT"
] | null | null | null | fileWork.py | codedandy/imageRenamer | c7795a406fed3f424d6d2e199dd615350fe00c49 | [
"MIT"
] | null | null | null | fileWork.py | codedandy/imageRenamer | c7795a406fed3f424d6d2e199dd615350fe00c49 | [
"MIT"
] | null | null | null | import os
import os.path
import shutil
import urllib.parse
| 32.443299 | 109 | 0.576104 |
8904f49aef9db23d6afd2eea0a9d01ce4beef6a7 | 3,554 | py | Python | zeropdk/default_library/io.py | lightwave-lab/zeropdk | cc49eb1008c449185cf9dcdbb283ba086ebd8de0 | [
"MIT"
] | 17 | 2019-08-22T15:55:50.000Z | 2022-02-02T20:52:00.000Z | zeropdk/default_library/io.py | lightwave-lab/zeropdk | cc49eb1008c449185cf9dcdbb283ba086ebd8de0 | [
"MIT"
] | 1 | 2020-09-29T00:43:38.000Z | 2020-10-27T07:15:01.000Z | zeropdk/default_library/io.py | lightwave-lab/zeropdk | cc49eb1008c449185cf9dcdbb283ba086ebd8de0 | [
"MIT"
] | 3 | 2019-09-04T07:48:35.000Z | 2021-06-16T09:39:42.000Z | from zeropdk.pcell import (
PCell,
PCellParameter,
TypeDouble,
TypeInt,
TypeLayer,
TypePoint,
Port,
ParamContainer,
)
from zeropdk.layout import insert_shape
from zeropdk.layout.polygons import rectangle
from klayout.db import DPoint, DVector
pad_width = PCellParameter(
name="pad_w... | 27.129771 | 98 | 0.64969 |
8908edcf96eefb5b56200a032729fbdafb7498d2 | 26,374 | py | Python | MILWRM/ST.py | codyheiser/H2-tissue-labeling | 713a7580f17987f36af73562e06f25d1b92f51c4 | [
"MIT"
] | null | null | null | MILWRM/ST.py | codyheiser/H2-tissue-labeling | 713a7580f17987f36af73562e06f25d1b92f51c4 | [
"MIT"
] | null | null | null | MILWRM/ST.py | codyheiser/H2-tissue-labeling | 713a7580f17987f36af73562e06f25d1b92f51c4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Functions and classes for manipulating 10X Visium spatial transcriptomic (ST) and
histological imaging data
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import seaborn as sns
import scanpy as sc
sc.set_figure_params(dpi=1... | 36.990182 | 113 | 0.574733 |
890a5161d6eed2959007d6f815eb9b7dd35c2414 | 2,541 | py | Python | src/main.py | chanleoc/kbc_demo | 9138de9083d92f5c8bab1dfc42d3dde50544920d | [
"MIT"
] | null | null | null | src/main.py | chanleoc/kbc_demo | 9138de9083d92f5c8bab1dfc42d3dde50544920d | [
"MIT"
] | null | null | null | src/main.py | chanleoc/kbc_demo | 9138de9083d92f5c8bab1dfc42d3dde50544920d | [
"MIT"
] | 1 | 2019-02-01T19:37:30.000Z | 2019-02-01T19:37:30.000Z | "__author__ = 'Leo Chan'"
"__credits__ = 'Keboola 2019'"
"__project__ = 'kbc_demo'"
"""
Python 3 environment
"""
#import pip
#pip.main(['install', '--disable-pip-version-check', '--no-cache-dir', 'logging_gelf'])
import sys
import os
import logging
import csv
import json
import pandas as pd
import logging_gelf.form... | 23.1 | 93 | 0.69815 |