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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c5cca9d03c0d9fcd4b29b96bb68a691816ff964e | 3,567 | py | Python | search/models.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 4 | 2019-03-28T06:42:17.000Z | 2021-06-06T13:10:51.000Z | search/models.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 177 | 2018-09-28T14:21:56.000Z | 2022-03-30T21:45:26.000Z | search/models.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 8 | 2018-10-25T20:43:10.000Z | 2022-03-17T14:19:27.000Z | from itertools import chain
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.shortcuts import render
from wagtail.core.models import Page
from wagtail.search.models import Query
from about.models import AboutPage, AboutSubPage, CaseStudyPage, HistoryPage, PeoplePage
from contact.mode... | 37.547368 | 111 | 0.670311 |
c5ce058c2bdc9823f2137dda32497aab8ba53bf6 | 24,607 | py | Python | gluoncv/model_zoo/action_recognition/r2plus1d.py | AND2797/gluon-cv | 7d2d9c2502f18cbdc19c0921982baf511272acb1 | [
"Apache-2.0"
] | 1 | 2020-03-12T14:43:42.000Z | 2020-03-12T14:43:42.000Z | gluoncv/model_zoo/action_recognition/r2plus1d.py | AND2797/gluon-cv | 7d2d9c2502f18cbdc19c0921982baf511272acb1 | [
"Apache-2.0"
] | null | null | null | gluoncv/model_zoo/action_recognition/r2plus1d.py | AND2797/gluon-cv | 7d2d9c2502f18cbdc19c0921982baf511272acb1 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=arguments-differ,unused-argument,line-too-long
"""R2Plus1D, implemented in Gluon. https://arxiv.org/abs/1711.11248.
Code partially borrowed from https://github.com/pytorch/vision/blob/master/torchvision/models/video/resnet.py."""
__all__ = ['R2Plus1D', 'r2plus1d_resnet18_kinetics400',
'r2... | 41.70678 | 113 | 0.580038 |
c5cf1d1707b39d0f011396e7faf49933a0c0daf1 | 1,079 | py | Python | run.py | jsicot/idref2zotero | 0838c10cd3236296cd685c84daa77bd8e48567f1 | [
"MIT"
] | 1 | 2020-01-27T09:14:23.000Z | 2020-01-27T09:14:23.000Z | run.py | jsicot/idref2zotero | 0838c10cd3236296cd685c84daa77bd8e48567f1 | [
"MIT"
] | null | null | null | run.py | jsicot/idref2zotero | 0838c10cd3236296cd685c84daa77bd8e48567f1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import retrieve_author_ppn as autppn
import retrieve_references as refs
import zot_helpers as pyzot
from itertools import islice
researchers = autppn.constructOutput('test.csv')
autppn.writeCsv('out.csv', researchers)
for researcher in researchers:
ppn = researcher['ppn']
creator_name... | 34.806452 | 88 | 0.65431 |
c5cf24e47e050b5dda249a8edab2d8988fc41928 | 954 | py | Python | setup.py | walwe/autolabel | 712400d38f80ea496bab5a8a963ffef6ebf8daa9 | [
"MIT"
] | 1 | 2020-04-04T17:20:38.000Z | 2020-04-04T17:20:38.000Z | setup.py | walwe/autolabel | 712400d38f80ea496bab5a8a963ffef6ebf8daa9 | [
"MIT"
] | null | null | null | setup.py | walwe/autolabel | 712400d38f80ea496bab5a8a963ffef6ebf8daa9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from pkg_resources import get_distribution
from setuptools import setup, find_packages
with open("README.md", "r") as f:
long_description = f.read()
version = get_distribution("autolabel").version
setup(
packages=find_packages(),
install_requires=[
'click',
'more-ite... | 25.783784 | 75 | 0.638365 |
c5cf38192c894cd50c8e95291a53bb4a08d2bc9f | 334 | py | Python | desafio_005_antecessor_e_sucessor.py | VagnerGit/PythonCursoEmVideo | 3e80e12fbf21f5be08c554d77fa9073dc0a3145f | [
"MIT"
] | null | null | null | desafio_005_antecessor_e_sucessor.py | VagnerGit/PythonCursoEmVideo | 3e80e12fbf21f5be08c554d77fa9073dc0a3145f | [
"MIT"
] | null | null | null | desafio_005_antecessor_e_sucessor.py | VagnerGit/PythonCursoEmVideo | 3e80e12fbf21f5be08c554d77fa9073dc0a3145f | [
"MIT"
] | null | null | null | """
Exerccio Python 5:
Faa um programa que leia um nmero Inteiro e
mostre na tela o seu sucessor e seu antecessor.
"""
n = int(input('digite um numero inteiro '))
#ant = n-1
#post = n+1
#print('O antecessor de {} {} e posterior {}' .format(n, ant, post))
print('{} o antercessor {} o sucessor {}'.format(n, (n-1), (... | 27.833333 | 72 | 0.643713 |
c5d26f124d7803a5d0483030310d5f3218904ee3 | 20 | py | Python | checkov/version.py | jmeredith16/checkov | 91dc9e970609c7ce53e325b8b70fec788dc12c96 | [
"Apache-2.0"
] | null | null | null | checkov/version.py | jmeredith16/checkov | 91dc9e970609c7ce53e325b8b70fec788dc12c96 | [
"Apache-2.0"
] | null | null | null | checkov/version.py | jmeredith16/checkov | 91dc9e970609c7ce53e325b8b70fec788dc12c96 | [
"Apache-2.0"
] | null | null | null | version = '2.0.706'
| 10 | 19 | 0.6 |
c5d2baa0bf3dd4ddad9c92f38934e077ced0d319 | 4,506 | py | Python | test/meshes.py | jtpils/optimesh | 24a8276235b1f4e86f2fb92cf814bf81e7fdbc48 | [
"MIT"
] | 1 | 2019-11-20T16:50:34.000Z | 2019-11-20T16:50:34.000Z | test/meshes.py | jtpils/optimesh | 24a8276235b1f4e86f2fb92cf814bf81e7fdbc48 | [
"MIT"
] | null | null | null | test/meshes.py | jtpils/optimesh | 24a8276235b1f4e86f2fb92cf814bf81e7fdbc48 | [
"MIT"
] | null | null | null | import os.path
import numpy
from scipy.spatial import Delaunay
import meshio
from meshplex import MeshTri
| 25.896552 | 93 | 0.461607 |
c5d42cfeef185ddf6696d8600cebabde18dc035e | 25,439 | py | Python | odym/modules/test/DSM_test_known_results.py | DominikWiedenhofer/ODYM | 89aca3706b34df02d745f5d76cffc9f50dc2c3e7 | [
"MIT"
] | 3 | 2019-04-01T09:35:29.000Z | 2021-01-03T18:51:55.000Z | odym/modules/test/DSM_test_known_results.py | DominikWiedenhofer/ODYM | 89aca3706b34df02d745f5d76cffc9f50dc2c3e7 | [
"MIT"
] | null | null | null | odym/modules/test/DSM_test_known_results.py | DominikWiedenhofer/ODYM | 89aca3706b34df02d745f5d76cffc9f50dc2c3e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 11 16:19:39 2014
"""
import os
import sys
import imp
# Put location of
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..\\..')) + '\\modules') # add ODYM module directory to system path
#NOTE: Hidden variable __file__ must be know to script ... | 59.576112 | 182 | 0.626243 |
c5d4fff93384a7b4f91ff88b98ec480412a4e7d8 | 753 | py | Python | tox_docker/tests/util.py | tkdchen/tox-docker | 8d450ecf28a50f39d1a573c876756bddb9d4ae99 | [
"BSD-3-Clause"
] | null | null | null | tox_docker/tests/util.py | tkdchen/tox-docker | 8d450ecf28a50f39d1a573c876756bddb9d4ae99 | [
"BSD-3-Clause"
] | null | null | null | tox_docker/tests/util.py | tkdchen/tox-docker | 8d450ecf28a50f39d1a573c876756bddb9d4ae99 | [
"BSD-3-Clause"
] | null | null | null | import os
from docker.models.containers import Container
import docker
import pytest
from tox_docker.config import runas_name
| 31.375 | 76 | 0.718459 |
c5d59ef45ad87f614428ee780a00c2a59f6106c2 | 4,024 | py | Python | equipment/viewsets.py | aschrist/WebServerAndClient | 3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640 | [
"BSD-3-Clause"
] | null | null | null | equipment/viewsets.py | aschrist/WebServerAndClient | 3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640 | [
"BSD-3-Clause"
] | null | null | null | equipment/viewsets.py | aschrist/WebServerAndClient | 3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640 | [
"BSD-3-Clause"
] | null | null | null | from django.core.exceptions import PermissionDenied
from rest_framework import viewsets, mixins
from rest_framework.decorators import action
from rest_framework.response import Response
from emstrack.mixins import UpdateModelUpdateByMixin, BasePermissionMixin
from equipment.models import EquipmentItem, EquipmentHolde... | 32.715447 | 105 | 0.635189 |
c5d6d1a64a423018703822d97798dfe358235126 | 1,081 | py | Python | HLTrigger/Configuration/python/HLT_75e33/paths/HLT_DoublePFPuppiJets128_DoublePFPuppiBTagDeepCSV_2p4_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/HLT_DoublePFPuppiJets128_DoublePFPuppiBTagDeepCSV_2p4_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/HLT_DoublePFPuppiJets128_DoublePFPuppiBTagDeepCSV_2p4_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
from ..modules.hltBTagPFPuppiDeepCSV0p865DoubleEta2p4_cfi import *
from ..modules.hltDoublePFPuppiJets128Eta2p4MaxDeta1p6_cfi import *
from ..modules.hltDoublePFPuppiJets128MaxEta2p4_cfi import *
from ..modules.l1tDoublePFPuppiJet112offMaxEta2p4_cfi import *
from ..modules.l1tD... | 41.576923 | 68 | 0.848289 |
c5d80087a7524e830b02b5b4d7549aa8f65625d8 | 891 | py | Python | convert_m2.py | Alex92rus/ErrorDetectionProject | e611ceaaaa1e5e18bc9a6ae4a02ed421db058da8 | [
"Apache-2.0"
] | 1 | 2018-11-30T23:50:27.000Z | 2018-11-30T23:50:27.000Z | convert_m2.py | Alex92rus/ErrorDetectionProject | e611ceaaaa1e5e18bc9a6ae4a02ed421db058da8 | [
"Apache-2.0"
] | null | null | null | convert_m2.py | Alex92rus/ErrorDetectionProject | e611ceaaaa1e5e18bc9a6ae4a02ed421db058da8 | [
"Apache-2.0"
] | null | null | null |
def extract_to_m2(filename, annot_triples):
"""
Extracts error detection annotations in m2 file format
Args:
filename: the output m2 file
annot_triples: the annotations of form (sentence, indexes, selections)
"""
with open(filename, 'w+') as m2_file:
for triple in annot_tripl... | 38.73913 | 81 | 0.47587 |
c5d90016a90a331eb727c3cf478e5adf99c5cfde | 8,986 | py | Python | Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py | VincentWei/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 6 | 2017-05-31T01:46:45.000Z | 2018-06-12T10:53:30.000Z | Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | null | null | null | Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 2 | 2017-07-17T06:02:42.000Z | 2018-09-19T10:08:38.000Z | # Copyright (c) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | 38.076271 | 135 | 0.639217 |
c5d9c1458570637eeb6f3871c9d53fd91009b27f | 8,710 | py | Python | tark/transcript/models.py | Ensembl/tark | 8e08a00a6f53f7fbe5954ba70e337d0d1709df52 | [
"Apache-2.0"
] | 5 | 2019-06-21T22:11:46.000Z | 2022-01-17T06:58:56.000Z | tark/transcript/models.py | Ensembl/tark | 8e08a00a6f53f7fbe5954ba70e337d0d1709df52 | [
"Apache-2.0"
] | 12 | 2020-07-28T09:26:09.000Z | 2022-03-25T18:08:11.000Z | tark/transcript/models.py | Ensembl/tark | 8e08a00a6f53f7fbe5954ba70e337d0d1709df52 | [
"Apache-2.0"
] | 6 | 2020-01-08T11:09:59.000Z | 2021-07-27T04:14:32.000Z | """
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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.... | 54.099379 | 120 | 0.651091 |
c5da0613cb69180ef2e512685b8a5cf90b29b513 | 2,086 | py | Python | scripts/facebook_account_scraping.py | nvanderperren/social-media-archiving | 54522e08298b062af8cbe1156127cdebfeede30f | [
"MIT"
] | null | null | null | scripts/facebook_account_scraping.py | nvanderperren/social-media-archiving | 54522e08298b062af8cbe1156127cdebfeede30f | [
"MIT"
] | null | null | null | scripts/facebook_account_scraping.py | nvanderperren/social-media-archiving | 54522e08298b062af8cbe1156127cdebfeede30f | [
"MIT"
] | null | null | null | #!usr/bin/env python3
# -*- coding: utf-8 -*-
#
# @author Nastasia Vanderperren
#
# get posts of a fb page, group or account
# returns a json lines files with a line for each post
#
from argparse import ArgumentParser
from datetime import date, datetime
from facebook_scraper import get_posts
from json import dumps, JS... | 38.62963 | 144 | 0.685523 |
c5da227c6c2f1600816a6c1c38324a392ed24d2b | 548 | py | Python | ked/gui/ked.py | idealtitude/ked | fb4135bffb065cf176a2450af53ab8e3408fdaa9 | [
"MIT"
] | null | null | null | ked/gui/ked.py | idealtitude/ked | fb4135bffb065cf176a2450af53ab8e3408fdaa9 | [
"MIT"
] | null | null | null | ked/gui/ked.py | idealtitude/ked | fb4135bffb065cf176a2450af53ab8e3408fdaa9 | [
"MIT"
] | null | null | null | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk as gtk
| 21.92 | 58 | 0.644161 |
c5dac43a188b9363ed3359b80117310c93a48c15 | 375 | py | Python | patchy/__init__.py | peternara/graph-based-image-classification-gcn | 60e93b47691e960b7f06f7a5dc11191efe881178 | [
"MIT"
] | 44 | 2017-02-26T16:52:48.000Z | 2022-02-17T18:50:02.000Z | patchy/__init__.py | hungerzs/graph-based-image-classification | d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8 | [
"MIT"
] | 2 | 2018-11-14T05:11:25.000Z | 2020-06-23T16:24:41.000Z | patchy/__init__.py | hungerzs/graph-based-image-classification | d44182c6a28b4ab9a691a9cb1ecd4c3b851875a8 | [
"MIT"
] | 13 | 2018-04-26T07:46:35.000Z | 2022-02-28T15:38:53.000Z | from .patchy import PatchySan
from .helper.labeling import labelings,\
scanline,\
betweenness_centrality
from .helper.neighborhood_assembly import neighborhood_assemblies,\
neighborhoods_weights_to_root,\
... | 37.5 | 73 | 0.538667 |
c5db8db5817eef82da2ecde3434b6691281fcd17 | 14,862 | py | Python | analysis/202106--uncertainty_vs_flux/compare_images.py | rsiverd/ultracool | cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1 | [
"BSD-2-Clause"
] | null | null | null | analysis/202106--uncertainty_vs_flux/compare_images.py | rsiverd/ultracool | cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1 | [
"BSD-2-Clause"
] | null | null | null | analysis/202106--uncertainty_vs_flux/compare_images.py | rsiverd/ultracool | cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 et tw=80 :
#
# Compare an image file and its associated uncertainty image.
#
# Rob Siverd
# Created: 2021-06-03
# Last modified: 2021-06-03
#--------------------------------------------------------------------------
#*****************************... | 32.379085 | 78 | 0.603485 |
c5dbec713bc194a6916e548695dd8b86bc98a04d | 3,317 | py | Python | tests/utils/mock_server.py | ant-lastline/cb-lastline-connector | ccdf2c7e33dc94acb382fb4694b9a65b44142b26 | [
"MIT"
] | 2 | 2017-01-23T22:09:23.000Z | 2018-07-16T04:37:41.000Z | tests/utils/mock_server.py | ant-lastline/cb-lastline-connector | ccdf2c7e33dc94acb382fb4694b9a65b44142b26 | [
"MIT"
] | null | null | null | tests/utils/mock_server.py | ant-lastline/cb-lastline-connector | ccdf2c7e33dc94acb382fb4694b9a65b44142b26 | [
"MIT"
] | 1 | 2016-08-16T23:45:29.000Z | 2016-08-16T23:45:29.000Z | import logging
import os
try:
import simplejson as json
except ImportError:
import json
from flask import Flask, request, make_response, Response
from cStringIO import StringIO
import zipfile
if __name__ == '__main__':
mydir = os.path.dirname(os.path.abspath(__file__))
binaries_dir = os.path.join(m... | 34.195876 | 109 | 0.601447 |
c5dde82f6e5df42892863767c657cfd603744b98 | 1,048 | py | Python | neural_networks/softmax_loss.py | Yao-Shao/Maching-Learning-only-with-Numpy | 8e86f96d8be278b97b16d6f0235cd86dca97db29 | [
"MIT"
] | 1 | 2019-09-25T06:36:26.000Z | 2019-09-25T06:36:26.000Z | hw3/hw3_code/neural_networks/softmax_loss.py | Junlin-Yin/Data-Mining-Homework | 043f836e3dd30f32b5b06f40af61ae55b9287fbc | [
"MIT"
] | null | null | null | hw3/hw3_code/neural_networks/softmax_loss.py | Junlin-Yin/Data-Mining-Homework | 043f836e3dd30f32b5b06f40af61ae55b9287fbc | [
"MIT"
] | null | null | null | import numpy as np
def softmax_loss(in_, label):
'''
The softmax loss computing process
inputs:
in_ : the output of previous layer, shape: [number of images, number of kinds of labels]
label : the ground true of these images, shape: [1, number of images]
outputs
... | 34.933333 | 102 | 0.60687 |
c5de930741f4d8551e11905355564ca78fd72a62 | 320 | py | Python | alertmanager_telegram/config.py | medeirosjrm/alertmanager-telegram | ff9701936ec766b7992399fd741d8a8a4dab3957 | [
"Apache-2.0"
] | 5 | 2020-05-20T11:37:37.000Z | 2021-11-23T09:04:14.000Z | alertmanager_telegram/config.py | medeirosjrm/alertmanager-telegram | ff9701936ec766b7992399fd741d8a8a4dab3957 | [
"Apache-2.0"
] | null | null | null | alertmanager_telegram/config.py | medeirosjrm/alertmanager-telegram | ff9701936ec766b7992399fd741d8a8a4dab3957 | [
"Apache-2.0"
] | 3 | 2021-01-31T17:57:08.000Z | 2021-11-24T13:33:31.000Z | import os
TELEGRAM_CHAT_ID = os.environ.get("TELEGRAM_CHAT_ID")
if not TELEGRAM_CHAT_ID:
raise ValueError("No TELEGRAM_CHAT_ID set for application")
TELEGRAM_TOKEN = os.environ.get("TELEGRAM_TOKEN")
if not TELEGRAM_TOKEN:
raise ValueError("No TELEGRAM_TOKEN set for application")
TEMPLATES_AUTO_RELOAD = True
| 26.666667 | 63 | 0.796875 |
c5df387f75013ac455f39f6b741fd2c666ef73e0 | 9,935 | py | Python | data-processing/tests/test_parse_tex.py | rishamsidhu/scholar-reader | fa97cd5fb57305ff96ac060e225d1c331da31654 | [
"Apache-2.0"
] | null | null | null | data-processing/tests/test_parse_tex.py | rishamsidhu/scholar-reader | fa97cd5fb57305ff96ac060e225d1c331da31654 | [
"Apache-2.0"
] | null | null | null | data-processing/tests/test_parse_tex.py | rishamsidhu/scholar-reader | fa97cd5fb57305ff96ac060e225d1c331da31654 | [
"Apache-2.0"
] | null | null | null | from common.parse_tex import (
BeginDocumentExtractor,
BibitemExtractor,
DocumentclassExtractor,
EquationExtractor,
MacroExtractor,
PlaintextExtractor,
)
from common.types import MacroDefinition
from entities.sentences.extractor import SentenceExtractor
| 31.046875 | 101 | 0.650025 |
c5e00eaee5bf1dc4f3ef2430a8612b17e78c2729 | 282 | py | Python | appexemple/__main__.py | yoannmos/Inupdater-AppExemple | ac62430a8ca02505eb73afaff698500b7f46ea31 | [
"MIT"
] | null | null | null | appexemple/__main__.py | yoannmos/Inupdater-AppExemple | ac62430a8ca02505eb73afaff698500b7f46ea31 | [
"MIT"
] | null | null | null | appexemple/__main__.py | yoannmos/Inupdater-AppExemple | ac62430a8ca02505eb73afaff698500b7f46ea31 | [
"MIT"
] | null | null | null | import sys
from pathlib import Path
from appexemple import __version__
print(
f"""
Hello you are in App Exemple version {__version__}\n
sys.argv[-1] : {sys.argv[-1]}\n
Path().cwd() : {Path().cwd()}\n
Path(__file__) : {Path(__file__)},\n
"""
)
input("Press [Enter] to quit.")
| 17.625 | 52 | 0.663121 |
c5e3c6d2f8a1234b127fb72e14337b67358d7125 | 1,793 | py | Python | {{cookiecutter.repo_slug}}/tests/unit/user/test_managers.py | ikhomutov/cookiecutter-shmango | ec5a6ff94256650552e11992662a617b503418e4 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_slug}}/tests/unit/user/test_managers.py | ikhomutov/cookiecutter-shmango | ec5a6ff94256650552e11992662a617b503418e4 | [
"MIT"
] | 83 | 2020-04-21T04:12:47.000Z | 2021-09-03T01:47:27.000Z | {{cookiecutter.repo_slug}}/tests/unit/user/test_managers.py | ikhomutov/cookiecutter-shmango | ec5a6ff94256650552e11992662a617b503418e4 | [
"MIT"
] | null | null | null | import pytest
pytestmark = pytest.mark.django_db
| 33.830189 | 78 | 0.662019 |
c5e54fc9fa5630a02a90b1f99c8ec0d552707d95 | 6,021 | py | Python | sqlalchemy/sqlalchemy-0.3.6+codebay/test/base/dependency.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | sqlalchemy/sqlalchemy-0.3.6+codebay/test/base/dependency.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | sqlalchemy/sqlalchemy-0.3.6+codebay/test/base/dependency.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z | from testbase import PersistTest
import sqlalchemy.topological as topological
import unittest, sys, os
from sqlalchemy import util
# TODO: need assertion conditions in this suite
if __name__ == "__main__":
unittest.main()
| 31.036082 | 235 | 0.51038 |
c5e5cecdf9201e00eb336ee9b2d39e6ed8ce5136 | 10,854 | py | Python | tensorcircuit/backends.py | refraction-ray/tensorcircuit | 666154f4dbdb25164c0e778a96ee56ac22323a6c | [
"MIT"
] | 21 | 2020-04-19T23:29:11.000Z | 2022-03-12T12:12:57.000Z | tensorcircuit/backends.py | refraction-ray/tensorcircuit | 666154f4dbdb25164c0e778a96ee56ac22323a6c | [
"MIT"
] | 3 | 2020-10-19T12:18:44.000Z | 2022-02-10T01:24:46.000Z | tensorcircuit/backends.py | refraction-ray/tensorcircuit | 666154f4dbdb25164c0e778a96ee56ac22323a6c | [
"MIT"
] | 7 | 2020-07-15T18:08:00.000Z | 2021-12-30T08:17:13.000Z | """
backend magic inherited from tensornetwork
"""
from typing import Union, Text, Any, Optional, Callable, Sequence
from functools import partial
from scipy.linalg import expm
import numpy as np
import warnings
from tensornetwork.backends.tensorflow import tensorflow_backend
from tensornetwork.backends.numpy import ... | 32.4 | 127 | 0.586788 |
c5e73f85a5d535b9725cdc5daf85b03ea7c65ebb | 904 | py | Python | venv/lib/python3.7/site-packages/webdriver_manager/microsoft.py | wayshon/pylogin | 12ecfddc3ceaf552a42f62608027924541c63254 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.7/site-packages/webdriver_manager/microsoft.py | wayshon/pylogin | 12ecfddc3ceaf552a42f62608027924541c63254 | [
"Apache-2.0"
] | 7 | 2019-12-04T23:08:08.000Z | 2022-02-10T12:47:38.000Z | venv/lib/python3.7/site-packages/webdriver_manager/microsoft.py | wayshon/pylogin | 12ecfddc3ceaf552a42f62608027924541c63254 | [
"Apache-2.0"
] | null | null | null | from webdriver_manager.driver import EdgeDriver, IEDriver
from webdriver_manager.manager import DriverManager
from webdriver_manager import utils
| 34.769231 | 73 | 0.683628 |
c5e808c5b0a9a0e6ef94c188d135b5046b4111b6 | 4,459 | py | Python | examples/plot_replay_experiment.py | dataiku-research/cardinal | 052ea2273e1e6a389e257e3775873620378fe908 | [
"Apache-2.0"
] | 17 | 2021-02-13T16:29:16.000Z | 2022-03-08T03:16:12.000Z | examples/plot_replay_experiment.py | SoftwareImpacts/SIMPAC-2021-174 | 052ea2273e1e6a389e257e3775873620378fe908 | [
"Apache-2.0"
] | 5 | 2021-02-15T14:09:41.000Z | 2021-03-23T23:31:25.000Z | examples/plot_replay_experiment.py | SoftwareImpacts/SIMPAC-2021-174 | 052ea2273e1e6a389e257e3775873620378fe908 | [
"Apache-2.0"
] | 1 | 2021-12-24T17:41:09.000Z | 2021-12-24T17:41:09.000Z | """
Replay and experiment
=====================
In a previous example, we have shown how experiments can be resumed.
Cardinal also allows for experiments to be replayed, meaning that
one can save intermediate data to be able to run analysis on the
experiment without having to retrain all the models. Let us now
see how... | 36.54918 | 117 | 0.685804 |
c5e914518d0f8750fb4b83382f0d2bacb4dbb4ed | 17,585 | py | Python | cryspy/B_parent_classes/cl_3_data.py | eandklahn/cryspy | a664cee1e1ffd5f23e54295a11e479d7d4cda7e5 | [
"MIT"
] | null | null | null | cryspy/B_parent_classes/cl_3_data.py | eandklahn/cryspy | a664cee1e1ffd5f23e54295a11e479d7d4cda7e5 | [
"MIT"
] | null | null | null | cryspy/B_parent_classes/cl_3_data.py | eandklahn/cryspy | a664cee1e1ffd5f23e54295a11e479d7d4cda7e5 | [
"MIT"
] | null | null | null | """Parent class DataN."""
import os
import os.path
from warnings import warn
from typing import Union, NoReturn
from pycifstar import Data, to_data
from cryspy.A_functions_base.function_1_markdown import md_to_html
from cryspy.A_functions_base.function_1_objects import \
get_functions_of_objet, get_table_html_for_... | 31.068905 | 79 | 0.511459 |
c5e955f6a5fb02a343d52d2f8212c94c8ad218bb | 204 | py | Python | vivisect/tests/vivbins.py | mubix/vivisect | 2900c0bf59838cb9fc398a8668f76f887b7f54e7 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-11-12T03:50:06.000Z | 2017-11-12T03:50:06.000Z | vivisect/tests/vivbins.py | mubix/vivisect | 2900c0bf59838cb9fc398a8668f76f887b7f54e7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | vivisect/tests/vivbins.py | mubix/vivisect | 2900c0bf59838cb9fc398a8668f76f887b7f54e7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import os
import unittest
| 17 | 53 | 0.617647 |
c5e956eebd2928391f5d2ba00f6fd36130e8bbd1 | 894 | py | Python | hackerearth/Algorithms/Restoring trees/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/Restoring trees/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/Restoring trees/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
n = int(input())
start = list(map(int, inpu... | 26.294118 | 94 | 0.569351 |
c5ea213be6b9121c63848b236674311dd3d54793 | 32 | py | Python | src/machine_learning/collaborative_filtering/__init__.py | przemek1990/machine-learning | d278b867757cf9223e079ff77cdd8e1b4a9b3f36 | [
"Apache-2.0"
] | null | null | null | src/machine_learning/collaborative_filtering/__init__.py | przemek1990/machine-learning | d278b867757cf9223e079ff77cdd8e1b4a9b3f36 | [
"Apache-2.0"
] | null | null | null | src/machine_learning/collaborative_filtering/__init__.py | przemek1990/machine-learning | d278b867757cf9223e079ff77cdd8e1b4a9b3f36 | [
"Apache-2.0"
] | null | null | null | __author__ = 'przemyslaw.pioro'
| 16 | 31 | 0.78125 |
c5eb3429d56063aad6eca63d3f25a6fb4eaf84b5 | 1,674 | py | Python | Sorting/Sorts.py | niranjan09/DataStructures_Algorithms | df2801f7ea48a39a55a6d79fd66ad200a2de0145 | [
"MIT"
] | null | null | null | Sorting/Sorts.py | niranjan09/DataStructures_Algorithms | df2801f7ea48a39a55a6d79fd66ad200a2de0145 | [
"MIT"
] | null | null | null | Sorting/Sorts.py | niranjan09/DataStructures_Algorithms | df2801f7ea48a39a55a6d79fd66ad200a2de0145 | [
"MIT"
] | null | null | null | import time
print(time.time())
print(quick_sort([-2.2, -2.2, -2.2]*5+[1.1]*5))
print(time.time())
| 19.465116 | 53 | 0.599164 |
c5ed957119e3f69933dbfb4c1879651fe6bb40ff | 65 | py | Python | __init__.py | Moviesbazar/Pdiskuploader_bot | fcefd0e674843c12e797d464dd4f520f98a36632 | [
"Apache-2.0"
] | 1 | 2021-10-30T19:24:19.000Z | 2021-10-30T19:24:19.000Z | __init__.py | Moviesbazar/Pdiskuploader_bot | fcefd0e674843c12e797d464dd4f520f98a36632 | [
"Apache-2.0"
] | null | null | null | __init__.py | Moviesbazar/Pdiskuploader_bot | fcefd0e674843c12e797d464dd4f520f98a36632 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
Source Code of Pdiskuploaderbot
"""
| 9.285714 | 31 | 0.676923 |
c5ef4f6813348dc5856623519c73597cbe031935 | 329 | py | Python | Beam/TextAnalysis/setup.py | Balaviknesh/YelpHelp | 4e928b0f13a8f5a3baf916c293302266c3d54dda | [
"Apache-2.0"
] | null | null | null | Beam/TextAnalysis/setup.py | Balaviknesh/YelpHelp | 4e928b0f13a8f5a3baf916c293302266c3d54dda | [
"Apache-2.0"
] | null | null | null | Beam/TextAnalysis/setup.py | Balaviknesh/YelpHelp | 4e928b0f13a8f5a3baf916c293302266c3d54dda | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
from setuptools.command.install import install as _install
setup(
cmdclass={'install': Install},
install_requires=['nltk'],
setup_requires=['nltk'])
| 20.5625 | 58 | 0.68693 |
c5ef76f9a1c232b338813b5ca11e5c92d815d45d | 947 | py | Python | code/test3/1.py | Bc-Gg/Algorithms | 0c35fd4e002ff4b0ad6ebb243df3df278e366595 | [
"MIT"
] | 8 | 2022-03-13T10:25:33.000Z | 2022-03-30T08:26:00.000Z | code/test3/1.py | Bc-Gg/Algorithms | 0c35fd4e002ff4b0ad6ebb243df3df278e366595 | [
"MIT"
] | null | null | null | code/test3/1.py | Bc-Gg/Algorithms | 0c35fd4e002ff4b0ad6ebb243df3df278e366595 | [
"MIT"
] | 2 | 2022-03-20T12:09:52.000Z | 2022-03-21T03:43:01.000Z | '''
author : bcgg
'''
ans = 0
if __name__ == '__main__':
arr = list(map(int, input().split(',')))
n = len(arr)
mergeSort(arr, 0, n - 1)
print(ans)
| 18.568627 | 44 | 0.36642 |
c5ef8d7c1493136be617512f99564772f9d404af | 1,354 | py | Python | Python/sir_cost.py | Wasim5620/SIRmodel | bbca1431673dc5450f290db1235eb73e92e74979 | [
"MIT"
] | 26 | 2018-08-08T20:40:21.000Z | 2022-01-13T19:46:40.000Z | Python/sir_cost.py | Wasim5620/SIRmodel | bbca1431673dc5450f290db1235eb73e92e74979 | [
"MIT"
] | 24 | 2020-03-25T19:35:43.000Z | 2022-02-10T11:46:50.000Z | Python/sir_cost.py | Wasim5620/SIRmodel | bbca1431673dc5450f290db1235eb73e92e74979 | [
"MIT"
] | 9 | 2017-07-22T04:23:15.000Z | 2021-03-19T09:42:35.000Z | # cost function for the SIR model for python 2.7
# Marisa Eisenberg (marisae@umich.edu)
# Yu-Han Kao (kaoyh@umich.edu) -7-9-17
import numpy as np
import sir_ode
from scipy.stats import poisson
from scipy.stats import norm
from scipy.integrate import odeint as ode
| 46.689655 | 117 | 0.697194 |
c5efdfd7527a9d610cd0e6cd62680c8957d0b58f | 14,512 | py | Python | restler/unit_tests/test_basic_functionality_end_to_end.py | Ayudjj/mvp | a0ba706a2156e31cf6053b639b57aa1b9acad442 | [
"MIT"
] | 1 | 2020-12-05T14:23:08.000Z | 2020-12-05T14:23:08.000Z | restler/unit_tests/test_basic_functionality_end_to_end.py | Ayudjj/mvp | a0ba706a2156e31cf6053b639b57aa1b9acad442 | [
"MIT"
] | null | null | null | restler/unit_tests/test_basic_functionality_end_to_end.py | Ayudjj/mvp | a0ba706a2156e31cf6053b639b57aa1b9acad442 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
""" Runs functional tests, which invoke the RESTler engine and check the RESTler output logs
for correctness.
When new baseline logs are necessary due to known breaking changes in the logic, a run that
matches the test should be run manually and... | 44.790123 | 134 | 0.673512 |
c5f002e8316318f1277879acd723602d8667b472 | 623 | py | Python | conf_site/api/tests/test_conference.py | pydata/conf_site | 9a14459c36a0f2f0f552161c18de734ee87855da | [
"MIT"
] | 13 | 2015-05-22T17:10:22.000Z | 2021-07-15T16:45:19.000Z | conf_site/api/tests/test_conference.py | pydata/conf_site | 9a14459c36a0f2f0f552161c18de734ee87855da | [
"MIT"
] | 758 | 2015-03-18T13:39:25.000Z | 2022-03-31T13:14:09.000Z | conf_site/api/tests/test_conference.py | pydata/conf_site | 9a14459c36a0f2f0f552161c18de734ee87855da | [
"MIT"
] | 16 | 2015-03-24T18:53:17.000Z | 2020-10-22T21:30:02.000Z | from django.urls import reverse
from rest_framework import status
from conf_site.api.tests import ConferenceSiteAPITestCase
| 36.647059 | 74 | 0.717496 |
c5f1690fb5bdf9e0c170536780d8205e10259b5d | 94 | py | Python | backend/app/app/crud/__init__.py | luovkle/FastAPI-Note-Taking | 317d92e75cbba3a6e633d6cf3d0bed0021412967 | [
"MIT"
] | null | null | null | backend/app/app/crud/__init__.py | luovkle/FastAPI-Note-Taking | 317d92e75cbba3a6e633d6cf3d0bed0021412967 | [
"MIT"
] | null | null | null | backend/app/app/crud/__init__.py | luovkle/FastAPI-Note-Taking | 317d92e75cbba3a6e633d6cf3d0bed0021412967 | [
"MIT"
] | null | null | null | from .crud_user import crud_user # noqa: F401
from .crud_note import crud_note # noqa: F401
| 31.333333 | 46 | 0.765957 |
c5f1d3547439c81f976d6e6a8b962ce796bdbe68 | 125 | py | Python | fhirbug/constants.py | VerdantAI/fhirbug | 8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d | [
"MIT"
] | 8 | 2019-01-06T18:11:20.000Z | 2022-02-24T02:06:55.000Z | fhirbug/constants.py | VerdantAI/fhirbug | 8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d | [
"MIT"
] | 5 | 2019-01-25T14:15:35.000Z | 2021-06-01T23:22:41.000Z | fhirbug/constants.py | VerdantAI/fhirbug | 8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d | [
"MIT"
] | 3 | 2020-10-14T23:09:29.000Z | 2021-08-09T19:27:31.000Z |
# Audit Event Outcomes
AUDIT_SUCCESS = "0"
AUDIT_MINOR_FAILURE = "4"
AUDIT_SERIOUS_FAILURE = "8"
AUDIT_MAJOR_FAILURE = "12"
| 17.857143 | 27 | 0.76 |
c5f2f4c298f27619335b8d96d680e00a6c2bd3c9 | 2,653 | py | Python | python_materials/web-server-s3.py | C-Lizzo14/CS488S21 | 7b8e1ab2dfe692aff9c9dd6c283a4ba378cfc1e6 | [
"MIT"
] | 2 | 2022-01-25T13:45:30.000Z | 2022-02-07T18:21:20.000Z | python_materials/web-server-s3.py | jyuan2pace/CS488OER | 38ab9f1d10bf1e36af6eb79574893c83b2e6456f | [
"CC0-1.0"
] | null | null | null | python_materials/web-server-s3.py | jyuan2pace/CS488OER | 38ab9f1d10bf1e36af6eb79574893c83b2e6456f | [
"CC0-1.0"
] | 2 | 2022-02-03T22:33:45.000Z | 2022-03-03T05:18:50.000Z | # Python3.7+
import socket
import json
HOST, PORT = '', 1600
listen_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
listen_socket.bind((HOST, PORT))
listen_socket.listen(1)
print(f'Serving HTTP on port {PORT} ...')
while True:
client_c... | 27.635417 | 92 | 0.583867 |
c5f32783266b0ae2f58b621ca0211597718a479a | 323 | py | Python | task_queue/management/commands/run_scheduler.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 9 | 2019-03-26T14:50:00.000Z | 2020-11-10T16:44:08.000Z | task_queue/management/commands/run_scheduler.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 22 | 2019-03-02T23:16:13.000Z | 2022-02-27T10:36:36.000Z | task_queue/management/commands/run_scheduler.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 5 | 2019-04-24T00:51:30.000Z | 2020-11-06T18:31:49.000Z | import asyncio
from django.core.management.base import BaseCommand
from Harvest.utils import get_logger
from task_queue.scheduler import QueueScheduler
logger = get_logger(__name__)
| 20.1875 | 51 | 0.755418 |
c5f3bfd369153aa479d911c36ea48a47b9a4d56f | 485 | py | Python | waateax/users/migrations/0004_auto_20200910_1516.py | hendu25/waatea | 668707cd14d3336cd74d7043473f7094f5d0db6e | [
"MIT"
] | 4 | 2020-09-10T11:51:48.000Z | 2021-08-18T21:25:22.000Z | waateax/users/migrations/0004_auto_20200910_1516.py | hendu25/waatea | 668707cd14d3336cd74d7043473f7094f5d0db6e | [
"MIT"
] | 22 | 2020-09-10T11:14:22.000Z | 2021-08-24T14:58:58.000Z | waateax/users/migrations/0004_auto_20200910_1516.py | hendu25/waatea | 668707cd14d3336cd74d7043473f7094f5d0db6e | [
"MIT"
] | 3 | 2020-09-13T06:37:14.000Z | 2021-08-17T13:51:23.000Z | # Generated by Django 3.0.10 on 2020-09-10 13:16
from django.db import migrations, models
| 24.25 | 111 | 0.618557 |
c5f43a8aa085560b1c95a6c088b9ec19d6141f65 | 2,005 | py | Python | examples/example2.py | alenaizan/resp | 41c58f465f9f3c00225dba9dfa54e5269a970240 | [
"BSD-3-Clause"
] | 10 | 2019-03-15T20:33:02.000Z | 2021-12-15T02:05:28.000Z | examples/example2.py | alenaizan/resp | 41c58f465f9f3c00225dba9dfa54e5269a970240 | [
"BSD-3-Clause"
] | 18 | 2018-06-13T04:10:39.000Z | 2022-03-18T08:17:33.000Z | examples/example2.py | alenaizan/resp | 41c58f465f9f3c00225dba9dfa54e5269a970240 | [
"BSD-3-Clause"
] | 5 | 2018-06-13T02:57:28.000Z | 2021-06-08T15:43:15.000Z | import psi4
import resp
# Initialize two different conformations of ethanol
geometry = """C 0.00000000 0.00000000 0.00000000
C 1.48805540 -0.00728176 0.39653260
O 2.04971655 1.37648153 0.25604810
H 3.06429978 1.37151670 0.52641124
H 1.58679428 -0.33618761 1.43102358
H 2.03441010 -0.68906454 -... | 30.378788 | 79 | 0.653367 |
c5f4f68fa80ed3db7ce10e3d2a40e3db67dcd198 | 627 | py | Python | data_processing/test.py | FMsunyh/keras-retinanet | cb86a987237d3f6bd504004e2b186cf65606c890 | [
"Apache-2.0"
] | null | null | null | data_processing/test.py | FMsunyh/keras-retinanet | cb86a987237d3f6bd504004e2b186cf65606c890 | [
"Apache-2.0"
] | null | null | null | data_processing/test.py | FMsunyh/keras-retinanet | cb86a987237d3f6bd504004e2b186cf65606c890 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 5/31/2018 9:20 PM
# @Author : sunyonghai
# @File : test.py
# @Software: ZJ_AI
from multiprocessing import Pool, Lock, Value
import os
tests_count = 80
lock = Lock()
counter = Value('i', 0) # int typejava
if __name__ == "__main__":
pool = Pool(4)
# 80run()80xrange... | 20.225806 | 90 | 0.61244 |
c5f68e1534f103f39e915aa377cb7ad3e18fa265 | 2,280 | py | Python | neurofire/models/hed/fusionhed.py | nasimrahaman/neurofire | 4d645be149165da4c8202fe13b3c2360c2832383 | [
"MIT"
] | 9 | 2018-01-29T07:30:14.000Z | 2022-03-09T04:23:14.000Z | neurofire/models/hed/fusionhed.py | nasimrahaman/neurofire | 4d645be149165da4c8202fe13b3c2360c2832383 | [
"MIT"
] | 1 | 2017-12-19T14:27:18.000Z | 2017-12-19T15:35:59.000Z | neurofire/models/hed/fusionhed.py | nasimrahaman/neurofire | 4d645be149165da4c8202fe13b3c2360c2832383 | [
"MIT"
] | 5 | 2018-01-27T12:16:37.000Z | 2020-01-20T13:14:26.000Z | import torch.nn as nn
import torch
import torch.nn.functional as F
from .hed import HED
| 43.846154 | 97 | 0.617982 |
c5f77d1a3cca856b474207ec3945b97a6cf71f6d | 303 | py | Python | examples/filter_simple.py | uvm-plaid/dduo-python | 368e1aa47a913f7adcf1e5db1e4a329a26d8d7ba | [
"MIT"
] | 4 | 2021-06-13T20:00:34.000Z | 2022-01-03T18:17:49.000Z | examples/filter_simple.py | uvm-plaid/dduo-python | 368e1aa47a913f7adcf1e5db1e4a329a26d8d7ba | [
"MIT"
] | null | null | null | examples/filter_simple.py | uvm-plaid/dduo-python | 368e1aa47a913f7adcf1e5db1e4a329a26d8d7ba | [
"MIT"
] | null | null | null | import sys
sys.path.append("../")
import duet
from duet import pandas as pd
epsilon = 1.0
alpha = 10
df = pd.read_csv("test.csv")
with duet.RenyiFilter(9,1.0):
noisy_count = duet.renyi_gauss(df.shape[0], = alpha, = epsilon)
print(f'NoisyCount : {noisy_count}')
duet.print_privacy_cost()
| 18.9375 | 71 | 0.693069 |
c5fad6b1fa96e688327b68e8eed1828289790bab | 473 | py | Python | tartaruga espiral.py | talitadeoa/head-first-code | 3f89e5227f0996ed83832c6b848a77a4908e6168 | [
"MIT"
] | null | null | null | tartaruga espiral.py | talitadeoa/head-first-code | 3f89e5227f0996ed83832c6b848a77a4908e6168 | [
"MIT"
] | null | null | null | tartaruga espiral.py | talitadeoa/head-first-code | 3f89e5227f0996ed83832c6b848a77a4908e6168 | [
"MIT"
] | null | null | null | import turtle
tortuguinha = turtle.Turtle()
tortuguinha.shape('turtle')
tortuguinha.color('red')
tortugo = turtle.Turtle()
tortugo.shape('turtle')
tortugo.color('blue')
faz_espiral(tortuguinha)
tortugo.right(5)
faz_espiral(tortugo)
| 19.708333 | 33 | 0.710359 |
c5fbc71da36428911d857cb7dc5361b3f8ead4b6 | 3,375 | py | Python | rechun/dl/multimodelcontext.py | alainjungo/reliability-challenges-uncertainty | 21e86f6e2a5d2520b5767dce48bbcf2b11773788 | [
"MIT"
] | 56 | 2019-07-10T06:02:11.000Z | 2021-12-21T08:11:22.000Z | rechun/dl/multimodelcontext.py | alainjungo/reliability-challenges-uncertainty | 21e86f6e2a5d2520b5767dce48bbcf2b11773788 | [
"MIT"
] | 4 | 2019-09-26T08:51:58.000Z | 2021-06-08T20:27:53.000Z | rechun/dl/multimodelcontext.py | alainjungo/reliability-challenges-uncertainty | 21e86f6e2a5d2520b5767dce48bbcf2b11773788 | [
"MIT"
] | 8 | 2019-10-21T12:43:08.000Z | 2021-12-02T08:14:38.000Z | import torch
import common.trainloop.context as ctx
import common.trainloop.factory as factory
import common.model.management as mgt
import common.utils.torchhelper as th
| 43.831169 | 118 | 0.651259 |
c5fc1fd40bd0f609dfec322f4db82f5ebd97d46e | 704 | py | Python | ALGOs/Perceptron/logic_gates.py | iamharshit/ML_works | b0bb53c5a60312719d15e25b727c54cbab65b4af | [
"MIT"
] | 1 | 2016-11-29T04:28:09.000Z | 2016-11-29T04:28:09.000Z | ALGOs/Perceptron/logic_gates.py | iamharshit/ML_works | b0bb53c5a60312719d15e25b727c54cbab65b4af | [
"MIT"
] | null | null | null | ALGOs/Perceptron/logic_gates.py | iamharshit/ML_works | b0bb53c5a60312719d15e25b727c54cbab65b4af | [
"MIT"
] | null | null | null | #The input to the gate can only be 0 or 1
'''
Single Layer Perceptrons
'''
'''
Multi Layer Perceptrons
'''
print XOR_perceptron(0,0)
print XOR_perceptron(0,1)
print XOR_perceptron(1,0)
print XOR_perceptron(1,1) | 20.705882 | 58 | 0.59233 |
c5fce436240d3d6bd829247715a353298fbb9868 | 19,916 | py | Python | Analysis/Metric_Impact_Hijacking/give_metric_ases_from_clusters.py | cgeorgitsis/ai4netmon | 36c4c1695fd980705d3e3f76385cda14baf7f397 | [
"MIT"
] | null | null | null | Analysis/Metric_Impact_Hijacking/give_metric_ases_from_clusters.py | cgeorgitsis/ai4netmon | 36c4c1695fd980705d3e3f76385cda14baf7f397 | [
"MIT"
] | null | null | null | Analysis/Metric_Impact_Hijacking/give_metric_ases_from_clusters.py | cgeorgitsis/ai4netmon | 36c4c1695fd980705d3e3f76385cda14baf7f397 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import random, os, json
from collections import defaultdict
from matplotlib import pyplot as plt
from sklearn.cluster import KMeans, SpectralClustering
from scipy.spatial.distance import pdist, squareform
from scipy.sparse import csgraph
from numpy import linalg as LA
from sklearn... | 49.29703 | 165 | 0.693814 |
c5fda76eda5749a6451e2494fedda422ecadeadf | 2,184 | py | Python | kingbird/tests/unit/objects/test_base.py | starlingx-staging/stx-kingbird | 9869ad4640e76384fa14f031a59134cd439929a8 | [
"Apache-2.0"
] | null | null | null | kingbird/tests/unit/objects/test_base.py | starlingx-staging/stx-kingbird | 9869ad4640e76384fa14f031a59134cd439929a8 | [
"Apache-2.0"
] | null | null | null | kingbird/tests/unit/objects/test_base.py | starlingx-staging/stx-kingbird | 9869ad4640e76384fa14f031a59134cd439929a8 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2015 Ericsson AB.
# 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 applicab... | 35.803279 | 75 | 0.668498 |
c5fe482fddeda64ee08226bdb2b25edc133236ff | 380 | py | Python | src/tests/tests.py | veleritas/mychem.info | bb22357d4cbbc3c4865da224bf998f2cbc59f8f2 | [
"Apache-2.0"
] | 1 | 2021-05-09T04:51:28.000Z | 2021-05-09T04:51:28.000Z | src/tests/tests.py | veleritas/mychem.info | bb22357d4cbbc3c4865da224bf998f2cbc59f8f2 | [
"Apache-2.0"
] | null | null | null | src/tests/tests.py | veleritas/mychem.info | bb22357d4cbbc3c4865da224bf998f2cbc59f8f2 | [
"Apache-2.0"
] | null | null | null | import sys
import os
# Add this directory to python path (contains nosetest_config)
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from biothings.tests import BiothingTest
from biothings.tests.settings import NosetestSettings
ns = NosetestSettings()
| 22.352941 | 62 | 0.776316 |
c5fe65c9539705123af8748c4e0aa1720b1d7fad | 824 | py | Python | hardware/camera/drivers.py | smartenv/smartcan | dcd214acd26fdc0af940460d42cb0f4f75a40829 | [
"Apache-2.0"
] | null | null | null | hardware/camera/drivers.py | smartenv/smartcan | dcd214acd26fdc0af940460d42cb0f4f75a40829 | [
"Apache-2.0"
] | 1 | 2019-09-02T20:21:27.000Z | 2019-09-02T22:58:38.000Z | hardware/camera/drivers.py | smartenv/smartcan | dcd214acd26fdc0af940460d42cb0f4f75a40829 | [
"Apache-2.0"
] | null | null | null | import tempfile
from abc import ABC, abstractmethod
from time import sleep, time
from hardware.camera import Photo, Resolution
| 23.542857 | 76 | 0.668689 |
c5ffc77661b72f4eb6b28eeafca66a6e20e1570d | 6,897 | py | Python | src/sms_verifier/settings.py | ArieLevs/sms-verifier-backend | b687f0426e7fc871a7ba50d95499187e72089dce | [
"MIT"
] | null | null | null | src/sms_verifier/settings.py | ArieLevs/sms-verifier-backend | b687f0426e7fc871a7ba50d95499187e72089dce | [
"MIT"
] | 10 | 2020-02-12T02:51:31.000Z | 2022-02-10T13:33:43.000Z | src/sms_verifier/settings.py | ArieLevs/sms-verifier-backend | b687f0426e7fc871a7ba50d95499187e72089dce | [
"MIT"
] | 1 | 2022-02-22T18:56:22.000Z | 2022-02-22T18:56:22.000Z | """
Django settings for sms_verifier project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | 27.810484 | 91 | 0.660577 |
6801dc75931ad303482faa362dd4a4100e4ec4dd | 5,149 | py | Python | test/test_termCombinationLib.py | ozanozisik/orsum | 9d6b36c83d6cd7297fe68214fe89faa9281a7792 | [
"MIT"
] | 1 | 2021-04-02T15:07:35.000Z | 2021-04-02T15:07:35.000Z | test/test_termCombinationLib.py | ozanozisik/orsum | 9d6b36c83d6cd7297fe68214fe89faa9281a7792 | [
"MIT"
] | null | null | null | test/test_termCombinationLib.py | ozanozisik/orsum | 9d6b36c83d6cd7297fe68214fe89faa9281a7792 | [
"MIT"
] | null | null | null | from termCombinationLib import initializeTermSummary, applyRule, recurringTermsUnified, supertermRepresentsLessSignificantSubterm, subtermRepresentsLessSignificantSimilarSuperterm, subtermRepresentsSupertermWithLessSignificanceAndLessRepresentativePower, commonSupertermInListRepresentsSubtermsWithLessRepresentativePowe... | 35.510345 | 365 | 0.649446 |
6803550947b81cdf9de81ccf68c02ddd50ac556a | 48 | py | Python | bindings/pydeck/pydeck/exceptions/__init__.py | marsupialmarcos/deck.gl | c9867c1db87e492253865353f68c985019c7c613 | [
"MIT"
] | null | null | null | bindings/pydeck/pydeck/exceptions/__init__.py | marsupialmarcos/deck.gl | c9867c1db87e492253865353f68c985019c7c613 | [
"MIT"
] | null | null | null | bindings/pydeck/pydeck/exceptions/__init__.py | marsupialmarcos/deck.gl | c9867c1db87e492253865353f68c985019c7c613 | [
"MIT"
] | null | null | null | from .exceptions import PydeckException # noqa
| 24 | 47 | 0.8125 |
680818c94a5d8918261d5f2d00ab826a279d384e | 1,096 | py | Python | notebooks/tpot_exported_pipeline.py | rsouza/FGV_Intro_DS | 5c4da0a9476654516199708cb729231a21d99686 | [
"MIT"
] | 38 | 2018-02-28T17:33:00.000Z | 2022-01-21T22:30:11.000Z | Notebooks/tpot_exported_pipeline.py | rsouza/DataScience_Course | dd8018d616cf24a7b23c7b04ea1e2120261da3c0 | [
"MIT"
] | 17 | 2018-08-16T12:11:57.000Z | 2019-08-04T17:55:27.000Z | Notebooks/tpot_exported_pipeline.py | rsouza/DataScience_Course | dd8018d616cf24a7b23c7b04ea1e2120261da3c0 | [
"MIT"
] | 62 | 2018-02-20T12:58:13.000Z | 2022-03-03T11:10:16.000Z | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline, make_union
from tpot.builtins import StackingEstimator
from xgboost import XGBClassifier
from sklearn.preprocessing import FunctionTransformer
from copy import copy
# NOTE: Make sure ... | 40.592593 | 125 | 0.794708 |
680939a134bf2b1210290121f792004a5567a200 | 7,296 | py | Python | own/NER_torch/ner_dataset.py | felixdittrich92/DeepLearning-pyTorch | 5939012e960b79ddc183921dfeb4503126878068 | [
"MIT"
] | 1 | 2022-03-02T07:16:59.000Z | 2022-03-02T07:16:59.000Z | own/NER_torch/ner_dataset.py | felixdittrich92/DeepLearning-pyTorch | 5939012e960b79ddc183921dfeb4503126878068 | [
"MIT"
] | null | null | null | own/NER_torch/ner_dataset.py | felixdittrich92/DeepLearning-pyTorch | 5939012e960b79ddc183921dfeb4503126878068 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pandas as pd
import pytorch_lightning as pl
import torch
from sklearn.model_selection import train_test_split
from torch.utils.data import DataLoader, Dataset
from transformers import BertTokenizerFast
os.environ["TOKENIZERS_PARALLELISM"] = "true"
FILE_PATH = 'data/own.txt'
data =... | 34.742857 | 151 | 0.649397 |
6809a2acfca0df46c95da57d06eac41e2dd27631 | 124 | py | Python | wikilabels/tests/test_stats_routes.py | notconfusing/wikilabels | 5956e20a5d46286bfb0b6327a2b5a12fa406118b | [
"MIT"
] | null | null | null | wikilabels/tests/test_stats_routes.py | notconfusing/wikilabels | 5956e20a5d46286bfb0b6327a2b5a12fa406118b | [
"MIT"
] | null | null | null | wikilabels/tests/test_stats_routes.py | notconfusing/wikilabels | 5956e20a5d46286bfb0b6327a2b5a12fa406118b | [
"MIT"
] | null | null | null | from .routes_test_fixture import app # noqa
| 20.666667 | 52 | 0.725806 |
680b099433a019c0405e29fa05a069e43cce35d3 | 2,017 | py | Python | show_history.py | FairyDevicesRD/statistical-quality-estimation | 1ce238b118be8ffb4abb902fa5ad1a7525a43b3a | [
"MIT"
] | null | null | null | show_history.py | FairyDevicesRD/statistical-quality-estimation | 1ce238b118be8ffb4abb902fa5ad1a7525a43b3a | [
"MIT"
] | null | null | null | show_history.py | FairyDevicesRD/statistical-quality-estimation | 1ce238b118be8ffb4abb902fa5ad1a7525a43b3a | [
"MIT"
] | null | null | null | import argparse
import logging
import pathlib
import re
import warnings
import numpy as np
import dirichlet
from sklearn.linear_model import LogisticRegression
from optimize import load_config, load_data, get_loglikelihood, get_mse
logger = logging.getLogger()
if __name__ == "__main__":
warnings.filterwarnin... | 24.901235 | 71 | 0.61527 |
680c5f63df1dfe08789bfa98126f9d196d2c9212 | 620 | py | Python | src/backend/web/handlers/apidocs.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | null | null | null | src/backend/web/handlers/apidocs.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | null | null | null | src/backend/web/handlers/apidocs.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | null | null | null | from backend.common.decorators import cached_public
from backend.web.profiled_render import render_template
| 29.52381 | 67 | 0.68871 |
680d5f5213572fa53827c06c480230ee309727aa | 712 | py | Python | tests/common/devices/vmhost.py | emilmih/sonic-mgmt | e4e42ec8028bf51b39587e2b53e526d505fe7938 | [
"Apache-2.0"
] | 132 | 2016-10-19T12:34:44.000Z | 2022-03-16T09:00:39.000Z | tests/common/devices/vmhost.py | emilmih/sonic-mgmt | e4e42ec8028bf51b39587e2b53e526d505fe7938 | [
"Apache-2.0"
] | 3,152 | 2016-09-21T23:05:58.000Z | 2022-03-31T23:29:08.000Z | tests/common/devices/vmhost.py | emilmih/sonic-mgmt | e4e42ec8028bf51b39587e2b53e526d505fe7938 | [
"Apache-2.0"
] | 563 | 2016-09-20T01:00:15.000Z | 2022-03-31T22:43:54.000Z | from tests.common.devices.base import AnsibleHostBase
| 32.363636 | 94 | 0.678371 |
680e3a6742a96523df350e83def38272170019eb | 438 | py | Python | normatrix/normatrix/plugged/__init__.py | romainpanno/NorMatrix | 33bbf02b1881853088c8350f9a3c9d22ba3aa704 | [
"MIT"
] | null | null | null | normatrix/normatrix/plugged/__init__.py | romainpanno/NorMatrix | 33bbf02b1881853088c8350f9a3c9d22ba3aa704 | [
"MIT"
] | null | null | null | normatrix/normatrix/plugged/__init__.py | romainpanno/NorMatrix | 33bbf02b1881853088c8350f9a3c9d22ba3aa704 | [
"MIT"
] | null | null | null | """All plugging called to check norm for a C file."""
__all__ = [
"columns",
"comma",
"function_line",
"indent",
"libc_func",
"nested_branches",
"number_function",
"parenthesis",
"preprocessor",
"snake_case",
"solo_space",
"statements",
"trailing_newline",
"two_sp... | 16.846154 | 53 | 0.584475 |
680ed6affdcd3fb061dee185fd006fb9c5077b21 | 30,862 | py | Python | sc2monitor/controller.py | 2press/sc2monitor | a4c193fd946e54a03be2181d839875ddb956e621 | [
"MIT"
] | 1 | 2018-07-30T11:39:32.000Z | 2018-07-30T11:39:32.000Z | sc2monitor/controller.py | 2press/sc2-monitor | a4c193fd946e54a03be2181d839875ddb956e621 | [
"MIT"
] | 22 | 2019-01-03T11:34:30.000Z | 2021-05-03T19:50:10.000Z | sc2monitor/controller.py | 2press/sc2-monitor | a4c193fd946e54a03be2181d839875ddb956e621 | [
"MIT"
] | 1 | 2019-01-14T21:35:05.000Z | 2019-01-14T21:35:05.000Z | """Control the sc2monitor."""
import asyncio
import logging
import math
import time
from datetime import datetime, timedelta
from operator import itemgetter
import aiohttp
import sc2monitor.model as model
from sc2monitor.handlers import SQLAlchemyHandler
from sc2monitor.sc2api import SC2API
logger = logging.getLogge... | 40.342484 | 79 | 0.547307 |
680f6ab5ef1c42004a8c67eed4c23528a49a9b2c | 9,867 | py | Python | impermagit/repo.py | tomheon/impermagit | 1f508e8cedcd8ee54745489d2b7682a60dfa07cd | [
"MIT"
] | null | null | null | impermagit/repo.py | tomheon/impermagit | 1f508e8cedcd8ee54745489d2b7682a60dfa07cd | [
"MIT"
] | null | null | null | impermagit/repo.py | tomheon/impermagit | 1f508e8cedcd8ee54745489d2b7682a60dfa07cd | [
"MIT"
] | null | null | null | from contextlib import contextmanager
import errno
import os
import shutil
import subprocess
import tempfile
def fleeting_repo(git_exe=None):
"""
Create a temp directory and yield a Repo built from it.
The temp dir will be cleaned up afterwards.
>>> with fleeting_repo() as repo:
... repo.d... | 31.32381 | 77 | 0.572616 |
681045cfaacc2418fa853c78810b9368726344ac | 717 | py | Python | chaospy/distributions/copulas/__init__.py | lblonk/chaospy | 1759a4307c6134b74ce63ff44973195f1e185f94 | [
"MIT"
] | null | null | null | chaospy/distributions/copulas/__init__.py | lblonk/chaospy | 1759a4307c6134b74ce63ff44973195f1e185f94 | [
"MIT"
] | null | null | null | chaospy/distributions/copulas/__init__.py | lblonk/chaospy | 1759a4307c6134b74ce63ff44973195f1e185f94 | [
"MIT"
] | null | null | null | r"""
Copulas are a type dependency structure imposed on independent variables to
achieve to more complex problems without adding too much complexity.
To construct a copula one needs a copula transformation and the
Copula wrapper::
>>> dist = chaospy.Iid(chaospy.Uniform(), 2)
>>> copula = chaospy.Gumbel(dist, ... | 27.576923 | 75 | 0.732218 |
6810793cac493b5c11bee04614c0af284e700eb6 | 2,112 | py | Python | documentation/examples/policy_aggregation.py | oscardavidtorres1994/cadCAD | 229e2dac585eb6c1644cf277e3a7807883f10d13 | [
"MIT"
] | 1 | 2021-11-22T23:11:15.000Z | 2021-11-22T23:11:15.000Z | documentation/examples/policy_aggregation.py | oscardavidtorres1994/cadCAD | 229e2dac585eb6c1644cf277e3a7807883f10d13 | [
"MIT"
] | null | null | null | documentation/examples/policy_aggregation.py | oscardavidtorres1994/cadCAD | 229e2dac585eb6c1644cf277e3a7807883f10d13 | [
"MIT"
] | 1 | 2021-11-22T23:11:03.000Z | 2021-11-22T23:11:03.000Z | import pandas as pd
from tabulate import tabulate
from cadCAD.configuration import append_configs
from cadCAD.configuration.utils import config_sim
from cadCAD.engine import ExecutionMode, ExecutionContext, Executor
from cadCAD import configs
# Policies per Mechanism
# Internal States per Mechanism
# Genesis Stat... | 21.333333 | 82 | 0.597538 |
6813a323f69361605daa7bd7874ef3440ba67ca6 | 2,667 | py | Python | lib/Agent.py | mbhatt1/Mofosploit | d21295253b9cfe730da22bea9eeb4bcc7b872154 | [
"Apache-2.0"
] | 6 | 2019-01-21T13:09:29.000Z | 2019-10-02T07:58:57.000Z | lib/Agent.py | mbhatt1/Mofosploit | d21295253b9cfe730da22bea9eeb4bcc7b872154 | [
"Apache-2.0"
] | null | null | null | lib/Agent.py | mbhatt1/Mofosploit | d21295253b9cfe730da22bea9eeb4bcc7b872154 | [
"Apache-2.0"
] | 3 | 2019-01-21T13:15:50.000Z | 2020-09-28T11:30:51.000Z |
from lib.imports import *
from lib.Constants import *
from lib.Environment import *
from lib.ML_Modules import ML_Nnet
from lib.parameter_server import Server as ParameterServer
'''
Single Agent
'''
| 35.092105 | 107 | 0.548556 |
6813cdd606ade45f43873ba2c99142d90f8a961a | 16,267 | py | Python | wrt/wrt-packertool-android-tests/test.py | tiwanek/crosswalk-test-suite | 82d12e6187c81caeb56e12c5ec3483f35d939982 | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-packertool-android-tests/test.py | tiwanek/crosswalk-test-suite | 82d12e6187c81caeb56e12c5ec3483f35d939982 | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-packertool-android-tests/test.py | tiwanek/crosswalk-test-suite | 82d12e6187c81caeb56e12c5ec3483f35d939982 | [
"BSD-3-Clause"
] | null | null | null | import sys, os, os.path, time, shutil
import commands
from xml.etree.ElementTree import ElementTree
from xml.etree.ElementTree import Element
from xml.etree.ElementTree import SubElement as SE
import metacomm.combinatorics.all_pairs2
all_pairs = metacomm.combinatorics.all_pairs2.all_pairs2
totalNum = 0
failNum = 0
pa... | 40.165432 | 245 | 0.500645 |
6814898e651034adbd68ccc0b6b8b8dad8f99277 | 584 | py | Python | bigcommerce/resources/options.py | sebaacuna/bigcommerce-api-python | 59ef206d7296c196a0ae0400b6bf9bdb5c2f72af | [
"MIT"
] | null | null | null | bigcommerce/resources/options.py | sebaacuna/bigcommerce-api-python | 59ef206d7296c196a0ae0400b6bf9bdb5c2f72af | [
"MIT"
] | null | null | null | bigcommerce/resources/options.py | sebaacuna/bigcommerce-api-python | 59ef206d7296c196a0ae0400b6bf9bdb5c2f72af | [
"MIT"
] | null | null | null | from .base import *
| 32.444444 | 121 | 0.739726 |
6814efafa8b0436d0c07705dbb35b7e3e7d2d5ab | 61 | py | Python | itscsapp/admision/models/__init__.py | danyRivC/itscsapp | 485309f41f477fcebf66899740a0b4a954f4b98b | [
"MIT"
] | null | null | null | itscsapp/admision/models/__init__.py | danyRivC/itscsapp | 485309f41f477fcebf66899740a0b4a954f4b98b | [
"MIT"
] | null | null | null | itscsapp/admision/models/__init__.py | danyRivC/itscsapp | 485309f41f477fcebf66899740a0b4a954f4b98b | [
"MIT"
] | null | null | null | from .admision_carrer import *
from .admision_event import *
| 20.333333 | 30 | 0.803279 |
6815fb78cca0f6a2e9ed9085014fe961cd3f8369 | 3,649 | py | Python | paperswithcode/models/evaluation/result.py | lambdaofgod/paperswithcode-client | 2edc0288724400a17c66ba0f07c4a680d0aa907e | [
"Apache-2.0"
] | 1 | 2021-11-21T12:01:44.000Z | 2021-11-21T12:01:44.000Z | paperswithcode/models/evaluation/result.py | lambdaofgod/paperswithcode-client | 2edc0288724400a17c66ba0f07c4a680d0aa907e | [
"Apache-2.0"
] | null | null | null | paperswithcode/models/evaluation/result.py | lambdaofgod/paperswithcode-client | 2edc0288724400a17c66ba0f07c4a680d0aa907e | [
"Apache-2.0"
] | 1 | 2021-11-21T12:01:46.000Z | 2021-11-21T12:01:46.000Z | from datetime import datetime
from typing import Optional
from tea_client.models import TeaClientModel
| 35.77451 | 91 | 0.671965 |
681a1cf3ad99f3d849dfcabbe5d567ca687824c1 | 3,300 | py | Python | tests/api_resources/test_porting_order.py | rjkboyle/telnyx-python | bee8bdef9efd43076e63693876f7a423f3853180 | [
"MIT"
] | 35 | 2019-07-22T20:44:09.000Z | 2022-02-15T05:52:15.000Z | tests/api_resources/test_porting_order.py | rjkboyle/telnyx-python | bee8bdef9efd43076e63693876f7a423f3853180 | [
"MIT"
] | 15 | 2019-08-05T21:16:41.000Z | 2022-01-14T00:14:35.000Z | tests/api_resources/test_porting_order.py | rjkboyle/telnyx-python | bee8bdef9efd43076e63693876f7a423f3853180 | [
"MIT"
] | 6 | 2019-08-19T17:27:39.000Z | 2022-03-15T18:36:23.000Z | from __future__ import absolute_import, division, print_function
import pytest
import telnyx
TEST_RESOURCE_ID = "f1486bae-f067-460c-ad43-73a92848f902"
| 40.740741 | 88 | 0.698485 |
681b7c879fe3f2d09f237ea35bdbdb7e97ac6241 | 2,002 | py | Python | tests/garage/replay_buffer/test_replay_buffer.py | Maltimore/garage | a3f44b37eeddca37d157766a9a72e8772f104bcd | [
"MIT"
] | 1 | 2019-07-31T06:53:38.000Z | 2019-07-31T06:53:38.000Z | tests/garage/replay_buffer/test_replay_buffer.py | Maltimore/garage | a3f44b37eeddca37d157766a9a72e8772f104bcd | [
"MIT"
] | null | null | null | tests/garage/replay_buffer/test_replay_buffer.py | Maltimore/garage | a3f44b37eeddca37d157766a9a72e8772f104bcd | [
"MIT"
] | 1 | 2020-02-05T00:34:07.000Z | 2020-02-05T00:34:07.000Z | import numpy as np
from garage.replay_buffer import SimpleReplayBuffer
from tests.fixtures.envs.dummy import DummyDiscreteEnv
| 39.254902 | 79 | 0.679321 |
a838ac6842aba9c31c47292a8f156a76646dc315 | 3,238 | py | Python | python/paddle/fluid/tests/unittests/dygraph_to_static/test_isinstance.py | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 17,085 | 2016-11-18T06:40:52.000Z | 2022-03-31T22:52:32.000Z | python/paddle/fluid/tests/unittests/dygraph_to_static/test_isinstance.py | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 29,769 | 2016-11-18T06:35:22.000Z | 2022-03-31T16:46:15.000Z | python/paddle/fluid/tests/unittests/dygraph_to_static/test_isinstance.py | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 4,641 | 2016-11-18T07:43:33.000Z | 2022-03-31T15:15:02.000Z | # Copyright (c) 2020 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... | 28.654867 | 74 | 0.67202 |
a8394db96022de367ff157a8a8c8008d7bc2a5be | 6,244 | py | Python | dlf/core/registry.py | scheckmedia/dl-framework | 8fea39e166fda0ff8fa51696831bf5cb42f3ed10 | [
"Apache-2.0"
] | null | null | null | dlf/core/registry.py | scheckmedia/dl-framework | 8fea39e166fda0ff8fa51696831bf5cb42f3ed10 | [
"Apache-2.0"
] | null | null | null | dlf/core/registry.py | scheckmedia/dl-framework | 8fea39e166fda0ff8fa51696831bf5cb42f3ed10 | [
"Apache-2.0"
] | null | null | null | """ The task of the registry is to register complex objects
by an keyword/alias that you easily can build and instanciate
these objects with a single keyword. This allows it in a easy
manner to parse a yaml configuration file and use these values
to instanciate the available objects.
"""
import tensorflow as tf
from ... | 28.774194 | 110 | 0.648302 |
a839c728217667721506b5ef85d6e58de7793368 | 1,017 | py | Python | project/dev/tuning.py | maple1eaf/data_mining_inf553 | fba0c19f46aac5882e103dbe53155e7128a9290f | [
"MIT"
] | 1 | 2021-05-04T05:17:57.000Z | 2021-05-04T05:17:57.000Z | project/dev/tuning.py | maple1eaf/data_mining_inf553 | fba0c19f46aac5882e103dbe53155e7128a9290f | [
"MIT"
] | null | null | null | project/dev/tuning.py | maple1eaf/data_mining_inf553 | fba0c19f46aac5882e103dbe53155e7128a9290f | [
"MIT"
] | 1 | 2021-09-24T08:17:23.000Z | 2021-09-24T08:17:23.000Z | import os
import json
import rmse
TUNING_FILE = "/Users/markduan/duan/USC_course/USC_APDS/INF553/project/predict/tuning.json"
CORATED_LIMIT = [3, 5, 7, 10]
LONELY_THRESHOLD = [2, 3, 5, 7]
N_NEIGHBORS_ITEMBASED = [5, 7, 10, 12]
WEIGHT = [0.2, 0.4, 0.6, 0.8]
if os.path.exists(TUNING_FILE):
os.remove(TUNING_FILE)
... | 25.425 | 91 | 0.52999 |
a83aab63534247c9aaa5317711686c9c7891a302 | 2,736 | py | Python | tests/test_weightings.py | matchup-ir/whooshy | 3e8730f4cbb559fd59971c5a2e6d01924d3968c0 | [
"BSD-2-Clause-FreeBSD"
] | 319 | 2016-09-22T15:54:48.000Z | 2022-03-18T02:36:58.000Z | tests/test_weightings.py | matchup-ir/whooshy | 3e8730f4cbb559fd59971c5a2e6d01924d3968c0 | [
"BSD-2-Clause-FreeBSD"
] | 85 | 2018-12-11T06:53:06.000Z | 2021-07-30T20:39:12.000Z | tests/test_weightings.py | matchup-ir/whooshy | 3e8730f4cbb559fd59971c5a2e6d01924d3968c0 | [
"BSD-2-Clause-FreeBSD"
] | 62 | 2015-07-03T12:34:32.000Z | 2022-02-08T08:21:12.000Z | from __future__ import with_statement
import inspect
from random import choice, randint
import sys
from whoosh import fields, query, scoring
from whoosh.compat import u, xrange, permutations
from whoosh.filedb.filestore import RamStorage
| 33.365854 | 79 | 0.593567 |
a83b6d55a2a7a1cbce269d3312e7f896d2b471a1 | 1,133 | py | Python | Python/Zelle/Chapter10_DefiningClasses/ProgrammingExercises/10_CubeClass/cubeProperties.py | jeffvswanson/CodingPractice | 9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb | [
"MIT"
] | null | null | null | Python/Zelle/Chapter10_DefiningClasses/ProgrammingExercises/10_CubeClass/cubeProperties.py | jeffvswanson/CodingPractice | 9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb | [
"MIT"
] | null | null | null | Python/Zelle/Chapter10_DefiningClasses/ProgrammingExercises/10_CubeClass/cubeProperties.py | jeffvswanson/CodingPractice | 9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb | [
"MIT"
] | null | null | null | # cubeProperties.py
# A program to calculate the volume and surface area of a cube.
"""Same as Chapter 10 Programming Exercise 9, but for a cube. The constructor
should accept the length of a side as a parameter."""
from cubeClass import Cube
main()
| 29.815789 | 77 | 0.613416 |
a83cd6c3e2c44f9770befd49c93d195219322f27 | 5,768 | py | Python | pharmrep/product/models.py | boyombo/pharmrep | 2293ceb235dec949c58fa40d1ee43fce172e0ceb | [
"MIT"
] | null | null | null | pharmrep/product/models.py | boyombo/pharmrep | 2293ceb235dec949c58fa40d1ee43fce172e0ceb | [
"MIT"
] | null | null | null | pharmrep/product/models.py | boyombo/pharmrep | 2293ceb235dec949c58fa40d1ee43fce172e0ceb | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from datetime import datetime, date
from django.db import models
from django.contrib.auth.models import User
from django.db.models.aggregates import Sum
AGE_LIMIT = 7 # 7 days age limit
| 32.044444 | 76 | 0.677358 |
a83d95d0bdb34524a4d9657cff33c959ab96b482 | 19,189 | py | Python | src/apscheduler/datastores/async_/sqlalchemy.py | spaceack/apscheduler | ce5262c05a663677fd74a43c7a315bd5e3def902 | [
"MIT"
] | null | null | null | src/apscheduler/datastores/async_/sqlalchemy.py | spaceack/apscheduler | ce5262c05a663677fd74a43c7a315bd5e3def902 | [
"MIT"
] | null | null | null | src/apscheduler/datastores/async_/sqlalchemy.py | spaceack/apscheduler | ce5262c05a663677fd74a43c7a315bd5e3def902 | [
"MIT"
] | null | null | null | from __future__ import annotations
import json
import logging
from contextlib import AsyncExitStack, closing
from datetime import datetime, timedelta, timezone
from json import JSONDecodeError
from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Type, Union
from uuid import UUID
import sniffi... | 45.471564 | 99 | 0.614675 |
a83deef93d0c43dab99c0c6171aa58bee51fc329 | 185 | py | Python | financeiro/views.py | Antonio-Neves/Gestao-Escolar | a97052beb571a32619d4e6b6f5e7c3aae3bc8e9b | [
"MIT"
] | 7 | 2021-05-21T00:23:40.000Z | 2021-12-09T12:35:00.000Z | financeiro/views.py | Antonio-Neves/Gestao-Escolar | a97052beb571a32619d4e6b6f5e7c3aae3bc8e9b | [
"MIT"
] | null | null | null | financeiro/views.py | Antonio-Neves/Gestao-Escolar | a97052beb571a32619d4e6b6f5e7c3aae3bc8e9b | [
"MIT"
] | 7 | 2021-08-03T22:28:36.000Z | 2022-03-13T20:08:40.000Z | from django.shortcuts import render
from django.views.generic.base import TemplateView
| 18.5 | 51 | 0.827027 |
a83e29d363c3ca50085e97a39444917b28289d0b | 26 | py | Python | __init__.py | fleximus/pelican-fancyindex | 305a953ed42c3b9f6c43dbd2d20751ac4f11deaf | [
"BSD-2-Clause"
] | null | null | null | __init__.py | fleximus/pelican-fancyindex | 305a953ed42c3b9f6c43dbd2d20751ac4f11deaf | [
"BSD-2-Clause"
] | null | null | null | __init__.py | fleximus/pelican-fancyindex | 305a953ed42c3b9f6c43dbd2d20751ac4f11deaf | [
"BSD-2-Clause"
] | null | null | null | from .fancyindex import *
| 13 | 25 | 0.769231 |
a83e32ca63ea15b59111ab7fa07808949fb07688 | 11,444 | py | Python | SLpackage/private/pacbio/pythonpkgs/pbreports/lib/python2.7/site-packages/pbreports/report/structural_variants.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | 5 | 2022-02-20T07:10:02.000Z | 2022-03-18T17:47:53.000Z | SLpackage/private/pacbio/pythonpkgs/pbreports/lib/python2.7/site-packages/pbreports/report/structural_variants.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | null | null | null | SLpackage/private/pacbio/pythonpkgs/pbreports/lib/python2.7/site-packages/pbreports/report/structural_variants.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | null | null | null |
"""
Structural Variants Report
"""
import os
import os.path as op
import logging
import sys
import json
import itertools
import collections
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import matplotlib.ticker as ticker
from matplotlib import rcParams
... | 33.267442 | 98 | 0.625306 |
a83fc38633f6c95bca36f69963bdbc69b5abb27d | 976 | py | Python | logger.py | K-Molloy/nrdf-feed-python | 8b4ed87cc112154f43aae3d885a2085a2f28a74f | [
"MIT"
] | null | null | null | logger.py | K-Molloy/nrdf-feed-python | 8b4ed87cc112154f43aae3d885a2085a2f28a74f | [
"MIT"
] | null | null | null | logger.py | K-Molloy/nrdf-feed-python | 8b4ed87cc112154f43aae3d885a2085a2f28a74f | [
"MIT"
] | null | null | null | import logging
import os
from datetime import datetime | 39.04 | 104 | 0.621926 |
a840832e20eb91945756ce9b6d98a5d6d6a25541 | 1,689 | py | Python | rest_framework_auth0/models.py | robindebois/djangorestframework-auth0 | a203dcd9e067bc411b852b9f3ad3e7b1d0b843aa | [
"MIT"
] | 107 | 2016-03-28T22:45:40.000Z | 2021-06-28T01:46:38.000Z | rest_framework_auth0/models.py | robindebois/djangorestframework-auth0 | a203dcd9e067bc411b852b9f3ad3e7b1d0b843aa | [
"MIT"
] | 41 | 2016-09-03T05:15:47.000Z | 2021-01-02T12:47:36.000Z | rest_framework_auth0/models.py | robindebois/djangorestframework-auth0 | a203dcd9e067bc411b852b9f3ad3e7b1d0b843aa | [
"MIT"
] | 26 | 2016-04-16T22:01:29.000Z | 2021-05-07T14:01:55.000Z | # Just to keep things like ./manage.py test happy
from django.contrib.auth.models import AbstractUser
# class Group(models.Model):
# """
# Groups are a generic way of categorizing users to apply permissions, or
# some other label, to those users. A user can belong to any number of
# groups.
# A use... | 36.717391 | 79 | 0.666075 |
a8416b3fb1eb6b1559c7209666065c8baea36cb7 | 7,494 | py | Python | inference.py | quantori/prj-covid-scoring | 98d80498ffbab1fdbbeec0fc4016f9a199dbf88e | [
"MIT"
] | null | null | null | inference.py | quantori/prj-covid-scoring | 98d80498ffbab1fdbbeec0fc4016f9a199dbf88e | [
"MIT"
] | null | null | null | inference.py | quantori/prj-covid-scoring | 98d80498ffbab1fdbbeec0fc4016f9a199dbf88e | [
"MIT"
] | null | null | null | import os
import argparse
import cv2
import torch
import pandas as pd
from tqdm import tqdm
from pathlib import Path
import segmentation_models_pytorch as smp
from tools.datasets import InferenceDataset
from tools.models import CovidScoringNet, SegmentationModel
from tools.utils import extract_model_opts, get_list_of... | 39.235602 | 88 | 0.70403 |
a8422d5e6c8ade1475ebc70a2c91559349806cf9 | 4,267 | py | Python | uproot/const.py | guiguem/uproot | 42173c5a25b5d5858f42788090327030d6aa9b8d | [
"BSD-3-Clause"
] | null | null | null | uproot/const.py | guiguem/uproot | 42173c5a25b5d5858f42788090327030d6aa9b8d | [
"BSD-3-Clause"
] | null | null | null | uproot/const.py | guiguem/uproot | 42173c5a25b5d5858f42788090327030d6aa9b8d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2017, DIANA-HEP
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list ... | 32.082707 | 110 | 0.548395 |
a84343d8f9a70e258120f78238c2960222f6b4ed | 554 | py | Python | LeetCode/LostBoy/771. Jewels and Stones.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 9 | 2020-07-02T06:06:17.000Z | 2022-02-26T11:08:09.000Z | LeetCode/LostBoy/771. Jewels and Stones.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 1 | 2021-11-04T17:26:36.000Z | 2021-11-04T17:26:36.000Z | LeetCode/LostBoy/771. Jewels and Stones.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 8 | 2021-01-31T10:31:12.000Z | 2022-03-13T09:15:55.000Z | #771. Jewels and Stones | 25.181818 | 65 | 0.435018 |
a84368b717e48b36eb701f61e858302d7ec5883b | 277 | py | Python | djblog/comments/admin.py | rewalkerof/microblog | 2ef1652dcb9a7d35eed228f1d74587f4b0fa8912 | [
"MIT"
] | null | null | null | djblog/comments/admin.py | rewalkerof/microblog | 2ef1652dcb9a7d35eed228f1d74587f4b0fa8912 | [
"MIT"
] | null | null | null | djblog/comments/admin.py | rewalkerof/microblog | 2ef1652dcb9a7d35eed228f1d74587f4b0fa8912 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Comment
# Register your models here.
admin.site.register(Comment, CommentsAdmin)
| 18.466667 | 57 | 0.714801 |
a84380c1f97670fcb660541a388530604b2cd9bd | 1,180 | py | Python | bot/audio_trial2.py | Nova-Striker/discord-bot | 1c977711f348467bd73e1886c27ad4a9a93c779b | [
"Apache-2.0"
] | 1 | 2020-11-10T06:33:49.000Z | 2020-11-10T06:33:49.000Z | bot/audio_trial2.py | Nova-Striker/discord-bot | 1c977711f348467bd73e1886c27ad4a9a93c779b | [
"Apache-2.0"
] | null | null | null | bot/audio_trial2.py | Nova-Striker/discord-bot | 1c977711f348467bd73e1886c27ad4a9a93c779b | [
"Apache-2.0"
] | 1 | 2020-11-13T17:12:00.000Z | 2020-11-13T17:12:00.000Z | ##incompleted yt tuitorial
##import discord
##import json
##import asyncio
##import youtube_dl
##import shell
##import os
##from discord.utils import get
##from discord.ext import commands
##
##@client.command(pass_context=True)
##async def join(ctx):
## global voice
## channel=ctx.message.author... | 28.095238 | 62 | 0.626271 |
a8465518470f69aed3c070276b30d62403ad5fa0 | 14,426 | py | Python | pyeem/augmentation/base.py | drewmee/PyEEM | 283c01405bf51da6827ba434be53acd580b7642b | [
"MIT"
] | 4 | 2020-09-01T08:27:28.000Z | 2022-03-12T09:11:15.000Z | pyeem/augmentation/base.py | drewmee/PyEEM | 283c01405bf51da6827ba434be53acd580b7642b | [
"MIT"
] | 2 | 2021-06-11T18:20:47.000Z | 2021-11-19T14:11:09.000Z | pyeem/augmentation/base.py | drewmee/PyEEM | 283c01405bf51da6827ba434be53acd580b7642b | [
"MIT"
] | null | null | null | import itertools
import os
import random
import numpy as np
import pandas as pd
from tqdm import tqdm
def prototypical_spectrum(dataset, source_df):
"""Weighted average of calibration spectra with randomly assigned weights
between 0 and 1.
Args:
dataset (pyeem.datasets.Dataset): Your PyEEM data... | 37.665796 | 109 | 0.661722 |
a8475c65df4075b3b08496dd18fcba18f180aafe | 4,306 | py | Python | pgoapi/protos/POGOProtos/Networking/Responses/SetAvatarResponse_pb2.py | PogoHop/pgoapi-hsvr | b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47 | [
"MIT"
] | null | null | null | pgoapi/protos/POGOProtos/Networking/Responses/SetAvatarResponse_pb2.py | PogoHop/pgoapi-hsvr | b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47 | [
"MIT"
] | null | null | null | pgoapi/protos/POGOProtos/Networking/Responses/SetAvatarResponse_pb2.py | PogoHop/pgoapi-hsvr | b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: POGOProtos/Networking/Responses/SetAvatarResponse.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
... | 38.106195 | 529 | 0.760102 |
a8480382db69714973a4b7c38f535e4ba7563557 | 376 | py | Python | control/src/robocup/motion-control/VelocityKalmanTuner/dynamics.py | RRRekkitRalph/robocup-firmware | a1502fdb3401e7e998a29c5fae22ef597dcc2dc5 | [
"Apache-2.0"
] | 26 | 2016-07-06T11:25:43.000Z | 2022-02-27T00:24:02.000Z | control/src/robocup/motion-control/VelocityKalmanTuner/dynamics.py | RRRekkitRalph/robocup-firmware | a1502fdb3401e7e998a29c5fae22ef597dcc2dc5 | [
"Apache-2.0"
] | 98 | 2016-07-04T22:43:46.000Z | 2021-11-10T00:12:02.000Z | control/src/robocup/motion-control/VelocityKalmanTuner/dynamics.py | RRRekkitRalph/robocup-firmware | a1502fdb3401e7e998a29c5fae22ef597dcc2dc5 | [
"Apache-2.0"
] | 16 | 2016-07-07T10:50:11.000Z | 2021-12-06T11:20:28.000Z | from abc import ABC, abstractmethod
| 18.8 | 62 | 0.659574 |
a8498638fe63f75b8fb7831a168989a3237bda41 | 887 | py | Python | PP4E-Examples-1.4/Examples/PP4E/System/Threads/four-threads.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/System/Threads/four-threads.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/System/Threads/four-threads.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | """
four different ways to run an action in a thread; all print 4294967296,
but prints should be synchronized with a mutex here to avoid overlap
"""
import threading, _thread
# subclass with state
Mythread(2).start() # start invokes run()
# pass action in
thread = threading.Thre... | 31.678571 | 83 | 0.621195 |
a84a24163aa53482623f2284b32fdd15724ce41b | 9,399 | py | Python | src/server_dgram/server.py | kn1m/LocalizationTDOA | 203f1afdd5ae01329f218e962ccf2cf648bb26db | [
"MIT"
] | 36 | 2016-08-31T06:30:08.000Z | 2021-01-19T13:36:51.000Z | src/server_dgram/server.py | kn1m/LocalizationTDOA | 203f1afdd5ae01329f218e962ccf2cf648bb26db | [
"MIT"
] | 1 | 2018-05-31T15:07:28.000Z | 2019-05-03T10:10:14.000Z | src/server_dgram/server.py | kn1m/LocalizationTDOA | 203f1afdd5ae01329f218e962ccf2cf648bb26db | [
"MIT"
] | 17 | 2016-12-01T09:04:48.000Z | 2021-08-29T01:43:51.000Z | import logging
import socket
import numpy
import time
from cPickle import loads
from scipy import linalg
from matplotlib import pyplot
from multiprocessing import Array
from src.logic import helpers
from src.logic.parallel_process import ProcessParallel
from scipy import *
from numpy import *
| 34.428571 | 106 | 0.543249 |
a84a5b5438a8189b9258fa08dad350324920becc | 1,139 | py | Python | tests/test_comparisons.py | opensafely/covid19-vaccine-coverage-tpp-emis | 79195309b06608baffb0d3eb57f7b99bfec17fcc | [
"MIT"
] | null | null | null | tests/test_comparisons.py | opensafely/covid19-vaccine-coverage-tpp-emis | 79195309b06608baffb0d3eb57f7b99bfec17fcc | [
"MIT"
] | null | null | null | tests/test_comparisons.py | opensafely/covid19-vaccine-coverage-tpp-emis | 79195309b06608baffb0d3eb57f7b99bfec17fcc | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from pandas.testing import assert_series_equal
from analysis.comparisons import gt, gte, lt, lte
| 29.973684 | 76 | 0.437226 |
a84ae539adfe720fa4cf764a55105118bf3a75ad | 1,127 | py | Python | tests/conftest.py | Shaza-Is/Re-IDOL | 5db3d950b2d3d8dbdbcafa77803b271c01e3ada1 | [
"Apache-2.0"
] | 2 | 2021-11-16T02:23:09.000Z | 2022-03-01T07:40:35.000Z | tests/conftest.py | Shaza-Is/Re-IDOL | 5db3d950b2d3d8dbdbcafa77803b271c01e3ada1 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | Shaza-Is/Re-IDOL | 5db3d950b2d3d8dbdbcafa77803b271c01e3ada1 | [
"Apache-2.0"
] | null | null | null | import pytest
import numpy as np
import os
import pyarrow as pa
import pyarrow.feather as feather
import pandas as pd
from app.services.preprocessor import PreProcessor
from typing import List
| 22.54 | 81 | 0.668146 |