hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
39e5c2dae3dc34b172fb5b29d42d8de5ab19cf39
4,372
py
Python
frappe/desk/form/utils.py
Steggur/frappe
be95a19704dd3ac667f7ad64e1694dc5d59856fe
[ "MIT" ]
null
null
null
frappe/desk/form/utils.py
Steggur/frappe
be95a19704dd3ac667f7ad64e1694dc5d59856fe
[ "MIT" ]
null
null
null
frappe/desk/form/utils.py
Steggur/frappe
be95a19704dd3ac667f7ad64e1694dc5d59856fe
[ "MIT" ]
1
2018-03-22T00:24:53.000Z
2018-03-22T00:24:53.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe, json import frappe.desk.form.meta import frappe.desk.form.load from frappe import _ @frappe.whitelist() def remove_attach(): """remove attachment""" import f...
28.763158
118
0.674062
f256a2a472b2e70ee1c5a55c003a82b8688f94e0
3,601
py
Python
renamer/plugins/thumbnail.py
Anonymous257/TG-RENAMER-BOT
453eac0fb95e26d5d620a51c5bcb732b88420cd3
[ "Apache-2.0" ]
null
null
null
renamer/plugins/thumbnail.py
Anonymous257/TG-RENAMER-BOT
453eac0fb95e26d5d620a51c5bcb732b88420cd3
[ "Apache-2.0" ]
null
null
null
renamer/plugins/thumbnail.py
Anonymous257/TG-RENAMER-BOT
453eac0fb95e26d5d620a51c5bcb732b88420cd3
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger(__name__) import os from ..config import Config from ..tools.text import TEXT from ..database.database import * from pyrogram import Client as Filerenamer_X1, filters from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup ################## Saving thumbnail 🖼...
33.342593
99
0.655374
dcd173f9482187dbe13f05d7223011754615ca50
9,268
py
Python
batch/test/test_dag.py
sigmarkarl/hail
11b7c22342a945c61b24c5f8babf4ab411d3d2f1
[ "MIT" ]
null
null
null
batch/test/test_dag.py
sigmarkarl/hail
11b7c22342a945c61b24c5f8babf4ab411d3d2f1
[ "MIT" ]
2
2016-11-17T03:06:10.000Z
2017-12-05T19:00:24.000Z
batch/test/test_dag.py
sigmarkarl/hail
11b7c22342a945c61b24c5f8babf4ab411d3d2f1
[ "MIT" ]
2
2020-07-28T18:55:19.000Z
2020-10-19T16:43:03.000Z
import time import re import pytest from flask import Response from hailtop.config import get_user_config from hailtop.batch_client.client import BatchClient, Job import hailtop.batch_client.aioclient as aioclient from .utils import batch_status_job_counter, \ legacy_batch_status from .serverthread import ServerTh...
36.924303
135
0.591282
6f8e3e23eb5b71660839226903cc28db078b4756
8,844
py
Python
tests/test_manager/test_citation_utils.py
cthoyt/pybel
ed66f013a77f9cbc513892b0dad1025b8f68bb46
[ "Apache-2.0" ]
null
null
null
tests/test_manager/test_citation_utils.py
cthoyt/pybel
ed66f013a77f9cbc513892b0dad1025b8f68bb46
[ "Apache-2.0" ]
11
2017-12-28T08:03:14.000Z
2019-01-15T02:13:58.000Z
tests/test_manager/test_citation_utils.py
cthoyt/pybel
ed66f013a77f9cbc513892b0dad1025b8f68bb46
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Test the manager's citation utilities. The test data can be created with the following script: .. code-block:: python import json from pybel.manager.citation_utils import get_pubmed_citation_response DATA = {'29324713', '29359844', '9611787', '25818332', '26438529', '26649137...
33
114
0.676278
d50ba0b3f5281f1614b3009b6707bea85f17e078
592
py
Python
sits.py
Peter1-cyber/sits
218bc3b08adee33af438fc9300d73167a1f0cbeb
[ "CC0-1.0" ]
null
null
null
sits.py
Peter1-cyber/sits
218bc3b08adee33af438fc9300d73167a1f0cbeb
[ "CC0-1.0" ]
null
null
null
sits.py
Peter1-cyber/sits
218bc3b08adee33af438fc9300d73167a1f0cbeb
[ "CC0-1.0" ]
null
null
null
# Модуль для вычисления количества приседаний # Здесь должен быть твой код from scrollLabel import * class Sits(ScrollLabel): def __init__(self, total, **kwargs): self.total = total self.current = 0 text = 'Осталось приседаний: ' + str(self.total) super().__init__(text,...
14.095238
63
0.560811
b80a59e936eb4c99d8035f8de23550d979a1fc23
1,296
py
Python
bw2analyzer/explorer.py
aleksandra-kim/brightway2-analyzer-copy
c85961bd2b644458fbeef92e5471ec76d520ab38
[ "BSD-3-Clause" ]
null
null
null
bw2analyzer/explorer.py
aleksandra-kim/brightway2-analyzer-copy
c85961bd2b644458fbeef92e5471ec76d520ab38
[ "BSD-3-Clause" ]
null
null
null
bw2analyzer/explorer.py
aleksandra-kim/brightway2-analyzer-copy
c85961bd2b644458fbeef92e5471ec76d520ab38
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals from eight import * from bw2data import Database, databases class DatabaseExplorer(object): def __init__(self, name): self.db = Database(name) self.data = self.db.load() for db in databases[name]["depends"]: ...
31.609756
87
0.493056
ceb25b59075fc25d5f7f629dd0c227f75693ba99
2,661
py
Python
easybimehlanding/models/insurance_companies.py
kmelodi/EasyBimehLanding_Python
b574a76a8805b306a423229b572c36dae0159def
[ "MIT" ]
null
null
null
easybimehlanding/models/insurance_companies.py
kmelodi/EasyBimehLanding_Python
b574a76a8805b306a423229b572c36dae0159def
[ "MIT" ]
null
null
null
easybimehlanding/models/insurance_companies.py
kmelodi/EasyBimehLanding_Python
b574a76a8805b306a423229b572c36dae0159def
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ easybimehlanding This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ import easybimehlanding.models.combo_data_model class InsuranceCompanies(object): """Implementation of the 'InsuranceCompanies' model. TODO: type model des...
30.586207
115
0.579481
ce2275e75339c595de7561a4a0163e3aac451139
8,516
py
Python
src/backend/game/models.py
ToJestKrzysio/TheJungleGame
904dd4adc937145df2c8c353eb83bec3b5dd1f7e
[ "MIT" ]
null
null
null
src/backend/game/models.py
ToJestKrzysio/TheJungleGame
904dd4adc937145df2c8c353eb83bec3b5dd1f7e
[ "MIT" ]
null
null
null
src/backend/game/models.py
ToJestKrzysio/TheJungleGame
904dd4adc937145df2c8c353eb83bec3b5dd1f7e
[ "MIT" ]
null
null
null
import logging import os from abc import ABC, abstractmethod from typing import Tuple, TYPE_CHECKING import numpy as np from tensorflow.keras import regularizers, optimizers, layers, Model from tensorflow.keras.models import load_model if TYPE_CHECKING: from game import BoardTensor class AbstractModel(ABC): ...
39.794393
99
0.65054
4f0e039c6ccc21f620b90d34e94415dfb0bf1f6e
808
py
Python
fpa/post_process_operation.py
salamann/fpadesigner
ebb92eef5998b8dd0562f5374ae39a80647926e5
[ "MIT" ]
null
null
null
fpa/post_process_operation.py
salamann/fpadesigner
ebb92eef5998b8dd0562f5374ae39a80647926e5
[ "MIT" ]
null
null
null
fpa/post_process_operation.py
salamann/fpadesigner
ebb92eef5998b8dd0562f5374ae39a80647926e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt import os def draw_spandirdata(yy, dL, clDist, circDist, ellipse, inducedAoa, planx, plany, dirname): plt.figure(figsize=(12, 10)) plt.axis("equal") plt.subplot(511) plt.plot(yy, dL, label="dL") plt.legend() plt.subp...
25.25
91
0.628713
3e0e0b74a971bfa6ee5efbbf5253247fb48bb8ce
70,929
py
Python
pandas/core/window.py
ikoevska/pandas
7169830040255c1073f99e2ee8817596a67b1cd5
[ "BSD-3-Clause" ]
1
2019-04-27T15:15:15.000Z
2019-04-27T15:15:15.000Z
pandas/core/window.py
ikoevska/pandas
7169830040255c1073f99e2ee8817596a67b1cd5
[ "BSD-3-Clause" ]
null
null
null
pandas/core/window.py
ikoevska/pandas
7169830040255c1073f99e2ee8817596a67b1cd5
[ "BSD-3-Clause" ]
null
null
null
""" provide a generic structure to support window functions, similar to how we have a Groupby object """ from __future__ import division import warnings import numpy as np from collections import defaultdict from datetime import timedelta from pandas.core.dtypes.generic import ( ABCSeries, ABCDataFrame, ...
32.09457
95
0.567342
d061022c023c772520a2c32c9195928b8e49807d
639
py
Python
web/setpin.py
siskulous/PiStrip
f980705b90f7e0a397b2e6802121a531a5ff79b6
[ "MIT" ]
null
null
null
web/setpin.py
siskulous/PiStrip
f980705b90f7e0a397b2e6802121a531a5ff79b6
[ "MIT" ]
null
null
null
web/setpin.py
siskulous/PiStrip
f980705b90f7e0a397b2e6802121a531a5ff79b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python from RPi import GPIO import sys import MySQLdb db=MySQLdb.connect(user='webhead', passwd='MonkeyBoneIsATerribleMovie', db='powerstrip', host="localhost") GPIO.setmode(GPIO.BCM) state=int(sys.argv[2]) pin= int(sys.argv[1]) if pin == 1: relay=6 elif pin == 2: relay=13 elif pin == 3: relay=1...
18.257143
55
0.70892
af991f621d6f2f1ecfae882e8d932673d5d0d7b1
9,114
py
Python
ezconvert/convert.py
blahoink/ezconvert
82403ba5c37f73323709db3de78e18e860e824e0
[ "MIT" ]
null
null
null
ezconvert/convert.py
blahoink/ezconvert
82403ba5c37f73323709db3de78e18e860e824e0
[ "MIT" ]
null
null
null
ezconvert/convert.py
blahoink/ezconvert
82403ba5c37f73323709db3de78e18e860e824e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import argparse import csv import io import logging import numpy as np import os import pandas as pd import pkg_resources import sys import yaml from .version import __version__ logger = logging.getLogger('root') provided_converters = [ 'mq2pin', 'mq2pcq', 'mq2psea', '...
35.189189
168
0.680162
da4f9d8b121d836dfaf33e2ca72158e5135e6a9a
5,491
py
Python
dcodex_carlson/views.py
rbturnbull/dcodex_carlson
e662e58ad38915b10f079075d69adae463dd7ecd
[ "Apache-2.0" ]
null
null
null
dcodex_carlson/views.py
rbturnbull/dcodex_carlson
e662e58ad38915b10f079075d69adae463dd7ecd
[ "Apache-2.0" ]
null
null
null
dcodex_carlson/views.py
rbturnbull/dcodex_carlson
e662e58ad38915b10f079075d69adae463dd7ecd
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.shortcuts import get_object_or_404, render from dcodex.util import get_request_dict import logging from .models import * def index(request): ...
37.101351
289
0.726097
72078488953ec5a998650e2c840d109b1e067013
10,255
py
Python
core/platform/email/mailgun_email_services_test.py
yash10019coder/oppia
8c349c61ac723a2fd507046b20957934cba70e3a
[ "Apache-2.0" ]
5
2022-01-22T17:22:23.000Z
2022-02-04T09:21:24.000Z
core/platform/email/mailgun_email_services_test.py
yash10019coder/oppia
8c349c61ac723a2fd507046b20957934cba70e3a
[ "Apache-2.0" ]
null
null
null
core/platform/email/mailgun_email_services_test.py
yash10019coder/oppia
8c349c61ac723a2fd507046b20957934cba70e3a
[ "Apache-2.0" ]
2
2022-03-22T16:57:32.000Z
2022-03-24T17:38:42.000Z
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
44.202586
83
0.589664
e06e07866618de5a5ea2a24026b3f29f2cafe3f8
3,027
py
Python
libnacl/utils.py
jensbjorgensen/libnacl
390f439ba5e5d5247464dda523c211132cc5faf9
[ "Apache-2.0" ]
61
2015-01-13T17:50:09.000Z
2022-02-12T04:32:10.000Z
libnacl/utils.py
jensbjorgensen/libnacl
390f439ba5e5d5247464dda523c211132cc5faf9
[ "Apache-2.0" ]
73
2015-01-03T00:52:41.000Z
2021-07-16T17:28:57.000Z
libnacl/utils.py
jensbjorgensen/libnacl
390f439ba5e5d5247464dda523c211132cc5faf9
[ "Apache-2.0" ]
50
2015-01-02T21:07:00.000Z
2022-02-11T18:15:23.000Z
# -*- coding: utf-8 -*- import struct import sys import time # Import nacl libs import libnacl import libnacl.encode import libnacl.secret import libnacl.public import libnacl.sign import libnacl.dual def load_key(path_or_file, serial='json'): ''' Read in a key from a file and return the applicable key obje...
29.676471
102
0.647836
134434cd44bf7e46390ab3ce992beb4311c0af5f
1,415
py
Python
013-C109-BellCurve-2/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
2
2021-09-28T13:55:20.000Z
2021-11-15T10:08:49.000Z
013-C109-BellCurve-2/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
null
null
null
013-C109-BellCurve-2/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
1
2022-01-20T03:02:20.000Z
2022-01-20T03:02:20.000Z
# 013-C109-BellCurve-2 # This is a python script made by @somePythonProgrammer # for a WhiteHat Junior project. import pandas as pd import plotly.figure_factory as ff import statistics df = pd.read_csv('013-C109-BellCurve-2/csv/students.csv') scores = df['math score'].tolist() mean_ = statistics.mean(scores) median_...
29.479167
69
0.69894
6e19e9d0688799f4278e23abcec0825f6d24d98e
25,319
py
Python
test/functional/test_runner.py
percussionpc/grovcoina
900c37d969a8876a66e87e6d94e9c1ec9e847bfe
[ "MIT" ]
null
null
null
test/functional/test_runner.py
percussionpc/grovcoina
900c37d969a8876a66e87e6d94e9c1ec9e847bfe
[ "MIT" ]
null
null
null
test/functional/test_runner.py
percussionpc/grovcoina
900c37d969a8876a66e87e6d94e9c1ec9e847bfe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
38.892473
205
0.632331
0ecd8c994118cadaf94a9df739e370cc033a4278
1,124
py
Python
tetrationcli/controllers/applications.py
jumolinas/tetrationcli
41605403734ab1e2256b01f438bf9172288fa912
[ "MIT" ]
4
2018-11-28T13:37:59.000Z
2019-03-29T03:02:27.000Z
tetrationcli/controllers/applications.py
jumolinas/tetrationcli
41605403734ab1e2256b01f438bf9172288fa912
[ "MIT" ]
5
2018-12-07T13:06:35.000Z
2019-12-13T15:32:51.000Z
tetrationcli/controllers/applications.py
jumolinas/tetrationcli
41605403734ab1e2256b01f438bf9172288fa912
[ "MIT" ]
null
null
null
from cement import ex from .tet_controller import TetController import json class Applications(TetController): class Meta: label = 'applications' stacked_type = 'nested' help= 'Interact with ADM Application from Tetration Cluster' @ex(help='list applications', arguments=[ ...
33.058824
121
0.564057
b108f4c8311348698a4b16524190d4e54ef654d2
2,572
py
Python
extra/up_inv.py
HeyLazySunnyKid/HeyCheckYourRights
acecff3a41049bc85a88a2d55664afe44e1b4757
[ "MIT" ]
null
null
null
extra/up_inv.py
HeyLazySunnyKid/HeyCheckYourRights
acecff3a41049bc85a88a2d55664afe44e1b4757
[ "MIT" ]
null
null
null
extra/up_inv.py
HeyLazySunnyKid/HeyCheckYourRights
acecff3a41049bc85a88a2d55664afe44e1b4757
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import re import shutil import os """ Вспомогательный скрипт для переноса хоста из одной инвентори группы в другую в рамках сортировки хостов. Input: up_inv.py <inventory> <hostname> <ping> <setup> <sudo> <inventory> - path to inventory file <hostname> - checked hostname <ping> - p...
27.655914
83
0.512442
597f68e74e0d296d5114aab7ec07e3239539f6ea
2,609
py
Python
djaludir/core/tests/sql/test_address.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
null
null
null
djaludir/core/tests/sql/test_address.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
2
2020-06-05T19:30:19.000Z
2021-06-10T20:54:38.000Z
djaludir/core/tests/sql/test_address.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.test import TestCase from djaludir.core.sql import HOMEADDRESS_TEMP, WORKADDRESS_TEMP from djtools.utils.logging import seperator from djzbar.utils.informix import do_sql class ManagerAddressTestCase(TestCase): def setUp(self): self.debug = settings.INFORMIX...
25.330097
76
0.609046
d2a2c81039574c4e8e166844aeb70fb9e2797f9c
1,506
py
Python
TechLurker/scripts/my_scraper/my_scraper/spiders/pyjob_detail_spider.py
han8909227/python_mid_project
6319f694de070860f814d0b9dfc04afe060134fb
[ "MIT" ]
null
null
null
TechLurker/scripts/my_scraper/my_scraper/spiders/pyjob_detail_spider.py
han8909227/python_mid_project
6319f694de070860f814d0b9dfc04afe060134fb
[ "MIT" ]
3
2019-12-26T16:39:11.000Z
2021-03-31T18:40:46.000Z
TechLurker/scripts/my_scraper/my_scraper/spiders/pyjob_detail_spider.py
han8909227/python_mid_project
6319f694de070860f814d0b9dfc04afe060134fb
[ "MIT" ]
2
2017-11-17T01:19:38.000Z
2018-09-06T18:43:40.000Z
import scrapy from scrapy import Request from TechLurker.scripts.my_scraper.my_scraper.items import RecruitItem class PyjobSpider_detail(scrapy.Spider): name = "pyjobd" allowed_domains = ["python.org"] start_urls = ["https://www.python.org/jobs/"] def parse(self, response): jobs = response.xp...
45.636364
146
0.626826
2acd9770cb62478b5a7c4b09ca9b29eae334cd84
1,614
py
Python
backend/db.py
LucioGrimaldi/SimpleFastPythonAPISample
f880d8e9c772c3f09d53ea34ea3478fbaa72da8a
[ "Apache-2.0" ]
null
null
null
backend/db.py
LucioGrimaldi/SimpleFastPythonAPISample
f880d8e9c772c3f09d53ea34ea3478fbaa72da8a
[ "Apache-2.0" ]
null
null
null
backend/db.py
LucioGrimaldi/SimpleFastPythonAPISample
f880d8e9c772c3f09d53ea34ea3478fbaa72da8a
[ "Apache-2.0" ]
null
null
null
from typing import Collection from model import Employee import motor.motor_asyncio #MongoDB driver client = motor.motor_asyncio.AsyncIOMotorClient('mongodb://localhost:27017') database = client.Employees collection = database.employees async def get_employees_by_key_value(key, value): employees = [] cursor =...
31.038462
76
0.69145
d679487e365d01e5ff07163cbbe23ccd19a0bd2e
7,068
py
Python
nnunet/experiment_planning/nnUNet_plan_and_preprocess.py
Jiawei-Yang/TumorCP
6053c75642fcbc0fb0424320ab3d758f24883b0e
[ "Apache-2.0" ]
12
2021-07-22T15:08:13.000Z
2022-03-10T08:15:56.000Z
nnunet/experiment_planning/nnUNet_plan_and_preprocess.py
Jiawei-Yang/TumorCP
6053c75642fcbc0fb0424320ab3d758f24883b0e
[ "Apache-2.0" ]
null
null
null
nnunet/experiment_planning/nnUNet_plan_and_preprocess.py
Jiawei-Yang/TumorCP
6053c75642fcbc0fb0424320ab3d758f24883b0e
[ "Apache-2.0" ]
3
2021-11-26T06:26:24.000Z
2022-02-14T01:23:44.000Z
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
49.426573
148
0.664261
8ec9f0df25d86c7a24a57c648be6eb76f416443d
1,757
py
Python
bin/syncdb.py
srvz/zkdash
f705c72983694bb6437cb2c2e2cdb72122d151d1
[ "Apache-2.0" ]
null
null
null
bin/syncdb.py
srvz/zkdash
f705c72983694bb6437cb2c2e2cdb72122d151d1
[ "Apache-2.0" ]
null
null
null
bin/syncdb.py
srvz/zkdash
f705c72983694bb6437cb2c2e2cdb72122d151d1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Copyright (c) 2014,掌阅科技 All rights reserved. 摘 要: syncdb.py 创 建 者: zhuangshixiong 创建日期: 2015-10-10 ''' # pylint: disable=import-error, unused-variable, protected-access import sys import os import pkgutil sys.path.append(os.path.dirname(os.path.split(os.path.realpa...
26.223881
84
0.642573
a909c9d21100ad59c91ca572650b303e147a49c5
426
py
Python
test_scripts/stop_stream.py
luozh05/Doc
3471a9c8578d6530abf5c3ee3100488b0dc1e447
[ "Apache-2.0" ]
null
null
null
test_scripts/stop_stream.py
luozh05/Doc
3471a9c8578d6530abf5c3ee3100488b0dc1e447
[ "Apache-2.0" ]
null
null
null
test_scripts/stop_stream.py
luozh05/Doc
3471a9c8578d6530abf5c3ee3100488b0dc1e447
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import socket import sys import json import json_over_tcp from json_over_tcp import send_and_receive_msg if __name__ == '__main__': #test start stream:right input, case 0 cmd = {} cmd["cmd-stop-stream"] = "NULL" cmd_string = json.dumps(cmd) result = send_and_receive_msg(cmd_...
22.421053
46
0.673709
637ad35cbb18e683a7236f25616659173215035b
4,366
py
Python
ee/tasks/test/test_send_license_usage.py
dorucioclea/posthog
a7e792c3fc5c1abc70d8167e1ead12d4ea24f17a
[ "MIT" ]
7,409
2020-02-09T23:18:10.000Z
2022-03-31T22:36:25.000Z
ee/tasks/test/test_send_license_usage.py
dorucioclea/posthog
a7e792c3fc5c1abc70d8167e1ead12d4ea24f17a
[ "MIT" ]
5,709
2020-02-09T23:26:13.000Z
2022-03-31T20:20:01.000Z
ee/tasks/test/test_send_license_usage.py
dorucioclea/posthog
a7e792c3fc5c1abc70d8167e1ead12d4ea24f17a
[ "MIT" ]
647
2020-02-13T17:50:55.000Z
2022-03-31T11:24:19.000Z
from unittest.mock import ANY, patch from uuid import uuid4 from freezegun import freeze_time from ee.api.test.base import LicensedTestMixin from ee.clickhouse.models.event import create_event from ee.clickhouse.util import ClickhouseDestroyTablesMixin from ee.models.license import License from ee.tasks.send_license_...
47.978022
115
0.688044
1d83a31a5e2e08ae1de385158bc4b910ae01354b
1,091
py
Python
CustomUsers/migrations/0001_initial.py
PopaGabriel/Food-Ecommerce-Site
7f7cde94939f02f13df5afa865cddc72981481e2
[ "MIT" ]
1
2021-08-12T08:46:56.000Z
2021-08-12T08:46:56.000Z
CustomUsers/migrations/0001_initial.py
PopaGabriel/Food-Ecommerce-Site
7f7cde94939f02f13df5afa865cddc72981481e2
[ "MIT" ]
null
null
null
CustomUsers/migrations/0001_initial.py
PopaGabriel/Food-Ecommerce-Site
7f7cde94939f02f13df5afa865cddc72981481e2
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-09-03 15:19 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='BaseCustomUser', fields=[ ('id', models.Big...
34.09375
117
0.567369
926ecc756213f4098aa8d295452f30fff7851a68
993
py
Python
image.py
Jax-Carstensen/Battleship
aeee90ad0d27f8a4a19047716db35ca31a7dc4ab
[ "MIT" ]
null
null
null
image.py
Jax-Carstensen/Battleship
aeee90ad0d27f8a4a19047716db35ca31a7dc4ab
[ "MIT" ]
null
null
null
image.py
Jax-Carstensen/Battleship
aeee90ad0d27f8a4a19047716db35ca31a7dc4ab
[ "MIT" ]
null
null
null
from vector2 import * import pygame class Image: def __init__(self, src, draw_width=64, draw_height=64): self.src = src self.image = pygame.image.load(self.src).convert_alpha() self.rescale(Vector2(draw_width, draw_height)) self.image_rect = self.image.get_rect() self.dimensions = Vector2(self.im...
39.72
132
0.717019
aa76e54299ab50a763c526250be7d0ebe60dd720
85
py
Python
backend/blame/apps.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
backend/blame/apps.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
backend/blame/apps.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
from django.apps import AppConfig class BlameConfig(AppConfig): name = 'blame'
14.166667
33
0.741176
45497b59322fb32318be73dd966a328124e1904b
6,027
py
Python
conflowgen/posthoc_analyses/yard_capacity_analysis.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
null
null
null
conflowgen/posthoc_analyses/yard_capacity_analysis.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
null
null
null
conflowgen/posthoc_analyses/yard_capacity_analysis.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
null
null
null
from __future__ import annotations import datetime from typing import Dict, Tuple, List, Collection, Union from conflowgen.domain_models.data_types.storage_requirement import StorageRequirement from conflowgen.domain_models.arrival_information import TruckArrivalInformationForDelivery, \ TruckArrivalInformationFo...
53.336283
120
0.710138
d03d301c1394ac7fb12418590cb4281401350016
3,280
py
Python
short-read-mngs/idseq-dag/idseq_dag/steps/run_gsnap_filter.py
lynnlangit/idseq-workflows
2423bcb88e3e084b0d709c9936aecd476364a31e
[ "MIT" ]
null
null
null
short-read-mngs/idseq-dag/idseq_dag/steps/run_gsnap_filter.py
lynnlangit/idseq-workflows
2423bcb88e3e084b0d709c9936aecd476364a31e
[ "MIT" ]
null
null
null
short-read-mngs/idseq-dag/idseq_dag/steps/run_gsnap_filter.py
lynnlangit/idseq-workflows
2423bcb88e3e084b0d709c9936aecd476364a31e
[ "MIT" ]
null
null
null
import os import subprocess from idseq_dag.engine.pipeline_step import PipelineCountingStep from idseq_dag.exceptions import InsufficientReadsError import idseq_dag.util.command as command import idseq_dag.util.command_patterns as command_patterns import idseq_dag.util.convert as convert import idseq_dag.util.log as lo...
36.444444
104
0.623171
9d6871caad73ee47db1d0a583622ba4a1ee5a9de
2,632
py
Python
lingofunk_regenerate/tests.py
lingofunk/lingofunk-regenerate
aa38044594990c895e0f370734447dcc388c0b2f
[ "MIT" ]
null
null
null
lingofunk_regenerate/tests.py
lingofunk/lingofunk-regenerate
aa38044594990c895e0f370734447dcc388c0b2f
[ "MIT" ]
null
null
null
lingofunk_regenerate/tests.py
lingofunk/lingofunk-regenerate
aa38044594990c895e0f370734447dcc388c0b2f
[ "MIT" ]
null
null
null
import torch import numpy as np from lingofunk_regenerate.utils import log as _log def log(text): _log(text, prefix="tests: ") def test_generate_text_of_sentiment(model, dataset): log("Text generation of given sentiment\n") # Samples latent and conditional codes randomly from prior z = model.sample...
28.301075
75
0.648556
2156100a4127a2f54f129e082dfcea6c3ca17ef5
1,102
py
Python
tools/arp_spoof.py
s3q/backdoor_c
5c5f67bcc37fea34d84e2ed0805df52ceb060c7a
[ "Apache-2.0" ]
5
2021-08-05T05:22:45.000Z
2022-02-23T00:11:53.000Z
tools/arp_spoof.py
s3q/blackdoor
5c5f67bcc37fea34d84e2ed0805df52ceb060c7a
[ "Apache-2.0" ]
null
null
null
tools/arp_spoof.py
s3q/blackdoor
5c5f67bcc37fea34d84e2ed0805df52ceb060c7a
[ "Apache-2.0" ]
null
null
null
import sys import scapy.all as scapy import argparse from time import sleep def get_arguments(): parser = argparse.ArgumentParser() parser.add_argument('-t', '--target', dest='target', help='Specify target ip') parser.add_argument('-g', '--gateway', dest='gateway', help='Specify spoof ip') return parse...
30.611111
129
0.675136
19e69e622c4cbcfb2e1c43de650593873b3e849b
1,592
py
Python
recipes/engine_tests/multiple_placeholders.py
engeg/recipes-py
9dac536b55887262b4ce846f3db7a7f596542e5e
[ "Apache-2.0" ]
1
2021-04-24T04:03:01.000Z
2021-04-24T04:03:01.000Z
recipes/engine_tests/multiple_placeholders.py
engeg/recipes-py
9dac536b55887262b4ce846f3db7a7f596542e5e
[ "Apache-2.0" ]
null
null
null
recipes/engine_tests/multiple_placeholders.py
engeg/recipes-py
9dac536b55887262b4ce846f3db7a7f596542e5e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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. """Tests error checking around multiple placeholders in a single step.""" from recipe_engine.post_process import DropExpectation DEPS = [ 'assertions', ...
26.983051
74
0.652638
2b6de2fc2ecb27febe44479b8954066a0ab7f415
6,973
py
Python
parsers.py
Dataliberate/bibschemaorg
5548293ddf79e94153b70ae3eefa9ee2adcd2e13
[ "Apache-2.0" ]
2
2015-11-19T03:53:09.000Z
2016-11-23T10:45:33.000Z
parsers.py
Dataliberate/bibschemaorg
5548293ddf79e94153b70ae3eefa9ee2adcd2e13
[ "Apache-2.0" ]
1
2015-04-28T15:54:20.000Z
2015-04-29T23:13:13.000Z
parsers.py
Dataliberate/bibschemaorg
5548293ddf79e94153b70ae3eefa9ee2adcd2e13
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # import webapp2 import re from google.appengine.ext import db from google.appengine.ext import blobstore from google.appengine.ext.webapp import blobstore_handlers import xml.etree.ElementTree as ET import logging import api def MakeParserOfType (format, webapp): if (format == 'mcf') : ...
35.395939
162
0.530331
bc636021ea1da44862595c57e3c1d2942b4b0f54
816
py
Python
scrapyproject/cinemaspiders/yahoo_cinema.py
gas1121/JapanCinemaStatusSpider
67c7b963914565589f64dd1bcf18839a4160ea34
[ "MIT" ]
2
2018-06-07T13:28:03.000Z
2018-12-10T14:04:53.000Z
scrapyproject/cinemaspiders/yahoo_cinema.py
gas1121/JapanCinemaStatusSpider
67c7b963914565589f64dd1bcf18839a4160ea34
[ "MIT" ]
null
null
null
scrapyproject/cinemaspiders/yahoo_cinema.py
gas1121/JapanCinemaStatusSpider
67c7b963914565589f64dd1bcf18839a4160ea34
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from scrapyproject.cinemaspiders.cinema_spider import CinemaSpider class YahooCinemaSpider(CinemaSpider): """ cinema info spider for http://movies.yahoo.co.jp """ name = "yahoo_cinema" allowed_domains = ["movies.yahoo.co.jp"] start_urls = ['http://movies.yahoo.co.jp/are...
30.222222
66
0.598039
311410c80a974846f30f371dd812b452cfdfd099
834
py
Python
tests/test_network.py
horpto/phone-iso3166
09d6bb8cf69bc0dffb97677924aa3318b579f030
[ "MIT" ]
19
2017-03-28T10:35:22.000Z
2022-03-14T04:39:03.000Z
tests/test_network.py
horpto/phone-iso3166
09d6bb8cf69bc0dffb97677924aa3318b579f030
[ "MIT" ]
17
2016-11-11T11:50:57.000Z
2021-06-22T09:32:17.000Z
tests/test_network.py
horpto/phone-iso3166
09d6bb8cf69bc0dffb97677924aa3318b579f030
[ "MIT" ]
5
2015-09-28T18:25:38.000Z
2021-07-05T11:57:58.000Z
from phone_iso3166.network import network, country_networks from phone_iso3166.errors import InvalidNetwork, InvalidCountry import pytest def test_network(): c, n = network(238, 1) assert c == 'DK' assert n == 'TDC A/S' c, n = network(238, 2) assert c == 'DK' assert n == 'Telenor Denmark' ...
22.540541
70
0.642686
40e4632d5779dce44c1d9dd5543d9499b88f9de2
512
py
Python
pysal/explore/segregation/tests/test_atkinson.py
ocefpaf/pysal
7e397bdb4c22d4e2442b4ee88bcd691d2421651d
[ "BSD-3-Clause" ]
1
2021-08-16T02:47:35.000Z
2021-08-16T02:47:35.000Z
pysal/explore/segregation/tests/test_atkinson.py
ocefpaf/pysal
7e397bdb4c22d4e2442b4ee88bcd691d2421651d
[ "BSD-3-Clause" ]
null
null
null
pysal/explore/segregation/tests/test_atkinson.py
ocefpaf/pysal
7e397bdb4c22d4e2442b4ee88bcd691d2421651d
[ "BSD-3-Clause" ]
null
null
null
import unittest import pysal.lib import geopandas as gpd import numpy as np from pysal.explore.segregation.aspatial import Atkinson class Atkinson_Tester(unittest.TestCase): def test_Atkinson(self): s_map = gpd.read_file(pysal.lib.examples.get_path("sacramentot2.shp")) df = s_map[['geometry', 'HIS...
28.444444
78
0.71875
7088e9a6165ff2359d6eeb299deb8df60e7868ec
2,234
py
Python
tests/python/gaia-ui-tests/gaiatest/tests/functional/gallery/test_gallery_switch_to_camera.py
marshall/gaia
00722269f5d559595fd2f79d9dd70310758af08c
[ "Apache-2.0" ]
1
2019-02-13T23:44:14.000Z
2019-02-13T23:44:14.000Z
tests/python/gaia-ui-tests/gaiatest/tests/functional/gallery/test_gallery_switch_to_camera.py
marshall/gaia
00722269f5d559595fd2f79d9dd70310758af08c
[ "Apache-2.0" ]
null
null
null
tests/python/gaia-ui-tests/gaiatest/tests/functional/gallery/test_gallery_switch_to_camera.py
marshall/gaia
00722269f5d559595fd2f79d9dd70310758af08c
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. try: from marionette import Wait except: from marionette_driver import Wait from gaiatest import GaiaTestCase f...
36.622951
88
0.690689
44964e4684f169404a501c81942100c1ece96411
14,468
py
Python
neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/br_int.py
1pintbeer/neutron
f5a827c2be06f24a1f8025f120f16c12eb1b1f55
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/br_int.py
1pintbeer/neutron
f5a827c2be06f24a1f8025f120f16c12eb1b1f55
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/br_int.py
1pintbeer/neutron
f5a827c2be06f24a1f8025f120f16c12eb1b1f55
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2014,2015 VA Linux Systems Japan K.K. # Copyright (C) 2014,2015 YAMAMOTO Takashi <yamamoto at valinux co jp> # 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 t...
43.18806
79
0.612593
76f89d6ed21f57f192af8a22823cdc0be00c5b14
1,455
py
Python
src/programy/processors/pre/toupper.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/processors/pre/toupper.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/processors/pre/toupper.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
4
2019-04-01T15:42:23.000Z
2020-11-05T08:14:27.000Z
""" Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.com 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, m...
46.935484
120
0.78488
5c6f2643158c5882f235bd6151fbbff18c71463f
7,997
py
Python
sdk/python/pulumi_gcp/serviceaccount/get_account_id_token.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/serviceaccount/get_account_id_token.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/serviceaccount/get_account_id_token.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
46.494186
295
0.706515
821a721b64769294520d104af98bcbbc00388599
1,147
py
Python
mojo/public/tools/bindings/pylib/mojom_tests/generate/module_unittest.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
mojo/public/tools/bindings/pylib/mojom_tests/generate/module_unittest.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-05-05T11:11:31.000Z
2021-05-05T11:11:31.000Z
mojo/public/tools/bindings/pylib/mojom_tests/generate/module_unittest.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
# Copyright 2014 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 imp import os.path import sys import unittest def _GetDirAbove(dirname): """Returns the directory "above" this file containing |dirname| (which mus...
30.184211
77
0.721011
d98224a343ca9d1555a85ac8d9620d433b8245cd
3,132
py
Python
weedcoco/tests/index/test_indexing.py
Sydney-Informatics-Hub/Weed-ID-Interchange
d27891c2148de54d03727f688f8b6c6c414ec09b
[ "MIT" ]
14
2021-11-29T12:16:59.000Z
2022-03-20T00:26:10.000Z
weedcoco/tests/index/test_indexing.py
Sydney-Informatics-Hub/Weed-ID-Interchange
d27891c2148de54d03727f688f8b6c6c414ec09b
[ "MIT" ]
282
2020-07-10T00:52:21.000Z
2021-03-01T06:58:05.000Z
weedcoco/tests/index/test_indexing.py
Sydney-Informatics-Hub/Weed-ID-Interchange
d27891c2148de54d03727f688f8b6c6c414ec09b
[ "MIT" ]
2
2020-10-07T06:12:39.000Z
2021-02-02T05:21:32.000Z
import pathlib import pytest from elasticmock import elasticmock as elasticmock from weedcoco.index.indexing import main, ElasticSearchIndexer BASIC_INPUT_PATH = str( pathlib.Path(__file__).parent.parent / "repo" / "deposit_data" / "basic_1" / "weedcoco.json" ) THUMBNAIL_DIR = "arbitrary-thumbnail...
31.636364
88
0.620051
165919830f020d83e9ad652431ad1033d8356db4
2,487
py
Python
lambdAWS/record.py
wesky93/lambdAWS
6ffa45f09284d07c02a2ce47a0665efa2c6b051a
[ "MIT" ]
null
null
null
lambdAWS/record.py
wesky93/lambdAWS
6ffa45f09284d07c02a2ce47a0665efa2c6b051a
[ "MIT" ]
null
null
null
lambdAWS/record.py
wesky93/lambdAWS
6ffa45f09284d07c02a2ce47a0665efa2c6b051a
[ "MIT" ]
null
null
null
from boto3.dynamodb.types import TypeDeserializer class Record : def __init__( self, raw_record ) : self.raw = raw_record self.resource = self.raw[ 'eventSource' ][ 4 : ] self.region = self.raw[ 'awsRegion' ] self.eventID = self.raw[ 'eventID' ] try : self.event...
26.178947
73
0.527543
74e12a3e592fa92d61391f88fc3f0a4f24806610
2,661
py
Python
applications/SwimmingDEMApplication/python_scripts/L2_error_calculator_utility.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/SwimmingDEMApplication/python_scripts/L2_error_calculator_utility.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/SwimmingDEMApplication/python_scripts/L2_error_calculator_utility.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # importing the Kratos Library import KratosMultiphysics from KratosMultiphysics import Vector import KratosMultiphysics.SwimmingDEMApplication as SDEM import sys class L2ErrorCalcul...
44.35
173
0.765502
effee3954185be2bc93f6a770225811ef82f0091
227
py
Python
src/python/Sailing/src/sailing/core/sailor.py
emop/task-worker
c97cd432d46c73e3e0908d55e7cd10de0afc0854
[ "BSD-2-Clause" ]
1
2021-09-01T09:54:38.000Z
2021-09-01T09:54:38.000Z
src/python/Sailing/src/sailing/core/sailor.py
emop/task-worker
c97cd432d46c73e3e0908d55e7cd10de0afc0854
[ "BSD-2-Clause" ]
null
null
null
src/python/Sailing/src/sailing/core/sailor.py
emop/task-worker
c97cd432d46c73e3e0908d55e7cd10de0afc0854
[ "BSD-2-Clause" ]
1
2015-09-19T05:25:31.000Z
2015-09-19T05:25:31.000Z
class Sailor(object): def ready(self): pass def idle(self): pass def start(self, task): pass def waiting(self): pass def shutdown(self): pass
13.352941
26
0.462555
49f08b393d07917b325ed43a2090356fef9e896d
1,619
py
Python
tests/unit_tests/periodic/test_aggregate_and_send_metrics.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
tests/unit_tests/periodic/test_aggregate_and_send_metrics.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
tests/unit_tests/periodic/test_aggregate_and_send_metrics.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
import json from datetime import datetime, timezone, timedelta import responses from fcache.cache import FileCache from tests.utilities.testing_constants import URL, APP_NAME, INSTANCE_ID, CUSTOM_HEADERS, IP_LIST from UnleashClient.constants import METRICS_URL, METRIC_LAST_SENT_TIME from UnleashClient.periodic_tasks im...
37.651163
97
0.757875
72a910cc223e73a2840a87860bc942dd1ca5c0e4
14,681
py
Python
alf/networks/critic_networks.py
breakds/alf
b3d60048daee2c9625ba44f778e49570d0d029a7
[ "Apache-2.0" ]
1
2021-11-17T17:08:04.000Z
2021-11-17T17:08:04.000Z
alf/networks/critic_networks.py
ipsec/alf
15fd71896eac5ad0987dbe14a9f630b32e0e131f
[ "Apache-2.0" ]
null
null
null
alf/networks/critic_networks.py
ipsec/alf
15fd71896eac5ad0987dbe14a9f630b32e0e131f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Horizon Robotics and ALF Contributors. 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...
47.665584
93
0.649683
e728b3a6504e94174778e77912866b7cd8da6690
3,759
py
Python
cinder/volume/drivers/coprhd/helpers/host.py
bswartz/cinder
6cfecade9e2ee86bbb7d95c3c401c9e4c70f6a96
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/coprhd/helpers/host.py
bswartz/cinder
6cfecade9e2ee86bbb7d95c3c401c9e4c70f6a96
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/coprhd/helpers/host.py
bswartz/cinder
6cfecade9e2ee86bbb7d95c3c401c9e4c70f6a96
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 EMC Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
35.8
79
0.614525
37b907907f050194f31587b8b969113a63c9a5a1
3,049
py
Python
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/auth/decorators.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/auth/decorators.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/contrib/auth/decorators.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
from functools import wraps from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME from django.core.exceptions import PermissionDenied from django.shortcuts import resolve_url from django.utils import six from django.utils.decorators import available_attrs from django.utils.six.moves.urll...
3,049
3,049
0.69367
526d893526ca89ba0d96a81e9d02698c714cfff2
1,170
py
Python
tests/storage/cases/test_KT1VvXEpeBpreAVpfp4V8ZujqWu2gVykwXBJ_babylon.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-08-11T02:31:24.000Z
2020-08-11T02:31:24.000Z
tests/storage/cases/test_KT1VvXEpeBpreAVpfp4V8ZujqWu2gVykwXBJ_babylon.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-12-30T16:44:56.000Z
2020-12-30T16:44:56.000Z
tests/storage/cases/test_KT1VvXEpeBpreAVpfp4V8ZujqWu2gVykwXBJ_babylon.py
tqtezos/pytezos
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
[ "MIT" ]
1
2022-03-20T19:01:00.000Z
2022-03-20T19:01:00.000Z
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1VvXEpeBpreAVpfp4V8ZujqWu2gVykwXBJ_babylon(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None ...
41.785714
112
0.757265
de4a6e8103e176d0d6d39a6a3f3056286fa6720f
6,287
py
Python
nova/scheduler/weights/affinity.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/scheduler/weights/affinity.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/scheduler/weights/affinity.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright (c) 2015 Ericsson AB' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment...
16.161954
395
0.663273
7d853d0fb193fed74ab9e861c4ac08ed533ac101
4,303
py
Python
ondevice/core/thread.py
ondevice/ondevice-client
a291f22827684f192a4f03e6fce3325527f30268
[ "Linux-OpenIB" ]
2
2016-08-02T15:32:19.000Z
2016-08-25T08:51:50.000Z
ondevice/core/thread.py
ondevice/ondevice-python
a291f22827684f192a4f03e6fce3325527f30268
[ "Linux-OpenIB" ]
29
2016-07-08T06:56:06.000Z
2016-11-09T22:59:44.000Z
ondevice/core/thread.py
ondevice/ondevice-client
a291f22827684f192a4f03e6fce3325527f30268
[ "Linux-OpenIB" ]
null
null
null
from ondevice.core import state import logging import threading import time class ThreadInfo: """ Stores some information on each BackgroundThread instance """ def __init__(self, **kwargs): for key in 'id,name'.split(','): if key not in kwargs: raise KeyError("Missing requi...
36.777778
147
0.614223
c196cce761871f87a40c47cbc54baf6c2cdf3c5c
1,108
py
Python
examples/Dudeney.py
maxtuno/SATX
68fc74a2b64c5c59a695724497d3327c47e6d152
[ "MIT" ]
4
2021-04-09T04:18:17.000Z
2021-08-04T13:34:54.000Z
examples/Dudeney.py
maxtuno/SATX
68fc74a2b64c5c59a695724497d3327c47e6d152
[ "MIT" ]
null
null
null
examples/Dudeney.py
maxtuno/SATX
68fc74a2b64c5c59a695724497d3327c47e6d152
[ "MIT" ]
null
null
null
""" See https://en.wikipedia.org/wiki/Dudeney_number In number theory, a Dudeney number in a given number base b is a natural number equal to the perfect cube of another natural number such that the digit sum of the first natural number is equal to the second. The name derives from Henry Dudeney, who noted the existen...
28.410256
100
0.702166
d4c715129502ceb90a0b93512f4465122a346b53
1,469
py
Python
service/dao/model/job_seeker_answers.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
null
null
null
service/dao/model/job_seeker_answers.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
1
2021-12-23T13:36:43.000Z
2021-12-23T13:36:43.000Z
service/dao/model/job_seeker_answers.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
null
null
null
from typing import Dict, Optional from pydantic import BaseModel from service.dao.single_table_service import DATA_DELIMITER, SingleTableRecord JOB_SEEKER_ANSWERS_PK = "JOB_SEEKER_ANSWER" JOB_SEEKER_ANSWERS_SK_PREFIX = "JOB_SEEKER_ID" class JobSeekerAnswers(BaseModel, SingleTableRecord): # def __init__(self, ...
24.483333
78
0.667801
fbccf37b2928c34f99bf023df676379b0df0319c
318
py
Python
octicons16px/chevron_up.py
andrewp-as-is/octicons16px.py
1272dc9f290619d83bd881e87dbd723b0c48844c
[ "Unlicense" ]
1
2021-01-28T06:47:39.000Z
2021-01-28T06:47:39.000Z
octicons16px/chevron_up.py
andrewp-as-is/octicons16px.py
1272dc9f290619d83bd881e87dbd723b0c48844c
[ "Unlicense" ]
null
null
null
octicons16px/chevron_up.py
andrewp-as-is/octicons16px.py
1272dc9f290619d83bd881e87dbd723b0c48844c
[ "Unlicense" ]
null
null
null
OCTICON_CHEVRON_UP = """ <svg class="octicon octicon-chevron-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M3.22 9.78a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 0l4.25 4.25a.75.75 0 01-1.06 1.06L8 6.06 4.28 9.78a.75.75 0 01-1.06 0z"></path></svg> """
63.6
287
0.663522
98a0eaed0f150065563a1722aa39ccfa19f514ed
1,495
py
Python
{{cookiecutter.project_slug}}/usuario/api_views.py
claysllanxavier/django-cookiecutter
97de7ff4ed3dc94c32bf756a57aee0664a888cbc
[ "BSD-3-Clause" ]
8
2021-08-13T17:48:27.000Z
2022-02-22T02:34:15.000Z
{{cookiecutter.project_slug}}/usuario/api_views.py
claysllanxavier/django-cookiecutter
97de7ff4ed3dc94c32bf756a57aee0664a888cbc
[ "BSD-3-Clause" ]
2
2022-03-24T20:39:00.000Z
2022-03-24T20:39:48.000Z
{{cookiecutter.project_slug}}/usuario/api_views.py
claysllanxavier/django-cookiecutter
97de7ff4ed3dc94c32bf756a57aee0664a888cbc
[ "BSD-3-Clause" ]
2
2021-09-21T00:05:27.000Z
2022-01-03T10:50:05.000Z
from drf_jsonmask.views import OptimizedQuerySetMixin from rest_framework import filters from rest_framework.viewsets import ModelViewSet, ReadOnlyModelViewSet from rest_framework.decorators import permission_classes from rest_framework.permissions import IsAuthenticated from .serializers import UsuarioSerializer, Us...
42.714286
118
0.793311
05565ae2653798cde82cc12ea6174e172c4c360c
25,053
py
Python
symposion/conference/migrations/0001_initial.py
azkarmoulana/pycon
931388e6f640c35b892bb4b2d12581ba7ec8cf4e
[ "BSD-3-Clause" ]
154
2015-01-17T02:29:24.000Z
2022-03-20T20:37:24.000Z
symposion/conference/migrations/0001_initial.py
azkarmoulana/pycon
931388e6f640c35b892bb4b2d12581ba7ec8cf4e
[ "BSD-3-Clause" ]
316
2015-01-10T04:01:50.000Z
2020-09-30T20:18:08.000Z
symposion/conference/migrations/0001_initial.py
azkarmoulana/pycon
931388e6f640c35b892bb4b2d12581ba7ec8cf4e
[ "BSD-3-Clause" ]
89
2015-01-10T05:25:21.000Z
2022-02-27T03:28:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import timezones.fields class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Conference', fields=[ (...
544.630435
23,334
0.690496
f5a6a6cbdde36e6007dbda681e3e49bd6a8a889b
1,350
py
Python
src/pdc2/scripts/fix_names_from_transdecoder.py
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
4
2021-07-18T05:20:20.000Z
2022-01-03T10:22:33.000Z
src/pdc2/scripts/fix_names_from_transdecoder.py
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
1
2017-08-21T07:26:13.000Z
2018-11-08T13:59:48.000Z
src/pdc2/scripts/fix_names_from_transdecoder.py
jlanga/smsk_orthofinder
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
2
2021-07-18T05:20:26.000Z
2022-03-31T18:23:31.000Z
""" fix EST names to taxonID@seqID before transdecoder """ import os,sys #seq names look like #>TR10000|c0_g1_i1|m.14496 TR10000|c0_g1_i1|g.14496 ORF TR10000|c0_g1_i1|g.14496 TR10000|c0_g1_i1|m.14496 type:5prime_partial len:180 (+) TR10000|c0_g1_i1:1-540(+) #>cds.Mecr@gi_11549800_gb_BF478973_1_BF478973|m.9518 Mecr@g...
31.395349
280
0.698519
aa17a09f4ea5c62aec96daa8d42affacf32687da
3,460
py
Python
scripts/tests/chiptest/runner.py
ChengqiangShe/connectedhomeip
3a617aa821e7c84093ab17313d6ce02d3ec32219
[ "Apache-2.0" ]
3
2022-02-09T08:42:16.000Z
2022-02-22T04:47:02.000Z
scripts/tests/chiptest/runner.py
ChengqiangShe/connectedhomeip
3a617aa821e7c84093ab17313d6ce02d3ec32219
[ "Apache-2.0" ]
8
2020-07-07T21:51:44.000Z
2021-07-26T13:43:00.000Z
scripts/tests/chiptest/runner.py
doublemis1/connectedhomeip
6a08b0404b7b068fd080db504d3eb1edf4bef89f
[ "Apache-2.0" ]
7
2021-04-26T06:22:35.000Z
2021-12-16T07:10:43.000Z
# Copyright (c) 2021 Project CHIP Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.892857
86
0.621387
88a666529948068372d471e9d68f76dc1cce6597
847
py
Python
src/ansible_navigator/ui_framework/form_handler_working.py
goneri/ansible-navigator
59c5c4e9758404bcf363face09cf46c325b01ad3
[ "Apache-2.0" ]
null
null
null
src/ansible_navigator/ui_framework/form_handler_working.py
goneri/ansible-navigator
59c5c4e9758404bcf363face09cf46c325b01ad3
[ "Apache-2.0" ]
null
null
null
src/ansible_navigator/ui_framework/form_handler_working.py
goneri/ansible-navigator
59c5c4e9758404bcf363face09cf46c325b01ad3
[ "Apache-2.0" ]
null
null
null
"""working handler, instant 1112065 utf-8 max = 112064 """ from typing import TYPE_CHECKING from typing import List from typing import Tuple from .curses_window import CursesWindow if TYPE_CHECKING: from .field_working import FieldWorking # pylint: disable=cyclic-import class FormHandlerWorking(CursesWindow)...
26.46875
76
0.70366
0e1ace7891c411af6dfb381018dd4408151a9848
91,192
py
Python
core/domain/story_services_test.py
WebFlakyTest/oppia
520e35490eae8171beb035fbafc2948983abec75
[ "Apache-2.0" ]
1
2021-08-17T20:33:12.000Z
2021-08-17T20:33:12.000Z
core/domain/story_services_test.py
WebFlakyTest/oppia
520e35490eae8171beb035fbafc2948983abec75
[ "Apache-2.0" ]
null
null
null
core/domain/story_services_test.py
WebFlakyTest/oppia
520e35490eae8171beb035fbafc2948983abec75
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
42.633006
80
0.614747
d7f1ce9654a4daebe7ad3dc3f19e224f0716bfa4
4,525
py
Python
src/validation_jaccard_index.py
uwasystemhealth/Maintenance_Work_Order_Processing_Pipeline_Public
177eca4992cfdfac49c135f5597904182748b873
[ "MIT" ]
2
2020-03-05T23:30:05.000Z
2021-01-10T20:48:47.000Z
src/validation_jaccard_index.py
uwasystemhealth/Maintenance_Work_Order_Processing_Pipeline_Public
177eca4992cfdfac49c135f5597904182748b873
[ "MIT" ]
null
null
null
src/validation_jaccard_index.py
uwasystemhealth/Maintenance_Work_Order_Processing_Pipeline_Public
177eca4992cfdfac49c135f5597904182748b873
[ "MIT" ]
1
2020-04-05T15:00:26.000Z
2020-04-05T15:00:26.000Z
import pandas as pd import global_variables as v def validation(manually_tagged_rows, automatically_tagged_rows, delimiter): correct = 0 incorrect = 0 ignored = 0 final_jaccard_index = 0 jaccard_count = 0 recordCount = 0 zeroTaggedCount = 0; for index, row in manually_tagged_r...
38.675214
111
0.675138
1379d320044ca616b0c7409e8afe5c8f388e060e
532
py
Python
leetcode/946. Validate Stack Sequences/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/946. Validate Stack Sequences/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/946. Validate Stack Sequences/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
class Solution: def validateStackSequences(self, pushed: List[int], popped: List[int]) -> bool: st = [] i, j = 0, 0 while i < len(pushed) and j < len(popped): # Lets start by pushing an element st.append(pushed[i]) # Now try popping as much a...
31.294118
83
0.469925
4a7a44fbd6619870d43d004ff6c5a1401c2fba3c
2,155
py
Python
alembic/env.py
sheeley/Safe-Streets-Event-Tracker
0b312f7476e4f5b25bf66cfd4038301a5615fcdb
[ "MIT" ]
1
2016-02-11T06:13:25.000Z
2016-02-11T06:13:25.000Z
alembic/env.py
sheeley/Safe-Streets-Event-Tracker
0b312f7476e4f5b25bf66cfd4038301a5615fcdb
[ "MIT" ]
8
2015-04-09T03:38:18.000Z
2015-05-28T16:33:54.000Z
alembic/env.py
sheeley/Safe-Streets-Event-Tracker
0b312f7476e4f5b25bf66cfd4038301a5615fcdb
[ "MIT" ]
null
null
null
from __future__ import with_statement from alembic import context from sqlalchemy import create_engine, pool from logging.config import fileConfig from os import environ # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config # Interpret the conf...
28.733333
89
0.732715
8eaa00e9b8d1193c79f4c40c8d8497d7c49955c3
18,925
py
Python
src/sqlfluff/dialects/dialect_snowflake.py
swanderz/sqlfluff
668f23500ce5d06f4de67333a8957811c2df485f
[ "MIT" ]
null
null
null
src/sqlfluff/dialects/dialect_snowflake.py
swanderz/sqlfluff
668f23500ce5d06f4de67333a8957811c2df485f
[ "MIT" ]
null
null
null
src/sqlfluff/dialects/dialect_snowflake.py
swanderz/sqlfluff
668f23500ce5d06f4de67333a8957811c2df485f
[ "MIT" ]
null
null
null
"""The Snowflake dialect. Inherits from Postgres. Based on https://docs.snowflake.com/en/sql-reference-commands.html """ from sqlfluff.core.dialects import load_raw_dialect from sqlfluff.core.parser import ( BaseSegment, NamedSegment, OneOf, Ref, Sequence, AnyNumberOf, ReSegment, Symb...
28.078635
105
0.57395
8b50d1da8b365e4e1f065e7d052ddbaa27969c22
42,528
py
Python
tools/impackets/build/scripts-3.8/ticketer.py
c0axial/hackthebox
db9fa3d7b75bf779399d17f8923ff743379631be
[ "MIT" ]
1
2021-03-15T20:05:05.000Z
2021-03-15T20:05:05.000Z
tools/impackets/build/scripts-3.8/ticketer.py
oppsec/hackthebox
dd33e0f182af1ad28812af9662d47bdbbcbea9d3
[ "MIT" ]
null
null
null
tools/impackets/build/scripts-3.8/ticketer.py
oppsec/hackthebox
dd33e0f182af1ad28812af9662d47bdbbcbea9d3
[ "MIT" ]
1
2020-12-29T14:00:13.000Z
2020-12-29T14:00:13.000Z
#!/usr/bin/python3 # SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved. # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: # Alberto Solino (@agsolino) # # Description: #...
52.053856
141
0.643882
29e974af201dcee8b38bb970fb7ac08a747999f9
794
py
Python
head_detection/data/anchors.py
eplatero97/HeadHunter
f72ef06263a530102b3de1894f94d65255aecb37
[ "MIT" ]
60
2021-06-20T06:17:30.000Z
2022-03-30T03:04:48.000Z
head_detection/data/anchors.py
eplatero97/HeadHunter
f72ef06263a530102b3de1894f94d65255aecb37
[ "MIT" ]
21
2021-06-21T09:39:27.000Z
2022-02-07T22:41:43.000Z
head_detection/data/anchors.py
eplatero97/HeadHunter
f72ef06263a530102b3de1894f94d65255aecb37
[ "MIT" ]
16
2021-06-22T03:07:06.000Z
2022-01-18T16:52:05.000Z
#!/usr/bin/env python # coding: utf-8 shead_anchors = ((18,), (36,), (72,), (128,), (208,), (320,), (512,), (768,)) chuman_anchors = ((10,), (48,), (128,), (192,), (256,), (320,), (512,)) comb_anchors = ((12,), (32,), (64,), (112,), (196, ), (256,), (384,), (512,)) hh_anchors = ((12,), (18,), (24,), (32,), ...
34.521739
77
0.549118
d4837cacfc1bff3a5e939855ed791222efe603da
5,411
py
Python
tests/test_dblib.py
locriandev/doozer
375eafccc15aadfd18dc50061eccb9a917d31b0b
[ "Apache-2.0" ]
16
2018-11-06T16:49:03.000Z
2021-11-07T19:48:49.000Z
tests/test_dblib.py
locriandev/doozer
375eafccc15aadfd18dc50061eccb9a917d31b0b
[ "Apache-2.0" ]
479
2018-11-15T15:37:49.000Z
2022-03-31T08:39:44.000Z
tests/test_dblib.py
locriandev/doozer
375eafccc15aadfd18dc50061eccb9a917d31b0b
[ "Apache-2.0" ]
38
2018-11-07T14:33:15.000Z
2021-12-13T13:59:12.000Z
import unittest from doozerlib.dblib import DB, Record from multiprocessing import RLock, Lock, Semaphore import logging import datetime import pathlib import traceback import sys import mock class FakeMetaData(object): def __init__(self): self.name = "test" self.namespace = "test_namespace" ...
35.598684
112
0.592682
4abd04b3f188f7f0c8e38cb8fdf5d6f743626599
394
py
Python
neurodsp/plts/__init__.py
elybrand/neurodsp
96355f4c75e1eedef2a77a8bfafc718f80b8dae3
[ "Apache-2.0" ]
null
null
null
neurodsp/plts/__init__.py
elybrand/neurodsp
96355f4c75e1eedef2a77a8bfafc718f80b8dae3
[ "Apache-2.0" ]
null
null
null
neurodsp/plts/__init__.py
elybrand/neurodsp
96355f4c75e1eedef2a77a8bfafc718f80b8dae3
[ "Apache-2.0" ]
null
null
null
"""Plotting functions.""" from .time_series import plot_time_series, plot_bursts, plot_instantaneous_measure from .filt import plot_filter_properties, plot_frequency_response, plot_impulse_response from .rhythm import plot_swm_pattern, plot_lagged_coherence from .spectral import (plot_power_spectra, plot_spectral_hist...
49.25
88
0.814721
2513075704ca69a5b4da09cad0785566130d8fc4
9,554
py
Python
aiida_kkr/parsers/kkr.py
markusstruckmann/aiida-kkr
5ce20a61a667787aeb68fa0c8b81e73aa3cf94a5
[ "MIT" ]
6
2018-11-16T10:44:06.000Z
2021-02-09T15:38:51.000Z
aiida_kkr/parsers/kkr.py
RubelMozumder/aiida-kkr
1db3d57626c27f2a7105d587dfb8543269ce6c00
[ "MIT" ]
63
2018-11-27T10:43:49.000Z
2022-02-10T11:10:16.000Z
aiida_kkr/parsers/kkr.py
RubelMozumder/aiida-kkr
1db3d57626c27f2a7105d587dfb8543269ce6c00
[ "MIT" ]
9
2018-11-09T09:52:16.000Z
2021-12-10T18:09:11.000Z
# -*- coding: utf-8 -*- """ Parser for the KKR Code. The parser should never fail, but it should catch all errors and warnings and show them to the user. """ from __future__ import absolute_import from aiida.parsers.parser import Parser from aiida.orm import Dict from aiida_kkr.calculations.kkr import KkrCalculation f...
44.02765
126
0.623613
84b05d1a7a94cb09f625fa7f7ace2201ac1d0cff
594
py
Python
ray_beam_runner/util.py
pabloem/ray_beam_runner
ec884d66067071f44eff7ca4be032474e2261e93
[ "Apache-2.0" ]
12
2022-01-13T05:58:45.000Z
2022-03-31T23:05:59.000Z
ray_beam_runner/util.py
pabloem/ray_beam_runner
ec884d66067071f44eff7ca4be032474e2261e93
[ "Apache-2.0" ]
7
2022-02-23T09:58:54.000Z
2022-03-29T21:44:53.000Z
ray_beam_runner/util.py
pabloem/ray_beam_runner
ec884d66067071f44eff7ca4be032474e2261e93
[ "Apache-2.0" ]
3
2022-02-23T04:28:08.000Z
2022-03-13T19:15:35.000Z
import ray from apache_beam.pipeline import PipelineVisitor class PipelinePrinter(PipelineVisitor): def visit_value(self, value, producer_node): print(f"visit_value(value, {producer_node.full_label})") def visit_transform(self, transform_node): print(f"visit_transform({type(transform_node.tra...
34.941176
72
0.765993
203f4e693b3cb361ddd7e6c0003d0073a15911b8
249
py
Python
test/gallery/proteinsignal/testChemotaxis.py
jeanqasaur/jeeves
1b5783a98f88fa2fc9e4cae7e005d2c9242cfea4
[ "MIT" ]
253
2015-01-02T01:54:27.000Z
2022-03-10T01:44:02.000Z
test/gallery/proteinsignal/testChemotaxis.py
jeanqasaur/jeeves
1b5783a98f88fa2fc9e4cae7e005d2c9242cfea4
[ "MIT" ]
4
2015-06-09T03:36:28.000Z
2017-08-11T15:54:24.000Z
test/gallery/proteinsignal/testChemotaxis.py
jeanqasaur/jeeves
1b5783a98f88fa2fc9e4cae7e005d2c9242cfea4
[ "MIT" ]
29
2015-02-14T02:24:08.000Z
2021-12-16T02:46:16.000Z
import JeevesLib from smt.Z3 import * import unittest from RSphaeroides import RSphaeroides import JeevesLib class TestAuction(unittest.TestCase): def setUp(self): JeevesLib.init() def test_something(self): r = RSphaeroides() pass
17.785714
37
0.75502
84c0faf62ebb6df665e10c17de64d236f891e58b
895
py
Python
examples/bots/bot 1/job.py
Sal0hc1n/crypto-price-api
d5580ca3a0f0267e73927212d8b182a4d2e5db8e
[ "MIT" ]
null
null
null
examples/bots/bot 1/job.py
Sal0hc1n/crypto-price-api
d5580ca3a0f0267e73927212d8b182a4d2e5db8e
[ "MIT" ]
null
null
null
examples/bots/bot 1/job.py
Sal0hc1n/crypto-price-api
d5580ca3a0f0267e73927212d8b182a4d2e5db8e
[ "MIT" ]
null
null
null
from bot.App import bot from bot import crud from bot import coin def user_job(chat_id): user = crud.get_user(chat_id) new_value = coin.get_current_value() diff = new_value - user.value if abs(diff) > user.overweight: crud.update_value(chat_id, new_value) prefix = "Up" if diff > 0 els...
37.291667
99
0.631285
55d21d5afd2aaf91df16908d5df7eecad3784c55
3,848
py
Python
scripts/01_normalize_packages.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
2
2020-09-17T20:51:18.000Z
2020-11-03T15:58:10.000Z
scripts/01_normalize_packages.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
97
2020-08-26T05:07:08.000Z
2022-03-28T16:01:49.000Z
scripts/01_normalize_packages.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
null
null
null
import os import pygit2 import pip import subprocess temp_req_file = "temp_requirements.txt" perm_req_file = "../requirements.txt" # Mapping of dependencies to download and install from Facade Technologies github # These are generally repositories that needed to be forked and modified to work with Facile. requirement...
44.744186
120
0.577183
528081bc1135c81bfd23288211c3cf7d0eb0fd4e
1,002
py
Python
setup.py
choi-jiwoo/pyrich
21f2b2196803ea18d50f904b90a0d7598c183345
[ "MIT" ]
null
null
null
setup.py
choi-jiwoo/pyrich
21f2b2196803ea18d50f904b90a0d7598c183345
[ "MIT" ]
null
null
null
setup.py
choi-jiwoo/pyrich
21f2b2196803ea18d50f904b90a0d7598c183345
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools import find_packages from pyrich import __version__ as VERSION description = 'My own portfolio management service' project_urls = { 'Source': 'https://github.com/choi-jiwoo/pyrich', } with open('README.md', 'r') as f: long_description = f.read() install_requires =...
27.081081
68
0.683633
4a47c90da60ee9161a7cf362717cad63521c60a4
2,602
py
Python
nt-worker/Analysis/AnalysisTitle.py
KPFBERT/Newstrust
db1ca6454ce9f421f9c4006f8cd00bade06b17b5
[ "MIT" ]
1
2022-02-25T02:35:09.000Z
2022-02-25T02:35:09.000Z
nt-worker/Analysis/AnalysisTitle.py
KPFBERT/Newstrust
db1ca6454ce9f421f9c4006f8cd00bade06b17b5
[ "MIT" ]
null
null
null
nt-worker/Analysis/AnalysisTitle.py
KPFBERT/Newstrust
db1ca6454ce9f421f9c4006f8cd00bade06b17b5
[ "MIT" ]
null
null
null
# from eunjeon import Mecab from konlpy.tag import Mecab class AnalysisTitle(object): def __init__(self, inputTitle): self.TitleText = self.preProcessTitle(inputTitle) #제목 내용 self.TitleMecabTag = self.getMecabTag() #제목 mecab tag self.TitleLen = self.getTitleLen() #제목 길이 self.Questio...
35.643836
97
0.574942
3b2c87e59df9b6f4ef1a87ea5abf99d3a8fffb94
687
py
Python
eka/classes/builders/jinja.py
viswanc/eka
edb0aa373f74ec297d0e35e9cd6d564264322698
[ "MIT" ]
1
2019-11-03T16:03:59.000Z
2019-11-03T16:03:59.000Z
eka/classes/builders/jinja.py
viswanc/eka
edb0aa373f74ec297d0e35e9cd6d564264322698
[ "MIT" ]
null
null
null
eka/classes/builders/jinja.py
viswanc/eka
edb0aa373f74ec297d0e35e9cd6d564264322698
[ "MIT" ]
null
null
null
r""" A builder based on Jinja2 Templates. """ from laufire.filesys import copyContent, ensureCleanDir, ensureDir, getContent, getPathPairs, getPathType, setContent from jinja2 import Template class jinjaBuilder(object): def __init__(self): pass def render(self, templateText, Data): return Template(templa...
23.689655
117
0.687045
ce63046aa520b39ed884ea82211df4f45f55fff2
7,563
py
Python
megatron/data/biencoder_dataset_utils.py
sourcery-ai-bot/Megatron-LM
f27f44e2c49d1cb39b2288bef6f7d837e11094cb
[ "MIT" ]
null
null
null
megatron/data/biencoder_dataset_utils.py
sourcery-ai-bot/Megatron-LM
f27f44e2c49d1cb39b2288bef6f7d837e11094cb
[ "MIT" ]
null
null
null
megatron/data/biencoder_dataset_utils.py
sourcery-ai-bot/Megatron-LM
f27f44e2c49d1cb39b2288bef6f7d837e11094cb
[ "MIT" ]
null
null
null
import os import time import numpy as np import torch from megatron import get_args, get_tokenizer, mpu, print_rank_0 from megatron.data.dataset_utils import create_masked_lm_predictions, \ pad_and_convert_to_numpy from megatron.data.data_samplers import MegatronPretraining...
38.005025
104
0.665609
fbcfd0fd3b36832c775e1e2833a173c422c32911
1,701
py
Python
server/src/services/dataCleaner.py
JRHutson/311-data
4af3899d29a00cc090cf4c04a57863096b30bf7a
[ "MIT" ]
null
null
null
server/src/services/dataCleaner.py
JRHutson/311-data
4af3899d29a00cc090cf4c04a57863096b30bf7a
[ "MIT" ]
null
null
null
server/src/services/dataCleaner.py
JRHutson/311-data
4af3899d29a00cc090cf4c04a57863096b30bf7a
[ "MIT" ]
null
null
null
import sqlalchemy as db import pandas as pd from sqlIngest import DataHandler import databaseOrm class DataCleaner(DataHandler): def __init__(self, config=None, configFilePath=None, separator=','): self.data = None self.config = config self.dbString = None if not self.config \ ...
34.02
72
0.654909
51aa25a8c207a49d5c938409a7a711d479839ef7
143
py
Python
data_loader.py
bboltt/Bisect-K-Means
41776f2abf55be77e14e8017c1271f3f3d434fc2
[ "MIT" ]
null
null
null
data_loader.py
bboltt/Bisect-K-Means
41776f2abf55be77e14e8017c1271f3f3d434fc2
[ "MIT" ]
null
null
null
data_loader.py
bboltt/Bisect-K-Means
41776f2abf55be77e14e8017c1271f3f3d434fc2
[ "MIT" ]
null
null
null
import numpy as np """ load data as numpy array """ def get_dat_sets(file_path): samples = np.genfromtxt(file_path) return samples
11.916667
38
0.699301
e6aa609984136ea546ffcf98e08f120fb5723920
619
py
Python
python/vechist/plot_vec.py
xintong-osu/VecHist
83ed3533bd140848431908699adc1f0134463ea1
[ "MIT" ]
2
2019-11-02T12:35:33.000Z
2020-04-04T13:30:40.000Z
python/vechist/plot_vec.py
xintong-osu/VecHist
83ed3533bd140848431908699adc1f0134463ea1
[ "MIT" ]
null
null
null
python/vechist/plot_vec.py
xintong-osu/VecHist
83ed3533bd140848431908699adc1f0134463ea1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 19 01:04:40 2015 @author: tong """ def plot(d, stride): import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt fig = plt.figure() ax = fig.gca(projection='3d') ax.set_aspect('equal') d = d[::stride...
22.925926
103
0.544426
1566627a759f95d60bd9acdaa930ed7eb4e23cca
4,772
py
Python
dp_layer/dp_function.py
NYU-DICE-Lab/graph_invnet
166db79ac9ab3bff0e67ab0ec978da7efea042e2
[ "MIT" ]
null
null
null
dp_layer/dp_function.py
NYU-DICE-Lab/graph_invnet
166db79ac9ab3bff0e67ab0ec978da7efea042e2
[ "MIT" ]
4
2021-06-08T23:01:47.000Z
2022-03-12T00:53:53.000Z
dp_layer/dp_function.py
NYU-DICE-Lab/graph_invnet
166db79ac9ab3bff0e67ab0ec978da7efea042e2
[ "MIT" ]
null
null
null
import torch from torch.autograd import Function class DPFunction(Function): def __init__(self): super(DPFunction, self).__init__() @staticmethod def forward(ctx, input, adj_array, rev_adj, max_op,replace): ''' Parameters ---------- input: numpy.ndarray...
34.330935
77
0.554484
b79ddf75bbba445dd088867b6f5092289037d8f5
22,758
py
Python
cluster_scheduling/scheduler/utils.py
stanford-futuredata/POP
baa041dc67a465b8111e22e215880fa7d4fe8c61
[ "MIT" ]
15
2021-09-24T14:03:52.000Z
2022-03-28T15:44:21.000Z
cluster_scheduling/scheduler/utils.py
stanford-futuredata/POP
baa041dc67a465b8111e22e215880fa7d4fe8c61
[ "MIT" ]
1
2021-12-14T09:05:29.000Z
2021-12-16T11:55:55.000Z
cluster_scheduling/scheduler/utils.py
stanford-futuredata/POP
baa041dc67a465b8111e22e215880fa7d4fe8c61
[ "MIT" ]
2
2022-01-05T12:29:01.000Z
2022-01-15T03:10:11.000Z
import csv from datetime import datetime import json import os import pickle import psutil import random import re import socket import subprocess from job import Job from job_table import JobTable from policies import allox, fifo, finish_time_fairness, gandiva, isolated, \ max_min_fairness, max_min_fairness_water...
41.378182
97
0.610994
6c6f72a68abcba50195a52f81db48437b09bf58a
5,541
py
Python
pywikibot/comms/threadedhttp.py
valhallasw/pywikibot-core
32a8c3c1298a5cb077381fe202daefde82c1c5d3
[ "MIT" ]
null
null
null
pywikibot/comms/threadedhttp.py
valhallasw/pywikibot-core
32a8c3c1298a5cb077381fe202daefde82c1c5d3
[ "MIT" ]
null
null
null
pywikibot/comms/threadedhttp.py
valhallasw/pywikibot-core
32a8c3c1298a5cb077381fe202daefde82c1c5d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Http backend layer, formerly providing a httplib2 wrapper.""" from __future__ import unicode_literals # (C) Pywikibot team, 2007-2015 __version__ = '$Id: 6c6f72a68abcba50195a52f81db48437b09bf58a $' __docformat__ = 'epytext' # standard python libraries import codecs import sys if sys.versi...
29.951351
79
0.571016
a6929c9d4a47ecf5f13127f442f4eba791ce3748
1,249
py
Python
utils/create_contour_plots.py
sho-87/python-machine-learning
439556ad5faf549acb8e3923bfed7814fcb1a8ac
[ "MIT" ]
3
2016-11-25T20:34:23.000Z
2019-09-25T08:03:54.000Z
utils/create_contour_plots.py
sho-87/python-machine-learning
439556ad5faf549acb8e3923bfed7814fcb1a8ac
[ "MIT" ]
null
null
null
utils/create_contour_plots.py
sho-87/python-machine-learning
439556ad5faf549acb8e3923bfed7814fcb1a8ac
[ "MIT" ]
4
2017-09-26T01:48:32.000Z
2019-08-09T22:08:01.000Z
import numpy as np import matplotlib.pyplot as plt f, (ax1, ax2) = plt.subplots(1, 2, sharey=False,figsize=(8,4)) # Subplot 1 (left) xlist = np.linspace(-4.0, 4.0, 100) ylist = np.linspace(-2.0, 2.0, 100) X, Y = np.meshgrid(xlist, ylist) Z = np.sqrt(X ** 2 + Y ** 2 ) levels = [0.0, 0.2, 0.5, 0.9, 1.5, 2.5, 3.5] conto...
26.020833
86
0.668535
cf41f89ede692069a30d526e22b4f2cb270ebfbc
21,994
py
Python
pytests/gsi/indexscans_gsi.py
couchbaselabs/testrunner-bharath
96af90070da2140cc11c549db7403f5ea3b76d34
[ "Apache-2.0" ]
null
null
null
pytests/gsi/indexscans_gsi.py
couchbaselabs/testrunner-bharath
96af90070da2140cc11c549db7403f5ea3b76d34
[ "Apache-2.0" ]
null
null
null
pytests/gsi/indexscans_gsi.py
couchbaselabs/testrunner-bharath
96af90070da2140cc11c549db7403f5ea3b76d34
[ "Apache-2.0" ]
null
null
null
from .base_gsi import BaseSecondaryIndexingTests import copy from couchbase_helper.query_definitions import QueryDefinition from couchbase_helper.query_definitions import SQLDefinitionGenerator from couchbase_helper.tuq_generators import TuqGenerators QUERY_TEMPLATE = "SELECT {0} FROM %s " class SecondaryIndexingScanT...
52.743405
125
0.622352
3b2bb4c51c1c8a2f00ce76586497e59d4dae802b
30,853
py
Python
src/auditlog_tests/tests.py
darwin-homes/django-auditlog
4ee900bb9b2892618b976fa427da0ab215aa012e
[ "MIT" ]
null
null
null
src/auditlog_tests/tests.py
darwin-homes/django-auditlog
4ee900bb9b2892618b976fa427da0ab215aa012e
[ "MIT" ]
null
null
null
src/auditlog_tests/tests.py
darwin-homes/django-auditlog
4ee900bb9b2892618b976fa427da0ab215aa012e
[ "MIT" ]
null
null
null
import datetime import django from django.conf import settings from django.contrib import auth from django.contrib.auth.models import User, AnonymousUser from django.core.exceptions import ValidationError from django.db.models.signals import pre_save from django.http import HttpResponse from django.test import TestCase...
43.763121
199
0.649402
f0fca9336734096ae4c63a992ee89e802a125b3b
10,715
py
Python
paddleslim/core/graph_wrapper.py
ZichaoGuo/PaddleSlim
2550fb4ec86aee6155c1c8a2c9ab174e239918a3
[ "Apache-2.0" ]
926
2019-12-16T05:06:56.000Z
2022-03-31T07:22:10.000Z
paddleslim/core/graph_wrapper.py
ZichaoGuo/PaddleSlim
2550fb4ec86aee6155c1c8a2c9ab174e239918a3
[ "Apache-2.0" ]
327
2019-12-16T06:04:31.000Z
2022-03-30T11:08:18.000Z
paddleslim/core/graph_wrapper.py
ZichaoGuo/PaddleSlim
2550fb4ec86aee6155c1c8a2c9ab174e239918a3
[ "Apache-2.0" ]
234
2019-12-16T03:12:08.000Z
2022-03-27T12:59:39.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
27.334184
81
0.55399
bb66fe3bab18e509025676957911cbd8f8be6a93
10,210
py
Python
convert.py
aturX/yolo3-keras-start
f473e9f2ad32745e19509b738f2651119aee449b
[ "MIT" ]
null
null
null
convert.py
aturX/yolo3-keras-start
f473e9f2ad32745e19509b738f2651119aee449b
[ "MIT" ]
null
null
null
convert.py
aturX/yolo3-keras-start
f473e9f2ad32745e19509b738f2651119aee449b
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Reads Darknet config and weights and creates Keras model with TF backend. """ import argparse import configparser import io import os from collections import defaultdict import numpy as np from keras import backend as K from keras.layers import (Conv2D, Input, ZeroPadding2D, Add, ...
38.821293
114
0.596082
70a0a25b5c28ff109eba89e22cdb59d9b9f82263
9,111
py
Python
tensorflow/example1_smoke_tiled/manta_genSimData.py
spockthegray/mantaflow
df72cf235e14ef4f3f8fac9141b5e0a8707406b3
[ "Apache-2.0" ]
158
2018-06-24T17:42:13.000Z
2022-03-12T13:29:43.000Z
tensorflow/example1_smoke_tiled/manta_genSimData.py
spockthegray/mantaflow
df72cf235e14ef4f3f8fac9141b5e0a8707406b3
[ "Apache-2.0" ]
5
2018-09-05T07:30:48.000Z
2020-07-01T08:56:28.000Z
tensorflow/example1_smoke_tiled/manta_genSimData.py
spockthegray/mantaflow
df72cf235e14ef4f3f8fac9141b5e0a8707406b3
[ "Apache-2.0" ]
35
2018-06-13T04:05:42.000Z
2022-03-29T16:55:24.000Z
#****************************************************************************** # # Double sim data generation # (note, no blur when transferring hi->lo at the moment) # #****************************************************************************** from manta import * import os, shutil, math, sys, time import numpy as...
35.177606
131
0.636922
5f8cf6b5a7d4aaf3580dd8849bfb22930268fb95
6,128
py
Python
src/eddington_gui/boxes/data_columns_box.py
saroad2/eddington-gui
c5bbf7686c1964ca179e52348db324eeded1ee65
[ "Apache-2.0" ]
6
2020-09-26T18:31:06.000Z
2022-02-14T14:15:02.000Z
src/eddington_gui/boxes/data_columns_box.py
saroad2/eddington-gui
c5bbf7686c1964ca179e52348db324eeded1ee65
[ "Apache-2.0" ]
44
2020-08-07T11:50:27.000Z
2022-02-26T16:00:03.000Z
src/eddington_gui/boxes/data_columns_box.py
saroad2/eddington-gui
c5bbf7686c1964ca179e52348db324eeded1ee65
[ "Apache-2.0" ]
5
2020-08-10T09:41:04.000Z
2020-10-17T10:51:23.000Z
"""Box for choosing which columns to use in data dictionary.""" from typing import Callable, List, Optional import toga from eddington import FittingData from toga.style import Pack from toga.style.pack import LEFT from eddington_gui.boxes.line_box import LineBox from eddington_gui.util import value_or_none class D...
33.67033
85
0.662369
23c69e7cf1ad34fbf43d12844419032bfa4856b7
1,345
py
Python
aristotle/management/commands/load_authorities.py
jermnelson/aristotle-library-apps
f742847cd20c5b5c3b46dd53dfc395a2e1caa240
[ "Apache-2.0" ]
2
2015-03-30T16:36:51.000Z
2016-06-15T01:39:47.000Z
aristotle/management/commands/load_authorities.py
jermnelson/aristotle-library-apps
f742847cd20c5b5c3b46dd53dfc395a2e1caa240
[ "Apache-2.0" ]
2
2021-06-10T17:43:54.000Z
2021-12-13T19:40:08.000Z
aristotle/management/commands/load_authorities.py
jermnelson/aristotle-library-apps
f742847cd20c5b5c3b46dd53dfc395a2e1caa240
[ "Apache-2.0" ]
1
2015-11-08T00:40:11.000Z
2015-11-08T00:40:11.000Z
"""Management commands loads title, Person, and Subject authorities into the Redis Library Services Platform""" __author__ = "Jeremy Nelson" import datetime import os import sys from aristotle.settings import REDIS_DATASTORE, PROJECT_HOME from django.core.management.base import BaseCommand, CommandError def __index_t...
30.568182
77
0.649814
30b36cda93d35d15abd9fd441aa18c020b511148
5,300
py
Python
client/darknet_video.py
akauble/cv-pong
eaa36222583caa7fcb4d8557ea1c9e28b92d6cec
[ "MIT" ]
null
null
null
client/darknet_video.py
akauble/cv-pong
eaa36222583caa7fcb4d8557ea1c9e28b92d6cec
[ "MIT" ]
null
null
null
client/darknet_video.py
akauble/cv-pong
eaa36222583caa7fcb4d8557ea1c9e28b92d6cec
[ "MIT" ]
null
null
null
from ctypes import * from util import * from GameState import * import math import random import os import cv2 import numpy as np import time import darknet import argparse def cvDrawBoxes(bestpt1, bestpt2, img): cv2.rectangle(img, bestpt1, bestpt2, (0, 255, 0), 1) return img netMain = None metaMain = None altName...
29.120879
142
0.695849
64fdd7b34275285ced47e7072f8b134d5a3f0eae
1,968
py
Python
tests/prodmodel/rules/test_rules.py
prodmodel/prodmodel
83aad9a2e3f07b182a8e90ea0d92580cb2e949fe
[ "Apache-2.0" ]
53
2019-04-28T03:50:05.000Z
2022-02-04T21:52:51.000Z
tests/prodmodel/rules/test_rules.py
prodmodel/prodmodel
83aad9a2e3f07b182a8e90ea0d92580cb2e949fe
[ "Apache-2.0" ]
17
2019-04-25T01:46:46.000Z
2019-07-15T02:58:02.000Z
tests/prodmodel/rules/test_rules.py
prodmodel/prodmodel
83aad9a2e3f07b182a8e90ea0d92580cb2e949fe
[ "Apache-2.0" ]
3
2019-06-20T07:47:23.000Z
2021-09-06T07:21:51.000Z
import unittest from prodmodel.rules import rules as undertest class TestRules(unittest.TestCase): def test_data_stream(self): target = undertest.data_stream(file='/home/abc/x.json', data_type='json') self.assertEqual('JSONDataTarget', target.__class__.__name__) def test_data_file(self): target = u...
42.782609
115
0.756098
49d9f2646838cfb3998ada2a7ce98d0655b008ee
4,546
py
Python
modules/tools/record_parse_save/record_parse_save.py
GaoPenghao/apollo
c80ff99a1478b1709f434639fe29a2b2f43ad516
[ "Apache-2.0" ]
null
null
null
modules/tools/record_parse_save/record_parse_save.py
GaoPenghao/apollo
c80ff99a1478b1709f434639fe29a2b2f43ad516
[ "Apache-2.0" ]
null
null
null
modules/tools/record_parse_save/record_parse_save.py
GaoPenghao/apollo
c80ff99a1478b1709f434639fe29a2b2f43ad516
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
32.471429
98
0.653982
4ca5e38670aec6fdcba92a603f6fd320a36d7318
3,815
py
Python
tgt_grease/core/InversionOfControl.py
jairamd22/grease
7ebf3df71d5c80a8ed9df44d9b64b735a9d0f899
[ "MIT" ]
44
2017-09-29T00:53:44.000Z
2020-12-20T13:43:49.000Z
tgt_grease/core/InversionOfControl.py
jairamd22/grease
7ebf3df71d5c80a8ed9df44d9b64b735a9d0f899
[ "MIT" ]
39
2017-09-29T10:26:10.000Z
2019-05-02T21:07:59.000Z
tgt_grease/core/InversionOfControl.py
jairamd22/grease
7ebf3df71d5c80a8ed9df44d9b64b735a9d0f899
[ "MIT" ]
26
2017-09-28T18:00:39.000Z
2021-10-17T15:14:39.000Z
from tgt_grease.core import Logging from tgt_grease.core.Connectivity import Mongo from datetime import datetime from bson.objectid import ObjectId import platform import os class GreaseContainer(object): """Inversion of Control Container for objects in GREASE""" def __init__(self, *args, **kwargs): ...
30.766129
114
0.563827
da84f821a2169001f5abe07ac1fe6d44bed0dd29
2,489
py
Python
py34env/Scripts/explode.py
EKiefer/edge-starter
cc1bbac3fb7191b16eeca03b2a596d232b4ece7f
[ "MIT" ]
null
null
null
py34env/Scripts/explode.py
EKiefer/edge-starter
cc1bbac3fb7191b16eeca03b2a596d232b4ece7f
[ "MIT" ]
null
null
null
py34env/Scripts/explode.py
EKiefer/edge-starter
cc1bbac3fb7191b16eeca03b2a596d232b4ece7f
[ "MIT" ]
null
null
null
#!c:\users\ekiefer\projects\django\my_edge\py34env\scripts\python.exe # # The Python Imaging Library # $Id$ # # split an animation into a number of frame files # from __future__ import print_function from PIL import Image import os import sys class Interval(object): def __init__(self, interval="0"): s...
22.026549
75
0.541985
46d4ac9d6ba9a35229d0b6a5ff3743e6824f5b81
629
py
Python
code/merge_reddit.py
xjohnwu/dorahacktradegeneration
a6b2fa0dbe631bae028d0d6e70663d129a37cdbc
[ "MIT" ]
null
null
null
code/merge_reddit.py
xjohnwu/dorahacktradegeneration
a6b2fa0dbe631bae028d0d6e70663d129a37cdbc
[ "MIT" ]
null
null
null
code/merge_reddit.py
xjohnwu/dorahacktradegeneration
a6b2fa0dbe631bae028d0d6e70663d129a37cdbc
[ "MIT" ]
1
2018-10-20T12:34:24.000Z
2018-10-20T12:34:24.000Z
import pandas as pd import numpy as np path = 'C:/dorahacktradegeneration/data' full_data = None files = ['bitcoin_201709.csv', 'bitcoin_201710.csv', 'bitcoin_201711.csv', 'bitcoin_201801.csv', 'bitcoin_201802.csv', 'bitcoin_201803.csv', 'bitcoin_201804.csv', 'bitcoin_201805.csv', 'bitcoin_201806.csv', 'b...
31.45
119
0.691574