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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b3c8e618e44b6365d5b13bea7673584e02f77cc | 1,652 | py | Python | the_unsync/thesync.py | vromanuk/async_techniques | 7e1c6efcd4c81c322002eb3002d5bb929c5bc623 | [
"MIT"
] | null | null | null | the_unsync/thesync.py | vromanuk/async_techniques | 7e1c6efcd4c81c322002eb3002d5bb929c5bc623 | [
"MIT"
] | null | null | null | the_unsync/thesync.py | vromanuk/async_techniques | 7e1c6efcd4c81c322002eb3002d5bb929c5bc623 | [
"MIT"
] | null | null | null | from unsync import unsync
import asyncio
import datetime
import math
import aiohttp
import requests
if __name__ == '__main__':
main()
| 24.656716 | 99 | 0.626513 |
6b3dd632291d2f985432a2f2e2e3bd67cb5c5d46 | 19,209 | py | Python | sdk/python/pulumi_azure/desktopvirtualization/workspace.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/desktopvirtualization/workspace.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/desktopvirtualization/workspace.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.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... | 42.781737 | 221 | 0.645895 |
6b3deda0113b8eb8f9bdf6272cc95e4fe0c53714 | 2,743 | py | Python | jupyanno/sheets.py | betatim/jupyanno | 11fbb1825c8e6966260620758768e0e1fa5cecc9 | [
"Apache-2.0"
] | 23 | 2018-08-24T16:48:20.000Z | 2021-02-26T02:52:40.000Z | jupyanno/sheets.py | L3-data/jupyanno | 6f6ec37e88b4d92f00bc359e7e39157b6b7f0eb5 | [
"Apache-2.0"
] | 73 | 2018-08-13T07:56:15.000Z | 2018-10-09T13:55:20.000Z | jupyanno/sheets.py | L3-data/jupyanno | 6f6ec37e88b4d92f00bc359e7e39157b6b7f0eb5 | [
"Apache-2.0"
] | 4 | 2018-08-13T07:55:50.000Z | 2020-09-30T12:04:27.000Z | """Code for reading and writing results to google sheets"""
from bs4 import BeautifulSoup
import requests
import warnings
import json
import pandas as pd
from six.moves.urllib.parse import urlparse, parse_qs
from six.moves.urllib.request import urlopen
_CELLSET_ID = "AIzaSyC8Zo-9EbXgHfqNzDxVb_YS_IIZBWtvoJ4"
def get... | 33.45122 | 79 | 0.606635 |
6b3e1154af6f1eb866c2c34cdc822a0ff3902ab9 | 2,191 | py | Python | sorting/python/max_heap.py | zhou7rui/algorithm | 9b5500ac3d8bdfd223bf9aec55e68675f2df7c59 | [
"MIT"
] | 6 | 2017-08-31T07:13:34.000Z | 2018-09-10T08:54:43.000Z | sorting/python/max_heap.py | zhou7rui/algorithm | 9b5500ac3d8bdfd223bf9aec55e68675f2df7c59 | [
"MIT"
] | null | null | null | sorting/python/max_heap.py | zhou7rui/algorithm | 9b5500ac3d8bdfd223bf9aec55e68675f2df7c59 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
'''
98
/ \
96 84
/ \ / \
92 82 78 47
/ \ / \ / \ / \
33 ... | 24.076923 | 84 | 0.426289 |
6b3e3c2d633954d06881dc1103a976a7248201f2 | 585 | py | Python | ink2canvas/svg/Use.py | greipfrut/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | 4 | 2016-05-06T21:29:39.000Z | 2020-02-25T08:47:48.000Z | ink2canvas/svg/Use.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | ink2canvas/svg/Use.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | from ink2canvas.svg.AbstractShape import AbstractShape | 32.5 | 76 | 0.647863 |
6b3ef77f1a082e51763d4a446e010e19a72af147 | 101 | py | Python | docs/source/tutorial/code/read_csv.py | HanSooLim/DIL-Project | 069fa7e35a2e1edfff30dc2540d9b87f5db95dde | [
"MIT",
"BSD-3-Clause"
] | 2 | 2021-10-16T15:08:05.000Z | 2021-10-16T15:59:57.000Z | docs/source/tutorial/code/read_csv.py | HanSooLim/DIL-Project | 069fa7e35a2e1edfff30dc2540d9b87f5db95dde | [
"MIT",
"BSD-3-Clause"
] | 8 | 2021-10-21T04:48:12.000Z | 2021-11-07T03:09:25.000Z | docs/source/tutorial/code/read_csv.py | HanSooLim/DIL-Project | 069fa7e35a2e1edfff30dc2540d9b87f5db95dde | [
"MIT",
"BSD-3-Clause"
] | 3 | 2021-05-02T13:39:14.000Z | 2021-05-31T14:05:56.000Z | import pandas
datas = pandas.read_csv("../../Sample/example_dataset.csv", index_col=0)
print(datas)
| 20.2 | 72 | 0.742574 |
6b4010a8299e923b75856db3391db03cdf9dc135 | 641 | py | Python | app.py | rghose/lol3 | c902e61bd5d69c541b46c834a5183e4da8eec591 | [
"BSD-2-Clause"
] | null | null | null | app.py | rghose/lol3 | c902e61bd5d69c541b46c834a5183e4da8eec591 | [
"BSD-2-Clause"
] | null | null | null | app.py | rghose/lol3 | c902e61bd5d69c541b46c834a5183e4da8eec591 | [
"BSD-2-Clause"
] | null | null | null | from flask import *
app = Flask(__name__)
import botty
# ----------------------------------
# -----------------------------------
# -----------------------------------
# -----------------------------------
if __name__ == "__main__":
app.debug = True
app.run(host="0.0.0.0")
| 23.740741 | 54 | 0.483619 |
6b40618c90c089307047e8b7e28b599c38d7a399 | 451 | py | Python | config.py | metarom-quality/gooseberry | 544503c52edd360a53d09f69ea6b4a0645aa617a | [
"MIT"
] | null | null | null | config.py | metarom-quality/gooseberry | 544503c52edd360a53d09f69ea6b4a0645aa617a | [
"MIT"
] | null | null | null | config.py | metarom-quality/gooseberry | 544503c52edd360a53d09f69ea6b4a0645aa617a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
DATABASE="/home/tomate/Warehouse/syte/meta.db"
XLSDIR = "/mnt/c/Users/Natacha/Documents/TempDocs/progen/Formula/"
temp = [i for i in next(os.walk(XLSDIR))[2] if i.endswith("xlsx") or i.endswith("xls")]
flist = {}
for i in temp:
name = i.split(" ")[0].split("-")[0].split(".")[0]
... | 26.529412 | 87 | 0.627494 |
6b41d9378cb46e318f4cb6580acecc3d11ab3c3b | 1,054 | py | Python | setup.py | markostrajkov/range-requests-proxy | 74d4bfee93098854c7b9f723c03c2316e729f295 | [
"BSD-3-Clause"
] | 1 | 2016-08-14T14:12:04.000Z | 2016-08-14T14:12:04.000Z | setup.py | markostrajkov/range-requests-proxy | 74d4bfee93098854c7b9f723c03c2316e729f295 | [
"BSD-3-Clause"
] | null | null | null | setup.py | markostrajkov/range-requests-proxy | 74d4bfee93098854c7b9f723c03c2316e729f295 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
setup(
name='range-requests-proxy',
version='0.1',
description='Asynchronous HTTP proxy for HTTP Range Requests',
author='Marko Trajkov',
author_email='markostrajkov@gmail.com',
... | 26.35 | 76 | 0.665085 |
6b42790dafdbd5621ed121da922a0750203f73ba | 918 | py | Python | tests/pytorch_pfn_extras_tests/onnx/test_load_model.py | kmaehashi/pytorch-pfn-extras | 70b5db0dad8a8e342cc231e8a18c6f32ce250d1c | [
"MIT"
] | 243 | 2020-05-12T01:15:46.000Z | 2022-03-21T22:07:57.000Z | tests/pytorch_pfn_extras_tests/onnx/test_load_model.py | kmaehashi/pytorch-pfn-extras | 70b5db0dad8a8e342cc231e8a18c6f32ce250d1c | [
"MIT"
] | 495 | 2020-05-12T06:45:12.000Z | 2022-03-31T07:14:02.000Z | tests/pytorch_pfn_extras_tests/onnx/test_load_model.py | kmaehashi/pytorch-pfn-extras | 70b5db0dad8a8e342cc231e8a18c6f32ce250d1c | [
"MIT"
] | 37 | 2020-05-12T02:16:07.000Z | 2021-08-11T06:00:16.000Z | import os
import pytest
import torch
import pytorch_pfn_extras.onnx as tou
from tests.pytorch_pfn_extras_tests.onnx.test_export_testcase import Net
| 34 | 79 | 0.704793 |
6b433031281aa45b18a53118e3852e760126a4ce | 867 | py | Python | validate/v1/base.py | huzidabanzhang/Python | 7b304290e5be7db4bce253edb069a12dcbc3c998 | [
"MIT"
] | 4 | 2019-09-04T09:16:24.000Z | 2019-09-18T08:50:36.000Z | validate/v1/base.py | huzidabanzhang/Python | 7b304290e5be7db4bce253edb069a12dcbc3c998 | [
"MIT"
] | null | null | null | validate/v1/base.py | huzidabanzhang/Python | 7b304290e5be7db4bce253edb069a12dcbc3c998 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:UTF-8 -*-
'''
@Description:
@Author: Zpp
@Date: 2020-05-28 13:44:29
@LastEditors: Zpp
@LastEditTime: 2020-05-28 14:02:02
'''
params = {
#
'fields': {
'type': {
'name': '',
'type': 'int',
'between': [1, 2, 3],
'required... | 19.704545 | 34 | 0.392157 |
6b434ec1049bc3564470ff973bc2f2c30ca659c6 | 329 | py | Python | example/speech_recognition/stt_layer_slice.py | axbaretto/mxnet | 5f593885356ff6d14f5519fa18e79b944beb51cd | [
"Apache-2.0"
] | 92 | 2017-04-25T15:40:55.000Z | 2022-03-28T17:54:53.000Z | example/speech_recognition/stt_layer_slice.py | yanghaojin/BMXNet | 102f8d0ed59529bbd162c37bf07ae58ad6c4caa1 | [
"Apache-2.0"
] | 18 | 2017-05-15T05:16:41.000Z | 2019-06-14T06:02:08.000Z | example/speech_recognition/stt_layer_slice.py | yanghaojin/BMXNet | 102f8d0ed59529bbd162c37bf07ae58ad6c4caa1 | [
"Apache-2.0"
] | 39 | 2017-04-23T12:38:45.000Z | 2021-04-04T05:01:03.000Z | import mxnet as mx
| 29.909091 | 98 | 0.726444 |
6b4469c0d369d163f87c18b571da60869e4d600b | 8,000 | py | Python | api/auth.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | api/auth.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | api/auth.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | import datetime
import json
from calendar import timegm
from urllib.parse import parse_qsl
import requests
from allauth.socialaccount import models as aamodels
from requests_oauthlib import OAuth1
from rest_framework import parsers, renderers
from rest_framework import status
from rest_framework.authtoken.models impor... | 42.105263 | 101 | 0.61525 |
6b454d373a4daf57bd5eb97d08752d3322beb78a | 6,146 | py | Python | bcgs/disqus_objects.py | aeturnum/bcgs | e5ae4c9f4cdd45b47615f00581dcc3792c281ea3 | [
"MIT"
] | null | null | null | bcgs/disqus_objects.py | aeturnum/bcgs | e5ae4c9f4cdd45b47615f00581dcc3792c281ea3 | [
"MIT"
] | null | null | null | bcgs/disqus_objects.py | aeturnum/bcgs | e5ae4c9f4cdd45b47615f00581dcc3792c281ea3 | [
"MIT"
] | null | null | null | import requests
import aiohttp
from constants import API_KEY
| 36.802395 | 143 | 0.493817 |
6b46022f290a59526dcdb44e97324f9e8df677ff | 11,520 | py | Python | nvdbgeotricks.py | LtGlahn/estimat_gulstripe | 8bb93d52131bdda9846810dbd6bac7f872377859 | [
"MIT"
] | null | null | null | nvdbgeotricks.py | LtGlahn/estimat_gulstripe | 8bb93d52131bdda9846810dbd6bac7f872377859 | [
"MIT"
] | null | null | null | nvdbgeotricks.py | LtGlahn/estimat_gulstripe | 8bb93d52131bdda9846810dbd6bac7f872377859 | [
"MIT"
] | null | null | null | """
En samling hjelpefunksjoner som bruker nvdbapiv3-funksjonene til gjre nyttige ting, f.eks. lagre geografiske datasett
Disse hjelpefunksjonene forutsetter fungerende installasjon av geopandas, shapely og en del andre ting som m
installeres separat. Noen av disse bibliotekene kunne historisk av og til vre plundret... | 39.183673 | 157 | 0.615712 |
6b477719b2c91c9e3ee4ff6ba226b115ec30e5ff | 979 | py | Python | 019_CountingSundays.py | joetache4/project-euler | 82f9e25b414929d9f62d94905906ba2f57db7935 | [
"MIT"
] | null | null | null | 019_CountingSundays.py | joetache4/project-euler | 82f9e25b414929d9f62d94905906ba2f57db7935 | [
"MIT"
] | null | null | null | 019_CountingSundays.py | joetache4/project-euler | 82f9e25b414929d9f62d94905906ba2f57db7935 | [
"MIT"
] | null | null | null | """
You are given the following information, but you may prefer to do some research for yourself.
1 Jan 1900 was a Monday.
Thirty days has September,
April, June and November.
All the rest have thirty-one,
Saving February alone,
Which has twenty-eight, rain or shine.
And on leap years, twen... | 23.878049 | 109 | 0.660878 |
6b496440b1b757ff1f65cdc922e139b550fcb6ef | 473 | py | Python | setup.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | 1 | 2020-04-27T16:30:50.000Z | 2020-04-27T16:30:50.000Z | setup.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | null | null | null | setup.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | 1 | 2021-01-13T02:16:56.000Z | 2021-01-13T02:16:56.000Z | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
"""
Setup for the dbservice
"""
from setuptools import setup, find_packages
setup(
name='dbservice',
version='0.9',
description="Database service for storing meter data",
author="Sren Aagaard Mikkelsen",
author_email='smik@eng.au.dk',
url='http... | 22.52381 | 58 | 0.646934 |
6b4af341d1bd006f2df5874fa788b8866cb5c77d | 800 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The arg spec for the junos facts module.
"""
from __future__ import absolute_import, division, print_function
__metaclass__ = type
| 25.806452 | 74 | 0.60625 |
6b4c6ac7304c74c6af0453d81ea3a3dfae8d7b81 | 1,033 | py | Python | server/dbcls/api/resources/authenticate.py | ripry/umakaviewer | e3df32313219d1b9d65edb6d180b2b4799d87e25 | [
"MIT"
] | 2 | 2017-08-17T02:01:48.000Z | 2019-12-19T12:11:08.000Z | server/dbcls/api/resources/authenticate.py | ripry/umakaviewer | e3df32313219d1b9d65edb6d180b2b4799d87e25 | [
"MIT"
] | 3 | 2021-04-04T01:25:07.000Z | 2021-10-20T06:07:29.000Z | server/dbcls/api/resources/authenticate.py | ripry/umakaviewer | e3df32313219d1b9d65edb6d180b2b4799d87e25 | [
"MIT"
] | 4 | 2020-12-01T04:20:55.000Z | 2020-12-04T04:51:54.000Z | from flask_restful import Resource, reqparse
from firebase_admin import auth as firebase_auth
from dbcls.models import User
parser = reqparse.RequestParser()
parser.add_argument('token', type=str, required=True, nullable=False)
| 33.322581 | 75 | 0.653437 |
860946d6e7694a280a705683f6a6189d61f153d3 | 475 | py | Python | GetJSONData_NLPParser.py | Feiyi-Ding/2021A | f599f0a21e05964fffce3dcf2d32ef70ddc3c75d | [
"Apache-2.0"
] | null | null | null | GetJSONData_NLPParser.py | Feiyi-Ding/2021A | f599f0a21e05964fffce3dcf2d32ef70ddc3c75d | [
"Apache-2.0"
] | 2 | 2021-03-22T17:57:27.000Z | 2021-03-22T17:58:01.000Z | GetJSONData_NLPParser.py | Feiyi-Ding/2021A | f599f0a21e05964fffce3dcf2d32ef70ddc3c75d | [
"Apache-2.0"
] | 4 | 2021-03-09T16:15:30.000Z | 2021-03-17T15:04:17.000Z | #Import required modules
import requests
import json
# Get json results for the required input
InputString = "kobe is a basketball player"
headers = {
'Content-type': 'application/json',
}
data = '{"text":InputString = '+ InputString + '}'
response = requests.post('http://66.76.242.198:9888/', d... | 23.75 | 76 | 0.688421 |
86095983c39bff7a689e2233b004ba39842ac699 | 1,719 | py | Python | language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 1,199 | 2018-10-16T01:30:18.000Z | 2022-03-31T21:05:24.000Z | language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 116 | 2018-10-18T03:31:46.000Z | 2022-03-24T13:40:50.000Z | language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 303 | 2018-10-22T12:35:12.000Z | 2022-03-27T17:38:17.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | 29.135593 | 76 | 0.64107 |
860a02e12fea480e4c4b823d5c9ef02e0bf6f4a4 | 53 | py | Python | example_bots/any_to_any/__init__.py | budacom/trading-bots | 9ac362cc21ce185e7b974bf9bcc7480ff9c6b2aa | [
"MIT"
] | 21 | 2018-08-10T16:45:21.000Z | 2022-01-25T13:04:07.000Z | example_bots/any_to_any/__init__.py | rob-Hitchens/trading-bots | 16d53be0c32b45bee0520d8192629ade09727e24 | [
"MIT"
] | 6 | 2018-07-18T15:34:32.000Z | 2021-02-02T21:59:04.000Z | example_bots/any_to_any/__init__.py | rob-Hitchens/trading-bots | 16d53be0c32b45bee0520d8192629ade09727e24 | [
"MIT"
] | 10 | 2018-10-24T22:14:10.000Z | 2022-02-08T17:21:47.000Z | default_bot = 'example_bots.any_to_any.bot.AnyToAny'
| 26.5 | 52 | 0.830189 |
860a91391db83eb979d9849bfe427e0dbb8bf3eb | 1,171 | py | Python | helpers.py | owenjones/CaBot | dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc | [
"MIT"
] | 3 | 2020-03-26T11:43:40.000Z | 2021-12-27T18:26:06.000Z | helpers.py | owenjones/CaBot | dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc | [
"MIT"
] | 2 | 2021-05-14T01:31:12.000Z | 2021-08-23T16:07:44.000Z | helpers.py | owenjones/CaBot | dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc | [
"MIT"
] | 1 | 2020-04-22T19:06:43.000Z | 2020-04-22T19:06:43.000Z | from server import roles
| 20.189655 | 63 | 0.679761 |
860af185b3aec78bf051659802424a1b61b8f5ba | 6,742 | py | Python | databuilder/loader/file_system_neo4j_csv_loader.py | davcamer/amundsendatabuilder | 1bd6cd5c30413640d4c377dc3c59c283e86347eb | [
"Apache-2.0"
] | null | null | null | databuilder/loader/file_system_neo4j_csv_loader.py | davcamer/amundsendatabuilder | 1bd6cd5c30413640d4c377dc3c59c283e86347eb | [
"Apache-2.0"
] | null | null | null | databuilder/loader/file_system_neo4j_csv_loader.py | davcamer/amundsendatabuilder | 1bd6cd5c30413640d4c377dc3c59c283e86347eb | [
"Apache-2.0"
] | 1 | 2019-09-21T23:56:41.000Z | 2019-09-21T23:56:41.000Z | import csv
import logging
import os
import shutil
from csv import DictWriter # noqa: F401
from pyhocon import ConfigTree, ConfigFactory # noqa: F401
from typing import Dict, Any # noqa: F401
from databuilder.job.base_job import Job
from databuilder.loader.base_loader import Loader
from databuilder.models.neo4j_csv... | 35.671958 | 82 | 0.590478 |
860b3ffda1922298f17135c358d64932d9e08e95 | 3,015 | py | Python | sample_program_04_02_knn.py | pepsinal/python_doe_kspub | 65ae5c2d214f1a34fa242fee7d63453c81d56bfe | [
"MIT"
] | 16 | 2021-01-11T17:57:05.000Z | 2022-03-29T07:04:26.000Z | sample_program_04_02_knn.py | pepsinal/python_doe_kspub | 65ae5c2d214f1a34fa242fee7d63453c81d56bfe | [
"MIT"
] | 2 | 2021-08-12T03:18:52.000Z | 2021-08-13T06:31:55.000Z | sample_program_04_02_knn.py | pepsinal/python_doe_kspub | 65ae5c2d214f1a34fa242fee7d63453c81d56bfe | [
"MIT"
] | 14 | 2021-06-05T11:17:45.000Z | 2022-03-26T02:56:40.000Z | # -*- coding: utf-8 -*-
"""
@author: Hiromasa Kaneko
"""
import pandas as pd
from sklearn.neighbors import NearestNeighbors # k-NN
k_in_knn = 5 # k-NN k
rate_of_training_samples_inside_ad = 0.96 # AD AD
dataset = pd.read_csv('resin.csv', index_col=0, header=0)
x_prediction = pd.read_csv('resin_predic... | 49.42623 | 121 | 0.769818 |
860b82a531bcd228b8d28c903681d9b70c4a8b49 | 2,793 | py | Python | topology.py | destinysky/nsh_sfc | 290fa49df2880527e0b7844bf3bec4d55c4945a6 | [
"Apache-2.0"
] | 2 | 2020-10-26T17:22:04.000Z | 2020-11-11T13:19:08.000Z | topology.py | destinysky/nsh_sfc | 290fa49df2880527e0b7844bf3bec4d55c4945a6 | [
"Apache-2.0"
] | null | null | null | topology.py | destinysky/nsh_sfc | 290fa49df2880527e0b7844bf3bec4d55c4945a6 | [
"Apache-2.0"
] | 3 | 2020-03-28T12:53:35.000Z | 2021-06-29T18:13:43.000Z | #!/usr/bin/python
"""
"""
from mininet.net import Mininet
from mininet.node import Controller, RemoteController, OVSKernelSwitch,UserSwitch
#OVSLegacyKernelSwitch, UserSwitch
from mininet.cli import CLI
from mininet.log import setLogLevel
from mininet.link import Link, TCLink
#conf_port=50000
conf_ip_1='10.0.0.254'... | 30.358696 | 90 | 0.617257 |
860d13de1aea5d89a236db351b3f802f70a454be | 815 | py | Python | lampara/lamp.py | gventuraagramonte/python | d96796c302f2f423a8e949f9c7d33a3bfabf8a0f | [
"MIT"
] | null | null | null | lampara/lamp.py | gventuraagramonte/python | d96796c302f2f423a8e949f9c7d33a3bfabf8a0f | [
"MIT"
] | null | null | null | lampara/lamp.py | gventuraagramonte/python | d96796c302f2f423a8e949f9c7d33a3bfabf8a0f | [
"MIT"
] | null | null | null |
#Definicion de la clase
#antes de empezar una clase se declara de la siguiente manera
| 19.404762 | 114 | 0.490798 |
860d27b54af610b3354ec914d17139eb593aede5 | 1,127 | py | Python | lib/galaxy/model/migrate/versions/0084_add_ldda_id_to_implicit_conversion_table.py | sneumann/galaxy | f6011bab5b8adbabae4986a45849bb9158ffc8bb | [
"CC-BY-3.0"
] | 1 | 2019-07-27T19:30:55.000Z | 2019-07-27T19:30:55.000Z | lib/galaxy/model/migrate/versions/0084_add_ldda_id_to_implicit_conversion_table.py | sneumann/galaxy | f6011bab5b8adbabae4986a45849bb9158ffc8bb | [
"CC-BY-3.0"
] | 4 | 2021-02-08T20:28:34.000Z | 2022-03-02T02:52:55.000Z | lib/galaxy/model/migrate/versions/0084_add_ldda_id_to_implicit_conversion_table.py | sneumann/galaxy | f6011bab5b8adbabae4986a45849bb9158ffc8bb | [
"CC-BY-3.0"
] | 1 | 2018-05-30T07:38:54.000Z | 2018-05-30T07:38:54.000Z | """
Migration script to add 'ldda_id' column to the implicitly_converted_dataset_association table.
"""
from __future__ import print_function
import logging
from sqlalchemy import (
Column,
ForeignKey,
Integer,
MetaData
)
from galaxy.model.migrate.versions.util import (
add_column,
drop_colum... | 26.833333 | 126 | 0.747116 |
860d477a0db1e737249b6ea5b90c2c542a001e37 | 102 | py | Python | ds.py | tobiichiorigami1/csp | e1f419869a0a1aa3e39aeb5888571267be5d80bd | [
"bzip2-1.0.6"
] | null | null | null | ds.py | tobiichiorigami1/csp | e1f419869a0a1aa3e39aeb5888571267be5d80bd | [
"bzip2-1.0.6"
] | null | null | null | ds.py | tobiichiorigami1/csp | e1f419869a0a1aa3e39aeb5888571267be5d80bd | [
"bzip2-1.0.6"
] | null | null | null | votes_t_shape = [3, 0, 1, 2]
for i in range(6 - 4):
votes_t_shape += [i + 4]
print(votes_t_shape)
| 20.4 | 28 | 0.617647 |
860e80203a82d7ffdb492d80f10371c72ae4d44a | 8,231 | py | Python | scripts/adam/cc100_baselines.py | TimDettmers/sched | e16735f2c2eb6a51f5cf29ead534041574034e2e | [
"MIT"
] | 1 | 2020-04-22T17:49:48.000Z | 2020-04-22T17:49:48.000Z | scripts/adam/cc100_baselines.py | TimDettmers/sched | e16735f2c2eb6a51f5cf29ead534041574034e2e | [
"MIT"
] | null | null | null | scripts/adam/cc100_baselines.py | TimDettmers/sched | e16735f2c2eb6a51f5cf29ead534041574034e2e | [
"MIT"
] | null | null | null | import numpy as np
import itertools
import gpuscheduler
import argparse
import os
import uuid
import hashlib
import glob
import math
from itertools import product
from torch.optim.lr_scheduler import OneCycleLR
from os.path import join
parser = argparse.ArgumentParser(description='Compute script.')
parser.add_argumen... | 37.756881 | 773 | 0.628721 |
860eaaee93a0cd4aceb0ebc7da1f6e2b65f05589 | 224 | py | Python | boa3_test/test_sc/event_test/EventNep5Transfer.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/event_test/EventNep5Transfer.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/event_test/EventNep5Transfer.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin import public
from boa3.builtin.contract import Nep5TransferEvent
transfer = Nep5TransferEvent
| 18.666667 | 56 | 0.785714 |
860efe37f66eefaa650bbcf92ef4ff07b3bc6d05 | 1,844 | py | Python | abtest/views.py | SchuylerGoodman/topicalguide | 7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620 | [
"PostgreSQL"
] | null | null | null | abtest/views.py | SchuylerGoodman/topicalguide | 7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620 | [
"PostgreSQL"
] | null | null | null | abtest/views.py | SchuylerGoodman/topicalguide | 7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620 | [
"PostgreSQL"
] | null | null | null | # The Topical Guide
# Copyright 2010-2011 Brigham Young University
#
# This file is part of the Topical Guide <http://nlp.cs.byu.edu/topic_browser>.
#
# The Topical Guide is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by the
# Free Soft... | 37.632653 | 79 | 0.750542 |
860f02df53bc5c8189989d03588264d399ebda12 | 2,086 | py | Python | neurodocker/reprozip/tests/test_merge.py | sulantha2006/neurodocker | d03fe865ae05fea2f7ce9a8b417717dae7bd640f | [
"Apache-2.0"
] | null | null | null | neurodocker/reprozip/tests/test_merge.py | sulantha2006/neurodocker | d03fe865ae05fea2f7ce9a8b417717dae7bd640f | [
"Apache-2.0"
] | null | null | null | neurodocker/reprozip/tests/test_merge.py | sulantha2006/neurodocker | d03fe865ae05fea2f7ce9a8b417717dae7bd640f | [
"Apache-2.0"
] | 1 | 2020-01-17T17:30:16.000Z | 2020-01-17T17:30:16.000Z | """Tests for merge.py."""
from __future__ import absolute_import, division, print_function
from glob import glob
import os
import tarfile
import tempfile
from neurodocker.docker import client
from neurodocker.reprozip.trace import ReproZipMinimizer
from neurodocker.reprozip.merge import merge_pack_files
def _creat... | 34.196721 | 78 | 0.64861 |
860f4df3a0a1148896e3af7d663a6706e11e5b27 | 2,429 | py | Python | build/step-3-kivy-almost-manylinux/scripts/redirect_html5.py | dolang/build-kivy-linux | bb3e6dce956659d94604b524aa6702e8c390e15a | [
"MIT"
] | null | null | null | build/step-3-kivy-almost-manylinux/scripts/redirect_html5.py | dolang/build-kivy-linux | bb3e6dce956659d94604b524aa6702e8c390e15a | [
"MIT"
] | null | null | null | build/step-3-kivy-almost-manylinux/scripts/redirect_html5.py | dolang/build-kivy-linux | bb3e6dce956659d94604b524aa6702e8c390e15a | [
"MIT"
] | null | null | null | """
HTML5 contexts.
:author: Dominik Lang
:license: MIT
"""
import contextlib
import io
import sys
__all__ = ['create_document', 'tag', 'as_link']
| 28.244186 | 76 | 0.573075 |
860f856dd45e64104260a9b161c8dc5f275852d1 | 1,454 | py | Python | lab/hw03-part-i_nov14.py | jzacsh/neuralnets-cmp464 | de35bbba93b87446b231bf012a8de5acc7896a04 | [
"Apache-2.0"
] | 1 | 2017-08-30T04:31:00.000Z | 2017-08-30T04:31:00.000Z | lab/hw03-part-i_nov14.py | jzacsh/neuralnets-cmp464 | de35bbba93b87446b231bf012a8de5acc7896a04 | [
"Apache-2.0"
] | 1 | 2017-10-10T23:30:05.000Z | 2017-10-16T00:32:09.000Z | lab/hw03-part-i_nov14.py | jzacsh/neuralnets-cmp464 | de35bbba93b87446b231bf012a8de5acc7896a04 | [
"Apache-2.0"
] | null | null | null | """
Jonathan Zacsh's solution to homework #3, Nov 14., Part I
"""
# Per homework instructions, following lead from matlab example by professor:
# http://comet.lehman.cuny.edu/schneider/Fall17/CMP464/Maple/PartialDerivatives1.pdf
import sys
import tensorflow as tf
import tempfile
import os
import numpy as np
os.envir... | 31.608696 | 86 | 0.681568 |
860ffd8531729695796f989eadffa27a2953a3a7 | 8,437 | py | Python | modules/experiments_bc/set_tp.py | GChrysostomou/tasc | d943de343d725b99fa1a1ad201b32a21e5970801 | [
"MIT"
] | 2 | 2021-12-27T12:46:48.000Z | 2022-03-01T11:43:41.000Z | modules/experiments_bc/set_tp.py | tbose20/D-Ref | eda6170a72838b89637df241dd5619e001f3afdb | [
"MIT"
] | null | null | null | modules/experiments_bc/set_tp.py | tbose20/D-Ref | eda6170a72838b89637df241dd5619e001f3afdb | [
"MIT"
] | 3 | 2021-11-10T15:15:02.000Z | 2022-03-01T11:44:35.000Z | import torch
import torch.nn as nn
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.metrics import *
from sklearn.metrics import precision_recall_fscore_support as prfs
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
| 34.157895 | 96 | 0.505393 |
8610097182707b2aa40abc68e79c148fa664b19d | 4,224 | py | Python | helios/tasks.py | mattmurch/helios-server | c4f5409bbf7117fc561774208c07801b9ae61ff2 | [
"Apache-2.0"
] | null | null | null | helios/tasks.py | mattmurch/helios-server | c4f5409bbf7117fc561774208c07801b9ae61ff2 | [
"Apache-2.0"
] | 2 | 2018-08-20T18:44:57.000Z | 2019-01-31T17:45:08.000Z | helios/tasks.py | mattmurch/helios-server | c4f5409bbf7117fc561774208c07801b9ae61ff2 | [
"Apache-2.0"
] | 1 | 2017-12-10T15:33:18.000Z | 2017-12-10T15:33:18.000Z | """
Celery queued tasks for Helios
2010-08-01
ben@adida.net
"""
import copy
from celery import shared_task
from celery.utils.log import get_logger
import signals
from models import CastVote, Election, Voter, VoterFile
from view_utils import render_template_raw
| 29.746479 | 111 | 0.722775 |
8611c5caf6cad3b09e4113e9f2732c41ec4305ae | 992 | py | Python | tests/conftest.py | AlanRosenthal/virtual-dealer | 5c5689172b38b122a69e5ca244497646bf9d8fa8 | [
"MIT"
] | 1 | 2020-03-23T21:03:46.000Z | 2020-03-23T21:03:46.000Z | tests/conftest.py | AlanRosenthal/virtual-dealer | 5c5689172b38b122a69e5ca244497646bf9d8fa8 | [
"MIT"
] | null | null | null | tests/conftest.py | AlanRosenthal/virtual-dealer | 5c5689172b38b122a69e5ca244497646bf9d8fa8 | [
"MIT"
] | null | null | null | """
pytest fixtures
"""
import unittest.mock as mock
import pytest
import virtual_dealer.api
| 20.244898 | 87 | 0.688508 |
8612815990d7f299a2f7af8454d7502cc4069e32 | 4,890 | py | Python | corehq/apps/fixtures/tests.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | 1 | 2017-02-10T03:14:51.000Z | 2017-02-10T03:14:51.000Z | corehq/apps/fixtures/tests.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/fixtures/tests.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | null | null | null | from xml.etree import ElementTree
from casexml.apps.case.tests.util import check_xml_line_by_line
from casexml.apps.case.xml import V2
from corehq.apps.fixtures import fixturegenerators
from corehq.apps.fixtures.models import FixtureDataItem, FixtureDataType, FixtureOwnership, FixtureTypeField, \
FixtureItemField, ... | 36.492537 | 111 | 0.537628 |
86160af095ef8d0435d3f1fd7140e93918c54b2c | 2,685 | py | Python | readthedocs/search/signals.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 10 | 2019-05-21T03:00:40.000Z | 2022-03-12T11:24:39.000Z | readthedocs/search/signals.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 12 | 2019-12-05T04:47:01.000Z | 2022-01-09T00:56:58.000Z | readthedocs/search/signals.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 5 | 2019-07-08T23:45:10.000Z | 2021-02-26T07:29:49.000Z | # -*- coding: utf-8 -*-
"""We define custom Django signals to trigger before executing searches."""
from django.db.models.signals import post_save, pre_delete
from django.dispatch import receiver
from django_elasticsearch_dsl.apps import DEDConfig
from readthedocs.projects.models import HTMLFile, Project
from readthe... | 33.987342 | 80 | 0.714339 |
86161f7e9f969066db82c2f68d6e2be07cfb7ad1 | 3,694 | py | Python | src/falconpy/_endpoint/_filevantage.py | kra-ts/falconpy | c7c4ed93cb3b56cdfd86757f573fde57e4ccf857 | [
"Unlicense"
] | null | null | null | src/falconpy/_endpoint/_filevantage.py | kra-ts/falconpy | c7c4ed93cb3b56cdfd86757f573fde57e4ccf857 | [
"Unlicense"
] | null | null | null | src/falconpy/_endpoint/_filevantage.py | kra-ts/falconpy | c7c4ed93cb3b56cdfd86757f573fde57e4ccf857 | [
"Unlicense"
] | null | null | null | """Internal API endpoint constant library.
_______ __ _______ __ __ __
| _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----.
|. 1___| _| _ | | | | _ | 1___| _| _| | <| -__|
|. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____|
|: 1 | ... | 35.180952 | 95 | 0.600704 |
86168b46a8faaf9e6d96f727abd89d459b3f8564 | 8,837 | py | Python | TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 1 | 2021-06-20T19:28:37.000Z | 2021-06-20T19:28:37.000Z | import itertools
import sys
from signal import SIGINT, default_int_handler, signal
from typing import Any, Dict, List
from pip._vendor.progress.bar import Bar, FillingCirclesBar, IncrementalBar
from pip._vendor.progress.spinner import Spinner
from pip._internal.utils.compat import WINDOWS
from pip._internal.... | 33.729008 | 88 | 0.625099 |
86169ad5486623924eba0430b7afc33561fa170a | 4,012 | py | Python | scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 8 | 2021-06-30T06:55:14.000Z | 2022-03-18T01:57:14.000Z | scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 1 | 2021-06-30T03:08:15.000Z | 2021-06-30T03:08:15.000Z | scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 2 | 2021-11-17T11:19:48.000Z | 2021-11-18T03:05:58.000Z | import typing
import numpy as np
import scripts.study_case.ID_5.matchzoo as mz
from scripts.study_case.ID_5.matchzoo.engine.base_metric import BaseMetric
from .tuner import Tuner
def tune(
params: 'mz.ParamTable',
optimizer: str = 'adam',
trainloader: mz.dataloader.DataLoader = None,
validloader: mz... | 38.951456 | 79 | 0.642323 |
861799191a7d114eaded88fe6c8c8ba1d448c7c7 | 4,392 | py | Python | libs/gym/tests/wrappers/test_pixel_observation.py | maxgold/icml22 | 49f026dd2314091639b52f5b8364a29e8000b738 | [
"MIT"
] | null | null | null | libs/gym/tests/wrappers/test_pixel_observation.py | maxgold/icml22 | 49f026dd2314091639b52f5b8364a29e8000b738 | [
"MIT"
] | null | null | null | libs/gym/tests/wrappers/test_pixel_observation.py | maxgold/icml22 | 49f026dd2314091639b52f5b8364a29e8000b738 | [
"MIT"
] | null | null | null | """Tests for the pixel observation wrapper."""
from typing import Optional
import pytest
import numpy as np
import gym
from gym import spaces
from gym.wrappers.pixel_observation import PixelObservationWrapper, STATE_KEY
| 35.136 | 85 | 0.651184 |
8618701c5bffe90f48c4363133a7c542c718e23a | 2,144 | py | Python | real_plot_fft_stft_impl.py | MuAuan/Scipy-Swan | 2d79175e8fc2ab8179ea95e1b22918c29d88b7b5 | [
"MIT"
] | null | null | null | real_plot_fft_stft_impl.py | MuAuan/Scipy-Swan | 2d79175e8fc2ab8179ea95e1b22918c29d88b7b5 | [
"MIT"
] | null | null | null | real_plot_fft_stft_impl.py | MuAuan/Scipy-Swan | 2d79175e8fc2ab8179ea95e1b22918c29d88b7b5 | [
"MIT"
] | null | null | null | import pyaudio
import wave
from scipy.fftpack import fft, ifft
import numpy as np
import matplotlib.pyplot as plt
import cv2
from scipy import signal
from swan import pycwt
CHUNK = 1024
FORMAT = pyaudio.paInt16 # int16
CHANNELS = 1 # 1;monoral 2;-
RATE = 22100 # 22.1kHz 44.1kHz
RECORD_SECONDS =... | 24.930233 | 62 | 0.620802 |
8618b81e3f7d92d3dac7ffa13548c536b939484f | 109 | py | Python | tests/pydecompile-test/baselines/events_in_code_blocks.py | gengxf0505/pxt | eca93a0e0605e68adcfbebce778cc5912a10efcf | [
"MIT"
] | 1 | 2020-04-17T01:45:18.000Z | 2020-04-17T01:45:18.000Z | tests/pydecompile-test/baselines/events_in_code_blocks.py | gengxf0505/pxt | eca93a0e0605e68adcfbebce778cc5912a10efcf | [
"MIT"
] | 3 | 2019-02-07T23:34:43.000Z | 2019-03-06T18:25:37.000Z | tests/pydecompile-test/baselines/events_in_code_blocks.py | gengxf0505/pxt | eca93a0e0605e68adcfbebce778cc5912a10efcf | [
"MIT"
] | 2 | 2019-10-29T06:56:11.000Z | 2021-05-25T10:18:12.000Z | #/ <reference path="./testBlocks/mb.ts" />
basic.forever(function_0) | 21.8 | 42 | 0.715596 |
861975d3c36c28b9ba6319750aff575b598fb65c | 4,147 | py | Python | PID/PDControl.py | l756302098/ros_practice | 4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7 | [
"MIT"
] | null | null | null | PID/PDControl.py | l756302098/ros_practice | 4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7 | [
"MIT"
] | null | null | null | PID/PDControl.py | l756302098/ros_practice | 4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import random
import numpy as np
import matplotlib.pyplot as plt
robot = Robot()
robot.set(0, 1, 0)
robot.set_noise(0.1,0.05)
x_trajectory, y_trajectory = run(robot, 0.1, 1.0)
n = len(x_trajectory)
fig, ax1 = plt.subplots(1, 1, figsize=(8, 8))
ax1... | 17.875 | 85 | 0.628647 |
861a029a9ec9483f45fb602ca0d783eedc1d7f90 | 161 | py | Python | torchvision/datasets/samplers/__init__.py | yoshitomo-matsubara/vision | 03d11338f3faf94a0749549912593ddb8b70be17 | [
"BSD-3-Clause"
] | 12,063 | 2017-01-18T19:58:38.000Z | 2022-03-31T23:08:44.000Z | torchvision/datasets/samplers/__init__.py | yoshitomo-matsubara/vision | 03d11338f3faf94a0749549912593ddb8b70be17 | [
"BSD-3-Clause"
] | 4,673 | 2017-01-18T21:30:03.000Z | 2022-03-31T20:58:33.000Z | torchvision/datasets/samplers/__init__.py | yoshitomo-matsubara/vision | 03d11338f3faf94a0749549912593ddb8b70be17 | [
"BSD-3-Clause"
] | 7,132 | 2017-01-18T18:12:23.000Z | 2022-03-31T21:19:10.000Z | from .clip_sampler import DistributedSampler, UniformClipSampler, RandomClipSampler
__all__ = ("DistributedSampler", "UniformClipSampler", "RandomClipSampler")
| 40.25 | 83 | 0.838509 |
861a31bb111c594972aeb70c462a963cf1fefdb9 | 5,215 | py | Python | pysnmp/HH3C-PPPOE-SERVER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HH3C-PPPOE-SERVER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HH3C-PPPOE-SERVER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HH3C-PPPOE-SERVER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-PPPOE-SERVER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:16:17 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 115.888889 | 892 | 0.797124 |
861a472cf4ef7f924185a3fe1ea6569338502257 | 2,041 | py | Python | Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py | suhaili99/python-share | 6c65faaff722b8bd9e381650a6b277f56d1ae4c9 | [
"MIT"
] | 4 | 2019-10-21T11:00:55.000Z | 2020-10-22T16:11:21.000Z | Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py | suhaili99/python-share | 6c65faaff722b8bd9e381650a6b277f56d1ae4c9 | [
"MIT"
] | 1 | 2019-12-17T05:20:26.000Z | 2019-12-17T05:20:26.000Z | Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py | suhaili99/python-share | 6c65faaff722b8bd9e381650a6b277f56d1ae4c9 | [
"MIT"
] | 9 | 2019-10-20T05:48:03.000Z | 2020-11-17T14:08:14.000Z | name = input("masukkan nama pembeli = ")
alamat= input("Alamat = ")
NoTelp = input("No Telp = ")
print("\n")
print("=================INFORMASI HARGA MOBIL DEALER JAYA ABADI===============")
print("Pilih Jenis Mobil :")
print("\t 1.Daihatsu ")
print("\t 2.Honda ")
print("\t 3.Toyota ")
print("")
pilihan = int(input("Pil... | 34.59322 | 80 | 0.529152 |
861c79331c252b7937573a42f8e033c57c978cd9 | 6,138 | py | Python | oneflow/python/test/ops/test_l1loss.py | wanghongsheng01/framework_enflame | debf613e05e3f5ea8084c3e79b60d0dd9e349526 | [
"Apache-2.0"
] | 2 | 2021-09-10T00:19:49.000Z | 2021-11-16T11:27:20.000Z | oneflow/python/test/ops/test_l1loss.py | duijiudanggecl/oneflow | d2096ae14cf847509394a3b717021e2bd1d72f62 | [
"Apache-2.0"
] | 1 | 2021-06-16T08:37:50.000Z | 2021-06-16T08:37:50.000Z | oneflow/python/test/ops/test_l1loss.py | duijiudanggecl/oneflow | d2096ae14cf847509394a3b717021e2bd1d72f62 | [
"Apache-2.0"
] | 1 | 2021-11-10T07:57:01.000Z | 2021-11-10T07:57:01.000Z | """
Copyright 2020 The OneFlow 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 law or agr... | 33.540984 | 99 | 0.665689 |
861cc7ffb7999a7f4d6f545192eee4e0b87dd394 | 869 | py | Python | tests/test_schema.py | Dog-Egg/dida | 17fd8dce0fe198e65effb48816a2339802234974 | [
"MIT"
] | null | null | null | tests/test_schema.py | Dog-Egg/dida | 17fd8dce0fe198e65effb48816a2339802234974 | [
"MIT"
] | 3 | 2021-06-15T19:10:55.000Z | 2022-02-27T10:30:28.000Z | tests/test_schema.py | Dog-Egg/dida | 17fd8dce0fe198e65effb48816a2339802234974 | [
"MIT"
] | null | null | null | import unittest
import datetime
from dida import schemas, triggers
from marshmallow import ValidationError
| 36.208333 | 107 | 0.700806 |
861cdcc494cb3bd3e797fd81fd6a76984fde4f26 | 26,883 | py | Python | apps/content/views.py | Sunbird-Ed/evolve-api | 371b39422839762e32401340456c13858cb8e1e9 | [
"MIT"
] | 1 | 2019-02-27T15:26:11.000Z | 2019-02-27T15:26:11.000Z | apps/content/views.py | Sunbird-Ed/evolve-api | 371b39422839762e32401340456c13858cb8e1e9 | [
"MIT"
] | 9 | 2019-12-16T10:09:46.000Z | 2022-03-11T23:42:12.000Z | apps/content/views.py | Sunbird-Ed/evolve-api | 371b39422839762e32401340456c13858cb8e1e9 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import status
from rest_framework.generics import (
ListAPIView,
ListCreateAPIView,
ListAPIView,
RetrieveUpdateAPIView,)
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from rest_framework.decorat... | 47.246046 | 386 | 0.654986 |
861d74d55db578d9eef6b283f432f055362e839e | 975 | py | Python | examples/given_data.py | GuoJingyao/cornac | e7529990ec1dfa586c4af3de98e4b3e00a786578 | [
"Apache-2.0"
] | null | null | null | examples/given_data.py | GuoJingyao/cornac | e7529990ec1dfa586c4af3de98e4b3e00a786578 | [
"Apache-2.0"
] | null | null | null | examples/given_data.py | GuoJingyao/cornac | e7529990ec1dfa586c4af3de98e4b3e00a786578 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Example to train and evaluate a model with given data
@author: Quoc-Tuan Truong <tuantq.vnu@gmail.com>
"""
from cornac.data import Reader
from cornac.eval_methods import BaseMethod
from cornac.models import MF
from cornac.metrics import MAE, RMSE
from cornac.utils import cache
# Download... | 33.62069 | 100 | 0.73641 |
861eccc43552e108c8eb7cab4531e62034debd26 | 5,446 | py | Python | taming/data/ade20k.py | ZlodeiBaal/taming | b6c0f896992881f154bdfd910a8163ee754df83a | [
"MIT"
] | null | null | null | taming/data/ade20k.py | ZlodeiBaal/taming | b6c0f896992881f154bdfd910a8163ee754df83a | [
"MIT"
] | null | null | null | taming/data/ade20k.py | ZlodeiBaal/taming | b6c0f896992881f154bdfd910a8163ee754df83a | [
"MIT"
] | 1 | 2022-01-31T15:55:24.000Z | 2022-01-31T15:55:24.000Z | import os
import numpy as np
import cv2
import albumentations
from PIL import Image
from torch.utils.data import Dataset
from taming.data.sflckr import SegmentationBase # for examples included in repo
# With semantic map and scene label
if __name__ == "__main__":
dset = ADE20kValidation()
ex = dset[0]
... | 42.546875 | 107 | 0.58722 |
861f13a8761f8f22a82c122d42219d7e56bf820e | 14,650 | py | Python | templates/federated_reporting/distributed_cleanup.py | olehermanse/masterfiles | bcee0a8c0a925e885ba47ba3300b96c722b91f02 | [
"MIT"
] | 44 | 2015-01-12T05:26:46.000Z | 2021-08-24T02:47:19.000Z | templates/federated_reporting/distributed_cleanup.py | olehermanse/masterfiles | bcee0a8c0a925e885ba47ba3300b96c722b91f02 | [
"MIT"
] | 1,104 | 2015-01-02T08:17:57.000Z | 2022-03-31T15:58:37.000Z | templates/federated_reporting/distributed_cleanup.py | Lex-2008/masterfiles | b43c44af2c4e544ff7d044e76580ced2168ce5e0 | [
"MIT"
] | 79 | 2015-01-05T19:13:03.000Z | 2021-08-25T07:57:31.000Z | #!/usr/bin/env python3
"""
fr_distributed_cleanup.py - a script to remove hosts which have migrated to
other feeder hubs. To be run on Federated Reporting superhub
after each import of feeder data.
First, to setup, enable fr_distributed_cleanup by setting a class in augments (def.json).
This enables policy in cfe_inte... | 35.386473 | 110 | 0.597543 |
861f5e4cfdc98de2a394371bb5b02dd397322979 | 203 | py | Python | Python/Fibonacci.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 1 | 2018-12-19T11:42:09.000Z | 2018-12-19T11:42:09.000Z | Python/Fibonacci.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 1 | 2019-10-25T09:19:21.000Z | 2019-10-25T09:19:21.000Z | Python/Fibonacci.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 7 | 2019-09-11T07:17:32.000Z | 2019-09-25T12:23:52.000Z | #Doesn't work.
import time
fibonacci = [1, 1]
n = int(input())
while len(fibonacci) < n:
fibonacci.append(fibonacci[-1] + fibonacci[-2])
for i in range(n):
print(fibonacci[i], end=' ')
| 20.3 | 52 | 0.605911 |
862043a9de9b5c9db7b311f570877aeebbcfcd84 | 59 | py | Python | setup.py | kreyoo/csgo-inv-shuffle | 6392dd1eef1ca87ec25c9cf4845af3f8df3594a5 | [
"MIT"
] | null | null | null | setup.py | kreyoo/csgo-inv-shuffle | 6392dd1eef1ca87ec25c9cf4845af3f8df3594a5 | [
"MIT"
] | 5 | 2021-12-22T19:25:51.000Z | 2022-03-28T19:27:34.000Z | setup.py | kreyoo/csgo-inv-shuffle | 6392dd1eef1ca87ec25c9cf4845af3f8df3594a5 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name="csgoinvshuffle")
| 14.75 | 28 | 0.813559 |
86205fe9ef8a0c045201301f18357ead5b9c92fc | 6,081 | py | Python | py/_log/log.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2018-03-14T06:45:40.000Z | 2018-06-08T07:46:02.000Z | py/_log/log.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2019-03-23T08:23:21.000Z | 2019-03-23T08:23:21.000Z | py/_log/log.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2017-11-07T18:05:19.000Z | 2017-11-14T18:06:55.000Z | """
basic logging functionality based on a producer/consumer scheme.
XXX implement this API: (maybe put it into slogger.py?)
log = Logger(
info=py.log.STDOUT,
debug=py.log.STDOUT,
command=None)
log.info("hello", "world")
log... | 32.518717 | 79 | 0.587568 |
86207cdb07326bc532b6b5b79d11a692b3f498c4 | 1,696 | py | Python | test/test_all_contacts.py | Sergggio/python_training | 6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4 | [
"Apache-2.0"
] | null | null | null | test/test_all_contacts.py | Sergggio/python_training | 6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4 | [
"Apache-2.0"
] | null | null | null | test/test_all_contacts.py | Sergggio/python_training | 6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4 | [
"Apache-2.0"
] | null | null | null | import re
from model.contact import Contact
| 38.545455 | 94 | 0.635024 |
8621222cce83ccae2b5fe5d557b5c9ece5f258f8 | 604 | py | Python | samples/abp/test_graphics.py | jproudlo/PyModel | 2ab0e2cf821807206725adaa425409b0c28929b7 | [
"BSD-3-Clause"
] | 61 | 2015-01-29T16:18:51.000Z | 2021-09-28T10:14:02.000Z | samples/abp/test_graphics.py | vikstr/PyModel | 4fff616fe0fd8342c91a42d9db5d4097a179dff8 | [
"BSD-3-Clause"
] | 2 | 2015-02-04T11:57:53.000Z | 2021-07-18T20:59:55.000Z | samples/abp/test_graphics.py | vikstr/PyModel | 4fff616fe0fd8342c91a42d9db5d4097a179dff8 | [
"BSD-3-Clause"
] | 34 | 2015-02-04T12:00:29.000Z | 2022-03-14T07:41:25.000Z | """
ABP analyzer and graphics tests
"""
cases = [
('Run Pymodel Graphics to generate dot file from FSM model, no need use pma',
'pmg ABP'),
('Generate SVG file from dot',
'dotsvg ABP'),
# Now display ABP.dot in browser
('Run PyModel Analyzer to generate FSM from original FSM, should be the... | 24.16 | 82 | 0.653974 |
86226920fab3327506a58d2f239e976d2e4d87d4 | 634 | py | Python | games/migrations/0002_auto_20201026_1221.py | IceArrow256/game-list | 5f06e0ff80023acdc0290a9a8f814f7c93b45e0e | [
"Unlicense"
] | 3 | 2020-10-19T12:33:37.000Z | 2020-10-21T05:28:35.000Z | games/migrations/0002_auto_20201026_1221.py | IceArrow256/gamelist | 5f06e0ff80023acdc0290a9a8f814f7c93b45e0e | [
"Unlicense"
] | null | null | null | games/migrations/0002_auto_20201026_1221.py | IceArrow256/gamelist | 5f06e0ff80023acdc0290a9a8f814f7c93b45e0e | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-26 12:21
from django.db import migrations, models
import django.db.models.deletion
| 25.36 | 111 | 0.600946 |
862625f0bd5d6882a14a812018126e427778e14a | 11,603 | py | Python | build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | """ PackageTools - A set of tools to aid working with packages.
Copyright (c) 1998-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2015, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All Rights Re... | 35.375 | 82 | 0.613031 |
8626687151185e3140516d592a31a3534739d928 | 72,182 | py | Python | Lib/test/test_urllib.py | Kshitijkrishnadas/haribol | ca45e633baaabaad3bb923f5633340ccf88d996c | [
"bzip2-1.0.6"
] | 4 | 2020-08-06T04:39:33.000Z | 2020-12-01T08:35:09.000Z | Lib/test/test_urllib.py | Kshitijkrishnadas/haribol | ca45e633baaabaad3bb923f5633340ccf88d996c | [
"bzip2-1.0.6"
] | 6 | 2020-07-22T01:19:01.000Z | 2021-04-25T15:03:35.000Z | Lib/test/test_urllib.py | Kshitijkrishnadas/haribol | ca45e633baaabaad3bb923f5633340ccf88d996c | [
"bzip2-1.0.6"
] | 2 | 2020-12-02T03:52:33.000Z | 2021-01-20T01:36:09.000Z | """Regression tests for what was in Python 2's "urllib" module"""
import urllib.parse
import urllib.request
import urllib.error
import http.client
import email.message
import io
import unittest
from unittest.mock import patch
from test import support
import os
try:
import ssl
except ImportError:
ssl = None
imp... | 41.796178 | 108 | 0.589759 |
86273fb9e1a631cb61fc755f591bccb65bcc2063 | 553 | py | Python | gapipy/resources/tour/transport.py | wmak/gapipy | b6849606d4f6af24b9f871f65e87aaf0d0c013cc | [
"MIT"
] | null | null | null | gapipy/resources/tour/transport.py | wmak/gapipy | b6849606d4f6af24b9f871f65e87aaf0d0c013cc | [
"MIT"
] | null | null | null | gapipy/resources/tour/transport.py | wmak/gapipy | b6849606d4f6af24b9f871f65e87aaf0d0c013cc | [
"MIT"
] | null | null | null | # Python 2 and 3
from __future__ import unicode_literals
from ...models import Address, SeasonalPriceBand
from ..base import Product
| 27.65 | 87 | 0.703436 |
8627cb215475c4cdba11abae1ef96d79eaf6f75a | 440 | py | Python | modules/dare.py | VeNoM-hubs/nyx | 1d76b3ad50add2e71e70fac40699e0cb513b084e | [
"MIT"
] | null | null | null | modules/dare.py | VeNoM-hubs/nyx | 1d76b3ad50add2e71e70fac40699e0cb513b084e | [
"MIT"
] | 3 | 2020-10-16T16:23:02.000Z | 2021-09-08T02:33:38.000Z | modules/dare.py | VeNoM-hubs/nyx | 1d76b3ad50add2e71e70fac40699e0cb513b084e | [
"MIT"
] | 5 | 2020-10-14T04:03:27.000Z | 2020-11-24T04:10:03.000Z | from discord.ext import commands
import json
import random
with open("assets/json/questions.json") as data:
data = json.load(data)
dares = data["dares"]
| 19.130435 | 48 | 0.659091 |
8627e459bffff8a71e23af3dc3f940f880264aa8 | 65 | py | Python | scripts/apic.py | nicmatth/APIC-EM-HelloWorldv3 | c0645e6decf57dbd87c5a239b6fce36f3dcbef41 | [
"Apache-2.0"
] | null | null | null | scripts/apic.py | nicmatth/APIC-EM-HelloWorldv3 | c0645e6decf57dbd87c5a239b6fce36f3dcbef41 | [
"Apache-2.0"
] | null | null | null | scripts/apic.py | nicmatth/APIC-EM-HelloWorldv3 | c0645e6decf57dbd87c5a239b6fce36f3dcbef41 | [
"Apache-2.0"
] | null | null | null | APIC_IP="sandboxapic.cisco.com"
APIC_PORT="443"
GROUP='group-xx'
| 16.25 | 31 | 0.769231 |
8627f95ead1f5387af07178d55a37d9519bc58b3 | 1,205 | py | Python | stella/test/external_func.py | squisher/stella | d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9 | [
"Apache-2.0"
] | 11 | 2015-08-03T17:37:46.000Z | 2021-05-26T07:29:36.000Z | stella/test/external_func.py | squisher/stella | d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9 | [
"Apache-2.0"
] | 1 | 2016-09-17T01:46:13.000Z | 2016-09-17T01:46:13.000Z | stella/test/external_func.py | squisher/stella | d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9 | [
"Apache-2.0"
] | 3 | 2016-05-21T19:17:16.000Z | 2019-05-10T17:35:37.000Z | # Copyright 2013-2015 David Mohr
#
# 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 writi... | 24.591837 | 78 | 0.692946 |
862895e0beee8139d3bebfdbda1b874ae1ecc23b | 18,880 | py | Python | szh_objects.py | ipqhjjybj/bitcoin_trend_strategy | 0c85055558591574a4171abd68142ebbeb502958 | [
"MIT"
] | 4 | 2019-10-07T13:24:35.000Z | 2020-12-03T19:03:15.000Z | szh_objects.py | ipqhjjybj/bitcoin_trend_strategy | 0c85055558591574a4171abd68142ebbeb502958 | [
"MIT"
] | 1 | 2019-10-08T07:11:30.000Z | 2019-10-08T07:11:30.000Z | szh_objects.py | ipqhjjybj/bitcoin_trend_strategy | 0c85055558591574a4171abd68142ebbeb502958 | [
"MIT"
] | 2 | 2019-12-15T03:50:57.000Z | 2021-05-25T15:44:05.000Z | # encoding: utf-8
import sys
from market_maker import OrderManager
from settings import *
import os
from pymongo import MongoClient, ASCENDING
from pymongo.errors import ConnectionFailure
from datetime import datetime , timedelta
import numpy as np
################################################################... | 33.895871 | 131 | 0.476536 |
8628a8ccf18c32191b9cace42141414df8e8de89 | 7,864 | py | Python | CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/pylint/pyreverse/writer.py | ishtjot/susereumutep | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | [
"Apache-2.0"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/pylint/pyreverse/writer.py | ishtjot/susereumutep | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | [
"Apache-2.0"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/pylint/pyreverse/writer.py | ishtjot/susereumutep | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | [
"Apache-2.0"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2008-2013 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either ver... | 39.32 | 82 | 0.594863 |
86291f58eceea662a0595f262f1d06df3c3cd46d | 1,070 | py | Python | graphql-ml-serving/backend/mutations.py | philippe-heitzmann/python-apps | 1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a | [
"MIT"
] | 13 | 2021-05-23T15:47:24.000Z | 2022-03-24T16:22:14.000Z | graphql-ml-serving/backend/mutations.py | philippe-heitzmann/python-apps | 1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a | [
"MIT"
] | 4 | 2021-11-16T20:44:55.000Z | 2022-01-13T19:13:38.000Z | graphql-ml-serving/backend/mutations.py | philippe-heitzmann/python-apps | 1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a | [
"MIT"
] | 11 | 2021-01-31T06:18:10.000Z | 2021-11-21T00:02:05.000Z | import logging
from ariadne import MutationType, convert_kwargs_to_snake_case
from config import clients, messages, queue
mutation = MutationType()
| 32.424242 | 64 | 0.673832 |
8629a20e8661d77754338b9cfeef38848a59f1c8 | 18,336 | py | Python | hc/api/transports.py | MaxwellDPS/healthchecks | 3730c67c803e707ae51b01bacf2929bd053ee22f | [
"BSD-3-Clause"
] | 1 | 2020-06-08T12:22:51.000Z | 2020-06-08T12:22:51.000Z | hc/api/transports.py | pathcl/healthchecks | ffc45f0c74694d06679aefe3b92a0b0778473ca7 | [
"BSD-3-Clause"
] | 5 | 2021-03-19T11:20:11.000Z | 2021-09-22T19:36:18.000Z | hc/api/transports.py | MaxwellDPS/healthchecks | 3730c67c803e707ae51b01bacf2929bd053ee22f | [
"BSD-3-Clause"
] | null | null | null | import os
from django.conf import settings
from django.template.loader import render_to_string
from django.utils import timezone
import json
import requests
from urllib.parse import quote, urlencode
from hc.accounts.models import Profile
from hc.lib import emails
from hc.lib.string import replace
try:
import app... | 30.816807 | 88 | 0.588405 |
8629c195c4f2a076441e398a8eff9a8680863488 | 9,419 | py | Python | graviti/portex/builder.py | Graviti-AI/graviti-python-sdk | d2faf86b4718416503b965f6057b31015417446f | [
"MIT"
] | 12 | 2022-01-26T06:51:02.000Z | 2022-03-22T21:28:35.000Z | graviti/portex/builder.py | Graviti-AI/graviti-python-sdk | d2faf86b4718416503b965f6057b31015417446f | [
"MIT"
] | 51 | 2022-02-22T07:19:34.000Z | 2022-03-31T11:39:51.000Z | graviti/portex/builder.py | Graviti-AI/graviti-python-sdk | d2faf86b4718416503b965f6057b31015417446f | [
"MIT"
] | 5 | 2022-01-26T06:51:49.000Z | 2022-03-08T03:41:11.000Z | #!/usr/bin/env python3
#
# Copyright 2022 Graviti. Licensed under MIT License.
#
"""Portex type builder related classes."""
from hashlib import md5
from pathlib import Path
from shutil import rmtree
from subprocess import PIPE, CalledProcessError, run
from tempfile import gettempdir
from typing import TYPE_CHECKING, ... | 29.996815 | 93 | 0.62013 |
862a6e4ef7c112a1f58f960d0cfe8a4298a64c51 | 3,184 | py | Python | dffml/operation/mapping.py | SGeetansh/dffml | 04647bdcadef2f7e7b59cdd8ac1e89f17ef1095b | [
"MIT"
] | 171 | 2019-03-08T19:02:06.000Z | 2022-03-29T16:17:23.000Z | dffml/operation/mapping.py | NikhilBartwal/dffml | 16180144f388924d9e5840c4aa80d08970af5e60 | [
"MIT"
] | 1,158 | 2019-03-08T19:07:50.000Z | 2022-03-25T08:28:27.000Z | dffml/operation/mapping.py | NikhilBartwal/dffml | 16180144f388924d9e5840c4aa80d08970af5e60 | [
"MIT"
] | 183 | 2019-03-10T02:40:56.000Z | 2022-03-27T18:51:26.000Z | from typing import Dict, List, Any
from ..df.types import Definition
from ..df.base import op
from ..util.data import traverse_get
MAPPING = Definition(name="mapping", primitive="map")
MAPPING_TRAVERSE = Definition(name="mapping_traverse", primitive="List[str]")
MAPPING_KEY = Definition(name="key", primitive="str")
M... | 26.533333 | 89 | 0.557161 |
862ab8872e3c569f3400e44a0e697886a1c4335b | 13,859 | py | Python | anchore_engine/services/policy_engine/__init__.py | Vijay-P/anchore-engine | 660a0bf10c56d16f894919209c51ec7a12081e9b | [
"Apache-2.0"
] | null | null | null | anchore_engine/services/policy_engine/__init__.py | Vijay-P/anchore-engine | 660a0bf10c56d16f894919209c51ec7a12081e9b | [
"Apache-2.0"
] | null | null | null | anchore_engine/services/policy_engine/__init__.py | Vijay-P/anchore-engine | 660a0bf10c56d16f894919209c51ec7a12081e9b | [
"Apache-2.0"
] | null | null | null | import time
import sys
import pkg_resources
import os
import retrying
from sqlalchemy.exc import IntegrityError
# anchore modules
import anchore_engine.clients.services.common
import anchore_engine.subsys.servicestatus
import anchore_engine.subsys.metrics
from anchore_engine.subsys import logger
from anchore_engine.c... | 32.91924 | 126 | 0.637925 |
862c0ef5874a647cec05d7913d882ea14b577a42 | 1,767 | py | Python | juriscraper/oral_args/united_states/federal_appellate/scotus.py | EvandoBlanco/juriscraper | 3d16af258620d4ba1b4827f66ef69e8a2c5a0484 | [
"BSD-2-Clause"
] | 228 | 2015-01-23T04:41:39.000Z | 2022-03-30T09:52:20.000Z | juriscraper/oral_args/united_states/federal_appellate/scotus.py | EvandoBlanco/juriscraper | 3d16af258620d4ba1b4827f66ef69e8a2c5a0484 | [
"BSD-2-Clause"
] | 331 | 2015-01-05T18:53:40.000Z | 2022-03-29T23:43:30.000Z | juriscraper/oral_args/united_states/federal_appellate/scotus.py | EvandoBlanco/juriscraper | 3d16af258620d4ba1b4827f66ef69e8a2c5a0484 | [
"BSD-2-Clause"
] | 84 | 2015-01-03T01:19:21.000Z | 2022-03-01T08:09:32.000Z | """Scraper for Supreme Court of U.S.
CourtID: scotus
Court Short Name: scotus
History:
- 2014-07-20 - Created by Andrei Chelaru, reviewed by MLR
- 2017-10-09 - Updated by MLR.
"""
from datetime import datetime
from juriscraper.OralArgumentSite import OralArgumentSite
| 31 | 107 | 0.611771 |
862c27d164efa5a02f7a2714b410e87587a9e318 | 26,357 | py | Python | code/main.py | pengzhansun/CF-CAR | 2e497a4da0bcc80bb327ee041f1aa0107f53bc3f | [
"MIT"
] | 8 | 2022-03-19T06:53:43.000Z | 2022-03-30T06:37:48.000Z | code/main.py | pengzhansun/CF-CAR | 2e497a4da0bcc80bb327ee041f1aa0107f53bc3f | [
"MIT"
] | 1 | 2022-03-22T12:03:23.000Z | 2022-03-23T02:40:52.000Z | code/main.py | pengzhansun/CF-CAR | 2e497a4da0bcc80bb327ee041f1aa0107f53bc3f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import argparse
import os
import shutil
import time
import numpy as np
import random
from collections import OrderedDict
import torch
import torch.backends.cudnn as cudnn
from callbacks import AverageMeter
from data_utils.causal_data_loader_frames import VideoFolder
from utils impo... | 45.679376 | 133 | 0.624009 |
862c8c299735f25fc3f48ddc79dfdcc178dd4e54 | 606 | py | Python | api/application/__init__.py | 114000/webapp-boilerplate | 0550396694b4f009e5d862b0098bf7d1f61a4a40 | [
"MIT"
] | null | null | null | api/application/__init__.py | 114000/webapp-boilerplate | 0550396694b4f009e5d862b0098bf7d1f61a4a40 | [
"MIT"
] | null | null | null | api/application/__init__.py | 114000/webapp-boilerplate | 0550396694b4f009e5d862b0098bf7d1f61a4a40 | [
"MIT"
] | 1 | 2021-06-10T02:08:30.000Z | 2021-06-10T02:08:30.000Z | # encoding: utf-8
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS
import logging
app = Flask(__name__)
CORS(app, resources={r"/*": {"origins": "*"}})
app.config.from_object('config.current')
db = SQLAlchemy(app)
logger = logging.getLogger(__name__)
log... | 16.833333 | 47 | 0.729373 |
862cf0dcbc5e00c994d2c00c5e16de0409816e8b | 1,004 | py | Python | Betsy/Betsy/modules/get_illumina_control.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 9 | 2017-01-13T02:38:41.000Z | 2021-04-08T00:44:39.000Z | Betsy/Betsy/modules/get_illumina_control.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | null | null | null | Betsy/Betsy/modules/get_illumina_control.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 4 | 2017-01-05T16:25:25.000Z | 2019-12-12T20:07:38.000Z | from Module import AbstractModule
| 29.529412 | 76 | 0.645418 |
862dc531f725b524bb6846cb090205fc7468f382 | 1,166 | py | Python | src/backup/template/PositionalArgumentTemplate.py | ytyaru0/Python.TemplateFileMaker.20180314204216 | 4849f982acea5d86b711c5dec4cc046016ab1031 | [
"CC0-1.0"
] | null | null | null | src/backup/template/PositionalArgumentTemplate.py | ytyaru0/Python.TemplateFileMaker.20180314204216 | 4849f982acea5d86b711c5dec4cc046016ab1031 | [
"CC0-1.0"
] | null | null | null | src/backup/template/PositionalArgumentTemplate.py | ytyaru0/Python.TemplateFileMaker.20180314204216 | 4849f982acea5d86b711c5dec4cc046016ab1031 | [
"CC0-1.0"
] | null | null | null | from string import Template
import re
if __name__ == '__main__':
template_str = '${0} is Aug.'
t = PositionalArgumentTemplate(template_str)
print(template_str)
print(dir(t))
print(t.delimiter)
print(t.idpattern)
print(type(t.idpattern))
print(t.flags)
print(t.pattern)
print(t.s... | 31.513514 | 73 | 0.587479 |
862e0a0793ac26ff1693be29a952ce4f785121be | 1,020 | py | Python | cla-backend/cla/tests/unit/test_company.py | kdhaigud/easycla | f913f8dbf658acf4711b601f9312ca5663a4efe8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | cla-backend/cla/tests/unit/test_company.py | kdhaigud/easycla | f913f8dbf658acf4711b601f9312ca5663a4efe8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | cla-backend/cla/tests/unit/test_company.py | kdhaigud/easycla | f913f8dbf658acf4711b601f9312ca5663a4efe8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | # Copyright The Linux Foundation and each contributor to CommunityBridge.
# SPDX-License-Identifier: MIT
import json
import os
import requests
import uuid
import hug
import pytest
from falcon import HTTP_200, HTTP_409
import cla
from cla import routes
ID_TOKEN = os.environ.get('ID_TOKEN')
API_URL = os.environ.get('... | 23.72093 | 73 | 0.673529 |
862fb7f41889fb9ebdc1d283480d889b7dbfd294 | 3,144 | py | Python | py/WatchDialog.py | mathematicalmichael/SpringNodes | 3ff4034b6e57ee6efa55c963e1819f3d30a2c4ab | [
"MIT"
] | 51 | 2015-09-25T09:30:57.000Z | 2022-01-19T14:16:44.000Z | py/WatchDialog.py | sabeelcoder/SpringNodes | e21a24965474d54369e74d23c06f8c42a7b926b5 | [
"MIT"
] | 66 | 2015-09-30T02:43:32.000Z | 2022-03-31T02:26:52.000Z | py/WatchDialog.py | sabeelcoder/SpringNodes | e21a24965474d54369e74d23c06f8c42a7b926b5 | [
"MIT"
] | 48 | 2015-11-19T01:34:47.000Z | 2022-02-25T17:26:48.000Z | # Copyright(c) 2017, Dimitar Venkov
# @5devene, dimitar.ven@gmail.com
# www.badmonkeys.net
import clr
clr.AddReference('System.Windows.Forms')
clr.AddReference('System.Drawing')
from System.Drawing import Point, Color, Font
from System.Windows.Forms import *
from cStringIO import StringIO
str_file = StringIO()
size1... | 27.578947 | 79 | 0.688613 |
8630212a84fb76678a871b47fba5eab501615806 | 1,658 | py | Python | 292-nim-game.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | 292-nim-game.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | 292-nim-game.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | """
Question:
Nim Game My Submissions Question
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the winner. You will take the first turn to remove the stones.
Bot... | 36.043478 | 263 | 0.700844 |
863032b8210dd9655600e6a9f42f0fb08b0f6d53 | 370 | py | Python | script_tests/maf_extract_ranges_indexed_tests.py | lldelisle/bx-python | 19ab41e0905221e3fcaaed4b74faf2d7cda0d15a | [
"MIT"
] | 122 | 2015-07-01T12:00:22.000Z | 2022-03-02T09:27:35.000Z | script_tests/maf_extract_ranges_indexed_tests.py | lldelisle/bx-python | 19ab41e0905221e3fcaaed4b74faf2d7cda0d15a | [
"MIT"
] | 64 | 2015-11-06T21:03:18.000Z | 2022-03-24T00:55:27.000Z | script_tests/maf_extract_ranges_indexed_tests.py | lldelisle/bx-python | 19ab41e0905221e3fcaaed4b74faf2d7cda0d15a | [
"MIT"
] | 60 | 2015-10-05T19:19:36.000Z | 2021-11-19T20:53:54.000Z | import unittest
import base
| 37 | 116 | 0.775676 |
8630b3c80464d13f544a914873b82ed141f94bf1 | 9,098 | py | Python | qstklearn/1knn.py | elxavicio/QSTK | 4981506c37227a72404229d5e1e0887f797a5d57 | [
"BSD-3-Clause"
] | 339 | 2015-01-01T10:06:49.000Z | 2022-03-23T23:32:24.000Z | QSTK/qstklearn/1knn.py | jenniyanjie/QuantSoftwareToolkit | 0eb2c7a776c259a087fdcac1d3ff883eb0b5516c | [
"BSD-3-Clause"
] | 19 | 2015-01-04T13:12:33.000Z | 2021-07-19T11:13:47.000Z | QSTK/qstklearn/1knn.py | jenniyanjie/QuantSoftwareToolkit | 0eb2c7a776c259a087fdcac1d3ff883eb0b5516c | [
"BSD-3-Clause"
] | 154 | 2015-01-30T09:41:15.000Z | 2022-03-19T02:27:59.000Z | '''
(c) 2011, 2012 Georgia Tech Research Corporation
This source code is released under the New BSD license. Please see
http://wiki.quantsoftware.org/index.php?title=QSTK_License
for license details.
Created on Feb 20, 2011
@author: John Cornwell
@organization: Georgia Institute of Technology
@contact: JohnW... | 31.811189 | 112 | 0.523522 |
86311bc6fef14e7f3a84f443854c9a8a4139ce52 | 2,508 | py | Python | pyscf/nao/m_comp_coulomb_pack.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 2 | 2019-05-28T05:25:56.000Z | 2019-11-09T02:16:43.000Z | pyscf/nao/m_comp_coulomb_pack.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 2 | 2019-09-16T17:58:31.000Z | 2019-09-22T17:26:01.000Z | pyscf/nao/m_comp_coulomb_pack.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 1 | 2019-11-09T02:13:16.000Z | 2019-11-09T02:13:16.000Z | # Copyright 2014-2018 The PySCF Developers. 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 appl... | 38 | 92 | 0.702153 |
863143ad0e8c0560ad9359d49f02a31a8146a084 | 2,338 | py | Python | nova/tests/unit/test_service_auth.py | panguan737/nova | 0d177185a439baa228b42c948cab4e934d6ac7b8 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/test_service_auth.py | panguan737/nova | 0d177185a439baa228b42c948cab4e934d6ac7b8 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/test_service_auth.py | panguan737/nova | 0d177185a439baa228b42c948cab4e934d6ac7b8 | [
"Apache-2.0"
] | 1 | 2020-11-02T10:17:13.000Z | 2020-11-02T10:17:13.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 37.709677 | 79 | 0.732678 |
86319d7588f06ccfd5e5e22eadc702136a0fe831 | 552 | py | Python | classification/model/build_gen.py | LittleWat/MCD_DA | 37cb1bc38c203702e22c7c0c37e284d0294714fb | [
"MIT"
] | 464 | 2018-04-04T22:38:44.000Z | 2022-03-12T15:46:49.000Z | classification/model/build_gen.py | seqam-lab/MCD_DA | af10217c5c5451dcd8bc3e975a7d067c285cc029 | [
"MIT"
] | 28 | 2018-05-05T20:01:31.000Z | 2022-01-16T05:07:56.000Z | classification/model/build_gen.py | seqam-lab/MCD_DA | af10217c5c5451dcd8bc3e975a7d067c285cc029 | [
"MIT"
] | 147 | 2018-04-10T08:44:10.000Z | 2021-12-28T02:14:38.000Z | import svhn2mnist
import usps
import syn2gtrsb
import syndig2svhn
| 24 | 45 | 0.63587 |
86329776e65dca78e6c2604731e8b04b13e73992 | 1,318 | py | Python | deep_table/nn/models/loss/info_nce_loss.py | pfnet-research/deep-table | a19c0c3048484017d5f24806604c3b3470bcf550 | [
"MIT"
] | 48 | 2021-09-30T08:14:26.000Z | 2022-03-02T12:20:08.000Z | deep_table/nn/models/loss/info_nce_loss.py | pfnet-research/deep-table | a19c0c3048484017d5f24806604c3b3470bcf550 | [
"MIT"
] | 1 | 2021-11-08T11:41:49.000Z | 2021-11-08T11:41:49.000Z | deep_table/nn/models/loss/info_nce_loss.py | pfnet-research/deep-table | a19c0c3048484017d5f24806604c3b3470bcf550 | [
"MIT"
] | 2 | 2021-12-31T03:43:48.000Z | 2022-03-11T09:04:21.000Z | import torch
from torch import Tensor
from torch.nn.modules.loss import _Loss
| 32.95 | 92 | 0.615326 |
8633d44756a388da352b3bc3dd3c8cfc0eeaabfe | 19,830 | py | Python | patroni/config.py | korkin25/patroni | 333d41d9f039b5a799940c8a6fbc75dcbe0e9a31 | [
"MIT"
] | null | null | null | patroni/config.py | korkin25/patroni | 333d41d9f039b5a799940c8a6fbc75dcbe0e9a31 | [
"MIT"
] | null | null | null | patroni/config.py | korkin25/patroni | 333d41d9f039b5a799940c8a6fbc75dcbe0e9a31 | [
"MIT"
] | null | null | null | import json
import logging
import os
import shutil
import tempfile
import yaml
from collections import defaultdict
from copy import deepcopy
from patroni import PATRONI_ENV_PREFIX
from patroni.exceptions import ConfigParseError
from patroni.dcs import ClusterConfig
from patroni.postgresql.config import CaseInsensitive... | 43.486842 | 120 | 0.580736 |
863423445c595d9f921067c5163063a99cb0a68c | 12,040 | py | Python | src/Products/CMFCore/tests/test_DirectoryView.py | fdiary/Products.CMFCore | 361a30e0c72a15a21f88433b8d5fc49331f36728 | [
"ZPL-2.1"
] | 3 | 2015-11-24T16:26:02.000Z | 2019-04-09T07:37:12.000Z | src/Products/CMFCore/tests/test_DirectoryView.py | fdiary/Products.CMFCore | 361a30e0c72a15a21f88433b8d5fc49331f36728 | [
"ZPL-2.1"
] | 86 | 2015-09-10T16:25:08.000Z | 2022-03-17T07:16:30.000Z | src/Products/CMFCore/tests/test_DirectoryView.py | fdiary/Products.CMFCore | 361a30e0c72a15a21f88433b8d5fc49331f36728 | [
"ZPL-2.1"
] | 16 | 2015-08-21T21:35:35.000Z | 2021-08-04T18:20:55.000Z | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 38.222222 | 79 | 0.66603 |
8634627ed49b276d745b67db33bc1b7a02ae6c52 | 4,247 | py | Python | pycycle/elements/flight_conditions.py | eshendricks/pyCycle | 2b7f9c2a60c6d93d5e561c71b27e75566b3baef0 | [
"Apache-2.0"
] | null | null | null | pycycle/elements/flight_conditions.py | eshendricks/pyCycle | 2b7f9c2a60c6d93d5e561c71b27e75566b3baef0 | [
"Apache-2.0"
] | null | null | null | pycycle/elements/flight_conditions.py | eshendricks/pyCycle | 2b7f9c2a60c6d93d5e561c71b27e75566b3baef0 | [
"Apache-2.0"
] | null | null | null | import openmdao.api as om
from pycycle.thermo.cea import species_data
from pycycle.constants import AIR_ELEMENTS
from pycycle.elements.ambient import Ambient
from pycycle.elements.flow_start import FlowStart
if __name__ == "__main__":
p1 = om.Problem()
p1.model = om.Group()
des_vars = p1.model.add_sub... | 38.261261 | 120 | 0.600895 |
86346fa63b7971b7ad956846f8bc8dcc94175283 | 2,679 | py | Python | server/cauth/views.py | mashaka/TravelHelper | 8a216dd13c253e138f241187dee46e6e53281a7b | [
"MIT"
] | null | null | null | server/cauth/views.py | mashaka/TravelHelper | 8a216dd13c253e138f241187dee46e6e53281a7b | [
"MIT"
] | 3 | 2020-02-11T23:38:20.000Z | 2021-06-10T19:10:53.000Z | server/cauth/views.py | mashaka/TravelHelper | 8a216dd13c253e138f241187dee46e6e53281a7b | [
"MIT"
] | 1 | 2018-09-19T11:19:48.000Z | 2018-09-19T11:19:48.000Z | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import AdminPasswordChangeForm, PasswordChangeForm, UserCreationForm
from django.contrib.auth import update_session_auth_hash, login, authenticate
from django.contrib import messages
from django... | 31.892857 | 99 | 0.709966 |
8634b2f385acdad2561bde76c51b0f6fb67361d8 | 2,806 | py | Python | samples/modules/tensorflow/magic_wand/train/data_split_person.py | lviala-zaack/zephyr | bf3c6e7ba415dd85f1b68eb69ea2779b234c686f | [
"Apache-2.0"
] | 6,224 | 2016-06-24T20:04:19.000Z | 2022-03-31T20:33:45.000Z | samples/modules/tensorflow/magic_wand/train/data_split_person.py | Conexiotechnologies/zephyr | fde24ac1f25d09eb9722ce4edc6e2d3f844b5bce | [
"Apache-2.0"
] | 32,027 | 2017-03-24T00:02:32.000Z | 2022-03-31T23:45:53.000Z | samples/modules/tensorflow/magic_wand/train/data_split_person.py | Conexiotechnologies/zephyr | fde24ac1f25d09eb9722ce4edc6e2d3f844b5bce | [
"Apache-2.0"
] | 4,374 | 2016-08-11T07:28:47.000Z | 2022-03-31T14:44:59.000Z | # Lint as: python3
# coding=utf-8
# Copyright 2019 The TensorFlow 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/LICE... | 36.921053 | 125 | 0.653956 |
86350332b9c46bb259c547e1b3c963ac7c8f647c | 10,632 | py | Python | tests/k8s_handler.py | josebalius/go-spacemesh | 7ad61dcbe30f361b348e93c97eb3871ab79f1848 | [
"MIT"
] | 586 | 2017-12-27T10:29:30.000Z | 2022-03-21T00:25:54.000Z | tests/k8s_handler.py | josebalius/go-spacemesh | 7ad61dcbe30f361b348e93c97eb3871ab79f1848 | [
"MIT"
] | 2,542 | 2017-12-27T11:23:12.000Z | 2022-03-31T18:40:52.000Z | tests/k8s_handler.py | josebalius/go-spacemesh | 7ad61dcbe30f361b348e93c97eb3871ab79f1848 | [
"MIT"
] | 162 | 2017-12-27T13:37:12.000Z | 2022-03-25T09:15:13.000Z | from datetime import datetime
from kubernetes import client
from kubernetes.client.rest import ApiException
import os
import time
import yaml
from tests import config as conf
import tests.utils as ut
| 44.3 | 133 | 0.630267 |
863721243454a95cc68c80d7a3e2d4352bbe5a24 | 2,718 | py | Python | natlas-agent/config.py | m4rcu5/natlas | d1057c5349a5443cecffb3db9a6428f7271b07ad | [
"Apache-2.0"
] | null | null | null | natlas-agent/config.py | m4rcu5/natlas | d1057c5349a5443cecffb3db9a6428f7271b07ad | [
"Apache-2.0"
] | null | null | null | natlas-agent/config.py | m4rcu5/natlas | d1057c5349a5443cecffb3db9a6428f7271b07ad | [
"Apache-2.0"
] | null | null | null | import os
from dotenv import load_dotenv
| 36.24 | 118 | 0.756439 |
86375b708be1e1e74cc333322674e530709cceeb | 4,663 | py | Python | rdr2019/mcmc_lc_jla_fit.py | rubind/host_unity | a1908d80a8b6354e4516cccbf2b1a214cbc7daa9 | [
"MIT"
] | null | null | null | rdr2019/mcmc_lc_jla_fit.py | rubind/host_unity | a1908d80a8b6354e4516cccbf2b1a214cbc7daa9 | [
"MIT"
] | 3 | 2021-03-16T17:19:23.000Z | 2021-03-24T17:05:05.000Z | rdr2019/mcmc_lc_jla_fit.py | rubind/host_unity | a1908d80a8b6354e4516cccbf2b1a214cbc7daa9 | [
"MIT"
] | null | null | null | import os
import sys
import click
import pickle
import sncosmo
import numpy as np
from astropy.table import Table
DATA_PATH = '/home/samdixon/jla_light_curves/'
def modify_error(lc, error_floor=0.):
"""Add an error floor of `error_floor` times the maximum flux of the band
to each observation
"""
... | 39.516949 | 133 | 0.51855 |
863791c55712e28d3fe1488aacf0c833eaf8ff5c | 11,011 | py | Python | openmdao/core/tests/test_system.py | toddrme2178/OpenMDAO | 379cc6216d13d380e11cb3a46f03960981de4660 | [
"Apache-2.0"
] | null | null | null | openmdao/core/tests/test_system.py | toddrme2178/OpenMDAO | 379cc6216d13d380e11cb3a46f03960981de4660 | [
"Apache-2.0"
] | null | null | null | openmdao/core/tests/test_system.py | toddrme2178/OpenMDAO | 379cc6216d13d380e11cb3a46f03960981de4660 | [
"Apache-2.0"
] | 1 | 2018-07-27T06:39:15.000Z | 2018-07-27T06:39:15.000Z | """ Unit tests for the system interface."""
import unittest
from six import assertRaisesRegex
from six.moves import cStringIO
import numpy as np
from openmdao.api import Problem, Group, IndepVarComp, ExecComp
from openmdao.test_suite.components.options_feature_vector import VectorDoublingComp
from openmdao.utils.ass... | 35.066879 | 95 | 0.596767 |
8638749e9332abd43829f80692ff4532468c5620 | 1,244 | py | Python | code/src/db/create_db.py | fabiangunzinger/sample_project | a5c87d0c3ff2f6ed39f3e3a18557c0ab439f6b42 | [
"MIT"
] | null | null | null | code/src/db/create_db.py | fabiangunzinger/sample_project | a5c87d0c3ff2f6ed39f3e3a18557c0ab439f6b42 | [
"MIT"
] | null | null | null | code/src/db/create_db.py | fabiangunzinger/sample_project | a5c87d0c3ff2f6ed39f3e3a18557c0ab439f6b42 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import os
import sqlite3
import sys
import pandas as pd
from src import config
def db_tables(connection):
"""List tables in database."""
res = pd.read_sql("select name from sqlite_master", connection)
return res.name.values
def create_data... | 25.387755 | 77 | 0.673633 |
863b23444fda9cb581afbddd6338c59075cfc887 | 1,793 | py | Python | tests/test_responder.py | craigderington/responder-persons-api | d2270d2f761c5dd3dbe253113d410f3e37d4d217 | [
"Apache-2.0"
] | null | null | null | tests/test_responder.py | craigderington/responder-persons-api | d2270d2f761c5dd3dbe253113d410f3e37d4d217 | [
"Apache-2.0"
] | null | null | null | tests/test_responder.py | craigderington/responder-persons-api | d2270d2f761c5dd3dbe253113d410f3e37d4d217 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import pytest
import app as service
import yaml
import responder
from starlette.responses import PlainTextResponse
| 19.703297 | 65 | 0.621305 |