hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
31bc8401bc79f981d7277b85aa7ace9f41d9a5f6
5,040
py
Python
env/lib/python3.8/site-packages/plotly/graph_objs/barpolar/selected/_textfont.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/barpolar/selected/_textfont.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/barpolar/selected/_textfont.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "barpolar.selected" _path_str = "barpolar.selected.textfont" _valid_props = {"color"} ...
36.258993
82
0.556746
68a27733cc359e6ac3aa29637dccc307997b858b
5,842
py
Python
serverless-rest-api/python-http-sam/tests/integration/conftest.py
heeki/serverless-samples
debe33cc5efc0cf6b1e37cef16b5783a78098509
[ "MIT-0" ]
45
2021-02-25T15:55:47.000Z
2022-03-30T15:43:46.000Z
serverless-rest-api/python-http-sam/tests/integration/conftest.py
heeki/serverless-samples
debe33cc5efc0cf6b1e37cef16b5783a78098509
[ "MIT-0" ]
3
2021-12-16T23:03:55.000Z
2022-01-05T21:18:54.000Z
serverless-rest-api/python-http-sam/tests/integration/conftest.py
heeki/serverless-samples
debe33cc5efc0cf6b1e37cef16b5783a78098509
[ "MIT-0" ]
17
2021-05-27T21:55:26.000Z
2022-02-21T15:51:38.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import boto3 import os import pytest APPLICATION_STACK_NAME = os.getenv('TEST_APPLICATION_STACK_NAME', None) COGNITO_STACK_NAME = os.getenv('TEST_COGNITO_STACK_NAME', None) globalConfig = {} def get_stack_outputs(s...
42.333333
92
0.661075
e4f741f776bd70289f930d86ff11a75b844ec084
1,638
py
Python
svm.py
jbreindl/676-deepfake-detection
99ad695e9f8eddccd71a0c02246fc1006588e0e9
[ "MIT" ]
null
null
null
svm.py
jbreindl/676-deepfake-detection
99ad695e9f8eddccd71a0c02246fc1006588e0e9
[ "MIT" ]
null
null
null
svm.py
jbreindl/676-deepfake-detection
99ad695e9f8eddccd71a0c02246fc1006588e0e9
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os from sklearn.svm import SVR from prnu import extract_multiple_aligned def train(dirs: list, labels: list): """ Train an SVM with the given parameters Params: dirs: List of directories corresponding to frames of a video labels: labels corresponding to ...
29.781818
83
0.642857
e2903c70dc722bdf99fd5efd920ebd2bb164c3f3
1,613
py
Python
dashboard/views.py
nikhiljohn10/django-auth
01d97e8173436c3446f039cfa6472ece3cd9f96a
[ "MIT" ]
null
null
null
dashboard/views.py
nikhiljohn10/django-auth
01d97e8173436c3446f039cfa6472ece3cd9f96a
[ "MIT" ]
null
null
null
dashboard/views.py
nikhiljohn10/django-auth
01d97e8173436c3446f039cfa6472ece3cd9f96a
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, redirect from django.views.generic.edit import CreateView, UpdateView from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.decorators import login_required, permission_required from dashboard.forms...
29.87037
86
0.750775
560cd86864d954a77cb360e875e057e6fef296d0
10,259
py
Python
components/tentacle.py
chairmenfrog/FooProxy
357f1f46feddb4effec89362776c9edf34471032
[ "MIT" ]
null
null
null
components/tentacle.py
chairmenfrog/FooProxy
357f1f46feddb4effec89362776c9edf34471032
[ "MIT" ]
null
null
null
components/tentacle.py
chairmenfrog/FooProxy
357f1f46feddb4effec89362776c9edf34471032
[ "MIT" ]
null
null
null
# coding:utf-8 """ @author : linkin @email : yooleak@outlook.com @date : 2018-11-03 """ import asyncio import datetime import logging import random import time from string import ascii_letters import aiohttp from components.dbhelper import Database from config.DBsettings import _DB_SETTINGS from co...
35.49827
116
0.53358
0670ca1fa7db5bdbc21f717f179b73b5e440d1d8
8,876
py
Python
readthedocs/profiles/views.py
ank-forked/readthedocs.org
e4110e8db5d25b7e6c699dd2df1a580b04ee8d16
[ "MIT" ]
1
2021-04-27T05:55:34.000Z
2021-04-27T05:55:34.000Z
readthedocs/profiles/views.py
himynamesdave/readthedocs.org
38e73cd73efb76461d28a5d9737731b7d7349297
[ "MIT" ]
4
2021-02-08T21:06:49.000Z
2021-12-13T20:51:17.000Z
readthedocs/profiles/views.py
himynamesdave/readthedocs.org
38e73cd73efb76461d28a5d9737731b7d7349297
[ "MIT" ]
3
2016-08-04T12:53:13.000Z
2016-11-02T14:17:55.000Z
""" Views for creating, editing and viewing site-specific user profiles. """ from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.core.urlresolvers import reverse from django.http import Http404 from dja...
34.671875
87
0.660545
73424785a21b6915f27e2bc02002d27e8d78c4b5
291
py
Python
quality/quality/doctype/initial_sample_inspection_report/initial_sample_inspection_report.py
D7blacksushi/quality-test-enext
d25d50650666696c4687daf2de4879c1bc90416f
[ "MIT" ]
5
2018-04-10T17:49:37.000Z
2021-04-27T20:13:08.000Z
quality/quality/doctype/initial_sample_inspection_report/initial_sample_inspection_report.py
creador30/Quality
dde1a9dc327982077fe0a7bd069c7a85686d763a
[ "MIT" ]
null
null
null
quality/quality/doctype/initial_sample_inspection_report/initial_sample_inspection_report.py
creador30/Quality
dde1a9dc327982077fe0a7bd069c7a85686d763a
[ "MIT" ]
10
2016-05-11T17:43:18.000Z
2020-09-12T10:12:12.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, ESO Electronic (Nemwatik) and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class InitialSampleInspectionReport(Document): pass
26.454545
64
0.793814
c86b63f7a2f6a8b24e618361b82a82e549db2cb2
121
py
Python
tests/test_array/test_array_is_empty.py
natanfeitosa/pyfunctools
b5354e0d737542b03049eb3e347d6ca1ccceb164
[ "MIT" ]
4
2021-11-17T15:26:11.000Z
2022-03-12T01:30:55.000Z
tests/test_array/test_array_is_empty.py
natanfeitosa/pyfunctools
b5354e0d737542b03049eb3e347d6ca1ccceb164
[ "MIT" ]
null
null
null
tests/test_array/test_array_is_empty.py
natanfeitosa/pyfunctools
b5354e0d737542b03049eb3e347d6ca1ccceb164
[ "MIT" ]
null
null
null
from pyfunctools import Array def test_is_empty(): assert Array().is_empty() assert not Array(1, 2).is_empty()
17.285714
37
0.702479
1d92ad433587db9ebfcc7fa2446d066bccec45bd
28,729
py
Python
pano/vm.py
NiklasRz/panoramix
fcb2dfe3df48ceee188cea37793da74aa9a05eb6
[ "MIT" ]
null
null
null
pano/vm.py
NiklasRz/panoramix
fcb2dfe3df48ceee188cea37793da74aa9a05eb6
[ "MIT" ]
null
null
null
pano/vm.py
NiklasRz/panoramix
fcb2dfe3df48ceee188cea37793da74aa9a05eb6
[ "MIT" ]
null
null
null
import logging import sys from copy import copy import core.arithmetic as arithmetic import utils.opcode_dict as opcode_dict from core.algebra import ( add_op, bits, lt_op, mask_op, minus_op, mul_op, or_op, sub_op, to_bytes, ) from core.arithmetic import is_zero, simplify_bool from ...
28.304433
153
0.461694
db0fb9c622c5000fd311bca8aefd7ec5e9457a57
371
py
Python
app/__init__.py
Leo-g/Flask-CRUD-API
7cb50bc8fdca3412f28710a70a2b811463acc1ec
[ "MIT" ]
6
2018-08-12T09:31:09.000Z
2021-08-01T22:12:25.000Z
app/__init__.py
Leo-g/Flask-CRUD-API
7cb50bc8fdca3412f28710a70a2b811463acc1ec
[ "MIT" ]
null
null
null
app/__init__.py
Leo-g/Flask-CRUD-API
7cb50bc8fdca3412f28710a70a2b811463acc1ec
[ "MIT" ]
1
2018-08-12T09:31:13.000Z
2018-08-12T09:31:13.000Z
from flask import Flask # http://flask.pocoo.org/docs/0.10/patterns/appfactories/ def create_app(config_filename): app = Flask(__name__) app.config.from_object(config_filename) from app.basemodels import db db.init_app(app) # Blueprints from app.users.views import users app.register_blu...
20.611111
57
0.725067
e5ef96ca87f8325d96d8dedcfc913807c592f24f
6,012
py
Python
tests/operators/test_node_pod_operator.py
lmaczulajtys/kedro-airflow-k8s
335e301acf340d6ab4a26f0e694cb854e2b49483
[ "Apache-2.0" ]
14
2021-03-08T10:17:33.000Z
2022-03-07T01:44:42.000Z
tests/operators/test_node_pod_operator.py
lmaczulajtys/kedro-airflow-k8s
335e301acf340d6ab4a26f0e694cb854e2b49483
[ "Apache-2.0" ]
48
2021-03-10T14:32:07.000Z
2022-03-14T07:34:38.000Z
tests/operators/test_node_pod_operator.py
lmaczulajtys/kedro-airflow-k8s
335e301acf340d6ab4a26f0e694cb854e2b49483
[ "Apache-2.0" ]
7
2021-03-05T13:07:21.000Z
2022-02-27T20:06:41.000Z
import unittest from airflow.kubernetes.pod_generator import PodGenerator from kubernetes.client.models.v1_env_var import V1EnvVar from kedro_airflow_k8s.operators.node_pod import NodePodOperator class TestNodePodOperator(unittest.TestCase): def test_task_create(self): task = NodePodOperator( ...
36
212
0.580007
7243f90213858c9b7dc6c45958e7eed0b688a7d0
62
py
Python
cfn-lint-serverless/cfn_lint_serverless/__init__.py
pedrodelgallego/serverless-rules
1ab513667b37edcfcd6341ab50a42242c11303d1
[ "MIT-0" ]
264
2021-06-02T20:12:38.000Z
2022-03-31T19:48:47.000Z
cfn-lint-serverless/cfn_lint_serverless/__init__.py
pedrodelgallego/serverless-rules
1ab513667b37edcfcd6341ab50a42242c11303d1
[ "MIT-0" ]
22
2021-06-03T11:38:28.000Z
2021-11-15T15:25:47.000Z
cfn-lint-serverless/cfn_lint_serverless/__init__.py
pedrodelgallego/serverless-rules
1ab513667b37edcfcd6341ab50a42242c11303d1
[ "MIT-0" ]
15
2021-06-03T04:37:42.000Z
2022-02-28T05:29:54.000Z
""" CloudFormation Lint Rules for Serverless applications """
15.5
53
0.774194
9a0dc132af52b8b5ab2448fc1ecd5399d74f7de8
4,972
py
Python
src/__main__.py
othieno/geotagx-tool-validator
4090c948021faa1d322bde085246a478e4c7a851
[ "MIT" ]
null
null
null
src/__main__.py
othieno/geotagx-tool-validator
4090c948021faa1d322bde085246a478e4c7a851
[ "MIT" ]
1
2016-11-01T15:21:13.000Z
2016-11-01T15:21:13.000Z
src/__main__.py
othieno/geotagx-tool-validator
4090c948021faa1d322bde085246a478e4c7a851
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This module is part of the GeoTag-X project validator tool. # # Author: Jeremy Othieno (j.othieno@gmail.com) # # Copyright (c) 2016-2017 UNITAR/UNOSAT # # The MIT License (MIT) # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated do...
38.246154
148
0.699517
ddaca700fa333efba42b12e6249471a8dfeadc54
4,647
py
Python
selfdrive/manager/process_config.py
baldwalker/openpilot-4
53938f3adb55a369e79ea5492cd3b5ef06e69670
[ "MIT" ]
null
null
null
selfdrive/manager/process_config.py
baldwalker/openpilot-4
53938f3adb55a369e79ea5492cd3b5ef06e69670
[ "MIT" ]
null
null
null
selfdrive/manager/process_config.py
baldwalker/openpilot-4
53938f3adb55a369e79ea5492cd3b5ef06e69670
[ "MIT" ]
null
null
null
import os from selfdrive.hardware import EON, TICI, PC from selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess from common.params import Params WEBCAM = os.getenv("USE_WEBCAM") is not None EnableLogger = Params().get_bool('OpkrEnableLogger') EnableUploader = Params().get_bool('OpkrEnableUp...
54.034884
204
0.734668
c84576f2d475072d66bc8f1d751715423332a6ae
803
py
Python
problems/038.py
JoshKarpel/Euler
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
[ "MIT" ]
1
2017-09-20T22:26:24.000Z
2017-09-20T22:26:24.000Z
problems/038.py
JoshKarpel/euler-python
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
[ "MIT" ]
null
null
null
problems/038.py
JoshKarpel/euler-python
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
[ "MIT" ]
null
null
null
from problems import mymath def concatenated_product(integer, list_of_integers): return ''.join([str(integer * n) for n in list_of_integers]) def solve(): concatenated_products = dict() upper_bound = 1000000 digits_sorted = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] for test in range(2, up...
24.333333
75
0.60523
a87ff632fca02051b37bb5efb571360a9d3d675a
1,008
py
Python
renderers/fixed/text.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
renderers/fixed/text.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
renderers/fixed/text.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
from renderers.base import BaseRenderer from time import sleep from envs.base import StateFormat class TextFixedRenderer(BaseRenderer): def __init__(self, delay=0.1, state_format=StateFormat.VECTOR): self.delay = delay self.state_format = state_format def setup(self, info=None): print...
30.545455
67
0.623016
143230025c5bce864611860b09ce89ebab8079ba
12,550
py
Python
pcapkit/vendor/default.py
binref/PyPCAPKit
7c5ba2cfa95bdc80a95b53b6669340a8783d2ad9
[ "BSD-3-Clause" ]
3
2018-01-21T15:22:21.000Z
2018-06-22T01:27:59.000Z
pcapkit/vendor/default.py
binref/PyPCAPKit
7c5ba2cfa95bdc80a95b53b6669340a8783d2ad9
[ "BSD-3-Clause" ]
null
null
null
pcapkit/vendor/default.py
binref/PyPCAPKit
7c5ba2cfa95bdc80a95b53b6669340a8783d2ad9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Default vendor generation.""" import abc import collections import contextlib import csv import inspect import os import re import tempfile import textwrap import warnings import webbrowser from typing import TYPE_CHECKING import requests from pcapkit.utilities.exceptions import VendorNotI...
31.375
146
0.520637
68ae4afeed335286421a9b9bd28f90e1232a9016
4,359
py
Python
solrdataimport/payload.py
pisceanfoot/solrdataimport
a7f97cda5eb4ff569e67e5636a9217e9fe1a5fb5
[ "Apache-2.0" ]
2
2018-03-13T02:08:08.000Z
2019-07-08T03:33:26.000Z
solrdataimport/payload.py
pisceanfoot/solrdataimport
a7f97cda5eb4ff569e67e5636a9217e9fe1a5fb5
[ "Apache-2.0" ]
null
null
null
solrdataimport/payload.py
pisceanfoot/solrdataimport
a7f97cda5eb4ff569e67e5636a9217e9fe1a5fb5
[ "Apache-2.0" ]
1
2019-07-08T03:33:32.000Z
2019-07-08T03:33:32.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals, \ with_statement import json from solrdataimport.lib.map import Map class Payload: """ load section list from json file Payload.load('json_file_path') { "name": "key of the config, and also set as so...
29.856164
156
0.686167
fcab3d9e33fbcb97ac292c66cd953b6ba30252e9
1,471
py
Python
tests/support/cli_scripts.py
magenta-aps/salt
b6c78ecba697b1d7ba96ea95be300d12d8abf2d1
[ "Apache-2.0" ]
1
2021-09-06T00:14:04.000Z
2021-09-06T00:14:04.000Z
tests/support/cli_scripts.py
magenta-aps/salt
b6c78ecba697b1d7ba96ea95be300d12d8abf2d1
[ "Apache-2.0" ]
2
2021-04-30T21:17:57.000Z
2021-12-13T20:40:23.000Z
tests/support/cli_scripts.py
magenta-aps/salt
b6c78ecba697b1d7ba96ea95be300d12d8abf2d1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ tests.support.cli_scripts ~~~~~~~~~~~~~~~~~~~~~~~~~ Code to generate Salt CLI scripts for test runs """ # Import Python Libs from __future__ import absolute_import, unicode_literals import logging import os import sys # Import Pytest Salt libs from pytestsalt.utils import cli...
26.267857
88
0.673691
0e973379224837b9f2f2aa2b72d5530468d05eb6
1,081
py
Python
python/usaco/chapter2/holstein.py
kumaratinfy/Problem-Solving
be9e3b8a630e4126f150b9e7f03c2f3290ba3255
[ "MIT" ]
null
null
null
python/usaco/chapter2/holstein.py
kumaratinfy/Problem-Solving
be9e3b8a630e4126f150b9e7f03c2f3290ba3255
[ "MIT" ]
null
null
null
python/usaco/chapter2/holstein.py
kumaratinfy/Problem-Solving
be9e3b8a630e4126f150b9e7f03c2f3290ba3255
[ "MIT" ]
null
null
null
""" ID: kumar.g1 LANG: PYTHON2 TASK: holstein """ import itertools fin = open ('holstein.in', 'r') fout = open ('holstein.out', 'w') V = int(fin.readline().rstrip("\n")) reqmt = map(int, fin.readline().rstrip("\n").split(" ")) G = int(fin.readline().rstrip("\n")) feeds = [] for _ in range(G): feeds.append(map(int...
20.788462
64
0.619796
871b8586e5782ac0386859d36a2fb92fe1626e02
295
py
Python
logical/converter/qiskit/qobj/__init__.py
malcolmregan/GateCircuit-to-AnnealerEmbedding
33a1a4ea2ebd707ade0677e0df468d5120a861db
[ "Apache-2.0" ]
null
null
null
logical/converter/qiskit/qobj/__init__.py
malcolmregan/GateCircuit-to-AnnealerEmbedding
33a1a4ea2ebd707ade0677e0df468d5120a861db
[ "Apache-2.0" ]
1
2019-04-09T02:22:38.000Z
2019-04-09T02:22:38.000Z
logical/converter/qiskit/qobj/__init__.py
malcolmregan/GateCircuit-to-AnnealerEmbedding
33a1a4ea2ebd707ade0677e0df468d5120a861db
[ "Apache-2.0" ]
null
null
null
from ._qobj import (Qobj, QobjConfig, QobjExperiment, QobjInstruction, QobjItem, QobjHeader, QobjExperimentHeader) from ._converter import qobj_to_dict from ._validation import validate_qobj_against_schema, QobjValidationError from ._result import Result, ExperimentResult
32.777778
74
0.79661
6376ba5e59cbdc431c11ebf8583a2212a05b4e27
5,223
py
Python
opennmt/models/transformer.py
nilboy/OpenNMT-tf
00e6dc451d3fc96973d13839a71290f007c0b9d7
[ "MIT" ]
null
null
null
opennmt/models/transformer.py
nilboy/OpenNMT-tf
00e6dc451d3fc96973d13839a71290f007c0b9d7
[ "MIT" ]
null
null
null
opennmt/models/transformer.py
nilboy/OpenNMT-tf
00e6dc451d3fc96973d13839a71290f007c0b9d7
[ "MIT" ]
null
null
null
"""Define the Google's Transformer model.""" import tensorflow as tf from opennmt.models.sequence_to_sequence import SequenceToSequence, EmbeddingsSharingLevel from opennmt.encoders.encoder import ParallelEncoder from opennmt.encoders.self_attention_encoder import SelfAttentionEncoder from opennmt.decoders.self_atten...
38.688889
90
0.659774
6c347bb934669c3b4caf837c05c1bc0d847e2591
1,834
py
Python
app/blueprints/auth/routes/confirm.py
neurothrone/project-dot
20889075611bed645689a76a30257f96e4b55988
[ "MIT" ]
null
null
null
app/blueprints/auth/routes/confirm.py
neurothrone/project-dot
20889075611bed645689a76a30257f96e4b55988
[ "MIT" ]
null
null
null
app/blueprints/auth/routes/confirm.py
neurothrone/project-dot
20889075611bed645689a76a30257f96e4b55988
[ "MIT" ]
null
null
null
from flask import flash, redirect, render_template, request, url_for from flask_login import current_user, login_required from app.blueprints.auth import bp_auth from app.services import email_service @bp_auth.before_app_request def before_request(): if current_user.is_authenticated: # TODO: called multi...
32.75
88
0.676118
ec43fe0d488358049728fe978556c36abaf5d9bd
170
py
Python
vkbottle/api/token_generator/__init__.py
homus32/vkbottle
8247665ef74835abe0c2c5e5981826540d0ecdb5
[ "MIT" ]
698
2019-08-09T17:32:52.000Z
2021-07-22T08:30:32.000Z
vkbottle/api/token_generator/__init__.py
homus32/vkbottle
8247665ef74835abe0c2c5e5981826540d0ecdb5
[ "MIT" ]
216
2019-08-18T19:22:50.000Z
2021-07-30T12:15:17.000Z
vkbottle/api/token_generator/__init__.py
homus32/vkbottle
8247665ef74835abe0c2c5e5981826540d0ecdb5
[ "MIT" ]
268
2019-08-10T14:52:04.000Z
2021-07-28T07:06:42.000Z
from .abc import ABCTokenGenerator, Token from .consistent import ConsistentTokenGenerator from .single import SingleTokenGenerator from .util import get_token_generator
34
48
0.870588
7357589259fccf4cda5bba60d77fe2abab09f9a8
10,369
py
Python
benchmark/run.py
chuanli11/transformers
330dc0273d45f5583eee72371bfa038e1b6b5fa8
[ "Apache-2.0" ]
null
null
null
benchmark/run.py
chuanli11/transformers
330dc0273d45f5583eee72371bfa038e1b6b5fa8
[ "Apache-2.0" ]
null
null
null
benchmark/run.py
chuanli11/transformers
330dc0273d45f5583eee72371bfa038e1b6b5fa8
[ "Apache-2.0" ]
null
null
null
import sys import os from multiprocessing import Queue import subprocess dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(1, dir_path + '/../src') from typing import Callable import time import torch import torch.nn as nn import torch.optim as optim import torch.distributed as dist import torch....
35.632302
177
0.555502
7486c6b057a29c327ce7eab12d056c786e567f40
406
py
Python
TWLight/applications/migrations/0019_application_account_email.py
saloniig/TWLight
cd92e690b79676299d95394abf9e66885eac9d73
[ "MIT" ]
2
2020-01-17T09:14:55.000Z
2020-01-17T09:15:20.000Z
TWLight/applications/migrations/0019_application_account_email.py
saloniig/TWLight
cd92e690b79676299d95394abf9e66885eac9d73
[ "MIT" ]
11
2022-03-18T18:05:40.000Z
2022-03-18T18:06:04.000Z
TWLight/applications/migrations/0019_application_account_email.py
saloniig/TWLight
cd92e690b79676299d95394abf9e66885eac9d73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("applications", "0018_remove_application_earliest_expiry_date")] operations = [ migrations.AddField( model_name="application", name="account_email", ...
22.555556
85
0.640394
15ba561570a6c2b6dcf5888d19b0cd554351258d
18,483
py
Python
lesson_4_create_GMNS_network/osm2gmns/OSM2GMNS.py
asu-trans-ai-lab/traffic-engineering-and-analysis
19e5718dabee7e3eb200937b5ce2d7e5e2d3fbf1
[ "CC0-1.0" ]
null
null
null
lesson_4_create_GMNS_network/osm2gmns/OSM2GMNS.py
asu-trans-ai-lab/traffic-engineering-and-analysis
19e5718dabee7e3eb200937b5ce2d7e5e2d3fbf1
[ "CC0-1.0" ]
null
null
null
lesson_4_create_GMNS_network/osm2gmns/OSM2GMNS.py
asu-trans-ai-lab/traffic-engineering-and-analysis
19e5718dabee7e3eb200937b5ce2d7e5e2d3fbf1
[ "CC0-1.0" ]
1
2020-12-03T16:01:35.000Z
2020-12-03T16:01:35.000Z
# -*- coding: utf-8 -*- """ Created on Wed Dec 19 12:44:27 2018 @author: Jiawei(Jay) Lu (jiaweil9@asu.edu) @author: Xuesong(Simon) Zhou (xzhou74@asu.edu) """ import numpy as np import csv from shapely.geometry import LineString import osmnx as ox import copy # city = 'Xuanwu District, Nanjing, Jiangsu, China' bbox ...
42.006818
149
0.658659
c618ecbcc102243f7afaee860970a257ffd2423f
3,583
py
Python
Networks/classification.py
emedinac/UnderstandingSA
a234631e99f2979396fef9e24f54865e63147ef4
[ "MIT" ]
null
null
null
Networks/classification.py
emedinac/UnderstandingSA
a234631e99f2979396fef9e24f54865e63147ef4
[ "MIT" ]
null
null
null
Networks/classification.py
emedinac/UnderstandingSA
a234631e99f2979396fef9e24f54865e63147ef4
[ "MIT" ]
null
null
null
import torch, torchvision import torch.nn as nn from torch.nn import init from .Xception import * from .InceptionV4 import * from .WideResnet import * def init_weights(m): global init_net inet = init_net.split(',')[0] dist = init_net.split(',')[1] if inet=='xavier': if dist=='uniform': ...
42.654762
97
0.617918
526d688bd51719bdf67a3cd07d9676c455169411
371
py
Python
code_all/day03/exercise05.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
code_all/day03/exercise05.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
code_all/day03/exercise05.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
""" 练习3: 在终端中输入课程阶段数,显示课程名称 1 显示 Python语言核心编程 2 显示 Python高级软件技术 3 显示 Web 全栈 4 显示 网络爬虫 5 显示 数据分析、人工智能 """ course = input("请输入课程编号:") if course == "1": print("Python语言核心编程") elif course == "2": print("Python高级软件技术") elif course == "3": print("Web 全栈") elif course == "4": print(...
17.666667
26
0.574124
32780f512d07f708e8b35c061cc4a0de9ab1f264
461
py
Python
tests/test_context/test_requires_context/test_context_utils.py
ksurta/returns
9746e569303f214d035462ae3dffe5c49abdcfa7
[ "BSD-2-Clause" ]
null
null
null
tests/test_context/test_requires_context/test_context_utils.py
ksurta/returns
9746e569303f214d035462ae3dffe5c49abdcfa7
[ "BSD-2-Clause" ]
null
null
null
tests/test_context/test_requires_context/test_context_utils.py
ksurta/returns
9746e569303f214d035462ae3dffe5c49abdcfa7
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from returns.context import Context, RequiresContext def test_context_ask(): """Ensures that ``ask`` method works correctly.""" assert Context[int].ask()(1) == 1 assert Context[str].ask()('a') == 'a' def test_requires_context_from_value(): """Ensures that ``from_value`` meth...
28.8125
68
0.681128
e74ac73438bbf497965b12e13ad8cac1a659cf64
399
py
Python
the_pic_hub/wsgi.py
asandelarvine/My_Pic_Hub
3cf11c01485e5bee75b3b3937525cedc1d55d473
[ "MIT" ]
null
null
null
the_pic_hub/wsgi.py
asandelarvine/My_Pic_Hub
3cf11c01485e5bee75b3b3937525cedc1d55d473
[ "MIT" ]
null
null
null
the_pic_hub/wsgi.py
asandelarvine/My_Pic_Hub
3cf11c01485e5bee75b3b3937525cedc1d55d473
[ "MIT" ]
null
null
null
""" WSGI config for the_pic_hub project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
e57e4896e7b3aa05f57af79c1bca37b9761f5455
15,782
py
Python
lncrawl/core/crawler.py
dragonroad99/lightnovel-crawler
eca7a71f217ce7a6b0a54d2e2afb349571871880
[ "Apache-2.0" ]
1
2021-09-04T15:22:16.000Z
2021-09-04T15:22:16.000Z
lncrawl/core/crawler.py
dragonroad99/lightnovel-crawler
eca7a71f217ce7a6b0a54d2e2afb349571871880
[ "Apache-2.0" ]
14
2021-08-28T07:34:38.000Z
2022-03-16T22:23:59.000Z
lncrawl/core/crawler.py
taz85/lightnovel-crawler
22d1200f64d3d1dc12b065f061ff3efd262040de
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Crawler application """ import itertools import logging import random import re import ssl import sys import unicodedata from abc import ABC, abstractmethod from concurrent.futures import ThreadPoolExecutor from threading import Semaphore from typing import Dict, List from urllib.parse impor...
32.810811
128
0.540806
11b0a532e764fd73d29916dda225476ced89be23
104
py
Python
src/constants.py
will666/wasabi-diagrams
42e4bccc689c2b01843e10679a5b653e01266f48
[ "MIT" ]
null
null
null
src/constants.py
will666/wasabi-diagrams
42e4bccc689c2b01843e10679a5b653e01266f48
[ "MIT" ]
null
null
null
src/constants.py
will666/wasabi-diagrams
42e4bccc689c2b01843e10679a5b653e01266f48
[ "MIT" ]
null
null
null
GRAPH_ATTR = {"fontsize": "45", "bgcolor": "transparent"} OUTPUT_PATH = "../data" OUTPUT_FORMAT = "png"
26
57
0.663462
dd427e810f0fc2608fb0877e138cefa6426104a4
405
py
Python
v1/venv/src/authentication/wsgi.py
AkashSDas/Django-Authentication-API
9c9a3f40e337619ddd1cdfd10871932aabee1d97
[ "MIT" ]
null
null
null
v1/venv/src/authentication/wsgi.py
AkashSDas/Django-Authentication-API
9c9a3f40e337619ddd1cdfd10871932aabee1d97
[ "MIT" ]
null
null
null
v1/venv/src/authentication/wsgi.py
AkashSDas/Django-Authentication-API
9c9a3f40e337619ddd1cdfd10871932aabee1d97
[ "MIT" ]
null
null
null
""" WSGI config for authentication project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANG...
23.823529
78
0.792593
ff8396dbb055f251045e7bab4b498eaceaeb5dd8
1,865
py
Python
open_humans/management/commands/stats.py
danamlewis/open-humans
9b08310cf151f49032b66ddd005bbd47d466cc4e
[ "MIT" ]
57
2016-09-01T21:55:52.000Z
2022-03-27T22:15:32.000Z
open_humans/management/commands/stats.py
danamlewis/open-humans
9b08310cf151f49032b66ddd005bbd47d466cc4e
[ "MIT" ]
464
2015-03-23T18:08:28.000Z
2016-08-25T04:57:36.000Z
open_humans/management/commands/stats.py
danamlewis/open-humans
9b08310cf151f49032b66ddd005bbd47d466cc4e
[ "MIT" ]
25
2017-01-24T16:23:27.000Z
2021-11-07T01:51:42.000Z
# -*- coding: utf-8 -*- import arrow from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from termcolor import colored from open_humans.models import Member UserModel = get_user_model() class Command(BaseCommand): """ Generate signup codes. """ help...
27.426471
87
0.504558
45ae533a8c85dee0449dd8756ce23d7d0adf9d7c
688
py
Python
setup.py
nmoisseeva/cwipp
da5f13f236e9f0739088562abf2ab12beaac80ee
[ "MIT" ]
null
null
null
setup.py
nmoisseeva/cwipp
da5f13f236e9f0739088562abf2ab12beaac80ee
[ "MIT" ]
null
null
null
setup.py
nmoisseeva/cwipp
da5f13f236e9f0739088562abf2ab12beaac80ee
[ "MIT" ]
1
2021-06-25T02:04:11.000Z
2021-06-25T02:04:11.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="cwipp", version="0.0.1", author="Nadya Moisseeva", author_email="nmoisseeva@eoas.ubc.ca", description="Plume-rise parameterization package for wildfire smoke", long_d...
29.913043
73
0.670058
cb2cc2c169c3a8c6d4a7c82c64e406b8f28be765
1,076
py
Python
zabbixwechat/checkdbnoresolved.py
ansemz/zabbix-wechat
870f3676e9ce569eae01656653669b244ef2b180
[ "Apache-2.0" ]
81
2017-03-19T13:54:44.000Z
2022-01-13T08:36:44.000Z
zabbixwechat/checkdbnoresolved.py
tony163/zabbixwechat
d0d187e490ebb2b563a417c450db4fe21e7817ea
[ "Apache-2.0" ]
2
2017-04-12T09:33:07.000Z
2019-04-24T11:20:54.000Z
zabbixwechat/checkdbnoresolved.py
tony163/zabbixwechat
d0d187e490ebb2b563a417c450db4fe21e7817ea
[ "Apache-2.0" ]
42
2017-03-19T14:00:39.000Z
2021-12-26T04:52:38.000Z
# coding: utf-8 from zabbixwechat.common import * from django.shortcuts import render from zabbix_wechat_db.models import ALARM_INFO import os import time def checkdbnoresolved(): callgettext() now = int(time.time()) hosts= ALARM_INFO.objects.filter( CONFIRM_TIME="", RESOLVE_TIME="", ...
30.742857
98
0.571561
c90895f15617dda411cdd86fff69b66b448eba45
23,050
py
Python
sanitize/sanitize_utils.py
lawrluor/matchstats
0c8cd08403d5fa2772b3d5d9391a804866d15dce
[ "BSD-3-Clause" ]
6
2015-06-22T16:51:03.000Z
2017-12-05T22:18:39.000Z
sanitize/sanitize_utils.py
lawrluor/matchstats
0c8cd08403d5fa2772b3d5d9391a804866d15dce
[ "BSD-3-Clause" ]
1
2021-06-01T21:44:48.000Z
2021-06-01T21:44:48.000Z
sanitize/sanitize_utils.py
lawrluor/matchstats
0c8cd08403d5fa2772b3d5d9391a804866d15dce
[ "BSD-3-Clause" ]
null
null
null
import re from collections import defaultdict # Raw Regular expression list representing top players, to be processed by add_prefixes player_raw_regex_dict = { 'Global' : [ ['(mang[o0]$)', '(c9mang[o0]$)'], ['(armada$)', '(\[a\]rmada$)'], ['(ppmd$)', '(dr\. pp$)', '(dr\. peepee$)', '(dr pp$)', '(dr...
26.524741
176
0.499696
0d637b5484d27c8d71aac12a32802f93df3395c5
43,131
py
Python
azurelinuxagent/common/osutil/default.py
matkin-msft/jit_walinuxagent
ccd52807ab2c43548a4ef13d86ababeb7e3f8c1f
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/osutil/default.py
matkin-msft/jit_walinuxagent
ccd52807ab2c43548a4ef13d86ababeb7e3f8c1f
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/osutil/default.py
matkin-msft/jit_walinuxagent
ccd52807ab2c43548a4ef13d86ababeb7e3f8c1f
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 Microsoft Corporation # # 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 ...
39.138838
130
0.576569
428397a0733952980885a9fd8f40e0f0d40d646a
1,733
py
Python
code/gpu.py
michaelhball/ml_tidbits
55b77fded5f31cd280f043c8aa792a07ca572170
[ "MIT" ]
1
2021-04-15T19:42:51.000Z
2021-04-15T19:42:51.000Z
code/gpu.py
michaelhball/ml_toolshed
55b77fded5f31cd280f043c8aa792a07ca572170
[ "MIT" ]
null
null
null
code/gpu.py
michaelhball/ml_toolshed
55b77fded5f31cd280f043c8aa792a07ca572170
[ "MIT" ]
null
null
null
import GPUtil import os import tensorflow as tf def configure_gpu_tf(): """ This is an example for how to customise the search for a GPU for a specific job depending on hardware/organisational requirements. In this case, we have a machine with two GPUs on which we want to support three simultaneous GPU jo...
46.837838
123
0.691287
a7b89dbaa1a7be602a5376ba2673a804d362b6df
26,495
py
Python
cupy_setup_build.py
weareno1/cupy
ac52cce00b69d97b5d99bd1f91caed720b32b2d3
[ "MIT" ]
null
null
null
cupy_setup_build.py
weareno1/cupy
ac52cce00b69d97b5d99bd1f91caed720b32b2d3
[ "MIT" ]
null
null
null
cupy_setup_build.py
weareno1/cupy
ac52cce00b69d97b5d99bd1f91caed720b32b2d3
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse from distutils import ccompiler from distutils import errors from distutils import msvccompiler from distutils import sysconfig from distutils import unixccompiler import glob import os from os import path import shutil import sys import pkg_resources import setup...
33.708651
79
0.577316
918f436b82db51a2ad8adbde7cb609067acc167e
408
py
Python
tests/data/error_settings6.py
voyagegroup/apns-proxy-server
5858d1b33d37b9333ca153cd92f091bad9537455
[ "BSD-2-Clause" ]
16
2015-01-20T22:54:43.000Z
2021-07-07T03:33:04.000Z
tests/data/error_settings6.py
voyagegroup/apns-proxy-server
5858d1b33d37b9333ca153cd92f091bad9537455
[ "BSD-2-Clause" ]
null
null
null
tests/data/error_settings6.py
voyagegroup/apns-proxy-server
5858d1b33d37b9333ca153cd92f091bad9537455
[ "BSD-2-Clause" ]
6
2015-01-22T05:00:36.000Z
2022-03-03T15:20:00.000Z
# -*- coding: utf-8 -*- import logging LOG_LEVEL = logging.INFO # クライアントを待ちうけるポート BIND_PORT_FOR_ENTRY = 5556 # PUSH-PULL用のポート BIND_PORT_FOR_PULL = 5557 # アプリ毎のワーカースレッドの数 THREAD_NUMS_PER_APPLICATION = 5 # アプリ毎のAPNsの設定 APPLICATIONS = [ { "application_id": "14", "name": "My App1", "sandbox...
16.32
35
0.632353
fe98c361232dc55b23f29468636e5c8643126622
1,230
py
Python
runtests.py
agronick/django-vueformgenerator
6c59be1d06118327af08cc0e6260d234f12f715e
[ "MIT" ]
7
2016-10-20T11:49:01.000Z
2020-06-17T22:12:59.000Z
runtests.py
agronick/django-vueformgenerator
6c59be1d06118327af08cc0e6260d234f12f715e
[ "MIT" ]
2
2019-03-19T15:41:43.000Z
2019-03-29T17:39:44.000Z
runtests.py
agronick/django-vueformgenerator
6c59be1d06118327af08cc0e6260d234f12f715e
[ "MIT" ]
5
2016-12-01T15:41:15.000Z
2019-10-06T02:00:20.000Z
import sys try: from django.conf import settings from django.test.utils import get_runner settings.configure( DEBUG=True, USE_TZ=True, DATABASES={ "default": { "ENGINE": "django.db.backends.sqlite3", } }, ROOT_URLCONF="django_...
21.206897
72
0.580488
af0ee2a83a6cc55a3b75bc4ab5fe8d3bd90852c2
4,056
py
Python
pysnmp-with-texts/Brcm-BASPTrap-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/Brcm-BASPTrap-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/Brcm-BASPTrap-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 Brcm-BASPTrap-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Brcm-BASPTrap-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:42:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
115.885714
543
0.767012
040c1b0134e369a150b9ffb06884e625f0a4ef0f
2,035
py
Python
databricks/conftest.py
mercileesb/koalas
685176c512f31166f0e472aa0f461d0f1449fb0c
[ "Apache-2.0" ]
1
2021-01-17T18:26:33.000Z
2021-01-17T18:26:33.000Z
databricks/conftest.py
mercileesb/koalas
685176c512f31166f0e472aa0f461d0f1449fb0c
[ "Apache-2.0" ]
null
null
null
databricks/conftest.py
mercileesb/koalas
685176c512f31166f0e472aa0f461d0f1449fb0c
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
31.796875
94
0.749877
ceb5140de2fed287a4806326e253f7212cae60eb
4,835
py
Python
estimate.py
brunojacobs/ulsdpb
7beff2e5f086d352258cd128430ec16ebfde7d53
[ "MIT" ]
5
2020-11-14T09:59:03.000Z
2021-06-10T14:27:40.000Z
estimate.py
tanetpongc/ulsdpb
7beff2e5f086d352258cd128430ec16ebfde7d53
[ "MIT" ]
null
null
null
estimate.py
tanetpongc/ulsdpb
7beff2e5f086d352258cd128430ec16ebfde7d53
[ "MIT" ]
1
2021-04-28T10:44:04.000Z
2021-04-28T10:44:04.000Z
# Standard library modules from collections import namedtuple import argparse import os # External modules import numpy as np # Own modules import model.data import model.fixed import model.initialization import model.optimization import model.prior import model.state import settings # Numpy settings np.seterr(divi...
25.582011
77
0.739193
607757f90638850817a54f4ab190e200ae131cad
4,841
py
Python
virtual/lib/python3.6/site-packages/pip/_vendor/__init__.py
Lornakimani62/IP4-_One-Minute-Pitch
cabd4c9a2fc726f37fc98c5de561f3d86c6c66f9
[ "MIT" ]
548
2020-09-20T10:31:50.000Z
2022-03-31T06:18:04.000Z
virtual/lib/python3.6/site-packages/pip/_vendor/__init__.py
Lornakimani62/IP4-_One-Minute-Pitch
cabd4c9a2fc726f37fc98c5de561f3d86c6c66f9
[ "MIT" ]
24
2020-06-23T13:59:30.000Z
2022-03-08T23:26:34.000Z
virtual/lib/python3.6/site-packages/pip/_vendor/__init__.py
Lornakimani62/IP4-_One-Minute-Pitch
cabd4c9a2fc726f37fc98c5de561f3d86c6c66f9
[ "MIT" ]
216
2020-09-20T12:57:26.000Z
2022-03-20T14:07:04.000Z
""" pip._vendor is for vendoring dependencies of pip to prevent needing pip to depend on something external. Files inside of pip._vendor should be considered immutable and should only be updated to versions from upstream. """ from __future__ import absolute_import import glob import os.path import sys #...
44.009091
80
0.705639
bdf100e62f868bd64d5c5ddaa4ddc94899ceb31d
7,824
py
Python
mesh_writer.py
jasperges/blenderseed
971cfa0303a76684aaa6b896571b31e9b6b84955
[ "MIT" ]
null
null
null
mesh_writer.py
jasperges/blenderseed
971cfa0303a76684aaa6b896571b31e9b6b84955
[ "MIT" ]
null
null
null
mesh_writer.py
jasperges/blenderseed
971cfa0303a76684aaa6b896571b31e9b6b84955
[ "MIT" ]
null
null
null
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2014-2017 The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this s...
37.980583
105
0.595475
8c84819fca28bbd3c288793c49d66b29db01d0c4
2,018
py
Python
python/v2.1/get_creative_fields.py
falbassini/Samples
f7112c07fc8cbe583648f47f07dda54f769ca019
[ "Apache-2.0" ]
null
null
null
python/v2.1/get_creative_fields.py
falbassini/Samples
f7112c07fc8cbe583648f47f07dda54f769ca019
[ "Apache-2.0" ]
null
null
null
python/v2.1/get_creative_fields.py
falbassini/Samples
f7112c07fc8cbe583648f47f07dda54f769ca019
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2014 Google Inc. 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 b...
31.046154
77
0.708622
08c5162e09a73008ad632eac6a75924df95519bf
7,818
py
Python
sleap/gui/dialogs/delete.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/gui/dialogs/delete.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/gui/dialogs/delete.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
""" Dialog for deleting various subsets of instances in dataset. """ from sleap import LabeledFrame, Instance from sleap.gui.dialogs import formbuilder from PySide2 import QtCore, QtWidgets from typing import List, Text, Tuple class DeleteDialog(QtWidgets.QDialog): """ Dialog for deleting various subsets o...
32.17284
81
0.610003
73d5951630a93780aacd2a640a2670e9fcadff7e
2,200
py
Python
app/views.py
rafalbielech/Django-Home-application
cff6429e33a91336cb377fe01e86ff274ca56f43
[ "MIT" ]
null
null
null
app/views.py
rafalbielech/Django-Home-application
cff6429e33a91336cb377fe01e86ff274ca56f43
[ "MIT" ]
null
null
null
app/views.py
rafalbielech/Django-Home-application
cff6429e33a91336cb377fe01e86ff274ca56f43
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404, redirect from django.template import loader from django.http import HttpResponse from django import template from django.conf impor...
33.846154
94
0.650909
e28e98c87126f82d4fcb0ea3fa2c0973cce581a6
46,338
py
Python
youtuatools/options.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
47
2021-01-02T07:44:50.000Z
2022-02-28T22:02:13.000Z
youtuatools/options.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
4
2021-02-07T03:35:13.000Z
2021-10-31T19:23:53.000Z
youtuatools/options.py
Pagasis/YouTua
edb44b2065a7224f8b26aaf76166bf7287901567
[ "MIT" ]
8
2021-01-03T05:44:39.000Z
2021-11-01T05:46:32.000Z
from __future__ import unicode_literals import os.path import optparse import re import sys from .downloader.external import list_external_downloaders from .compat import ( compat_expanduser, compat_get_terminal_size, compat_getenv, compat_kwargs, compat_shlex_split, ) from .utils import ( pre...
32.156836
391
0.587207
be24de1b6910b3804a6e51f66f3e528cfc475dd5
1,828
py
Python
ENIAC/api/eniac_bps/loopback.py
webclinic017/fast_tools
144d764e4f169d3ab3753dcc6a79db9f9449de59
[ "Apache-2.0" ]
1
2021-12-11T16:33:54.000Z
2021-12-11T16:33:54.000Z
ENIAC/api/eniac_bps/loopback.py
webclinic017/fast_tools
144d764e4f169d3ab3753dcc6a79db9f9449de59
[ "Apache-2.0" ]
null
null
null
ENIAC/api/eniac_bps/loopback.py
webclinic017/fast_tools
144d764e4f169d3ab3753dcc6a79db9f9449de59
[ "Apache-2.0" ]
3
2021-11-22T09:46:43.000Z
2022-01-28T22:33:07.000Z
# loop 计算 from sanic.blueprints import Blueprint # from sanic import response # from sanic_openapi import doc # from kafka import KafkaProducer # import json # from ..models import StrategyDto loop = Blueprint('loop', url_prefix='/loop', strict_slashes=True) # # todo 上传文件 # @loop.put('/test', stream=True) # @doc.sum...
32.642857
96
0.643873
31c8a7cec4ca773907f5c66caf8a132cd9468cfb
7,494
py
Python
salt/modules/boto_sns.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/modules/boto_sns.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/modules/boto_sns.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' Connection module for Amazon SNS :configuration: This module accepts explicit sns credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further configuration is neces...
29.046512
119
0.678143
1a348a49900dd056d743b15b33cc3c9fb614b52b
4,576
py
Python
tokenization/vocab_tokenizers.py
popescuaaa/tudir
019846d1941f09fc7dc2e1c07e33d3f3d9f184dc
[ "MIT" ]
null
null
null
tokenization/vocab_tokenizers.py
popescuaaa/tudir
019846d1941f09fc7dc2e1c07e33d3f3d9f184dc
[ "MIT" ]
null
null
null
tokenization/vocab_tokenizers.py
popescuaaa/tudir
019846d1941f09fc7dc2e1c07e33d3f3d9f184dc
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.getcwd()) import torch import tokenizers import sklearn from tokenizers import SentencePieceBPETokenizer from tokenizers import SentencePieceUnigramTokenizer from tokenizers import BertWordPieceTokenizer from tokenizers import Tokenizer from tokenizers.models import...
29.908497
110
0.656906
b25e8b28532399c398d659e54ae34b1147636fea
14,443
py
Python
gdal/swig/python/osgeo/utils/gdal_edit.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
3,100
2015-01-02T10:33:40.000Z
2022-03-31T02:06:51.000Z
gdal/swig/python/osgeo/utils/gdal_edit.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
3,496
2015-01-06T16:53:30.000Z
2022-03-31T20:18:51.000Z
gdal/swig/python/osgeo/utils/gdal_edit.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
2,036
2015-01-08T20:22:12.000Z
2022-03-31T10:24:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL samples # Purpose: Edit in place various information of an existing GDAL dataset # Author: Even Rouault <even dot rouault at spatialys.com> # ###################...
33.666667
108
0.509797
f04ab7b3d23641af333b0a22ec60bcc6073e2a0a
4,571
py
Python
train.py
ultronify/cartpole-tf-aac
707586df3954d815e5a77a843347cf3560141387
[ "MIT" ]
null
null
null
train.py
ultronify/cartpole-tf-aac
707586df3954d815e5a77a843347cf3560141387
[ "MIT" ]
null
null
null
train.py
ultronify/cartpole-tf-aac
707586df3954d815e5a77a843347cf3560141387
[ "MIT" ]
null
null
null
import gym import numpy as np import tensorflow as tf from tensorflow import optimizers from tensorflow.keras.models import Model from tensorflow.keras.layers import Dense class ActorCriticModel(Model): def __init__(self, action_space_size, state_space_size): super(ActorCriticModel, self).__init__() ...
39.405172
88
0.643404
aead49251f6b3306225a5b97f50295ffb36ae4b1
753
py
Python
examples/sqs_queue_create.py
Neki/aiobotocore
0b71254446ef7ba6d93016d5a8b5b02c665a7b0b
[ "Apache-2.0" ]
772
2016-02-12T13:20:26.000Z
2022-03-29T20:51:37.000Z
examples/sqs_queue_create.py
Neki/aiobotocore
0b71254446ef7ba6d93016d5a8b5b02c665a7b0b
[ "Apache-2.0" ]
826
2016-02-14T11:31:25.000Z
2022-03-31T20:41:31.000Z
examples/sqs_queue_create.py
Neki/aiobotocore
0b71254446ef7ba6d93016d5a8b5b02c665a7b0b
[ "Apache-2.0" ]
154
2016-04-28T16:27:33.000Z
2022-03-05T19:41:52.000Z
# Boto should get credentials from ~/.aws/credentials or the environment import asyncio from aiobotocore.session import get_session async def go(): session = get_session() async with session.create_client('sqs', region_name='us-west-2') as client: print('Creating test_queue1') response = awa...
25.965517
79
0.661355
1df3aa3c66284441527ce80a79ca00d41ced19a0
3,195
py
Python
projecto/settings.py
bfaguiar/Venda-d-Garagem
6a3bc554afe302bb65a0d2e18ddf796e60998442
[ "MIT" ]
null
null
null
projecto/settings.py
bfaguiar/Venda-d-Garagem
6a3bc554afe302bb65a0d2e18ddf796e60998442
[ "MIT" ]
null
null
null
projecto/settings.py
bfaguiar/Venda-d-Garagem
6a3bc554afe302bb65a0d2e18ddf796e60998442
[ "MIT" ]
1
2022-03-08T18:01:18.000Z
2022-03-08T18:01:18.000Z
""" Django settings for projecto project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os fr...
25.357143
91
0.695149
d189923bb0e3eb39599153ba2ab5974d84e0220b
16,646
py
Python
tests/test_graph.py
usnistgov/corr-reprozip
17a7b614d859736a37cb09582c4ae90c29dd4ffb
[ "BSD-3-Clause" ]
null
null
null
tests/test_graph.py
usnistgov/corr-reprozip
17a7b614d859736a37cb09582c4ae90c29dd4ffb
[ "BSD-3-Clause" ]
null
null
null
tests/test_graph.py
usnistgov/corr-reprozip
17a7b614d859736a37cb09582c4ae90c29dd4ffb
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2014-2017 New York University # This file is part of ReproZip which is released under the Revised BSD License # See file LICENSE for full license details. from __future__ import print_function, unicode_literals import json import os from rpaths import Path import sys import unittest from reprounzip.c...
37.406742
79
0.453562
de2a48c8c397ca42027ad123fc42a86d807d34fd
714
py
Python
Chapter 04/graph.py
bpbpublications/Python-Quick-Interview-Guide
ab4ff3e670b116a4db6b9e1f0ccba8424640704d
[ "MIT" ]
1
2021-05-14T19:53:41.000Z
2021-05-14T19:53:41.000Z
Chapter 04/graph.py
bpbpublications/Python-Quick-Interview-Guide
ab4ff3e670b116a4db6b9e1f0ccba8424640704d
[ "MIT" ]
null
null
null
Chapter 04/graph.py
bpbpublications/Python-Quick-Interview-Guide
ab4ff3e670b116a4db6b9e1f0ccba8424640704d
[ "MIT" ]
null
null
null
from collections import defaultdict class Graph: def __init__(self): self.graph = defaultdict(list)#Create empty dictionary def insertEdge(self, v1, v2): self.graph[v1].append(v2)#Add v2 to list of v1 self.graph[v2].append(v1)#Add v1 to list of v2 def printGraph(self): ...
28.56
70
0.581232
9ae4b726f5a051910641ea70d76b9647f85bbcaa
4,928
py
Python
scripts/irods/test/test_quotas.py
tempoz/irods
a64c5e9cfb86af725f8f20ae940591adef8e02f0
[ "BSD-3-Clause" ]
1
2020-05-31T17:00:37.000Z
2020-05-31T17:00:37.000Z
scripts/irods/test/test_quotas.py
tempoz/irods
a64c5e9cfb86af725f8f20ae940591adef8e02f0
[ "BSD-3-Clause" ]
null
null
null
scripts/irods/test/test_quotas.py
tempoz/irods
a64c5e9cfb86af725f8f20ae940591adef8e02f0
[ "BSD-3-Clause" ]
2
2015-10-29T03:37:30.000Z
2015-12-16T15:09:14.000Z
import inspect import os import re import sys import time if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest from . import resource_suite from .. import lib from .. import paths from ..core_file import temporary_core_file from ..configuration import IrodsConfig from .rule_texts_f...
54.755556
141
0.630276
66f74a5f805188c2af606948e61064f9646f8d44
18,044
py
Python
test/fake_account_client.py
daka1510/qiskit-ibm-provider
74fdae4457e6f15ba445a8742a25ac7a714ea51b
[ "Apache-2.0" ]
null
null
null
test/fake_account_client.py
daka1510/qiskit-ibm-provider
74fdae4457e6f15ba445a8742a25ac7a714ea51b
[ "Apache-2.0" ]
null
null
null
test/fake_account_client.py
daka1510/qiskit-ibm-provider
74fdae4457e6f15ba445a8742a25ac7a714ea51b
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
33.853659
88
0.609787
da8867e7279143c3fcf70ba5902655485e39014a
2,818
py
Python
examples/fedprox/generate_configs.py
wynterl/federated-learning-lib
5d6cc0a5f4a45d97525ff2dec328b3901b71b7a3
[ "IBM-pibs" ]
null
null
null
examples/fedprox/generate_configs.py
wynterl/federated-learning-lib
5d6cc0a5f4a45d97525ff2dec328b3901b71b7a3
[ "IBM-pibs" ]
null
null
null
examples/fedprox/generate_configs.py
wynterl/federated-learning-lib
5d6cc0a5f4a45d97525ff2dec328b3901b71b7a3
[ "IBM-pibs" ]
1
2021-05-11T05:09:30.000Z
2021-05-11T05:09:30.000Z
import os from importlib import import_module import examples.datahandlers as datahandlers from examples.fedprox.model import MyModel def get_fusion_config(): fusion = { 'name': 'IterAvgFusionHandler', 'path': 'ibmfl.aggregator.fusion.iter_avg_fusion_handler' } return fusion def get_loc...
25.853211
86
0.542583
42801709317b853554b2d62714ca9f85036ec05c
576
py
Python
tests/test001/hud.py
marza-animation-planet/das
1c7460dfdd5f138d8317c72900e90b23c0c28c7b
[ "MIT" ]
4
2018-11-19T01:36:01.000Z
2022-02-28T03:41:12.000Z
tests/test001/hud.py
marza-animation-planet/das
1c7460dfdd5f138d8317c72900e90b23c0c28c7b
[ "MIT" ]
1
2021-12-26T11:57:07.000Z
2022-03-16T07:18:01.000Z
tests/test001/hud.py
marza-animation-planet/das
1c7460dfdd5f138d8317c72900e90b23c0c28c7b
[ "MIT" ]
2
2019-03-30T10:28:12.000Z
2022-03-04T17:58:39.000Z
__all__ = ["Attribute"] class Attribute(object): def __init__(self, attr=""): super(Attribute, self).__init__() self.attr = attr def copy(self): return Attribute(self.attr) def value_to_string(self): return self.attr def string_to_value(self, s): self.attr = s # def __...
19.862069
60
0.581597
de741fd18d641d6a5fca282fd546a0d0a3eecf42
8,655
py
Python
airbyte-integrations/connectors/source-stock-ticker-api-tutorial/source.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-stock-ticker-api-tutorial/source.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-stock-ticker-api-tutorial/source.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 Airbyte Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
41.018957
139
0.678336
f33dbc025ee623ac05f8905db0d4cf6a02df45a0
2,391
py
Python
src/algorithm/sbcn.py
ShuhuaGao/sbcn_mmc
f00dea13c978cd97ad4a5c4b9eda48b5202239db
[ "MIT" ]
null
null
null
src/algorithm/sbcn.py
ShuhuaGao/sbcn_mmc
f00dea13c978cd97ad4a5c4b9eda48b5202239db
[ "MIT" ]
null
null
null
src/algorithm/sbcn.py
ShuhuaGao/sbcn_mmc
f00dea13c978cd97ad4a5c4b9eda48b5202239db
[ "MIT" ]
null
null
null
""" Switched Boolean Control Network Author: Gao Shuhua Date: 2019/10/18 """ class SBCN: """ Switched BCN """ def __init__(self, n, m, w, Ls, g, Cx=None, Cu=None, Cs=None): """ Initialize a switched Boolean network. :param n: number of state variables :param m: number...
36.227273
109
0.528649
5ffb22d6ec2fd8a397d2e00d794a058d7b40750f
13
py
Python
test.py
SoheilKhodayari/Graph
2cefa75da2dfc34e30c5f5784e180a5dc79d9095
[ "MIT" ]
1
2015-05-05T22:08:37.000Z
2015-05-05T22:08:37.000Z
test.py
SoheilKhodayari/Graph
2cefa75da2dfc34e30c5f5784e180a5dc79d9095
[ "MIT" ]
null
null
null
test.py
SoheilKhodayari/Graph
2cefa75da2dfc34e30c5f5784e180a5dc79d9095
[ "MIT" ]
null
null
null
""" Test """
6.5
12
0.307692
f7eb6e9870586c3a8fc3dd34ee8247899a75163b
5,802
py
Python
src/gym_selfx/render/draw.py
mountain/self
189e00e810d4d719fa6b37b400eef17d2521a64c
[ "MIT" ]
5
2019-12-30T16:18:06.000Z
2022-03-22T17:36:09.000Z
src/gym_selfx/render/draw.py
mountain/self
189e00e810d4d719fa6b37b400eef17d2521a64c
[ "MIT" ]
2
2019-12-30T10:09:15.000Z
2020-01-03T02:48:18.000Z
src/gym_selfx/render/draw.py
mountain/self
189e00e810d4d719fa6b37b400eef17d2521a64c
[ "MIT" ]
3
2019-12-30T06:10:04.000Z
2021-04-23T09:37:48.000Z
# -*- coding: utf-8 -*- # # Python version Copyright (c) 2015 John Stowers # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # arising from the use of this software. # Permission is granted to anyone to use this software for an...
38.939597
151
0.616512
b68f35fe788668680ef195a390beb63c42b1e2a4
80,850
py
Python
bayespy/inference/vmp/nodes/gaussian.py
deebuls/bayespy
9b037eefeca3657f6f78d9e90b49aa619a89b4f1
[ "MIT" ]
1
2021-06-02T21:31:47.000Z
2021-06-02T21:31:47.000Z
bayespy/inference/vmp/nodes/gaussian.py
libpcap/bayespy
9b037eefeca3657f6f78d9e90b49aa619a89b4f1
[ "MIT" ]
null
null
null
bayespy/inference/vmp/nodes/gaussian.py
libpcap/bayespy
9b037eefeca3657f6f78d9e90b49aa619a89b4f1
[ "MIT" ]
null
null
null
################################################################################ # Copyright (C) 2011-2014 Jaakko Luttinen # # This file is licensed under the MIT License. ################################################################################ """ Module for the Gaussian distribution and similar distribution...
30.258234
108
0.506395
bb0929aa7baffd8ed84098b3f43a53f112a87b4b
8,244
py
Python
oskut/deepcut/train.py
mrpeerat/OSKut
0c103cde154fe7b93ac8228b9bb1123a992b51c8
[ "MIT" ]
14
2021-08-01T06:18:30.000Z
2022-03-31T17:20:24.000Z
oskut/deepcut/train.py
mrpeerat/OSKut
0c103cde154fe7b93ac8228b9bb1123a992b51c8
[ "MIT" ]
null
null
null
oskut/deepcut/train.py
mrpeerat/OSKut
0c103cde154fe7b93ac8228b9bb1123a992b51c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 import os from glob import glob import pandas as pd from functools import reduce from sklearn.model_selection import train_test_split from sklearn.metrics import precision_score, recall_score, f1_score from tensorflow.keras.callbacks import ModelCheckpoint, ReduceLROnPlateau fro...
37.990783
123
0.634522
6015900cb87cb201b2737301cd7617275b986616
11,215
py
Python
families/config/sawtooth_config/processor/handler.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
families/config/sawtooth_config/processor/handler.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
families/config/sawtooth_config/processor/handler.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation # # 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 wri...
34.296636
80
0.654837
a0cdc2f5a3a8a8e55e98756b7a91d9b34190940f
1,292
py
Python
main.py
GhostUser/Flappy-Bird-
31279674b3d82244aa326726f399aeb056d83377
[ "MIT" ]
null
null
null
main.py
GhostUser/Flappy-Bird-
31279674b3d82244aa326726f399aeb056d83377
[ "MIT" ]
4
2020-10-22T16:10:12.000Z
2020-10-22T16:13:53.000Z
main.py
GhostUser/Flappy-Bird-
31279674b3d82244aa326726f399aeb056d83377
[ "MIT" ]
null
null
null
import pygame from pygame import event import sys class Screen: NUM_BLOCKS_X = 9 NUM_BLOCKS_Y = 17 block_size = 30 WIDTH, HEIGHT = block_size * NUM_BLOCKS_X, block_size * NUM_BLOCKS_Y FPS = 32 window=pygame.display.set_mode((WIDTH,HEIGHT)) bg=pygame.image.load('pictures\\background.png') ...
20.507937
72
0.643189
0a95585cb90415a4450e8f3af559e5c8fea63e15
1,391
py
Python
demos/mlp/vae_train.py
Ryandry1st/vampyre
43bd6198ee0cbe0d3270d0c674127c7cbbb4c95e
[ "MIT" ]
59
2017-01-27T22:36:38.000Z
2021-12-08T04:16:13.000Z
demos/mlp/vae_train.py
Ryandry1st/vampyre
43bd6198ee0cbe0d3270d0c674127c7cbbb4c95e
[ "MIT" ]
10
2017-01-11T15:16:11.000Z
2021-02-17T10:43:51.000Z
demos/mlp/vae_train.py
Ryandry1st/vampyre
43bd6198ee0cbe0d3270d0c674127c7cbbb4c95e
[ "MIT" ]
18
2017-01-11T14:58:32.000Z
2021-05-03T16:34:53.000Z
""" vae_train.py: Trains the VAE using the MNIST dataset. """ from __future__ import division from __future__ import print_function import vae import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import numpy as np import argparse """ Parse arguments from command line """ parser = argp...
26.245283
85
0.735442
6df4631f5aeaddf9a16f50efad515a5100494ee7
35,229
py
Python
tests/test_dates.py
behnam/python-babel
1378a3d5e7f7f111ea7828ff7429f0abbb513700
[ "BSD-3-Clause" ]
null
null
null
tests/test_dates.py
behnam/python-babel
1378a3d5e7f7f111ea7828ff7429f0abbb513700
[ "BSD-3-Clause" ]
null
null
null
tests/test_dates.py
behnam/python-babel
1378a3d5e7f7f111ea7828ff7429f0abbb513700
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2011 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software consists...
44.481061
130
0.626416
dd5536af6c031bbc5a89817e4396567c81c14d6d
5,184
py
Python
tests/test_pytest_runner.py
dshkuratov/dibctl
0467ed862c021315210ce76380feaa3cc09251d8
[ "Apache-2.0" ]
null
null
null
tests/test_pytest_runner.py
dshkuratov/dibctl
0467ed862c021315210ce76380feaa3cc09251d8
[ "Apache-2.0" ]
null
null
null
tests/test_pytest_runner.py
dshkuratov/dibctl
0467ed862c021315210ce76380feaa3cc09251d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import mock import pytest import os import inspect import sys from mock import sentinel import paramiko @pytest.fixture def pytest_runner(): from dibctl import pytest_runner return pytest_runner @pytest.fixture def ssh(): from dibctl import ssh return ssh @pytest.fixture def prep...
28.640884
91
0.67689
3cf84acef2fb4408c72cbb12dd25e045a5f82917
934
py
Python
examples/utils/test_throughput.py
case547/acconeer-python-exploration
e92de2c3bc8b60939276128e1ddca47486cdfb54
[ "BSD-3-Clause-Clear" ]
117
2018-09-19T14:31:55.000Z
2022-03-21T05:14:53.000Z
examples/utils/test_throughput.py
case547/acconeer-python-exploration
e92de2c3bc8b60939276128e1ddca47486cdfb54
[ "BSD-3-Clause-Clear" ]
100
2019-03-11T04:54:54.000Z
2022-03-23T12:40:05.000Z
examples/utils/test_throughput.py
case547/acconeer-python-exploration
e92de2c3bc8b60939276128e1ddca47486cdfb54
[ "BSD-3-Clause-Clear" ]
52
2019-06-16T13:35:29.000Z
2022-03-07T14:29:13.000Z
import acconeer.exptool as et def main(): args = et.utils.ExampleArgumentParser().parse_args() et.utils.config_logging(args) if args.socket_addr: client = et.SocketClient(args.socket_addr) elif args.spi: client = et.SPIClient() else: port = args.serial_port or et.utils.aut...
24.578947
69
0.662741
4b52347adcacd02db42f7e4166319cae9bcad209
3,918
py
Python
isi_sdk_8_0_1/isi_sdk_8_0_1/models/id_resolution_path.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0_1/isi_sdk_8_0_1/models/id_resolution_path.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0_1/isi_sdk_8_0_1/models/id_resolution_path.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 4 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class IdResolutionPath(object): ...
27.398601
119
0.55998
d1f94738e664179ac2649184bb7be9e6c1fe1a88
1,291
py
Python
final/100401053/client/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
1
2021-05-04T21:46:08.000Z
2021-05-04T21:46:08.000Z
final/100401053/client/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
final/100401053/client/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
import socket import sys,os,time from datetime import datetime #Ahmet Orbay 100401053 def setComputerTime(totalTime): command=datetime.fromtimestamp(totalTime) os.system("sudo date --s '%s'" % command) def ConnectionServerTime(server,port): try: server_address = (server, int(port)) ...
29.340909
82
0.63749
1d2af1023baccf44a83df198205873c5a037c772
4,596
py
Python
tests/forecast/test_forecast_ensemble.py
mbignotti/Merlion
195b6828d7c147c42fc62a59c97076b597bd590d
[ "BSD-3-Clause" ]
2,215
2021-09-21T18:11:36.000Z
2022-03-31T20:21:42.000Z
tests/forecast/test_forecast_ensemble.py
mbignotti/Merlion
195b6828d7c147c42fc62a59c97076b597bd590d
[ "BSD-3-Clause" ]
56
2021-09-22T14:45:50.000Z
2022-03-29T22:28:19.000Z
tests/forecast/test_forecast_ensemble.py
mbignotti/Merlion
195b6828d7c147c42fc62a59c97076b597bd590d
[ "BSD-3-Clause" ]
181
2021-09-22T09:04:22.000Z
2022-03-29T16:04:43.000Z
# # Copyright (c) 2022 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause # import logging from os.path import abspath, dirname, join import sys import unittest import numpy a...
45.058824
119
0.699086
385a19024d8770c1df32dd3538b1925706a04134
4,770
py
Python
examples/nas/search_space_zoo/enas_micro_example.py
tblanchart/nni
bbb9137c323316d6de04e15d42cf6dc47a889fcc
[ "MIT" ]
2
2020-08-11T14:04:21.000Z
2020-09-28T05:39:57.000Z
examples/nas/search_space_zoo/enas_micro_example.py
ajeets1978/nni
41312de5dcbe8ba1f59c08a7b62fd5207f623804
[ "MIT" ]
21
2020-11-13T19:01:01.000Z
2022-02-27T09:12:51.000Z
examples/nas/search_space_zoo/enas_micro_example.py
johnarthur1/nni
2d026a13f97612bc7961d5a55f5088a169de9ee9
[ "MIT" ]
null
null
null
import torch import logging import torch.nn as nn import torch.nn.functional as F from argparse import ArgumentParser from torchvision import transforms from torchvision.datasets import CIFAR10 from nni.nas.pytorch import enas from utils import accuracy, reward_accuracy from nni.nas.pytorch.callbacks import (Architec...
36.136364
118
0.621593
12dd1a66998ef6595073e613c4b246e981e7cfbe
12,729
py
Python
nevergrad/benchmark/xpbase.py
mehrdad-shokri/nevergrad
7b68b00c158bf60544bc45997560edf733fb5812
[ "MIT" ]
2
2021-04-13T12:14:46.000Z
2021-07-07T14:37:50.000Z
nevergrad/benchmark/xpbase.py
mehrdad-shokri/nevergrad
7b68b00c158bf60544bc45997560edf733fb5812
[ "MIT" ]
1
2020-09-25T10:45:06.000Z
2020-09-25T11:51:13.000Z
nevergrad/benchmark/xpbase.py
mehrdad-shokri/nevergrad
7b68b00c158bf60544bc45997560edf733fb5812
[ "MIT" ]
1
2021-04-07T10:34:20.000Z
2021-04-07T10:34:20.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import sys import time import random import numbers import warnings import traceback import typing as tp import numpy as ...
46.97048
130
0.668238
b5d2b6c3ec84a6930c59daaa47643def19c125ea
12,635
py
Python
config/settings/base.py
BuildForSDGCohort2/disposify
1fad6644e4693eb8a31119430e4129fc4cdf09f5
[ "MIT" ]
null
null
null
config/settings/base.py
BuildForSDGCohort2/disposify
1fad6644e4693eb8a31119430e4129fc4cdf09f5
[ "MIT" ]
8
2020-10-01T11:29:44.000Z
2020-10-07T08:55:49.000Z
config/settings/base.py
BuildForSDGCohort2/wasteline
1fad6644e4693eb8a31119430e4129fc4cdf09f5
[ "MIT" ]
1
2020-10-03T15:17:20.000Z
2020-10-03T15:17:20.000Z
""" Base settings to build other settings files upon. """ from pathlib import Path import environ ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent # disposify/ APPS_DIR = ROOT_DIR / "disposify" env = environ.Env() READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False) if READ_DOT_...
39.361371
93
0.628255
16e76517e485cf0a5c4f9b643ffb5874b8327122
83,447
py
Python
lib/extern/closure-linter/gflags.py
moonshadowmobile/cast
5acaabdb711c208aadeb74c96dfdd663c0aac1c2
[ "Apache-2.0" ]
7
2015-07-15T20:11:05.000Z
2021-05-22T16:07:07.000Z
lib/extern/closure-linter/gflags.py
moonshadowmobile/cast
5acaabdb711c208aadeb74c96dfdd663c0aac1c2
[ "Apache-2.0" ]
4
2018-02-13T17:20:10.000Z
2018-02-13T17:20:41.000Z
lib/extern/closure-linter/gflags.py
moonshadowmobile/cast
5acaabdb711c208aadeb74c96dfdd663c0aac1c2
[ "Apache-2.0" ]
1
2015-04-14T12:54:31.000Z
2015-04-14T12:54:31.000Z
#!/usr/bin/env python # Copyright (c) 2007, 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 l...
36.092993
80
0.684854
4c9ac512b465522f228ef340e17f6559998f9fc2
800
py
Python
journal/models/__init__.py
kevinlee12/cas
1284d5a05731e441d523a4894a28e8a194c491f0
[ "Apache-2.0" ]
null
null
null
journal/models/__init__.py
kevinlee12/cas
1284d5a05731e441d523a4894a28e8a194c491f0
[ "Apache-2.0" ]
3
2015-04-19T03:00:57.000Z
2015-04-19T03:02:20.000Z
journal/models/__init__.py
kevinlee12/cas
1284d5a05731e441d523a4894a28e8a194c491f0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2015 The iU 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...
34.782609
74
0.76125
0db21852b121da5fd8bbaccc2686f59fa3926e57
6,559
py
Python
pythonModules.py
ahmedelg/pythonModules
fe5779a7aea4224fc5658a4557c4be92b8343fe8
[ "MIT" ]
null
null
null
pythonModules.py
ahmedelg/pythonModules
fe5779a7aea4224fc5658a4557c4be92b8343fe8
[ "MIT" ]
null
null
null
pythonModules.py
ahmedelg/pythonModules
fe5779a7aea4224fc5658a4557c4be92b8343fe8
[ "MIT" ]
null
null
null
from urllib.request import urlopen from bs4 import BeautifulSoup import csv from urllib.error import URLError from urllib.error import HTTPError # button-group--pagination # unstyled # https://pypi.org/search/?c=Topic+%3A%3A+Software+Development+%3A%3A+Libraries+%3A%3A+Python+Modules&page=3 # https://pypi.org/search/...
29.813636
125
0.620369
6f0d03b83b8ac780e90760fe850e49d8e9cd7251
28,034
py
Python
s3fm/ui/filepane.py
kazhala/s3fm
99fb41427b502dcd292e413f5e9fc18675ce7066
[ "MIT" ]
null
null
null
s3fm/ui/filepane.py
kazhala/s3fm
99fb41427b502dcd292e413f5e9fc18675ce7066
[ "MIT" ]
null
null
null
s3fm/ui/filepane.py
kazhala/s3fm
99fb41427b502dcd292e413f5e9fc18675ce7066
[ "MIT" ]
null
null
null
"""Module contains the main filepane which is used as the left/right pane.""" import asyncio import math from functools import wraps from pathlib import Path from typing import Awaitable, Callable, Dict, List, Optional, Tuple from prompt_toolkit.filters.base import Condition from prompt_toolkit.layout.containers impor...
35.218593
134
0.574445
1fe93ba9555bd08b02e2aefd416fba705baac027
3,639
py
Python
taotao-cloud-python/taotao-cloud-oldboy/day13-python-list-tuple-dict/s2.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
47
2021-04-13T10:32:13.000Z
2022-03-31T10:30:30.000Z
taotao-cloud-python/taotao-cloud-oldboy/day13-python-list-tuple-dict/s2.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
1
2021-11-01T07:41:04.000Z
2021-11-01T07:41:10.000Z
taotao-cloud-python/taotao-cloud-oldboy/day13-python-list-tuple-dict/s2.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
21
2021-04-13T10:32:17.000Z
2022-03-26T07:43:22.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # l = [11,22,33,44,55,66,77,88,99,90] # result = {} # # {'k1': [77, 88, 99, 90], 'k2': [11, 22, 33, 44, 55]} # # for item in l: # if item < 66: # # result.update({"k1": item}) # {'k1':11} # # {'k1': [11,22]} # if "k1" not in result: # ...
20.559322
91
0.446826
7543cabdf06b0b9412148757c651935af94961fd
9,981
py
Python
research/cv/faster_rcnn_dcn/src/FasterRcnn/bbox_assign_sample_stage2.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/faster_rcnn_dcn/src/FasterRcnn/bbox_assign_sample_stage2.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/faster_rcnn_dcn/src/FasterRcnn/bbox_assign_sample_stage2.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
50.409091
117
0.684901
935de52bc6bb9c2fe214f434a06015f22ca604b3
1,882
py
Python
tests/models/test_token.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
13
2017-03-17T15:15:20.000Z
2022-03-14T22:24:10.000Z
tests/models/test_token.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
81
2017-01-12T23:06:48.000Z
2022-02-21T18:20:23.000Z
tests/models/test_token.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
14
2017-05-25T10:49:13.000Z
2021-12-27T16:39:20.000Z
"""Split model tests module.""" from splitio.models import token from splitio.models.grammar.condition import Condition class TokenTests(object): """Token model tests.""" raw_false = {'pushEnabled': False} def test_from_raw_false(self): """Test token model parsing.""" parsed = token.from...
43.767442
574
0.74017
2afca2662f426152dedebff27b528eae90777478
9,291
py
Python
.pc/hg-updates.diff/Lib/ctypes/test/test_numbers.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
1,872
2015-01-02T18:56:47.000Z
2022-03-31T07:34:39.000Z
.pc/hg-updates.diff/Lib/ctypes/test/test_numbers.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
675
2015-02-27T09:01:01.000Z
2022-03-31T14:03:25.000Z
.pc/hg-updates.diff/Lib/ctypes/test/test_numbers.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
278
2015-01-02T03:48:20.000Z
2022-03-29T20:40:44.000Z
from ctypes import * import unittest import struct def valid_ranges(*types): # given a sequence of numeric types, collect their _type_ # attribute, which is a single format character compatible with # the struct module, use the struct module to calculate the # minimum and maximum value allowed for this...
31.927835
78
0.578194
d0abab780fce5c6ef0a78f8745e2f8cd1e82f7cc
4,826
py
Python
TIDALDL-PY/tidal_dl/lang/croatian.py
DragonightFury/Tidal-Media-Downloader
a2eb174b686eb80449de773860f27fdc0c7d06e7
[ "Apache-2.0" ]
null
null
null
TIDALDL-PY/tidal_dl/lang/croatian.py
DragonightFury/Tidal-Media-Downloader
a2eb174b686eb80449de773860f27fdc0c7d06e7
[ "Apache-2.0" ]
null
null
null
TIDALDL-PY/tidal_dl/lang/croatian.py
DragonightFury/Tidal-Media-Downloader
a2eb174b686eb80449de773860f27fdc0c7d06e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : croatian.py @Time : 2020/08/19 @Author : Yaronzz @Version : 1.0 @Contact : yaronhuang@foxmail.com @Desc : ''' class LangCroatian(object): SETTING = "POSTAVKE" VALUE = "VRIJEDNOST" SETTING_DOWNLOAD_PATH = "puta...
44.275229
106
0.688148
cbd2286666be06e9d4bf6c6f6472846a7b2546b0
691
py
Python
CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/analysis/__init__.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
7
2016-05-20T21:56:39.000Z
2022-02-07T21:09:48.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/analysis/__init__.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2019-03-21T16:10:04.000Z
2019-03-22T17:21:56.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/analysis/__init__.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2020-05-19T16:17:17.000Z
2020-05-19T16:17:17.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** # ...
34.55
71
0.321274
2815cbe6b04174d464e79a9419108d469f5fa244
852
py
Python
businesslayer/ai/deep-learning/tensorflow/scripts/Tensorflow2Mnist.py
dragomirdev/DataTachyonPlatform
733ce014b33942d1962b1d4c80aae47699e9ff15
[ "CC-BY-4.0", "MIT" ]
null
null
null
businesslayer/ai/deep-learning/tensorflow/scripts/Tensorflow2Mnist.py
dragomirdev/DataTachyonPlatform
733ce014b33942d1962b1d4c80aae47699e9ff15
[ "CC-BY-4.0", "MIT" ]
null
null
null
businesslayer/ai/deep-learning/tensorflow/scripts/Tensorflow2Mnist.py
dragomirdev/DataTachyonPlatform
733ce014b33942d1962b1d4c80aae47699e9ff15
[ "CC-BY-4.0", "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from tensorflow.keras.layers import Dense, Flatten, Conv2D from tensorflow.keras import Model try: mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train, ...
29.37931
82
0.679577
f3a5f9f3223abaee4e73bf73d24077d9b70e7099
1,490
py
Python
src/regression/processing.py
satishukadam/regression
a135bf99411fc22ab71297727e4542cb505b4bcf
[ "MIT" ]
null
null
null
src/regression/processing.py
satishukadam/regression
a135bf99411fc22ab71297727e4542cb505b4bcf
[ "MIT" ]
7
2019-11-07T15:11:32.000Z
2019-11-07T15:11:41.000Z
src/regression/processing.py
satishukadam/regression
a135bf99411fc22ab71297727e4542cb505b4bcf
[ "MIT" ]
null
null
null
from regression.preparation import get_features, load_dataset from configs import config from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler, OneHotEncoder from sklearn.impute import SimpleImputer from sklearn.compose import ColumnTransformer from sklearn.linear_model import LinearReg...
39.210526
112
0.743624
80e4314b3c231d28c87f5b781a27a1205d4bc563
13,527
py
Python
django/core/management/commands/makemigrations.py
tqrg-bot/django
67b46ba7016da2d259c1ecc7d666d11f5e1cfaab
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/core/management/commands/makemigrations.py
tqrg-bot/django
67b46ba7016da2d259c1ecc7d666d11f5e1cfaab
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/core/management/commands/makemigrations.py
tqrg-bot/django
67b46ba7016da2d259c1ecc7d666d11f5e1cfaab
[ "PSF-2.0", "BSD-3-Clause" ]
1
2019-10-22T12:16:53.000Z
2019-10-22T12:16:53.000Z
import os import sys import warnings from itertools import takewhile from django.apps import apps from django.core.management.base import BaseCommand, CommandError from django.db.migrations import Migration from django.db.migrations.autodetector import MigrationAutodetector from django.db.migrations.loader import Migr...
47.968085
107
0.584017
c17405620d34f862632532bc76b5f404e23a1fdd
4,796
py
Python
FB2/FB2Builder.py
Ae-Mc/FB2
2c29f774ab08bdad5bd6144b1be71b93146ce8fe
[ "MIT" ]
3
2020-11-15T10:55:22.000Z
2022-02-09T19:45:52.000Z
FB2/FB2Builder.py
Ae-Mc/FB2
2c29f774ab08bdad5bd6144b1be71b93146ce8fe
[ "MIT" ]
1
2020-11-15T11:04:59.000Z
2020-11-19T22:12:52.000Z
FB2/FB2Builder.py
Ae-Mc/FB2
2c29f774ab08bdad5bd6144b1be71b93146ce8fe
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from base64 import b64encode from typing import List, Tuple, Union from xml.dom import minidom from .builders import TitleInfoBuilder, DocumentInfoBuilder from .TitleInfo import TitleInfo from .FictionBook2dataclass import FictionBook2dataclass class FB2Builder: book: FictionBo...
40.644068
79
0.605713
0986ddf4d14f111911e184d838621d65c209eebd
1,547
py
Python
async_metrics/asyncio.py
amenezes/async_metrics
28a2ead455830a629c89807eda93b4ab5ed3c661
[ "Apache-2.0" ]
2
2021-09-02T11:45:29.000Z
2021-09-02T11:48:38.000Z
async_metrics/asyncio.py
amenezes/async_metrics
28a2ead455830a629c89807eda93b4ab5ed3c661
[ "Apache-2.0" ]
null
null
null
async_metrics/asyncio.py
amenezes/async_metrics
28a2ead455830a629c89807eda93b4ab5ed3c661
[ "Apache-2.0" ]
null
null
null
import asyncio import inspect from typing import Dict, List from async_metrics.utils import measure_time_elapsed def loop_info() -> List[Dict]: """Show information about running loop.""" loop = asyncio.get_event_loop() return [ { "running": loop.is_running(), "policy": str...
23.8
89
0.585003
f848347efbeb846cc8001159378d4f39edff1beb
15,858
py
Python
distributed_resource_allocator/src/tests/test_simple_dtn_sim.py
nasa/MOSAIC
af396ec450bd9f6f95fc5c603e13964035e05cd6
[ "Apache-2.0" ]
18
2019-04-01T02:58:38.000Z
2022-01-02T07:31:03.000Z
distributed_resource_allocator/src/tests/test_simple_dtn_sim.py
nasa/MOSAIC
af396ec450bd9f6f95fc5c603e13964035e05cd6
[ "Apache-2.0" ]
null
null
null
distributed_resource_allocator/src/tests/test_simple_dtn_sim.py
nasa/MOSAIC
af396ec450bd9f6f95fc5c603e13964035e05cd6
[ "Apache-2.0" ]
3
2019-11-04T01:52:50.000Z
2021-09-13T01:52:50.000Z
#!/usr/bin/python """ Copyright 2020 by California Institute of Technology. ALL RIGHTS RESERVED. United States Government sponsorship acknowledged. Any commercial use must be negotiated with the Office of Technology Transfer at the California Institute of Technology. This software may be subject...
48.944444
236
0.604553
f942e8286374720646e827d9bcca50bac020403e
448
py
Python
lello/users/services.py
FR98/lello-API
2b2deddd04b00d893fdd1194674d354e5002b40e
[ "MIT" ]
null
null
null
lello/users/services.py
FR98/lello-API
2b2deddd04b00d893fdd1194674d354e5002b40e
[ "MIT" ]
null
null
null
lello/users/services.py
FR98/lello-API
2b2deddd04b00d893fdd1194674d354e5002b40e
[ "MIT" ]
null
null
null
from django.core.mail import send_mail from django.template.loader import render_to_string def enviar_email(to, message): send_mail( 'Hello from Lello', message, 'lellodjango@gmail.com', to, fail_silently = False, html_message = render_to_string( 'send/in...
23.578947
51
0.5625