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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
305ad04b531275575806e4dde57d0281d296f3a1 | 6,267 | py | Python | file_sync_tool/__main__.py | jackd248/file-sync-tool | 68fbca562f232c2bc064f546d9eade20a2ae456f | [
"MIT"
] | null | null | null | file_sync_tool/__main__.py | jackd248/file-sync-tool | 68fbca562f232c2bc064f546d9eade20a2ae456f | [
"MIT"
] | null | null | null | file_sync_tool/__main__.py | jackd248/file-sync-tool | 68fbca562f232c2bc064f546d9eade20a2ae456f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: future_fstrings -*-
import argparse, sys, os
from collections import defaultdict
from db_sync_tool.utility import helper
# Workaround for ModuleNotFoundError
sys.path.append(os.getcwd())
from file_sync_tool import sync
def main(args={}):
"""
Main entry point for the comma... | 35.811429 | 142 | 0.529759 |
305ae15bf7af455323a06a1fee692b0e57a3736d | 3,807 | py | Python | imp/game/checks.py | philskillz-coder/uno-discord-bot | 02a3fce3df73d75d31795590dbdb93aaa1d7f268 | [
"MIT"
] | null | null | null | imp/game/checks.py | philskillz-coder/uno-discord-bot | 02a3fce3df73d75d31795590dbdb93aaa1d7f268 | [
"MIT"
] | null | null | null | imp/game/checks.py | philskillz-coder/uno-discord-bot | 02a3fce3df73d75d31795590dbdb93aaa1d7f268 | [
"MIT"
] | null | null | null | from imp.better import BetterInteraction
from discord import app_commands
from imp.better import errors
| 29.742188 | 97 | 0.656685 |
305dd0cf234605970af277d1a10677b89e0e29d1 | 1,113 | py | Python | src/backend/backend/users/migrations/0010_update_uuid_field.py | tejpratap545/E-Commerce-Application | c1aada5d86f231e5acd6ba4c6c9b88ff4b351f7a | [
"MIT"
] | null | null | null | src/backend/backend/users/migrations/0010_update_uuid_field.py | tejpratap545/E-Commerce-Application | c1aada5d86f231e5acd6ba4c6c9b88ff4b351f7a | [
"MIT"
] | 7 | 2021-08-13T23:05:47.000Z | 2022-02-27T10:23:46.000Z | src/backend/backend/users/migrations/0010_update_uuid_field.py | tejpratap545/E-Commerce-Application | c1aada5d86f231e5acd6ba4c6c9b88ff4b351f7a | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-21 15:40
from django.db import migrations, models
import uuid
| 31.8 | 106 | 0.628032 |
305fbb0c2a18407f12a620fb455d66ee0b1e4534 | 265 | py | Python | convokit/tests/run_all_tests.py | sophieball/Cornell-Conversational-Analysis-Toolkit | da65358baffc34a518114be2d94f1748f8e01240 | [
"MIT"
] | null | null | null | convokit/tests/run_all_tests.py | sophieball/Cornell-Conversational-Analysis-Toolkit | da65358baffc34a518114be2d94f1748f8e01240 | [
"MIT"
] | null | null | null | convokit/tests/run_all_tests.py | sophieball/Cornell-Conversational-Analysis-Toolkit | da65358baffc34a518114be2d94f1748f8e01240 | [
"MIT"
] | null | null | null | from unittest import TestLoader, TextTestRunner
if __name__ == "__main__":
loader = TestLoader()
tests = loader.discover('.')
testRunner = TextTestRunner()
test_results = testRunner.run(tests)
if len(test_results.errors) > 0:
exit(1)
| 22.083333 | 47 | 0.671698 |
306040770b67b2e563d4229ae099ca34c25b419e | 2,272 | py | Python | robosuite/models/robots/kinova3_robot.py | kyungjaelee/robosuite | 0d73fcca9ed8e638632f4bd7b0f1b8ebf4640fb1 | [
"MIT"
] | null | null | null | robosuite/models/robots/kinova3_robot.py | kyungjaelee/robosuite | 0d73fcca9ed8e638632f4bd7b0f1b8ebf4640fb1 | [
"MIT"
] | null | null | null | robosuite/models/robots/kinova3_robot.py | kyungjaelee/robosuite | 0d73fcca9ed8e638632f4bd7b0f1b8ebf4640fb1 | [
"MIT"
] | 1 | 2021-03-26T19:10:00.000Z | 2021-03-26T19:10:00.000Z | import numpy as np
from robosuite.models.robots.robot_model import RobotModel
from robosuite.utils.mjcf_utils import xml_path_completion
| 28.049383 | 111 | 0.602553 |
3060f3618c3f0606684933bf973ce83ebcc72262 | 10,078 | py | Python | kink_module/kink.py | SolemnMonk/KR | 07eb9541993960ed401818bb41aa52cc296181ca | [
"MIT"
] | null | null | null | kink_module/kink.py | SolemnMonk/KR | 07eb9541993960ed401818bb41aa52cc296181ca | [
"MIT"
] | null | null | null | kink_module/kink.py | SolemnMonk/KR | 07eb9541993960ed401818bb41aa52cc296181ca | [
"MIT"
] | null | null | null | import time, subprocess, os.path, re, multiprocessing, threading
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
if __name__ == "__main__":
print_warning()
| 33.151316 | 193 | 0.678309 |
3061799da4b27da8e82e9b9f427b99189cda21d4 | 981 | py | Python | indico/modules/events/models/labels.py | Nordix/indico | 8eff8f046d0cb6dcac4f5ef9750ed79a9d38acf0 | [
"MIT"
] | null | null | null | indico/modules/events/models/labels.py | Nordix/indico | 8eff8f046d0cb6dcac4f5ef9750ed79a9d38acf0 | [
"MIT"
] | null | null | null | indico/modules/events/models/labels.py | Nordix/indico | 8eff8f046d0cb6dcac4f5ef9750ed79a9d38acf0 | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
import uuid
from indico.util.locators import locator_property
fr... | 25.815789 | 68 | 0.673802 |
306394c81660e163df8c60a47a7468258af7a301 | 6,907 | py | Python | mykonos/locator/locator_element.py | monicadanesa/mykonos | 06370a4349ecaba3c2e05561da622b7174435495 | [
"MIT"
] | 17 | 2019-06-10T07:52:17.000Z | 2019-07-20T15:57:44.000Z | mykonos/locator/locator_element.py | monicadanesa/robotframework-mykonos | 06370a4349ecaba3c2e05561da622b7174435495 | [
"MIT"
] | 11 | 2019-07-23T10:05:46.000Z | 2020-09-13T17:48:26.000Z | mykonos/locator/locator_element.py | monicadanesa/robotframework-mykonos | 06370a4349ecaba3c2e05561da622b7174435495 | [
"MIT"
] | 4 | 2019-11-14T00:09:29.000Z | 2021-05-18T10:37:21.000Z | import traceback
from alog import debug, info, error
from mykonos.core.core import Core
from mykonos.keywords.management_device import ManagementDevice
from mykonos.keywords.decorators import Parallel
| 30.697778 | 98 | 0.588968 |
306405b975dfd6e8125a6538682eed7fe1f8f293 | 738 | bzl | Python | build/toolchains/helm/helm_toolchain.bzl | muhaftab/charts | fec00721c8a26047057744018926094f27e8dee5 | [
"MIT"
] | 1 | 2020-09-08T10:12:54.000Z | 2020-09-08T10:12:54.000Z | build/toolchains/helm/helm_toolchain.bzl | muhaftab/charts | fec00721c8a26047057744018926094f27e8dee5 | [
"MIT"
] | 1 | 2020-09-18T07:01:38.000Z | 2020-09-21T10:32:44.000Z | build/toolchains/helm/helm_toolchain.bzl | muhaftab/charts | fec00721c8a26047057744018926094f27e8dee5 | [
"MIT"
] | 2 | 2020-07-24T06:37:22.000Z | 2020-09-17T08:45:40.000Z | """
This module implements the helm toolchain rule.
"""
HelmInfo = provider(
doc = "Information on Helm command line tool",
fields = {
"tool": "Target pointing to Helm executable",
"cmd": "File pointing to Helm executable"
}
)
helm_toolchain = rule(
implementation = _helm_toolchain_imp... | 23.0625 | 53 | 0.579946 |
30647229a9d44d6fe36188d478ce7d532efc5085 | 1,591 | py | Python | dilemma_lib.py | idoheinemann/Prisoners-Dilemma | ad3e9b81748f19f5bb23243e118a656a60cba450 | [
"Apache-2.0"
] | 3 | 2019-12-02T21:06:28.000Z | 2020-10-31T20:22:29.000Z | dilemma_lib.py | idoheinemann/Prisoners-Dilemma | ad3e9b81748f19f5bb23243e118a656a60cba450 | [
"Apache-2.0"
] | null | null | null | dilemma_lib.py | idoheinemann/Prisoners-Dilemma | ad3e9b81748f19f5bb23243e118a656a60cba450 | [
"Apache-2.0"
] | null | null | null | import abc
from typing import NewType
from copy import copy
register, get_registered_classes = _()
LOYAL = PrisonerAction('LOYAL')
BETRAY = PrisonerAction('BETRAY')
| 24.859375 | 116 | 0.663105 |
3065e95c459ee0872b41e7f31a0bbe13e7fec613 | 2,540 | py | Python | backend/apis/family_group/serializers/memberships.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | 1 | 2020-10-17T03:39:56.000Z | 2020-10-17T03:39:56.000Z | backend/apis/family_group/serializers/memberships.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | null | null | null | backend/apis/family_group/serializers/memberships.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | null | null | null | """Serializer de los miembros de un grupo familiar"""
# Django REST Framework
from rest_framework import serializers
# Serializers
from apis.users.serializers import UserModelSerializer
from apis.pacient.serializers import PacientModelSerializer
# Models
from apis.family_group.models import Memberships
| 32.151899 | 100 | 0.670079 |
3066a68f25a0b8f12738cd73460642da98c0609a | 2,832 | py | Python | validproxy-master/proxyon.py | Zusyaku/Termux-And-Lali-Linux-V2 | b1a1b0841d22d4bf2cc7932b72716d55f070871e | [
"Apache-2.0"
] | 2 | 2021-11-17T03:35:03.000Z | 2021-12-08T06:00:31.000Z | validproxy-master/proxyon.py | Zusyaku/Termux-And-Lali-Linux-V2 | b1a1b0841d22d4bf2cc7932b72716d55f070871e | [
"Apache-2.0"
] | null | null | null | validproxy-master/proxyon.py | Zusyaku/Termux-And-Lali-Linux-V2 | b1a1b0841d22d4bf2cc7932b72716d55f070871e | [
"Apache-2.0"
] | 2 | 2021-11-05T18:07:48.000Z | 2022-02-24T21:25:07.000Z | import requests
import argparse
import sys
import os
import urllib3
import random
console_clear()
parse = argparse.ArgumentParser(description="Send request to a website using proxies to check if it's online How to: python proxyon.py proxies.txt https://www.google.com/")
parse.add_argument("proxy", type=st... | 44.952381 | 173 | 0.610876 |
30674212f78351c59efbaa9713de821666a19b18 | 157 | py | Python | pyFT/FTDate.py | lesibius/pyFT | 509bb047d629d8de5049df74e02b09fb91610347 | [
"MIT"
] | null | null | null | pyFT/FTDate.py | lesibius/pyFT | 509bb047d629d8de5049df74e02b09fb91610347 | [
"MIT"
] | null | null | null | pyFT/FTDate.py | lesibius/pyFT | 509bb047d629d8de5049df74e02b09fb91610347 | [
"MIT"
] | null | null | null | import pyFT.FTError
import datetime as dt
strfRFC3339 = '%Y-%m-%dT%H:%M:%S.000Z'
| 13.083333 | 48 | 0.707006 |
30685e05831381d8f7de6843e88f41f59b9c2942 | 1,794 | py | Python | 2017.d/1-echiquier-grain-de-ble.d/src/grain-de-ble.py | homeostasie/petits-pedestres | bf20d94a5f2b12d2bb860ebb06a6b18641271020 | [
"MIT"
] | 1 | 2018-12-29T12:46:53.000Z | 2018-12-29T12:46:53.000Z | 2017.d/1-echiquier-grain-de-ble.d/src/grain-de-ble.py | homeostasie/petits-pedestres | bf20d94a5f2b12d2bb860ebb06a6b18641271020 | [
"MIT"
] | null | null | null | 2017.d/1-echiquier-grain-de-ble.d/src/grain-de-ble.py | homeostasie/petits-pedestres | bf20d94a5f2b12d2bb860ebb06a6b18641271020 | [
"MIT"
] | null | null | null | # On est sur la premire case.
# On a un grain de bl sur la premire case.
# On a un grain de bl sur l'chquier.
# Nombre de grain de bl par case.
# case est un nombre entier.
case = 1
# Nombre de grain bl au total sur l'chiquier.
# bl est un nombre entier.
ble = 1
# Coefficient d'augmentation du nombre de grain de bl ... | 34.5 | 124 | 0.687848 |
3069fb5225d892e1d87570d254925ed6c19fd94f | 1,671 | py | Python | accencis/settings/development.py | majestylink/majestyAccencis | 41bdde6f9982980609f93a8b44bcaf06cc5f6ea6 | [
"MIT"
] | null | null | null | accencis/settings/development.py | majestylink/majestyAccencis | 41bdde6f9982980609f93a8b44bcaf06cc5f6ea6 | [
"MIT"
] | null | null | null | accencis/settings/development.py | majestylink/majestyAccencis | 41bdde6f9982980609f93a8b44bcaf06cc5f6ea6 | [
"MIT"
] | null | null | null | from .base import *
SECRET_KEY = 'zn#g)t661djs1(#p!92%#sr=2d_y3$@m_s5uxlrvobu&w&xgy0'
DEBUG = True
ALLOWED_HOSTS += ['*']
INSTALLED_APPS += [
'debug_toolbar'
]
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ]
# DEBUG TOOLBAR SETTINGS
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.versions... | 27.85 | 67 | 0.745063 |
306a20b083fb472393dc2153a102396fad358364 | 434 | py | Python | src/Zadanie2/NotesService.py | TestowanieAutomatyczneUG/laboratorium-11-LudwikaMalinowska | 1e1bd74c0d098336773d5a7cda8def04bb5f0f0f | [
"MIT"
] | null | null | null | src/Zadanie2/NotesService.py | TestowanieAutomatyczneUG/laboratorium-11-LudwikaMalinowska | 1e1bd74c0d098336773d5a7cda8def04bb5f0f0f | [
"MIT"
] | null | null | null | src/Zadanie2/NotesService.py | TestowanieAutomatyczneUG/laboratorium-11-LudwikaMalinowska | 1e1bd74c0d098336773d5a7cda8def04bb5f0f0f | [
"MIT"
] | null | null | null |
from Zadanie2.NotesStorage import NotesStorage
import math
import statistics
| 20.666667 | 49 | 0.675115 |
306cdf26d80afce00dfe95d6544446133419a557 | 39,916 | py | Python | src/baseballforecaster.py | baileymorton989/Baseball_Forecasting_and_Simulation | 78d119bbedcc37b24f66a1216b0714856ddde4ad | [
"MIT"
] | null | null | null | src/baseballforecaster.py | baileymorton989/Baseball_Forecasting_and_Simulation | 78d119bbedcc37b24f66a1216b0714856ddde4ad | [
"MIT"
] | 1 | 2020-11-22T00:00:59.000Z | 2020-11-22T00:05:28.000Z | src/baseballforecaster.py | baileymorton989/Baseball_Forecasting_and_Simulation | 78d119bbedcc37b24f66a1216b0714856ddde4ad | [
"MIT"
] | null | null | null | #for data cleaning and analysis
import pandas as pd
import numpy as np
from random import randint
#for visualization
import matplotlib.pyplot as plt
import seaborn as sns
#for directory-related functions
import os
import glob
import getpass
#for web-scraping baseball data
import pybaseball as pyb
#for drafting
... | 46.96 | 243 | 0.644478 |
306ebe216cde915b2cbdaf1d471595c016df423f | 1,654 | py | Python | Oddschecker/LineAggregator.py | Bobtron/ArbFinder | 3c86a3837a423efa4e9d049a967afa07f675f660 | [
"MIT"
] | null | null | null | Oddschecker/LineAggregator.py | Bobtron/ArbFinder | 3c86a3837a423efa4e9d049a967afa07f675f660 | [
"MIT"
] | null | null | null | Oddschecker/LineAggregator.py | Bobtron/ArbFinder | 3c86a3837a423efa4e9d049a967afa07f675f660 | [
"MIT"
] | null | null | null | from Oddschecker.Event import *
from Oddschecker import Tools as tl
from Oddschecker.Line import *
from Oddschecker.LineStorage import *
from typing import List
import pprint
pp = pprint.PrettyPrinter(indent=4)
| 37.590909 | 105 | 0.645103 |
306f85f4cf09952974e4f81b7afc73ac284ef867 | 2,437 | py | Python | Assets/Help.py | fireclawthefox/DirectGuiEditor | 5b55142c418e3d2213d00fbe0f7635881e077662 | [
"BSD-2-Clause"
] | null | null | null | Assets/Help.py | fireclawthefox/DirectGuiEditor | 5b55142c418e3d2213d00fbe0f7635881e077662 | [
"BSD-2-Clause"
] | null | null | null | Assets/Help.py | fireclawthefox/DirectGuiEditor | 5b55142c418e3d2213d00fbe0f7635881e077662 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file was created using the DirectGUI Designer
from direct.gui import DirectGuiGlobals as DGG
from direct.gui.DirectFrame import DirectFrame
from DirectGuiExtension.DirectAutoSizer import DirectAutoSizer
from DirectGuiExtension.DirectBoxSizer import DirectBoxSizer
from... | 28.670588 | 63 | 0.592121 |
3072b72e99113472148324ff54733901999cc011 | 3,080 | py | Python | SIFTS/SIFTS2Table.py | ajing/SIFTS.py | e6bfef6cd047fe90fba4cfa77b09c405ea3caa4b | [
"MIT"
] | null | null | null | SIFTS/SIFTS2Table.py | ajing/SIFTS.py | e6bfef6cd047fe90fba4cfa77b09c405ea3caa4b | [
"MIT"
] | 1 | 2015-01-16T03:45:07.000Z | 2015-01-16T03:47:36.000Z | SIFTS/SIFTS2Table.py | ajing/SIFTS.py | e6bfef6cd047fe90fba4cfa77b09c405ea3caa4b | [
"MIT"
] | null | null | null | '''
SIFTS data to a table, so I can load to MySQL database.
'''
from SIFTSXMLMapControl import processOneXML
from SIFTSXMLMapModel import XMLDIR
import os
## parameters
OUTFILE = "./SIFTS/sift_sql_table_test.txt"
#OUTDIR = "./SIFTS/sift_sql_test/"
OUTDIR = "./SIFTS/sift_sql/"
MOADPDB = "./Data/MOADPDB.txt"
MULT... | 30.49505 | 145 | 0.619805 |
3073b831845edd7913752350b4e7f79fd35cfd74 | 15,721 | py | Python | researches/img2img/probaV_SR/pvsr_model.py | loveorchids/probaV | 90bc93217d6170d81e32fabde83f9b6cc2ddce83 | [
"MIT"
] | null | null | null | researches/img2img/probaV_SR/pvsr_model.py | loveorchids/probaV | 90bc93217d6170d81e32fabde83f9b6cc2ddce83 | [
"MIT"
] | null | null | null | researches/img2img/probaV_SR/pvsr_model.py | loveorchids/probaV | 90bc93217d6170d81e32fabde83f9b6cc2ddce83 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision.models import resnet18, vgg16_bn
import omni_torch.networks.blocks as block
import researches.img2img.probaV_SR.pvsr_module as module
if __name__ == "__main__":
x = torch.randn(3, 10, 128, 128)
gt = torch.randn... | 44.917143 | 124 | 0.545194 |
307417c3a1dd36ee415424082366bc3645b8258e | 9,717 | py | Python | mediator_test.py | ssoloff/petulant-octo-adventure | b5f44d3350d332bbf8bb0a290904170babd3d5f1 | [
"MIT"
] | null | null | null | mediator_test.py | ssoloff/petulant-octo-adventure | b5f44d3350d332bbf8bb0a290904170babd3d5f1 | [
"MIT"
] | null | null | null | mediator_test.py | ssoloff/petulant-octo-adventure | b5f44d3350d332bbf8bb0a290904170babd3d5f1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import functools
import itertools
import operator
import re
if __name__ == '__main__':
mediator = Mediator()
mediator.subscribe(
lambda topic: [
print_value('notification', value)
for value in mediator.get_published_data(topic)
],
mediato... | 33.506897 | 106 | 0.689719 |
30753f46ece861cb8f01b59eafa2ab02208c5ffe | 3,116 | py | Python | Chapter10/ch10_ex5.py | leetschau/Functional-Python-Programming-Second-Edition | 650c50aaaf23c988ef78ab7a46d49d993414782f | [
"MIT"
] | 65 | 2018-04-15T00:44:42.000Z | 2022-02-20T04:11:10.000Z | Chapter10/ch10_ex5.py | zaqmoda/Functional-Python-Programming-Second-Edition | bd9d9467ef906095560a5955ebc82a360794269d | [
"MIT"
] | 1 | 2019-07-20T10:30:37.000Z | 2020-09-14T09:06:08.000Z | Chapter10/ch10_ex5.py | zaqmoda/Functional-Python-Programming-Second-Edition | bd9d9467ef906095560a5955ebc82a360794269d | [
"MIT"
] | 52 | 2018-04-12T12:51:02.000Z | 2022-03-02T18:35:50.000Z | #!/usr/bin/env python3
"""Functional Python Programming
Chapter 10, Example Set 5
"""
from collections import defaultdict
from typing import (
Iterable, Callable, Dict, List, TypeVar,
Iterator, Tuple, cast)
D_ = TypeVar("D_")
K_ = TypeVar("K_")
from itertools import groupby
def partition_s(
source: ... | 29.121495 | 71 | 0.494223 |
3079c0ec4f06a3b22ee375fd5b4cd5a9fabbb751 | 21 | py | Python | __init__.py | AnthonyJFeola/DS-Unit-3-Sprint-Challenge-1-Software-Engineering | 5a956e01828acc12b4f0580a3715974b5403a6c4 | [
"MIT"
] | 17 | 2015-06-11T21:05:11.000Z | 2021-04-23T17:54:09.000Z | __init__.py | AnthonyJFeola/DS-Unit-3-Sprint-Challenge-1-Software-Engineering | 5a956e01828acc12b4f0580a3715974b5403a6c4 | [
"MIT"
] | 134 | 2015-01-07T14:29:54.000Z | 2022-01-10T15:56:24.000Z | __init__.py | AnthonyJFeola/DS-Unit-3-Sprint-Challenge-1-Software-Engineering | 5a956e01828acc12b4f0580a3715974b5403a6c4 | [
"MIT"
] | 22 | 2015-01-30T18:30:32.000Z | 2022-01-20T20:04:10.000Z | # Nothing to see here | 21 | 21 | 0.761905 |
307bbc5138ee2f7503540b7554891898a4c7e155 | 435 | py | Python | members/crm/migrations/0017_profile_qb_realm_id.py | ocwc/ocwc-members | 3ede8e0ff830e2aaff4ae09f9aaefd3eaa83146b | [
"MIT"
] | null | null | null | members/crm/migrations/0017_profile_qb_realm_id.py | ocwc/ocwc-members | 3ede8e0ff830e2aaff4ae09f9aaefd3eaa83146b | [
"MIT"
] | 7 | 2015-11-27T15:59:52.000Z | 2022-01-13T00:38:38.000Z | members/crm/migrations/0017_profile_qb_realm_id.py | ocwc/ocwc-members | 3ede8e0ff830e2aaff4ae09f9aaefd3eaa83146b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2019-01-20 12:04
from __future__ import unicode_literals
from django.db import migrations, models
| 22.894737 | 60 | 0.627586 |
307c77254f2084d17b8268e2bb4d93a6de58e358 | 30,917 | py | Python | py/desimodel/inputs/focalplane.py | sdss/lvmmodel | 1ab52f51a172500f8a10e762c88b9929898e1b20 | [
"BSD-3-Clause"
] | null | null | null | py/desimodel/inputs/focalplane.py | sdss/lvmmodel | 1ab52f51a172500f8a10e762c88b9929898e1b20 | [
"BSD-3-Clause"
] | null | null | null | py/desimodel/inputs/focalplane.py | sdss/lvmmodel | 1ab52f51a172500f8a10e762c88b9929898e1b20 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
"""
desimodel.inputs.focalplane
==============================
Utilities for constructing a focalplane model.
"""
import os
from datetime import datetime
import re
import csv
import yaml
import configobj
import numpy as np
from as... | 39.892903 | 95 | 0.56684 |
307cbf9b8b981a34cd456414fa76110ae5e445a4 | 2,976 | py | Python | python2.7libs/hdatools/fkcontrol.py | friedasparagus/HouRig | 8ca5bdd862647ae1362b355705a22996856fa68c | [
"MIT"
] | 1 | 2020-06-14T15:25:14.000Z | 2020-06-14T15:25:14.000Z | python2.7libs/hdatools/fkcontrol.py | friedasparagus/HouRig | 8ca5bdd862647ae1362b355705a22996856fa68c | [
"MIT"
] | null | null | null | python2.7libs/hdatools/fkcontrol.py | friedasparagus/HouRig | 8ca5bdd862647ae1362b355705a22996856fa68c | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2018 Henry Sebastian Dean
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy,... | 38.649351 | 93 | 0.642137 |
061a3cd8ff460beb56fa67a12364a3d1516a4cb0 | 811 | py | Python | construct_editor/gallery/test_tbitstruct.py | jpsnyder/construct-editor | 9ad73aa89430a35f3b5bc71f965feb2e9cbb0568 | [
"MIT"
] | null | null | null | construct_editor/gallery/test_tbitstruct.py | jpsnyder/construct-editor | 9ad73aa89430a35f3b5bc71f965feb2e9cbb0568 | [
"MIT"
] | null | null | null | construct_editor/gallery/test_tbitstruct.py | jpsnyder/construct-editor | 9ad73aa89430a35f3b5bc71f965feb2e9cbb0568 | [
"MIT"
] | null | null | null | import construct as cs
import construct_typed as cst
import dataclasses
from . import GalleryItem
constr = cst.TStruct(TBitsStructTest)
gallery_item = GalleryItem(
construct=constr,
example_binarys={
"Zeros": bytes(constr.sizeof()),
},
)
| 27.033333 | 77 | 0.709001 |
061b014a06afb3ba590d492c3d6d32599d2a3f36 | 2,161 | py | Python | luafun/steamapi/api.py | Delaunay/LuaFun | bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39 | [
"BSD-3-Clause"
] | 1 | 2021-02-06T06:42:29.000Z | 2021-02-06T06:42:29.000Z | luafun/steamapi/api.py | Delaunay/LuaFun | bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39 | [
"BSD-3-Clause"
] | 6 | 2021-04-08T21:46:06.000Z | 2021-05-09T01:40:04.000Z | luafun/steamapi/api.py | Delaunay/LuaFun | bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39 | [
"BSD-3-Clause"
] | null | null | null | import time
import json
import os
| 27.35443 | 76 | 0.563165 |
061c6600f5a5c5abece665a0b8a26a932f6aee3a | 49 | py | Python | ensign_multicat/__init__.py | phoughton/ensign_multicat | 82a3b73d2af7abdda3c323ce6a6546f647666df3 | [
"MIT"
] | null | null | null | ensign_multicat/__init__.py | phoughton/ensign_multicat | 82a3b73d2af7abdda3c323ce6a6546f647666df3 | [
"MIT"
] | null | null | null | ensign_multicat/__init__.py | phoughton/ensign_multicat | 82a3b73d2af7abdda3c323ce6a6546f647666df3 | [
"MIT"
] | null | null | null | import ensign_multicat.utils
__all__ = ["utils"] | 16.333333 | 28 | 0.77551 |
061c8039533a39fbab640592d28268452289ba56 | 3,580 | py | Python | sparse_arrays.py | Digit4/randoms | f1f8d9f9b03286f157fa69042c9ac7f5f00e4dec | [
"MIT"
] | 1 | 2018-12-15T17:47:07.000Z | 2018-12-15T17:47:07.000Z | sparse_arrays.py | Digit4/randoms | f1f8d9f9b03286f157fa69042c9ac7f5f00e4dec | [
"MIT"
] | null | null | null | sparse_arrays.py | Digit4/randoms | f1f8d9f9b03286f157fa69042c9ac7f5f00e4dec | [
"MIT"
] | null | null | null | inpu = """4
aba
baba
aba
xzxb
3
aba
xzxb
ab
"""
inp = """100
lekgdisnsbfdzpqlkg
eagemhdygyv
jwvwwnrhuai
urcadmrwlqe
mpgqsvxrijpombyv
mpgqsvxrijpombyv
urcadmrwlqe
mpgqsvxrijpombyv
eagemhdygyv
eagemhdygyv
jwvwwnrhuai
urcadmrwlqe
jwvwwnrhuai
kvugevicpsdf
kvugevicpsdf
mpgqsvxrijpombyv
urcadmrwlqe
mpgqsvxrijpombyv
exdafbno... | 14.32 | 53 | 0.861732 |
061ce201158d27d7729ca028543c403f4ac3915a | 3,083 | py | Python | osdria/views/draftbar_element_view.py | soberleitner/osdriaApp | 8b4638e6edc2d265afd09098cfc4a8db34403cce | [
"MIT"
] | null | null | null | osdria/views/draftbar_element_view.py | soberleitner/osdriaApp | 8b4638e6edc2d265afd09098cfc4a8db34403cce | [
"MIT"
] | 20 | 2019-01-17T10:31:10.000Z | 2019-03-15T07:12:11.000Z | osdria/views/draftbar_element_view.py | soberleitner/osdriaApp | 8b4638e6edc2d265afd09098cfc4a8db34403cce | [
"MIT"
] | null | null | null | from math import ceil
from PySide2.QtCore import QRect, QSize, Qt, QAbstractTableModel, QMimeData, QByteArray
from PySide2.QtGui import QPainter, QStandardItemModel, QStandardItem, QPen
from PySide2.QtWidgets import *
from models.constants import PropType, MimeType
from views.draftbar_element_view_ui import Ui_DraftE... | 35.034091 | 87 | 0.687642 |
061d2fc8ba59372ef331cbe6f4a753d0c8b1969b | 1,129 | py | Python | cmds/clear_spam.py | Asperger/PCRD-DiscordBot | 832ea65ab316a5c7476cc21fdaecab762992ed2b | [
"Apache-2.0"
] | 2 | 2019-12-07T14:44:13.000Z | 2020-08-02T01:22:24.000Z | cmds/clear_spam.py | Asperger/PCRD-DiscordBot | 832ea65ab316a5c7476cc21fdaecab762992ed2b | [
"Apache-2.0"
] | 4 | 2019-07-30T17:20:42.000Z | 2019-08-01T10:22:54.000Z | cmds/clear_spam.py | Asperger/PCRD-DiscordBot | 832ea65ab316a5c7476cc21fdaecab762992ed2b | [
"Apache-2.0"
] | null | null | null | from utils.log import FileLogger
from utils.spammer import clear_spammer, get_spammer
from utils.cmds_registry import register
register(cmd="clear_spam", alias="clear_spam")
register(cmd="clear_spam", alias="cs")
| 29.710526 | 72 | 0.59256 |
0620e768a7fbf1dee0b88c0596c61846cf5102f5 | 1,333 | py | Python | neo4s/bin/neo4j.py | omerl13/neo4s | 5471818838099310a153d2c0844cc3c0f1943b79 | [
"Apache-2.0"
] | 2 | 2019-03-12T06:33:14.000Z | 2020-02-07T05:57:26.000Z | neo4s/bin/neo4j.py | omerl13/neo4s | 5471818838099310a153d2c0844cc3c0f1943b79 | [
"Apache-2.0"
] | 1 | 2019-02-22T20:49:11.000Z | 2020-06-21T08:13:29.000Z | neo4s/bin/neo4j.py | omerl13/neo4s | 5471818838099310a153d2c0844cc3c0f1943b79 | [
"Apache-2.0"
] | 4 | 2018-02-16T22:11:29.000Z | 2020-10-01T10:26:16.000Z | import json
import sys
import time
from splunklib.searchcommands import dispatch, GeneratingCommand, Configuration, Option, validators
from neo4j import GraphDatabase, basic_auth
from neo4j.graph import Node, Relationship
from fields_extractor import FieldsExtractor
dispatch(Neo4jCommand, module_name=__name__)
| 33.325 | 99 | 0.660915 |
0622be91e71ec680b6eb184671caee406ba87623 | 489 | py | Python | data_loader.py | imdeepmind/GenerateFace | a88268597a42cea87bd8179b3151a222261e64b8 | [
"MIT"
] | null | null | null | data_loader.py | imdeepmind/GenerateFace | a88268597a42cea87bd8179b3151a222261e64b8 | [
"MIT"
] | null | null | null | data_loader.py | imdeepmind/GenerateFace | a88268597a42cea87bd8179b3151a222261e64b8 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
from PIL import Image
import torch
import os | 24.45 | 71 | 0.711656 |
06252b0fe66a9a175f14444b5fc3b9a62678ea7d | 3,272 | py | Python | amo.py | aliwimo/animal_migration_opt | 2b2433da4c4d016e9903b2e6b307e7bb74778165 | [
"MIT"
] | null | null | null | amo.py | aliwimo/animal_migration_opt | 2b2433da4c4d016e9903b2e6b307e7bb74778165 | [
"MIT"
] | null | null | null | amo.py | aliwimo/animal_migration_opt | 2b2433da4c4d016e9903b2e6b307e7bb74778165 | [
"MIT"
] | null | null | null | from random import random, randint, uniform, seed
from copy import deepcopy
from math import floor
import numpy as np
POP_SIZE = 90
DIMENSION = 30
GENERATIONS = 50
BOUND = 100
UB = BOUND
LB = -BOUND
PA = [0] * POP_SIZE
BEST = []
for i in range(POP_SIZE):
PA[i... | 28.206897 | 136 | 0.56143 |
06291bcd3823b5f56cbc0312a7f61a050ba0609f | 1,789 | py | Python | restclients/test/gws/trumba_group.py | uw-it-cte/uw-restclients | 2b09348bf066e5508304401f93f281805e965af5 | [
"Apache-2.0"
] | null | null | null | restclients/test/gws/trumba_group.py | uw-it-cte/uw-restclients | 2b09348bf066e5508304401f93f281805e965af5 | [
"Apache-2.0"
] | null | null | null | restclients/test/gws/trumba_group.py | uw-it-cte/uw-restclients | 2b09348bf066e5508304401f93f281805e965af5 | [
"Apache-2.0"
] | null | null | null | from django.test import TestCase
from restclients.models.gws import GroupUser
from restclients.exceptions import DataFailureException
from restclients.gws import GWS
from restclients.test import fdao_gws_override
| 42.595238 | 124 | 0.714925 |
06299431284ea5f52f9c6bead3c645272c604cd5 | 14,196 | py | Python | src/zope/dublincore/interfaces.py | zopefoundation/zope.dublincore | c6e3478bf14e29070e5b859216a0c215b874f893 | [
"ZPL-2.1"
] | 2 | 2015-02-03T21:22:01.000Z | 2021-02-01T06:13:46.000Z | src/zope/dublincore/interfaces.py | zopefoundation/zope.dublincore | c6e3478bf14e29070e5b859216a0c215b874f893 | [
"ZPL-2.1"
] | 8 | 2015-02-03T14:16:22.000Z | 2020-11-23T07:43:59.000Z | src/zope/dublincore/interfaces.py | zopefoundation/zope.dublincore | c6e3478bf14e29070e5b859216a0c215b874f893 | [
"ZPL-2.1"
] | 1 | 2015-04-03T08:41:24.000Z | 2015-04-03T08:41:24.000Z | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 31.616927 | 79 | 0.661736 |
062a832e9b7d27b05fb83d0e43df6134bf7f85b1 | 4,894 | py | Python | crypto/crypto/models/Asset.py | barte525/RSI | 84a7d1624d6c9eb1059c4fe9a422a6a12b275653 | [
"MIT"
] | null | null | null | crypto/crypto/models/Asset.py | barte525/RSI | 84a7d1624d6c9eb1059c4fe9a422a6a12b275653 | [
"MIT"
] | 2 | 2022-03-29T11:07:58.000Z | 2022-03-29T11:08:02.000Z | crypto/crypto/models/Asset.py | barte525/RSI | 84a7d1624d6c9eb1059c4fe9a422a6a12b275653 | [
"MIT"
] | null | null | null | from urllib.request import urlopen
import json
import requests
from django.db import models
from crypto.settings import env
from django.db.utils import IntegrityError
NOT_EXIST_ERROR = "Crypto with that name and currency does not exist in database"
EXTERNAL_API_ERROR = "External api did not send correct response"
NOT_E... | 47.057692 | 107 | 0.657131 |
062c19a88175c354d2d0caed4e23bbdb6b10bc0a | 6,278 | py | Python | make_data.py | ManuelSzewc/bayes-4tops | c775171aaf4cf72a536fcc18d3f3ad146b62e499 | [
"MIT"
] | 1 | 2021-07-09T18:11:13.000Z | 2021-07-09T18:11:13.000Z | make_data.py | ManuelSzewc/bayes-4tops | c775171aaf4cf72a536fcc18d3f3ad146b62e499 | [
"MIT"
] | null | null | null | make_data.py | ManuelSzewc/bayes-4tops | c775171aaf4cf72a536fcc18d3f3ad146b62e499 | [
"MIT"
] | null | null | null | # here i make the data
import os
import sys
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import poisson, norm, bernoulli, expon, uniform, beta, gamma, multinomial
from scipy.special import digamma
import random
from scipy.special import gamma as gamma_function
from scipy.special import gammaln
fr... | 41.03268 | 159 | 0.683498 |
062d05ec7f4ede5bf2554b98ae92e77ddfe21101 | 1,268 | py | Python | tests/snacks/test_unittest_parameterized_demo.py | msakamoto-sf/pythonsnack | 20de2be963caa486f0bde68dd75cf417bd7f28b9 | [
"Apache-2.0"
] | 1 | 2020-03-12T09:38:01.000Z | 2020-03-12T09:38:01.000Z | tests/snacks/test_unittest_parameterized_demo.py | msakamoto-sf/pythonsnack | 20de2be963caa486f0bde68dd75cf417bd7f28b9 | [
"Apache-2.0"
] | null | null | null | tests/snacks/test_unittest_parameterized_demo.py | msakamoto-sf/pythonsnack | 20de2be963caa486f0bde68dd75cf417bd7f28b9 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from parameterized import parameterized, parameterized_class, param
# demonstration of wolever/parameterized
# ref: https://github.com/wolever/parameterized
# see-also:
# - http://h-miyako.hatenablog.com/entry/2017/08/16/173000
# - https://qiita.com/nittyan/items/0152a3b93e17c177... | 27.565217 | 68 | 0.567035 |
062e730b16ec1b8b6e7c14f6fd0e6b252da8a945 | 1,287 | py | Python | tests/time/TestTime.py | DuneRoot/BPL-python | 3ac1026cfc01ca5a71515caa5e352e4517cba0cc | [
"MIT"
] | null | null | null | tests/time/TestTime.py | DuneRoot/BPL-python | 3ac1026cfc01ca5a71515caa5e352e4517cba0cc | [
"MIT"
] | null | null | null | tests/time/TestTime.py | DuneRoot/BPL-python | 3ac1026cfc01ca5a71515caa5e352e4517cba0cc | [
"MIT"
] | null | null | null | import unittest
from datetime import datetime
from bpl_lib.network.Network import Network
from bpl_lib.time.Time import Time
if __name__ == "__main__":
unittest.main()
| 28.6 | 71 | 0.693085 |
0630fd5623ac3364d41b77dbb665a60b19719d76 | 16,174 | py | Python | src/Tracker/run_cmd.py | tiennvuit/AI_Challenge_HCM | 8faf8d94b9f823b8c39176a241a4820b8a0d825e | [
"MIT"
] | null | null | null | src/Tracker/run_cmd.py | tiennvuit/AI_Challenge_HCM | 8faf8d94b9f823b8c39176a241a4820b8a0d825e | [
"MIT"
] | null | null | null | src/Tracker/run_cmd.py | tiennvuit/AI_Challenge_HCM | 8faf8d94b9f823b8c39176a241a4820b8a0d825e | [
"MIT"
] | null | null | null | python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_01 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --m... | 105.712418 | 275 | 0.811797 |
063161092c104ec38426da0b6fe5b03c89983d55 | 719 | py | Python | otils/coroutine.py | MRongM/py-otils | 0320d57e0af97d558c2a3fc466463a5fbc05b7a0 | [
"MIT"
] | null | null | null | otils/coroutine.py | MRongM/py-otils | 0320d57e0af97d558c2a3fc466463a5fbc05b7a0 | [
"MIT"
] | null | null | null | otils/coroutine.py | MRongM/py-otils | 0320d57e0af97d558c2a3fc466463a5fbc05b7a0 | [
"MIT"
] | null | null | null | from gevent import monkey, pool
monkey.patch_all()
import gevent
import time
from otils.oo import _OO
import os
| 22.46875 | 96 | 0.589708 |
0631b8d0ad806a4be4c0c16f13b412e3f4650d29 | 3,275 | py | Python | flicks/base/util.py | Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695 | bf6a382913901ad193d907f022086931df0de8c4 | [
"BSD-3-Clause"
] | 1 | 2016-04-15T11:43:02.000Z | 2016-04-15T11:43:02.000Z | flicks/base/util.py | Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695 | bf6a382913901ad193d907f022086931df0de8c4 | [
"BSD-3-Clause"
] | 2 | 2015-03-03T23:02:19.000Z | 2019-03-30T04:45:51.000Z | flicks/base/util.py | Mozilla-GitHub-Standards/6f0d85288b5b0ef8beecb60345173dc14c98e40f48e1307a444ab1e08231e695 | bf6a382913901ad193d907f022086931df0de8c4 | [
"BSD-3-Clause"
] | 2 | 2016-04-15T11:43:05.000Z | 2016-04-15T11:43:15.000Z | from contextlib import contextmanager
from locale import strcoll as locale_strcoll
from django.conf import settings
from django.core.urlresolvers import NoReverseMatch
from django.http import HttpResponsePermanentRedirect, HttpResponseRedirect
from django.utils.functional import lazy
from django.utils.translation impo... | 27.521008 | 80 | 0.696183 |
0631e112bec29f16c5eb17d9c69bab9e634fcc33 | 1,203 | py | Python | backend/django/campsignup/backend/migrations/0018_auto_20200812_1752.py | Ring-deutscher-PfadfinderInnenverbande/campsignup | 1e182322d31dc41083fa06138d709eddc4f448be | [
"MIT"
] | null | null | null | backend/django/campsignup/backend/migrations/0018_auto_20200812_1752.py | Ring-deutscher-PfadfinderInnenverbande/campsignup | 1e182322d31dc41083fa06138d709eddc4f448be | [
"MIT"
] | null | null | null | backend/django/campsignup/backend/migrations/0018_auto_20200812_1752.py | Ring-deutscher-PfadfinderInnenverbande/campsignup | 1e182322d31dc41083fa06138d709eddc4f448be | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-12 17:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 42.964286 | 371 | 0.699917 |
0633cbb849caf8e543d567851abaec075c436b51 | 3,107 | py | Python | swagger_server/models/base_model_.py | Cray-HPE/uas-mgr | 94e27fd5385431865c8f9dc56520e3db086ea70d | [
"MIT"
] | null | null | null | swagger_server/models/base_model_.py | Cray-HPE/uas-mgr | 94e27fd5385431865c8f9dc56520e3db086ea70d | [
"MIT"
] | 1 | 2022-03-21T16:15:15.000Z | 2022-03-21T16:15:15.000Z | swagger_server/models/base_model_.py | Cray-HPE/uas-mgr | 94e27fd5385431865c8f9dc56520e3db086ea70d | [
"MIT"
] | null | null | null | # MIT License
#
# (C) Copyright [2020] Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the righ... | 32.705263 | 76 | 0.635983 |
06362120039684b5ad8133dd01ada10fe18a231b | 5,295 | py | Python | docs/conf.py | jojoelfe/napari | b52a136dad392c091b0008c0b8d7fcc5ef460f66 | [
"BSD-3-Clause"
] | 7 | 2018-07-03T17:35:46.000Z | 2018-11-07T15:48:58.000Z | docs/conf.py | maweigert/napari | 48cdf4d1c4bcf6f76603e90b1c0c7498e2aba6c0 | [
"BSD-3-Clause"
] | 120 | 2018-09-04T22:05:13.000Z | 2019-03-02T01:13:57.000Z | docs/conf.py | maweigert/napari | 48cdf4d1c4bcf6f76603e90b1c0c7498e2aba6c0 | [
"BSD-3-Clause"
] | 8 | 2018-09-04T21:48:26.000Z | 2019-01-29T04:48:30.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 27.722513 | 80 | 0.673466 |
06362129054b88398d186e954f7e1abffeb43b39 | 1,673 | py | Python | kaskade/kafka/mappers.py | sauljabin/kaskade | fe270821dd05459df11adaabbd5a0ea39809456e | [
"MIT"
] | 16 | 2021-10-02T02:58:17.000Z | 2022-02-13T13:09:27.000Z | kaskade/kafka/mappers.py | sauljabin/kaskade | fe270821dd05459df11adaabbd5a0ea39809456e | [
"MIT"
] | 3 | 2021-11-17T17:08:12.000Z | 2022-02-07T23:54:04.000Z | kaskade/kafka/mappers.py | sauljabin/kaskade | fe270821dd05459df11adaabbd5a0ea39809456e | [
"MIT"
] | 1 | 2021-12-22T17:15:54.000Z | 2021-12-22T17:15:54.000Z | from confluent_kafka import TopicPartition as GroupPartitionMetadata
from confluent_kafka.admin import BrokerMetadata
from confluent_kafka.admin import GroupMember as GroupMemberMetadata
from confluent_kafka.admin import GroupMetadata, PartitionMetadata, TopicMetadata
from kaskade.kafka.models import (
Broker,
... | 24.602941 | 84 | 0.680813 |
0636f8f8610af56a063a5a7490d8c2715d2866dc | 3,955 | py | Python | LunarLander/LunarLander-ELS.py | Adriel-M/OpenAI-LunarLander | 3c7da53682dbf304bd973767b7dd40d8fdc5a2a2 | [
"MIT"
] | 3 | 2017-04-26T02:00:51.000Z | 2021-09-03T17:52:13.000Z | LunarLander/LunarLander-ELS.py | Adriel-M/OpenAI-LunarLander | 3c7da53682dbf304bd973767b7dd40d8fdc5a2a2 | [
"MIT"
] | null | null | null | LunarLander/LunarLander-ELS.py | Adriel-M/OpenAI-LunarLander | 3c7da53682dbf304bd973767b7dd40d8fdc5a2a2 | [
"MIT"
] | 3 | 2017-04-30T06:56:19.000Z | 2019-08-08T19:41:43.000Z | # Evolutionary Learning Strategy Implementation
# Learn more from https://blog.openai.com/evolution-strategies/
import gym
import numpy as np
from gym import wrappers
# GLOBAL SETTINGS
RNG_SEED = 8
ENVIRONMENT = "LunarLander-v2"
POPULATION_SIZE = 100 # Population size
GENERATION_LIMIT = 100 # Max number of generati... | 28.868613 | 73 | 0.674336 |
06375e6dfdbbe7e20886c93afdf793b01347bae1 | 1,220 | py | Python | setup.py | qxuchn/ANANSE_data | f7b3f766e5fb41b265b791255594f2b23bb6aa07 | [
"MIT"
] | null | null | null | setup.py | qxuchn/ANANSE_data | f7b3f766e5fb41b265b791255594f2b23bb6aa07 | [
"MIT"
] | null | null | null | setup.py | qxuchn/ANANSE_data | f7b3f766e5fb41b265b791255594f2b23bb6aa07 | [
"MIT"
] | null | null | null | import versioneer
from setuptools import setup, find_packages
import os
DESCRIPTION = "Inference of transcription factor motif activity from single cell RNA-seq data."
with open("README.md") as f:
long_description = f.read()
setup(
name="pananse",
version=versioneer.get_version(),
long_description = ... | 30.5 | 95 | 0.643443 |
06379da7ba190aa5c83bba0f35c8dcaf9f310e0c | 2,835 | py | Python | awacs/crowd.py | MicrohexHQ/awacs | 91800082135167d1e2e24a7f14b5e5800ef17a83 | [
"BSD-2-Clause"
] | null | null | null | awacs/crowd.py | MicrohexHQ/awacs | 91800082135167d1e2e24a7f14b5e5800ef17a83 | [
"BSD-2-Clause"
] | null | null | null | awacs/crowd.py | MicrohexHQ/awacs | 91800082135167d1e2e24a7f14b5e5800ef17a83 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action as BaseAction
from aws import BaseARN
service_name = 'Amazon Mechanical Turk Crowd'
prefix = 'crowd'
ApproveAssignment = Action('ApproveAssignment')
ApproveRejectedAssignment =... | 39.375 | 70 | 0.8 |
06379df3ec70e5ef37227559abcfbef71e5d7b04 | 806 | py | Python | data/MuPoTS_skeleton/bbox_root/gen_anno.py | GUO-W/PI-Net | 0c93a05d3aa277a80101f69ad196e5d6c8edba76 | [
"MIT"
] | 2 | 2021-05-21T14:07:08.000Z | 2022-01-13T07:39:00.000Z | data/MuPoTS_skeleton/bbox_root/gen_anno.py | GUO-W/PI-Net | 0c93a05d3aa277a80101f69ad196e5d6c8edba76 | [
"MIT"
] | null | null | null | data/MuPoTS_skeleton/bbox_root/gen_anno.py | GUO-W/PI-Net | 0c93a05d3aa277a80101f69ad196e5d6c8edba76 | [
"MIT"
] | null | null | null | ##
## Software PI-Net: Pose Interacting Network for Multi-Person Monocular 3D Pose Estimation
## Copyright Inria and UPC
## Year 2021
## Contact : wen.guo@inria.fr
##
## The software PI-Net is provided under MIT License.
##
import json
with open("../data/MuPoTS-3D.json",'r') as f1:
data_dict = json.load(f1)
pr... | 27.793103 | 90 | 0.69603 |
063990bc26a9377ca8b73355cfa0d5657cc266c7 | 413 | py | Python | gist/__main__.py | TakesxiSximada/python-gist-sximada-custom | 6b77ce1d352983f657620938a3c6212a658fca7c | [
"MIT"
] | 1 | 2016-11-30T09:19:37.000Z | 2016-11-30T09:19:37.000Z | gist/__main__.py | TakesxiSximada/python-gist-sximada-custom | 6b77ce1d352983f657620938a3c6212a658fca7c | [
"MIT"
] | null | null | null | gist/__main__.py | TakesxiSximada/python-gist-sximada-custom | 6b77ce1d352983f657620938a3c6212a658fca7c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
from . import (
main,
GistError,
)
logger = logging.getLogger('gist')
if __name__ == "__main__":
try:
main()
except GistError as e:
sys.stderr.write(u"GIST: {}\n".format(e.msg))
sys.stderr.flush()
... | 17.208333 | 53 | 0.561743 |
0639d890af9f1658d5aa3ad283b2ff3b7fe8463c | 244 | py | Python | SomeParameters.py | mchtter/mucoTraining | 4f304a4fb1bdc1a63313ae31358306ce957fe6c0 | [
"MIT"
] | 1 | 2021-08-01T17:11:28.000Z | 2021-08-01T17:11:28.000Z | SomeParameters.py | mchtter/PracticePython | 4f304a4fb1bdc1a63313ae31358306ce957fe6c0 | [
"MIT"
] | null | null | null | SomeParameters.py | mchtter/PracticePython | 4f304a4fb1bdc1a63313ae31358306ce957fe6c0 | [
"MIT"
] | null | null | null | someParameters = input("Please Enter some parameters: ")
createList(someParameters)
| 17.428571 | 56 | 0.709016 |
0639f17297b10c23a342640f12b957fbbe01ccb0 | 1,788 | py | Python | section1/solution/birthday.py | koltpython/python-exercises-spring2020 | e46234601d4c77a1fe50edb405eac0ce0a8fac14 | [
"MIT"
] | 1 | 2020-02-03T06:49:01.000Z | 2020-02-03T06:49:01.000Z | section1/solution/birthday.py | koltpython/python-exercises-spring2020 | e46234601d4c77a1fe50edb405eac0ce0a8fac14 | [
"MIT"
] | null | null | null | section1/solution/birthday.py | koltpython/python-exercises-spring2020 | e46234601d4c77a1fe50edb405eac0ce0a8fac14 | [
"MIT"
] | null | null | null | """
Write a program that first takes the year, month (as integer), and day of the user's birth date from console.
Then, calculate and print on which day of the year the user has been born.
You can assume user will enter a valid value for all inputs.
Example:
Enter your birth year: 1998
Enter your birth month as integer... | 30.827586 | 109 | 0.671141 |
063a97be1e9e1c03de20d76e87c85a9df7c3ed25 | 2,500 | py | Python | .leetcode/729.my-calendar-i.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/729.my-calendar-i.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/729.my-calendar-i.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | # @lc app=leetcode id=729 lang=python3
#
# [729] My Calendar I
#
# https://leetcode.com/problems/my-calendar-i/description/
#
# algorithms
# Medium (54.39%)
# Likes: 1642
# Dislikes: 54
# Total Accepted: 130.7K
# Total Submissions: 239.1K
# Testcase Example: '["MyCalendar","book","book","book"]\n[[],[10,20],[15,... | 22.727273 | 88 | 0.638 |
063ba6167fbf8f1c60f6d0a44a0954bc74ba9052 | 821 | py | Python | Priya/Array/first_repeating/first_repeating.py | LetsUpgrade/Algorithmic-Treasure | 0d074c17c533a7c66ebab6b3de3a91b1017750d5 | [
"MIT"
] | 13 | 2020-08-04T15:26:21.000Z | 2021-11-26T16:06:49.000Z | Priya/Array/first_repeating/first_repeating.py | LetsUpgrade/Algorithmic-Treasure | 0d074c17c533a7c66ebab6b3de3a91b1017750d5 | [
"MIT"
] | 19 | 2020-07-27T05:41:56.000Z | 2020-10-26T01:52:44.000Z | Priya/Array/first_repeating/first_repeating.py | LetsUpgrade/Algorithmic-Treasure | 0d074c17c533a7c66ebab6b3de3a91b1017750d5 | [
"MIT"
] | 20 | 2020-07-25T14:12:21.000Z | 2021-09-12T07:43:08.000Z |
#Drivers code
arr = [10, 5, 3, 4, 3, 5, 6]
n = len(arr)
print(first_repeating(n,arr))
| 25.65625 | 67 | 0.556638 |
063bab1adb43da3cb133bbb36d0616f1e280424d | 1,162 | py | Python | tests/utils/wait.py | shenganzhang/citrine-python | 43bde84024b32a5efd4ba3fe58532fb2188438f4 | [
"Apache-2.0"
] | 23 | 2019-11-01T23:52:53.000Z | 2022-03-12T23:51:42.000Z | tests/utils/wait.py | shenganzhang/citrine-python | 43bde84024b32a5efd4ba3fe58532fb2188438f4 | [
"Apache-2.0"
] | 289 | 2019-09-09T22:48:32.000Z | 2022-03-25T16:56:03.000Z | tests/utils/wait.py | shenganzhang/citrine-python | 43bde84024b32a5efd4ba3fe58532fb2188438f4 | [
"Apache-2.0"
] | 8 | 2019-10-30T18:51:26.000Z | 2021-10-06T03:36:34.000Z | from time import time, sleep
from typing import List, Optional, Callable
def wait_until(condition, timeout=30, interval=0.5):
"""Poll at the specified interval until the provided condition is truthy or the timeout (in seconds) is reached."""
start = time()
result = condition()
while not result and ti... | 32.277778 | 119 | 0.646299 |
063cd68082be1f00b8a1af6e28a9e488732954d9 | 1,375 | py | Python | submissions/day07.py | ShreyGupta19/advent-of-code | ba994238ec97d067e4c2d2e60ca10586affbc1cf | [
"MIT"
] | null | null | null | submissions/day07.py | ShreyGupta19/advent-of-code | ba994238ec97d067e4c2d2e60ca10586affbc1cf | [
"MIT"
] | null | null | null | submissions/day07.py | ShreyGupta19/advent-of-code | ba994238ec97d067e4c2d2e60ca10586affbc1cf | [
"MIT"
] | null | null | null | import re
from collections import defaultdict
from advent import AdventProblem
if __name__ == '__main__':
part1 = AdventProblem(7, 1, preprocess)
part1.add_solution(part_1)
part1.run()
part2 = AdventProblem(7, 2, preprocess)
part2.add_solution(part_2)
part2.run()
| 25.943396 | 71 | 0.619636 |
063d56505dc1050ff72634ce0ecddfba99cf6688 | 5,657 | py | Python | app/__init__.py | JChiyah/crwiz | 28ee52cf98d855c151777fff3c6c6cc92847a88b | [
"BSD-3-Clause"
] | 3 | 2020-03-16T05:39:11.000Z | 2021-12-29T11:39:03.000Z | app/__init__.py | JChiyah/crwiz | 28ee52cf98d855c151777fff3c6c6cc92847a88b | [
"BSD-3-Clause"
] | 1 | 2021-05-13T10:22:05.000Z | 2021-06-29T11:05:10.000Z | app/__init__.py | JChiyah/crwiz | 28ee52cf98d855c151777fff3c6c6cc92847a88b | [
"BSD-3-Clause"
] | 1 | 2020-06-14T23:30:12.000Z | 2020-06-14T23:30:12.000Z | import os
import sys
import time
import subprocess
import logging.config
from logging import getLogger
from flask import Flask, request, flash, jsonify, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager, current_user
import flask_socketio
from flask_socketio import SocketIO... | 33.473373 | 95 | 0.627188 |
063e13bf2ce6c4edc08115cbb9753dd7a43dbb94 | 5,263 | py | Python | tests/test_04_dxf_high_level_structs/test_410_table.py | Gmadges/ezdxf | ad4f8329cfb75035ffff94f8529a4d79269ddfc9 | [
"MIT"
] | 515 | 2017-01-25T05:46:52.000Z | 2022-03-29T09:52:27.000Z | tests/test_04_dxf_high_level_structs/test_410_table.py | triroakenshield/ezdxf | 82e964a574bcb86febc677bd63f1626318f51caf | [
"MIT"
] | 417 | 2017-01-25T10:01:17.000Z | 2022-03-29T09:22:04.000Z | tests/test_04_dxf_high_level_structs/test_410_table.py | triroakenshield/ezdxf | 82e964a574bcb86febc677bd63f1626318f51caf | [
"MIT"
] | 149 | 2017-02-01T15:52:02.000Z | 2022-03-17T10:33:38.000Z | # Copyright (c) 2011-2021, Manfred Moitzi
# License: MIT License
import pytest
import ezdxf
from ezdxf.tools.test import load_entities
from ezdxf.sections.table import Table
from ezdxf.lldxf.tagwriter import TagCollector
def test_load_table_with_invalid_table_entry():
"""This LAYERS table has an invalid APPID... | 13.741514 | 74 | 0.693331 |
063e4246702ea50135ee3186ee1014248eac5fdc | 3,383 | py | Python | xu/compa/Parapluie/src/StickyWindow/PMessage.py | sonnts996/XuCompa-Request | f343e7bfd1b4263eb76438c96d347c549cc75ce3 | [
"Apache-2.0"
] | null | null | null | xu/compa/Parapluie/src/StickyWindow/PMessage.py | sonnts996/XuCompa-Request | f343e7bfd1b4263eb76438c96d347c549cc75ce3 | [
"Apache-2.0"
] | null | null | null | xu/compa/Parapluie/src/StickyWindow/PMessage.py | sonnts996/XuCompa-Request | f343e7bfd1b4263eb76438c96d347c549cc75ce3 | [
"Apache-2.0"
] | null | null | null | from PyQt5.QtCore import QRect, Qt
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QPushButton, QHBoxLayout, QLabel, QSizePolicy
from xu.compa.Parapluie import Parapluie
from xu.compa.Parapluie.src.StickyWindow.PSticky import PSticky
| 38.443182 | 100 | 0.64026 |
063ecdd8605df495112b13a2da80d77dcfb6798e | 3,151 | py | Python | tests/controllers/test_user.py | narutox900/GotItOnboardFinal | 32d4c186adb1ac0cb0cd719f4a3aa8d5e85ea07b | [
"MIT"
] | null | null | null | tests/controllers/test_user.py | narutox900/GotItOnboardFinal | 32d4c186adb1ac0cb0cd719f4a3aa8d5e85ea07b | [
"MIT"
] | null | null | null | tests/controllers/test_user.py | narutox900/GotItOnboardFinal | 32d4c186adb1ac0cb0cd719f4a3aa8d5e85ea07b | [
"MIT"
] | null | null | null | from tests.utils import request
from app.utils.messages.message import USERNAME_DUPLICATED, INVALID_CREDENTIALS
| 29.726415 | 79 | 0.550619 |
0641ac44610ac8e7ab5e226d8f0fb5f9e2ca8671 | 3,366 | py | Python | demo.py | nuzillard/SDFrw | 30f602d56b0b0ed275d452580e791b58d7ed03d0 | [
"MIT"
] | 1 | 2020-04-21T23:55:30.000Z | 2020-04-21T23:55:30.000Z | demo.py | nuzillard/SDFrw | 30f602d56b0b0ed275d452580e791b58d7ed03d0 | [
"MIT"
] | null | null | null | demo.py | nuzillard/SDFrw | 30f602d56b0b0ed275d452580e791b58d7ed03d0 | [
"MIT"
] | null | null | null | """
Demo for the sdfrw.py module.
Performs a few transformation on file "flavonoids.sdf"
and writes the result in "qualified_flavonoids.sdf",
then queries molecules for the value of the No_CE property
"""
import sdfrw
# for SDF file handling
data1 = """Name quercetine
No_CAS 117-39-5
No_ECHA 100.003.807
No_CE 204-187... | 33.326733 | 105 | 0.740642 |
064201ab68fe8026b9f8054b2d6766bf8202e591 | 9,582 | py | Python | data_api/api.py | xpenalosa/Degree-Final-Project | 5d6c1a6aa034c41bf88ae0c8b16d7c0ddb0c3eec | [
"Unlicense"
] | null | null | null | data_api/api.py | xpenalosa/Degree-Final-Project | 5d6c1a6aa034c41bf88ae0c8b16d7c0ddb0c3eec | [
"Unlicense"
] | null | null | null | data_api/api.py | xpenalosa/Degree-Final-Project | 5d6c1a6aa034c41bf88ae0c8b16d7c0ddb0c3eec | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
import logging
from datetime import datetime, timedelta
import json
import re
from kazoo.client import KazooClient
from kazoo.recipe.lock import Lock, ReadLock
from kazoo.exceptions import LockTimeout, NoNodeError
from data_api.errors import DataApiErrors, DataApiException
| 28.099707 | 68 | 0.704863 |
06432a9ae3ddf394b29d14f75efa38ac4182c572 | 1,618 | py | Python | Week3code/Greedy_by_others.py | SedahMo/find_hidden_messages_in_dna | e01655ee537cea453978fe31742b9b907f3460df | [
"MIT"
] | 1 | 2021-07-20T20:28:30.000Z | 2021-07-20T20:28:30.000Z | Week3code/Greedy_by_others.py | SedahMo/find_hidden_messages_in_dna | e01655ee537cea453978fe31742b9b907f3460df | [
"MIT"
] | null | null | null | Week3code/Greedy_by_others.py | SedahMo/find_hidden_messages_in_dna | e01655ee537cea453978fe31742b9b907f3460df | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 11 18:30:27 2021
@author: babemomo
"""
import time
if __name__ == "__main__":
with open(input('Please input the path and press enter: \n')) as f:
line_list = f.read().splitlines()
params = line_list.pop(0).split()
k = i... | 29.418182 | 93 | 0.622991 |
06439ab6920978b01cbf2f3a36b961c6dad65490 | 1,504 | py | Python | training.py | lishuoleo/dynamic_risk_assessment | 18d91245d8b38954db69563fd74a2383c9a71541 | [
"MIT"
] | null | null | null | training.py | lishuoleo/dynamic_risk_assessment | 18d91245d8b38954db69563fd74a2383c9a71541 | [
"MIT"
] | null | null | null | training.py | lishuoleo/dynamic_risk_assessment | 18d91245d8b38954db69563fd74a2383c9a71541 | [
"MIT"
] | null | null | null | import pandas as pd
import pickle
import os
from sklearn.linear_model import LogisticRegression
import json
# Load config.json and get path variables
with open('config.json', 'r') as f:
config = json.load(f)
dataset_csv_path = os.path.join(os.getcwd(), config['output_folder_path'])
model_path = os.path.join(os.ge... | 33.422222 | 86 | 0.658245 |
06485e93e5d509808935b9e7dff59c8e973fb02c | 1,228 | py | Python | initialisations/onoda_base.py | simonharris/pycluster | 4d47eb12a2bbaf1b05d7ccfd0cfc9ccf78ddf86d | [
"MIT"
] | 1 | 2019-05-01T00:10:12.000Z | 2019-05-01T00:10:12.000Z | initialisations/onoda_base.py | simonharris/pycluster | 4d47eb12a2bbaf1b05d7ccfd0cfc9ccf78ddf86d | [
"MIT"
] | 3 | 2020-11-12T12:36:00.000Z | 2021-06-18T12:46:59.000Z | initialisations/onoda_base.py | simonharris/pycluster | 4d47eb12a2bbaf1b05d7ccfd0cfc9ccf78ddf86d | [
"MIT"
] | 1 | 2021-12-30T01:32:32.000Z | 2021-12-30T01:32:32.000Z | """
Onoda 2012 ICA- and PCA-based algorithm
See: Careful seeding method based on independent components analysis for
k-means clustering
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.663.5343&rep=rep1&type=pdf#page=53
"""
from abc import abstractmethod
import numpy as np
from initialisations.base import ... | 26.12766 | 91 | 0.678339 |
064883efa233d261f894cf8a10184a06877f58e3 | 597 | py | Python | applications/TrilinosApplication/tests/test_trilinos_matrix.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/TrilinosApplication/tests/test_trilinos_matrix.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/TrilinosApplication/tests/test_trilinos_matrix.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | import KratosMultiphysics.KratosUnittest as KratosUnittest
import KratosMultiphysics
import KratosMultiphysics.TrilinosApplication as KratosTrilinos
if __name__ == '__main__':
KratosUnittest.main() | 33.166667 | 104 | 0.763819 |
06493cee11ad3a405b5ad3a9b8450aa1f08da1c4 | 3,952 | py | Python | STORE/Pong/main.py | iTecAI/Derpi-Apps | 9c76a6034000bbce299ca3c2c9423faecdd8d87a | [
"MIT"
] | null | null | null | STORE/Pong/main.py | iTecAI/Derpi-Apps | 9c76a6034000bbce299ca3c2c9423faecdd8d87a | [
"MIT"
] | null | null | null | STORE/Pong/main.py | iTecAI/Derpi-Apps | 9c76a6034000bbce299ca3c2c9423faecdd8d87a | [
"MIT"
] | null | null | null | #lib import
import sys, os, random, time
sys.path.append('..\\..\\')
import derpapi
import pygame
RUN = False
#screen init
try:
pygame.init()
except:
pygame.display.init()
main()
pygame.display.quit()
| 32.661157 | 108 | 0.489879 |
0649416e59c002f159dae001d775831978782720 | 3,935 | py | Python | final_16042020/final_alessandro-reggiani.py | allereggiani22/programming_alessandro_reggiani | 4b8f9ee1805a29cc6cd3a8b8d93bda5a7efb97ea | [
"MIT"
] | 1 | 2020-01-13T13:46:48.000Z | 2020-01-13T13:46:48.000Z | final_16042020/final_alessandro-reggiani.py | allereggiani22/programming_alessandro_reggiani | 4b8f9ee1805a29cc6cd3a8b8d93bda5a7efb97ea | [
"MIT"
] | null | null | null | final_16042020/final_alessandro-reggiani.py | allereggiani22/programming_alessandro_reggiani | 4b8f9ee1805a29cc6cd3a8b8d93bda5a7efb97ea | [
"MIT"
] | null | null | null | """
Pseudocode:
-import s1, s2, BLOSUM62 from input_data.py
-def function that takes as input s1, s2, BLOSUM and gap value to return F (SW) and P matrices
-defining F and P and filling with 0s, no need to initialise first row/column
-iterate SW algorithm
-return F,P
-def function that take F, P, s1 and s2 a... | 43.241758 | 117 | 0.613723 |
0649cdda8f8c70edab2be6582f4b188914304838 | 352 | py | Python | desafio32.py | lucasmc64/Curso_de_Python_CeV | aed942828913ff405941a7d86fb65ddcc79c414d | [
"MIT"
] | 1 | 2021-02-19T05:13:32.000Z | 2021-02-19T05:13:32.000Z | desafio32.py | lucasmc64/python_cev | aed942828913ff405941a7d86fb65ddcc79c414d | [
"MIT"
] | null | null | null | desafio32.py | lucasmc64/python_cev | aed942828913ff405941a7d86fb65ddcc79c414d | [
"MIT"
] | null | null | null | from datetime import date
print('{} DESAFIO 32 {}'.format('='*10, '='*10))
ano = int(input('Digite um ano qualquer (Ou 0 se quiser a anlise do ano atual): '))
if ano == 0:
ano = date.today().year
if ano % 4 == 0 and ano != 100 or ano % 400 == 0:
print('O ano {} BISSEXTO!'.format(ano))
else:
print('O ano {}... | 39.111111 | 84 | 0.605114 |
064a0a84437e3170a174ce3b05257fa09444b9fe | 1,485 | py | Python | src/English.py | Ydos2/AI_Greg_Voice_Assistant | fddecb10a9d035de108d1ac696c9431eaeb46308 | [
"MIT"
] | 1 | 2020-06-29T01:21:42.000Z | 2020-06-29T01:21:42.000Z | src/English.py | Ydos2/AI_Balthazar_Voice_Assistant | fddecb10a9d035de108d1ac696c9431eaeb46308 | [
"MIT"
] | null | null | null | src/English.py | Ydos2/AI_Balthazar_Voice_Assistant | fddecb10a9d035de108d1ac696c9431eaeb46308 | [
"MIT"
] | null | null | null | import re
import platform
import os
import time
import json
import datetime
from .website import websiteText
from .UpdateJson import UpdateJsonLanguage | 30.306122 | 108 | 0.644444 |
064a976a6997fbbe36c7a8dc72001c060e6eb6ef | 2,511 | py | Python | src/Equations/TimeStep.py | KoningJasper/Offshore-SPH | 558bb359249eb89b082322f7585e19df003281fb | [
"MIT"
] | null | null | null | src/Equations/TimeStep.py | KoningJasper/Offshore-SPH | 558bb359249eb89b082322f7585e19df003281fb | [
"MIT"
] | 28 | 2018-11-27T13:33:54.000Z | 2019-03-11T10:30:20.000Z | src/Equations/TimeStep.py | KoningJasper/Offshore-SPH | 558bb359249eb89b082322f7585e19df003281fb | [
"MIT"
] | 1 | 2018-11-27T12:11:21.000Z | 2018-11-27T12:11:21.000Z | import numpy as np
from math import sqrt
from numba import njit, prange, jitclass
from src.Common import ParticleType
from typing import Tuple | 27.593407 | 120 | 0.517722 |
064b361f15c8216c7e88077e123c596203e3f817 | 555 | py | Python | bookbar/auth_app/urls.py | trenev/bookbar | bccfdf52293f7cf105d6768bb2a1a643c9a58bb7 | [
"MIT"
] | null | null | null | bookbar/auth_app/urls.py | trenev/bookbar | bccfdf52293f7cf105d6768bb2a1a643c9a58bb7 | [
"MIT"
] | null | null | null | bookbar/auth_app/urls.py | trenev/bookbar | bccfdf52293f7cf105d6768bb2a1a643c9a58bb7 | [
"MIT"
] | null | null | null | from django.urls import path
from bookbar.auth_app.views import UserRegistrationView, UserLoginView, logout_user, ChangeUserPasswordView, \
ChangeUserEmailView
urlpatterns = (
path('register/', UserRegistrationView.as_view(), name='register user'),
path('login/', UserLoginView.as_view(), name='login user'... | 42.692308 | 110 | 0.735135 |
064b5656f8557e5883dd8696145c8db2cd075ae8 | 4,604 | py | Python | Data Visualization/School/code4.py | ALDOR99/Python | a76f37bb3e573cd3fdcfc19f4f73494cafa9140e | [
"MIT"
] | 2 | 2021-05-27T19:13:02.000Z | 2021-06-02T13:26:35.000Z | Data Visualization/School/code4.py | ALDOR99/Python | a76f37bb3e573cd3fdcfc19f4f73494cafa9140e | [
"MIT"
] | null | null | null | Data Visualization/School/code4.py | ALDOR99/Python | a76f37bb3e573cd3fdcfc19f4f73494cafa9140e | [
"MIT"
] | 1 | 2021-06-07T18:17:35.000Z | 2021-06-07T18:17:35.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 15 13:36:53 2021
@author: ali_d
"""
#code3
import numpy as np
import pandas as pd
# plotly
from plotly.offline import init_notebook_mode, iplot, plot
import plotly as py
init_notebook_mode(connected=True)
import plotly.graph_objs as go
from wordcloud import WordCloud... | 14.75641 | 92 | 0.572763 |
064c2f71cbe050b6b37e718ae911c458233562a6 | 479 | py | Python | tests/settings.py | Francislley/CrudDajndo2017.2 | 355a442670d28cd91526fd0127b7a01ce733cf2b | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tests/settings.py | Francislley/CrudDajndo2017.2 | 355a442670d28cd91526fd0127b7a01ce733cf2b | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tests/settings.py | Francislley/CrudDajndo2017.2 | 355a442670d28cd91526fd0127b7a01ce733cf2b | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | SECRET_KEY = 'testing'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.sessions',
'c... | 20.826087 | 71 | 0.643006 |
064e27b907065965fdaf845f02b8b13b9d542bac | 1,260 | py | Python | GEOS_Util/coupled_diagnostics/verification/HadCRUT3/__init__.py | GEOS-ESM/GMAO_Shared | 022af23abbc7883891006b57379be96d9a50df23 | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-02-01T17:36:53.000Z | 2020-02-01T17:36:53.000Z | GEOS_Util/coupled_diagnostics/verification/HadCRUT3/__init__.py | GEOS-ESM/GMAO_Shared | 022af23abbc7883891006b57379be96d9a50df23 | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 105 | 2019-07-08T19:27:23.000Z | 2022-03-22T02:12:16.000Z | GEOS_Util/coupled_diagnostics/verification/HadCRUT3/__init__.py | GEOS-ESM/GMAO_Shared | 022af23abbc7883891006b57379be96d9a50df23 | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 10 | 2019-07-05T18:00:44.000Z | 2022-03-11T16:26:29.000Z | import os
import netCDF4 as nc
import scipy as sp
from g5lib import dset
__all__=['ctl']
ctl=Ctl()
| 32.307692 | 148 | 0.573016 |
064eff37d75887536511ceada99ec91dfd97759e | 12,068 | py | Python | dgen.py | tmy310/dgen | 86166e4a034219e6fbebdbfccb3301ce37a26fa5 | [
"MIT"
] | null | null | null | dgen.py | tmy310/dgen | 86166e4a034219e6fbebdbfccb3301ce37a26fa5 | [
"MIT"
] | 6 | 2019-06-27T06:25:22.000Z | 2019-10-03T06:20:42.000Z | dgen.py | tmy310/dgen | 86166e4a034219e6fbebdbfccb3301ce37a26fa5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
"""
import os
import mysql.connector
from argparse import *
import subprocess
if __name__ == '__main__':
dgen = Dgen()
dgen.execute()
| 31.841689 | 132 | 0.557093 |
06508ced0b67c00a43888b30d90b61c487445db6 | 523 | py | Python | home/migrations/0003_rename_image_movie_thumbnail_and_more.py | italoseara/Django-Movie | 57721da4a972f059c5bf67bff8183724e62307b6 | [
"MIT"
] | 1 | 2022-03-03T15:49:37.000Z | 2022-03-03T15:49:37.000Z | home/migrations/0003_rename_image_movie_thumbnail_and_more.py | italoseara/Django-Movie | 57721da4a972f059c5bf67bff8183724e62307b6 | [
"MIT"
] | null | null | null | home/migrations/0003_rename_image_movie_thumbnail_and_more.py | italoseara/Django-Movie | 57721da4a972f059c5bf67bff8183724e62307b6 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-26 20:08
from django.db import migrations
| 21.791667 | 69 | 0.573614 |
065734da7d336069b6961a0eb44468fa34579278 | 1,967 | py | Python | documentstore_migracao/processing/extracted.py | patymori/document-store-migracao | 1320ef58de1484ca8383c29c1fea55c4b2d89e67 | [
"BSD-2-Clause"
] | 1 | 2019-11-21T12:35:36.000Z | 2019-11-21T12:35:36.000Z | documentstore_migracao/processing/extracted.py | patymori/document-store-migracao | 1320ef58de1484ca8383c29c1fea55c4b2d89e67 | [
"BSD-2-Clause"
] | 336 | 2019-04-01T14:06:37.000Z | 2022-03-21T22:16:55.000Z | documentstore_migracao/processing/extracted.py | patymori/document-store-migracao | 1320ef58de1484ca8383c29c1fea55c4b2d89e67 | [
"BSD-2-Clause"
] | 4 | 2019-03-28T13:32:04.000Z | 2020-04-17T18:03:19.000Z | import logging
import os
from typing import List
import concurrent.futures
from tqdm import tqdm
from documentstore_migracao.export import article
from documentstore_migracao.utils import files
from documentstore_migracao import config
from documentstore_migracao.utils import DoJobsConcurrently, PoisonPill
logger = l... | 28.926471 | 79 | 0.68124 |
0657e352b713da508a397e3b0b9f84963e91c583 | 301 | py | Python | Old/src/com/up/oop3.py | exchris/Pythonlearn | 174f38a86cf1c85d6fc099005aab3568e7549cd0 | [
"MIT"
] | null | null | null | Old/src/com/up/oop3.py | exchris/Pythonlearn | 174f38a86cf1c85d6fc099005aab3568e7549cd0 | [
"MIT"
] | 1 | 2018-11-27T09:58:54.000Z | 2018-11-27T09:58:54.000Z | Old/src/com/up/oop3.py | exchris/pythonlearn | 174f38a86cf1c85d6fc099005aab3568e7549cd0 | [
"MIT"
] | null | null | null | # -*- coding:UTF-8 -*-
xiaoming = Person('Xiao Ming', 'Male', '1990-1-1', job='Student')
print xiaoming.name
print xiaoming.job | 25.083333 | 65 | 0.621262 |
0658c4228b423514a995573b21e0a3838d4ba2bb | 10,934 | py | Python | lib/poolfileupload/poolfileuploadImpl.py | OGalOz/poolfileupload | 665570537a51aa91b08a541025d09cdbb3d39402 | [
"MIT"
] | null | null | null | lib/poolfileupload/poolfileuploadImpl.py | OGalOz/poolfileupload | 665570537a51aa91b08a541025d09cdbb3d39402 | [
"MIT"
] | null | null | null | lib/poolfileupload/poolfileuploadImpl.py | OGalOz/poolfileupload | 665570537a51aa91b08a541025d09cdbb3d39402 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import logging
import os
import shutil
from Utils.mutantpooluploadUtilClient import mutantpooluploadUtil
from Utils.expsfileuploadUtilClient import expsfileuploadUtil
from Utils.barcodecountuploadUtilClient import barcodecountfileuploadUtil
from Utils.genetableuploadUtilClient impo... | 47.746725 | 141 | 0.558442 |
06594ac42e27c8e3ccdf8b077e22c56ce303ccb4 | 1,657 | py | Python | stsdas/pkg/analysis/slitless/axe/fcubeprep_iraf.py | iraf-community/stsdas | 043c173fd5497c18c2b1bfe8bcff65180bca3996 | [
"BSD-3-Clause"
] | 1 | 2020-12-20T10:06:48.000Z | 2020-12-20T10:06:48.000Z | stsdas/pkg/analysis/slitless/axe/fcubeprep_iraf.py | spacetelescope/stsdas_stripped | 043c173fd5497c18c2b1bfe8bcff65180bca3996 | [
"BSD-3-Clause"
] | null | null | null | stsdas/pkg/analysis/slitless/axe/fcubeprep_iraf.py | spacetelescope/stsdas_stripped | 043c173fd5497c18c2b1bfe8bcff65180bca3996 | [
"BSD-3-Clause"
] | 2 | 2019-10-12T20:01:16.000Z | 2020-11-19T08:04:30.000Z | import iraf
no = iraf.no
yes = iraf.yes
from axe import axesrc
# Point to default parameter file for task
_parfile = 'axe$fcubeprep.par'
_taskname = 'fcubeprep'
######
# Set up Python IRAF interface here
######
parfile = iraf.osfn(_parfile)
multid = iraf.IrafTaskFactory(taskname=_taskname, value=parfile,
... | 28.084746 | 74 | 0.570308 |
065a36ba274adc42303ce240127779695fadeb05 | 899 | py | Python | web/mainApp/migrations/0001_initial.py | njw1204/golf-online-judge | adb22653c457e97d5a239aa562725144235a2ab8 | [
"MIT"
] | 3 | 2019-07-22T20:00:07.000Z | 2021-12-17T17:54:09.000Z | web/mainApp/migrations/0001_initial.py | njw1204/golf-online-judge | adb22653c457e97d5a239aa562725144235a2ab8 | [
"MIT"
] | null | null | null | web/mainApp/migrations/0001_initial.py | njw1204/golf-online-judge | adb22653c457e97d5a239aa562725144235a2ab8 | [
"MIT"
] | 2 | 2019-06-18T18:41:10.000Z | 2021-04-15T09:57:31.000Z | # Generated by Django 2.1.8 on 2019-04-28 10:47
from django.db import migrations, models
import mainApp.models
| 32.107143 | 114 | 0.606229 |
065a7532e6d3b0f5b2a755be9b2d24f0869d4e12 | 36 | py | Python | cupy_alias/indexing/__init__.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 142 | 2018-06-07T07:43:10.000Z | 2021-10-30T21:06:32.000Z | cupy_alias/indexing/__init__.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 282 | 2018-06-07T08:35:03.000Z | 2021-03-31T03:14:32.000Z | cupy_alias/indexing/__init__.py | fixstars/clpy | 693485f85397cc110fa45803c36c30c24c297df0 | [
"BSD-3-Clause"
] | 19 | 2018-06-19T11:07:53.000Z | 2021-05-13T20:57:04.000Z | from clpy.indexing import * # NOQA
| 18 | 35 | 0.722222 |
065e55bb5dd1b9fef2c265808561ac783b9d9f03 | 2,084 | py | Python | molecule/resources/tests/all/test_common.py | lpmhouben/dnsdist-ansible | f17f1a98db63ba42bf824bcf45d819db16cdbe4e | [
"MIT"
] | null | null | null | molecule/resources/tests/all/test_common.py | lpmhouben/dnsdist-ansible | f17f1a98db63ba42bf824bcf45d819db16cdbe4e | [
"MIT"
] | null | null | null | molecule/resources/tests/all/test_common.py | lpmhouben/dnsdist-ansible | f17f1a98db63ba42bf824bcf45d819db16cdbe4e | [
"MIT"
] | null | null | null | import re
debian_os = ['debian', 'ubuntu']
rhel_os = ['redhat', 'centos']
| 31.104478 | 108 | 0.658829 |
0661fb3e77bf0f00233a455bb3b3caa589f33507 | 857 | py | Python | setup.py | nesies/SnowLibrary | b4de7c4133adc1d5a95bf782c3c5629461b96605 | [
"Apache-2.0"
] | null | null | null | setup.py | nesies/SnowLibrary | b4de7c4133adc1d5a95bf782c3c5629461b96605 | [
"Apache-2.0"
] | null | null | null | setup.py | nesies/SnowLibrary | b4de7c4133adc1d5a95bf782c3c5629461b96605 | [
"Apache-2.0"
] | 1 | 2020-08-11T11:57:23.000Z | 2020-08-11T11:57:23.000Z | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='robotframework-snowlibrary',
version='1.4.0',
url='',
licen... | 32.961538 | 90 | 0.681447 |
0662c36c6833a7499be8abb43a6ba6fd0ddfc2d0 | 1,586 | py | Python | src/utils/test_tflite.py | luan1412167/Silent-Face-Anti-Spoofing | 683bce686b0d53a1f32cd3f61223266a46fd55c8 | [
"Apache-2.0"
] | null | null | null | src/utils/test_tflite.py | luan1412167/Silent-Face-Anti-Spoofing | 683bce686b0d53a1f32cd3f61223266a46fd55c8 | [
"Apache-2.0"
] | null | null | null | src/utils/test_tflite.py | luan1412167/Silent-Face-Anti-Spoofing | 683bce686b0d53a1f32cd3f61223266a46fd55c8 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import tensorflow as tf
from pytorch2onnx import AntiSpoofPredict
import cv2
import torch
import time
#load pytorch
device_id = 0
model_path = "./resources/anti_spoof_models/2020-09-28-13-11_Anti_Spoofing_1.2_112x112_model_iter-150.pth"
anti_model = AntiSpoofPredict(device_id, model_path)
dummy_img... | 33.744681 | 106 | 0.791299 |
0668d0733832708e9663366200498463b0981a90 | 5,545 | py | Python | processing/preprocess_signatures.py | noahlozevski/variational-RNN | 629c36869e7f81b4c40451edd9521a797d8b4db6 | [
"MIT"
] | null | null | null | processing/preprocess_signatures.py | noahlozevski/variational-RNN | 629c36869e7f81b4c40451edd9521a797d8b4db6 | [
"MIT"
] | null | null | null | processing/preprocess_signatures.py | noahlozevski/variational-RNN | 629c36869e7f81b4c40451edd9521a797d8b4db6 | [
"MIT"
] | null | null | null | import os
import numpy as np
def read_data(input_path, english_only, english_indices=None):
"""Returns the list of signatures, labels, and ids. These can have English-only signatures if specified."""
if english_indices is None:
english_indices = []
sig_list = []
lab_list = [] # Genuine = 0, Forged = 1... | 39.892086 | 178 | 0.704418 |
066a6ecaf81a95bd428e102c57d2580b02a5ba55 | 8,113 | py | Python | src/ostorlab/agent/message/proto/v3/asset/ip/v4/geolocation/geolocation_pb2.py | bbhunter/ostorlab | 968fe4e5b927c0cd159594c13b73f95b71150154 | [
"Apache-2.0"
] | 113 | 2022-02-21T09:30:14.000Z | 2022-03-31T21:54:26.000Z | src/ostorlab/agent/message/proto/v3/asset/ip/v4/geolocation/geolocation_pb2.py | bbhunter/ostorlab | 968fe4e5b927c0cd159594c13b73f95b71150154 | [
"Apache-2.0"
] | 2 | 2022-02-25T10:56:55.000Z | 2022-03-24T13:08:06.000Z | src/ostorlab/agent/message/proto/v3/asset/ip/v4/geolocation/geolocation_pb2.py | bbhunter/ostorlab | 968fe4e5b927c0cd159594c13b73f95b71150154 | [
"Apache-2.0"
] | 20 | 2022-02-28T14:25:04.000Z | 2022-03-30T23:01:11.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: v3/asset/ip/v4/geolocation/geolocation.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... | 48.291667 | 710 | 0.72957 |
066b5183f57d7bf9b790518e47a0088317ed4064 | 3,145 | py | Python | series_tiempo_ar_api/apps/management/migrations/0001_auto_20180507_1500.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 28 | 2017-12-16T20:30:52.000Z | 2021-08-11T17:35:04.000Z | series_tiempo_ar_api/apps/management/migrations/0001_auto_20180507_1500.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 446 | 2017-11-16T15:21:40.000Z | 2021-06-10T20:14:21.000Z | series_tiempo_ar_api/apps/management/migrations/0001_auto_20180507_1500.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 12 | 2018-08-23T16:13:32.000Z | 2022-03-01T23:12:28.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-05-07 18:00
from __future__ import unicode_literals
from django.db import migrations, models
| 104.833333 | 2,498 | 0.755167 |
066fc36b39e0efa428611aeef0bdee30d30ed857 | 1,091 | py | Python | code/random_generator.py | mjvakili/alpha-forecast | 13e08db1b404a2a3c1736adb9d2c85a58e2a6d6c | [
"MIT"
] | null | null | null | code/random_generator.py | mjvakili/alpha-forecast | 13e08db1b404a2a3c1736adb9d2c85a58e2a6d6c | [
"MIT"
] | 1 | 2020-03-26T17:31:13.000Z | 2020-03-31T08:45:46.000Z | code/random_generator.py | mjvakili/alpha-forecast | 13e08db1b404a2a3c1736adb9d2c85a58e2a6d6c | [
"MIT"
] | null | null | null | '''
a simple script for generating uniform randoms and
jackknife regions assuming the KiDS-1000 mask
'''
import fitsio
import numpy as np
import healpy as hp
import kmeans_radec
from kmeans_radec import KMeans, kmeans_sample
from astropy.table import Table
lens = fitsio.read("lens.fits", columns = ["ra_gal", "dec_gal... | 29.486486 | 89 | 0.711274 |
06700b590dcc47592c65834acabe47782bd4ec63 | 2,383 | py | Python | world/dominion/migrations/0031_auto_20180804_2115.py | stesla/arxcode | a0ebf7c4d310de8c1980a8ba2a48948a68bb5a0a | [
"MIT"
] | 5 | 2019-03-16T08:26:53.000Z | 2019-11-27T15:42:16.000Z | world/dominion/migrations/0031_auto_20180804_2115.py | stesla/arxcode | a0ebf7c4d310de8c1980a8ba2a48948a68bb5a0a | [
"MIT"
] | 7 | 2018-09-29T05:08:15.000Z | 2021-06-10T21:35:32.000Z | world/dominion/migrations/0031_auto_20180804_2115.py | stesla/arxcode | a0ebf7c4d310de8c1980a8ba2a48948a68bb5a0a | [
"MIT"
] | 7 | 2018-09-19T21:11:29.000Z | 2019-11-19T12:46:14.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-08-04 21:15
from __future__ import unicode_literals
from django.db import migrations, models
| 33.097222 | 106 | 0.596307 |
0670c5a5fe9ae16928e3705c60cd1a58c8a4c92a | 1,490 | py | Python | board/migrations/0001_initial.py | ev350/webchess | 50a23a47f03de4cab33767ac8cc23f743d354fa5 | [
"MIT"
] | null | null | null | board/migrations/0001_initial.py | ev350/webchess | 50a23a47f03de4cab33767ac8cc23f743d354fa5 | [
"MIT"
] | 5 | 2018-05-12T17:29:11.000Z | 2018-06-23T14:22:24.000Z | board/migrations/0001_initial.py | ev350/webchess | 50a23a47f03de4cab33767ac8cc23f743d354fa5 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2018-05-12 23:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 39.210526 | 130 | 0.614094 |
0671e85cf1d1be82c5d6d702e01485edb93f61d2 | 1,987 | py | Python | openstack_exporter/BaseCollector.py | sapcc/openstack-exporter | d9472fcf5790bd02664bf57a890ca4d3eab73960 | [
"Apache-2.0"
] | null | null | null | openstack_exporter/BaseCollector.py | sapcc/openstack-exporter | d9472fcf5790bd02664bf57a890ca4d3eab73960 | [
"Apache-2.0"
] | 3 | 2020-10-22T14:49:22.000Z | 2022-03-23T13:53:51.000Z | openstack_exporter/BaseCollector.py | sapcc/openstack-exporter | d9472fcf5790bd02664bf57a890ca4d3eab73960 | [
"Apache-2.0"
] | null | null | null | # 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 applicable law or agreed to in... | 31.539683 | 78 | 0.667338 |
0672acf71c0ab31701749cd2541d300d25d0a5bb | 23,657 | py | Python | optimization/first_sdEta_mjj_optimization/sdEta_mistake_analyses/sdEta_mmjj_gridsearch/analysis_deltaeta6.1_mmjj_750/Output/Histos/MadAnalysis5job_0/selection_6.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | optimization/first_sdEta_mjj_optimization/sdEta_mistake_analyses/sdEta_mmjj_gridsearch/analysis_deltaeta6.1_mmjj_750/Output/Histos/MadAnalysis5job_0/selection_6.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | optimization/first_sdEta_mjj_optimization/sdEta_mistake_analyses/sdEta_mmjj_gridsearch/analysis_deltaeta6.1_mmjj_750/Output/Histos/MadAnalysis5job_0/selection_6.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null |
# Running!
if __name__ == '__main__':
selection_6()
| 121.943299 | 779 | 0.753815 |
0673551c0caa2bf6131e621557ea617348900a78 | 3,751 | py | Python | military-overlay/utils-source-and-test-data/schema-creation-utilities/template-gdb-toolbox/scripts/ExportGDBFieldsToFolder.py | ArcGIS/military-symbol-editor-addin-wpf | 1328fb07cf8683d1493f81d33d0a5241ff3e07cf | [
"Apache-2.0"
] | 15 | 2019-01-14T16:46:42.000Z | 2022-03-15T21:51:52.000Z | military-overlay/utils-source-and-test-data/schema-creation-utilities/template-gdb-toolbox/scripts/ExportGDBFieldsToFolder.py | ArcGIS/military-symbol-editor-addin-wpf | 1328fb07cf8683d1493f81d33d0a5241ff3e07cf | [
"Apache-2.0"
] | 190 | 2016-04-19T11:27:11.000Z | 2018-08-27T15:09:46.000Z | military-overlay/utils-source-and-test-data/schema-creation-utilities/template-gdb-toolbox/scripts/ExportGDBFieldsToFolder.py | ArcGIS/military-symbol-editor-addin-wpf | 1328fb07cf8683d1493f81d33d0a5241ff3e07cf | [
"Apache-2.0"
] | 6 | 2016-04-11T19:59:51.000Z | 2017-07-22T20:37:36.000Z | # ----------------------------------------------------------------------------------
# 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 ... | 33.19469 | 110 | 0.621701 |
0674f7b9937ec86eb46666a48e674d7996211d35 | 4,845 | py | Python | harness/tests/cli/test_auth.py | gh-determined-ai/determined | 9a1ab33a3a356b69681b3351629fef4ab98ddb56 | [
"Apache-2.0"
] | null | null | null | harness/tests/cli/test_auth.py | gh-determined-ai/determined | 9a1ab33a3a356b69681b3351629fef4ab98ddb56 | [
"Apache-2.0"
] | null | null | null | harness/tests/cli/test_auth.py | gh-determined-ai/determined | 9a1ab33a3a356b69681b3351629fef4ab98ddb56 | [
"Apache-2.0"
] | null | null | null | import contextlib
import json
import os
import shutil
from pathlib import Path
from typing import Iterator, Optional
import pytest
import requests_mock
from determined.common.api.authentication import Authentication, TokenStore
from determined.common.api.certs import default_load as certs_default_load
from determined... | 35.364964 | 98 | 0.655108 |