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
ab19b33878e4231a0251e6da9bae691e64d9f0b0
207
py
Python
frontadmin/urls.py
washim/django-frontadmin
6be3d5a745523bec72f2afb71483b8a29d979150
[ "MIT" ]
null
null
null
frontadmin/urls.py
washim/django-frontadmin
6be3d5a745523bec72f2afb71483b8a29d979150
[ "MIT" ]
null
null
null
frontadmin/urls.py
washim/django-frontadmin
6be3d5a745523bec72f2afb71483b8a29d979150
[ "MIT" ]
null
null
null
from django.urls import path, include from frontadmin import views urlpatterns = [ path('accounts/', include('django.contrib.auth.urls')), path('accounts/profile/', views.profile, name='profile'), ]
29.571429
61
0.719807
7d3aeb9a67eb55881db026311e866edaa9a08c9c
1,546
py
Python
var/spack/repos/builtin/packages/py-fenics-ufl/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-10T13:47:48.000Z
2019-04-17T13:05:17.000Z
var/spack/repos/builtin/packages/py-fenics-ufl/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
var/spack/repos/builtin/packages/py-fenics-ufl/package.py
Kerilk/spack
e027942b55407a4a5fe323b93d8e57200c873a43
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-04-06T09:04:11.000Z
2020-01-24T12:52:12.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyFenicsUfl(PythonPackage): """The Unified Form Language (UFL) is a domain specific langua...
48.3125
104
0.743855
d8a5abcf3e0c33cf47f55e85e12a03eac8c0bbed
4,104
py
Python
read_ravintolat_ja_kaupat.py
launis/areadata
8cf0e30ec489ce9655fcd9829284d1ec70e7360d
[ "BSD-3-Clause" ]
null
null
null
read_ravintolat_ja_kaupat.py
launis/areadata
8cf0e30ec489ce9655fcd9829284d1ec70e7360d
[ "BSD-3-Clause" ]
null
null
null
read_ravintolat_ja_kaupat.py
launis/areadata
8cf0e30ec489ce9655fcd9829284d1ec70e7360d
[ "BSD-3-Clause" ]
null
null
null
#this section takes care of reading all needed alco licese data def ravintolat_ja_kaupat(url, post): """Reads licensed bars and shops right to sell alco url: data from register post: data from postcodes Example url = "http://avoindata.valvira.fi/alkoholi/alkoholilupa_toimipaikkatiedot...
43.659574
207
0.682018
97a117b2056542869917d47426a5629822e2aa8b
9,613
py
Python
dist/vengeance-1.0.3.tar/dist/vengeance-1.0.3/vengeance/excel_com/workbook.py
michael-ross-ven/vengeance
53c6eefba0573936d22a55ba5900744ac701f4b9
[ "MIT" ]
1
2020-01-18T18:23:26.000Z
2020-01-18T18:23:26.000Z
dist/vengeance-1.0.3.tar/dist/vengeance-1.0.3/vengeance/excel_com/workbook.py
michael-ross-ven/vengeance
53c6eefba0573936d22a55ba5900744ac701f4b9
[ "MIT" ]
null
null
null
dist/vengeance-1.0.3.tar/dist/vengeance-1.0.3/vengeance/excel_com/workbook.py
michael-ross-ven/vengeance
53c6eefba0573936d22a55ba5900744ac701f4b9
[ "MIT" ]
null
null
null
from time import sleep import ctypes import pythoncom # noinspection PyUnresolvedReferences from pythoncom import com_error from ctypes import byref from ctypes import PyDLL from ctypes import POINTER from ctypes.wintypes import DWORD from ctypes.wintypes import BOOL from win32com.client import Dispatch as pywin_d...
28.610119
105
0.681473
e4f016f2212e6bf6c83176814d17c3d77dccac3e
5,622
py
Python
mnist/mnist_deep.py
ling7334/tensorflow-get-started
9aa31735e9fbbd9ea56e228b437eabe74222780e
[ "Apache-2.0" ]
null
null
null
mnist/mnist_deep.py
ling7334/tensorflow-get-started
9aa31735e9fbbd9ea56e228b437eabe74222780e
[ "Apache-2.0" ]
null
null
null
mnist/mnist_deep.py
ling7334/tensorflow-get-started
9aa31735e9fbbd9ea56e228b437eabe74222780e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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/LICENSE-2.0 # # Unless required by applica...
35.582278
82
0.66809
fab205fec9d7172abef803154bac07a864adf53a
2,640
py
Python
kubernetes/test/test_extensions_v1beta1_http_ingress_path.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_extensions_v1beta1_http_ingress_path.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_extensions_v1beta1_http_ingress_path.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
38.823529
128
0.649621
4c1d460c7427b59f4d3b6c43f403c4da2e3820e0
4,577
py
Python
bin/global_search_imgt_oas.py
Merck/BioPhi-2021-publication
988a34f4c482321105151fb626ffea6d5e136862
[ "MIT" ]
3
2021-11-03T07:07:09.000Z
2021-12-08T17:13:42.000Z
bin/global_search_imgt_oas.py
Merck/BioPhi-2021-publication
988a34f4c482321105151fb626ffea6d5e136862
[ "MIT" ]
null
null
null
bin/global_search_imgt_oas.py
Merck/BioPhi-2021-publication
988a34f4c482321105151fb626ffea6d5e136862
[ "MIT" ]
1
2021-08-24T15:05:28.000Z
2021-08-24T15:05:28.000Z
#!/usr/bin/env python import pandas as pd import os import re import numpy as np import argparse from abnumber import Chain, Position import gzip import json def iterate_oas_json(path, limit=None): if path.endswith('.json.gz'): gzipped = True elif path.endswith('.json'): gzipped = False el...
40.504425
119
0.60957
c94bf627a0286c3563028b19b0cf83fff2c1f0f5
266
py
Python
python/testData/inspections/PyAbstractClassInspection/conditionalRaiseReturnInElsePart.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyAbstractClassInspection/conditionalRaiseReturnInElsePart.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/PyAbstractClassInspection/conditionalRaiseReturnInElsePart.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A: @classmethod def test(cls, param): return None class B(A): @classmethod def test(cls, param): if param == 1: print(param) else: return 1 raise NotImplementedError class C(B): pass
14.777778
33
0.522556
8469b472dfc4b2765e967a524f07b5008262436f
157,527
py
Python
tiledb/tests/test_libtiledb.py
nguyenv/TileDB-Py
47e8f2deeab26e931fe991318339a2ad31a0969e
[ "MIT" ]
null
null
null
tiledb/tests/test_libtiledb.py
nguyenv/TileDB-Py
47e8f2deeab26e931fe991318339a2ad31a0969e
[ "MIT" ]
7
2021-07-16T16:10:15.000Z
2021-07-20T18:18:13.000Z
tiledb/tests/test_libtiledb.py
nguyenv/TileDB-Py
47e8f2deeab26e931fe991318339a2ad31a0969e
[ "MIT" ]
null
null
null
import gc import io import itertools import os import pickle import random import re import urllib import subprocess import sys import textwrap import time import unittest import warnings from collections import OrderedDict from contextlib import redirect_stdout import numpy as np import psutil import pytest from nump...
36.532236
97
0.555683
f14798c435e472d89cc025532cc39eaa5e7c7624
141
py
Python
KerasRFCN/__init__.py
denis19973/Keras-RFCN
e62670c2e01ac1e942f513d324642cf8d6aee368
[ "MIT" ]
88
2018-05-04T08:04:02.000Z
2022-01-05T02:57:28.000Z
KerasRFCN/__init__.py
denis19973/Keras-RFCN
e62670c2e01ac1e942f513d324642cf8d6aee368
[ "MIT" ]
16
2018-07-03T11:58:51.000Z
2021-07-12T04:49:05.000Z
KerasRFCN/__init__.py
mitulrm/FaceRFCN
5e1fdaf197b3a93c22a82d9476a3f9a1c804e398
[ "MIT" ]
33
2018-05-04T08:02:32.000Z
2022-01-09T14:39:06.000Z
# __init.py__ __all__ = ['Config', 'Data_generator', 'Losses', 'Utils','Model.BaseModel','Model.Model','Model.ResNet_dilated','Model.ResNet']
70.5
127
0.723404
5406cbce64a8d4e21f8a785d3442fc564d3c09e9
1,754
py
Python
util/chplenv/chpl_aux_filesys.py
KING-SID/chapel
8fe143dff7395a9600794ec0c3921038d8c81784
[ "ECL-2.0", "Apache-2.0" ]
3
2019-03-23T02:57:15.000Z
2019-03-23T02:57:22.000Z
util/chplenv/chpl_aux_filesys.py
KING-SID/chapel
8fe143dff7395a9600794ec0c3921038d8c81784
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
util/chplenv/chpl_aux_filesys.py
KING-SID/chapel
8fe143dff7395a9600794ec0c3921038d8c81784
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import os from glob import glob import overrides from utils import memoize @memoize def get(): aux_fs = overrides.get('CHPL_AUX_FILESYS', 'none') if aux_fs == 'hdfs': java_subdir = os.environ.get('JAVA_INSTALL', '') aux_fs_subdir = os.environ.get('HADOOP_INST...
33.09434
120
0.596921
6d52355d20f755ae2a7a5d7b0acabd4b4ac32b0b
2,646
py
Python
superset/superset/sqllab/execution_context_convertor.py
mvbvieira/finance_pipeline
48b085aeafda61c82f77de4ae67ceb02ac32f683
[ "Apache-2.0" ]
1
2020-11-03T06:34:21.000Z
2020-11-03T06:34:21.000Z
superset/superset/sqllab/execution_context_convertor.py
mvbvieira/finance_pipeline
48b085aeafda61c82f77de4ae67ceb02ac32f683
[ "Apache-2.0" ]
57
2020-04-20T17:41:41.000Z
2022-03-16T21:38:05.000Z
superset/superset/sqllab/execution_context_convertor.py
mvbvieira/finance_pipeline
48b085aeafda61c82f77de4ae67ceb02ac32f683
[ "Apache-2.0" ]
2
2021-10-12T17:51:34.000Z
2021-10-15T18:55:52.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.911765
88
0.744142
0aa48284fba207e4208529a8585205792cbacfbe
2,652
py
Python
utils/fairseq_mod/examples/linformer/src/modules/linformer_sentence_encoder_layer.py
saidineshpola/Knowledge-Distillation-Toolkit
b05ebc28ae1385c9caa1c4c1c93db2d67356e85f
[ "MIT" ]
69
2021-03-27T10:28:27.000Z
2022-03-29T07:32:02.000Z
utils/fairseq_mod/examples/linformer/src/modules/linformer_sentence_encoder_layer.py
saidineshpola/Knowledge-Distillation-Toolkit
b05ebc28ae1385c9caa1c4c1c93db2d67356e85f
[ "MIT" ]
5
2021-05-24T08:56:59.000Z
2021-11-19T09:21:31.000Z
utils/fairseq_mod/examples/linformer/src/modules/linformer_sentence_encoder_layer.py
saidineshpola/Knowledge-Distillation-Toolkit
b05ebc28ae1385c9caa1c4c1c93db2d67356e85f
[ "MIT" ]
20
2021-03-27T10:30:32.000Z
2022-03-17T17:13:41.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Callable from fairseq_mod.modules import TransformerSentenceEncoderLayer from .multihead_linear_attention import Multihead...
31.571429
75
0.636501
12beb113fed3a3dac5d04d5b551d0734e2b045c1
81,613
py
Python
convoy/remotefs.py
EricSchles/batch-shipyard
bfcfcc1f3706e700055ad1a04829593a882c4595
[ "MIT" ]
1
2018-07-30T21:10:10.000Z
2018-07-30T21:10:10.000Z
convoy/remotefs.py
EricSchles/batch-shipyard
bfcfcc1f3706e700055ad1a04829593a882c4595
[ "MIT" ]
null
null
null
convoy/remotefs.py
EricSchles/batch-shipyard
bfcfcc1f3706e700055ad1a04829593a882c4595
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation # # All rights reserved. # # MIT License # # 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...
43.02214
79
0.62207
3a1fe1d9d3e28dc7897c0c9bdc47321a3c182cd7
13,130
py
Python
tests/test_config_entries.py
mfrueh/home-assistant
5d64628b5bf4713016883282fd54de9c7d5089d0
[ "Apache-2.0" ]
null
null
null
tests/test_config_entries.py
mfrueh/home-assistant
5d64628b5bf4713016883282fd54de9c7d5089d0
[ "Apache-2.0" ]
null
null
null
tests/test_config_entries.py
mfrueh/home-assistant
5d64628b5bf4713016883282fd54de9c7d5089d0
[ "Apache-2.0" ]
1
2021-03-13T18:15:31.000Z
2021-03-13T18:15:31.000Z
"""Test the config manager.""" import asyncio from unittest.mock import MagicMock, patch, mock_open import pytest import voluptuous as vol from homeassistant import config_entries, loader from homeassistant.setup import async_setup_component from tests.common import MockModule, mock_coro, MockConfigEntry @pytest.f...
32.98995
76
0.634349
80f3830515a6e320c9b5072f3f17dc83336400b8
515
py
Python
tests/test_reticulate.py
joshuaulrich/rchitect
7e56f507d5ef83e7ef54450668f2a31eb698ea5d
[ "MIT" ]
32
2018-12-29T08:44:18.000Z
2021-12-08T04:08:21.000Z
tests/test_reticulate.py
joshuaulrich/rchitect
7e56f507d5ef83e7ef54450668f2a31eb698ea5d
[ "MIT" ]
14
2018-12-18T16:41:09.000Z
2022-02-06T05:03:44.000Z
tests/test_reticulate.py
joshuaulrich/rchitect
7e56f507d5ef83e7ef54450668f2a31eb698ea5d
[ "MIT" ]
4
2019-04-06T20:06:50.000Z
2021-02-04T20:30:16.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from rchitect import reval, rcopy, rcall, robject import string def test_rcopy_reticulate_object(): reval("library(reticulate)") py_object = reval("r_to_py(LETTERS)") assert rcopy(py_object) == list(string.ascii_uppercase) class Foo(): ...
22.391304
62
0.700971
ca4bb53f33ec49368717929259a4be90cc431bf0
1,545
py
Python
trees/count_leaves_in_bt.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
null
null
null
trees/count_leaves_in_bt.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
5
2021-03-10T11:49:39.000Z
2022-02-27T01:35:59.000Z
trees/count_leaves_in_bt.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
null
null
null
class Node: def __init__(self, val): self.right = None self.data = val self.left = None # Driver Program if __name__ == '__main__': root = None t = int(input()) for i in range(t): n = int(input()) arr = input().strip().split() if n == 0: pr...
24.140625
85
0.517799
80ad51af2350fdf069287324df0370d614cbca56
832
py
Python
WEEKS/CD_Sata-Structures/_MISC/algorithms/maths/decimal_to_binary_ip.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/algorithms/maths/decimal_to_binary_ip.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/algorithms/maths/decimal_to_binary_ip.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
##------------------------------------------------------------------- """ Given an ip address in dotted-decimal representation, determine the binary representation. For example, decimal_to_binary(255.0.0.5) returns 11111111.00000000.00000000.00000101 accepts string returns string ##-------------------------------------...
26
72
0.527644
4f9f7434dc02c073926dcedf08c7d8e4fdcb1595
1,265
py
Python
tlkit/data/datasets/fashion_mnist_dataset.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
56
2020-01-12T05:45:59.000Z
2022-03-17T15:04:15.000Z
tlkit/data/datasets/fashion_mnist_dataset.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
7
2020-01-28T23:14:45.000Z
2022-02-10T01:56:48.000Z
tlkit/data/datasets/fashion_mnist_dataset.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
2
2020-02-29T14:51:23.000Z
2020-03-07T03:23:27.000Z
import torchvision from torch.utils.data import DataLoader def get_dataloaders(data_path, inputs_and_outputs, batch_size=64, batch_size_val=4, transform=None, num_workers=0, load_to_mem=False, ...
50.6
126
0.710672
f61c0047f9aa774f2cb9062c62d01c0bd5a089d1
2,709
py
Python
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_ssh/Opengauss_Function_Tools_gs_ssh_Case0017.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_ssh/Opengauss_Function_Tools_gs_ssh_Case0017.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_ssh/Opengauss_Function_Tools_gs_ssh_Case0017.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
31.870588
84
0.635659
518ac140097168a4f025917e5832bce6114604e3
198
py
Python
benchmarks/Gaussian/config_gen.py
DependableSystemsLab/GPU-Trident
c734cd8a18146869fc915af73a6ca13ceca35c0b
[ "MIT" ]
1
2021-01-17T10:36:21.000Z
2021-01-17T10:36:21.000Z
benchmarks/Gaussian/config_gen.py
DependableSystemsLab/GPU-Trident
c734cd8a18146869fc915af73a6ca13ceca35c0b
[ "MIT" ]
null
null
null
benchmarks/Gaussian/config_gen.py
DependableSystemsLab/GPU-Trident
c734cd8a18146869fc915af73a6ca13ceca35c0b
[ "MIT" ]
null
null
null
X_threads = 16 Y_threads = 16 Invoc_count = 15 start_index = 0 end_index = 0 src_list = [] SHARED_MEM_USE = False total_shared_mem_size = 1024 domi_list = [44, 47, 71] domi_val = [0.4, 0.4, 0.0]
14.142857
28
0.69697
73d9d9e793f273ecb1bcae87af181c27f4bcbad3
8,918
py
Python
Ensemble_Deep_RVFL.py
Xuyang-Huang/Ensemble-Deep-RVFL-python
c443ebd67fac986f18d14cee9eecd1109e09cffc
[ "MIT" ]
2
2021-03-31T06:15:52.000Z
2021-09-27T22:31:34.000Z
Ensemble_Deep_RVFL.py
Xuyang-Huang/Ensemble-Deep-RVFL-python
c443ebd67fac986f18d14cee9eecd1109e09cffc
[ "MIT" ]
null
null
null
Ensemble_Deep_RVFL.py
Xuyang-Huang/Ensemble-Deep-RVFL-python
c443ebd67fac986f18d14cee9eecd1109e09cffc
[ "MIT" ]
null
null
null
#-- coding: utf-8 -- #@Time : 2021/3/27 20:40 #@Author : HUANG XUYANG #@Email : xhuang032@e.ntu.edu.sg #@File : Ensemble_Deep_RVFL.py #@Software: PyCharm import numpy as np import sklearn.datasets as sk_dataset num_nodes = 2 # Number of enhancement nodes. regular_para = 1 # Regularization parameter. weight_random_...
38.111111
132
0.590155
061c27afa925f34274d2edbf41cd8bb82ec7c7ec
12,957
py
Python
ptsemseg/models/MV3_1_res101.py
Spritea/pytorch-semseg-89f4-two-titan
656f99ad75a59c25ace2888ea98e93dc209c9afd
[ "MIT" ]
null
null
null
ptsemseg/models/MV3_1_res101.py
Spritea/pytorch-semseg-89f4-two-titan
656f99ad75a59c25ace2888ea98e93dc209c9afd
[ "MIT" ]
null
null
null
ptsemseg/models/MV3_1_res101.py
Spritea/pytorch-semseg-89f4-two-titan
656f99ad75a59c25ace2888ea98e93dc209c9afd
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.utils.model_zoo as model_zoo import torch from torch.nn import functional as F models_urls = { '101_voc': 'https://cloudstor.aarnet.edu.au/plus/s/Owmttk9bdPROwc6/download', '18_imagenet': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', '34_imagenet': 'https:...
33.830287
108
0.622521
b6be075145242767308ca73288e86b4d2c3e849e
9,395
py
Python
python/Lib/site-packages/tectle/packaging.py
ksritharan/tectle
ca76424d85e66b041b40997838a3ceb79266efab
[ "MIT" ]
1
2021-03-04T14:58:05.000Z
2021-03-04T14:58:05.000Z
python/Lib/site-packages/tectle/packaging.py
ksritharan/tectle
ca76424d85e66b041b40997838a3ceb79266efab
[ "MIT" ]
8
2021-02-26T02:32:59.000Z
2021-05-28T02:22:07.000Z
python/Lib/site-packages/tectle/packaging.py
ksritharan/business-automation
ca76424d85e66b041b40997838a3ceb79266efab
[ "MIT" ]
null
null
null
from .db import get_connection, get_data_dict from flask import render_template, url_for, make_response import requests import traceback import math import logging logger = logging.getLogger() def do_packaging(): context = {'packaging_page': True} conn = get_connection() cur = conn.cursor() query = """...
40.149573
167
0.585737
f458b60c91f2d6dc7a346f8a895e33fc7ca69010
7,664
py
Python
models/backbones/skip/downsampler.py
Khanhnn00/blind-image-sr
42bba4894ac9ee6595d2fff9b25a7678f323ad87
[ "Apache-2.0" ]
93
2021-05-11T08:35:24.000Z
2022-03-30T10:41:14.000Z
models/backbones/skip/downsampler.py
Khanhnn00/blind-image-sr
42bba4894ac9ee6595d2fff9b25a7678f323ad87
[ "Apache-2.0" ]
14
2021-05-20T05:05:19.000Z
2022-01-22T22:09:36.000Z
models/backbones/skip/downsampler.py
Khanhnn00/blind-image-sr
42bba4894ac9ee6595d2fff9b25a7678f323ad87
[ "Apache-2.0" ]
29
2021-05-13T04:16:56.000Z
2022-03-03T02:07:24.000Z
import numpy as np import torch import torch.nn as nn class Downsampler(nn.Module): """ http://www.realitypixels.com/turk/computergraphics/ResamplingFilters.pdf """ def __init__( self, n_planes, factor, kernel_type, phase=0, kernel_width=None, support=None, sigma=None, preserve_size=False ...
31.669421
118
0.54345
bbbf44f14206ade2a822d3727974970a676d5751
3,990
py
Python
census/tf-keras/trainer/task.py
agodi/cloudml-samples
14c6e15979a3f62c87bb32f8cc730b402dfaaeee
[ "Apache-2.0" ]
null
null
null
census/tf-keras/trainer/task.py
agodi/cloudml-samples
14c6e15979a3f62c87bb32f8cc730b402dfaaeee
[ "Apache-2.0" ]
null
null
null
census/tf-keras/trainer/task.py
agodi/cloudml-samples
14c6e15979a3f62c87bb32f8cc730b402dfaaeee
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
30.458015
80
0.679449
159bb4957bfb24489c5ae9ccbc41cc2f4c9db444
1,220
py
Python
getGuess.py
icyflame/cows-and-bulls
06a4e5456ae97cf1d46ff9743b3642813d5cffce
[ "MIT" ]
null
null
null
getGuess.py
icyflame/cows-and-bulls
06a4e5456ae97cf1d46ff9743b3642813d5cffce
[ "MIT" ]
null
null
null
getGuess.py
icyflame/cows-and-bulls
06a4e5456ae97cf1d46ff9743b3642813d5cffce
[ "MIT" ]
null
null
null
from Tkinter import * import tkFont import tkMessageBox alert = tkMessageBox.showinfo SHOW_TOPBAR = True def getGuess(): flag = True while flag: flag = False root = Toplevel() root.title('Enter your guess') font2 = tkFont.Font(family='Helvetica',size=20) f = F...
14.698795
74
0.518033
dba227c05becb8d7edde59d391e48c06ad890ec3
2,561
py
Python
examples/ad_manager/v201905/product_template_service/activate_product_templates.py
ale180192/googleads-python-lib
783a2d40a49956fb16ed73280708f6f9e322aa09
[ "Apache-2.0" ]
1
2020-05-27T15:48:47.000Z
2020-05-27T15:48:47.000Z
examples/ad_manager/v201905/product_template_service/activate_product_templates.py
ale180192/googleads-python-lib
783a2d40a49956fb16ed73280708f6f9e322aa09
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201905/product_template_service/activate_product_templates.py
ale180192/googleads-python-lib
783a2d40a49956fb16ed73280708f6f9e322aa09
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2015 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 requir...
34.146667
77
0.713784
c36123ae62dcecd3d2b8eaab2a05c54c6b66128a
1,454
py
Python
src/main/jython/sfdc/metadata_package/undeploy.py
xebialabs-external/xld-salesforce-plugin
041bb789baf038191b19bf91862d3a54683087ae
[ "MIT" ]
3
2016-10-13T20:51:35.000Z
2018-11-29T15:42:42.000Z
src/main/jython/sfdc/metadata_package/undeploy.py
xebialabs-external/xld-salesforce-plugin
041bb789baf038191b19bf91862d3a54683087ae
[ "MIT" ]
1
2019-07-01T18:15:56.000Z
2019-07-01T18:15:56.000Z
src/main/jython/sfdc/metadata_package/undeploy.py
xebialabs-community/xld-salesforce-plugin
69842abf80cc9dacb7556c5e56ad168f8604607c
[ "MIT" ]
null
null
null
# # Copyright 2019 XEBIALABS # # 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, distribute, subli...
63.217391
462
0.790234
7542d8516f9fd1afddd6a04d390fa18a913c77bf
5,037
py
Python
azure-iot-device/azure/iot/device/provisioning/provisioning_device_client.py
dominicbetts/azure-iot-sdk-python
ea70d2a319df2d602f8102e70a4e88635febf1b8
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/provisioning/provisioning_device_client.py
dominicbetts/azure-iot-sdk-python
ea70d2a319df2d602f8102e70a4e88635febf1b8
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/provisioning/provisioning_device_client.py
dominicbetts/azure-iot-sdk-python
ea70d2a319df2d602f8102e70a4e88635febf1b8
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ This m...
45.378378
99
0.717292
028db41bdb0b55df2f81a66a6ca74c7577a1f95b
970
py
Python
cal_scores/wodeutil/constant/SysToken.py
bzhao2718/ReliableSummEvalReg
ea3281855fb4b922a514cb610fc2b70063534bf5
[ "MIT" ]
null
null
null
cal_scores/wodeutil/constant/SysToken.py
bzhao2718/ReliableSummEvalReg
ea3281855fb4b922a514cb610fc2b70063534bf5
[ "MIT" ]
null
null
null
cal_scores/wodeutil/constant/SysToken.py
bzhao2718/ReliableSummEvalReg
ea3281855fb4b922a514cb610fc2b70063534bf5
[ "MIT" ]
null
null
null
import argparse SysToken = argparse.Namespace( SUCCESS_IND=1, FAIL_IND=0, EXT_JSON=".json", EXT_TXT=".txt", EXT_PT=".pt", EXT_INI=".ini", backup="backup", workspace_init="wordspace.ini", WORKSPACE_CONFIG_PATH="WORKSAPCE_INIT_PATH", TASK_CONFIG_PATH="TASK_CONFIG_PATH", str_co...
30.3125
107
0.672165
443be64e49d0def08f8863366cd02d0afd7abbf8
39,564
py
Python
code/python/process_emails.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
null
null
null
code/python/process_emails.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
null
null
null
code/python/process_emails.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
1
2018-11-21T09:53:44.000Z
2018-11-21T09:53:44.000Z
# This file is part of the TeTePy software # Copyright (c) 2017, 2018, University of Southampton # 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 ...
39.883065
150
0.658427
7906251dbf3c4f92a779bbac39f599cf597effec
17,720
py
Python
mne/tests/test_report.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
null
null
null
mne/tests/test_report.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
23
2017-09-12T11:08:26.000Z
2019-10-04T11:11:29.000Z
mne/tests/test_report.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2019-01-28T13:48:00.000Z
2019-07-10T16:02:11.000Z
# -*- coding: utf-8 -*- # Authors: Mainak Jas <mainak@neuro.hut.fi> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import copy import glob import os import os.path as op import shutil import numpy as np from numpy.testing import assert_equal import pytest from matplotlib import pyplot as p...
39.116998
79
0.66772
55fceec0dd1073a953a221d316dde2b6e58a9d09
3,663
py
Python
experiments/memory/recurrent_q_bptt_ddpg_exp.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/memory/recurrent_q_bptt_ddpg_exp.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/memory/recurrent_q_bptt_ddpg_exp.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import random from rlkit.envs.memory.continuous_memory_augmented import \ ContinuousMemoryAugmented from rlkit.envs.mujoco.water_maze import WaterMazeMemory from rlkit.exploration_strategies.ou_strategy import OUStrategy from rlkit.exploration_strategies.product_strategy import ProductStrategy from rlkit.launchers...
29.304
73
0.633361
a3ed4e95cb9a33dd3d47bfc975e9066c2d1b4dda
7,279
py
Python
monoscene/data/utils/helpers.py
Teaksters/MonoScene
0a5803052b54e57eb98556e53d3bf45be890b269
[ "Apache-2.0" ]
122
2021-12-02T05:18:29.000Z
2022-03-31T13:07:16.000Z
monoscene/data/utils/helpers.py
Teaksters/MonoScene
0a5803052b54e57eb98556e53d3bf45be890b269
[ "Apache-2.0" ]
16
2021-12-17T02:59:21.000Z
2022-03-25T10:47:46.000Z
monoscene/data/utils/helpers.py
Teaksters/MonoScene
0a5803052b54e57eb98556e53d3bf45be890b269
[ "Apache-2.0" ]
17
2021-12-09T11:34:16.000Z
2022-03-17T03:26:23.000Z
import numpy as np import monoscene.data.utils.fusion as fusion import torch def compute_CP_mega_matrix(target, is_binary=False): """ Parameters --------- target: (H, W, D) contains voxels semantic labels is_binary: bool if True, return binary voxels relations else return 4-way re...
39.134409
152
0.568347
8715a37d39c0279dc2d14343681469cf6113521f
7,840
py
Python
contacter/contacts_book/views.py
Gordi91/contacts-book
b6d46d9a4f4beba46638fce4bbd0ebaefa975406
[ "MIT" ]
null
null
null
contacter/contacts_book/views.py
Gordi91/contacts-book
b6d46d9a4f4beba46638fce4bbd0ebaefa975406
[ "MIT" ]
null
null
null
contacter/contacts_book/views.py
Gordi91/contacts-book
b6d46d9a4f4beba46638fce4bbd0ebaefa975406
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, redirect from django.views import View from .models import Person, Address, Group, Phone, Email from .forms import PersonForm, AddressForm, PhoneForm, EmailForm, GroupForm, MembersForm class ShowPeople(View): def get(self, request): template_name = ...
30.988142
88
0.60523
d6cd2d1096877f1045a33a1be85a794170d43493
512
py
Python
tpDcc/dccs/mobu/__version__.py
tpDcc/tpDcc-dccs-mobu
1e28dfa95d72aeaccf4c916259b7e07380758cc7
[ "MIT" ]
null
null
null
tpDcc/dccs/mobu/__version__.py
tpDcc/tpDcc-dccs-mobu
1e28dfa95d72aeaccf4c916259b7e07380758cc7
[ "MIT" ]
null
null
null
tpDcc/dccs/mobu/__version__.py
tpDcc/tpDcc-dccs-mobu
1e28dfa95d72aeaccf4c916259b7e07380758cc7
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Version module for tpDcc-dccs-mobu """ from __future__ import print_function, division, absolute_import __author__ = "Tomas Poveda" __license__ = "MIT" __maintainer__ = "Tomas Poveda" __email__ = "tpovedatd@gmail.com" __version__ = None def get_version(): glo...
18.285714
64
0.712891
9722dfb201da0741f36291399df7a458d2110229
7,795
py
Python
pet_v_vrsto.py
SamoFMF/Five-in-a-row
a60fd174de37db9a3b7f3ed458d7345220cda400
[ "MIT" ]
null
null
null
pet_v_vrsto.py
SamoFMF/Five-in-a-row
a60fd174de37db9a3b7f3ed458d7345220cda400
[ "MIT" ]
null
null
null
pet_v_vrsto.py
SamoFMF/Five-in-a-row
a60fd174de37db9a3b7f3ed458d7345220cda400
[ "MIT" ]
null
null
null
from ai import AIPlayer import tkinter as tk # GUI from logika import * from minimax import * from clovek import Clovek from racunalnik import Racunalnik ################################## # GRAFICNI / UPORABNISKI VMESNIK # ################################## MIN_SIRINA = 500 MIN_VISINA = 555 ZVP = 100 class Gui: ...
35.431818
103
0.5483
15137028b38c745b4ddd8e9bffdb65e618adf00a
3,168
py
Python
reentry/config.py
giovannipizzi/reentry
8491b7348a359f5a844bb283ea9450c027e92580
[ "MIT" ]
5
2017-11-28T14:57:53.000Z
2019-01-16T08:48:10.000Z
reentry/config.py
giovannipizzi/reentry
8491b7348a359f5a844bb283ea9450c027e92580
[ "MIT" ]
49
2017-04-11T11:18:58.000Z
2021-02-10T23:06:20.000Z
reentry/config.py
giovannipizzi/reentry
8491b7348a359f5a844bb283ea9450c027e92580
[ "MIT" ]
8
2017-06-16T17:01:33.000Z
2021-02-09T10:28:03.000Z
"""Find and read user settings.""" import os import sys import hashlib import platform try: # prefer the backport for Python <3.5 from pathlib2 import Path except ImportError: from pathlib import Path import six from six.moves import configparser __all__ = ['find_config', 'get_config', 'get_datafile'] d...
34.064516
123
0.685606
443101ed7f8cb832968a705d41c547c80ecd2032
1,911
py
Python
bin/authors.py
Lamcloud/cloudmesh-manual
6d94270e4a90f96f3906caa78ac24bf7f4468608
[ "Apache-2.0" ]
null
null
null
bin/authors.py
Lamcloud/cloudmesh-manual
6d94270e4a90f96f3906caa78ac24bf7f4468608
[ "Apache-2.0" ]
null
null
null
bin/authors.py
Lamcloud/cloudmesh-manual
6d94270e4a90f96f3906caa78ac24bf7f4468608
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import subprocess import textwrap debug = False names = [] for d in [".", "../cloudmesh-installer", "../cloudmesh-inventory", "../cloudmesh-gui", "../cloudmesh-configuration", "../cloudmesh-cmd5", "../cloudmesh-aws", "../clou...
25.48
111
0.612245
7d958a679edff4356242144104c784c25f23f142
257
py
Python
player.py
ColinVDH/blokus
a2c7f6f7b65653b0fd942c181eae3944fb2ed7d8
[ "MIT" ]
1
2020-01-10T00:26:45.000Z
2020-01-10T00:26:45.000Z
player.py
ColinVDH/blokus
a2c7f6f7b65653b0fd942c181eae3944fb2ed7d8
[ "MIT" ]
null
null
null
player.py
ColinVDH/blokus
a2c7f6f7b65653b0fd942c181eae3944fb2ed7d8
[ "MIT" ]
null
null
null
from constants import STARTING_PLACES class Player: def __init__(self, index, is_human=False): self.index = index self.is_human = is_human self.starting_place = STARTING_PLACES[index] def get_move(self, board): pass
25.7
52
0.677043
5559b6609f68ec644df7cf56faf9a39b33b85771
256
py
Python
src/ebay_rest/api/sell_compliance/api/__init__.py
gbm001/ebay_rest
077d3478423ccd80ff35e0361821d6a11180bc54
[ "MIT" ]
3
2021-12-12T04:28:03.000Z
2022-03-10T03:29:18.000Z
src/ebay_rest/api/sell_compliance/api/__init__.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
33
2021-06-16T20:44:36.000Z
2022-03-30T14:55:06.000Z
src/ebay_rest/api/sell_compliance/api/__init__.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
7
2021-06-03T09:30:23.000Z
2022-03-08T19:51:33.000Z
from __future__ import absolute_import # flake8: noqa # import apis into api package from ...sell_compliance.api.listing_violation_api import ListingViolationApi from ...sell_compliance.api.listing_violation_summary_api import ListingViolationSummaryApi
32
91
0.859375
bde905347d7089de94d311f9111af809f6367fe1
804
py
Python
examples/timon.py
surycat/nyuki-legacy
9ab3a212f2ce34b032984c712c87eb2326bd3960
[ "Apache-2.0" ]
8
2016-08-08T12:09:16.000Z
2018-08-24T02:32:06.000Z
examples/timon.py
surycat/nyuki-legacy
9ab3a212f2ce34b032984c712c87eb2326bd3960
[ "Apache-2.0" ]
16
2015-10-06T10:24:53.000Z
2018-01-23T18:35:37.000Z
examples/timon.py
surycat/nyuki-legacy
9ab3a212f2ce34b032984c712c87eb2326bd3960
[ "Apache-2.0" ]
9
2015-09-30T15:00:44.000Z
2018-04-05T21:25:48.000Z
""" This is 'timon' """ import logging from nyuki import Nyuki, resource, Response log = logging.getLogger(__name__) @resource('/message', versions=['v1']) class Message: async def get(self, request): return Response({'message': self.nyuki.message}) async def put(self, request): request = ...
21.72973
63
0.633085
1cee275788a3ea8bc9faa3f0dab4ac576f10c46e
4,619
py
Python
src/count_breakpoints_at_sites.py
esaskar/jsva
d614039d807d11a7dc7651fa81dffc2c2829a9f9
[ "MIT" ]
null
null
null
src/count_breakpoints_at_sites.py
esaskar/jsva
d614039d807d11a7dc7651fa81dffc2c2829a9f9
[ "MIT" ]
1
2020-06-13T02:36:31.000Z
2020-06-13T02:36:31.000Z
src/count_breakpoints_at_sites.py
esaskar/jsva
d614039d807d11a7dc7651fa81dffc2c2829a9f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys, subprocess, os, argparse p = argparse.ArgumentParser() p.add_argument("-f", "--flank", default = 10000, type = int) args = p.parse_args() SAMPLES = "data/samples_with_cohesin_mutation" #COHESIN_SITES = "data/CTCF_RAD21_intersect.bed" #COHESIN_SITES = "data/occupied_cohesin_sites_wit...
31.636986
116
0.609006
1db31864ea553553de1f72fbb78f11ab32026ede
9,040
py
Python
pai-management/k8sPaiLibrary/maintainlib/remove.py
luoch/pai
983326061006954bf3b99988d8698704598392e3
[ "MIT" ]
2
2018-09-13T11:37:28.000Z
2018-09-13T11:39:33.000Z
pai-management/k8sPaiLibrary/maintainlib/remove.py
luoch/pai
983326061006954bf3b99988d8698704598392e3
[ "MIT" ]
null
null
null
pai-management/k8sPaiLibrary/maintainlib/remove.py
luoch/pai
983326061006954bf3b99988d8698704598392e3
[ "MIT" ]
1
2018-09-13T11:37:31.000Z
2018-09-13T11:37:31.000Z
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # 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 ...
40.904977
128
0.663827
359e838b1cb759b21a23afcc4ec01edb152173a1
13,338
py
Python
AITranslator.py
lsldragon/AITranslator
70c3dbec40e6aaf250830550ab53fe93d894bae5
[ "MIT" ]
null
null
null
AITranslator.py
lsldragon/AITranslator
70c3dbec40e6aaf250830550ab53fe93d894bae5
[ "MIT" ]
null
null
null
AITranslator.py
lsldragon/AITranslator
70c3dbec40e6aaf250830550ab53fe93d894bae5
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import * from MainFrame import * import json import requests from urllib import parse from PyQt5.QtCore import * from GetSource import * from googletrans import Translator from AboutDialog import * from UpdateDialog import * from Theme import * import re import qdarkstyle GTransData = ...
30.591743
98
0.531789
0803fa166f4e4f137e748daa71fc11047c220377
2,889
py
Python
wollof/follow.py
rm-hull/follow
98d8e549ef568a1cb93ca60841b3d506c3bdcb30
[ "MIT" ]
null
null
null
wollof/follow.py
rm-hull/follow
98d8e549ef568a1cb93ca60841b3d506c3bdcb30
[ "MIT" ]
null
null
null
wollof/follow.py
rm-hull/follow
98d8e549ef568a1cb93ca60841b3d506c3bdcb30
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import itertools import select import subprocess import sys import threading from datetime import datetime from colored import attr, bg, fg from wollof.color_palette import MUTED, PASTEL reset = attr('reset') error_marker = bg('red') + fg('white') finish...
29.783505
107
0.653167
23abfa2857e1417d7a3f0002ea2105dc57e34967
2,664
py
Python
repomas/models.py
oumao/mastereg
396d389bfbd6488459d8f64e2cd6dadc9b58ad5b
[ "MIT" ]
1
2021-03-07T09:44:41.000Z
2021-03-07T09:44:41.000Z
repomas/models.py
oumao/mastereg
396d389bfbd6488459d8f64e2cd6dadc9b58ad5b
[ "MIT" ]
1
2021-03-21T20:22:17.000Z
2021-03-21T20:22:17.000Z
repomas/models.py
oumao/mastereg
396d389bfbd6488459d8f64e2cd6dadc9b58ad5b
[ "MIT" ]
null
null
null
from repomas import db, login_manager from flask_login import UserMixin @login_manager.user_loader def load_user(admin_id): return Admin.query.get(int(admin_id)) class Admin(db.Model, UserMixin): __tablename__ = "administrator" id = db.Column(db.Integer, primary_key=True, autoincrement=True) first...
36
85
0.6753
187b4fbe94a221126760180a6b88a7b0450b6264
3,677
py
Python
CKY_Parser/BackupGrammer.py
Deekshantiiitd/NLP-2019
36715d6032254bfd684fe4b9dcdebe94c3edaddc
[ "Apache-2.0" ]
null
null
null
CKY_Parser/BackupGrammer.py
Deekshantiiitd/NLP-2019
36715d6032254bfd684fe4b9dcdebe94c3edaddc
[ "Apache-2.0" ]
null
null
null
CKY_Parser/BackupGrammer.py
Deekshantiiitd/NLP-2019
36715d6032254bfd684fe4b9dcdebe94c3edaddc
[ "Apache-2.0" ]
null
null
null
import nltk,re,codecs from nltk.tokenize import word_tokenize,sent_tokenize from backNode import BackNode from nltk import Tree def trace_tree(trace): if trace.left==None and trace.right==None: return str(trace.root)+" "+str(trace.word) return "("+str(trace.root)+"("+str(trace_tree(trace.left))+")"+" "+"("+str...
25.894366
108
0.658689
07cecadf7d077980e4277349e847e3c7a9b387e0
1,168
py
Python
bets/migrations/0001_initial.py
tmooney/zach-loss-counter
979a212b63695b34c201cdeec1309519422b0bae
[ "MIT" ]
null
null
null
bets/migrations/0001_initial.py
tmooney/zach-loss-counter
979a212b63695b34c201cdeec1309519422b0bae
[ "MIT" ]
5
2019-01-08T18:35:19.000Z
2019-03-26T17:58:09.000Z
bets/migrations/0001_initial.py
tmooney/zach-loss-counter
979a212b63695b34c201cdeec1309519422b0bae
[ "MIT" ]
3
2018-11-27T18:06:52.000Z
2019-03-12T18:02:03.000Z
# Generated by Django 2.1.3 on 2018-11-13 19:26 import bets.enums from django.db import migrations, models import enumchoicefield.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Bet', field...
37.677419
156
0.624144
89bddc8d45e3862c9b00f9145470fe147b98db69
2,643
py
Python
server.py
Sicilat/python-server
1b04328021ce77321392df9613e7ba079fa518a5
[ "MIT" ]
null
null
null
server.py
Sicilat/python-server
1b04328021ce77321392df9613e7ba079fa518a5
[ "MIT" ]
null
null
null
server.py
Sicilat/python-server
1b04328021ce77321392df9613e7ba079fa518a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from logging.handlers import RotatingFileHandler import pickle import socket import threading class ThreadedServer(object): def __init__(self, host, port): self.host = host self.port = port self.sock = socket.socket(socket.AF_IN...
29.366667
90
0.600076
af4beaa97f32ab91d03b283634ee81b3da03e8cd
3,470
py
Python
ReturnBook.py
HaseebRajput007/Library-Management-roject-python
489cfad4d6937c3b031337ea740093909608fb3f
[ "MIT" ]
1
2021-08-02T16:21:45.000Z
2021-08-02T16:21:45.000Z
ReturnBook.py
HaseebRajput007/Library-Management-roject-python
489cfad4d6937c3b031337ea740093909608fb3f
[ "MIT" ]
null
null
null
ReturnBook.py
HaseebRajput007/Library-Management-roject-python
489cfad4d6937c3b031337ea740093909608fb3f
[ "MIT" ]
null
null
null
from tkinter import * from PIL import ImageTk,Image from tkinter import messagebox import pymysql # Add your own database name and password here to reflect in the code mypass = "root" mydatabase="db" con = pymysql.connect(host="localhost",user="root",password=mypass,database=mydatabase) cur = con.cursor() ...
30.707965
105
0.58415
73adb04655028191f274ea47274bdbb74c77544a
782
py
Python
117-Try dan Except/Script.py
dikyindrah/Python-Pemrograman-Dasar-02
7b60391d348504eea8ebc36896857e3e92fda3f7
[ "MIT" ]
null
null
null
117-Try dan Except/Script.py
dikyindrah/Python-Pemrograman-Dasar-02
7b60391d348504eea8ebc36896857e3e92fda3f7
[ "MIT" ]
null
null
null
117-Try dan Except/Script.py
dikyindrah/Python-Pemrograman-Dasar-02
7b60391d348504eea8ebc36896857e3e92fda3f7
[ "MIT" ]
null
null
null
try: print(x) except: print('error!, variabel x belum didefinisikan.') import sys list_item = ['a', 0, 2] for item in list_item: try: print('item :', item) n = int(item)/int(item) break except: print('Terjadi kesalahan :', sys.exc_info()[0], 'pada kode program') ...
17.772727
76
0.61509
337e9463992dfd119d0fdd128e952edf1af81feb
2,477
py
Python
exp-ae-celeba-mafl-30.py
d1ngn1gefe1/lmdis-rep
b334d7e5eb281948107ac6781807945ff7a4dfc2
[ "Apache-2.0" ]
133
2018-06-19T22:17:59.000Z
2022-03-03T06:49:45.000Z
exp-ae-celeba-mafl-30.py
d1ngn1gefe1/lmdis-rep
b334d7e5eb281948107ac6781807945ff7a4dfc2
[ "Apache-2.0" ]
5
2018-06-26T23:38:50.000Z
2019-12-30T02:43:43.000Z
exp-ae-celeba-mafl-30.py
d1ngn1gefe1/lmdis-rep
b334d7e5eb281948107ac6781807945ff7a4dfc2
[ "Apache-2.0" ]
21
2018-08-24T09:58:17.000Z
2022-01-11T02:15:40.000Z
import tensorflow as tf import os import sys from copy import copy from model.pipeline import Pipeline from tensorflow.python import debug as tf_debug if __name__ == "__main__": num_keypoints = 30 patch_feature_dim = 8 decoding_levels = 5 kp_transform_loss = 1e4 base_recon_weight = 0.1 reco...
31.75641
81
0.650787
09a60d1ba89f4bb1ff468d874a0543dae8338cc9
1,868
py
Python
tapioca_freshdesk/resource_mapping.py
tobiase/tapioca-freshdesk
ca499b6755f9194fe87f4b458db0eca2eff061ec
[ "MIT" ]
null
null
null
tapioca_freshdesk/resource_mapping.py
tobiase/tapioca-freshdesk
ca499b6755f9194fe87f4b458db0eca2eff061ec
[ "MIT" ]
null
null
null
tapioca_freshdesk/resource_mapping.py
tobiase/tapioca-freshdesk
ca499b6755f9194fe87f4b458db0eca2eff061ec
[ "MIT" ]
null
null
null
# coding: utf-8 RESOURCE_MAPPING = { "contact": { "resource": "contacts/{id}", "docs": [ "https://developers.freshdesk.com/api/#contacts", "https://developers.freshdesk.com/api/#update_contact", "https://developers.freshdesk.com/api/#delete_contact", ], ...
32.77193
80
0.549786
694d14a521e497124c5894ced81253c8f543b15d
2,782
py
Python
tests/env/packages/env_test_sphinxcontrib-jsmath.py
TerraWilly/foxbms-2
62288b333fe6da52deae91f74fb15e71060ac99c
[ "CC-BY-4.0" ]
1
2021-04-11T02:02:28.000Z
2021-04-11T02:02:28.000Z
tests/env/packages/env_test_sphinxcontrib-jsmath.py
TerraWilly/foxbms-2
62288b333fe6da52deae91f74fb15e71060ac99c
[ "CC-BY-4.0" ]
null
null
null
tests/env/packages/env_test_sphinxcontrib-jsmath.py
TerraWilly/foxbms-2
62288b333fe6da52deae91f74fb15e71060ac99c
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @copyright &copy; 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der # angewandten Forschung e.V. All rights reserved. # # BSD 3-Clause License # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the fol...
37.594595
79
0.736161
a7e4348b1f82234c92c35c59fd7ab3418af57128
12,571
py
Python
language/canine/tydiqa/preproc_test.py
urikz/language
503aca178c98fed4c606cf83e58ae0f84012a4d9
[ "Apache-2.0" ]
1,199
2018-10-16T01:30:18.000Z
2022-03-31T21:05:24.000Z
language/canine/tydiqa/preproc_test.py
urikz/language
503aca178c98fed4c606cf83e58ae0f84012a4d9
[ "Apache-2.0" ]
116
2018-10-18T03:31:46.000Z
2022-03-24T13:40:50.000Z
language/canine/tydiqa/preproc_test.py
urikz/language
503aca178c98fed4c606cf83e58ae0f84012a4d9
[ "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 ...
34.067751
80
0.622544
ae1c6c3c3165a1c712405be584358a5086fea348
898
py
Python
forumsweats/commands/removesocialcredit.py
zzzzz28/forum-sweats
346c281821164ac721a028dee8b726d26374e760
[ "MIT" ]
null
null
null
forumsweats/commands/removesocialcredit.py
zzzzz28/forum-sweats
346c281821164ac721a028dee8b726d26374e760
[ "MIT" ]
null
null
null
forumsweats/commands/removesocialcredit.py
zzzzz28/forum-sweats
346c281821164ac721a028dee8b726d26374e760
[ "MIT" ]
null
null
null
from ..commandparser import Member from forumsweats import db name = 'removesocialcredit' aliases = ( 'takesocialcredit', 'removesocialcredits', 'takesocialcredits', 'subtractsocialcredits', 'subtractsocialcredit', 'removesc', 'takesc', 'subtractsc' ) roles = ('mod', 'admin') args = '[member]' channels = None asyn...
39.043478
147
0.727171
115509bef8427986ef94f1a12e0be8e877a0d9fb
54
py
Python
apps/users/__init__.py
vuonghv/brs
9cdf9431ac69fd7a33d8bf4240a7d49a49ae4a80
[ "MIT" ]
1
2021-01-13T23:42:54.000Z
2021-01-13T23:42:54.000Z
apps/users/__init__.py
vuonghv/brs
9cdf9431ac69fd7a33d8bf4240a7d49a49ae4a80
[ "MIT" ]
1
2015-10-09T06:19:29.000Z
2015-10-09T06:19:29.000Z
apps/users/__init__.py
vuonghv/brs
9cdf9431ac69fd7a33d8bf4240a7d49a49ae4a80
[ "MIT" ]
8
2015-10-09T02:00:34.000Z
2016-07-08T15:00:37.000Z
default_app_config = 'apps.users.apps.UsersAppConfig'
27
53
0.833333
3b490034edc31556e4f11ba1f8512fea2d89bb17
7,830
py
Python
tests/v2/test_0086-nep13-ufunc.py
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
null
null
null
tests/v2/test_0086-nep13-ufunc.py
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
null
null
null
tests/v2/test_0086-nep13-ufunc.py
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE from __future__ import absolute_import import pytest # noqa: F401 import numpy as np # noqa: F401 import awkward as ak # noqa: F401 def tt(highlevel): return ak._v2.highlevel.Array(highlevel.layout.typetracer) def test_...
43.259669
88
0.576884
d757fd0fa0b575ace877fe038608eb2395658967
1,836
py
Python
openstack_dashboard/dashboards/project/data_processing/job_executions/tests.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/data_processing/job_executions/tests.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/data_processing/job_executions/tests.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
39.06383
75
0.727669
e83aee2622845b0e07cef678c951c81282af4ec6
12,887
py
Python
homeassistant/components/mqtt/siren.py
JulienJulien/core
b0c36d77292ebcab9810f092c196ef00043ae8b2
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mqtt/siren.py
JulienJulien/core
b0c36d77292ebcab9810f092c196ef00043ae8b2
[ "Apache-2.0" ]
5
2022-03-01T06:32:24.000Z
2022-03-31T07:07:45.000Z
homeassistant/components/mqtt/siren.py
maknetwork/core
80da5c52aedb14241837a75adb13eb5de956b8ad
[ "Apache-2.0" ]
null
null
null
"""Support for MQTT sirens.""" from __future__ import annotations import copy import functools import json import logging from typing import Any import voluptuous as vol from homeassistant.components import siren from homeassistant.components.siren import ( TURN_ON_SCHEMA, SirenEntity, process_turn_on_pa...
34.365333
101
0.640878
5be3903f96b4f346c15985dd788a5043a9be4de1
1,396
py
Python
d7a/dll/frame.py
christophevg/pyd7a
a785b50c1853988ae6770b94f12422b21a088523
[ "Apache-2.0" ]
3
2017-03-14T15:32:02.000Z
2021-08-15T18:17:42.000Z
d7a/dll/frame.py
christophevg/pyd7a
a785b50c1853988ae6770b94f12422b21a088523
[ "Apache-2.0" ]
null
null
null
d7a/dll/frame.py
christophevg/pyd7a
a785b50c1853988ae6770b94f12422b21a088523
[ "Apache-2.0" ]
1
2015-11-24T08:00:14.000Z
2015-11-24T08:00:14.000Z
from d7a.support.schema import Validatable, Types from d7a.dll.control import Control from d7a.d7anp.frame import Frame as D7anpFrame from PyCRC.CRCCCITT import CRCCCITT class Frame(Validatable): SCHEMA = [{ "length": Types.BYTE(), "subnet": Types.BYTE(), "control": Types.OBJECT(Control), ...
31.727273
101
0.694842
944880beffcf8a2ec0e7e57522130a92e724f73b
32,299
py
Python
cinder-14.0.0/cinder/volume/drivers/inspur/as13000/as13000_driver.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
cinder-14.0.0/cinder/volume/drivers/inspur/as13000/as13000_driver.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
cinder-14.0.0/cinder/volume/drivers/inspur/as13000/as13000_driver.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2017 Inspur Corp. # 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 ...
36.997709
79
0.569522
7a1e5454a83ebf060db62f8aededcdf26feca6f4
39,801
py
Python
CellProfiler/cellprofiler/modules/measureobjectneighbors.py
aidotse/Team-rahma.ai
66857731e1ca2472e0783e37ba472b55a7ac9cd4
[ "MIT" ]
null
null
null
CellProfiler/cellprofiler/modules/measureobjectneighbors.py
aidotse/Team-rahma.ai
66857731e1ca2472e0783e37ba472b55a7ac9cd4
[ "MIT" ]
null
null
null
CellProfiler/cellprofiler/modules/measureobjectneighbors.py
aidotse/Team-rahma.ai
66857731e1ca2472e0783e37ba472b55a7ac9cd4
[ "MIT" ]
null
null
null
""" MeasureObjectNeighbors ====================== **MeasureObjectNeighbors** calculates how many neighbors each object has and records various properties about the neighbors’ relationships, including the percentage of an object’s edge pixels that touch a neighbor. Given an image with objects identified (e.g., nuclei ...
41.589342
89
0.589005
5a1fa97f43d96720f902a56bc773db50dbaf67c4
5,310
py
Python
analysis.py
JiaChenwei/OpenTrafficSimulation
59ce3781a4264d2fd419261bfce2a8d1f7550976
[ "MIT" ]
2
2020-05-27T10:18:08.000Z
2021-02-20T08:12:48.000Z
analysis.py
JiaChenwei/OpenTrafficSimulation
59ce3781a4264d2fd419261bfce2a8d1f7550976
[ "MIT" ]
null
null
null
analysis.py
JiaChenwei/OpenTrafficSimulation
59ce3781a4264d2fd419261bfce2a8d1f7550976
[ "MIT" ]
null
null
null
import re import seaborn as sns import sys from example import * from matplotlib import pyplot as plt import os from pprint import pprint as pp mod = sys.argv[1] path = sys.argv[2] if path[-1] is not '/': path = path + '/' pass dirs = os.listdir(path) def plot(mean_matrix, standard_deviation_matrix)...
31.235294
118
0.552542
a453b8e2bc2951a5bc692f41d70ffec373092fa2
20,307
py
Python
sdk/python/pulumi_azure_native/network/v20180701/express_route_circuit_authorization.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180701/express_route_circuit_authorization.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180701/express_route_circuit_authorization.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities fro...
66.799342
6,435
0.725464
d3e58cb3ed32af962dda238a632caff912d015c7
843
py
Python
api_basebone/drf/pagination.py
git-men/bsm-django
46d1fcbd8ca379d20a3396fd7ea529ccf998f59d
[ "MIT" ]
90
2020-12-07T04:49:43.000Z
2022-03-31T08:24:35.000Z
api_basebone/drf/pagination.py
flyowl/lightning
946c98986c1c42bf8c28f203cdf8512262283c25
[ "MIT" ]
4
2021-01-11T16:10:55.000Z
2022-02-18T12:13:23.000Z
api_basebone/drf/pagination.py
flyowl/lightning
946c98986c1c42bf8c28f203cdf8512262283c25
[ "MIT" ]
16
2020-12-07T12:32:05.000Z
2022-01-30T05:36:51.000Z
from rest_framework.pagination import ( _positive_int, PageNumberPagination as OriginPageNumberPagination, ) from rest_framework.response import Response class PageNumberPagination(OriginPageNumberPagination): max_page_size = 1000 page_size = 100 page_query_param = 'page' page_size_query_para...
27.193548
69
0.626335
dd9e996b07572d56d1a97647204b5a4bc9c7c14e
282
py
Python
tests/artificial/transf_RelativeDifference/trend_MovingAverage/cycle_7/ar_12/test_artificial_32_RelativeDifference_MovingAverage_7_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_RelativeDifference/trend_MovingAverage/cycle_7/ar_12/test_artificial_32_RelativeDifference_MovingAverage_7_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_RelativeDifference/trend_MovingAverage/cycle_7/ar_12/test_artificial_32_RelativeDifference_MovingAverage_7_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 7, transform = "RelativeDifference", sigma = 0.0, exog_count = 20, ar_order = 12);
40.285714
177
0.744681
31e2193969e30c6bf94a4cf818ae4c3e562fbb27
5,133
py
Python
DRP_Backend/settings.py
leonardodalinky/device-rental-platform-backend
9ca9137ebce2ec241c6aecd73128c28941e3d6c4
[ "MIT" ]
null
null
null
DRP_Backend/settings.py
leonardodalinky/device-rental-platform-backend
9ca9137ebce2ec241c6aecd73128c28941e3d6c4
[ "MIT" ]
null
null
null
DRP_Backend/settings.py
leonardodalinky/device-rental-platform-backend
9ca9137ebce2ec241c6aecd73128c28941e3d6c4
[ "MIT" ]
null
null
null
""" Django settings for DRP_Backend project. Generated by 'django-admin startproject' using Django 3.1.1. 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 o...
27.745946
92
0.661991
8ec8cab2296fc86d72f2234d5cf794bc1fbfabc8
3,000
py
Python
examples/arrays_simple_vs_complex.py
infoxchange/spyne
60ed622b088c13f4f84c81f1f43302edbc7f6027
[ "BSD-3-Clause" ]
null
null
null
examples/arrays_simple_vs_complex.py
infoxchange/spyne
60ed622b088c13f4f84c81f1f43302edbc7f6027
[ "BSD-3-Clause" ]
null
null
null
examples/arrays_simple_vs_complex.py
infoxchange/spyne
60ed622b088c13f4f84c81f1f43302edbc7f6027
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf8 # # Copyright © Burak Arslan <burak at arskom dot com dot tr>, # Arskom Ltd. http://www.arskom.com.tr # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
34.482759
80
0.739667
b1cbb88959b1b5270b4d0c5fabde20462dc02a10
588
py
Python
lib/notification_service/notification_service/__init__.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
ai_flow/graph/__init__.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
ai_flow/protobuf/__init__.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# # Copyright 2022 The AI Flow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
34.588235
66
0.756803
cae4e94b46cc6877397daef82f8d8c93f4d93918
2,164
py
Python
plugins/active_directory_ldap/komand_active_directory_ldap/actions/add_user/action.py
JaredAllen13/insightconnect-plugins
f68ce8c60ad20439284228dfcbcd9f8c1c0c7d31
[ "MIT" ]
null
null
null
plugins/active_directory_ldap/komand_active_directory_ldap/actions/add_user/action.py
JaredAllen13/insightconnect-plugins
f68ce8c60ad20439284228dfcbcd9f8c1c0c7d31
[ "MIT" ]
null
null
null
plugins/active_directory_ldap/komand_active_directory_ldap/actions/add_user/action.py
JaredAllen13/insightconnect-plugins
f68ce8c60ad20439284228dfcbcd9f8c1c0c7d31
[ "MIT" ]
null
null
null
import insightconnect_plugin_runtime # Custom imports below from .schema import AddUserInput, AddUserOutput, Output, Input class AddUser(insightconnect_plugin_runtime.Action): def __init__(self): super(self.__class__, self).__init__( name="add_user", description="Adds the AD User ...
34.903226
116
0.616451
57eb891a503f868e14859f7f55a5acf0c1fe712d
5,800
py
Python
tensorflow_datasets/question_answering/tydi_qa.py
gijswijnholds/datasets
a58756db17aeacc15254a0e106ad1207d0ac01cc
[ "Apache-2.0" ]
1
2021-02-04T10:07:18.000Z
2021-02-04T10:07:18.000Z
tensorflow_datasets/question_answering/tydi_qa.py
gijswijnholds/datasets
a58756db17aeacc15254a0e106ad1207d0ac01cc
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/question_answering/tydi_qa.py
gijswijnholds/datasets
a58756db17aeacc15254a0e106ad1207d0ac01cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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 appl...
38.666667
152
0.704138
8d518409557e684da19870f518a31a16387b21d0
838
py
Python
rl_coach/tests/architectures/mxnet_components/embedders/test_vector_embedder.py
jl45621/coach
9a895a1ac73aff44b2e6eb8e4d01e8ec35ceb084
[ "Apache-2.0" ]
1,960
2017-10-19T10:31:24.000Z
2020-11-07T18:19:23.000Z
rl_coach/tests/architectures/mxnet_components/embedders/test_vector_embedder.py
jl45621/coach
9a895a1ac73aff44b2e6eb8e4d01e8ec35ceb084
[ "Apache-2.0" ]
349
2017-10-21T17:17:18.000Z
2020-10-17T13:39:56.000Z
rl_coach/tests/architectures/mxnet_components/embedders/test_vector_embedder.py
jl45621/coach
9a895a1ac73aff44b2e6eb8e4d01e8ec35ceb084
[ "Apache-2.0" ]
428
2017-10-21T01:32:58.000Z
2020-11-07T13:49:49.000Z
import mxnet as mx import os import pytest import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) from rl_coach.architectures.embedder_parameters import InputEmbedderParameters from rl_coach.architectures.mxnet_components.embedders.vector_embedder import VectorEmbedder from rl_coach.b...
36.434783
92
0.775656
7bbfa9207b5966f94b1422ef1737323620d466e3
1,910
py
Python
CCC 2002/Junior/J1.py
hand-burger/CCC-Solutions
7136c7bb3d0333a4658825d686b5c97e03860032
[ "MIT" ]
2
2021-07-20T18:33:05.000Z
2021-07-20T18:33:08.000Z
CCC 2002/Junior/J1.py
hand-burger/CCC-Solutions
7136c7bb3d0333a4658825d686b5c97e03860032
[ "MIT" ]
null
null
null
CCC 2002/Junior/J1.py
hand-burger/CCC-Solutions
7136c7bb3d0333a4658825d686b5c97e03860032
[ "MIT" ]
null
null
null
num = int(input()) if num == 0: print(' * * *') print('* *') print('* *') print('* *') print() print('* *') print('* *') print('* *') print(' * * *') elif num == 1: print() print(' *') print(' *') print(' *') print() pri...
18.543689
20
0.282199
02fec4799e97b0380881c62389e53243d6fa225d
1,569
py
Python
HackerRank/Two_Strings.py
RafayAK/CodingPrep
718eccb439db0f6e727806964766a40e8234c8a9
[ "MIT" ]
5
2019-09-07T17:31:17.000Z
2022-03-05T09:59:46.000Z
HackerRank/Two_Strings.py
RafayAK/CodingPrep
718eccb439db0f6e727806964766a40e8234c8a9
[ "MIT" ]
null
null
null
HackerRank/Two_Strings.py
RafayAK/CodingPrep
718eccb439db0f6e727806964766a40e8234c8a9
[ "MIT" ]
2
2019-09-07T17:31:24.000Z
2019-10-28T16:10:52.000Z
''' Given two strings, determine if they share a common substring. A substring may be as small as one character. For example, the words "a", "and", "art" share the common substring . The words "be" and "cat" do not share a substring. Function Description Complete the function twoStrings in the editor below. It shoul...
19.37037
152
0.678139
81ed1bf36b67478db37001c0a026b99d145708eb
1,006
py
Python
configs/selfsup/mae/mae_vit-base-p16_8xb512-coslr-400e_severstal.py
nolaurence/mmselfsup
76b85cffaa9b8c00a57f4426ce0a936cba4b98ff
[ "Apache-2.0" ]
null
null
null
configs/selfsup/mae/mae_vit-base-p16_8xb512-coslr-400e_severstal.py
nolaurence/mmselfsup
76b85cffaa9b8c00a57f4426ce0a936cba4b98ff
[ "Apache-2.0" ]
null
null
null
configs/selfsup/mae/mae_vit-base-p16_8xb512-coslr-400e_severstal.py
nolaurence/mmselfsup
76b85cffaa9b8c00a57f4426ce0a936cba4b98ff
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/mae_vit-base-p16.py', '../_base_/datasets/severstal.py', '../_base_/schedules/adamw_coslr-200e_in1k.py', '../_base_/default_runtime.py', ] # dataset data = dict(samples_per_gpu=64, workers_per_gpu=1) # optimizer optimizer = dict( lr=1.5e-4 * 64 / 256, paramwise_opt...
23.395349
66
0.654076
ac98e5a5e5ccff0743074a21e3862b56f278c443
3,947
py
Python
q2_coordinates/tests/test_stats.py
antgonza/q2-coordinates
fe1cce8eb14ff4ca7f305010c69d5747878cb084
[ "BSD-3-Clause" ]
null
null
null
q2_coordinates/tests/test_stats.py
antgonza/q2-coordinates
fe1cce8eb14ff4ca7f305010c69d5747878cb084
[ "BSD-3-Clause" ]
null
null
null
q2_coordinates/tests/test_stats.py
antgonza/q2-coordinates
fe1cce8eb14ff4ca7f305010c69d5747878cb084
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2017--, QIIME 2 development team. # # Distributed under the terms of the Lesser GPL 3.0 licence. # # The full license is in the file LICENSE, distributed with this software. # -------------------------------------------------...
40.690722
78
0.578921
50d4db3758221ff2f38349cdc736995119435779
7,172
py
Python
pywb/ftwhelper.py
Pterosaur/WAFBench
235438fe106445de375e01f3b0c9a7c43c1dc223
[ "MIT" ]
67
2019-05-12T06:46:30.000Z
2022-02-11T16:30:50.000Z
pywb/ftwhelper.py
Pterosaur/WAFBench
235438fe106445de375e01f3b0c9a7c43c1dc223
[ "MIT" ]
4
2019-09-17T09:29:47.000Z
2021-02-24T11:49:51.000Z
pywb/ftwhelper.py
Pterosaur/WAFBench
235438fe106445de375e01f3b0c9a7c43c1dc223
[ "MIT" ]
19
2019-07-01T05:08:36.000Z
2021-06-20T03:36:55.000Z
# -*- coding: utf-8 -*- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """ FTW helper This export: - FTW_TYPE: is a enum that contains RULE, TEST, STAGE, PACKETS. - FtwDict: is a subclass of dict, that store the data from ftw - FtwStr: is a subclass of str, ...
30.519149
82
0.585192
612112030590e1d710e6f0301ddd6586ea2709cb
807
py
Python
QandAProj/manage.py
Olek300/QandA
b740ece3b7dca8e0bd3c4f62e1a4d91e44b2b868
[ "BSD-3-Clause" ]
null
null
null
QandAProj/manage.py
Olek300/QandA
b740ece3b7dca8e0bd3c4f62e1a4d91e44b2b868
[ "BSD-3-Clause" ]
null
null
null
QandAProj/manage.py
Olek300/QandA
b740ece3b7dca8e0bd3c4f62e1a4d91e44b2b868
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "QandAProj.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that th...
35.086957
77
0.643123
af668bff702327b51b72819d8beab3bc7df642e3
6,091
py
Python
alistock/settings.py
taojy123/AliStock
1bedb6fbc985b1e062a7a9c04ea7a23e56f7821c
[ "MIT" ]
null
null
null
alistock/settings.py
taojy123/AliStock
1bedb6fbc985b1e062a7a9c04ea7a23e56f7821c
[ "MIT" ]
null
null
null
alistock/settings.py
taojy123/AliStock
1bedb6fbc985b1e062a7a9c04ea7a23e56f7821c
[ "MIT" ]
null
null
null
# Django settings for alistock project. import os import uuid DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS LOGIN_URL = '/loginpage/' if 'SERVER_SOFTWARE' in os.environ: from sae.const import ( MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQ...
34.027933
112
0.669348
d642bbb441ec8865ebf2d698779faee2c0fc47f9
4,062
py
Python
test/integration/ggrc/proposal/test_proposal_email.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
test/integration/ggrc/proposal/test_proposal_email.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/proposal/test_proposal_email.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """This module contains test about sending emails for proposals.""" import ddt import mock from ggrc.notifications import fast_digest from integration.ggrc import TestCase from integration.ggrc.api_helper im...
39.436893
78
0.651403
a2bd5a1e86a8bf866a1d15e264c2dcdd299df47c
3,998
py
Python
catalyst/dl/scripts/run.py
ssktotoro/catalyst
2ff687e802250772f8614583af933d6613f87788
[ "Apache-2.0" ]
1
2021-03-02T12:06:32.000Z
2021-03-02T12:06:32.000Z
catalyst/dl/scripts/run.py
ssktotoro/catalyst
2ff687e802250772f8614583af933d6613f87788
[ "Apache-2.0" ]
null
null
null
catalyst/dl/scripts/run.py
ssktotoro/catalyst
2ff687e802250772f8614583af933d6613f87788
[ "Apache-2.0" ]
1
2021-06-11T16:33:30.000Z
2021-06-11T16:33:30.000Z
#!/usr/bin/env python import argparse from argparse import ArgumentParser import os from pathlib import Path import sys from catalyst.dl.scripts.misc import parse_args_uargs from catalyst.runners.config import ConfigRunner from catalyst.settings import SETTINGS from catalyst.utils.distributed import get_rank from cata...
31.480315
98
0.650575
bccd083939925234f864dc919969cb6235ed7684
1,579
py
Python
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/ImportCredentialsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/ImportCredentialsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-csb/aliyunsdkcsb/request/v20171118/ImportCredentialsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.088889
74
0.757441
87fc2f58b1169f3f9946ace22ba4416a624c325e
3,706
py
Python
experiments/src/models/recognition/mtl.py
cricketclub/gridspace-stanford-harper-valley
0bd721e877c4a85d8c13ff837e68661ea6200a98
[ "CC-BY-4.0" ]
10
2021-01-09T00:52:28.000Z
2022-03-29T09:16:32.000Z
experiments/src/models/recognition/mtl.py
cricketclub/gridspace-stanford-harper-valley
0bd721e877c4a85d8c13ff837e68661ea6200a98
[ "CC-BY-4.0" ]
null
null
null
experiments/src/models/recognition/mtl.py
cricketclub/gridspace-stanford-harper-valley
0bd721e877c4a85d8c13ff837e68661ea6200a98
[ "CC-BY-4.0" ]
7
2020-08-04T17:22:19.000Z
2022-02-15T06:03:49.000Z
import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.utils.rnn as rnn_utils from src.models.recognition.las import LASEncoderDecoder class MTLEncoderDecoder(LASEncoderDecoder): def __init__( self, input_dim, num_clas...
28.953125
73
0.58041
569f838a93a807f16f574f124b142c38351b272c
12,981
py
Python
toughsat/random_ksat.py
3cnf/descriptor-solver
f76a795c16c8b024841600402da2f3f7ee6fdee1
[ "MIT" ]
null
null
null
toughsat/random_ksat.py
3cnf/descriptor-solver
f76a795c16c8b024841600402da2f3f7ee6fdee1
[ "MIT" ]
null
null
null
toughsat/random_ksat.py
3cnf/descriptor-solver
f76a795c16c8b024841600402da2f3f7ee6fdee1
[ "MIT" ]
null
null
null
# Copyright (C) 2011 by Henry Yuen, Joseph Bebel # 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, mer...
23.097865
171
0.612202
14a439072a0bd82fb2688001935dd365727d2f5e
49,415
py
Python
abcpy/distances.py
vishalbelsare/abcpy
72d0d31ae3fa531b69ea3fef39c96af6628ee76f
[ "BSD-3-Clause-Clear" ]
89
2017-02-23T23:34:52.000Z
2022-03-25T20:35:17.000Z
abcpy/distances.py
vishalbelsare/abcpy
72d0d31ae3fa531b69ea3fef39c96af6628ee76f
[ "BSD-3-Clause-Clear" ]
35
2017-03-31T13:24:52.000Z
2022-01-09T11:31:38.000Z
abcpy/distances.py
vishalbelsare/abcpy
72d0d31ae3fa531b69ea3fef39c96af6628ee76f
[ "BSD-3-Clause-Clear" ]
32
2017-03-22T06:27:43.000Z
2021-09-17T15:50:42.000Z
import numpy as np import warnings from abc import ABCMeta, abstractmethod from glmnet import LogitNet from sklearn import linear_model from sklearn.neighbors import NearestNeighbors from abcpy.utils import wass_dist class Distance(metaclass=ABCMeta): """This abstract base class defines how the distance between ...
40.504098
169
0.632966
e14b5c9dd45f2c43c23a5fb2942fbea318a80437
552
py
Python
tests/strict_after_load_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
tests/strict_after_load_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
tests/strict_after_load_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace import os @dace.program def strict_after_load(A: dace.float32[10, 20], B: dace.float32[10, 20]): for i, j in dace.map[0:10, 0:20]: B[i, j] = A[i, j] + 1 def test(): sdfg = strict_after_load.to_sdfg(strict=False) ...
25.090909
75
0.67029
cb48ce5a48aaa9a1d60e850035f2e98a10c0651b
13,194
py
Python
datasets/wikipedia/wikipedia.py
hemildesai/datasets
69bc2ca01d3a4f599c5b56175046f21e88aaab07
[ "Apache-2.0" ]
1
2021-04-15T17:59:46.000Z
2021-04-15T17:59:46.000Z
datasets/wikipedia/wikipedia.py
hemildesai/datasets
69bc2ca01d3a4f599c5b56175046f21e88aaab07
[ "Apache-2.0" ]
null
null
null
datasets/wikipedia/wikipedia.py
hemildesai/datasets
69bc2ca01d3a4f599c5b56175046f21e88aaab07
[ "Apache-2.0" ]
1
2021-03-24T18:33:32.000Z
2021-03-24T18:33:32.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets 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/LI...
23.310954
118
0.53206
e44d6b441a13aade1146752ad07c858edb02b71b
7,210
py
Python
ci/infra/testrunner/platforms/terraform.py
stefannica/skuba
6b2bb427946eeeae97bb7c723e77b29f8a3679f9
[ "Apache-2.0" ]
null
null
null
ci/infra/testrunner/platforms/terraform.py
stefannica/skuba
6b2bb427946eeeae97bb7c723e77b29f8a3679f9
[ "Apache-2.0" ]
null
null
null
ci/infra/testrunner/platforms/terraform.py
stefannica/skuba
6b2bb427946eeeae97bb7c723e77b29f8a3679f9
[ "Apache-2.0" ]
null
null
null
import json import logging import os from urllib.parse import urlparse import hcl from platforms.platform import Platform from utils import (Format, step) logger = logging.getLogger('testrunner') class Terraform(Platform): def __init__(self, conf, platform): super().__init__(conf) self.tfdir = ...
36.785714
118
0.602497
b1426534af4edc5b5f178e8ea96707d265f39aef
4,766
py
Python
ckanext/datapusher/plugin.py
RabiaSajjad/ckan
ada55a5b32916f07ce04a6e1b51efeca848f68da
[ "BSD-3-Clause" ]
null
null
null
ckanext/datapusher/plugin.py
RabiaSajjad/ckan
ada55a5b32916f07ce04a6e1b51efeca848f68da
[ "BSD-3-Clause" ]
null
null
null
ckanext/datapusher/plugin.py
RabiaSajjad/ckan
ada55a5b32916f07ce04a6e1b51efeca848f68da
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 from __future__ import annotations from ckan.common import CKANConfig from ckan.types import Action, AuthFunction, Context import logging from typing import Any, Callable, cast import ckan.model as model import ckan.plugins as p import ckanext.datapusher.views as views import ckanext.datapusher.help...
30.551282
78
0.594629
d6bee16ecd1bcb5d34642764642248ed9f004254
8,873
py
Python
setup.py
sgframework/sgpy
7f8cb8e1535cfe01a166b4c3a456ad68b66106d7
[ "MIT" ]
3
2019-05-23T16:43:31.000Z
2019-05-23T16:48:39.000Z
setup.py
sgframework/sgpy
7f8cb8e1535cfe01a166b4c3a456ad68b66106d7
[ "MIT" ]
3
2020-03-24T17:05:30.000Z
2021-02-02T21:59:46.000Z
setup.py
sgframework/sgpy
7f8cb8e1535cfe01a166b4c3a456ad68b66106d7
[ "MIT" ]
1
2019-05-23T16:43:33.000Z
2019-05-23T16:43:33.000Z
"""A setuptools based setup module. See: https://packaging.python.org/guides/distributing-packages-using-setuptools/ https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages from os import path # io.open is needed for projects that support...
43.495098
99
0.673278
752bf0adcb19ea0d69832210d2096d6fe68c3cf6
427
py
Python
buglab/utils/fileopen.py
microsoft/neurips21-self-supervised-bug-detection-and-repair
4e51184a63aecd19174ee40fc6433260ab73d56e
[ "MIT" ]
47
2021-10-19T16:15:41.000Z
2022-03-21T11:51:43.000Z
buglab/utils/fileopen.py
microsoft/neurips21-self-supervised-bug-detection-and-repair
4e51184a63aecd19174ee40fc6433260ab73d56e
[ "MIT" ]
2
2022-01-10T09:41:44.000Z
2022-03-09T12:54:55.000Z
buglab/utils/fileopen.py
microsoft/neurips21-self-supervised-bug-detection-and-repair
4e51184a63aecd19174ee40fc6433260ab73d56e
[ "MIT" ]
11
2021-11-30T13:25:03.000Z
2022-03-16T11:38:08.000Z
from os import PathLike from chardet import UniversalDetector def detect_encoding_and_open(filepath: PathLike): detector = UniversalDetector() with open(filepath, "rb") as rawdata: detector.reset() for line in rawdata.readlines(): detector.feed(line) if detector.done: ...
26.6875
63
0.662763
a703911a9ca2ffc22b14b29be8d6c88b22c45346
195
py
Python
sample_quepy_project/sample_quepy_project/dsl.py
akanimax/NLP2SQL
3a136f75621cc94076b981a50f18d5a459185271
[ "MIT" ]
11
2017-09-07T15:35:26.000Z
2021-08-16T03:49:00.000Z
sample_quepy_project/sample_quepy_project/dsl.py
akanimax/NLP2SQL
3a136f75621cc94076b981a50f18d5a459185271
[ "MIT" ]
1
2017-12-19T09:39:16.000Z
2018-07-18T07:03:06.000Z
sample_quepy_project/sample_quepy_project/dsl.py
akanimax/NLP2SQL
3a136f75621cc94076b981a50f18d5a459185271
[ "MIT" ]
5
2017-10-23T05:48:16.000Z
2020-06-05T10:41:00.000Z
# coding: utf-8 """ Domain specific language for sample_quepy_project quepy. """ from quepy.dsl import FixedRelation class IsDefinedIn(FixedRelation): relation = " = " reverse = True
15
56
0.712821
431bfd9340ec9d7634e65f48977705de336b53cc
132,621
py
Python
dm_protobuf/dm_pb2.py
DNLINYJ/Biilibili_All_Danmu
049697d73a9de43cee6fa47d3d8364d0e0e62642
[ "Apache-2.0" ]
13
2021-08-21T03:49:56.000Z
2022-03-21T07:07:40.000Z
dm_protobuf/dm_pb2.py
DNLINYJ/Biilibili_All_Danmu
049697d73a9de43cee6fa47d3d8364d0e0e62642
[ "Apache-2.0" ]
1
2021-11-13T11:02:00.000Z
2021-11-13T11:02:00.000Z
dm_protobuf/dm_pb2.py
DNLINYJ/Biilibili_All_Danmu
049697d73a9de43cee6fa47d3d8364d0e0e62642
[ "Apache-2.0" ]
2
2021-08-21T03:49:57.000Z
2022-02-23T02:48:15.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: dm.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf i...
45.731379
12,420
0.755016
b878ccd6538ef10f1f89fa5681191305e44f2102
7,614
py
Python
configuration/views.py
Not-Morgan/PGDBWebServer
9777773db763a13f168da633c69b9271f9da24b1
[ "MIT" ]
1
2021-05-25T04:30:12.000Z
2021-05-25T04:30:12.000Z
configuration/views.py
Not-Morgan/PGDBWebServer
9777773db763a13f168da633c69b9271f9da24b1
[ "MIT" ]
70
2020-02-20T23:43:52.000Z
2022-03-12T00:08:12.000Z
configuration/views.py
Not-Morgan/PGDBWebServer
9777773db763a13f168da633c69b9271f9da24b1
[ "MIT" ]
null
null
null
from django.http import HttpResponse, HttpResponseRedirect, Http404, JsonResponse import os, pytz, datetime from django.template.loader import render_to_string, get_template from django.urls import reverse import dateutil.parser import httplib2, threading from googleapiclient.discovery import build from oauth2client.se...
46.145455
135
0.652745
937657ec6d0e625429d11de03c578175d2dd5926
1,347
py
Python
nicos_virt_mlz/treff/setups/analyzer.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_virt_mlz/treff/setups/analyzer.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_virt_mlz/treff/setups/analyzer.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Analyzer device' group = 'optional' devices = dict( analyzer_tilt = device('nicos.devices.generic.Axis', description = 'Analyzer tilt', motor = device('nicos.devices.generic.VirtualMotor', abslimits = (-0.81, 3.4), unit = 'deg', ), precision =...
32.071429
66
0.522643
ccbc95d7e3298b5f91188ddc25b7cabd7669513a
6,536
py
Python
kubernetes/client/models/v1beta1_ingress_list.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
3
2019-05-19T05:05:37.000Z
2020-03-20T04:56:20.000Z
kubernetes/client/models/v1beta1_ingress_list.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_ingress_list.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
30.830189
281
0.606487
b10c8f099a3d13a2743552e63818acef09a9a4fe
4,866
py
Python
src/old_code/PredGui.py
amirjankar/graph-analysis
f16f0ffa34e295870ccc1fac2adfcefe11783524
[ "MIT" ]
1
2019-06-23T00:07:00.000Z
2019-06-23T00:07:00.000Z
src/old_code/PredGui.py
amirjankar/graph-analysis
f16f0ffa34e295870ccc1fac2adfcefe11783524
[ "MIT" ]
1
2019-06-23T00:10:17.000Z
2019-06-24T22:44:13.000Z
src/old_code/PredGui.py
amirjankar/graph-analysis
f16f0ffa34e295870ccc1fac2adfcefe11783524
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Dec 9 17:43:17 2018 @author: charl """ import tkinter as tk from tkinter import END import pickle import pandas as pd from RandomForestDriver import RandomForest from BagOfWords import bagOfWords #Get the bags of words and the forest f = open('sentimentBag.pickledfile', 'r...
32.225166
95
0.610769