hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
d7eebd4ac60a91719b65aee6f78c39cf889d2c89
13,564
py
Python
mail/mail.py
YangWanjun/ebusiness
03d92908b4db1a305c8cb99fc27700fd4dc972bd
[ "Apache-2.0" ]
null
null
null
mail/mail.py
YangWanjun/ebusiness
03d92908b4db1a305c8cb99fc27700fd4dc972bd
[ "Apache-2.0" ]
3
2020-02-11T22:59:47.000Z
2021-03-19T22:03:11.000Z
mail/mail.py
YangWanjun/ebusiness
03d92908b4db1a305c8cb99fc27700fd4dc972bd
[ "Apache-2.0" ]
null
null
null
import os import mimetypes import zipfile import traceback import subprocess import io import datetime import shutil import sys from email import encoders from email.header import Header from django.conf import settings from django.core.exceptions import ValidationError from django.core.mail import EmailMultiAlternat...
38.86533
119
0.570112
b24de997bf78cf0737eec0c9ad078f45075a6060
6,802
py
Python
AppServer/google/appengine/ext/endpoints/message_parser.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/google/appengine/ext/endpoints/message_parser.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/appengine/ext/endpoints/message_parser.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
29.573913
79
0.647898
fffb42c0c3b615663dcfb285e436943fac14b32b
703
py
Python
src/python/grpcio_admin/grpc_version.py
bradfol/grpc
2c2b82e7c0fd82d43cda5a05ab8e1b02f02aacc2
[ "Apache-2.0" ]
1
2021-05-09T04:42:15.000Z
2021-05-09T04:42:15.000Z
src/python/grpcio_admin/grpc_version.py
bradfol/grpc
2c2b82e7c0fd82d43cda5a05ab8e1b02f02aacc2
[ "Apache-2.0" ]
2
2021-12-29T09:10:10.000Z
2022-01-05T09:28:51.000Z
src/python/grpcio_admin/grpc_version.py
bradfol/grpc
2c2b82e7c0fd82d43cda5a05ab8e1b02f02aacc2
[ "Apache-2.0" ]
2
2018-02-08T04:45:39.000Z
2018-04-23T03:12:42.000Z
# Copyright 2021 The gRPC 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 writ...
39.055556
96
0.762447
7dc9e7d01384727fa7b60afa90ac4cab3e530b3d
122
py
Python
pulse_project/settings/__init__.py
ctrl-alt-delete-3308/pulse
417c065fef2e7947e64de55bcfd79279fd8dcc27
[ "MIT" ]
null
null
null
pulse_project/settings/__init__.py
ctrl-alt-delete-3308/pulse
417c065fef2e7947e64de55bcfd79279fd8dcc27
[ "MIT" ]
8
2019-12-05T01:34:03.000Z
2021-09-22T18:11:08.000Z
pulse_project/settings/__init__.py
ctrl-alt-delete-3308/pulse
417c065fef2e7947e64de55bcfd79279fd8dcc27
[ "MIT" ]
null
null
null
#!/bin/env python3 """ Settings module for Pulse Project. Loads development settings by default. """ from .dev import *
15.25
38
0.721311
e3712108562aa53188f885a90468f4d0e259dd4c
3,262
py
Python
tests/functional/fkey/primary/test_insert_pk_09.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/functional/fkey/primary/test_insert_pk_09.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/functional/fkey/primary/test_insert_pk_09.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: functional.fkey.primary.insert_pk_09 # title: Check correct work fix with foreign key # decription: Check foreign key work. # Master table has primary key consisting of several fields. # Master transaction modifies all primary key fields. # ...
33.979167
130
0.645616
ae646572d91b19d0f3c1a20e580322adfc6ccd9d
2,813
py
Python
FC2/fc2/train.py
zfgao66/deeplearning-mpo-tensorflow
c345b9fea79e16f98f9b50e0b4e0bcaf4ed4c8e6
[ "MIT" ]
24
2019-04-30T14:59:43.000Z
2021-11-16T03:47:38.000Z
FC2/fc2/train.py
HC1022/deeplearning-mpo
c345b9fea79e16f98f9b50e0b4e0bcaf4ed4c8e6
[ "MIT" ]
null
null
null
FC2/fc2/train.py
HC1022/deeplearning-mpo
c345b9fea79e16f98f9b50e0b4e0bcaf4ed4c8e6
[ "MIT" ]
9
2019-08-14T10:50:37.000Z
2022-03-15T14:41:52.000Z
# -*- coding: utf-8 -*- """ @author: zfgao """ import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import inference from hyperprameter import * BATCH_SIZE=FLAGS.batch_size TRAINING_STEPS=FLAGS.global_step LEARNING_RATE_BASE=FLAGS.LEARNING_RATE_BASE LEARNING_RATE_DECAY=FLAGS...
39.619718
104
0.658727
20977113b50f12323bf30a1961e0497b3aa646e5
1,729
py
Python
setup.py
ducminh-phan/CSA-cython
49fbabc7376f98b3a63e82f31d868ff54bcfdbca
[ "MIT" ]
null
null
null
setup.py
ducminh-phan/CSA-cython
49fbabc7376f98b3a63e82f31d868ff54bcfdbca
[ "MIT" ]
null
null
null
setup.py
ducminh-phan/CSA-cython
49fbabc7376f98b3a63e82f31d868ff54bcfdbca
[ "MIT" ]
null
null
null
from copy import deepcopy from glob import glob import numpy as np from setuptools import setup, find_packages import setup_utils try: from Cython.Build import cythonize from Cython.Distutils import Extension # The glob pattern '**/*.pyx' also matches files in subpackages source_files_patterns = ['*...
25.426471
100
0.622325
3559da7f566cf79e86df59f013a53c2c86fb2e51
386,362
py
Python
nova/tests/unit/db/test_db_api.py
cloudbase/nova-virtualbox
cb758ecff10130ce7a06e0ce1c05dfc999af212f
[ "Apache-2.0" ]
4
2015-04-13T14:52:41.000Z
2018-02-03T19:32:13.000Z
nova/tests/unit/db/test_db_api.py
cloudbase/nova-virtualbox
cb758ecff10130ce7a06e0ce1c05dfc999af212f
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/db/test_db_api.py
cloudbase/nova-virtualbox
cb758ecff10130ce7a06e0ce1c05dfc999af212f
[ "Apache-2.0" ]
2
2015-10-10T05:30:38.000Z
2020-07-24T01:56:46.000Z
# encoding=UTF8 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 m...
45.014797
79
0.604534
7bd5729764be387441d743bb3e42a062e0d7f6f5
3,211
py
Python
examples/postgresql/dao/db.py
ghga-de/ghga-service-chassis-lib
7a4d544386a88bec961601f2f838a6a955df6698
[ "Apache-2.0" ]
1
2021-07-20T07:47:24.000Z
2021-07-20T07:47:24.000Z
examples/postgresql/dao/db.py
ghga-de/ghga-service-chassis-lib
7a4d544386a88bec961601f2f838a6a955df6698
[ "Apache-2.0" ]
20
2021-07-02T14:38:57.000Z
2022-02-09T10:42:41.000Z
examples/postgresql/dao/db.py
ghga-de/ghga-service-chassis-lib
7a4d544386a88bec961601f2f838a6a955df6698
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 - 2022 Universität Tübingen, DKFZ and EMBL # for the German Human Genome-Phenome Archive (GHGA) # # 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/...
31.792079
82
0.677048
7352b1f696f82c74163d9a6f43a2336ab59056e6
238
py
Python
setup.py
goedge-dev/dropt-util
3fa73b765651b21f67dfbf4720150958cbc715c4
[ "MIT" ]
null
null
null
setup.py
goedge-dev/dropt-util
3fa73b765651b21f67dfbf4720150958cbc715c4
[ "MIT" ]
null
null
null
setup.py
goedge-dev/dropt-util
3fa73b765651b21f67dfbf4720150958cbc715c4
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.md', encoding='utf-8') as f: long_description = f.read() setup( use_scm_version=True, long_description = long_description, long_description_content_type='text/markdown' )
18.307692
49
0.731092
4cff7fc0d97bf88ac4d81cfdbdf46289bbb30756
17,500
py
Python
optimal_path.py
fplk/mcs-scene-generator
e9351b39481f4a8afdbb69f1684f87f4d5c3f62a
[ "Apache-2.0" ]
null
null
null
optimal_path.py
fplk/mcs-scene-generator
e9351b39481f4a8afdbb69f1684f87f4d5c3f62a
[ "Apache-2.0" ]
null
null
null
optimal_path.py
fplk/mcs-scene-generator
e9351b39481f4a8afdbb69f1684f87f4d5c3f62a
[ "Apache-2.0" ]
null
null
null
import logging import math from typing import Any, Dict, List, Optional, Tuple from shapely.geometry import LineString, Polygon, Point from shapely.ops import unary_union import exceptions from extremitypathfinder.extremitypathfinder import ( PolygonEnvironment as Environment ) from extremitypathfinder import plo...
36.997886
79
0.6552
b785e6edeab7bdf8dd2f97f2989c204e06dc15c2
332
py
Python
cm-agent/test/test_rest.py
manue1/connectivity-manager-agent
32c89e5edc31f264bd0b9d7f49e2a34e97cc99db
[ "Apache-2.0" ]
null
null
null
cm-agent/test/test_rest.py
manue1/connectivity-manager-agent
32c89e5edc31f264bd0b9d7f49e2a34e97cc99db
[ "Apache-2.0" ]
null
null
null
cm-agent/test/test_rest.py
manue1/connectivity-manager-agent
32c89e5edc31f264bd0b9d7f49e2a34e97cc99db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import httplib __author__ = 'beb' if __name__ == '__main__': connection = httplib.HTTPConnection('0.0.0.0:8091') headers = {'Content-type': 'application/json'} # Retrieve list of hypervisors connection.request('GET', '/hosts') response = connection.getresponse() print res...
20.75
55
0.674699
9a83992b4d1e468ee97c27de7316adfa5f90caf5
36,569
py
Python
benchmarks/jython/scratch/jython/Lib/os.py
PhongNgo/OptimalVerifiedFT
ad8d63833d16be9c2f312848a995c52a072ee1ad
[ "BSD-3-Clause" ]
1
2021-03-06T13:59:43.000Z
2021-03-06T13:59:43.000Z
benchmarks/jython/scratch/jython/Lib/os.py
PhongNgo/OptimalVerifiedFT
ad8d63833d16be9c2f312848a995c52a072ee1ad
[ "BSD-3-Clause" ]
null
null
null
benchmarks/jython/scratch/jython/Lib/os.py
PhongNgo/OptimalVerifiedFT
ad8d63833d16be9c2f312848a995c52a072ee1ad
[ "BSD-3-Clause" ]
null
null
null
r"""OS routines for Java, with some attempts to support NT, and Posix functionality. This exports: - all functions from posix, nt, dos, os2, mac, or ce, e.g. unlink, stat, etc. - os.path is one of the modules posixpath, ntpath, macpath, or dospath - os.name is 'posix', 'nt', 'dos', 'os2', 'mac', 'ce' or 'riscos'...
31.79913
82
0.631765
e82181facea4296b532933ba1239327887f80987
1,514
py
Python
molssi_devops_uf/molssi_math.py
farhadrgh/molssi_devops_uf
718ad45ee8deb6d2048f0b370f1025c3541562df
[ "BSD-3-Clause" ]
null
null
null
molssi_devops_uf/molssi_math.py
farhadrgh/molssi_devops_uf
718ad45ee8deb6d2048f0b370f1025c3541562df
[ "BSD-3-Clause" ]
null
null
null
molssi_devops_uf/molssi_math.py
farhadrgh/molssi_devops_uf
718ad45ee8deb6d2048f0b370f1025c3541562df
[ "BSD-3-Clause" ]
null
null
null
""" molssi_math.py A sample repository for the MOLSSI workshop at UF. some math functions. """ def mean(num_list): """ Calculate the mean/average of a list of numbers. Parameters ---------- num_list : list The list to make the average of Returns ---------- mean_list : float ...
23.292308
92
0.636724
b6e6c6cd8f27e6ff042e5e7f694d63601c81370e
522
py
Python
tests/conftest.py
Scille/autobahn_sync
d75fceff0d1aee61fa6dd0168eb1cd40794ad827
[ "MIT" ]
null
null
null
tests/conftest.py
Scille/autobahn_sync
d75fceff0d1aee61fa6dd0168eb1cd40794ad827
[ "MIT" ]
null
null
null
tests/conftest.py
Scille/autobahn_sync
d75fceff0d1aee61fa6dd0168eb1cd40794ad827
[ "MIT" ]
null
null
null
import pytest def pytest_addoption(parser): parser.addoption("--no-router", action='store_true', help="Don't start WAMP router for the test" " (must provide one on `ws://localhost:8080/ws` then)") parser.addoption("--twisted-logs", action='store_true', help="Enab...
32.625
94
0.637931
2fe3b7268d1e92d1b0d08ce73da2fc01f22edcf6
263
py
Python
manage.py
morgan-county/site
86c0cc9d85fecd62e1d20bd3e841d19165ed3956
[ "MIT" ]
null
null
null
manage.py
morgan-county/site
86c0cc9d85fecd62e1d20bd3e841d19165ed3956
[ "MIT" ]
null
null
null
manage.py
morgan-county/site
86c0cc9d85fecd62e1d20bd3e841d19165ed3956
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "morgan.settings.local") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
21.916667
64
0.749049
f4b7716d15bf1b4d2e62f6ebbe8a7bfe9de2fd08
1,774
py
Python
BenchmarkScripts/2d_evaluation/instances2dict.py
giuliano-97/ScanNet
8bf7bbc4acfba10750d3797a11d620db3a3b8fce
[ "MIT" ]
null
null
null
BenchmarkScripts/2d_evaluation/instances2dict.py
giuliano-97/ScanNet
8bf7bbc4acfba10750d3797a11d620db3a3b8fce
[ "MIT" ]
null
null
null
BenchmarkScripts/2d_evaluation/instances2dict.py
giuliano-97/ScanNet
8bf7bbc4acfba10750d3797a11d620db3a3b8fce
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Convert instances from png files to a dictionary # from __future__ import print_function import os, sys from instance import Instance from PIL import Image import numpy as np def instances2dict(imageFileList, class_labels, class_ids, verbose=False): imgCount = 0 instanceDict = {} la...
24.985915
85
0.61894
36391889e27d9b4bf2c27ad31f265b0b27b13b0c
4,907
py
Python
app.py
rlkennye/sqlalchemy-challenge
466b333ebbdc0c63706663a144a940d77f4ca7da
[ "ADSL" ]
null
null
null
app.py
rlkennye/sqlalchemy-challenge
466b333ebbdc0c63706663a144a940d77f4ca7da
[ "ADSL" ]
null
null
null
app.py
rlkennye/sqlalchemy-challenge
466b333ebbdc0c63706663a144a940d77f4ca7da
[ "ADSL" ]
null
null
null
import numpy as np import pandas as pd import datetime as dt import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify engine = create_engine("sqlite:///Resources/hawaii.sqlite", connect_args={'check_...
36.619403
151
0.604646
f477cefd34f1523ab2f23f12837cd49008ff7172
9,712
py
Python
Code/hashtable.py
reikamoon/CS_1.3_Core_Data_Structures
df7dae34fffda38221e170e3a9c4a410578bcca4
[ "MIT" ]
null
null
null
Code/hashtable.py
reikamoon/CS_1.3_Core_Data_Structures
df7dae34fffda38221e170e3a9c4a410578bcca4
[ "MIT" ]
6
2020-02-15T17:51:18.000Z
2020-03-09T23:16:38.000Z
Code/hashtable.py
reikamoon/CS_1.3_Core_Data_Structures
df7dae34fffda38221e170e3a9c4a410578bcca4
[ "MIT" ]
null
null
null
#!python from linkedlist import LinkedList class HashTable(object): def __init__(self, init_size=8): """Initialize this hash table with the given initial size.""" self.buckets = [LinkedList() for i in range(init_size)] self.size = 0 # Number of key-value entries def __str__(self): ...
43.164444
134
0.609143
397b737d56d33842bfa377e583062226973af017
918
py
Python
yotta/test/test_subcommand.py
headlessme/yotta
947ab074b629c8f18ca91ab84ebaa29096b011c6
[ "Apache-2.0" ]
176
2015-01-02T07:31:59.000Z
2022-03-21T12:40:02.000Z
yotta/test/test_subcommand.py
headlessme/yotta
947ab074b629c8f18ca91ab84ebaa29096b011c6
[ "Apache-2.0" ]
549
2015-01-05T16:19:54.000Z
2021-01-15T13:46:42.000Z
yotta/test/test_subcommand.py
headlessme/yotta
947ab074b629c8f18ca91ab84ebaa29096b011c6
[ "Apache-2.0" ]
84
2015-01-10T21:01:00.000Z
2022-03-24T16:04:42.000Z
#!/usr/bin/env python # Copyright 2014 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. # standard library modules, , , import unittest # module to test: from yotta import test_subcommand class TestTestSubcommandModule(unittest.TestCase): def test_moduleFromDirname...
35.307692
109
0.636166
1123e3421fd48ffe2ee33fa6ec18e3e96c11cdef
575
py
Python
nexusdash2/dashboardperdevice/views.py
fmichalo/n9k-programmability
3a359df5f048ea8c7695e47e9014ffdfe03835f4
[ "Apache-2.0" ]
null
null
null
nexusdash2/dashboardperdevice/views.py
fmichalo/n9k-programmability
3a359df5f048ea8c7695e47e9014ffdfe03835f4
[ "Apache-2.0" ]
null
null
null
nexusdash2/dashboardperdevice/views.py
fmichalo/n9k-programmability
3a359df5f048ea8c7695e47e9014ffdfe03835f4
[ "Apache-2.0" ]
null
null
null
from django.views.generic import TemplateView from hostnames.models import HostNames from django.http import Http404 class DashboardPerDeviceView(TemplateView): template_name = "dashboardperdevice/dashboardperdevice.html" def get(self, request, *args, **kwargs): context = self.get_context_data...
35.9375
66
0.716522
be5dd91382a4a69ab4b31a1ed12cc2c537a5841d
189
py
Python
segar/sim/__init__.py
fgolemo/segar
8e21f8ee01bc72adb84dec7998b014d11d2b1fbe
[ "MIT" ]
19
2022-02-16T18:45:12.000Z
2022-03-25T10:42:19.000Z
segar/sim/__init__.py
microsoft/segar
78463968238482ae035121504458dd0909107e10
[ "MIT" ]
4
2022-02-16T22:58:00.000Z
2022-03-02T23:11:10.000Z
segar/sim/__init__.py
fgolemo/segar
8e21f8ee01bc72adb84dec7998b014d11d2b1fbe
[ "MIT" ]
5
2022-02-17T01:46:18.000Z
2022-03-21T21:21:19.000Z
__copyright__ = "Copyright (c) Microsoft Corporation and Mila - Quebec AI Institute" __license__ = "MIT" """There is only one sim. """ from .sim import Simulator __all__ = ["Simulator"]
18.9
84
0.719577
215840f32257f3d3f346aa15cb08052c1feb60fa
3,650
py
Python
simulations/2021.MAY/20210525-PXSTvsPrimRST/pruner03/PrimRST_Rpruner.py
GiliardGodoi/steiner-problem-with-evol
6b34f0342b791ae6c65b6d016c37a4d45ab5cdad
[ "MIT" ]
null
null
null
simulations/2021.MAY/20210525-PXSTvsPrimRST/pruner03/PrimRST_Rpruner.py
GiliardGodoi/steiner-problem-with-evol
6b34f0342b791ae6c65b6d016c37a4d45ab5cdad
[ "MIT" ]
null
null
null
simulations/2021.MAY/20210525-PXSTvsPrimRST/pruner03/PrimRST_Rpruner.py
GiliardGodoi/steiner-problem-with-evol
6b34f0342b791ae6c65b6d016c37a4d45ab5cdad
[ "MIT" ]
null
null
null
from os import path from ga4stpg.condition import BestKnownReached, Stagnation from ga4stpg.customevol import GeneticEvolution as Evolution from ga4stpg.customevol import GeneticPopulation as GPopulation from ga4stpg.graph import ReaderORLibrary from ga4stpg.graph.util import is_steiner_tree from ga4stpg.no...
35.096154
78
0.663836
dc6cee0240c3153afddafc203ec51956b8ca0fa6
3,488
py
Python
tests/test_boosted_particle_output.py
wilds9/fbpic
902c3bc8757545496b8cbb772401de6b0974a3dc
[ "BSD-3-Clause-LBNL" ]
2
2020-11-21T07:39:05.000Z
2020-11-21T14:00:32.000Z
tests/test_boosted_particle_output.py
RemiLehe/fbpic
f0d55048eb669081c26eff28fee39891b62aaeb2
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test_boosted_particle_output.py
RemiLehe/fbpic
f0d55048eb669081c26eff28fee39891b62aaeb2
[ "BSD-3-Clause-LBNL" ]
null
null
null
# Copyright 2017, FBPIC contributors # Authors: Remi Lehe # License: 3-Clause-BSD-LBNL """ This test file is part of FB-PIC (Fourier-Bessel Particle-In-Cell). It tests the boosted-frame particle output routines. This is done by initializing a set of known particles and making sure that they are all retrieved by the bo...
33.538462
79
0.671732
aae9d25cff1766f9675b8fa1bd7d15ba97301773
4,566
py
Python
ansible/modules/storage/purestorage/purefa_hg.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2021-04-02T08:08:39.000Z
2021-04-02T08:08:39.000Z
ansible/modules/storage/purestorage/purefa_hg.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/modules/storage/purestorage/purefa_hg.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2020-05-03T01:13:16.000Z
2020-05-03T01:13:16.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Simon Dodsley (simon@purestorage.com) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1',...
26.546512
92
0.661191
a24d04128b3fe4749056eacfe1f2fb7752c24191
31,473
py
Python
pypy/module/pyexpat/interp_pyexpat.py
DinrusGroup/PyPy
9fb17e23a17e3cf511cf9c4d11408393df4748c2
[ "Apache-2.0", "OpenSSL" ]
1
2018-12-27T20:40:49.000Z
2018-12-27T20:40:49.000Z
pypy/module/pyexpat/interp_pyexpat.py
GabriellaUwa/pypy
2ede3b557a25cb49db969e942ca5a7f8a9eae0d4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/pyexpat/interp_pyexpat.py
GabriellaUwa/pypy
2ede3b557a25cb49db969e942ca5a7f8a9eae0d4
[ "Apache-2.0", "OpenSSL" ]
1
2021-10-10T13:53:32.000Z
2021-10-10T13:53:32.000Z
from pypy.interpreter.baseobjspace import W_Root from pypy.interpreter.typedef import TypeDef, GetSetProperty from pypy.interpreter.gateway import interp2app, unwrap_spec, WrappedDefault from pypy.interpreter.error import OperationError, oefmt from rpython.rlib import rgc, jit from rpython.rlib.objectmodel import speci...
36.639115
103
0.658469
abf8e6a969c3ed03faa595b8927ac6bc650e0065
11,830
py
Python
nevergrad/benchmark/xpbase.py
CarolaDoerr/nevergrad
dfeda5cafd52536b9d523c0730193240841d8fb1
[ "MIT" ]
null
null
null
nevergrad/benchmark/xpbase.py
CarolaDoerr/nevergrad
dfeda5cafd52536b9d523c0730193240841d8fb1
[ "MIT" ]
null
null
null
nevergrad/benchmark/xpbase.py
CarolaDoerr/nevergrad
dfeda5cafd52536b9d523c0730193240841d8fb1
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import sys import time import random import warnings import traceback from typing import Dict, Union, Any, Optional, Iter...
45.852713
136
0.675993
84aa5b0e98b5e413405dbb5f28c3220d777491e8
16,451
py
Python
hammer/library/aws/rds.py
MrBakalo/hammer
3d2143e5288c4272f6aae701668da32026099d9b
[ "Apache-2.0" ]
null
null
null
hammer/library/aws/rds.py
MrBakalo/hammer
3d2143e5288c4272f6aae701668da32026099d9b
[ "Apache-2.0" ]
3
2021-05-20T20:29:51.000Z
2022-02-26T09:28:08.000Z
hammer/library/aws/rds.py
MrBakalo/hammer
3d2143e5288c4272f6aae701668da32026099d9b
[ "Apache-2.0" ]
null
null
null
import logging from botocore.exceptions import ClientError from library.aws.utility import convert_tags from collections import namedtuple from library.utility import timeit # structure which describes EC2 instance RDSInstance = namedtuple('RDSInstance', [ # instance ID 'id', # DB engine 'engine', ...
37.13544
150
0.618564
f56a60ee4425a5839f9815cf4ef1f6eb25ba43e8
649
pyde
Python
new2.0/list_63/list_63.pyde
klimenkodasha/2019-fall-polytech-cs
19777f6adf6848af257a74db751e96f914a5f7e6
[ "MIT" ]
null
null
null
new2.0/list_63/list_63.pyde
klimenkodasha/2019-fall-polytech-cs
19777f6adf6848af257a74db751e96f914a5f7e6
[ "MIT" ]
null
null
null
new2.0/list_63/list_63.pyde
klimenkodasha/2019-fall-polytech-cs
19777f6adf6848af257a74db751e96f914a5f7e6
[ "MIT" ]
null
null
null
xCoordinate = [] def setup(): size(500, 500) smooth() noStroke() myInit() def myInit(): print('New coordinates:') for i in range(30): xCoordinate.append(250+ int(random(-100,100))) print(xCoordinate[i]) def draw(): global xCoordinate backg...
20.935484
55
0.510015
15c019b6867068339fc1d27d149b61f34e958fd6
2,078
py
Python
sdap/tools/migrations/0002_auto_20190807_1139.py
umr1085-irset/reproGenomicsViewer
187ea320668e567d01572bfbf9497bebd691569a
[ "MIT" ]
null
null
null
sdap/tools/migrations/0002_auto_20190807_1139.py
umr1085-irset/reproGenomicsViewer
187ea320668e567d01572bfbf9497bebd691569a
[ "MIT" ]
1
2020-02-16T10:48:55.000Z
2020-02-16T11:06:36.000Z
sdap/tools/migrations/0002_auto_20190807_1139.py
umr1085-irset/reproGenomicsViewer
187ea320668e567d01572bfbf9497bebd691569a
[ "MIT" ]
4
2019-11-04T15:00:55.000Z
2020-03-02T13:36:17.000Z
# Generated by Django 2.0.13 on 2019-08-07 11:39 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('tools', '0001_initial'), ] operations = [ migrations.CreateModel( name='Argument', ...
36.45614
124
0.565448
6b86249ed635c8fdaee33b4f29aec0441a6c8b6f
31,998
py
Python
api/audit/utils.py
gpiechnik2/senter
6f64f5410fe02a5215ba148553dec45feaadcc09
[ "CC0-1.0" ]
2
2021-12-08T19:38:33.000Z
2022-01-26T15:02:57.000Z
api/audit/utils.py
gpiechnik2/senter
6f64f5410fe02a5215ba148553dec45feaadcc09
[ "CC0-1.0" ]
null
null
null
api/audit/utils.py
gpiechnik2/senter
6f64f5410fe02a5215ba148553dec45feaadcc09
[ "CC0-1.0" ]
1
2021-12-08T19:38:39.000Z
2021-12-08T19:38:39.000Z
import requests import os import requests from bs4 import BeautifulSoup from urllib.parse import urlsplit, urljoin, urlparse import re import json import random import string def analysis(url, user_agent): results = [] #declare globally lists to avoid crawling website url multiple times global crawled_ur...
27.679931
189
0.561848
5af4fb422ffca37da6567defca8e5a12f82b9944
1,275
py
Python
setup.py
ociule/django-users-admin
817590dc7a6c1e3657f31202d4068fd25002a30a
[ "BSD-3-Clause" ]
1
2019-03-30T15:28:36.000Z
2019-03-30T15:28:36.000Z
setup.py
ociule/django-users-admin
817590dc7a6c1e3657f31202d4068fd25002a30a
[ "BSD-3-Clause" ]
null
null
null
setup.py
ociule/django-users-admin
817590dc7a6c1e3657f31202d4068fd25002a30a
[ "BSD-3-Clause" ]
null
null
null
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-users-admin', ...
34.459459
78
0.636078
a087bf148491563199fa46426f3156befdb6f790
6,404
py
Python
build/android/pylib/host_driven/setup.py
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
19
2015-02-19T21:08:27.000Z
2021-11-19T07:16:49.000Z
build/android/pylib/host_driven/setup.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2015-08-31T06:39:59.000Z
2021-12-04T14:53:28.000Z
build/android/pylib/host_driven/setup.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
10
2015-08-28T16:44:03.000Z
2019-07-17T17:37:34.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Setup for instrumentation host-driven tests.""" import logging import os import sys import types import test_case import test_info_collection import tes...
31.546798
79
0.738445
7bae4a9a763e7c7746b1c5de1c6d177aaab735dd
13,726
py
Python
venv/Lib/site-packages/transformers/utils/dummy_flax_objects.py
GuilhermeJC13/storIA
eeecbe9030426f70c6aa73ca0ce8382860c8495c
[ "MIT" ]
4
2021-07-27T23:39:02.000Z
2021-09-23T04:17:08.000Z
venv/Lib/site-packages/transformers/utils/dummy_flax_objects.py
GuilhermeJC13/storIA
eeecbe9030426f70c6aa73ca0ce8382860c8495c
[ "MIT" ]
null
null
null
venv/Lib/site-packages/transformers/utils/dummy_flax_objects.py
GuilhermeJC13/storIA
eeecbe9030426f70c6aa73ca0ce8382860c8495c
[ "MIT" ]
3
2021-07-27T17:33:58.000Z
2021-07-29T12:46:59.000Z
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..file_utils import requires_backends class FlaxForcedBOSTokenLogitsProcessor: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(cls, *args, **kwargs): re...
24.467023
75
0.662465
889e211e39999e991ca9d49e06dcf1081eeeaabe
6,305
py
Python
pipelitools/models/models.py
nastiag67/tools
9989c98acd67ff8fda900d0a2ae3a6d21e2bbd88
[ "MIT" ]
1
2020-12-20T14:58:35.000Z
2020-12-20T14:58:35.000Z
pipelitools/models/models.py
nastiag67/tools
9989c98acd67ff8fda900d0a2ae3a6d21e2bbd88
[ "MIT" ]
5
2021-07-13T15:10:39.000Z
2021-07-26T14:44:21.000Z
pipelitools/models/models.py
nastiag67/tools
9989c98acd67ff8fda900d0a2ae3a6d21e2bbd88
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import random import pickle import os from sklearn.model_selection import GridSearchCV, RandomizedSearchCV from pipelitools.models import metrics as m def test_models(): """ """ print('test_models: ok') class Model: """Runs a model, plots confusion matrix, calcul...
36.028571
112
0.557494
e479e639614e60e7b1de3d0106bf6634d17743b1
10,803
py
Python
scripts/fgi/kube.py
sitalkedia/aptos-core-1
14f0983143c4b16951586ebe11cbb0a6e102cd60
[ "Apache-2.0" ]
null
null
null
scripts/fgi/kube.py
sitalkedia/aptos-core-1
14f0983143c4b16951586ebe11cbb0a6e102cd60
[ "Apache-2.0" ]
null
null
null
scripts/fgi/kube.py
sitalkedia/aptos-core-1
14f0983143c4b16951586ebe11cbb0a6e102cd60
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Aptos # SPDX-License-Identifier: Apache-2.0 import json import os import random import subprocess import tempfile import time FORGE_K8S_CLUSTERS = [ "forge-0", "forge-1", ] WORKSPACE_CHART_BUCKETS = { "forge-0": "aptos-testnet-forge-0-helm-312428ba", "forge-1": "aptos-testnet-forge-1-...
31.132565
162
0.552069
660bcbe5329eacb36a97e88e2c41bc8389190625
8,758
py
Python
scripts/libxsmm_specialized.py
mjanderson09/libxsmm
d8359effcbe456e1e7625c0b9b0cf5533ee0e370
[ "BSD-3-Clause" ]
1
2018-06-29T03:07:54.000Z
2018-06-29T03:07:54.000Z
scripts/libxsmm_specialized.py
qq332982511/libxsmm
e376c569252c042193ad2215857c35cfb598ec45
[ "BSD-3-Clause" ]
4
2018-03-19T18:18:22.000Z
2018-07-05T05:09:09.000Z
scripts/libxsmm_specialized.py
qq332982511/libxsmm
e376c569252c042193ad2215857c35cfb598ec45
[ "BSD-3-Clause" ]
5
2017-06-28T21:48:18.000Z
2018-04-10T04:07:38.000Z
#!/usr/bin/env python ############################################################################### # Copyright (c) 2014-2018, Intel Corporation # # All rights reserved. # # ...
53.402439
79
0.479333
850e287d3b7d0f9410f9b2bf9e18b2cdfbae003c
1,391
py
Python
examples/get_posts.py
michaelwalkerfl/facebook-sdk
8f63102079a30e7bd8ed51a48bccdf7aa0858452
[ "Apache-2.0" ]
1,330
2016-04-04T06:24:55.000Z
2022-03-27T20:12:29.000Z
examples/get_posts.py
michaelwalkerfl/facebook-sdk
8f63102079a30e7bd8ed51a48bccdf7aa0858452
[ "Apache-2.0" ]
188
2016-04-03T03:49:35.000Z
2022-03-09T04:10:24.000Z
examples/get_posts.py
michaelwalkerfl/facebook-sdk
8f63102079a30e7bd8ed51a48bccdf7aa0858452
[ "Apache-2.0" ]
619
2016-04-02T23:12:27.000Z
2022-03-04T14:53:20.000Z
""" A simple example script to get all posts on a user's timeline. Originally created by Mitchell Stewart. <https://gist.github.com/mylsb/10294040> """ import facebook import requests def some_action(post): """Here you might want to do something with each post. E.g. grab the post's message (post['message']) o...
33.926829
79
0.691589
11909fca0125d3cc06632973ca2dab517aa3cee8
7,556
py
Python
tools/visualisations/model_and_dataloader_visualiser.py
kiyoon/PyVideoAI
c4d3ba7a69723aeae7da48245989ae11cbdb1f8b
[ "MIT" ]
22
2021-06-01T07:40:01.000Z
2022-03-14T07:09:01.000Z
tools/visualisations/model_and_dataloader_visualiser.py
kiyoon/PyVideoAI
c4d3ba7a69723aeae7da48245989ae11cbdb1f8b
[ "MIT" ]
null
null
null
tools/visualisations/model_and_dataloader_visualiser.py
kiyoon/PyVideoAI
c4d3ba7a69723aeae7da48245989ae11cbdb1f8b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' cfg needs dataloader_shape_to_model_input_shape(inputs) function model_cfg needs model_input_shape_to_NTHWC(inputs) function model_cfg needs input_std, input_mean, input_bgr, input_normalise ''' import argparse import logging import numpy as np import os import sys import coloredlogs, verbos...
44.710059
275
0.667284
42dc000c050ddde65000aa1b170c42b9f6cb8c0b
309
py
Python
setup.py
nyukhalov/srt-text
12c4599da053394f2799e922ddcddf543fdab39d
[ "MIT" ]
3
2019-04-25T20:30:07.000Z
2021-12-20T23:27:31.000Z
setup.py
nyukhalov/srt-text
12c4599da053394f2799e922ddcddf543fdab39d
[ "MIT" ]
null
null
null
setup.py
nyukhalov/srt-text
12c4599da053394f2799e922ddcddf543fdab39d
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='srt-text', version='1.0.1', url='https://github.com/nyukhalov/srt-text', author='Roman Niukhalov', license='MIT', packages=['srttext'], entry_points={ 'console_scripts': [ 'srt-text=srttext.app:main' ] } )
19.3125
48
0.572816
f25a84763f304abcf0d21174fb73771320ed5478
24,910
py
Python
Oasis1115.py
shimdol22/2021-2-OSSProj-TEAM-MMS-6
2d157432d8c6f042caebd8935c7851bc40f14d98
[ "MIT" ]
null
null
null
Oasis1115.py
shimdol22/2021-2-OSSProj-TEAM-MMS-6
2d157432d8c6f042caebd8935c7851bc40f14d98
[ "MIT" ]
null
null
null
Oasis1115.py
shimdol22/2021-2-OSSProj-TEAM-MMS-6
2d157432d8c6f042caebd8935c7851bc40f14d98
[ "MIT" ]
null
null
null
from typing import get_origin import pygame import random import time from datetime import datetime from pygame.constants import VIDEORESIZE from math import ceil # sx, sy => 피사체의 x위치 y 위치 # x, y => 비행기의 가로길이, 세로길이 # 1. 게임초기화 # 2. 게임창 옵션 설정 # 2-1 고정된 화면 크기 # size = [700,800] # screen = pygame.displ...
30.564417
249
0.58065
110e439b9319770232a746de970510823a92e77b
9,051
py
Python
nova/tests/api/openstack/compute/contrib/test_attach_interfaces.py
bclau/nova
ec260a937d9c5e3d19cd3de1972615e5322cf477
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/contrib/test_attach_interfaces.py
bclau/nova
ec260a937d9c5e3d19cd3de1972615e5322cf477
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/contrib/test_attach_interfaces.py
bclau/nova
ec260a937d9c5e3d19cd3de1972615e5322cf477
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 SINA 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 app...
36.792683
79
0.632195
936587c4ceb3c01939531325c8c851115ac8e17f
47
py
Python
whalesharkM2M/datautil/__init__.py
theprismdata/WhaleShark_IIoT
da3448b25e87155fde438e427f4bdf92091ceb1b
[ "Apache-2.0" ]
3
2020-11-09T02:15:33.000Z
2021-01-11T07:43:11.000Z
whalesharkM2M/datautil/__init__.py
theprismdata/WhaleShark_IIoT
da3448b25e87155fde438e427f4bdf92091ceb1b
[ "Apache-2.0" ]
null
null
null
whalesharkM2M/datautil/__init__.py
theprismdata/WhaleShark_IIoT
da3448b25e87155fde438e427f4bdf92091ceb1b
[ "Apache-2.0" ]
null
null
null
""" whalesharkM2M """ __version__ = '0.0.1'
11.75
21
0.574468
99ef52f8cde21cc2da317ab96127be9e001f4508
804
py
Python
01_process_reads/at_singles_ex39/03_merge_class_fs.py
ddingding/coevolution_mechanism
4a03f7a105a2606e812dd8a4fa88272519ddab86
[ "MIT" ]
1
2022-01-16T09:32:33.000Z
2022-01-16T09:32:33.000Z
01_process_reads/at_singles_ex39/03_merge_class_fs.py
ddingding/coevolution_mechanism
4a03f7a105a2606e812dd8a4fa88272519ddab86
[ "MIT" ]
null
null
null
01_process_reads/at_singles_ex39/03_merge_class_fs.py
ddingding/coevolution_mechanism
4a03f7a105a2606e812dd8a4fa88272519ddab86
[ "MIT" ]
null
null
null
# concatenate classified read files for 2 machines from constants import ( AT_SINGLE_CALLED_DIR_M1, AT_SINGLE_CALLED_DIR_M2, AT_SINGLE_CALLED_DIR_BOTH, ) from os import listdir from pipelineTools import concat_files at_fs1 = sorted( [f for f in listdir(AT_SINGLE_CALLED_DIR_M1) if f.endswith("class.c...
25.125
77
0.705224
10a59f81aa255d1a755fdf8305f17ccc5c8738b0
2,831
py
Python
2019/14/chemlab.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
2
2020-12-12T03:18:45.000Z
2021-12-17T00:35:33.000Z
2019/14/chemlab.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
2019/14/chemlab.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
from collections import defaultdict from math import ceil from typing import List class Reagent(object): @classmethod def factory(cls, reagent_str: str): res = [] for r in reagent_str.split(','): res.append(cls(r)) return res def __init__(self, chem: str, qty: int = No...
28.59596
81
0.612151
7500df34971c315cf858147fc8c55e8bc27fbb27
345
py
Python
Darlington/phase2/LIST/day 42 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase2/LIST/day 42 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase2/LIST/day 42 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
# program to count the number of elements in a list within a specified range. def count_range_in_list(li, min, max): ctr = 0 for x in li: if min <= x <= max: ctr += 1 return ctr list1 = [10,20,30,40,40,40,70,80,99] print(count_range_in_list(list1, 40, 100)) list2 = ['a','b','c','d','e','f'] print(count_range_...
26.538462
77
0.649275
c7446d6d25eeb57157f678a1a57b55312b0a3b00
3,272
py
Python
src/metricrule/agent/mrrecorder.py
MetricRule/metricrule-agent-python
e56399625d3c1587d82d9fe78cae97a022b851fc
[ "Apache-2.0" ]
1
2021-06-23T10:27:51.000Z
2021-06-23T10:27:51.000Z
src/metricrule/agent/mrrecorder.py
MetricRule/metricrule-agent-python
e56399625d3c1587d82d9fe78cae97a022b851fc
[ "Apache-2.0" ]
1
2021-06-21T10:31:20.000Z
2021-06-21T10:31:20.000Z
src/metricrule/agent/mrrecorder.py
MetricRule/metricrule-agent-python
e56399625d3c1587d82d9fe78cae97a022b851fc
[ "Apache-2.0" ]
null
null
null
"""Recorder of metrics for request and response payloads. """ import json from typing import MutableSequence, Optional, Tuple, Union from ..config_gen.metric_configuration_pb2 import SidecarConfig # pylint: disable=relative-beyond-top-level from .mrmetric import get_context_labels, get_metric_instances, MetricConte...
41.417722
108
0.67879
741aa180b3fdbd3dfb75d1f8754b90aeecd32519
1,520
py
Python
Media/common/Interface/FrameXML/MvPlayerInfo.py
dmacka/MultiverseClientServer
b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379
[ "MIT" ]
5
2020-04-29T19:14:57.000Z
2022-02-18T08:48:37.000Z
Media/common/Interface/FrameXML/MvPlayerInfo.py
dmacka/MultiverseClientServer
b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379
[ "MIT" ]
null
null
null
Media/common/Interface/FrameXML/MvPlayerInfo.py
dmacka/MultiverseClientServer
b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379
[ "MIT" ]
2
2021-03-09T06:53:30.000Z
2021-03-27T12:02:39.000Z
import ClientAPI import MarsSkill def MvPlayerInfoFrame_OnLoad(frame): frame.SetBackdropColor(0, 0, 0) frame.RegisterEvent("SKILL_LIST_UPDATE") def MvPlayerInfoFrame_OnEvent(frame, event): if event.eventType == "SKILL_LIST_UPDATE": UpdateSkillInfo() def GetUnitProperty(obj, prop, default)...
35.348837
83
0.685526
0a001203c23d336884b82ac475104fb7d5f83faf
816
py
Python
var/spack/repos/builtin/packages/xhost/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-06-25T15:25:29.000Z
2020-06-25T15:25:29.000Z
var/spack/repos/builtin/packages/xhost/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-07-06T19:11:46.000Z
2018-07-06T19:12:28.000Z
var/spack/repos/builtin/packages/xhost/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-09-21T14:35:49.000Z
2020-09-21T14:35:49.000Z
# Copyright 2013-2020 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 Xhost(AutotoolsPackage): """xhost is used to manage the list of host names or user names ...
32.64
95
0.714461
178b0d6bfdb3970cddc38087206c4d4fea388e1f
193
py
Python
casepy/eulerRuO1/nNoh64x64/chars.py
will-iam/Variant
5b6732134fd51cf6c2b90b51b7976be0693ba28d
[ "MIT" ]
8
2017-05-04T07:50:02.000Z
2019-05-17T02:27:20.000Z
casepy/eulerRuO1/nNoh64x64/chars.py
will-iam/Variant
5b6732134fd51cf6c2b90b51b7976be0693ba28d
[ "MIT" ]
null
null
null
casepy/eulerRuO1/nNoh64x64/chars.py
will-iam/Variant
5b6732134fd51cf6c2b90b51b7976be0693ba28d
[ "MIT" ]
null
null
null
# Domain properties lx = 1.0 ly = 1.0 Nx = 64 Ny = 64 # Scheme execution options T = 0.6 CFL = 0.5 gamma = 5./3. BCtype = 'N' BClayer = 1 quantityList = ['rho', 'rhou_x', 'rhou_y', 'rhoE']
11.352941
50
0.595855
19f89acf5ea34028d2d3316de2dce429fa38559e
1,715
py
Python
parlai/utils/pickle.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
552
2020-09-24T18:16:09.000Z
2022-03-25T06:21:55.000Z
parlai/utils/pickle.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
722
2020-09-24T19:48:44.000Z
2022-03-31T17:42:41.000Z
parlai/utils/pickle.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
442
2020-09-24T14:24:21.000Z
2022-03-25T10:40:16.000Z
#!/usr/bin/env python3 # 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. """ ParlAI's custom unpickler. As modules move around or are renamed, it old torch model files become invalid, since th...
30.087719
82
0.634402
5423d894600a5581316235dea0017bc149e526f9
107
py
Python
main.py
stanford-rc/gcp-flask-stanford
d0da1b5650792582ada90fac63796ee974805c17
[ "MIT" ]
3
2020-07-28T21:23:29.000Z
2021-07-14T17:37:02.000Z
main.py
stanford-rc/gcp-flask-stanford
d0da1b5650792582ada90fac63796ee974805c17
[ "MIT" ]
2
2020-07-22T22:07:43.000Z
2020-07-24T20:22:56.000Z
main.py
stanford-rc/gcp-flask-stanford
d0da1b5650792582ada90fac63796ee974805c17
[ "MIT" ]
null
null
null
from gcpflask import app if __name__ == "__main__": app.run(host="localhost", port=8080, debug=True)
17.833333
52
0.700935
9f3c47e67f9c708df8933726a129baea298e66cf
1,276
py
Python
PyTorch-cSAWGAN/Components.py
mshaikh2/sagan
c978d18b0400eddecde303e30900107093029876
[ "MIT" ]
null
null
null
PyTorch-cSAWGAN/Components.py
mshaikh2/sagan
c978d18b0400eddecde303e30900107093029876
[ "MIT" ]
null
null
null
PyTorch-cSAWGAN/Components.py
mshaikh2/sagan
c978d18b0400eddecde303e30900107093029876
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.autograd as autograd import torch.optim as optim import torchvision import torchvision.transforms as transforms class SelfAttention(nn.Module): def __init__(self, in_channels): super(SelfAttention, self).__in...
49.076923
126
0.700627
c3ccaf1c0ddb98829cad0ce3ffae4907e33184a7
2,622
py
Python
mlonmcu/flow/tflite/framework.py
PhilippvK/mlonmcu
6b5ed9b2abe8d3caa18c20a604547513e8097b49
[ "Apache-2.0" ]
null
null
null
mlonmcu/flow/tflite/framework.py
PhilippvK/mlonmcu
6b5ed9b2abe8d3caa18c20a604547513e8097b49
[ "Apache-2.0" ]
null
null
null
mlonmcu/flow/tflite/framework.py
PhilippvK/mlonmcu
6b5ed9b2abe8d3caa18c20a604547513e8097b49
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2022 TUM Department of Electrical and Computer Engineering. # # This file is part of MLonMCU. # See https://github.com/tum-ei-eda/mlonmcu.git for further info. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
32.37037
99
0.694508
4d96e6a6572edc3763dd617d04c13b5f86a6abe5
2,244
py
Python
Parser-hybrid/nparser/scripts/compression_ratio.py
sb-b/BOUN-PARSE
2b529924897d8e2613c4d2193a67796a895da40b
[ "Apache-2.0" ]
12
2020-03-04T17:36:12.000Z
2021-09-26T14:02:49.000Z
Parser-hybrid/nparser/scripts/compression_ratio.py
sb-b/BOUN-PARSE
2b529924897d8e2613c4d2193a67796a895da40b
[ "Apache-2.0" ]
1
2020-12-09T08:21:11.000Z
2020-12-09T08:21:11.000Z
Parser-hybrid/nparser/scripts/compression_ratio.py
sb-b/BOUN-PARSE
2b529924897d8e2613c4d2193a67796a895da40b
[ "Apache-2.0" ]
3
2020-11-18T09:53:42.000Z
2020-12-17T23:04:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2016 Timothy Dozat # # 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 ...
32.521739
91
0.666221
624e699d8e5c7a844b8afc85bf8cf1c68b081ad6
16,321
py
Python
Python/grn_solver.py
regulomics/expansion-network
93c8cf5b2a8512c1bf83404bc33a36ce045c4c60
[ "MIT" ]
1
2021-04-07T10:35:03.000Z
2021-04-07T10:35:03.000Z
Python/grn_solver.py
regulomics/expansion-network
93c8cf5b2a8512c1bf83404bc33a36ce045c4c60
[ "MIT" ]
null
null
null
Python/grn_solver.py
regulomics/expansion-network
93c8cf5b2a8512c1bf83404bc33a36ce045c4c60
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from grn_inference import * from utils import * from time import time ####################### ## MODEL PROCESSING ## ####################### #' Search the value of present regulator bit-vector variable #' #' @param C set of genes/nodes #' @param regulatorsVar list of present regulator bi...
48.144543
182
0.619876
9f5c6eada76e6d79d583ad2f5bda0af3016ecc52
399
py
Python
website/doctype/website_script/website_script.py
gangadhar-kadam/sapphite_lib
90cecbd53f781747d09d967ef5794fc8d77d3fe0
[ "MIT" ]
null
null
null
website/doctype/website_script/website_script.py
gangadhar-kadam/sapphite_lib
90cecbd53f781747d09d967ef5794fc8d77d3fe0
[ "MIT" ]
null
null
null
website/doctype/website_script/website_script.py
gangadhar-kadam/sapphite_lib
90cecbd53f781747d09d967ef5794fc8d77d3fe0
[ "MIT" ]
1
2018-10-26T01:06:38.000Z
2018-10-26T01:06:38.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. # MIT License. See license.txt # For license information, please see license.txt from __future__ import unicode_literals import webnotes class DocType: def __init__(self, d, dl): self.doc, self.doclist = d, dl def on_update(self): # make js and css fr...
24.9375
74
0.756892
12ac8d4ac52981d06bb556696882e346654cd6d5
2,063
py
Python
tests/helpers.py
kissmikijr/hammurabi
42c7d73a68d434a941b69ccc919a688193ef4990
[ "Apache-2.0" ]
12
2020-03-15T22:53:20.000Z
2021-12-06T13:35:07.000Z
tests/helpers.py
kissmikijr/hammurabi
42c7d73a68d434a941b69ccc919a688193ef4990
[ "Apache-2.0" ]
304
2020-01-14T08:55:29.000Z
2022-03-17T08:00:58.000Z
tests/helpers.py
kissmikijr/hammurabi
42c7d73a68d434a941b69ccc919a688193ef4990
[ "Apache-2.0" ]
2
2020-05-29T13:14:31.000Z
2021-01-07T14:03:51.000Z
from typing import Any from hammurabi.mixins import GitHubMixin, GitMixin, PullRequestHelperMixin from hammurabi.rules.base import Precondition, Rule class ExamplePrecondition(Precondition): def task(self) -> bool: return self.param class ExampleRule(Rule): """ExampleRule docstring""" def __in...
25.469136
87
0.719825
cbc2386f7995105b0f42836e291a232ef609ff62
6,940
py
Python
reinvent_chemistry/library_design/fragment_reaction_slice_enumerator.py
MolecularAI/reinvent-chemistry
bf0235bc2b1168b1db54c1e04bdba04b166ab7bf
[ "MIT" ]
null
null
null
reinvent_chemistry/library_design/fragment_reaction_slice_enumerator.py
MolecularAI/reinvent-chemistry
bf0235bc2b1168b1db54c1e04bdba04b166ab7bf
[ "MIT" ]
null
null
null
reinvent_chemistry/library_design/fragment_reaction_slice_enumerator.py
MolecularAI/reinvent-chemistry
bf0235bc2b1168b1db54c1e04bdba04b166ab7bf
[ "MIT" ]
1
2022-03-22T15:24:13.000Z
2022-03-22T15:24:13.000Z
from collections import OrderedDict from typing import List, Tuple, Set from rdkit.Chem.rdchem import Mol from reinvent_chemistry import TransformationTokens, Conversions from reinvent_chemistry.library_design import FragmentFilter from reinvent_chemistry.library_design.dtos import FilteringConditionDTO, ReactionDTO ...
48.531469
132
0.646974
f1e0b7f719a2a9afc23ff8b1d006e4f17a2cdfe5
1,092
py
Python
tests/kafka_cluster_manager/decommission_test.py
EladLeev/kafka-utils
74831206648512db1a29426c6ebb428b33820d04
[ "Apache-2.0" ]
302
2016-05-18T02:05:04.000Z
2022-03-28T21:36:28.000Z
tests/kafka_cluster_manager/decommission_test.py
EladLeev/kafka-utils
74831206648512db1a29426c6ebb428b33820d04
[ "Apache-2.0" ]
135
2016-05-17T23:15:16.000Z
2021-11-04T13:35:51.000Z
tests/kafka_cluster_manager/decommission_test.py
EladLeev/kafka-utils
74831206648512db1a29426c6ebb428b33820d04
[ "Apache-2.0" ]
133
2016-05-18T10:23:05.000Z
2022-01-29T17:24:17.000Z
from __future__ import unicode_literals from argparse import Namespace import mock import pytest from kafka_utils.kafka_cluster_manager.cluster_info \ .partition_count_balancer import PartitionCountBalancer from kafka_utils.kafka_cluster_manager.cmds import decommission from tests.kafka_cluster_manager.helper im...
32.117647
87
0.789377
acba9566186785c294f2716683db9b89227de2fd
941
py
Python
setup.py
raph92/forkexplorer
cef85857e1d7034bbe03e0b87c444969f0c60b4e
[ "Unlicense" ]
null
null
null
setup.py
raph92/forkexplorer
cef85857e1d7034bbe03e0b87c444969f0c60b4e
[ "Unlicense" ]
null
null
null
setup.py
raph92/forkexplorer
cef85857e1d7034bbe03e0b87c444969f0c60b4e
[ "Unlicense" ]
null
null
null
import re from os import path from setuptools import setup from io import open as io_open here = path.abspath(path.dirname(__file__)) with open("requirements.txt") as f: dependencies = f.read().splitlines() def readall(*args): with io_open(path.join(here, *args), encoding="utf-8") as fp: return fp.r...
26.138889
86
0.664187
b9a6c4e456dd3c421f4f5568dc0ce5512fc32191
267
py
Python
bp_content/themes/default/config/localhost.py
chuycepeda/mboilerplate
1fad3f10d491e5f6e051ff615370073e38dba1fe
[ "MIT" ]
5
2016-02-23T17:18:16.000Z
2016-08-05T22:26:29.000Z
bp_content/themes/default/config/localhost.py
chuycepeda/mboilerplate
1fad3f10d491e5f6e051ff615370073e38dba1fe
[ "MIT" ]
1
2016-03-19T02:02:32.000Z
2016-05-09T05:43:36.000Z
bp_content/themes/default/config/localhost.py
chuycepeda/mboilerplate
1fad3f10d491e5f6e051ff615370073e38dba1fe
[ "MIT" ]
9
2016-02-19T18:56:18.000Z
2019-01-13T16:50:05.000Z
config = { # This config file will be detected in localhost environment and values defined here will overwrite those in config.py 'environment': "localhost", # ----> ADD MORE CONFIGURATION OPTIONS HERE <---- 'app_name': "app @localhost" }
24.272727
122
0.655431
d99d8fa4eba56eb2c2825341dda5b316813dfdf5
526
py
Python
jobs/migrations/0010_auto_20160127_2118.py
Santiago-vdk/jabbs
66d03d1033e0a6b1a2770bb0ddbadec78f2570df
[ "Apache-2.0" ]
1
2018-05-02T11:06:52.000Z
2018-05-02T11:06:52.000Z
jobs/migrations/0010_auto_20160127_2118.py
Santiago-vdk/jabbs
66d03d1033e0a6b1a2770bb0ddbadec78f2570df
[ "Apache-2.0" ]
null
null
null
jobs/migrations/0010_auto_20160127_2118.py
Santiago-vdk/jabbs
66d03d1033e0a6b1a2770bb0ddbadec78f2570df
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-28 03:18 from __future__ import unicode_literals import ckeditor.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('jobs', '0009_post'), ] operations = [ migrations.DeleteModel(...
21.04
60
0.593156
39fb2f97c54543fb098611803480460ee06e6b19
1,255
py
Python
custom_components/rika_firenet/entity.py
antibill51/rika-firenet-custom-component
ad81d12a466d953148ebbb1440f5fd8d81edd1d2
[ "MIT" ]
2
2022-02-05T11:53:23.000Z
2022-02-19T23:55:56.000Z
custom_components/rika_firenet/entity.py
antibill51/rika-firenet-custom-component
ad81d12a466d953148ebbb1440f5fd8d81edd1d2
[ "MIT" ]
null
null
null
custom_components/rika_firenet/entity.py
antibill51/rika-firenet-custom-component
ad81d12a466d953148ebbb1440f5fd8d81edd1d2
[ "MIT" ]
null
null
null
import logging from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN, NAME, DEFAULT_NAME, VERSION from .core import RikaFirenetStove, RikaFirenetCoordinator _LOGGER = logging.getLogger(__name__) class RikaFirenetEntity(CoordinatorEntity): def __init__(self, config_entr...
29.880952
112
0.645418
8b4770d61d6649128ea7bc884dcd302a6d7bad24
518
py
Python
tests/test/algorithms/convert/QuaToSM/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
tests/test/algorithms/convert/QuaToSM/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
tests/test/algorithms/convert/QuaToSM/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
import unittest from reamber.algorithms.convert.QuaToSM import QuaToSM from reamber.quaver.QuaMap import QuaMap from tests.test.RSC_PATHS import * # import logging # # logging.basicConfig(filename="event.log", filemode="w+", level=logging.DEBUG) class TestQuaToSM(unittest.TestCase): # @profile def test(se...
19.923077
79
0.696911
8af2408b5022b26d56507aa9e0d8a01808636797
2,291
py
Python
tests/test_ops/test_voxelization.py
LiuXiaoxuanPKU/mmcv
479cf3a088e2b1eb708f4a29db24423eddf8ee0e
[ "Apache-2.0" ]
1
2022-02-17T04:42:51.000Z
2022-02-17T04:42:51.000Z
tests/test_ops/test_voxelization.py
LiuXiaoxuanPKU/mmcv
479cf3a088e2b1eb708f4a29db24423eddf8ee0e
[ "Apache-2.0" ]
1
2022-01-23T13:28:49.000Z
2022-01-23T13:28:49.000Z
tests/test_ops/test_voxelization.py
LiuXiaoxuanPKU/mmcv
479cf3a088e2b1eb708f4a29db24423eddf8ee0e
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest import torch from mmcv.ops import Voxelization def _get_voxel_points_indices(points, coors, voxel): result_form = np.equal(coors, voxel) return result_form[:, 0] & result_form[:, 1] & result_form[:, 2] @pytest.mark.parametrize('device_type', [ 'cpu', pytest.param( ...
36.951613
78
0.683544
db88383115b013bc6cb96c2e14d3b685ce65168c
104,301
py
Python
superset/viz.py
rijojoseph07/superset
94893ff280e1db3998cf71dffb7731a6a3689b33
[ "Apache-2.0" ]
null
null
null
superset/viz.py
rijojoseph07/superset
94893ff280e1db3998cf71dffb7731a6a3689b33
[ "Apache-2.0" ]
47
2021-02-17T18:43:18.000Z
2022-02-23T10:29:47.000Z
superset/viz.py
rc-ontruck/incubator-superset
5757b84857b100606871e8159a7eb5e701b33a26
[ "Apache-2.0" ]
1
2022-01-14T18:00:04.000Z
2022-01-14T18:00:04.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...
34.400066
112
0.557339
9bd59433f5900071908bb936a5c6cda3205cecfc
471
py
Python
produtos/migrations/0004_produto_upload.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
produtos/migrations/0004_produto_upload.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
produtos/migrations/0004_produto_upload.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-11-06 11:51 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('produtos', '0003_auto_20170903_1435'), ] operations = [ migrations.AddField...
22.428571
70
0.619958
047fa7da49042a25297fa58405125352debf1c22
1,868
py
Python
sympy/polys/__init__.py
pernici/sympy
5e6e3b71da777f5b85b8ca2d16f33ed020cf8a41
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/__init__.py
pernici/sympy
5e6e3b71da777f5b85b8ca2d16f33ed020cf8a41
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/__init__.py
pernici/sympy
5e6e3b71da777f5b85b8ca2d16f33ed020cf8a41
[ "BSD-3-Clause" ]
null
null
null
"""Polynomial manipulation algorithms and algebraic objects. """ from polytools import ( Poly, poly, poly_from_expr, parallel_poly_from_expr, degree, degree_list, LC, LM, LT, pdiv, prem, pquo, pexquo, div, rem, quo, exquo, half_gcdex, gcdex, invert, subresultants, resultant, dis...
17.961538
64
0.694325
859144b1e8625ba4764818ed1b76b930373ec530
102,843
py
Python
plenum/server/consensus/ordering_service.py
Toktar/indy-plenum
2f1f838332b0506f8dd8837ac341cba0cd3f7ff4
[ "Apache-2.0" ]
null
null
null
plenum/server/consensus/ordering_service.py
Toktar/indy-plenum
2f1f838332b0506f8dd8837ac341cba0cd3f7ff4
[ "Apache-2.0" ]
null
null
null
plenum/server/consensus/ordering_service.py
Toktar/indy-plenum
2f1f838332b0506f8dd8837ac341cba0cd3f7ff4
[ "Apache-2.0" ]
null
null
null
import itertools import logging import time from collections import defaultdict, OrderedDict, deque from functools import partial from typing import Tuple, List, Set, Optional, Dict, Iterable import math from orderedset._orderedset import OrderedSet from sortedcontainers import SortedList from common.exceptions impor...
44.138627
131
0.610387
67a176ae9657b5feff0b25a402b4d91393f926f2
7,261
py
Python
povary/apps/profiles/migrations/0008_auto__add_field_profile_registration_ip__add_field_profile_last_login_.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
povary/apps/profiles/migrations/0008_auto__add_field_profile_registration_ip__add_field_profile_last_login_.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
povary/apps/profiles/migrations/0008_auto__add_field_profile_registration_ip__add_field_profile_last_login_.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Profile.registration_ip' db.add_column('profiles_profile', 'registration_ip', ...
71.186275
182
0.564661
24d0f4ca646c3cd4ebea5754be6620933dbb2c13
5,918
py
Python
examples/calibration/plot_calibration_curve.py
liamdp12/scikit-learn
a42a7c7998bff42288221bc57f7b27be5bcbedc1
[ "BSD-3-Clause" ]
2
2019-02-21T10:43:16.000Z
2019-07-30T04:56:37.000Z
scikit-learn-master/examples/calibration/plot_calibration_curve.py
lqkweb/learnMLflow
13c5decaebba95b1b90f92021be35e343b4764af
[ "Apache-2.0" ]
null
null
null
scikit-learn-master/examples/calibration/plot_calibration_curve.py
lqkweb/learnMLflow
13c5decaebba95b1b90f92021be35e343b4764af
[ "Apache-2.0" ]
null
null
null
""" ============================== Probability Calibration curves ============================== When performing classification one often wants to predict not only the class label, but also the associated probability. This probability gives some kind of confidence on the prediction. This example demonstrates how to di...
43.837037
79
0.708347
92488d407e528c7769a5294a55f529cd3cf943d9
381
py
Python
bmcore/tests/utils.py
hchockarprasad/bmdjango
a978e4bca264eaa5a1f21df332f7da06f9f69ee5
[ "MIT" ]
3
2017-10-29T13:37:58.000Z
2017-11-06T15:31:35.000Z
bmcore/tests/utils.py
hchockarprasad/bmdjango
a978e4bca264eaa5a1f21df332f7da06f9f69ee5
[ "MIT" ]
null
null
null
bmcore/tests/utils.py
hchockarprasad/bmdjango
a978e4bca264eaa5a1f21df332f7da06f9f69ee5
[ "MIT" ]
null
null
null
from os import walk from django.core import management # Utility functions for testing def load_initial_data(): f = [] for (dir_path, dir_name, file_name) in walk('bmcore/fixtures/'): f.extend(file_name) break f.sort(key=lambda x: x.split()[-1]) for item in f: management...
19.05
79
0.653543
ce9f2ba1d839fbcf833b655e68da46871ddbf896
3,389
py
Python
tests/functional/test_config.py
koneksys/aras-oslc
92adb87b884014df5b82a1c5402592aabc916bc0
[ "MIT" ]
3
2021-03-19T22:25:51.000Z
2021-03-20T19:34:28.000Z
tests/functional/test_config.py
koneksys/aras-oslc
92adb87b884014df5b82a1c5402592aabc916bc0
[ "MIT" ]
null
null
null
tests/functional/test_config.py
koneksys/aras-oslc
92adb87b884014df5b82a1c5402592aabc916bc0
[ "MIT" ]
null
null
null
import logging from oslc_api.auth import login from oslc_api.auth.models import User log = logging.getLogger(__name__) def test_components(oslc_api, source_base_uri, access_token, item_values, mocker, load_item_types_test, load_items_test): @login.request_loader def load_user_from_reques...
32.902913
98
0.678961
bb022ecdcc855cb9638e50e4c3a78590843e3528
303
py
Python
Chapter10/ordered_vs_normal_dict.py
kaushalkumarshah/Learn-Python-in-7-Days
2663656767c8959ace836f0c0e272f3e501bbe6e
[ "MIT" ]
12
2018-07-09T16:20:31.000Z
2022-03-21T22:52:15.000Z
Chapter10/ordered_vs_normal_dict.py
kaushalkumarshah/Learn-Python-in-7-Days
2663656767c8959ace836f0c0e272f3e501bbe6e
[ "MIT" ]
null
null
null
Chapter10/ordered_vs_normal_dict.py
kaushalkumarshah/Learn-Python-in-7-Days
2663656767c8959ace836f0c0e272f3e501bbe6e
[ "MIT" ]
19
2018-01-09T12:49:06.000Z
2021-11-23T08:05:55.000Z
import collections print 'Regular Dictionary' d = {} d['a']= 'SAS' d['b']= 'PYTHON' d['c']= 'R' for k,v in d.items(): print k, ":",v print '\n Ordered dictionary' d1 = collections.OrderedDict() d1['a']= 'SAS' d1['b']= 'PYTHON' d1['c']= 'R' for k,v in d1.items(): print k, ":",v
15.947368
31
0.537954
8b868b2bc7177a465125d045d785b99ac38074a6
4,860
py
Python
tests/backends/gaussian/test_preparations.py
antalszava/piquasso
7ebff83145cfab44929114437c250852dff5f9a5
[ "Apache-2.0" ]
12
2021-09-12T15:51:45.000Z
2022-03-05T22:25:47.000Z
tests/backends/gaussian/test_preparations.py
antalszava/piquasso
7ebff83145cfab44929114437c250852dff5f9a5
[ "Apache-2.0" ]
36
2021-09-13T08:01:27.000Z
2022-03-21T11:53:30.000Z
tests/backends/gaussian/test_preparations.py
antalszava/piquasso
7ebff83145cfab44929114437c250852dff5f9a5
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Budapest Quantum Computing Group # # 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...
24.3
81
0.64856
58a4f05a345f8f48034347bd3a3c07ebb780bb08
4,272
py
Python
omspy/multi.py
webclinic017/omspy
a3982fba41fb7c8bbe5759bafba21556ae62df0d
[ "MIT" ]
7
2021-10-10T16:07:06.000Z
2022-03-18T18:07:41.000Z
omspy/multi.py
webclinic017/omspy
a3982fba41fb7c8bbe5759bafba21556ae62df0d
[ "MIT" ]
15
2021-10-30T15:33:23.000Z
2022-03-25T13:50:56.000Z
omspy/multi.py
webclinic017/omspy
a3982fba41fb7c8bbe5759bafba21556ae62df0d
[ "MIT" ]
1
2021-10-30T19:29:15.000Z
2021-10-30T19:29:15.000Z
""" Module for multi-user multi-broker implementation """ from pydantic import BaseModel from omspy.base import Broker from omspy.order import Order from typing import Dict, List, Optional, Type from collections import defaultdict import logging import uuid class User(BaseModel): """ A basic user class for mu...
26.7
78
0.582865
6f3448f1af494f3d3b8d2ecfed57593633aeb0f0
2,799
py
Python
tests/test_khmer_config.py
jiarong/khmer
9f3b68f3a281b68544effa0f815cbfa781228983
[ "BSD-3-Clause" ]
1
2015-04-30T01:50:30.000Z
2015-04-30T01:50:30.000Z
tests/test_khmer_config.py
jiarong/khmer
9f3b68f3a281b68544effa0f815cbfa781228983
[ "BSD-3-Clause" ]
null
null
null
tests/test_khmer_config.py
jiarong/khmer
9f3b68f3a281b68544effa0f815cbfa781228983
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2013. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. Contact: ctb@msu.edu # """ Tests various aspects wrapper for C++ API configuration interface. """ import khmer # ...
29.776596
74
0.719543
605506d2d13978e2c5d7039c7cea1ef82476a239
6,410
py
Python
ionoscloud/models/kubernetes_clusters.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
ionoscloud/models/kubernetes_clusters.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
ionoscloud/models/kubernetes_clusters.py
ionos-cloud/ionos-cloud-sdk-python
3c5804697c262898e6f6a438dc40e1b45a4bb5c9
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ CLOUD API IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the \"Data Center Designer\" (DCD) browser-based tool. Both methods employ consistent concepts and features, deliver similar power and ...
29.004525
438
0.584711
75d8633362a2331904f0667299b9d3eee157b1be
3,567
py
Python
sis2.py
pdsteele/DES-Python
20e605c77eee5e6019ca3427ca27f5b41a13a8b8
[ "MIT" ]
6
2016-04-17T03:49:09.000Z
2022-03-17T12:57:34.000Z
sis2.py
macrodatascience/DES-Python
20e605c77eee5e6019ca3427ca27f5b41a13a8b8
[ "MIT" ]
null
null
null
sis2.py
macrodatascience/DES-Python
20e605c77eee5e6019ca3427ca27f5b41a13a8b8
[ "MIT" ]
12
2015-10-07T21:16:59.000Z
2022-03-17T12:57:37.000Z
# ------------------------------------------------------------------------- # * This program - an extension of program sis1.c - simulates a simple (s,S) # * inventory system using Equilikely distributed demands. # * # * Name : sis2.c (Simple Inventory System, version 2) # * Authors : Steve P...
34.631068
105
0.478273
cd59e9c3574f3b459b2d3039466a6a379df5b06f
390
py
Python
scripts/external_libs/simpy-3.0.10/simpy/resources/__init__.py
timgates42/trex-core
efe94752fcb2d0734c83d4877afe92a3dbf8eccd
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/external_libs/simpy-3.0.10/simpy/resources/__init__.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/external_libs/simpy-3.0.10/simpy/resources/__init__.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
""" SimPy implements three types of resources that can be used to synchronize processes or to model congestion points: .. currentmodule:: simpy.resources .. autosummary:: resource container store They are derived from the base classes defined in the :mod:`~simpy.resources.base` module. These classes are al...
21.666667
76
0.764103
26bd86aceba78660085a0f8f59a7c8d4616dd7c1
6,295
py
Python
src/pretalx/agenda/views/schedule.py
h3xstream/pretalx
0600d08b03e60342dfe7f21c3eee9dda450e4a1d
[ "Apache-2.0" ]
null
null
null
src/pretalx/agenda/views/schedule.py
h3xstream/pretalx
0600d08b03e60342dfe7f21c3eee9dda450e4a1d
[ "Apache-2.0" ]
null
null
null
src/pretalx/agenda/views/schedule.py
h3xstream/pretalx
0600d08b03e60342dfe7f21c3eee9dda450e4a1d
[ "Apache-2.0" ]
null
null
null
import hashlib from datetime import timedelta from urllib.parse import unquote import pytz from django.http import ( Http404, HttpResponse, HttpResponseNotModified, HttpResponsePermanentRedirect, ) from django.urls import resolve, reverse from django.utils.functional import cached_property from django.utils.timezo...
35.971429
85
0.587133
e682a45b3c9512c7dc12b72c9bd458d99574540c
1,845
py
Python
database/covid19_data_aggregator/rivm/aggregate_netherlands_rivm_data.py
datamike/covid19
76fd702b4d126642aba3a610d29541c197a7a9a5
[ "MIT" ]
33
2020-03-11T00:42:28.000Z
2020-08-25T20:01:42.000Z
database/covid19_data_aggregator/rivm/aggregate_netherlands_rivm_data.py
datamike/covid19
76fd702b4d126642aba3a610d29541c197a7a9a5
[ "MIT" ]
17
2020-03-11T01:15:43.000Z
2020-03-25T17:33:01.000Z
database/covid19_data_aggregator/rivm/aggregate_netherlands_rivm_data.py
datamike/covid19
76fd702b4d126642aba3a610d29541c197a7a9a5
[ "MIT" ]
23
2020-03-11T06:07:03.000Z
2020-04-20T21:58:20.000Z
import requests from bs4 import BeautifulSoup import pandas as pd from datetime import datetime from os import path from io import StringIO import re def download_netherlands_rivm_data(target_directory): """ Download the Netherlands Rijksinstituut voor Volksgezondheid en Milieu data :p...
34.811321
107
0.650407
477343e13cdb3c7a2006058367d02e07885a0487
512
py
Python
exercises/pt/exc_02_07.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/exc_02_07.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/exc_02_07.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.load("en_core_web_sm") doc = nlp("Berlin looks like a nice city") # Iterar nos tokens token_texts = [token.text for token in doc] pos_tags = [token.pos_ for token in doc] for index, pos in enumerate(pos_tags): # Verifica se o token atual é um substantivo próprio. if pos == "PROPN": ...
30.117647
61
0.658203
28262c4f35e0f78f25af435920fa1b1b488599d7
4,362
py
Python
tasks.py
luan0ap/thg-framework-template-plugin
3fbf4937ab39c7fdd7631be091e9e9c5234457d5
[ "MIT" ]
null
null
null
tasks.py
luan0ap/thg-framework-template-plugin
3fbf4937ab39c7fdd7631be091e9e9c5234457d5
[ "MIT" ]
null
null
null
tasks.py
luan0ap/thg-framework-template-plugin
3fbf4937ab39c7fdd7631be091e9e9c5234457d5
[ "MIT" ]
1
2019-06-17T19:11:32.000Z
2019-06-17T19:11:32.000Z
# # -*- coding: utf-8 -*- """Development related tasks to be run with 'invoke'""" import os import shutil import invoke # shared function def rmrf(items, verbose=True): "Silently remove a list of directories or files" if isinstance(items, str): items = [items] for item in items: if verbo...
26.277108
87
0.693489
7d491b1fa20b94149c174f35c76be256b737e3d7
7,999
py
Python
pollbot/telegram/keyboard/vote.py
tobikrs/ultimate-poll-bot
eaa190ba1fec852c1a7d12c8a4633245f00c435f
[ "MIT" ]
1
2020-03-22T05:49:44.000Z
2020-03-22T05:49:44.000Z
pollbot/telegram/keyboard/vote.py
RuslanBitcash/ultimate-poll-bot
33bc71b56f79453359043bd0e778cd153d3a83a3
[ "MIT" ]
null
null
null
pollbot/telegram/keyboard/vote.py
RuslanBitcash/ultimate-poll-bot
33bc71b56f79453359043bd0e778cd153d3a83a3
[ "MIT" ]
1
2021-01-29T17:10:11.000Z
2021-01-29T17:10:11.000Z
"""Reply keyboards.""" import string from telegram import ( InlineKeyboardMarkup, InlineKeyboardButton, ) from sqlalchemy.orm import joinedload from pollbot.models import Vote from pollbot.i18n import i18n from pollbot.config import config from pollbot.helper import poll_allows_cumulative_votes from pollbot.db...
36.031532
105
0.668709
40b465b0e675e324c26e3161f146d6ee4874a930
547
py
Python
segme/backbone/core/__init__.py
shkarupa-alex/segme
d5bc0043f9e709c8ccaf8949d662bc6fd6144006
[ "MIT" ]
2
2021-05-25T18:53:00.000Z
2021-05-26T12:11:41.000Z
segme/backbone/core/__init__.py
shkarupa-alex/segme
d5bc0043f9e709c8ccaf8949d662bc6fd6144006
[ "MIT" ]
null
null
null
segme/backbone/core/__init__.py
shkarupa-alex/segme
d5bc0043f9e709c8ccaf8949d662bc6fd6144006
[ "MIT" ]
2
2021-11-21T02:39:37.000Z
2021-12-08T07:26:56.000Z
from .densenet import DenseNet121, DenseNet169, DenseNet201 from .efficientnet import EfficientNetB0, EfficientNetB1, EfficientNetB2 from .efficientnet import EfficientNetB3, EfficientNetB4, EfficientNetB5 from .efficientnet import EfficientNetB6, EfficientNetB7 from .inception import InceptionV3, InceptionResNetV2, Xc...
54.7
81
0.855576
34760c9533ec7c3899c9a3fbbbbdf7a39876e35a
121,562
py
Python
Lib/test/test_io.py
kimixuchen/Python-2.7.11_dict
7759702954316800de26705d17e80ba1126157eb
[ "PSF-2.0" ]
2
2018-03-29T10:56:36.000Z
2020-12-12T15:28:14.000Z
Lib/test/test_io.py
ilanschnell/python27
82bc2eb71d4b3864998cca059ed407e66c99930c
[ "PSF-2.0" ]
1
2016-05-18T01:27:28.000Z
2016-05-18T05:00:36.000Z
Lib/test/test_io.py
ilanschnell/python27
82bc2eb71d4b3864998cca059ed407e66c99930c
[ "PSF-2.0" ]
3
2019-05-13T09:41:33.000Z
2021-04-09T12:12:38.000Z
"""Unit tests for the io module.""" # Tests of io are scattered over the test suite: # * test_bufio - tests file buffering # * test_memoryio - tests BytesIO and StringIO # * test_fileio - tests FileIO # * test_file - tests the file interface # * test_io - tests everything else in the io module # * test_univnewlines - ...
36.982659
89
0.573156
d644e7a75a3f6b74ae886c98ad37524cdd96d5b7
941
py
Python
examples/sharepoint/folders/download_folder.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
examples/sharepoint/folders/download_folder.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
examples/sharepoint/folders/download_folder.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
import os import tempfile from settings import settings from office365.runtime.auth.client_credential import ClientCredential from office365.sharepoint.client_context import ClientContext ctx = ClientContext(settings['url']).with_credentials( ClientCredential(settings['client_credentials']['client_id'], ...
37.64
95
0.752391
6357a3cc4d68ce1722eefb84898797ca19d167f9
7,539
py
Python
tods/tests/feature_analysis/test_DatetimeFeatureExtract.py
zylMozart/tods
a4c0192b43b438276d2228306c0e9c896d9e3809
[ "Apache-2.0" ]
null
null
null
tods/tests/feature_analysis/test_DatetimeFeatureExtract.py
zylMozart/tods
a4c0192b43b438276d2228306c0e9c896d9e3809
[ "Apache-2.0" ]
null
null
null
tods/tests/feature_analysis/test_DatetimeFeatureExtract.py
zylMozart/tods
a4c0192b43b438276d2228306c0e9c896d9e3809
[ "Apache-2.0" ]
null
null
null
import unittest from d3m import container, utils from d3m.metadata import base as metadata_base from tods.feature_analysis import DatetimeFeatureExtract class DatetimeFeatureExtractTestCase(unittest.TestCase): def test_basic(self): self.maxDiff = None main = container.DataFrame( { ...
37.321782
103
0.37631
e81596dfe5c0dec52ee30c1ee187de1a302e3c53
8,372
py
Python
Old_20190104/Multispec_server/multispec_runner_ctypes.py
ColdMatter/PhotonBEC
c6bcf9bdefd267c8adde0d299cf5920b010c5022
[ "MIT" ]
null
null
null
Old_20190104/Multispec_server/multispec_runner_ctypes.py
ColdMatter/PhotonBEC
c6bcf9bdefd267c8adde0d299cf5920b010c5022
[ "MIT" ]
null
null
null
Old_20190104/Multispec_server/multispec_runner_ctypes.py
ColdMatter/PhotonBEC
c6bcf9bdefd267c8adde0d299cf5920b010c5022
[ "MIT" ]
null
null
null
#NOTE: Uses pi_controller class, which is currently based in "CavityLock" folder, but will be moved to PythonPackages #This class re-uses a lot of code from /Control/CavityLock/stabiliser_class.py import sys from socket import gethostname if gethostname()=="ph-rnyman-01": sys.path.append("D:\\Control\\PythonPackages\\...
35.474576
138
0.736025
ae765662aa969539ff9f40ac9842d80dbebfe295
1,523
py
Python
plotly/validators/layout/scene/xaxis/_titlefont.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/layout/scene/xaxis/_titlefont.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
1
2020-12-15T16:56:11.000Z
2020-12-15T16:56:11.000Z
plotly/validators/layout/scene/xaxis/_titlefont.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class TitlefontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='titlefont', parent_name='layout.scene.xaxis', **kwargs ): super(TitlefontValidator, self).__init__( plotly_name=pl...
36.261905
73
0.556796
28dae2079243a6e4c8f0165e4f89e2000016c33a
851
py
Python
tools/pythonpkg/tests/fast/arrow/test_multiple_reads.py
lokax/duckdb
c2581dfebccaebae9468c924c2c722fcf0306944
[ "MIT" ]
1
2021-12-13T06:00:18.000Z
2021-12-13T06:00:18.000Z
tools/pythonpkg/tests/fast/arrow/test_multiple_reads.py
lokax/duckdb
c2581dfebccaebae9468c924c2c722fcf0306944
[ "MIT" ]
32
2021-09-24T23:50:09.000Z
2022-03-29T09:37:26.000Z
tools/pythonpkg/tests/fast/arrow/test_multiple_reads.py
lokax/duckdb
c2581dfebccaebae9468c924c2c722fcf0306944
[ "MIT" ]
null
null
null
import duckdb import os try: import pyarrow import pyarrow.parquet can_run = True except: can_run = False class TestArrowReads(object): def test_multiple_queries_same_relation(self, duckdb_cursor): if not can_run: return parquet_filename = os.path.join(os.path.dirname(os...
38.681818
118
0.695652
6b8c3463e4c7a74b179359ee7df91266167de022
1,442
py
Python
Semana 6/ParcialB1.py
mrgatik/Estructura_de_Datos_2
12aad1f56c1ff17a6f9900d001d085f955a3d08c
[ "MIT" ]
null
null
null
Semana 6/ParcialB1.py
mrgatik/Estructura_de_Datos_2
12aad1f56c1ff17a6f9900d001d085f955a3d08c
[ "MIT" ]
null
null
null
Semana 6/ParcialB1.py
mrgatik/Estructura_de_Datos_2
12aad1f56c1ff17a6f9900d001d085f955a3d08c
[ "MIT" ]
null
null
null
class Nodo: def init__(self, nombre=None, apellido=None, telefono=None, direccion=None, izq=None, der=None): self.nombre = nombre self.apellido = apellido self.telefono = telefono self.direccion = direccion self.izq = izq self.der = der def str (self): return "%s %s" %(self.nombre, apellido, tele...
29.428571
116
0.635922
6e1f4a6648b8bc9d53f27bb1d31bf8a226c6b640
738
py
Python
core/api/controller/reading_controller.py
rits-dajare/DaaS
ab8483250a1a2b2838c316ba71fdaf748130dff1
[ "MIT" ]
7
2020-07-20T12:03:06.000Z
2021-05-22T15:57:18.000Z
core/api/controller/reading_controller.py
averak/DaaS
ab8483250a1a2b2838c316ba71fdaf748130dff1
[ "MIT" ]
19
2020-08-28T10:23:53.000Z
2021-11-17T23:48:45.000Z
core/api/controller/reading_controller.py
averak/DaaS
ab8483250a1a2b2838c316ba71fdaf748130dff1
[ "MIT" ]
2
2020-08-08T21:20:01.000Z
2021-05-20T01:37:46.000Z
from fastapi import APIRouter, Depends, HTTPException from core.service.dajare_service import DajareService from core.api.request.reading_request import ReadingRequest from core.api.response.reading_response import ReadingResponse dajare_service = DajareService() router = APIRouter() @router.get('/', status_code=2...
30.75
90
0.777778
1dd38fe47e27e4bfb337611c66c5a1c33243c3a5
2,507
py
Python
examples/experimental/trial/resnet50_tf_keras/native_impl.py
ybt195/determined
913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2
[ "Apache-2.0" ]
3
2020-04-30T03:56:15.000Z
2020-04-30T04:01:24.000Z
examples/experimental/trial/resnet50_tf_keras/native_impl.py
ybt195/determined
913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2
[ "Apache-2.0" ]
1
2022-02-10T07:31:44.000Z
2022-02-10T07:31:44.000Z
examples/experimental/trial/resnet50_tf_keras/native_impl.py
ybt195/determined
913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2
[ "Apache-2.0" ]
2
2020-07-10T23:08:23.000Z
2021-01-13T10:01:59.000Z
import argparse import pathlib from official.vision.image_classification import common from official.vision.image_classification import imagenet_preprocessing from official.vision.image_classification import resnet_model import determined as det from determined import experimental from determined.experimental import ...
32.986842
100
0.670523
1fc2f22fe34ac78033eb1b4fcce4a12b61b959b9
542
py
Python
examples/galgebra/matrix_latex.py
lidavidm/sympy
971aa94ee6d0774eacfb4aed6965195c4a59e104
[ "BSD-3-Clause" ]
1
2020-03-12T02:52:16.000Z
2020-03-12T02:52:16.000Z
examples/galgebra/matrix_latex.py
shashank-agg/sympy
ecf69893c0b9927ea7192113b2421d639aee6ffb
[ "BSD-3-Clause" ]
null
null
null
examples/galgebra/matrix_latex.py
shashank-agg/sympy
ecf69893c0b9927ea7192113b2421d639aee6ffb
[ "BSD-3-Clause" ]
1
2015-04-16T17:35:45.000Z
2015-04-16T17:35:45.000Z
#!/usr/bin/env python from __future__ import print_function from sympy import symbols, Matrix from sympy.galgebra import xdvi from sympy.galgebra import Format def main(): Format() a = Matrix( 2, 2, ( 1, 2, 3, 4 ) ) b = Matrix( 2, 1, ( 5, 6 ) ) c = a * b print(a, b, '=', c) x, y = symbols( '...
18.689655
64
0.49262
ef1aff466c8c4381521fd90438deb24458a2e199
1,140
py
Python
build/preferences.py
deathaxe/sublime-a-file-icon
aeb58da4737fc5bd567c7a4ba62d72f407723f5f
[ "MIT" ]
204
2018-12-19T00:09:36.000Z
2022-03-28T10:44:34.000Z
build/preferences.py
Ouyang-ui/AFileIcon
373027558a9ee2465a6ab293859676939e71b2d6
[ "MIT" ]
58
2018-12-18T15:12:52.000Z
2022-01-30T12:46:50.000Z
build/preferences.py
Ouyang-ui/AFileIcon
373027558a9ee2465a6ab293859676939e71b2d6
[ "MIT" ]
48
2018-12-19T16:30:39.000Z
2022-03-22T23:33:46.000Z
import os from textwrap import dedent def create_preferences(icons): template = ( dedent( """ <?xml version="1.0" encoding="UTF-8"?> <plist version="1.0"> <dict> <key>scope</key> <string>{scope}</string> <ke...
27.142857
87
0.442982
beffd6e767f26b666fcb15b0524a7874180d97d0
5,190
py
Python
tests/case/view/manage.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
1
2015-02-10T15:09:42.000Z
2015-02-10T15:09:42.000Z
tests/case/view/manage.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
tests/case/view/manage.py
mbeko/moztrap
db75e1f8756ef2c0c39652a66302b19c8afa0256
[ "BSD-2-Clause" ]
null
null
null
""" Utility base TestCase classes for testing manage views. """ from datetime import datetime from . import base class ListViewTestCase(base.FormViewTestCase, base.ListViewTestCase): """Base class for testing manage list views.""" # subclasses should specify these: perm = None # required manag...
27.606383
78
0.604239
731dae44a82896569f53896af2eb4c079af55b2c
30,538
py
Python
liquidhandling/SoloSoft.py
brettin/liquidhandling
7a96e2881ffaa0326514cf5d97ba49d65ad42a14
[ "MIT" ]
null
null
null
liquidhandling/SoloSoft.py
brettin/liquidhandling
7a96e2881ffaa0326514cf5d97ba49d65ad42a14
[ "MIT" ]
null
null
null
liquidhandling/SoloSoft.py
brettin/liquidhandling
7a96e2881ffaa0326514cf5d97ba49d65ad42a14
[ "MIT" ]
1
2021-03-25T13:47:42.000Z
2021-03-25T13:47:42.000Z
import json from liquidhandling import Properties STEP_DELIMITER = "!@#$" class SoloSoft: def __init__(self, filename=None, plateList=None, pipeline=None): self.filename = None self.plateList = [] self.pipeline = [] # *Open protocol file for editing try: if fi...
32.044071
86
0.484609