hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
03831adc6abdd86b42f5862943b49dbf8f1b1c3b
2,307
py
Python
influxdb_client/domain/node.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/node.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/node.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Node...
27.141176
124
0.550932
0383388cea281ff2bd0e4e9b27a80f75b65d399d
2,619
py
Python
harmony.py
pdx-cs-sound/harmony
435cdabd85139317cd0e8bce7a25904a3257d30b
[ "MIT" ]
null
null
null
harmony.py
pdx-cs-sound/harmony
435cdabd85139317cd0e8bce7a25904a3257d30b
[ "MIT" ]
null
null
null
harmony.py
pdx-cs-sound/harmony
435cdabd85139317cd0e8bce7a25904a3257d30b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Copyright © 2019 Bart Massey # [This program is licensed under the "MIT License"] # Please see the file LICENSE in the source # distribution of this software for license terms. import numpy as np import resamp import wavio # Combine a sample with a copy shifted up a third and a copy # shifted do...
25.676471
69
0.691485
03834679e4f502a13e62b24f675080e1e599eaf7
44,879
py
Python
rlkit/torch/vae/vae_trainer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/torch/vae/vae_trainer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/vae/vae_trainer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
from collections import OrderedDict import os from os import path as osp import numpy as np import torch from rlkit.core.loss import LossFunction from torch import optim from torch.distributions import Normal from torch.utils.data import DataLoader from torch.nn import functional as F from torchvision.utils import save...
38.423801
174
0.589652
03834cc76498eea9bf4a78ce2a17e79211b8201e
765
py
Python
hiven/gateway/http.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
null
null
null
hiven/gateway/http.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
null
null
null
hiven/gateway/http.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
null
null
null
import aiohttp from hiven.data import API_URL class HTTPClient: def __init__(self, session: aiohttp.ClientSession, client, token: str): self._session = session self._client = client self._token = token async def request(self, method: str, endpoint: str, data: dict, headers...
34.772727
114
0.661438
0383c785eec75483f7fdb8a0d598ab5881a65997
1,735
py
Python
src/data_curation/pre_processing/country.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
src/data_curation/pre_processing/country.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
src/data_curation/pre_processing/country.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
import pycountry import numpy as np import pandas as pd import json import settings from dskc import dskc_clean def reduce_cardinality(data, colname, percentile): series = pd.value_counts(data[colname]) mask = (series/series.sum() * 100).lt(percentile) return np.where(data[colname].isin(series[mask].inde...
28.442623
84
0.627089
0383d6991ff9605e16ccb5ea2b3584ba8c7bf578
31
py
Python
CADMium/pssolver/__init__.py
wasserman-group/CADMium
0d0e16f8965e0a3acfea9ea6ba5dd0d51f1bdc55
[ "BSD-3-Clause" ]
null
null
null
CADMium/pssolver/__init__.py
wasserman-group/CADMium
0d0e16f8965e0a3acfea9ea6ba5dd0d51f1bdc55
[ "BSD-3-Clause" ]
1
2021-05-12T17:24:27.000Z
2021-05-12T17:24:27.000Z
CADMium/pssolver/__init__.py
VHchavez/CADMium
39f3bd63ca69502a80c677855da72f9e691b57e2
[ "BSD-3-Clause" ]
2
2020-10-07T20:48:56.000Z
2021-04-22T19:06:18.000Z
from .pssolver import Pssolver
15.5
30
0.83871
03849353f4ad4dd04826425a3954cf50fc88756f
5,151
py
Python
tests/integration/library.py
ovaistariq/proxysql-tools
f775fe5de908756da8522092450aec7171fbdbb3
[ "Apache-2.0" ]
null
null
null
tests/integration/library.py
ovaistariq/proxysql-tools
f775fe5de908756da8522092450aec7171fbdbb3
[ "Apache-2.0" ]
null
null
null
tests/integration/library.py
ovaistariq/proxysql-tools
f775fe5de908756da8522092450aec7171fbdbb3
[ "Apache-2.0" ]
1
2021-11-20T08:37:48.000Z
2021-11-20T08:37:48.000Z
import docker import json import socket import time import io from ConfigParser import ConfigParser from proxysql_tools.entities.galera import GaleraNode def docker_client(): return docker.from_env() def docker_pull_image(image): """Pull the specified image using docker-py. This function will parse the ...
28.776536
78
0.648612
0384a34c13d6f7a42602a49830c67c23f939681a
5,466
py
Python
Electrotonic_Properties/electrotonic_properties_dataframe.py
markuspleijzier/AdultEM
f8618ef0d12ef0aaf111e12d532cb3d398fb79c9
[ "MIT" ]
2
2019-12-05T10:07:19.000Z
2020-04-19T06:58:50.000Z
Electrotonic_Properties/electrotonic_properties_dataframe.py
markuspleijzier/AdultEM
f8618ef0d12ef0aaf111e12d532cb3d398fb79c9
[ "MIT" ]
null
null
null
Electrotonic_Properties/electrotonic_properties_dataframe.py
markuspleijzier/AdultEM
f8618ef0d12ef0aaf111e12d532cb3d398fb79c9
[ "MIT" ]
null
null
null
def electrotonic_properties_dataframe(x, Rm = 20.8, Cm = 0.8, Ri = 266.1): """ This function first divides a neuron into segments; these segments are contained in a list of lists of treenode_ids. It then uses the guess_radius function in pymaid to return a copy of the neuron...
29.868852
118
0.520124
0384f2b620370a9246a1030e28c008184760f13c
4,040
py
Python
ucb_cs61A/lab/lab02/lab02_2015/lab02/lab02_extra.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/lab/lab02/lab02_2015/lab02/lab02_extra.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/lab/lab02/lab02_2015/lab02/lab02_extra.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
"""Optional program for lab02 """ from lab02 import * import argparse # Extra Question def generator(): """Generates an encrypter and decrypter. >>> e, d = generator() >>> msg = 'text' >>> encrypted = e(msg) >>> encrypted != msg True >>> decrypted = d(encrypted) >>> decrypted == msg ...
24.484848
68
0.544059
03850cd2f2730aa06dd461ac9c60358e0a9adbec
5,282
py
Python
downunder/test/python/run_mappings.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
downunder/test/python/run_mappings.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
downunder/test/python/run_mappings.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2012-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unti...
31.628743
78
0.621924
038534a8115f5ecbd8751c7e58c117e4789af4f0
3,078
py
Python
ward/tests/test_config.py
jayeshathila/ward
966c3a61dc663b06aebc7d28a9acb9909d4f5810
[ "MIT" ]
null
null
null
ward/tests/test_config.py
jayeshathila/ward
966c3a61dc663b06aebc7d28a9acb9909d4f5810
[ "MIT" ]
null
null
null
ward/tests/test_config.py
jayeshathila/ward
966c3a61dc663b06aebc7d28a9acb9909d4f5810
[ "MIT" ]
null
null
null
import tempfile from pathlib import Path import click from ward import test, fixture, raises, each from ward.config import read_config_toml, as_list, apply_multi_defaults def temp_conf(conf: str) -> tempfile._TemporaryFileWrapper: with tempfile.NamedTemporaryFile(delete=False) as temp: temp.write(bytes(...
25.438017
90
0.679987
038562b304a290dc62ca17f2c11bd4fcf0b47f55
777
py
Python
twitter_draft.py
sazlin/reTOracle
26bd83853c6f35f40d929b7aac9a8e9874d2982e
[ "MIT" ]
null
null
null
twitter_draft.py
sazlin/reTOracle
26bd83853c6f35f40d929b7aac9a8e9874d2982e
[ "MIT" ]
null
null
null
twitter_draft.py
sazlin/reTOracle
26bd83853c6f35f40d929b7aac9a8e9874d2982e
[ "MIT" ]
null
null
null
import tweepy import header_rheTOracle as h call_back_url = 'ec2-54-213-173-105.us-west-2.compute.amazonaws.com' def make_conn(): auth = tweepy.OAuthHandler(h.twit_consumer_key, h.twit_consumer_secret, call_back_url) auth.set_access_token(h.twit_access_token, h.twit_access_token_secret) try: redi...
27.75
90
0.696268
0385bcf3d0e63d58756b64c221ccb4744c3e43b3
13,651
py
Python
horsy_installer.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
horsy_installer.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
horsy_installer.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets import sys from modules.path import add_to_path, add_var import modules.images import urllib.request import os import threading import ctypes import winshell from win32com.client import Dispatch import pythoncom class Ui_MainWindow(object): def setupUi(self, MainWindow):...
57.357143
233
0.558421
0386778631f0916d6e0604d19ba7cd57837fd512
5,584
py
Python
nnmodule.py
kinimod0/differentiable_sparse_eigen
f5a66e94799003ee7604ff995e347e39160a9313
[ "MIT" ]
null
null
null
nnmodule.py
kinimod0/differentiable_sparse_eigen
f5a66e94799003ee7604ff995e347e39160a9313
[ "MIT" ]
null
null
null
nnmodule.py
kinimod0/differentiable_sparse_eigen
f5a66e94799003ee7604ff995e347e39160a9313
[ "MIT" ]
null
null
null
from torch import nn import torch from hamiltonian import ham_total from xitorch import linalg from test_sparse_eigen import CsrLinOp import numpy as np class HamModule(nn.Module): pi = np.pi def __init__(self, L, J_1, B_0, B_ext, phi_i, device='cuda',dtype=torch.double): """ Parameters ...
37.986395
118
0.580766
03869b270a3f1d70ba75b20092725876ba5c9b46
2,194
py
Python
web app/server.py
simonefinelli/ASL-Real-time-Recognition
3576051d3aa8ca3935ee5aeb3275ec5dec711821
[ "MIT" ]
6
2021-01-11T11:32:27.000Z
2022-03-10T00:41:26.000Z
web app/server.py
simonefinelli/ASL-Real-time-Recognition
3576051d3aa8ca3935ee5aeb3275ec5dec711821
[ "MIT" ]
1
2022-03-09T05:57:29.000Z
2022-03-09T05:57:29.000Z
web app/server.py
simonefinelli/ASL-Real-time-Recognition
3576051d3aa8ca3935ee5aeb3275ec5dec711821
[ "MIT" ]
1
2021-08-17T13:45:00.000Z
2021-08-17T13:45:00.000Z
import base64 import io import cv2 import numpy as np from PIL import Image from flask import Flask, render_template from flask_socketio import SocketIO, emit from tensorflow.keras.models import load_model # global variables labels = { 0: 'book', 1: 'chair', 2: 'clothes', 3: 'computer', 4: 'drink'...
24.10989
68
0.631267
0386cdfda0852ab0038075db9d62eae93dc031bd
8,796
py
Python
openstackclient/tests/common/test_logs.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/common/test_logs.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/common/test_logs.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "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 # distrib...
42.907317
79
0.680196
0386fe84faadc11eade48aec998f174caefa6849
7,183
py
Python
keystone/contrib/endpoint_filter/routers.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/contrib/endpoint_filter/routers.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/contrib/endpoint_filter/routers.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack Foundation # # 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...
44.89375
79
0.686621
0387455405cd080512d7e0f5b8d66cbbf4f290b4
15,245
py
Python
salt/cloud/clouds/rackspace.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/rackspace.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/rackspace.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Rackspace Cloud Module ====================== The Rackspace cloud module. This module uses the preferred means to set up a libcloud based cloud module and should be used as the general template for setting up additional libcloud based modules. :depends: libcloud >= 0.13.2 Please note that...
32.784946
85
0.597573
0387503bb48ef63aa74d68b2beef52d8937798ea
416
py
Python
owtf/plugins/web/passive/Testing_for_SSI_Injection@OWTF-DV-009.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugins/web/passive/Testing_for_SSI_Injection@OWTF-DV-009.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/plugins/web/passive/Testing_for_SSI_Injection@OWTF-DV-009.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
""" PASSIVE Plugin for Testing_for_SSI_Injection@OWASP-DV-009 """ from owtf.managers.resource import get_resources from owtf.plugin.plugin_helper import plugin_helper DESCRIPTION = "Searching for pages that are susceptible to SSI-Injection" def run(PluginInfo): resource = get_resources('PassiveSSIDiscoveryLnk')...
27.733333
75
0.798077
03875f8b7d8e7d77045b7f5247e08d3dc4379e69
20,774
py
Python
HRI/TFVT_HRI/perception/common/backbone.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
146
2020-12-08T11:51:38.000Z
2022-03-23T12:58:43.000Z
HRI/TFVT_HRI/perception/common/backbone.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
10
2020-12-23T03:00:31.000Z
2022-03-23T09:55:30.000Z
HRI/TFVT_HRI/perception/common/backbone.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
43
2020-12-21T09:40:39.000Z
2022-03-31T06:41:32.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.79732
79
0.515933
03878db8d9484416705088096efa011a6cb41286
36,568
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/operations/_task_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/operations/_task_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/operations/_task_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.637232
219
0.671708
0387a24cb07f58a488a56230b89e6e53c4ab1f5a
665
py
Python
Turtle_crossing/scoreboard.py
Rekid46/Python-Games
7b4897ad5c6eccf855bb8c1f3bfa6d9e6596fc63
[ "Apache-2.0" ]
1
2021-07-15T08:15:51.000Z
2021-07-15T08:15:51.000Z
Turtle_crossing/scoreboard.py
Rekid46/Python-Games
7b4897ad5c6eccf855bb8c1f3bfa6d9e6596fc63
[ "Apache-2.0" ]
null
null
null
Turtle_crossing/scoreboard.py
Rekid46/Python-Games
7b4897ad5c6eccf855bb8c1f3bfa6d9e6596fc63
[ "Apache-2.0" ]
null
null
null
from turtle import Turtle, write FONT = ("Courier", 24, "normal") class Scoreboard(Turtle): def __init__(self): super().__init__() self.color("white") self.penup() self.hideturtle() self.score = 0 self.update_score() def update_score(self): self.clear(...
22.931034
82
0.545865
0387c4a87764b50a8d8a30d03f591688b8fdcb4b
1,523
py
Python
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/forum_votes.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/forum_votes.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/forum_votes.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
from utilities import db, moocdb_utils from common import * from datetime import datetime def GetForumVotes(vars): # DB connections # -------------- s = vars['source'] forum_db_selector = db.Selector(s['host'], s['user'], s['password'], s['port'], s['forum_db']) forum_anon = vars['forum_anon_c...
41.162162
137
0.634931
0387c7cf442dfa56923b166f5f5e62fe3db7c28a
4,522
py
Python
appengine/components/components/auth/prpc.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/auth/prpc.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/auth/prpc.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2018 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Defines pRPC server interceptor that initializes auth context.""" import logging from components import prpc from . import api from . import...
32.3
77
0.735073
0387c828ad8bdd62c4dd0e399a8faf92912cee44
5,198
py
Python
client/client.py
Liu-rj/CS305_online_conference
a3449d13564fd01449b3a3bc8aedf98ce99c0985
[ "MIT" ]
1
2021-12-28T05:11:17.000Z
2021-12-28T05:11:17.000Z
client/client.py
Liu-rj/CS305_online_conference
a3449d13564fd01449b3a3bc8aedf98ce99c0985
[ "MIT" ]
null
null
null
client/client.py
Liu-rj/CS305_online_conference
a3449d13564fd01449b3a3bc8aedf98ce99c0985
[ "MIT" ]
null
null
null
from CONSTANTS import * from client_sockets import * from PySide2.QtWidgets import * from ui.qt_test import Stats class Client(object): def __init__(self): super().__init__() self.sock = ClientSocket((XXIP, XXPORT)) #client ip address self.ip = self.sock.ip # sockets liste...
32.691824
133
0.597345
0387c880305382e9ae5668357d23abd75955f870
891
py
Python
care/facility/models/mixins/permissions/facility.py
agzuniverse/care
952babf5b394921fcdb4fd4b1405cb571261f322
[ "MIT" ]
1
2020-04-23T10:33:56.000Z
2020-04-23T10:33:56.000Z
care/facility/models/mixins/permissions/facility.py
agzuniverse/care
952babf5b394921fcdb4fd4b1405cb571261f322
[ "MIT" ]
null
null
null
care/facility/models/mixins/permissions/facility.py
agzuniverse/care
952babf5b394921fcdb4fd4b1405cb571261f322
[ "MIT" ]
null
null
null
from care.facility.models.mixins.permissions.base import BasePermissionMixin class FacilityPermissionMixin(BasePermissionMixin): @staticmethod def has_bulk_upsert_permission(request): return request.user.is_superuser def has_object_read_permission(self, request): return super().has_object...
40.5
103
0.781145
0388079f20dee0a6b249d568e2c51d1407d7466f
7,500
py
Python
tensorflow/contrib/receptive_field/python/util/graph_compute_order.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/receptive_field/python/util/graph_compute_order.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/receptive_field/python/util/graph_compute_order.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2017 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...
38.860104
81
0.6964
038816924383e3ad0cbfc801af20519713d89dda
8,731
py
Python
gordon/services/celery_worker/webhook_async_processor.py
twilio-labs/gordon
05c77a08c725180d21a988c9999cbefc295f4c8f
[ "MIT" ]
12
2021-09-09T00:57:53.000Z
2022-02-11T00:56:12.000Z
gordon/services/celery_worker/webhook_async_processor.py
twilio-labs/gordon
05c77a08c725180d21a988c9999cbefc295f4c8f
[ "MIT" ]
null
null
null
gordon/services/celery_worker/webhook_async_processor.py
twilio-labs/gordon
05c77a08c725180d21a988c9999cbefc295f4c8f
[ "MIT" ]
1
2021-09-15T15:52:08.000Z
2021-09-15T15:52:08.000Z
from gordon import celery from celery.utils.log import get_task_logger from gordon.services.github.webhook_processor import WebhookProcessor from gordon.configurations.github_config import GithubConfig from gordon.services.github.github_service import GithubService, GithubAppService from gordon.services.common.slack_no...
49.891429
121
0.708281
0388182f1e9734d563d7f7921ab6a9b984ea3dfa
601
py
Python
master/fresh-samples-master/fresh-samples-master/python_samples/get_tickets.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/fresh-samples-master/fresh-samples-master/python_samples/get_tickets.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/fresh-samples-master/fresh-samples-master/python_samples/get_tickets.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
## This script requires "requests": http://docs.python-requests.org/ ## To install: pip install requests import json import requests import base64 FRESHDESK_ENDPOINT = "https://domain.freshdesk.com" # check if you have configured https, modify accordingly FRESHDESK_KEY = "API_KEY" base64string = base64.encodestring(...
30.05
108
0.738769
03886d8f0ed4e1ca8c4577704e1f2bc23d916103
6,886
py
Python
jina/drivers/search.py
winstonww/jina
326d7e6d76d0b9cef5b7042356605c4f0a567860
[ "Apache-2.0" ]
null
null
null
jina/drivers/search.py
winstonww/jina
326d7e6d76d0b9cef5b7042356605c4f0a567860
[ "Apache-2.0" ]
null
null
null
jina/drivers/search.py
winstonww/jina
326d7e6d76d0b9cef5b7042356605c4f0a567860
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" from typing import Iterable, Tuple, Optional from . import ( BaseExecutableDriver, QuerySetReader, FlatRecursiveMixin, ContextAwareRecursiveMixin, ) from ..types.document import Document from ..types....
38.044199
119
0.618647
03887f4ed8187617d7723e84114fe1d8d781ad5d
1,765
py
Python
venv/Lib/site-packages/pyrogram/methods/auth/recover_password.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/methods/auth/recover_password.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/methods/auth/recover_password.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
33.301887
114
0.682153
03887faa226f2203e5d5f7be63c30ae449ac009b
2,878
py
Python
configurations/featharalick_convroll_all_broaden_7x7_weightdecay_resume.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
628
2015-03-25T17:32:30.000Z
2021-07-30T18:24:33.000Z
configurations/featharalick_convroll_all_broaden_7x7_weightdecay_resume.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
4
2015-04-06T10:23:19.000Z
2017-01-10T18:47:49.000Z
configurations/featharalick_convroll_all_broaden_7x7_weightdecay_resume.py
YingK001/-
11a66cdbddee16c69514b9530a727df0ac6e136f
[ "MIT" ]
253
2015-03-25T18:08:43.000Z
2022-01-26T22:35:05.000Z
import numpy as np import theano import theano.tensor as T import lasagne as nn import data import load import nn_plankton import dihedral import tmp_dnn import tta features = [ # "hu", # "tutorial", "haralick", # "aaronmoments", # "lbp", # "pftas", # "zernike_moments", # "image_siz...
32.337079
157
0.735233
038882c84fc5b4927f664bdbece3e11942854881
6,670
py
Python
tests/plugins/test_squash.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
null
null
null
tests/plugins/test_squash.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
30
2020-06-05T17:35:36.000Z
2022-03-25T19:21:36.000Z
tests/plugins/test_squash.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2017 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ import logging import os import pytest from flexmock import flexmock from atomic_reactor.constants import EXPORTED_SQUASHED_IMAGE_NAME, IMA...
38.333333
99
0.686057
0388903bd6ba6256510997acf4227d7a445ed4a1
9,661
py
Python
sdsapp/model/database.py
candle645/sdsapp
1168bfb7d6d679026f7681adc40c19ba16297297
[ "MIT" ]
null
null
null
sdsapp/model/database.py
candle645/sdsapp
1168bfb7d6d679026f7681adc40c19ba16297297
[ "MIT" ]
null
null
null
sdsapp/model/database.py
candle645/sdsapp
1168bfb7d6d679026f7681adc40c19ba16297297
[ "MIT" ]
null
null
null
''' Created on Dec 12, 2017 @author: candle ''' import threading import string import logging log = logging.getLogger('sdsapp') from lxml import etree from sdsapp.model.category import Category from sdsapp.model.article import Article from sdsapp.utils import strip_whitespace class DatabaseAdapter...
35.130909
120
0.523548
038896adf4de0061f2436311b18caf71f8cf8ed0
2,383
py
Python
indecisive/game/client/scenes/main_menu.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
15
2020-04-17T12:02:14.000Z
2022-03-16T03:01:34.000Z
indecisive/game/client/scenes/main_menu.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
9
2020-04-25T01:57:16.000Z
2020-04-29T11:42:34.000Z
indecisive/game/client/scenes/main_menu.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
55
2020-04-17T12:01:11.000Z
2021-12-28T10:14:02.000Z
import arcade from .base import Base class MainMenu(Base): def __init__(self, display): self.spritelist = arcade.SpriteList() self.spritedict = dict() self.timeAlive = 0 self.sprite_setup() self.display = display def sprite_setup(self): self.spritedict = { ...
33.097222
79
0.514478
0388a8354bac61ae833c280a831e5675c5a47ea0
7,811
py
Python
colin-api/src/colin_api/models/office.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
colin-api/src/colin_api/models/office.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
colin-api/src/colin_api/models/office.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
39.852041
118
0.623864
0388b2d6c3900d9929b01d7356e0925bab95d93d
23,038
py
Python
ilp_tear.py
baharev/sdopt-tearing
3b806b9a1cee9de701ca24969fb8cdd8cebfd23c
[ "BSD-3-Clause" ]
10
2016-11-23T11:37:56.000Z
2021-12-01T06:53:40.000Z
ilp_tear.py
baharev/sdopt-tearing
3b806b9a1cee9de701ca24969fb8cdd8cebfd23c
[ "BSD-3-Clause" ]
4
2016-03-23T13:19:15.000Z
2018-02-20T09:19:46.000Z
ilp_tear.py
baharev/sdopt-tearing
3b806b9a1cee9de701ca24969fb8cdd8cebfd23c
[ "BSD-3-Clause" ]
5
2017-04-11T12:27:30.000Z
2021-08-25T13:15:27.000Z
# Copyright (C) 2014, 2015 University of Vienna # All rights reserved. # BSD license. # Author: Ali Baharev <ali.baharev@gmail.com> from __future__ import division, print_function from contextlib import contextmanager from time import time from six import iteritems, itervalues from gurobipy import LinExpr, GRB, Model, ...
41.065954
83
0.660127
0388b423dcad812c09336b59e0874f9e6344e48d
2,856
py
Python
utils/test_prediction_speed.py
cpmpercussion/imps
5707ca01d4004d11603a9969276591c8ab5c28a4
[ "MIT" ]
12
2019-02-12T13:32:15.000Z
2021-07-04T04:53:52.000Z
utils/test_prediction_speed.py
cpmpercussion/imps
5707ca01d4004d11603a9969276591c8ab5c28a4
[ "MIT" ]
7
2019-06-06T18:46:40.000Z
2022-02-10T00:08:55.000Z
utils/test_prediction_speed.py
cpmpercussion/imps
5707ca01d4004d11603a9969276591c8ab5c28a4
[ "MIT" ]
2
2019-05-23T14:15:48.000Z
2021-12-14T03:54:40.000Z
import logging import time import datetime import numpy as np import pandas as pd # Hack to get openMP working annoyingly. import os os.environ['KMP_DUPLICATE_LIB_OK']='True' print("Importing Keras and MDRNN.") start_import = time.time() import empi_mdrnn import tensorflow as tf from keras import backend as K from te...
33.6
78
0.639356
0388b70214c604e98b410b808e75e12e654b32e5
688
py
Python
predict_pretrained.py
KISMED-TUDa/ECG_Classification
7df7b6d28287f592536cdbf01b6aec73e7b045ef
[ "MIT" ]
3
2021-12-07T17:08:00.000Z
2021-12-08T23:16:57.000Z
predict_pretrained.py
KISMED-TUDa/ECG_Classification
7df7b6d28287f592536cdbf01b6aec73e7b045ef
[ "MIT" ]
1
2021-12-09T00:33:41.000Z
2021-12-09T15:59:48.000Z
predict_pretrained.py
KISMED-TUDa/ECG_Classification
7df7b6d28287f592536cdbf01b6aec73e7b045ef
[ "MIT" ]
1
2021-07-30T14:53:48.000Z
2021-07-30T14:53:48.000Z
# -*- coding: utf-8 -*- """ Diese Datei sollte nicht verändert werden und wird von uns gestellt und zurückgesetzt. Skript testet das vortrainierte Modell @author: Maurice Rohr """ from predict import predict_labels from wettbewerb import load_references, save_predictions if __name__ == '__main__': ecg_leads, ecg_...
38.222222
173
0.706395
0388c9e11a31d73aa7a89706a2f02a29cc09e368
7,352
py
Python
tests/test_collect_chapters.py
kangwonlee/reposetman
ca35026a37a9f60479bf19ad542761a56ecd0783
[ "MIT" ]
null
null
null
tests/test_collect_chapters.py
kangwonlee/reposetman
ca35026a37a9f60479bf19ad542761a56ecd0783
[ "MIT" ]
109
2018-09-18T05:50:02.000Z
2020-03-19T04:55:35.000Z
tests/test_collect_chapters.py
kangwonlee/reposetman
ca35026a37a9f60479bf19ad542761a56ecd0783
[ "MIT" ]
1
2018-09-17T15:39:21.000Z
2018-09-17T15:39:21.000Z
import configparser import copy import os import pprint import sys import tempfile import unittest import urllib.parse as up sys.path.insert( 0, os.path.abspath( os.path.join( os.path.dirname(__file__), os.pardir ) ) ) import collect_chapters as col class TestCo...
32.245614
90
0.545838
0388eb2aeee7789c1f6eaf7e38a43de7c438f7fb
1,232
py
Python
Stage 2-5/hack.py
graviteja28/Hyperskill-Password-Hacker
c5662fdc4d80da28c3b08096a5a1d22b74b051ae
[ "MIT" ]
null
null
null
Stage 2-5/hack.py
graviteja28/Hyperskill-Password-Hacker
c5662fdc4d80da28c3b08096a5a1d22b74b051ae
[ "MIT" ]
null
null
null
Stage 2-5/hack.py
graviteja28/Hyperskill-Password-Hacker
c5662fdc4d80da28c3b08096a5a1d22b74b051ae
[ "MIT" ]
null
null
null
import socket import sys import string import itertools class Connection(): def __init__(self, host, port): self.hostname = host self.port = int(port) self.sock = socket.socket() self.myList = list(string.ascii_lowercase) + list(str(1234567890)) self.connect() ...
28.651163
75
0.551948
0389091778dc056cf3cacf0f164ab9deed4eb8ba
12,748
py
Python
RADnome/pipeline.py
ngcrawford/RADnome
cddbdce19290c60f4707a45566dff99f7970e514
[ "BSD-3-Clause" ]
1
2021-12-09T04:32:27.000Z
2021-12-09T04:32:27.000Z
RADnome/pipeline.py
wangpanqiao/RADnome
cddbdce19290c60f4707a45566dff99f7970e514
[ "BSD-3-Clause" ]
null
null
null
RADnome/pipeline.py
wangpanqiao/RADnome
cddbdce19290c60f4707a45566dff99f7970e514
[ "BSD-3-Clause" ]
1
2021-12-09T04:32:29.000Z
2021-12-09T04:32:29.000Z
#!/usr/bin/env python # encoding: utf-8 """ File: pipeline.py Author: Nicholas Crawford Created by Nicholas Crawford on Mon Jun 17 15:35:51 PDT 2013 Copyright (c) 2012 Nicholas G. Crawford All rights reserved. Description: Runs the entire RADnome generation code as a pipeline. """ import os import sys import glob ...
32.771208
111
0.526122
03890ba9549d7766ffe4265fed190019e0e54828
8,913
py
Python
plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_startup/utils.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_startup/utils.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-cli-benchmark/aea_cli_benchmark/case_acn_startup/utils.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance...
36.08502
83
0.663637
03894a09e0cfe742a599415d47cb81ae15ccd9db
58,286
py
Python
swift/common/middleware/s3api/s3request.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
swift/common/middleware/s3api/s3request.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
swift/common/middleware/s3api/s3request.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 OpenStack Foundation. # # 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...
38.6
79
0.566311
038977a210daac9571a233066099dc2cd438b506
1,606
py
Python
tests/testutils.py
marcdownie/wgpu-py
c3aa669610e631ce7a1143c10fda100a1c2751cc
[ "BSD-2-Clause" ]
null
null
null
tests/testutils.py
marcdownie/wgpu-py
c3aa669610e631ce7a1143c10fda100a1c2751cc
[ "BSD-2-Clause" ]
null
null
null
tests/testutils.py
marcdownie/wgpu-py
c3aa669610e631ce7a1143c10fda100a1c2751cc
[ "BSD-2-Clause" ]
null
null
null
import os import sys import subprocess import wgpu.backends.rs # noqa from wgpu.utils import get_default_device # noqa def run_tests(scope): """Run all test functions in the given scope.""" for func in list(scope.values()): if callable(func) and func.__name__.startswith("test_"): if fun...
28.678571
81
0.6401
0389a0574bb452b85f84d4e38794c70e1f604f44
3,782
py
Python
tests/framework/unit_tests/Optimizers/test2pointsCrossover.py
greenwoodms06/raven
f8e789c3c58356cdeab53c057b940d3ee96cd0d6
[ "Apache-2.0" ]
159
2017-03-24T21:07:06.000Z
2022-03-20T13:44:40.000Z
tests/framework/unit_tests/Optimizers/test2pointsCrossover.py
greenwoodms06/raven
f8e789c3c58356cdeab53c057b940d3ee96cd0d6
[ "Apache-2.0" ]
1,667
2017-03-27T14:41:22.000Z
2022-03-31T19:50:06.000Z
tests/framework/unit_tests/Optimizers/test2pointsCrossover.py
wanghy-anl/raven
ef1372364a2776385931763f2b28fdf2930c77b9
[ "Apache-2.0" ]
95
2017-03-24T21:05:03.000Z
2022-03-08T17:30:22.000Z
# Copyright 2017 Battelle Energy Alliance, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
38.989691
85
0.534109
0389d2cd1d82d3979f00188f1311b29e363e9e28
7,018
py
Python
atlas/prodtask_api/views.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
null
null
null
atlas/prodtask_api/views.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
15
2015-01-06T13:41:52.000Z
2022-03-30T10:37:25.000Z
atlas/prodtask_api/views.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
1
2017-07-20T08:01:24.000Z
2017-07-20T08:01:24.000Z
import json import logging from django.http.response import HttpResponseForbidden, HttpResponseBadRequest from rest_framework.decorators import api_view, authentication_classes, permission_classes from rest_framework.response import Response from rest_framework.authentication import TokenAuthentication, BasicAuthentic...
44.138365
143
0.698347
0389e5b71eaa7035627fb0f7af926daa908de85e
748
py
Python
datalad/cmdline/main.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/cmdline/main.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/cmdline/main.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
35.619048
87
0.552139
038a07aa500eed846034a2794b3f3321e1925090
36,514
py
Python
helpers/visualizer.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
17
2021-07-15T13:22:31.000Z
2022-02-15T05:37:51.000Z
helpers/visualizer.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
null
null
null
helpers/visualizer.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
3
2021-07-16T09:25:10.000Z
2022-01-11T12:36:28.000Z
import torch import matplotlib.pyplot as plt from matplotlib import cm from tqdm import tqdm import imageio import numpy as np import pandas as pd from copy import deepcopy import random from glob import glob import math import os,sys,inspect current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.curren...
47.359274
142
0.561346
038a3064d61a7bedad9306c566c7d6878311798b
987
py
Python
problems/arrays-and-strings/sort_array_by_parity.py
andrenbrandao/algorithm-problems
a6413cc7b3810008dd80766ae0d398a7edc58407
[ "MIT" ]
null
null
null
problems/arrays-and-strings/sort_array_by_parity.py
andrenbrandao/algorithm-problems
a6413cc7b3810008dd80766ae0d398a7edc58407
[ "MIT" ]
null
null
null
problems/arrays-and-strings/sort_array_by_parity.py
andrenbrandao/algorithm-problems
a6413cc7b3810008dd80766ae0d398a7edc58407
[ "MIT" ]
null
null
null
""" LeetCode 905. Sort Array By Parity https://leetcode.com/problems/sort-array-by-parity/ Given an integer array nums, move all the even integers at the beginning of the array followed by all the odd integers. Return any array that satisfies this condition. """ """ -- SOLUTION -- i j [2,1,3,5] - Use two pointer...
22.953488
119
0.605876
038a3c725f5a3718b68c2598ba517761a55a9e6f
2,601
py
Python
generated/python/gapic-google-cloud-vision-v1/test/google/cloud/gapic/vision/v1/test_image_annotator_client_v1.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/gapic-google-cloud-vision-v1/test/google/cloud/gapic/vision/v1/test_image_annotator_client_v1.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/gapic-google-cloud-vision-v1/test/google/cloud/gapic/vision/v1/test_image_annotator_client_v1.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
# Copyright 2017, 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 by applicable law or ...
34.223684
77
0.720492
038a73e20e937a1b9d92182bd4d333ccfe8602cf
3,020
py
Python
sdks/python/appcenter_sdk/models/CrashAttachmentLocation.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/CrashAttachmentLocation.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/CrashAttachmentLocation.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class CrashAttachmen...
27.454545
89
0.558609
038a992f428ee139d3f3b35485d5d2505e1b4fab
7,554
py
Python
test/test_client.py
wfscheper/epdb
903fc31cd5944d6f7c5ca57ea2aef5367c51309d
[ "MIT" ]
63
2015-05-12T20:58:04.000Z
2022-03-10T10:34:57.000Z
test/test_client.py
wfscheper/epdb
903fc31cd5944d6f7c5ca57ea2aef5367c51309d
[ "MIT" ]
10
2015-09-28T02:23:29.000Z
2020-12-05T09:54:38.000Z
test/test_client.py
wfscheper/epdb
903fc31cd5944d6f7c5ca57ea2aef5367c51309d
[ "MIT" ]
15
2015-05-04T09:49:45.000Z
2021-03-08T14:35:53.000Z
# # Copyright (c) SAS Institute, Inc. # # 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, di...
40.832432
79
0.657268
038acf546d80538b0538d69515170415a3cb8c43
3,543
py
Python
artemis/general/pareto_efficiency.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
artemis/general/pareto_efficiency.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
artemis/general/pareto_efficiency.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
2
2019-10-16T21:21:59.000Z
2022-03-07T22:18:44.000Z
from artemis.general.should_be_builtins import all_equal __author__ = 'peter' import numpy as np # Very slow for many datapoints. Fastest for many costs, most readable def is_pareto_efficient_dumb(costs): """ Find the pareto-efficient points :param costs: An (n_points, n_costs) array :return: A (n_p...
40.724138
114
0.70985
038ad3ebb51f90296dfa6f6e935351b40243dba8
5,216
py
Python
hindi_inverse_text_normalization/taggers/hi_taggers/date.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-01-17T09:13:42.000Z
2022-01-18T23:33:42.000Z
hindi_inverse_text_normalization/taggers/hi_taggers/date.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
null
null
null
hindi_inverse_text_normalization/taggers/hi_taggers/date.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-02-07T14:10:30.000Z
2022-02-09T07:28:19.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.315789
119
0.649348
038b1a2b45a9c888c44f177b2f55c73c94f69009
2,137
py
Python
pytorch_toolkit/face_recognition/model/cnn6.py
JinYAnGHe/openvino_training_extensions
a0b4456a3c9fe6c1b7eabc9d5eb4e74d01453dee
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/face_recognition/model/cnn6.py
JinYAnGHe/openvino_training_extensions
a0b4456a3c9fe6c1b7eabc9d5eb4e74d01453dee
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/face_recognition/model/cnn6.py
JinYAnGHe/openvino_training_extensions
a0b4456a3c9fe6c1b7eabc9d5eb4e74d01453dee
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn # import torch import math from .common import ModelInterface class CNN6(ModelInterface): """Facial landmarks localization network""" def __init__(self): super(CNN6, self).__init__() self.bn_first = nn.BatchNorm2d(3) activation = nn.ReLU self.landnet = nn....
31.426471
72
0.53533
038b25b8cace9c93244bfa19bcf23a018a61681e
39,720
py
Python
superset/db_engine_specs/presto.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
11
2018-01-16T16:52:12.000Z
2020-06-12T12:17:03.000Z
superset/db_engine_specs/presto.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
67
2017-11-06T21:31:14.000Z
2020-11-19T03:52:18.000Z
superset/db_engine_specs/presto.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
4
2018-01-31T00:11:50.000Z
2019-12-26T04:11: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...
40.489297
126
0.570191
038b6d2f4b97c0122db1fb4e4fd6ba1510e8ff8a
985
py
Python
demo_pair_plot_convention_geninq.py
admariner/scattertext
c2ac33ce01eedf8652d9bd1d61a648751950a367
[ "Apache-2.0" ]
2
2016-07-24T20:32:18.000Z
2016-07-26T18:54:18.000Z
demo_pair_plot_convention_geninq.py
JasonKessler/text-to-ideas
c2ac33ce01eedf8652d9bd1d61a648751950a367
[ "Apache-2.0" ]
2
2021-11-08T22:33:12.000Z
2021-11-15T04:48:19.000Z
demo_pair_plot_convention_geninq.py
JasonKessler/text-to-ideas
c2ac33ce01eedf8652d9bd1d61a648751950a367
[ "Apache-2.0" ]
null
null
null
import scattertext as st import scattertext.categoryprojector.pairplot convention_df = st.SampleCorpora.ConventionData2012.get_data() general_inquirer_feature_builder = st.FeatsFromGeneralInquirer() corpus = st.CorpusFromPandas( convention_df, category_col='speaker', text_col='text', nlp=st.whitespace...
35.178571
87
0.79797
038bba172387fdf71bd4cc18038f997f56d35751
284
py
Python
832.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
832.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
832.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
class Solution: def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]: B = [] for i in range(len(A)): temp = [k for k in A[i][::-1]] B.append([1 - l fozr l in temp]) return B # ------------ 120ms, 13.9MB ---------- #
28.4
72
0.450704
038bca956d7fc9eaa4272aa1d9c3c5ce9d3e6a1c
3,213
py
Python
conpaas-services/src/conpaas/core/misc.py
bopopescu/conpaas
e0a2955ae3e7da7525d799bed411e9f76ecf0919
[ "BSD-3-Clause" ]
1
2015-09-20T18:20:01.000Z
2015-09-20T18:20:01.000Z
conpaas-services/src/conpaas/core/misc.py
bopopescu/conpaas
e0a2955ae3e7da7525d799bed411e9f76ecf0919
[ "BSD-3-Clause" ]
1
2020-07-27T11:56:18.000Z
2020-07-27T11:56:18.000Z
conpaas-services/src/conpaas/core/misc.py
bopopescu/conpaas
e0a2955ae3e7da7525d799bed411e9f76ecf0919
[ "BSD-3-Clause" ]
3
2018-09-14T16:54:14.000Z
2020-07-26T03:14:56.000Z
import socket import fcntl import struct import zipfile import tarfile import readline from subprocess import Popen, PIPE def file_get_contents(filepath): f = open(filepath, 'r') filecontent = f.read() f.close() return filecontent def verify_port(port): '''Raise Type Error if port is not an integ...
28.945946
87
0.64986
038be3063eb5258cd1e9f8bdc9d7066cfb184c3e
130
py
Python
LeetCode/easy - Array/1304. Find N Unique Integers Sum up to Zero/.ipynb_checkpoints/solution-checkpoint.py
vincent507cpu/Comprehensive-Algorithm-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
4
2020-06-26T00:45:53.000Z
2021-04-19T12:23:32.000Z
LeetCode/easy - Array/1304. Find N Unique Integers Sum up to Zero/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
LeetCode/easy - Array/1304. Find N Unique Integers Sum up to Zero/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
class Solution: # my solution def sumZero(self, n: int) -> List[int]: return list(range(n-1)) + [-sum(range(n-1))]
32.5
52
0.576923
038beb2e375dbcbaaa2f7397fab9cf796c4c261b
304
py
Python
celery/tests/__init__.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/tests/__init__.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/tests/__init__.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
import os config = os.environ.setdefault("CELERY_TEST_CONFIG_MODULE", "celery.tests.config") os.environ["CELERY_CONFIG_MODULE"] = config os.environ["CELERY_LOADER"] = "default" def teardown(): import os if os.path.exists("test.db"): os.remove("test.db")
23.384615
59
0.631579
038bf34b7deb43244b232cfbfd11fc84872a18c5
87,021
py
Python
acq4/pyqtgraph/functions.py
tropp/ACQ4
792e05e99cedfc175593d200aeabecd6fa6304ce
[ "MIT" ]
null
null
null
acq4/pyqtgraph/functions.py
tropp/ACQ4
792e05e99cedfc175593d200aeabecd6fa6304ce
[ "MIT" ]
null
null
null
acq4/pyqtgraph/functions.py
tropp/ACQ4
792e05e99cedfc175593d200aeabecd6fa6304ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ functions.py - Miscellaneous functions with no other home Copyright 2010 Luke Campagnola Distributed under MIT/X11 license. See license.txt for more infomation. """ from __future__ import division from .python2_3 import asUnicode from .Qt import QtGui, QtCore, USE_PYSIDE Colors = { 'b...
37.967277
513
0.502522
038c22b35ea736cf6de67d03b09d7156f068327f
7,054
py
Python
adaptdl/adaptdl/torch/_metrics.py
odp/adaptdl
8a0ad47da91ab4b8f5e13c819cb4701a2ebe8ca8
[ "Apache-2.0" ]
null
null
null
adaptdl/adaptdl/torch/_metrics.py
odp/adaptdl
8a0ad47da91ab4b8f5e13c819cb4701a2ebe8ca8
[ "Apache-2.0" ]
null
null
null
adaptdl/adaptdl/torch/_metrics.py
odp/adaptdl
8a0ad47da91ab4b8f5e13c819cb4701a2ebe8ca8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Petuum, 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 by applicable law or...
35.27
79
0.689821
038c4280521b5afcc2332f5b7c51803901cb4ef8
7,396
py
Python
custinsight - Copy (2).py
chetanchougle/customerinsight
b23858d57637357ef7317f5458ee3ba49810f950
[ "MIT" ]
2
2020-12-12T14:20:59.000Z
2020-12-14T03:08:09.000Z
custinsight - Copy (2).py
chetanchougle/customerinsight
b23858d57637357ef7317f5458ee3ba49810f950
[ "MIT" ]
null
null
null
custinsight - Copy (2).py
chetanchougle/customerinsight
b23858d57637357ef7317f5458ee3ba49810f950
[ "MIT" ]
null
null
null
import pandas as pd from sklearn import ensemble from sklearn.feature_extraction import DictVectorizer import locale import datetime import numpy as np import matplotlib.pyplot as plt import pylab as py from sklearn.metrics import r2_score from scipy.stats import spearmanr, pearsonr # xl = pd.ExcelFile('C:\\Users\\Chet...
35.902913
108
0.58775
038c4c5ac6dc54c21aeb6ca91e64102de34ee90e
1,555
py
Python
transfocate/tests/test_lens.py
klauer/transfocate
46480d5cfe7f057dc1250bc307b576b3dd76f52b
[ "BSD-3-Clause-LBNL" ]
null
null
null
transfocate/tests/test_lens.py
klauer/transfocate
46480d5cfe7f057dc1250bc307b576b3dd76f52b
[ "BSD-3-Clause-LBNL" ]
40
2018-02-03T07:10:22.000Z
2022-01-31T19:53:02.000Z
transfocate/tests/test_lens.py
klauer/transfocate
46480d5cfe7f057dc1250bc307b576b3dd76f52b
[ "BSD-3-Clause-LBNL" ]
3
2018-09-12T16:49:14.000Z
2021-02-19T00:31:09.000Z
############ # Standard # ############ ############### # Third Party # ############### import numpy as np ########## # Module # ########## def test_lens_properties(lens): assert np.isclose(500.0, lens.radius, atol=0.1) assert np.isclose(100.0, lens.z, atol=0.1) assert np.isclose(50.0, lens.focus, ...
23.560606
65
0.650804
038c67e992482558b82f0786b71eb27f3d356baa
1,981
py
Python
venv/Lib/site-packages/pyrogram/raw/types/input_channel_empty.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/input_channel_empty.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_channel_empty.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.953125
103
0.630994
038c8e0d08b5b872a26b56e638e84e6839f7833f
2,518
py
Python
src/api.py
ja573/metrics-api
cd1bf46dd5d015f562ce2020519484c19db10e3e
[ "MIT" ]
null
null
null
src/api.py
ja573/metrics-api
cd1bf46dd5d015f562ce2020519484c19db10e3e
[ "MIT" ]
null
null
null
src/api.py
ja573/metrics-api
cd1bf46dd5d015f562ce2020519484c19db10e3e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Usage metrics JSON API. Simple web.py based API to a PostgreSQL database that runs on port 8080. usage: python api.py (c) Javier Arias, Open Book Publishers, May 2019 Use of this software is governed by the terms of the MIT license Dependencies: PyJWT==1.7.1 psyc...
28.613636
74
0.652105
038cb08a64d0b175ad9c68ce288ae530b4d72ba2
12,567
py
Python
mirrorselect/main.py
BaileyGingerTechnology/mirrorselect
8be89a06571398060cbef00e5b3817f7dcc8c893
[ "MIT" ]
null
null
null
mirrorselect/main.py
BaileyGingerTechnology/mirrorselect
8be89a06571398060cbef00e5b3817f7dcc8c893
[ "MIT" ]
null
null
null
mirrorselect/main.py
BaileyGingerTechnology/mirrorselect
8be89a06571398060cbef00e5b3817f7dcc8c893
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #-*- coding:utf-8 -*- """Mirrorselect 2.x Tool for selecting Gentoo source and rsync mirrors. Copyright 2005-2012 Gentoo Foundation Copyright (C) 2005 Colin Kingsley <tercel@gentoo.org> Copyright (C) 2008 Zac Medico <zmedico@gentoo.org> Copyright (C) 2009 Sebastian Pipping <sebastian@pipping....
32.984252
76
0.704066
038cbca54493f4d079e27b2db14bcc741c953078
5,993
py
Python
quest/score.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/score.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/score.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
import logging import argparse from data_engine.prepare_data import update_dataset_from_file from config import load_parameters from keras_wrapper.dataset import loadDataset from keras_wrapper.cnn_model import loadModel from keras_wrapper.model_ensemble import BeamSearchEnsemble from keras_wrapper.extra.read_write impo...
56.537736
119
0.638912
038ce1afb5c54bd064725df4c41ca37eee4fb95d
591
py
Python
attributes/unit_test/discoverer/java.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
106
2015-07-21T16:18:26.000Z
2022-03-31T06:45:34.000Z
attributes/unit_test/discoverer/java.py
Kowndinya2000/enhanced_repo_reaper
744f794ba53bde5667b3b0f99b07273d0e32a495
[ "Apache-2.0" ]
21
2015-07-11T03:48:28.000Z
2022-01-18T12:57:30.000Z
attributes/unit_test/discoverer/java.py
Kowndinya2000/enhanced_repo_reaper
744f794ba53bde5667b3b0f99b07273d0e32a495
[ "Apache-2.0" ]
26
2015-07-22T22:38:21.000Z
2022-03-14T10:11:56.000Z
from attributes.unit_test.discoverer import TestDiscoverer class JavaTestDiscoverer(TestDiscoverer): def __init__(self): self.language = 'Java' self.languages = ['Java'] self.extensions = ['*.java'] self.frameworks = [ self.__junit__, self.__testng__ ...
28.142857
58
0.620981
038d04ad07bb2e54a896a135f9fd169d1a347007
6,002
py
Python
xpython/byteop/byteop38.py
rocky/xpython
ce4ed4329cee2af0aab94254276f5a5687dd25f9
[ "MIT" ]
1
2020-04-28T13:18:13.000Z
2020-04-28T13:18:13.000Z
xpython/byteop/byteop38.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
xpython/byteop/byteop38.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2021 Rocky Bernstein # This program comes with ABSOLUTELY NO WARRANTY. # This is free software, and you are welcome to redistribute it # under certain conditions. # See the documentation for the full license. """Bytecode Interpreter operations for Python 3.8 """ from xpython.byte...
40.013333
152
0.627124
038d2bf303c543660dfb34fe4cfb8ba651b644d4
254
py
Python
python3/numpy/numpy.zeros.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
2
2020-09-29T04:09:41.000Z
2020-10-18T13:33:36.000Z
python3/numpy/numpy.zeros.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
null
null
null
python3/numpy/numpy.zeros.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
1
2021-12-26T04:55:55.000Z
2021-12-26T04:55:55.000Z
#numpy.zeros(shape, dtype=float, order='C') #Return a new array of given shape and type, filled with zeros. import numpy as np x = np.zeros(5) #by default data type is float print(x,"\n") #so x = np.zeros((5,5), dtype=int) #shape, data type print(x)
19.538462
63
0.685039
038d303588686dcaf77cb3a4bb7d46e7491ed7e3
1,096
py
Python
setup.py
tomvanner/scrapy-selenium
aba6c1b652442b7e7e08de071a67f242897afb16
[ "WTFPL" ]
null
null
null
setup.py
tomvanner/scrapy-selenium
aba6c1b652442b7e7e08de071a67f242897afb16
[ "WTFPL" ]
null
null
null
setup.py
tomvanner/scrapy-selenium
aba6c1b652442b7e7e08de071a67f242897afb16
[ "WTFPL" ]
null
null
null
"""This module contains the packaging routine for the pybook package""" import pip from setuptools import setup, find_packages pip_major_version = int(pip.__version__.split(".")[0]) if pip_major_version >= 20: from pip._internal.req import parse_requirements from pip._internal.network.session import PipSessi...
28.842105
76
0.732664
038d35e64619f8bc5a2b788c9ac8dad8a9e4ac55
4,651
py
Python
plugins/global/launcher/avalon_terminal.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/global/launcher/avalon_terminal.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/global/launcher/avalon_terminal.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import os import sys from avalon import ( api, io, lib, pipeline, ) from avalon.vendor import six class Terminal(api.Application): name = "terminal" label = "Terminal" icon = "terminal" color = "#7F8C9B" order = 10 def is_compatible(self, session): """Return whether ...
32.524476
78
0.514728
038d3c9ed79be032b3d24e0d67a277d3c8862c8f
980
py
Python
test/host_tests/mps2_reset.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
37
2015-09-10T13:52:40.000Z
2021-11-17T11:53:30.000Z
test/host_tests/mps2_reset.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
270
2015-09-09T13:00:53.000Z
2021-12-16T17:39:05.000Z
test/host_tests/mps2_reset.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
51
2015-09-04T13:16:47.000Z
2021-11-18T15:40:03.000Z
# # Copyright (c) 2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # import unittest from unittest.mock import patch import os import time from htrun.host_tests_plugins.module_reset_mps2 import HostTestPluginResetMethod_MPS2 class MPS2ResetTestCase(unittest.TestCase): ...
27.222222
95
0.719388
038d58c5fff1253d1aac90ed5d88b8d06a50dbf7
4,589
py
Python
toontown/chat/ChatBalloon.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/chat/ChatBalloon.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/chat/ChatBalloon.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from pandac.PandaModules import * class ChatBalloon(NodePath): TEXT_X_OFFSET = -0.05 TEXT_Y_OFFSET = -0.05 # Proportion of the Z offset based on the default line height, and the new # line height: TEXT_Z_OFFSET = -(4.0/33.0) TEXT_MIN_WIDTH = 1.75 TEXT_MIN_HEIGHT = 1 TEXT_GLYPH_SCALE =...
38.563025
94
0.659621
038d67ec51cbeb35ae5b4d867e2e097adb33e8f7
890
py
Python
freerad_manager/template_imaa/urls.py
fizzi/django-freeradius-manager
d81fe6ed28b9bdb135c52c4a422df2760f72d0cb
[ "Apache-2.0" ]
9
2020-04-11T14:38:23.000Z
2022-03-26T01:50:56.000Z
freerad_manager/template_imaa/urls.py
fizzi/django-freeradius-manager
d81fe6ed28b9bdb135c52c4a422df2760f72d0cb
[ "Apache-2.0" ]
1
2022-01-06T06:22:06.000Z
2022-01-10T11:05:25.000Z
freerad_manager/template_imaa/urls.py
fizzi/django-freeradius-manager
d81fe6ed28b9bdb135c52c4a422df2760f72d0cb
[ "Apache-2.0" ]
7
2020-04-15T14:09:54.000Z
2021-11-06T20:51:05.000Z
"""django_peo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
35.6
77
0.708989
038d9a5db8ee3972fc6538275517fa883d2a1a21
3,009
py
Python
tests/scripts/thread-cert/test_route_table.py
sarah-iot/openthread
8210a02400c145eb862b65e32040ed0415ba36c2
[ "BSD-3-Clause" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
tests/scripts/thread-cert/test_route_table.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
tests/scripts/thread-cert/test_route_table.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
#!/usr/bin/env python3 # # Copyright (c) 2019, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
34.193182
80
0.68561
038dc6d4ae17a838c5f84915d527d972a6129b4e
6,060
py
Python
nni/setup.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
1
2022-03-03T06:04:34.000Z
2022-03-03T06:04:34.000Z
nni/setup.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
1
2021-08-31T23:18:08.000Z
2021-08-31T23:18:08.000Z
nni/setup.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
1
2021-06-10T06:40:40.000Z
2021-06-10T06:40:40.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ Script for installation and distribution. You can use environment variable `NNI_RELEASE` to set release version. If release version is not set, default to a development build whose version string will be `999.dev0`. ## Development ## Bui...
26.696035
102
0.625743
038dd89699c56eadc563d79061205122cccb345c
9,820
py
Python
projectroles/templatetags/projectroles_common_tags.py
bihealth/sodar-core
ac7397294b24aea352bc7842e75011ad8c1a2033
[ "MIT" ]
7
2021-12-15T04:37:08.000Z
2022-03-31T12:08:02.000Z
projectroles/templatetags/projectroles_common_tags.py
bihealth/sodar-core
ac7397294b24aea352bc7842e75011ad8c1a2033
[ "MIT" ]
1
2021-05-03T13:11:56.000Z
2021-05-03T13:11:58.000Z
projectroles/templatetags/projectroles_common_tags.py
bihealth/sodar-core
ac7397294b24aea352bc7842e75011ad8c1a2033
[ "MIT" ]
null
null
null
"""Template tags provided by projectroles for use in other apps""" import mistune from importlib import import_module from django import template from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.staticfiles import finders from django.core.exceptions import ObjectDoe...
30.215385
80
0.644196
038df782d1b7c4b3ff1541089733c9070d5e62d2
7,266
py
Python
executor/tests/transpiler/test_reader_regressions.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
executor/tests/transpiler/test_reader_regressions.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
executor/tests/transpiler/test_reader_regressions.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
import random import pytest import toml from bai_kafka_utils.events import DownloadableContent, FetchedType, FileSystemObject from pytest_regressions.file_regression import FileRegressionFixture from typing import List from executor.args import create_executor_config from transpiler.bai_knowledge import create_job_ya...
36.33
120
0.692265
038e6e1532daeec60a598f563b02d035a8b4815b
10,915
py
Python
scripts/insert.py
msikma/Complete-Fire-Red-Upgrade
6a15ece5c180b9d98e1f8cc78e7e8f62f5e48708
[ "WTFPL" ]
null
null
null
scripts/insert.py
msikma/Complete-Fire-Red-Upgrade
6a15ece5c180b9d98e1f8cc78e7e8f62f5e48708
[ "WTFPL" ]
null
null
null
scripts/insert.py
msikma/Complete-Fire-Red-Upgrade
6a15ece5c180b9d98e1f8cc78e7e8f62f5e48708
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 import os import subprocess import sys import shutil import binascii import textwrap import platform import sys from datetime import datetime OFFSET_TO_PUT = 0x900000 SOURCE_ROM = "BPRE0.gba" def get_path(): if platform.system() == 'Windows': return os.environ.get('Path').split(';') return...
28.204134
159
0.618965
038e7aac81157786236bccb9352813fd13c43a84
4,707
py
Python
train2.py
tanmayb123/DeepSPADE
3c62a0b588850b142b77dca6bb3f1d93f6c1e6b1
[ "MIT" ]
21
2017-09-13T00:10:05.000Z
2021-03-17T17:42:05.000Z
train2.py
tanmayb123/DeepSPADE
3c62a0b588850b142b77dca6bb3f1d93f6c1e6b1
[ "MIT" ]
null
null
null
train2.py
tanmayb123/DeepSPADE
3c62a0b588850b142b77dca6bb3f1d93f6c1e6b1
[ "MIT" ]
2
2017-09-21T11:11:00.000Z
2019-07-22T14:44:49.000Z
""" Train convolutional network for sentiment analysis. Based on "Convolutional Neural Networks for Sentence Classification" by Yoon Kim http://arxiv.org/pdf/1408.5882v2.pdf For 'CNN-non-static' gets to 82.1% after 61 epochs with following settings: embedding_dim = 20 filter_sizes = (3, 4) num_filters = 3 dropout_prob...
31.590604
114
0.70427
038e7f175cb25cf66f96bf3b0d2a591772a7c538
15,235
py
Python
topo/coordmapper/__init__.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
40
2015-02-05T14:53:10.000Z
2020-10-12T06:26:23.000Z
topo/coordmapper/__init__.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
95
2015-01-01T16:14:20.000Z
2022-02-11T22:50:27.000Z
topo/coordmapper/__init__.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
22
2015-05-03T10:24:17.000Z
2019-11-15T06:34:31.000Z
""" A family of function objects for transforming one set of coordinates into another. Coordinate mapper functions are useful for defining magnifications and other kinds of transformations on sheet coordinates, e.g. for defining retinal magnification using a CFProjection. A CoordinateMapperFn (e.g. MagnifyingMapper),...
30.168317
106
0.627174
038e808cea7a346e17f43e1081c2221ed8059383
7,138
py
Python
model/resnet.py
helia95/SpeakerRecognition_tutorial
5c00f9165fd260d50b74ab46e4d81d7cfd77ab8c
[ "MIT" ]
2
2019-11-29T09:40:43.000Z
2019-12-04T03:21:24.000Z
model/resnet.py
helia95/SpeakerRecognition_tutorial
5c00f9165fd260d50b74ab46e4d81d7cfd77ab8c
[ "MIT" ]
6
2019-12-01T05:01:26.000Z
2022-03-12T00:07:07.000Z
model/resnet.py
helia95/SpeakerRecognition_tutorial
5c00f9165fd260d50b74ab46e4d81d7cfd77ab8c
[ "MIT" ]
7
2019-11-29T16:14:07.000Z
2019-12-03T06:17:29.000Z
"""Imported from https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py and added support for the 1x32x32 mel spectrogram for the speech recognition. Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun: Deep Residual Learning for Image Recognition https://arxiv.org/abs/1512.03385 """ import tor...
33.35514
96
0.595685
038e8389d476d2ee38e7539e97170047163f9800
3,149
py
Python
homeassistant/components/sensor/lastfm.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
homeassistant/components/sensor/lastfm.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
homeassistant/components/sensor/lastfm.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
""" Sensor for Last.fm account status. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.lastfm/ """ import re import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity from...
29.990476
74
0.617656
038eb58788d12a7f037e8a477196f0a037806cb0
37
py
Python
qstack/regression/__init__.py
lcmd-epfl/Q-stack
c9f30bf0adc8cfbca33cbd4d991aafc315b6e000
[ "MIT" ]
null
null
null
qstack/regression/__init__.py
lcmd-epfl/Q-stack
c9f30bf0adc8cfbca33cbd4d991aafc315b6e000
[ "MIT" ]
null
null
null
qstack/regression/__init__.py
lcmd-epfl/Q-stack
c9f30bf0adc8cfbca33cbd4d991aafc315b6e000
[ "MIT" ]
null
null
null
from qstack.regression import kernel
18.5
36
0.864865
038ebb51f5245efb99cd842250d90bb76bd875da
3,183
py
Python
src/simulator/test_app.py
zxxia/RL-CC-Video
916d059ba15fa587c0101470aa608ea8a01b8305
[ "Apache-2.0" ]
null
null
null
src/simulator/test_app.py
zxxia/RL-CC-Video
916d059ba15fa587c0101470aa608ea8a01b8305
[ "Apache-2.0" ]
null
null
null
src/simulator/test_app.py
zxxia/RL-CC-Video
916d059ba15fa587c0101470aa608ea8a01b8305
[ "Apache-2.0" ]
null
null
null
import os from simulator.network_simulator.app import Application, VideoApplicationBuilder from simulator.network_simulator.bbr_old import BBR_old from simulator.network_simulator.bbr import BBR from simulator.network_simulator.cubic import Cubic from simulator.trace import generate_trace, Trace from simulator.pantheon...
45.471429
153
0.685831
038ee379f8dd236a66b6a2ed3aebf694fabf3384
2,361
py
Python
strings/boggle.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
strings/boggle.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
strings/boggle.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
class TrieNode(): def __init__(self, letter=''): self.children = {} self.is_word = False def lookup_letter(self, c): if c in self.children: return True, self.children[c].is_word else: return False, False class Trie(): def __init__(self): se...
24.852632
80
0.542567
038eec346664fed10021b171bff3c61148d0afbb
2,409
py
Python
src/tabs/dag_inspector/controller/search_bar_controller.py
sisoe24/ProfileInspector
38cfefe68c09b153f7380447c4c486728feecb9d
[ "MIT" ]
4
2021-07-22T10:23:56.000Z
2021-11-03T19:01:21.000Z
src/tabs/dag_inspector/controller/search_bar_controller.py
Ripax/ProfileInspector
38cfefe68c09b153f7380447c4c486728feecb9d
[ "MIT" ]
null
null
null
src/tabs/dag_inspector/controller/search_bar_controller.py
Ripax/ProfileInspector
38cfefe68c09b153f7380447c4c486728feecb9d
[ "MIT" ]
1
2022-02-16T07:23:31.000Z
2022-02-16T07:23:31.000Z
# coding: utf-8 from __future__ import print_function from PySide2.QtCore import Qt, QSettings from ProfileInspector.src.util.nuke_util import zoom_node class SearchBarController(): # TODO: add shortcut for focusing line edit def __init__(self, main_window): self.settings = QSettings() self...
32.554054
77
0.674139
038f2eb4e3bbf214cf01b0bfa8413f31eff72386
253
py
Python
tests/test_uci.py
KOLANICH/scikit-datasets
28f3cc13c03d912d2fc4968f2f06e8be4b9e1f40
[ "MIT" ]
null
null
null
tests/test_uci.py
KOLANICH/scikit-datasets
28f3cc13c03d912d2fc4968f2f06e8be4b9e1f40
[ "MIT" ]
null
null
null
tests/test_uci.py
KOLANICH/scikit-datasets
28f3cc13c03d912d2fc4968f2f06e8be4b9e1f40
[ "MIT" ]
null
null
null
""" Test the UCI loader. @author: David Diaz Vico @license: MIT """ from skdatasets.uci import fetch_uci def test_fetch_uci_wine(): """Tests UCI wine dataset.""" data = fetch_uci('wine') assert data.data.shape == (178, 13)
16.866667
40
0.628458
038f36228fa36786483cb7469e58d21a2e731592
10,222
py
Python
libs/nftk_useragents.py
dre/neurofuzz_toolkit
fb36e8faa23a96a81a1e677a1add1347de765ed2
[ "BSD-3-Clause" ]
null
null
null
libs/nftk_useragents.py
dre/neurofuzz_toolkit
fb36e8faa23a96a81a1e677a1add1347de765ed2
[ "BSD-3-Clause" ]
null
null
null
libs/nftk_useragents.py
dre/neurofuzz_toolkit
fb36e8faa23a96a81a1e677a1add1347de765ed2
[ "BSD-3-Clause" ]
1
2018-04-21T21:39:38.000Z
2018-04-21T21:39:38.000Z
""" Author: Andres Andreu < andres at neurofuzzsecurity dot com > Company: neuroFuzz, LLC Date: 7/25/2016 Last Modified: 8/18/2016 returns random values to be used as User-Agent ID strings BSD 3-Clause License Copyright (c) 2016, Andres Andreu, neuroFuzz LLC All rights reserve...
68.146667
152
0.593426
038f769268b7c967864469d328df0766310ae49b
8,624
py
Python
ads/vault/vault.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
20
2022-02-22T19:07:09.000Z
2022-03-16T17:21:42.000Z
ads/vault/vault.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ads/vault/vault.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-- # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ import ast import base64 import json import oci.vault import uuid from oci.vault import VaultsClientComposit...
36.235294
203
0.638915
038fa2342ca7cfc477d286ced0bddc2f5e9741ac
22,366
py
Python
main_TUs_graph_classification.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
main_TUs_graph_classification.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
6
2022-01-06T21:27:06.000Z
2022-01-19T06:28:56.000Z
main_TUs_graph_classification.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
# ======================== Import Packages ======================== # import argparse import glob import json import os import random import time import numpy as np import torch import torch.optim as optim from tensorboardX import SummaryWriter from torch.utils.data import DataLoader from tqdm import tqdm from data.d...
38.965157
173
0.571001
038fe6981998d8bddd78949ddd7420b204761777
3,414
py
Python
Data Collection/Apparatus/top_counties.py
NathanDai5287/air-pollution-covid-19
dbf030bba7df22efc53d2262cea469309c884791
[ "MIT" ]
null
null
null
Data Collection/Apparatus/top_counties.py
NathanDai5287/air-pollution-covid-19
dbf030bba7df22efc53d2262cea469309c884791
[ "MIT" ]
null
null
null
Data Collection/Apparatus/top_counties.py
NathanDai5287/air-pollution-covid-19
dbf030bba7df22efc53d2262cea469309c884791
[ "MIT" ]
null
null
null
import numpy as np import requests import datetime import pandas as pd from io import StringIO import csv import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import zip_conversion def most_infected(n: int, day: datetime.date, return_zip: bool) -> list: """returns a list of the mos...
32.207547
134
0.620094
03900920b3be8f840054d3194f61bfc852729e2a
180
py
Python
ops/db/example/models/a.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
ops/db/example/models/a.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
ops/db/example/models/a.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String from base import Base class A(Base): __tablename__ = 'A' id = Column(Integer, primary_key=True) name = Column(String)
18
46
0.705556
039012d9b84b844a3334ed25bb3bc9449f804a35
4,921
py
Python
ase-estimation/run-filter-coverage.py
qfma/ohnologdc
ab1f59de13be10b3fd3503c14a0d97dd37bcf937
[ "MIT" ]
null
null
null
ase-estimation/run-filter-coverage.py
qfma/ohnologdc
ab1f59de13be10b3fd3503c14a0d97dd37bcf937
[ "MIT" ]
null
null
null
ase-estimation/run-filter-coverage.py
qfma/ohnologdc
ab1f59de13be10b3fd3503c14a0d97dd37bcf937
[ "MIT" ]
null
null
null
#!/usr/local/bin/python2.7 # -*- coding: utf-8 -*- # # run-filter-coverage.py #============================================================================== import argparse import sys import vcf import os # VCF requires Rpy2 internally and needs the correct R_HOME os.environ["R_HOME"] = "/usr/lib64/R" # Make uti...
35.919708
85
0.550498
03903b55b98b506c27d5751184450ce9c25399be
10,651
py
Python
gdb/printing.py
sivachandra/gala
6d7e5fd3cf3c319062a3985dbffd791944e180e9
[ "Apache-2.0" ]
4
2016-07-16T01:35:30.000Z
2020-06-18T05:37:33.000Z
gdb/printing.py
sivachandra/gala
6d7e5fd3cf3c319062a3985dbffd791944e180e9
[ "Apache-2.0" ]
7
2015-06-26T19:24:30.000Z
2015-08-18T18:16:11.000Z
gdb/printing.py
sivachandra/gala
6d7e5fd3cf3c319062a3985dbffd791944e180e9
[ "Apache-2.0" ]
null
null
null
############################################################################ ## Copyright 2015-2021 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 ## ## http://www.apache.or...
38.59058
88
0.590179
03903d3672c4469ceed8acc4e37cca11e3f76cca
2,771
py
Python
documentstore_migracao/processing/conversion.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
null
null
null
documentstore_migracao/processing/conversion.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
14
2019-03-13T12:19:12.000Z
2019-03-19T17:37:08.000Z
documentstore_migracao/processing/conversion.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
3
2019-03-12T18:55:55.000Z
2019-03-20T18:38:02.000Z
import os import logging from tqdm import tqdm from lxml import etree from typing import List from xylose.scielodocument import Journal, Issue from documentstore_migracao.utils import files, xml, string, xylose_converter from documentstore_migracao.export.sps_package import SPS_Package from documentstore_migracao impo...
30.450549
82
0.718152