hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a7955298b73d5f2579d3f326020afc0190964952 | 6,150 | py | Python | python/plugins/db_manager/db_plugins/oracle/data_model.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | python/plugins/db_manager/db_plugins/oracle/data_model.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | python/plugins/db_manager/db_plugins/oracle/data_model.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Name : DB Manager
Description : Database manager plugin for QGIS (Oracle)
Date : Aug 27, 2014
copyright : (C) 2014 by Mdric RIBREUX
email : mederic... | 33.064516 | 77 | 0.532195 |
a795b31c14f03e20f3936fc4c94e68f3ce593493 | 1,711 | py | Python | Opencv1/prayog4.py | priyanshgupta1998/Image_Processing | d1848838ff1acd6dfcf551b99380a8bbf9c879fa | [
"MIT"
] | null | null | null | Opencv1/prayog4.py | priyanshgupta1998/Image_Processing | d1848838ff1acd6dfcf551b99380a8bbf9c879fa | [
"MIT"
] | null | null | null | Opencv1/prayog4.py | priyanshgupta1998/Image_Processing | d1848838ff1acd6dfcf551b99380a8bbf9c879fa | [
"MIT"
] | null | null | null | # with the TRACKBAR gui component
# we can perform some action my moving cursor
import cv2
import numpy as np
if __name__ == "__main__":
main()
| 39.790698 | 157 | 0.64173 |
a795b8548eef5888745b44763ff2a163b2d8f0d7 | 9,814 | py | Python | qiushaoyi/study_practices/qiushaoyi_study_path/L2_Module.py | qsyPython/Python_play_now | 278b6d5d30082f8f93b26902c854737c4919405a | [
"MIT"
] | 2 | 2018-03-29T08:26:17.000Z | 2019-06-17T10:56:19.000Z | qiushaoyi/study_practices/qiushaoyi_study_path/L2_Module.py | qsyPython/Python_play_now | 278b6d5d30082f8f93b26902c854737c4919405a | [
"MIT"
] | 1 | 2022-03-22T20:26:08.000Z | 2022-03-22T20:26:08.000Z | qiushaoyi/study_practices/qiushaoyi_study_path/L2_Module.py | qsyPython/Python_play_now | 278b6d5d30082f8f93b26902c854737c4919405a | [
"MIT"
] | 1 | 2019-02-18T10:44:20.000Z | 2019-02-18T10:44:20.000Z | import sys
from PIL import Image
from enum import Enum, unique
# : cd ls , ,: ./
im = Image.open('test.png')
print(im.format, im.size, im.mode)
#
# (Object Oriented ProgrammingOOP)()
std1 = {'name': 'Machileg', 'score': 89}
std2 = {'name': 'mahfljg', 'score': 67}
print_score(std1)
std666 = Student(std2['name... | 23.99511 | 135 | 0.598431 |
a795e8692fbeff0ef48524f2158106ba51c6886a | 1,404 | py | Python | 2019/day-03/3.py | Valokoodari/advent-of-code | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-27T18:59:11.000Z | 2022-01-10T02:31:36.000Z | 2019/day-03/3.py | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | null | null | null | 2019/day-03/3.py | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-23T17:29:10.000Z | 2021-12-24T03:21:49.000Z | inputFile = "3-input"
outputFile = "3-output"
dir = {'L': [-1,0],'R': [1,0],'U': [0,1],'D': [0,-1]}
if __name__ == '__main__': main() | 24.206897 | 63 | 0.491453 |
a795f6ac4554f8ba46a00dda59b825a3e846ebb5 | 942 | py | Python | notebook/3_tst_3dep.py | ACWI-SSWD/nldi_el_serv | 35276014728662b1a9bdbbbf4790c562c1df760c | [
"CC0-1.0"
] | null | null | null | notebook/3_tst_3dep.py | ACWI-SSWD/nldi_el_serv | 35276014728662b1a9bdbbbf4790c562c1df760c | [
"CC0-1.0"
] | 1 | 2021-03-04T18:50:19.000Z | 2021-03-04T18:50:19.000Z | notebook/3_tst_3dep.py | ACWI-SSWD/nldi_el_serv | 35276014728662b1a9bdbbbf4790c562c1df760c | [
"CC0-1.0"
] | null | null | null | from nldi_el_serv.XSGen import XSGen
from nldi_el_serv.dem_query import query_dems_shape
import py3dep
from pynhd import NLDI
gagebasin = NLDI().get_basins("06721000").to_crs('epsg:3857')
gageloc = NLDI().getfeature_byid("nwissite", "USGS-06721000").to_crs('epsg:3857')
cid = gageloc.comid.values.astype(str)
print(cid... | 33.642857 | 91 | 0.740977 |
a7970ccf14ddf7d03195daa316d4ddd0d08e404f | 3,437 | py | Python | Python/Product/Pyvot/Pyvot/setup.py | mikiec84/PTVS | 6cbeadd70a4438d6e6ea4d22a465d678eacf5eb2 | [
"Apache-2.0"
] | 3 | 2015-04-09T03:57:26.000Z | 2016-07-25T10:00:34.000Z | Python/Product/Pyvot/Pyvot/setup.py | anstkosh/PTVS | 1854ab3d6397e66765697bb63d898aec16d0406e | [
"Apache-2.0"
] | 2 | 2019-06-05T18:13:41.000Z | 2019-06-05T20:13:16.000Z | Python/Product/Pyvot/Pyvot/setup.py | RaymonGulati1/PTVS | ee1d09f2a94be4e21016f7579205bb65ec82c616 | [
"Apache-2.0"
] | 2 | 2018-03-02T19:55:14.000Z | 2019-02-14T22:37:28.000Z | # PyVot
# Copyright(c) Microsoft 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
#
# THIS CODE IS PROVIDED ON AN ... | 35.802083 | 118 | 0.719814 |
a797c1cadcd8bbf1b052c2b8f77c7e0d396cdcfb | 271 | py | Python | src/ralph/api/__init__.py | DoNnMyTh/ralph | 97b91639fa68965ad3fd9d0d2652a6545a2a5b72 | [
"Apache-2.0"
] | 1,668 | 2015-01-01T12:51:20.000Z | 2022-03-29T09:05:35.000Z | src/ralph/api/__init__.py | hq-git/ralph | e2448caf02d6e5abfd81da2cff92aefe0a534883 | [
"Apache-2.0"
] | 2,314 | 2015-01-02T13:26:26.000Z | 2022-03-29T04:06:03.000Z | src/ralph/api/__init__.py | hq-git/ralph | e2448caf02d6e5abfd81da2cff92aefe0a534883 | [
"Apache-2.0"
] | 534 | 2015-01-05T12:40:28.000Z | 2022-03-29T21:10:12.000Z | from ralph.api.serializers import RalphAPISerializer
from ralph.api.viewsets import RalphAPIViewSet, RalphReadOnlyAPIViewSet
from ralph.api.routers import router
__all__ = [
'RalphAPISerializer',
'RalphAPIViewSet',
'RalphReadOnlyAPIViewSet',
'router',
]
| 24.636364 | 71 | 0.778598 |
a799e70dc24ceb42c8e876b81ace1c8f5d0f6ceb | 727 | py | Python | demo_odoo_tutorial_wizard/models/models.py | digitalsatori/odoo-demo-addons-tutorial | 8eb56156ac55f317f90bca089886c392556759c2 | [
"MIT"
] | 57 | 2020-06-22T05:28:11.000Z | 2022-03-25T08:15:08.000Z | demo_odoo_tutorial_wizard/models/models.py | digitalsatori/odoo-demo-addons-tutorial | 8eb56156ac55f317f90bca089886c392556759c2 | [
"MIT"
] | 2 | 2020-11-20T07:11:27.000Z | 2022-03-30T00:20:29.000Z | demo_odoo_tutorial_wizard/models/models.py | digitalsatori/odoo-demo-addons-tutorial | 8eb56156ac55f317f90bca089886c392556759c2 | [
"MIT"
] | 29 | 2020-07-04T15:24:01.000Z | 2022-03-28T01:29:03.000Z | from odoo import models, fields, api
from odoo.exceptions import ValidationError | 34.619048 | 72 | 0.696011 |
a79daf8941b0f06f1e88f279de06585e5430d9d8 | 659 | py | Python | eaa_donations/donations/models/partner_charity.py | andrewbird2/eaa_donations | 40a2cb2431130b330130f101c89bd3f8c503d2e2 | [
"MIT"
] | null | null | null | eaa_donations/donations/models/partner_charity.py | andrewbird2/eaa_donations | 40a2cb2431130b330130f101c89bd3f8c503d2e2 | [
"MIT"
] | 13 | 2020-06-05T19:27:58.000Z | 2022-02-26T13:40:54.000Z | eaa_donations/donations/models/partner_charity.py | andrewbird2/eaa_donations | 40a2cb2431130b330130f101c89bd3f8c503d2e2 | [
"MIT"
] | null | null | null | from django.db import models
| 36.611111 | 101 | 0.732929 |
a7a100722ec7bb48d5749ae19f7101fc66740935 | 2,931 | py | Python | python_data_utils/spark/ml/lightgbm.py | surajiyer/python-data-utils | d6e9bf81204a01545a3edb165c5724eb24f37c18 | [
"MIT"
] | 4 | 2019-01-06T00:09:21.000Z | 2022-01-28T06:03:13.000Z | python_data_utils/spark/ml/lightgbm.py | surajiyer/python-data-utils | d6e9bf81204a01545a3edb165c5724eb24f37c18 | [
"MIT"
] | null | null | null | python_data_utils/spark/ml/lightgbm.py | surajiyer/python-data-utils | d6e9bf81204a01545a3edb165c5724eb24f37c18 | [
"MIT"
] | null | null | null | __all__ = ['LightGBMRegressorModel']
from mmlspark.lightgbm.LightGBMRegressor import LightGBMRegressor, LightGBMRegressionModel
from mmlspark.train import ComputeModelStatistics
from pyspark.ml.evaluation import RegressionEvaluator
from pyspark.sql import DataFrame
import pyspark.sql.functions as F
from python_data_u... | 37.101266 | 90 | 0.643466 |
a7a176d1745c365cc7c57002a3194eb70a8c838f | 80 | py | Python | UDTherapy/__init__.py | JonSn0w/Urban-Dictionary-Therapy | 8257cd3883bcef31207c2b089197ee9b0788727f | [
"MIT"
] | 3 | 2017-05-08T11:59:51.000Z | 2017-06-20T22:36:07.000Z | UDTherapy/__init__.py | JonSn0w/Urban-Dictionary-Therapy | 8257cd3883bcef31207c2b089197ee9b0788727f | [
"MIT"
] | null | null | null | UDTherapy/__init__.py | JonSn0w/Urban-Dictionary-Therapy | 8257cd3883bcef31207c2b089197ee9b0788727f | [
"MIT"
] | null | null | null | name = 'Urban Dictionary Therapy'
__all__ = ['UDTherapy',
'helper']
| 16 | 33 | 0.6 |
a7a1b1b2f4da0731134b12b8f90d117d800a2c6f | 2,453 | py | Python | torch-test/mpich-3.4.3/modules/libfabric/contrib/intel/jenkins/runtests.py | alchemy315/NoPFS | f3901e963e2301e8a6f1c7aac0511d0cf9a1889d | [
"BSD-3-Clause"
] | null | null | null | torch-test/mpich-3.4.3/modules/libfabric/contrib/intel/jenkins/runtests.py | alchemy315/NoPFS | f3901e963e2301e8a6f1c7aac0511d0cf9a1889d | [
"BSD-3-Clause"
] | null | null | null | torch-test/mpich-3.4.3/modules/libfabric/contrib/intel/jenkins/runtests.py | alchemy315/NoPFS | f3901e963e2301e8a6f1c7aac0511d0cf9a1889d | [
"BSD-3-Clause"
] | null | null | null | import argparse
import os
import sys
sys.path.append(os.environ['CI_SITE_CONFIG'])
import ci_site_config
import run
import common
parser = argparse.ArgumentParser()
parser.add_argument("--prov", help="core provider", choices=["psm2", "verbs", \
"tcp", "udp", "sockets", "shm"])
parser.add_argument... | 35.042857 | 81 | 0.653078 |
a7a23de4cab3d9668dde589a3d12beefa58de55c | 664 | py | Python | interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0075_sort_colors.py | mrinalini-m/data_structures_and_algorithms | f9bebcca8002064e26ba5b46e47b8abedac39c3e | [
"MIT"
] | 2 | 2020-12-18T21:42:05.000Z | 2020-12-21T06:07:33.000Z | interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0075_sort_colors.py | mrinalini-m/data_structures_and_algorithms | f9bebcca8002064e26ba5b46e47b8abedac39c3e | [
"MIT"
] | null | null | null | interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0075_sort_colors.py | mrinalini-m/data_structures_and_algorithms | f9bebcca8002064e26ba5b46e47b8abedac39c3e | [
"MIT"
] | 2 | 2020-07-04T20:30:19.000Z | 2021-08-31T08:32:36.000Z | from typing import List
list = [1, 2, 0, 1, 0, 2, 0, 0]
Solution().sortColors(list)
print(list)
| 18.971429 | 61 | 0.414157 |
a7a370eb2ff4da9ac60e7150eb94a68c2fab78e2 | 14,452 | py | Python | bnpy/data/GroupXData.py | raphael-group/bnpy | b11dc6f5689b06fc967bab6dffe7e01551d84667 | [
"BSD-3-Clause"
] | 184 | 2016-12-13T21:05:48.000Z | 2022-02-28T11:47:23.000Z | bnpy/data/GroupXData.py | raphael-group/bnpy | b11dc6f5689b06fc967bab6dffe7e01551d84667 | [
"BSD-3-Clause"
] | 37 | 2016-12-18T14:07:53.000Z | 2022-03-13T10:58:14.000Z | bnpy/data/GroupXData.py | raphael-group/bnpy | b11dc6f5689b06fc967bab6dffe7e01551d84667 | [
"BSD-3-Clause"
] | 50 | 2017-01-25T19:44:34.000Z | 2022-03-15T10:22:01.000Z | '''
Classes
-----
GroupXData
Data object for holding a dense matrix X of real 64-bit floats,
organized contiguously based on provided group structure.
'''
import numpy as np
from collections import namedtuple
from bnpy.data.XData import XData
from bnpy.util import as1D, as2D, as3D, toCArray
from bnpy.util impo... | 34.657074 | 77 | 0.588846 |
a7a3c07297bdc5a9d9dc9e8e2723b1d3e587876e | 915 | py | Python | sghymnal/users/models.py | shortnd/sghymnal | c10d9a7e2fda803dcb5046b9f7bc099f32b6c603 | [
"MIT"
] | null | null | null | sghymnal/users/models.py | shortnd/sghymnal | c10d9a7e2fda803dcb5046b9f7bc099f32b6c603 | [
"MIT"
] | null | null | null | sghymnal/users/models.py | shortnd/sghymnal | c10d9a7e2fda803dcb5046b9f7bc099f32b6c603 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db.models import BooleanField, CharField
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
| 39.782609 | 74 | 0.748634 |
a7a3c324c55d54b727b474911571c79dbd56bbdd | 3,285 | py | Python | GNetLMM/pycore/mtSet/linalg/linalg_matrix.py | PMBio/GNetLMM | 103d6433ff6d4a13b5787c116032fda268dc4302 | [
"Apache-2.0"
] | 4 | 2016-02-25T18:40:36.000Z | 2019-05-06T06:15:47.000Z | GNetLMM/pycore/mtSet/linalg/linalg_matrix.py | PMBio/GNetLMM | 103d6433ff6d4a13b5787c116032fda268dc4302 | [
"Apache-2.0"
] | 6 | 2016-03-29T02:55:17.000Z | 2017-11-27T19:30:04.000Z | GNetLMM/pycore/mtSet/linalg/linalg_matrix.py | PMBio/GNetLMM | 103d6433ff6d4a13b5787c116032fda268dc4302 | [
"Apache-2.0"
] | 2 | 2017-05-09T05:23:50.000Z | 2019-07-27T13:19:22.000Z | """Matrix linear algebra routines needed for GP models"""
import scipy as SP
import scipy.linalg as linalg
import logging
def solve_chol(A,B):
"""
Solve cholesky decomposition::
return A\(A'\B)
"""
# X = linalg.solve(A,linalg.solve(A.transpose(),B))
# much faster version
X = ... | 26.92623 | 150 | 0.565297 |
a7a51a41fbb112ee2ecd860311e6db4a6211d1fb | 12,504 | py | Python | WebDev/Task 3/we-poll/flaskapp/main.py | vigneshd332/delta-inductions-2021-master | 70d4e7ecd92d69a2521df72ca99ac0ef2f135a23 | [
"MIT"
] | null | null | null | WebDev/Task 3/we-poll/flaskapp/main.py | vigneshd332/delta-inductions-2021-master | 70d4e7ecd92d69a2521df72ca99ac0ef2f135a23 | [
"MIT"
] | null | null | null | WebDev/Task 3/we-poll/flaskapp/main.py | vigneshd332/delta-inductions-2021-master | 70d4e7ecd92d69a2521df72ca99ac0ef2f135a23 | [
"MIT"
] | null | null | null | import ast
from flask import Flask, request
from flaskext.mysql import MySQL
from flask_cors import CORS, cross_origin
app = Flask(__name__)
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'
mysql=MySQL()
app.config['MYSQL_DATABASE_USER'] = 'admin'
app.config['MYSQL_DATABASE_PASSWORD'] = 'noobmaster69'
app... | 37.437126 | 193 | 0.610125 |
a7a53397912424502a2174602b255501283824ca | 3,514 | py | Python | src/models/participants/participants.py | jfblg/Tracktime-UZE | f43666ac62d6e6450d0fb7082b5e68bae360547f | [
"MIT"
] | null | null | null | src/models/participants/participants.py | jfblg/Tracktime-UZE | f43666ac62d6e6450d0fb7082b5e68bae360547f | [
"MIT"
] | null | null | null | src/models/participants/participants.py | jfblg/Tracktime-UZE | f43666ac62d6e6450d0fb7082b5e68bae360547f | [
"MIT"
] | null | null | null | from wtforms import Form, BooleanField, IntegerField, StringField, PasswordField, validators
from wtforms.fields.html5 import EmailField
from src.common.database import db
from sqlalchemy import exc
def delete_from_db(self):
db.session.delete(self)
db.session.commit()
| 31.945455 | 100 | 0.615822 |
a7a5cb2262b40e9f0b4ed01f3aebd41690c8929f | 901 | py | Python | demo.py | ruixuantan/FourParts | d28f7fa87830406a08e618bdfcb25d5d87e3e2a1 | [
"MIT"
] | null | null | null | demo.py | ruixuantan/FourParts | d28f7fa87830406a08e618bdfcb25d5d87e3e2a1 | [
"MIT"
] | 6 | 2020-10-09T04:25:07.000Z | 2021-04-20T20:29:03.000Z | demo.py | ruixuantan/FourParts | d28f7fa87830406a08e618bdfcb25d5d87e3e2a1 | [
"MIT"
] | null | null | null | import fourparts as fp
import pandas as pd
file_name = 'chorale_F'
df = fp.midi_to_df('samples/' + file_name + '.mid', save=True)
chords = fp.PreProcessor(4).get_progression(df)
chord_progression = fp.ChordProgression(chords)
# gets pitch class sets
pitch_class_sets = chord_progression.get_pitch_class_sets()
pd.Dat... | 30.033333 | 74 | 0.789123 |
a7a5eea8dc1da0b751835f89feabfe81cc8149c8 | 14,677 | py | Python | jenkins_status.py | tektronix/obsidian | d7ee7cd1a8511ecea8d3b475c2b308bcd81c7706 | [
"Apache-2.0"
] | 2 | 2019-05-03T19:45:22.000Z | 2019-08-01T18:33:49.000Z | jenkins_status.py | tektronix/obsidian | d7ee7cd1a8511ecea8d3b475c2b308bcd81c7706 | [
"Apache-2.0"
] | 5 | 2019-09-05T15:09:24.000Z | 2019-10-02T20:36:35.000Z | jenkins_status.py | tektronix/obsidian | d7ee7cd1a8511ecea8d3b475c2b308bcd81c7706 | [
"Apache-2.0"
] | 1 | 2019-05-13T20:13:00.000Z | 2019-05-13T20:13:00.000Z | #!/usr/bin/env python3
# Display a Jenkins build job status and progress
# Re-use animation functions from https://github.com/jgarff/rpi_ws281x/blob/master/python/examples/strandtest.py
import argparse
import random
import sys
import datetime
import time
from rpi_ws281x import Adafruit_NeoPixel, Color
from requests ... | 36.239506 | 119 | 0.644614 |
a7a6463865702f264ac1badc4373232d010a238b | 3,649 | py | Python | RQ1_RQ2/Thermostat_case_study/EVALUATION/Pymoo_GA/MyTcMutation.py | dgumenyuk/Environment_generation | 092fbecdc208f84aa58f2ccd3522262984e79cda | [
"MIT"
] | null | null | null | RQ1_RQ2/Thermostat_case_study/EVALUATION/Pymoo_GA/MyTcMutation.py | dgumenyuk/Environment_generation | 092fbecdc208f84aa58f2ccd3522262984e79cda | [
"MIT"
] | null | null | null | RQ1_RQ2/Thermostat_case_study/EVALUATION/Pymoo_GA/MyTcMutation.py | dgumenyuk/Environment_generation | 092fbecdc208f84aa58f2ccd3522262984e79cda | [
"MIT"
] | null | null | null | import numpy as np
from pymoo.model.mutation import Mutation
import copy
import config as cf
import random as rm
| 34.424528 | 87 | 0.417923 |
a7a7a93a99b79c8510b21680dab63b937c097a0a | 6,609 | py | Python | yufeng_code/models.py | BrandonThaiTran/stressed_emotion | 72a24ae66a41a9cdf811145ada5f4d5ecbe3c680 | [
"MIT"
] | null | null | null | yufeng_code/models.py | BrandonThaiTran/stressed_emotion | 72a24ae66a41a9cdf811145ada5f4d5ecbe3c680 | [
"MIT"
] | null | null | null | yufeng_code/models.py | BrandonThaiTran/stressed_emotion | 72a24ae66a41a9cdf811145ada5f4d5ecbe3c680 | [
"MIT"
] | null | null | null | """
Defines models
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Function
from torch.autograd import Variable
from torch.nn.utils.rnn import pack_padded_sequence
from torch.nn.utils.rnn import pad_packed_sequence
| 35.342246 | 80 | 0.55606 |
a7a883b149b66dd30bd8e6cfd41ec11cd9ae06f6 | 1,007 | py | Python | intercom/api_operations/find.py | orikalinski/python-intercom | 7acd881ac9fa042e88a31f540040be7027edafa1 | [
"MIT"
] | null | null | null | intercom/api_operations/find.py | orikalinski/python-intercom | 7acd881ac9fa042e88a31f540040be7027edafa1 | [
"MIT"
] | null | null | null | intercom/api_operations/find.py | orikalinski/python-intercom | 7acd881ac9fa042e88a31f540040be7027edafa1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Operation to find an instance of a particular resource."""
from intercom import HttpError
from intercom import utils
| 34.724138 | 84 | 0.606753 |
a7aa730f8abab95fb0a5ea5e1812ce4926111dc2 | 4,743 | py | Python | Python/maximum-number-of-occurrences-of-a-substring.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | 1 | 2022-01-30T06:55:28.000Z | 2022-01-30T06:55:28.000Z | Python/maximum-number-of-occurrences-of-a-substring.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | null | null | null | Python/maximum-number-of-occurrences-of-a-substring.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | 1 | 2021-12-31T03:56:39.000Z | 2021-12-31T03:56:39.000Z | # Time: O(n)
# Space: O(n)
# 1297 weekly contest 168 12/21/2019
# Given a string s, return the maximum number of ocurrences of any substring under the following rules:
#
# The number of unique characters in the substring must be less than or equal to maxLetters.
# The substring size must be between minSize and maxSi... | 35.395522 | 103 | 0.527093 |
a7ab53160a52a5d1c5533255c3c66a5f638a75da | 2,899 | py | Python | source/protocol/image_0203_protocol.py | chopin1993/protocolmaster-20210731 | e23e235ee00b940a4161c606415574d2a52c701c | [
"Apache-2.0"
] | null | null | null | source/protocol/image_0203_protocol.py | chopin1993/protocolmaster-20210731 | e23e235ee00b940a4161c606415574d2a52c701c | [
"Apache-2.0"
] | null | null | null | source/protocol/image_0203_protocol.py | chopin1993/protocolmaster-20210731 | e23e235ee00b940a4161c606415574d2a52c701c | [
"Apache-2.0"
] | null | null | null | # encoding:utf-8
from .protocol import Protocol
from .protocol import find_head
from .codec import BinaryEncoder
from tools.converter import hexstr2bytes, str2hexstr
from .data_container import *
import time
import struct
from protocol.data_container import DataStruct
IMG0203_HEAD = bytes([0x54,0x17,0xfe,0x02])
IMG0203... | 30.840426 | 80 | 0.600552 |
a7ac0fd2c72d5a1ba2a439615b6e2a8a3fe255b0 | 936 | py | Python | ucscsdk/methodmeta/ConfigUCEstimateImpactMeta.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 9 | 2016-12-22T08:39:25.000Z | 2019-09-10T15:36:19.000Z | ucscsdk/methodmeta/ConfigUCEstimateImpactMeta.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 10 | 2017-01-31T06:59:56.000Z | 2021-11-09T09:14:37.000Z | ucscsdk/methodmeta/ConfigUCEstimateImpactMeta.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 13 | 2016-11-14T07:42:58.000Z | 2022-02-10T17:32:05.000Z | """This module contains the meta information of ConfigUCEstimateImpact ExternalMethod."""
from ..ucsccoremeta import MethodMeta, MethodPropertyMeta
method_meta = MethodMeta("ConfigUCEstimateImpact", "configUCEstimateImpact", "Version142b")
prop_meta = {
"cookie": MethodPropertyMeta("Cookie", "cookie", "Xs:string... | 44.571429 | 146 | 0.746795 |
a7ad127304af82024c33b51ab7d7e16625068796 | 2,315 | py | Python | src/midiutil/midiosc.py | neonkingfr/VizBench | e41f559cb6e761d717f2f5b202482d5d8dacd2d8 | [
"MIT"
] | 7 | 2015-01-05T06:32:49.000Z | 2020-10-30T19:29:07.000Z | src/midiutil/midiosc.py | neonkingfr/VizBench | e41f559cb6e761d717f2f5b202482d5d8dacd2d8 | [
"MIT"
] | null | null | null | src/midiutil/midiosc.py | neonkingfr/VizBench | e41f559cb6e761d717f2f5b202482d5d8dacd2d8 | [
"MIT"
] | 4 | 2016-03-09T22:29:26.000Z | 2021-04-07T13:52:28.000Z | """
This module provides an interface to MIDI things for OSC
"""
import sys
import time
import traceback
import thread
import threading
import copy
import string
import re
from threading import Thread,Lock
from math import sqrt
from ctypes import *
from time import sleep
from traceback import format_exc
from array im... | 21.238532 | 59 | 0.72959 |
a7ae12f206db8056cd85668443dc8c96311de3a2 | 7,128 | py | Python | argentum-api/api/tests/test_guest_view.py | devium/argentum | 2bbb0f663fe9be78d106b1afa409b094da449519 | [
"MIT"
] | 1 | 2019-10-07T09:47:08.000Z | 2019-10-07T09:47:08.000Z | argentum-api/api/tests/test_guest_view.py | devium/argentum | 2bbb0f663fe9be78d106b1afa409b094da449519 | [
"MIT"
] | null | null | null | argentum-api/api/tests/test_guest_view.py | devium/argentum | 2bbb0f663fe9be78d106b1afa409b094da449519 | [
"MIT"
] | null | null | null | import copy
import logging
from api.models import Transaction, BonusTransaction, Order, Tag, OrderItem
from api.models.guest import Guest
from api.models.label import Label
from api.tests.data.guests import TestGuests
from api.tests.data.statuses import TestStatuses
from api.tests.data.users import TestUsers
from api.... | 40.271186 | 104 | 0.658951 |
a7ae40689370a8b6c40572fb34aab6f86b6f10fd | 5,106 | py | Python | nonebot/adapters/qqguild/message.py | nonebot/adapter-qqguild | a3e4d353bfdaafb296743bc0f15ed5d643c64d85 | [
"MIT"
] | 39 | 2021-12-23T14:26:41.000Z | 2022-03-22T14:11:19.000Z | nonebot/adapters/qqguild/message.py | nonebot/adapter-qqguild | a3e4d353bfdaafb296743bc0f15ed5d643c64d85 | [
"MIT"
] | 4 | 2022-01-22T17:59:50.000Z | 2022-03-22T12:40:10.000Z | nonebot/adapters/qqguild/message.py | nonebot/adapter-qqguild | a3e4d353bfdaafb296743bc0f15ed5d643c64d85 | [
"MIT"
] | 2 | 2022-01-16T02:38:51.000Z | 2022-03-01T15:48:36.000Z | import re
from typing import Any, Type, Tuple, Union, Iterable
from nonebot.typing import overrides
from nonebot.adapters import Message as BaseMessage
from nonebot.adapters import MessageSegment as BaseMessageSegment
from .utils import escape, unescape
from .api import Message as GuildMessage
from .api import Messa... | 29.859649 | 87 | 0.607521 |
a7ae54fa73c46e74acbf26edef75a93f9daec057 | 2,689 | py | Python | creme/metrics/__init__.py | Raul9595/creme | 39cec7ac27ccd40ff0a7bdd6bceaf7ce25c1a8da | [
"BSD-3-Clause"
] | 1 | 2020-07-27T03:06:46.000Z | 2020-07-27T03:06:46.000Z | creme/metrics/__init__.py | 2torus/creme | bcc5e2a0155663a1f0ba779c68f23456695bcb54 | [
"BSD-3-Clause"
] | 1 | 2022-02-10T06:24:42.000Z | 2022-02-10T06:24:42.000Z | creme/metrics/__init__.py | igorol/creme | 60977c4accfdca08cfd76a162095ff738ef87281 | [
"BSD-3-Clause"
] | 1 | 2021-04-16T08:27:14.000Z | 2021-04-16T08:27:14.000Z | """
A set of metrics used in machine learning that can be computed in a streaming fashion, without any
loss in precision.
"""
from .accuracy import Accuracy
from .accuracy import RollingAccuracy
from .confusion import ConfusionMatrix
from .confusion import RollingConfusionMatrix
from .cross_entropy import CrossEntropy
... | 25.130841 | 98 | 0.748605 |
a7aefa18f5080501a0e0759b55fb0c060403255f | 628 | py | Python | cd/checks/is_player_connected.py | Axelware/CD-bot | 8f923c09c3c8cfcff48813c6dd11ac50c410af72 | [
"MIT"
] | 2 | 2021-12-10T00:36:59.000Z | 2021-12-11T09:11:46.000Z | cd/checks/is_player_connected.py | Axelware/CD-bot | 8f923c09c3c8cfcff48813c6dd11ac50c410af72 | [
"MIT"
] | 2 | 2021-12-10T01:53:10.000Z | 2021-12-10T09:06:01.000Z | cd/checks/is_player_connected.py | Axelware/CD-bot | 8f923c09c3c8cfcff48813c6dd11ac50c410af72 | [
"MIT"
] | 1 | 2021-12-10T00:37:07.000Z | 2021-12-10T00:37:07.000Z | # Future
from __future__ import annotations
# Standard Library
from collections.abc import Callable
from typing import Literal, TypeVar
# Packages
from discord.ext import commands
# Local
from cd import custom, exceptions
__all__ = (
"is_player_connected",
)
T = TypeVar("T")
| 19.030303 | 95 | 0.719745 |
a7af30cf8c221d4921a6b97b3773efaa600307b2 | 986 | py | Python | src/test/base.py | vincent-lg/levantine | 21d5296eec2161d9fae404bbfd9d538ac7970f2c | [
"BSD-3-Clause"
] | null | null | null | src/test/base.py | vincent-lg/levantine | 21d5296eec2161d9fae404bbfd9d538ac7970f2c | [
"BSD-3-Clause"
] | null | null | null | src/test/base.py | vincent-lg/levantine | 21d5296eec2161d9fae404bbfd9d538ac7970f2c | [
"BSD-3-Clause"
] | null | null | null | """Base test for TalisMUD tests.
It creates an in-memory database for each test, so they run in independent
environments.
"""
import unittest
from pony.orm import db_session
from data.base import db
from data.properties import LazyPropertyDescriptor
# Bind to a temporary database
db.bind(provider="sqlite", filena... | 25.947368 | 74 | 0.662272 |
a7b03e4ffb4bbb414e62639fa7c3f4af65273269 | 4,074 | py | Python | setup.py | zkbt/henrietta | 653d798b241ad5591b704967a0413a2457a4e734 | [
"MIT"
] | null | null | null | setup.py | zkbt/henrietta | 653d798b241ad5591b704967a0413a2457a4e734 | [
"MIT"
] | 12 | 2018-09-12T03:56:04.000Z | 2019-02-15T04:12:53.000Z | setup.py | zkbt/henrietta | 653d798b241ad5591b704967a0413a2457a4e734 | [
"MIT"
] | null | null | null | '''
This setup.py file sets up our package to be installable on any computer,
so that folks can `import henrietta` from within any directory.
Thanks to this file, you can...
...tell python to look for `henrietta` in the current directory (which you
can continue to edit), by typing *one* of the following commands:
`p... | 37.376147 | 109 | 0.650957 |
a7b07918e04c601018fdac4669f2078472d113b2 | 18,739 | py | Python | zedenv/plugins/systemdboot.py | slicer69/zedenv | 415397b48fdc8ec137cc8f99d2d9a70e8c8981f1 | [
"BSD-3-Clause"
] | null | null | null | zedenv/plugins/systemdboot.py | slicer69/zedenv | 415397b48fdc8ec137cc8f99d2d9a70e8c8981f1 | [
"BSD-3-Clause"
] | null | null | null | zedenv/plugins/systemdboot.py | slicer69/zedenv | 415397b48fdc8ec137cc8f99d2d9a70e8c8981f1 | [
"BSD-3-Clause"
] | null | null | null | import shutil
import os
import re
import tempfile
import click
import zedenv.lib.be
import zedenv.plugins.configuration as plugin_config
import zedenv.lib.system
from zedenv.lib.logger import ZELogger
| 40.560606 | 99 | 0.509365 |
a7b14f4594c0e55bb15609c8994038940d71c37f | 1,158 | py | Python | dockerfile/web/mailman-web/main.py | TommyLike/kubernetes-mailman | abd50e2798f2c4417e71302ff64b8a52d0d5878a | [
"MIT"
] | null | null | null | dockerfile/web/mailman-web/main.py | TommyLike/kubernetes-mailman | abd50e2798f2c4417e71302ff64b8a52d0d5878a | [
"MIT"
] | null | null | null | dockerfile/web/mailman-web/main.py | TommyLike/kubernetes-mailman | abd50e2798f2c4417e71302ff64b8a52d0d5878a | [
"MIT"
] | null | null | null | import os
import socket
import ipaddress
DEBUG = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# NOTE: this is the MTA host, we need to update it.
EMAIL_HOST = 'mailman-exim4-0.mail-suit-service.default.svc.cluster.local'
EMAIL_PORT = 25
mailman_ip_address = socket.gethostbyname(
os.environ.... | 37.354839 | 74 | 0.692573 |
a7b26907d2d76169184d6413917d51a6f4b07b22 | 16,381 | py | Python | mask_functions.py | jhh37/wearmask3d | 67c9beba323a34d0d207d7b6897f97cd59145e63 | [
"MIT"
] | 6 | 2021-09-25T04:59:16.000Z | 2022-03-02T15:39:13.000Z | mask_functions.py | jhh37/wearmask3d | 67c9beba323a34d0d207d7b6897f97cd59145e63 | [
"MIT"
] | null | null | null | mask_functions.py | jhh37/wearmask3d | 67c9beba323a34d0d207d7b6897f97cd59145e63 | [
"MIT"
] | 1 | 2021-09-26T02:35:44.000Z | 2021-09-26T02:35:44.000Z | # WearMask3D
# Copyright 2021 Hanjo Kim and Minsoo Kim. All rights reserved.
# http://github.com/jhh37/wearmask3d
#
# 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, includ... | 31.807767 | 110 | 0.565777 |
a7b2d4bcebc84c01285d54f2bcd39c69c67e7a6d | 249 | py | Python | adminapp/admin.py | gabyxbinnaeah/Bus-Booking | 51d2a521f890986e4e7e17775708cec3cd71d2b4 | [
"MIT"
] | null | null | null | adminapp/admin.py | gabyxbinnaeah/Bus-Booking | 51d2a521f890986e4e7e17775708cec3cd71d2b4 | [
"MIT"
] | null | null | null | adminapp/admin.py | gabyxbinnaeah/Bus-Booking | 51d2a521f890986e4e7e17775708cec3cd71d2b4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Admin, Profile
# from userapp.models import Book
# from driverapp.models import Bus
admin.site.register(Admin)
admin.site.register(Profile)
# admin.site.register(Bus)
# admin.site.register(Book) | 27.666667 | 35 | 0.795181 |
a7b37c8008c4aac92350512db834814661a375e1 | 41,807 | py | Python | zstackwoodpecker/zstackwoodpecker/operations/hybrid_operations.py | bgerxx/woodpecker | fdc51245945cc9be4d1f028988079213eb99b2ad | [
"Apache-2.0"
] | null | null | null | zstackwoodpecker/zstackwoodpecker/operations/hybrid_operations.py | bgerxx/woodpecker | fdc51245945cc9be4d1f028988079213eb99b2ad | [
"Apache-2.0"
] | null | null | null | zstackwoodpecker/zstackwoodpecker/operations/hybrid_operations.py | bgerxx/woodpecker | fdc51245945cc9be4d1f028988079213eb99b2ad | [
"Apache-2.0"
] | null | null | null | '''
All ldap operations for test.
@author: quarkonics
'''
from apibinding.api import ApiError
import apibinding.inventory as inventory
import apibinding.api_actions as api_actions
import zstackwoodpecker.test_util as test_util
import account_operations
import config_operations
import os
import inspec... | 50.73665 | 288 | 0.75107 |
a7b426f2174df82614170a394fb020de8df61abf | 293 | py | Python | datasets_example/populate_elastic.py | aleksbobic/csx | 151ac6644694ac585bf5d070bae7146e94c30aec | [
"MIT"
] | null | null | null | datasets_example/populate_elastic.py | aleksbobic/csx | 151ac6644694ac585bf5d070bae7146e94c30aec | [
"MIT"
] | null | null | null | datasets_example/populate_elastic.py | aleksbobic/csx | 151ac6644694ac585bf5d070bae7146e94c30aec | [
"MIT"
] | null | null | null | import requests
import sys
requests.put(f"http://localhost:9200/{sys.argv[1]}?pretty")
headers = {"Content-Type": "application/x-ndjson"}
data = open(sys.argv[2], "rb").read()
requests.post(
f"http://localhost:9200/{sys.argv[1]}/_bulk?pretty", headers=headers, data=data
)
| 22.538462 | 84 | 0.665529 |
a7b495865e605d6301abb8d08c5cad2ee915a172 | 7,369 | py | Python | tests/unit/utils/test_attributes.py | pyqgis/plutil | 79df2596e4e0340f3765ccb5bdfd4cc1d01fcb7d | [
"MIT"
] | null | null | null | tests/unit/utils/test_attributes.py | pyqgis/plutil | 79df2596e4e0340f3765ccb5bdfd4cc1d01fcb7d | [
"MIT"
] | null | null | null | tests/unit/utils/test_attributes.py | pyqgis/plutil | 79df2596e4e0340f3765ccb5bdfd4cc1d01fcb7d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Unit tests for Attributes.
"""
from __future__ import unicode_literals
from __future__ import print_function
import logging
import os
import shutil
import tempfile
from unittest import TestCase, SkipTest
from unittest.mock import MagicMock
from qgis.PyQt.QtCore import QVariant
from qgis.co... | 39.832432 | 75 | 0.639707 |
a7b4c6f5823d6451d0e2b584c552a30bc5d41136 | 191 | py | Python | portal/template.py | SlapBass/nx-portal | ee262079db1e5230a24ebbc205e44926f11f8da9 | [
"Apache-2.0"
] | 5 | 2019-10-04T04:46:44.000Z | 2019-10-09T10:02:01.000Z | portal/template.py | SlapBass/nx-portal | ee262079db1e5230a24ebbc205e44926f11f8da9 | [
"Apache-2.0"
] | 9 | 2019-10-06T07:15:09.000Z | 2020-09-24T02:19:40.000Z | portal/template.py | SlapBass/nx-portal | ee262079db1e5230a24ebbc205e44926f11f8da9 | [
"Apache-2.0"
] | 1 | 2020-06-19T13:26:08.000Z | 2020-06-19T13:26:08.000Z | from django.conf import settings
| 21.222222 | 54 | 0.712042 |
a7b57910267fcbe3aaeef29154600de509e91fa3 | 12,923 | py | Python | app.py | Tesfa-eth/online_book_store | b3a9b24065f3952f2ea26107a72a96fe6c1988e8 | [
"Apache-2.0"
] | null | null | null | app.py | Tesfa-eth/online_book_store | b3a9b24065f3952f2ea26107a72a96fe6c1988e8 | [
"Apache-2.0"
] | null | null | null | app.py | Tesfa-eth/online_book_store | b3a9b24065f3952f2ea26107a72a96fe6c1988e8 | [
"Apache-2.0"
] | null | null | null | from enum import unique
from typing import Reversible
from flask import Flask, app, render_template, url_for, redirect, request
#import flask
from flask.helpers import flash
from flask_login.utils import login_fresh
from flask_sqlalchemy import SQLAlchemy
from flask_login import UserMixin, login_manager, login_user, Lo... | 37.676385 | 137 | 0.686141 |
a7b6c1b55e93ba5383e18ba855c03c57d497af3c | 5,560 | py | Python | aei_net.py | ilyakava/faceshifter | aa48f9eb79991bae4ee9d8c69bb3b51891a9f721 | [
"BSD-3-Clause"
] | null | null | null | aei_net.py | ilyakava/faceshifter | aa48f9eb79991bae4ee9d8c69bb3b51891a9f721 | [
"BSD-3-Clause"
] | null | null | null | aei_net.py | ilyakava/faceshifter | aa48f9eb79991bae4ee9d8c69bb3b51891a9f721 | [
"BSD-3-Clause"
] | null | null | null | import torch
import torch.nn.functional as F
from torch.optim import Adam
from torch.utils.data import DataLoader
import torchvision
from torchvision import transforms
from torchvision.models import resnet101
import pytorch_lightning as pl
from model.AEINet import ADDGenerator, MultilevelAttributesEncoder
from model... | 40 | 140 | 0.660252 |
a7b811fd3215225ba11bbaec1274776a54d75f89 | 3,744 | py | Python | luna/gateware/usb/usb3/link/timers.py | macdaliot/luna | 97e725d0af001a6d4c4811eefb43b6c31a9b45e1 | [
"BSD-3-Clause"
] | 2 | 2020-11-04T10:54:15.000Z | 2022-03-17T20:38:21.000Z | luna/gateware/usb/usb3/link/timers.py | macdaliot/luna | 97e725d0af001a6d4c4811eefb43b6c31a9b45e1 | [
"BSD-3-Clause"
] | 4 | 2020-11-11T17:32:33.000Z | 2020-11-30T13:08:05.000Z | luna/gateware/usb/usb3/link/timers.py | macdaliot/luna | 97e725d0af001a6d4c4811eefb43b6c31a9b45e1 | [
"BSD-3-Clause"
] | 2 | 2021-06-26T06:06:52.000Z | 2022-01-19T22:36:19.000Z | #
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com>
# SPDX-License-Identifier: BSD-3-Clause
""" U0 link-maintenance timers. """
from nmigen import *
| 34.036364 | 97 | 0.6461 |
a7bac68130322804ca0f8658958c0c6e65364b14 | 769 | py | Python | S4/S4 Library/simulation/ensemble/ensemble_interactions.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/ensemble/ensemble_interactions.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/ensemble/ensemble_interactions.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from objects.base_interactions import ProxyInteraction
from sims4.utils import classproperty, flexmethod
| 33.434783 | 89 | 0.723017 |
a7bb2b9d40a5d41ccee76669339046f57bb5ef22 | 742 | py | Python | setup.py | ryderdamen/phonetic-alphabet | 23239a532b05c5708629011dd02a228fc11f71e7 | [
"MIT"
] | 3 | 2020-05-01T22:23:38.000Z | 2021-03-30T17:47:40.000Z | setup.py | ryderdamen/phonetic-alphabet | 23239a532b05c5708629011dd02a228fc11f71e7 | [
"MIT"
] | null | null | null | setup.py | ryderdamen/phonetic-alphabet | 23239a532b05c5708629011dd02a228fc11f71e7 | [
"MIT"
] | null | null | null | import setuptools
INSTALL_REQUIRES = []
TESTS_REQUIRE = ['pytest']
setuptools.setup(
name='phonetic_alphabet',
version='0.1.0',
description='Convert characters and digits to phonetic alphabet equivalents.',
long_description=get_readme(),
long_description_content_type="text/markdown",
keyword... | 27.481481 | 82 | 0.719677 |
a7bbd5a285c6bb9093667ccc2d4fc99f883f732d | 1,573 | py | Python | tests/fixtures.py | vfxetc/sgcache | 670bfac2904373e19c2dac7504d2d7f87018833d | [
"BSD-3-Clause"
] | 13 | 2017-09-06T21:48:57.000Z | 2022-02-08T20:50:52.000Z | tests/fixtures.py | vfxetc/sgcache | 670bfac2904373e19c2dac7504d2d7f87018833d | [
"BSD-3-Clause"
] | 1 | 2021-04-04T18:07:04.000Z | 2021-04-04T18:07:04.000Z | tests/fixtures.py | vfxetc/sgcache | 670bfac2904373e19c2dac7504d2d7f87018833d | [
"BSD-3-Clause"
] | 1 | 2019-07-19T01:23:19.000Z | 2019-07-19T01:23:19.000Z | from . import uuid
| 34.195652 | 96 | 0.590591 |
a7bbfcd8b016b1703e3c92ed7c1cef2bc74d76e6 | 3,098 | py | Python | config.py | ricsonc/aptools | c6ff775a7ae5a7ea7b27235748fd45769d037ae8 | [
"MIT"
] | 1 | 2020-11-09T18:02:36.000Z | 2020-11-09T18:02:36.000Z | config.py | ricsonc/aptools | c6ff775a7ae5a7ea7b27235748fd45769d037ae8 | [
"MIT"
] | null | null | null | config.py | ricsonc/aptools | c6ff775a7ae5a7ea7b27235748fd45769d037ae8 | [
"MIT"
] | null | null | null | from munch import Munch as M
cores = 20
demosaic_params = M(
# at most one of use_flat or use_lens_profile should be True
# strongly recommended to have at least 1 be True
use_flat = False,
use_lens_profile = True,
alg = 'DCB', #alternatively, use LMMSE
camera = 'auto', # alternatively, speci... | 34.422222 | 92 | 0.679471 |
a7bc5dad7ba38fc7552e7848f03173e599033cdb | 10,809 | py | Python | src/cogs/ide/dialogs/navigated_saved.py | boopdev/Jarvide | 10920d53e4193c7e5526012b572c00f26536cd6c | [
"MIT"
] | null | null | null | src/cogs/ide/dialogs/navigated_saved.py | boopdev/Jarvide | 10920d53e4193c7e5526012b572c00f26536cd6c | [
"MIT"
] | null | null | null | src/cogs/ide/dialogs/navigated_saved.py | boopdev/Jarvide | 10920d53e4193c7e5526012b572c00f26536cd6c | [
"MIT"
] | null | null | null | import disnake
import time
from disnake.ext import commands
from typing import Optional
from odmantic import Model
from src.utils import ExitButton, EmbedFactory, File, get_info
| 33.258462 | 195 | 0.569248 |
a7be5a9cf5c8b15026fbcff5a02db179d5654ed0 | 6,098 | py | Python | BiBloSA/exp_SICK/src/evaluator.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 116 | 2018-02-01T08:33:35.000Z | 2021-08-04T05:28:04.000Z | BiBloSA/exp_SICK/src/evaluator.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 2 | 2019-02-23T18:54:22.000Z | 2019-11-09T01:30:32.000Z | BiBloSA/exp_SICK/src/evaluator.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 35 | 2019-02-08T02:00:31.000Z | 2022-03-01T23:17:00.000Z | from configs import cfg
from src.utils.record_log import _logger
import numpy as np
import tensorflow as tf
import scipy.stats as stats
| 51.677966 | 120 | 0.642178 |
a7c14fda1fe9509c8caa57724445fdcaee4171b6 | 3,696 | py | Python | pytorch_translate/tasks/translation_from_pretrained_xlm.py | dzhulgakov/translate | 018d3eed8d93ff32e86c912e68045c7a3f4ed0b7 | [
"BSD-3-Clause"
] | 748 | 2018-05-02T17:12:53.000Z | 2022-03-26T04:44:44.000Z | pytorch_translate/tasks/translation_from_pretrained_xlm.py | dzhulgakov/translate | 018d3eed8d93ff32e86c912e68045c7a3f4ed0b7 | [
"BSD-3-Clause"
] | 352 | 2018-05-02T19:05:59.000Z | 2022-02-25T16:54:27.000Z | pytorch_translate/tasks/translation_from_pretrained_xlm.py | dzhulgakov/translate | 018d3eed8d93ff32e86c912e68045c7a3f4ed0b7 | [
"BSD-3-Clause"
] | 193 | 2018-05-02T17:14:56.000Z | 2022-02-24T21:10:56.000Z | #!/usr/bin/env python3
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
from fairse... | 39.319149 | 85 | 0.688582 |
a7c26519485c15577e8b274b47dd3a678ef542d3 | 5,084 | py | Python | drugresnet/seya/layers/memnn2.py | Naghipourfar/CCLE | cd557928a003200c683861b29c607942029bffb1 | [
"MIT"
] | 429 | 2015-08-11T09:48:34.000Z | 2021-07-31T15:13:23.000Z | drugresnet/seya/layers/memnn2.py | Naghipourfar/CCLE | cd557928a003200c683861b29c607942029bffb1 | [
"MIT"
] | 55 | 2015-09-10T11:57:58.000Z | 2021-04-24T14:13:31.000Z | drugresnet/seya/layers/memnn2.py | Naghipourfar/CCLE | cd557928a003200c683861b29c607942029bffb1 | [
"MIT"
] | 135 | 2015-08-31T17:52:26.000Z | 2022-02-07T05:31:12.000Z | import theano.tensor as T
import keras.backend as K
from keras.layers.core import LambdaMerge
from keras import initializations
| 39.71875 | 78 | 0.54288 |
a7c2682f5396348598753e892a05447ab558cc24 | 419 | py | Python | nyan/utils/io.py | TWRogers/nyan | c224279467475c9ce81e4709dd357897e0e5c963 | [
"Apache-2.0"
] | 2 | 2019-10-11T16:41:16.000Z | 2019-10-11T16:42:08.000Z | nyan/utils/io.py | TWRogers/nyan | c224279467475c9ce81e4709dd357897e0e5c963 | [
"Apache-2.0"
] | null | null | null | nyan/utils/io.py | TWRogers/nyan | c224279467475c9ce81e4709dd357897e0e5c963 | [
"Apache-2.0"
] | null | null | null | import cv2
from PIL import Image
import os
import numpy as np
IMAGE_BE = os.environ.get('NYAN_IMAGE_BE', 'PIL')
if IMAGE_BE == 'PIL':
elif IMAGE_BE == 'cv2':
else:
raise NotImplementedError('IMAGE_BE {} not implemented'.format(IMAGE_BE))
| 23.277778 | 77 | 0.668258 |
a7c28ef23aa63e38de4b879a5620a01103796308 | 164 | py | Python | src/server.py | sqweelygig/a-pi-api | 7c83bf5d1a00e01a45edc7fda9b4887bf02b064a | [
"Apache-2.0"
] | null | null | null | src/server.py | sqweelygig/a-pi-api | 7c83bf5d1a00e01a45edc7fda9b4887bf02b064a | [
"Apache-2.0"
] | null | null | null | src/server.py | sqweelygig/a-pi-api | 7c83bf5d1a00e01a45edc7fda9b4887bf02b064a | [
"Apache-2.0"
] | null | null | null | import RPi.GPIO as GPIO
import connexion
if __name__ == '__main__':
app = connexion.App('a-pi-api')
app.add_api('v0/spec.yml')
app.run(host='0.0.0.0', port=80)
| 20.5 | 33 | 0.682927 |
a7c34c83fcf273716cc8990f3dfde892e307229c | 661 | py | Python | detect_fraud_email_enron/tools/k_best_selector.py | gotamist/other_machine_learning | 70c7f5367ed5cf9b6fd4818cda16add24a2b468d | [
"MIT"
] | null | null | null | detect_fraud_email_enron/tools/k_best_selector.py | gotamist/other_machine_learning | 70c7f5367ed5cf9b6fd4818cda16add24a2b468d | [
"MIT"
] | null | null | null | detect_fraud_email_enron/tools/k_best_selector.py | gotamist/other_machine_learning | 70c7f5367ed5cf9b6fd4818cda16add24a2b468d | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 25 18:26:45 2018
@author: gotamist
"""
import sys
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
from sklearn.feature_selection import SelectKBest | 28.73913 | 69 | 0.721634 |
a7c3a82db91bce9cfb29cde148a1916bca6eaffc | 697 | py | Python | Python/179.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | null | null | null | Python/179.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | 1 | 2018-04-16T21:01:50.000Z | 2018-04-16T21:01:50.000Z | Python/179.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Solution to Project Euler problem 179 - Consecutive positive divisors
Author: Jaime Liew
https://github.com/jaimeliew1/Project_Euler_Solutions
"""
if __name__ == "__main__":
print(run())
| 19.914286 | 79 | 0.573888 |
a7c3c43019bf1d3df920d62ddaf471e6b921d131 | 7,417 | py | Python | tweetx/environment.py | Druid-of-Luhn/TweetX | 15a2dc0ad619f846b40880ad5fc3ab690d835e0d | [
"MIT"
] | null | null | null | tweetx/environment.py | Druid-of-Luhn/TweetX | 15a2dc0ad619f846b40880ad5fc3ab690d835e0d | [
"MIT"
] | null | null | null | tweetx/environment.py | Druid-of-Luhn/TweetX | 15a2dc0ad619f846b40880ad5fc3ab690d835e0d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import asyncio, entity, io, json, logging, queue, random, threading, time, websockets, whale
from bot import bot
from random import randrange
logging.basicConfig()
log = logging.getLogger('tweetx')
log.setLevel(logging.DEBUG)
if __name__ == "__main__":
sim = Game()
try:
sim.r... | 32.674009 | 145 | 0.556829 |
a7c3c5875178bbdc7bd8d2fd3aaff1ff122b86d9 | 682 | py | Python | retired/example_process_discharge_simulation.py | changliao1025/pyswat | cdcda1375be8c0f71459a78438b1e9f8a22a77bc | [
"MIT"
] | 2 | 2021-12-11T01:39:00.000Z | 2022-02-15T17:57:45.000Z | retired/example_process_discharge_simulation.py | changliao1025/pyswat | cdcda1375be8c0f71459a78438b1e9f8a22a77bc | [
"MIT"
] | 5 | 2022-03-10T16:38:30.000Z | 2022-03-28T17:31:20.000Z | retired/example_process_discharge_simulation.py | changliao1025/pyswat | cdcda1375be8c0f71459a78438b1e9f8a22a77bc | [
"MIT"
] | null | null | null | from swaty.simulation.swat_main import swat_main
from swaty.swaty_read_model_configuration_file import swat_read_model_configuration_file
from swaty.classes.pycase import swaty
from swaty.postprocess.extract.swat_extract_stream_discharge import swat_extract_stream_discharge
sFilename_configuration_in = '/global/homes/... | 52.461538 | 110 | 0.879765 |
a7c4df68721fac6742030901c0c135b22a7c5979 | 861 | py | Python | ThinkPython/chap9/ex9.py | sokolowskik/Tutorials | d2681d4f18b03e00f90f9132c77f0b23b74d2629 | [
"MIT"
] | null | null | null | ThinkPython/chap9/ex9.py | sokolowskik/Tutorials | d2681d4f18b03e00f90f9132c77f0b23b74d2629 | [
"MIT"
] | null | null | null | ThinkPython/chap9/ex9.py | sokolowskik/Tutorials | d2681d4f18b03e00f90f9132c77f0b23b74d2629 | [
"MIT"
] | null | null | null | def is_reverse(i, j):
"""
Convert 2-digit numbers to strings and check if they are palindromic.
If one of the numbers has less then 2 digits, fill with zeros.
"""
str_i = str(i)
str_j = str(j)
if len(str_i) < 2:
str_i = str_i.zfill(2)
if len(str_j) < 2:
str_j = str_j.zfil... | 26.90625 | 123 | 0.551684 |
a7c5b09df90f26ab3c6cd5143e35bfba31e9f2b0 | 10,237 | py | Python | Segnet/训练.py | 1044197988/- | 5c3ee7c9431ae85c68f418901378326b91c6f00d | [
"Apache-2.0"
] | 186 | 2019-03-20T08:54:08.000Z | 2022-03-30T04:34:37.000Z | Segnet/训练.py | sunkaiyue0/Semantic-segmentation-of-remote-sensing-images | 5c3ee7c9431ae85c68f418901378326b91c6f00d | [
"Apache-2.0"
] | 6 | 2019-08-29T08:18:13.000Z | 2021-10-09T10:29:58.000Z | Segnet/训练.py | sunkaiyue0/Semantic-segmentation-of-remote-sensing-images | 5c3ee7c9431ae85c68f418901378326b91c6f00d | [
"Apache-2.0"
] | 60 | 2019-10-23T03:50:36.000Z | 2022-03-25T03:16:25.000Z | #coding=utf-8
import matplotlib
matplotlib.use("Agg")
import tensorflow as tf
import argparse
import numpy as np
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv2D,MaxPooling2D,UpSampling2D,BatchNormalization,Reshape,Permute,Activation
from tensorflow.keras.utils imp... | 40.623016 | 143 | 0.602911 |
a7ca81e026978ae19cb5d85995f5f61a2647b878 | 1,465 | py | Python | Python/295. FindMedianFromDataStream.py | nizD/LeetCode-Solutions | 7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349 | [
"MIT"
] | 263 | 2020-10-05T18:47:29.000Z | 2022-03-31T19:44:46.000Z | Python/295. FindMedianFromDataStream.py | nizD/LeetCode-Solutions | 7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349 | [
"MIT"
] | 1,264 | 2020-10-05T18:13:05.000Z | 2022-03-31T23:16:35.000Z | Python/295. FindMedianFromDataStream.py | nizD/LeetCode-Solutions | 7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349 | [
"MIT"
] | 760 | 2020-10-05T18:22:51.000Z | 2022-03-29T06:06:20.000Z | """
Problem:
--------
Design a data structure that supports the following two operations:
- `void addNum(int num)`: Add a integer number from the data stream to the data structure.
- `double findMedian()`: Return the median of all elements so far.
"""
# Your MedianFinder object will be instantiated and called as s... | 29.897959 | 90 | 0.595222 |
a7cab894219f6b6cb8d8b7237bfbc980ae9c6023 | 1,089 | py | Python | openproblems/data/human_blood_nestorowa2016.py | bendemeo/SingleCellOpenProblems | e4c009f8c232bdae4c9e20b8e435d0fe474b3daf | [
"MIT"
] | 134 | 2020-08-19T07:35:56.000Z | 2021-05-19T11:37:50.000Z | openproblems/data/human_blood_nestorowa2016.py | bendemeo/SingleCellOpenProblems | e4c009f8c232bdae4c9e20b8e435d0fe474b3daf | [
"MIT"
] | 175 | 2020-08-17T15:26:06.000Z | 2021-05-14T11:03:46.000Z | openproblems/data/human_blood_nestorowa2016.py | LuckyMD/SingleCellOpenProblems | 0ae39db494557e1dd9f28e59dda765527191eee1 | [
"MIT"
] | 46 | 2020-10-08T21:11:37.000Z | 2021-04-25T07:05:28.000Z | from . import utils
import os
import scanpy as sc
import scprep
import tempfile
URL = "https://ndownloader.figshare.com/files/25555751"
| 27.225 | 78 | 0.663912 |
a7cb29cc32a2319fccf961ffb48796199a5ff0d3 | 1,110 | py | Python | jskparser/ast/stmt/ifstmt.py | natebragg/java-sketch | f5ac26f2cc46ae4556f9a61c55afd37f55c961ff | [
"MIT"
] | 15 | 2015-12-15T18:33:50.000Z | 2021-09-29T11:48:54.000Z | jskparser/ast/stmt/ifstmt.py | natebragg/java-sketch | f5ac26f2cc46ae4556f9a61c55afd37f55c961ff | [
"MIT"
] | 11 | 2015-11-16T22:14:58.000Z | 2021-09-23T05:28:40.000Z | jskparser/ast/stmt/ifstmt.py | natebragg/java-sketch | f5ac26f2cc46ae4556f9a61c55afd37f55c961ff | [
"MIT"
] | 8 | 2015-11-16T21:50:08.000Z | 2021-03-23T15:15:34.000Z | #!/usr/bin/env python
from .statement import Statement
from . import _import
| 27.75 | 74 | 0.621622 |
a7cb442e6c3a091d70b52f85f03d36c21282e2fd | 8,501 | py | Python | stdpages/profiling.py | nhartland/dashengine | 7e9f68f0fb1c447fa438eb18b2430cd9095ab17a | [
"MIT"
] | 12 | 2020-02-06T02:55:32.000Z | 2021-11-08T13:50:42.000Z | stdpages/profiling.py | nhartland/dashengine | 7e9f68f0fb1c447fa438eb18b2430cd9095ab17a | [
"MIT"
] | 1 | 2020-01-31T10:20:51.000Z | 2020-01-31T10:20:51.000Z | stdpages/profiling.py | nhartland/dashengine | 7e9f68f0fb1c447fa438eb18b2430cd9095ab17a | [
"MIT"
] | 2 | 2020-06-19T01:35:11.000Z | 2021-06-07T09:01:18.000Z | """ Page for the monitoring of query performance characteristics. """
import json
# Plotly
import plotly.graph_objs as go
# Dash
import dash_table as dt
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
# DashEngine
from dashengine.dashapp import dasha... | 33.337255 | 95 | 0.606399 |
a7cd3abce5d928c3da35821e7b78b76d44e1ec29 | 2,465 | py | Python | trial_inputs_pb2.py | adeandrade/bayesian-optimizer | 30427943d69130179f7ccb32f63a08a1c57462f8 | [
"Apache-2.0"
] | null | null | null | trial_inputs_pb2.py | adeandrade/bayesian-optimizer | 30427943d69130179f7ccb32f63a08a1c57462f8 | [
"Apache-2.0"
] | null | null | null | trial_inputs_pb2.py | adeandrade/bayesian-optimizer | 30427943d69130179f7ccb32f63a08a1c57462f8 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: trial_inputs.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _... | 32.012987 | 196 | 0.76146 |
a7cdd2df8475207fb1659d9d8f61d9efb7105a47 | 22,348 | py | Python | neutron_plugin_contrail/plugins/opencontrail/vnc_client/router_res_handler.py | alexelshamouty/tf-neutron-plugin | 3effc5e80f3fa0d8d0252d5f994a36386b987f7f | [
"Apache-2.0"
] | 3 | 2021-09-07T05:02:24.000Z | 2022-02-11T04:25:43.000Z | neutron_plugin_contrail/plugins/opencontrail/vnc_client/router_res_handler.py | alexelshamouty/tf-neutron-plugin | 3effc5e80f3fa0d8d0252d5f994a36386b987f7f | [
"Apache-2.0"
] | 1 | 2021-09-27T08:05:08.000Z | 2021-09-27T08:05:08.000Z | neutron_plugin_contrail/plugins/opencontrail/vnc_client/router_res_handler.py | alexelshamouty/tf-neutron-plugin | 3effc5e80f3fa0d8d0252d5f994a36386b987f7f | [
"Apache-2.0"
] | 5 | 2020-07-14T07:52:05.000Z | 2022-03-24T15:08:02.000Z | # Copyright 2015. 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 la... | 43.05973 | 113 | 0.593297 |
a7d11260063260bb345e5b5925deed0ee559e5c2 | 725 | py | Python | ffmpeg-3.2.5/tools/zmqshell.py | huyu0415/FFmpeg | 7a3f75791cb3255805bf17126d4074a328f46c8c | [
"Apache-2.0"
] | 3,645 | 2016-08-25T09:31:17.000Z | 2022-03-25T06:28:34.000Z | ffmpeg-3.2.5/tools/zmqshell.py | huyu0415/FFmpeg | 7a3f75791cb3255805bf17126d4074a328f46c8c | [
"Apache-2.0"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | ffmpeg-3.2.5/tools/zmqshell.py | huyu0415/FFmpeg | 7a3f75791cb3255805bf17126d4074a328f46c8c | [
"Apache-2.0"
] | 764 | 2016-08-26T09:19:00.000Z | 2022-03-22T12:07:16.000Z | #!/usr/bin/env python2
import sys, zmq, cmd
try:
bind_address = sys.argv[1] if len(sys.argv) > 1 else "tcp://localhost:5555"
LavfiCmd(bind_address).cmdloop('FFmpeg libavfilter interactive shell')
except KeyboardInterrupt:
pass
| 26.851852 | 79 | 0.627586 |
a7d18ac67c2f08b3162719b80096d5cd8f93412f | 984 | py | Python | minidoc/minidoc.py | ihgazni2/minidoc | b2859069bad5e718692b57d5498389473c66bd2e | [
"MIT"
] | null | null | null | minidoc/minidoc.py | ihgazni2/minidoc | b2859069bad5e718692b57d5498389473c66bd2e | [
"MIT"
] | null | null | null | minidoc/minidoc.py | ihgazni2/minidoc | b2859069bad5e718692b57d5498389473c66bd2e | [
"MIT"
] | null | null | null | from minidoc import svg
from minidoc import tst
from efdir import fs
import shutil
import os
#still_frames
#rownums
#colnums
####
####
| 20.081633 | 55 | 0.602642 |
a7d2785f99402cef40bc5312be1781d2a6eaf683 | 3,843 | py | Python | qinhaifang/src/evalTools/script/convert_label_map_to_geojson.py | SpaceNetChallenge/BuildingFootprintDetectors | 3def3c44b5847c744cd2f3356182892d92496579 | [
"Apache-2.0"
] | 161 | 2017-02-03T05:33:01.000Z | 2022-03-31T02:11:21.000Z | qinhaifang/src/evalTools/script/convert_label_map_to_geojson.py | SpaceNetChallenge/BuildingFootprintDetectors | 3def3c44b5847c744cd2f3356182892d92496579 | [
"Apache-2.0"
] | 5 | 2017-02-03T05:51:38.000Z | 2019-06-18T18:54:00.000Z | qinhaifang/src/evalTools/script/convert_label_map_to_geojson.py | SpaceNetChallenge/BuildingFootprintDetectors | 3def3c44b5847c744cd2f3356182892d92496579 | [
"Apache-2.0"
] | 76 | 2017-03-23T23:15:46.000Z | 2022-02-10T21:58:18.000Z | #!/usr/bin/env python
# encoding=gbk
"""
Convert mask to geojson format
"""
import os
import os.path
import re
import logging
import logging.config
from multiprocessing import Pool
import skimage.io as sk
import numpy as np
import scipy.io as sio
import setting
from spaceNet import geoTools as gT
import spaceNet.ima... | 40.03125 | 118 | 0.674993 |
a7d285c6e1ae9ac1ca025fdba430e5dba345f5fd | 412 | py | Python | core/migrations/0008_touristspot_photo.py | isnardsilva/django-attractions-api | feade087d840b72b603d2a4bf538b8c362aa91bd | [
"MIT"
] | 1 | 2021-12-31T12:59:49.000Z | 2021-12-31T12:59:49.000Z | core/migrations/0008_touristspot_photo.py | isnardsilva/django-attractions-api | feade087d840b72b603d2a4bf538b8c362aa91bd | [
"MIT"
] | null | null | null | core/migrations/0008_touristspot_photo.py | isnardsilva/django-attractions-api | feade087d840b72b603d2a4bf538b8c362aa91bd | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-19 03:55
from django.db import migrations, models
| 21.684211 | 77 | 0.604369 |
a7d331c87b462d04d58d991edd7603c1f1659a3c | 712 | py | Python | tests/integration/test_user_invite.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | 15 | 2020-07-09T20:51:09.000Z | 2021-11-28T21:59:02.000Z | tests/integration/test_user_invite.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | 148 | 2020-03-28T22:10:30.000Z | 2021-12-19T09:22:59.000Z | tests/integration/test_user_invite.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | 30 | 2020-03-12T02:31:27.000Z | 2021-07-29T02:40:36.000Z | import pytest
from models.user import RoleEnum
from unittest.mock import patch
from resources.email import Email
| 30.956522 | 84 | 0.695225 |
a7d350ee5dfc4cbea31fc30d8d13f43745b214cc | 778 | py | Python | setup.py | Louis-Navarro/decorators | 6339a32aae66608cbf7fd8a1221b47ae88992d53 | [
"MIT"
] | null | null | null | setup.py | Louis-Navarro/decorators | 6339a32aae66608cbf7fd8a1221b47ae88992d53 | [
"MIT"
] | null | null | null | setup.py | Louis-Navarro/decorators | 6339a32aae66608cbf7fd8a1221b47ae88992d53 | [
"MIT"
] | null | null | null | import setuptools
from decorators.__init__ import __version__ as v
with open('README.md') as fp:
long_description = fp.read()
setuptools.setup(
name='decorators-LOUIS-NAVARRO',
version=v,
author='Louis Navarro',
description='Function decorators I made',
long_description=long_description,
l... | 29.923077 | 54 | 0.669666 |
a7d4fbe6bb2f93758e5bbd91a20e5e655a876720 | 7,386 | py | Python | test_undirect_graf.py | rodrigondec/Grafos | dd3bb7ffd56909395cc211c6d68f9e3eaa5fa9ba | [
"Unlicense"
] | null | null | null | test_undirect_graf.py | rodrigondec/Grafos | dd3bb7ffd56909395cc211c6d68f9e3eaa5fa9ba | [
"Unlicense"
] | null | null | null | test_undirect_graf.py | rodrigondec/Grafos | dd3bb7ffd56909395cc211c6d68f9e3eaa5fa9ba | [
"Unlicense"
] | null | null | null | from grafo import Grafo, DiGrafo
from no import No
from aresta import Aresta
import unittest
if __name__ == '__main__':
unittest.main() | 29.544 | 58 | 0.716084 |
a7d69ea8dc41116a3648dee50adba54f390698c0 | 2,476 | py | Python | fancy/config/option.py | susautw/fancy-config | 25a3bd51a40df071d00327640caa05b6288bd970 | [
"MIT"
] | 1 | 2022-03-17T04:47:52.000Z | 2022-03-17T04:47:52.000Z | fancy/config/option.py | susautw/fancy-config | 25a3bd51a40df071d00327640caa05b6288bd970 | [
"MIT"
] | 9 | 2021-12-01T08:01:52.000Z | 2022-03-16T13:05:07.000Z | fancy/config/option.py | susautw/fancy-config | 25a3bd51a40df071d00327640caa05b6288bd970 | [
"MIT"
] | 1 | 2022-03-07T09:29:06.000Z | 2022-03-07T09:29:06.000Z | import warnings
from typing import Any, Callable, TYPE_CHECKING
from . import ConfigStructure
from .process import auto_process_typ
from ..config import identical
if TYPE_CHECKING:
from ..config import BaseConfig
| 26.913043 | 96 | 0.631664 |
a7d7e86babb70ea3a37edccf05c803e8419f09d7 | 7,128 | py | Python | data_loader_manual.py | Chen-Yifan/DEM_building_segmentation | 1e9a41e87ec0ab1777a65146c5b31d88938480b7 | [
"MIT"
] | null | null | null | data_loader_manual.py | Chen-Yifan/DEM_building_segmentation | 1e9a41e87ec0ab1777a65146c5b31d88938480b7 | [
"MIT"
] | null | null | null | data_loader_manual.py | Chen-Yifan/DEM_building_segmentation | 1e9a41e87ec0ab1777a65146c5b31d88938480b7 | [
"MIT"
] | null | null | null | from PIL import Image
import numpy as np
import os
import re
import scipy.misc
import random
import sys
import csv
def load_feature_data(dataroot, frame_dir, mask_dir, feature_type='erosion', dim=128):
'''load frames and masks into two numpy array respectively
-----
condition: with featur... | 40.271186 | 157 | 0.571409 |
a7d7fa784412398969563696b9937bee43c267bd | 5,010 | py | Python | autotest/osr/osr_micoordsys.py | robe2/gdal | 78573efe69f1506c112209501068c0b043438295 | [
"MIT"
] | null | null | null | autotest/osr/osr_micoordsys.py | robe2/gdal | 78573efe69f1506c112209501068c0b043438295 | [
"MIT"
] | null | null | null | autotest/osr/osr_micoordsys.py | robe2/gdal | 78573efe69f1506c112209501068c0b043438295 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL/OGR Test Suite
# Purpose: Test some MITAB specific translation issues.
# Author: Even Rouault, <even dot rouault at mines dash paris dot org>
#
#############################################... | 36.838235 | 138 | 0.644311 |
a7d8ff63a50736d94af9bb52ce5984969f4467d7 | 2,194 | py | Python | maintain.py | keioni/ink_01 | 5c87dcf16924dfa7bf9d0e3a7250ec1542045e72 | [
"MIT"
] | null | null | null | maintain.py | keioni/ink_01 | 5c87dcf16924dfa7bf9d0e3a7250ec1542045e72 | [
"MIT"
] | null | null | null | maintain.py | keioni/ink_01 | 5c87dcf16924dfa7bf9d0e3a7250ec1542045e72 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import json
from ink.maintainer import make_pickle, DatabaseMaintainer
from ink.sys.config import CONF
from ink.sys.database.connector.mysql import MySQLConnector
from ink.sys.database.connector.null import NullConnector
CONF.load()
cmd = sys.argv[1]
a... | 23.094737 | 70 | 0.635369 |
a7da1b3b72d6032aefdb12dd63739b250c1938d8 | 5,261 | py | Python | serpentmonkee/UtilsMonkee.py | anthromorphic-ai/serpentmonkee | 505bbe03fd8a77bc7737e46b8e27e0d91b87835b | [
"MIT"
] | null | null | null | serpentmonkee/UtilsMonkee.py | anthromorphic-ai/serpentmonkee | 505bbe03fd8a77bc7737e46b8e27e0d91b87835b | [
"MIT"
] | null | null | null | serpentmonkee/UtilsMonkee.py | anthromorphic-ai/serpentmonkee | 505bbe03fd8a77bc7737e46b8e27e0d91b87835b | [
"MIT"
] | null | null | null |
import requests
from dateutil import parser
import json
from datetime import datetime, timezone
import time
import sys
import random
import uuid
import copy
# --------------------------------------------------------------------
def call_cloud_function(url, headers, data):
"""
Calls the cloud function at ... | 27.984043 | 104 | 0.553317 |
a7dac603aaf8f14d5ec261bf9ee335b205d9767b | 201 | py | Python | backend/app/bucket.py | thanet-s/subme-selected-topics-project | fac1630839c580bbd66b93f2dc9004c8637a7b15 | [
"MIT"
] | null | null | null | backend/app/bucket.py | thanet-s/subme-selected-topics-project | fac1630839c580bbd66b93f2dc9004c8637a7b15 | [
"MIT"
] | null | null | null | backend/app/bucket.py | thanet-s/subme-selected-topics-project | fac1630839c580bbd66b93f2dc9004c8637a7b15 | [
"MIT"
] | null | null | null | from minio import Minio
import os
minio_client = Minio(
os.environ['MINIO_HOST'],
access_key=os.environ['MINIO_ROOT_USER'],
secret_key=os.environ['MINIO_ROOT_PASSWORD'],
secure=False
) | 22.333333 | 49 | 0.731343 |
a7db0d9490bcb10d7f38e66a3fcc8a697cd073d0 | 2,642 | py | Python | publications/PrADA/experiments/income_census/train_config.py | UMDataScienceLab/research | 279ee21444817903cb9ef9dc9d9583a502865336 | [
"Apache-2.0"
] | 49 | 2020-11-04T03:15:59.000Z | 2022-03-23T12:21:15.000Z | publications/PrADA/experiments/income_census/train_config.py | UMDataScienceLab/research | 279ee21444817903cb9ef9dc9d9583a502865336 | [
"Apache-2.0"
] | 2 | 2021-09-12T02:36:42.000Z | 2021-11-25T13:19:58.000Z | publications/PrADA/experiments/income_census/train_config.py | UMDataScienceLab/research | 279ee21444817903cb9ef9dc9d9583a502865336 | [
"Apache-2.0"
] | 11 | 2020-11-11T12:14:49.000Z | 2022-03-08T16:17:05.000Z | from data_process.census_process.census_data_creation_config import census_data_creation
fg_feature_extractor_architecture_list = [[28, 56, 28, 14],
[25, 50, 25, 12],
[56, 86, 56, 18],
[27, 54,... | 38.289855 | 92 | 0.608251 |
a7dbae6b6e0c89662cba5d9864585c9b7e89ef3a | 444 | py | Python | tools/create_transmit_grouped_command_cron.py | Vayel/GUCEM-BVC | e5645dec332756d3c9db083abf2c8f3625a10d4d | [
"WTFPL"
] | 2 | 2016-09-23T18:02:40.000Z | 2017-04-28T18:35:59.000Z | tools/create_transmit_grouped_command_cron.py | Vayel/GUCEM-BVC | e5645dec332756d3c9db083abf2c8f3625a10d4d | [
"WTFPL"
] | 82 | 2016-09-26T14:38:31.000Z | 2018-02-12T18:47:12.000Z | tools/create_transmit_grouped_command_cron.py | Vayel/GUCEM-BVC | e5645dec332756d3c9db083abf2c8f3625a10d4d | [
"WTFPL"
] | null | null | null | import os
from cron_helper import create
JOB_COMMENT = 'BVC transmit grouped command reminder'
HERE = os.path.dirname(os.path.abspath(__file__))
if __name__ == '__main__':
create(create_job, JOB_COMMENT)
| 21.142857 | 82 | 0.684685 |
a7ddce06c356fe1ffbf7a25faa291f2561e6dd85 | 2,157 | py | Python | network/plot_along_subunits.py | AspirinCode/MD-analysis-tools-scripts | dfc0d282c9a844f5b8b1935a3ae74b1aff577ff9 | [
"MIT"
] | 5 | 2020-01-29T01:01:54.000Z | 2022-02-11T09:19:20.000Z | network/plot_along_subunits.py | AspirinCode/MD-analysis-tools-scripts | dfc0d282c9a844f5b8b1935a3ae74b1aff577ff9 | [
"MIT"
] | null | null | null | network/plot_along_subunits.py | AspirinCode/MD-analysis-tools-scripts | dfc0d282c9a844f5b8b1935a3ae74b1aff577ff9 | [
"MIT"
] | null | null | null | import pickle
import numpy as np
import matplotlib.pyplot as plt
i = 1
fig = plt.figure(figsize=(30,30))
for pickle_file in pickle_list:
c_B = pickle.load(open(pickle_file, "rb"))
#plot_c_B(c_B, f"bet_centrality_with_{pickle_file[19:-4]}.png")
ax = fig.add_subplot(5,1,i)
#label = figname[-6:-4].upper... | 31.26087 | 88 | 0.51414 |
38eb4d628bf96b1cec0ba5a9060d8732e87f164b | 276 | py | Python | runme.py | AndreWohnsland/Cocktailmaker_AW | 30efdcb85d7fb58ac2980c873c611d7b9c2b37b1 | [
"MIT"
] | 37 | 2019-07-06T11:54:08.000Z | 2022-01-21T12:26:16.000Z | runme.py | AndreWohnsland/Cocktailmaker_AW | 30efdcb85d7fb58ac2980c873c611d7b9c2b37b1 | [
"MIT"
] | 5 | 2019-12-09T07:44:08.000Z | 2022-02-01T12:00:24.000Z | runme.py | AndreWohnsland/Cocktailmaker_AW | 30efdcb85d7fb58ac2980c873c611d7b9c2b37b1 | [
"MIT"
] | 4 | 2019-07-06T12:45:01.000Z | 2021-12-29T17:09:44.000Z | import sys
from PyQt5.QtWidgets import QApplication
import src_ui.setup_mainwindow as setupui
if __name__ == "__main__":
app = QApplication(sys.argv)
w = setupui.MainScreen()
w.showFullScreen()
w.setFixedSize(800, 480)
sys.exit(app.exec_())
| 21.230769 | 42 | 0.684783 |
38ec2565ef6e55d70bfb76a776cd7b6192708820 | 8,271 | py | Python | src/ellalgo/ell_stable.py | luk036/ellalgo | 8e83587b271f35c906c0d0aa4175dac153e5e29b | [
"MIT"
] | null | null | null | src/ellalgo/ell_stable.py | luk036/ellalgo | 8e83587b271f35c906c0d0aa4175dac153e5e29b | [
"MIT"
] | null | null | null | src/ellalgo/ell_stable.py | luk036/ellalgo | 8e83587b271f35c906c0d0aa4175dac153e5e29b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import math
from typing import Tuple, Union
import numpy as np
from .cutting_plane import CUTStatus
Arr = Union[np.ndarray]
def _calc_ll(self, beta) -> CUTStatus:
"""parallel or deep cut
Arguments:
beta ([type]): [description]
Returns:
i... | 28.42268 | 82 | 0.489784 |
38ec28f788cf955ae54138334251cf48eba69a0b | 855 | py | Python | app/auth/forms.py | PhysicsUofRAUI/lifeLongLearning | 36e098d4319d3500509861454fa3e27a67416802 | [
"MIT"
] | null | null | null | app/auth/forms.py | PhysicsUofRAUI/lifeLongLearning | 36e098d4319d3500509861454fa3e27a67416802 | [
"MIT"
] | 38 | 2020-06-09T00:07:09.000Z | 2021-02-06T17:18:20.000Z | app/auth/forms.py | PhysicsUofRAUI/lifeLongLearning | 36e098d4319d3500509861454fa3e27a67416802 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import PasswordField, StringField, SubmitField
from wtforms.validators import DataRequired
#
# Purpose: This from will be used to collect the information for the user logging
# and logging out.
#
# Fields:
# Password: The password to validate the user
# Username... | 32.884615 | 85 | 0.71462 |
38ec8de985f6a5e8fed887f162aa2455ff186416 | 1,365 | py | Python | netmiko/f5/f5_tmsh_ssh.py | josephwhite13/netmiko | c08c5ebb3484383f034e22b9576f88be07525f72 | [
"MIT"
] | 1 | 2021-04-13T19:18:57.000Z | 2021-04-13T19:18:57.000Z | netmiko/f5/f5_tmsh_ssh.py | josephwhite13/netmiko | c08c5ebb3484383f034e22b9576f88be07525f72 | [
"MIT"
] | null | null | null | netmiko/f5/f5_tmsh_ssh.py | josephwhite13/netmiko | c08c5ebb3484383f034e22b9576f88be07525f72 | [
"MIT"
] | null | null | null | import time
from netmiko.base_connection import BaseConnection
| 33.292683 | 78 | 0.641026 |
38eda790aa9bd3615e42c068cced417ca94aa56a | 2,099 | py | Python | tools/database_tool.py | noahzhy/qumaishou | f776e5c750b350ca3b741fccf3e5dfd199c1296b | [
"Apache-2.0"
] | null | null | null | tools/database_tool.py | noahzhy/qumaishou | f776e5c750b350ca3b741fccf3e5dfd199c1296b | [
"Apache-2.0"
] | null | null | null | tools/database_tool.py | noahzhy/qumaishou | f776e5c750b350ca3b741fccf3e5dfd199c1296b | [
"Apache-2.0"
] | null | null | null | import os
import pandas as pd
import sys
import glob
#
sys.path.append("./")
db_dir_path = 'database'
def intersection_db_brand():
''''''
d1 = pd.read_csv(os.path.join(db_dir_path, 'db_brand_eng.csv'))
d2 = pd.read_csv(os.path.join(db_dir_path, 'db_brand_chn.csv'))
df = pd.merge(d1, d2, how='l... | 23.852273 | 92 | 0.666508 |
38ef272433c8c121f27894e2882710bf38e90294 | 1,331 | py | Python | flika/tests/test_settings.py | flika-org/flika | 68b87e8f75f77f4b59344e418c7783b24184adaa | [
"MIT"
] | 19 | 2016-08-11T21:17:17.000Z | 2021-04-30T19:21:03.000Z | flika/tests/test_settings.py | flika-org/flika | 68b87e8f75f77f4b59344e418c7783b24184adaa | [
"MIT"
] | 28 | 2017-03-15T18:40:33.000Z | 2021-06-01T20:35:50.000Z | flika/tests/test_settings.py | flika-org/flika | 68b87e8f75f77f4b59344e418c7783b24184adaa | [
"MIT"
] | 2 | 2019-03-08T18:51:12.000Z | 2019-05-05T16:31:15.000Z | from .. import global_vars as g
from ..window import Window
import numpy as np
from ..roi import makeROI
| 34.128205 | 139 | 0.661908 |
38f003c85d91841bc389c08c6a91fa5429cad832 | 40,888 | py | Python | tests/test_runner.py | varunvarma/panoptes | 733e1b17e01d47fe0a399e2fe635f614cc5a0b88 | [
"Apache-2.0"
] | null | null | null | tests/test_runner.py | varunvarma/panoptes | 733e1b17e01d47fe0a399e2fe635f614cc5a0b88 | [
"Apache-2.0"
] | null | null | null | tests/test_runner.py | varunvarma/panoptes | 733e1b17e01d47fe0a399e2fe635f614cc5a0b88 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2018, Oath Inc.
Licensed under the terms of the Apache 2.0 license. See LICENSE file in project root for terms.
"""
import re
import unittest
from mock import patch, MagicMock, Mock, PropertyMock
from testfixtures import LogCapture
from yahoo_panoptes.framework.plugins.panoptes_base_plugin import Panopt... | 60.574815 | 123 | 0.531183 |
38f0f18dc070774e4c59dd082f508779d0e46e34 | 940 | py | Python | root/tpd_near_trainstops_per_line.py | transitanalystisarel/TransitAnalystIsrael | 341de9272b352c18333ff136a00de0b97cd82216 | [
"MIT"
] | null | null | null | root/tpd_near_trainstops_per_line.py | transitanalystisarel/TransitAnalystIsrael | 341de9272b352c18333ff136a00de0b97cd82216 | [
"MIT"
] | null | null | null | root/tpd_near_trainstops_per_line.py | transitanalystisarel/TransitAnalystIsrael | 341de9272b352c18333ff136a00de0b97cd82216 | [
"MIT"
] | 3 | 2019-05-08T04:36:03.000Z | 2020-11-23T19:46:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# collect a set of trip_id s at all stops in a GTFS file over the selected week of the service period starting at serviceweekstartdate
# filter stops near trainstations based on input txt file - stopsneartrainstop_post_edit
# merge sets of trips at stops near each trainst... | 40.869565 | 134 | 0.811702 |
38f18e910ceb0b6a8c30ade6eeea28431583e6f1 | 5,252 | py | Python | merlin/modules/normalization.py | ethereon/merlin | 0babfed51e65197086d74479a1ca9150259b4f7f | [
"BSD-3-Clause"
] | 1 | 2019-08-15T16:22:20.000Z | 2019-08-15T16:22:20.000Z | merlin/modules/normalization.py | ethereon/merlin | 0babfed51e65197086d74479a1ca9150259b4f7f | [
"BSD-3-Clause"
] | null | null | null | merlin/modules/normalization.py | ethereon/merlin | 0babfed51e65197086d74479a1ca9150259b4f7f | [
"BSD-3-Clause"
] | null | null | null | from typing import Callable, Optional, Union
import tensorflow as tf
from merlin.initializers import Init
from merlin.modules.keras import KerasAdapter
from merlin.shape import Axis
from merlin.spec import DynamicSpec, Spec
| 41.354331 | 83 | 0.653465 |
38f2cb2b1272511384ed4a1d9e959be7afec0fff | 3,095 | py | Python | Plots/Bar/NCL_bar_2.py | learn2free/GeoCAT-examples | 3ac152a767e78a362a8ebb6f677005f3de320ca6 | [
"Apache-2.0"
] | 1 | 2021-05-09T02:54:10.000Z | 2021-05-09T02:54:10.000Z | Plots/Bar/NCL_bar_2.py | learn2free/GeoCAT-examples | 3ac152a767e78a362a8ebb6f677005f3de320ca6 | [
"Apache-2.0"
] | null | null | null | Plots/Bar/NCL_bar_2.py | learn2free/GeoCAT-examples | 3ac152a767e78a362a8ebb6f677005f3de320ca6 | [
"Apache-2.0"
] | null | null | null | """
NCL_bar_2.py
===============
This script illustrates the following concepts:
- Drawing bars instead of curves in an XY plot
- Changing the aspect ratio of a bar plot
- Drawing filled bars up or down based on a Y reference value
- Setting the minimum/maximum value of the Y axis in a bar plot
- Using n... | 37.289157 | 84 | 0.577383 |
38f35744d4413bb5e881ac526e9d7f661c57bec0 | 5,248 | py | Python | gabbi/tests/test_driver.py | scottwallacesh/gabbi | 5e76332ac06cd075c11477b384ad5da1d2eaa9d5 | [
"Apache-2.0"
] | 145 | 2015-01-16T23:19:35.000Z | 2022-03-15T00:21:54.000Z | gabbi/tests/test_driver.py | scottwallacesh/gabbi | 5e76332ac06cd075c11477b384ad5da1d2eaa9d5 | [
"Apache-2.0"
] | 250 | 2015-01-02T11:20:06.000Z | 2022-03-22T19:55:18.000Z | gabbi/tests/test_driver.py | scottwallacesh/gabbi | 5e76332ac06cd075c11477b384ad5da1d2eaa9d5 | [
"Apache-2.0"
] | 49 | 2015-01-14T16:14:52.000Z | 2022-03-21T11:37:26.000Z | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under... | 44.10084 | 75 | 0.598895 |
38f399316a049f820f54f6ac2696a2ab3406ec0f | 4,779 | py | Python | mindspore/ops/operations/_inner_ops.py | ZephyrChenzf/mindspore | 8f191847cf71e12715ced96bc3575914f980127a | [
"Apache-2.0"
] | null | null | null | mindspore/ops/operations/_inner_ops.py | ZephyrChenzf/mindspore | 8f191847cf71e12715ced96bc3575914f980127a | [
"Apache-2.0"
] | null | null | null | mindspore/ops/operations/_inner_ops.py | ZephyrChenzf/mindspore | 8f191847cf71e12715ced96bc3575914f980127a | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 48.272727 | 120 | 0.623352 |
38f39bc63224a405d7dddb6afc4bd67e4b1fcae8 | 434 | py | Python | migrations/versions/7f447c94347a_.py | tipabu/jazzband-website | 30102e87348924eb56b610e74609a3475d3a14de | [
"MIT"
] | null | null | null | migrations/versions/7f447c94347a_.py | tipabu/jazzband-website | 30102e87348924eb56b610e74609a3475d3a14de | [
"MIT"
] | null | null | null | migrations/versions/7f447c94347a_.py | tipabu/jazzband-website | 30102e87348924eb56b610e74609a3475d3a14de | [
"MIT"
] | null | null | null | """
Revision ID: 7f447c94347a
Revises: a78f4b5d7dee
Create Date: 2017-11-17 14:59:36.177805
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "7f447c94347a"
down_revision = "a78f4b5d7dee"
| 18.083333 | 80 | 0.714286 |
38f4002d6f513a5cbe6493011e435271c5396522 | 5,308 | py | Python | abcvoting/preferences.py | pbatko/abcvoting | 55a8e7e23e35a3620921e3f5426a09925e83640e | [
"MIT"
] | null | null | null | abcvoting/preferences.py | pbatko/abcvoting | 55a8e7e23e35a3620921e3f5426a09925e83640e | [
"MIT"
] | null | null | null | abcvoting/preferences.py | pbatko/abcvoting | 55a8e7e23e35a3620921e3f5426a09925e83640e | [
"MIT"
] | null | null | null | """
Dichotomous (approval) preferences and preference profiles
Voters are indexed by 0, ..., len(profile)
Candidates are indexed by 0, ..., profile.num_cand
"""
from abcvoting.misc import str_candset
from collections import OrderedDict
| 35.152318 | 75 | 0.527882 |
38f53f3c9f560f0765e57f3e8c5f7abb2dffb240 | 1,035 | py | Python | java/create_solution.py | hermantai/kata | 1b1d7af2f46bca994bede3f8a937dff96015e415 | [
"Apache-2.0"
] | null | null | null | java/create_solution.py | hermantai/kata | 1b1d7af2f46bca994bede3f8a937dff96015e415 | [
"Apache-2.0"
] | null | null | null | java/create_solution.py | hermantai/kata | 1b1d7af2f46bca994bede3f8a937dff96015e415 | [
"Apache-2.0"
] | null | null | null | import os
import sys
templ = """package kata;
import static kata.Printer.*;
import java.util.*;
/**
* Cracking the coding interview 6th ed. p.XX(TODO)
*/
public class %(classname)s {
static int %(methodname)s(String str) {
return 0;
}
public static void main(String args[]) {
runSample("abcabcdd");
... | 19.903846 | 76 | 0.575845 |
38f5e5531d57aca7c42b9394241ccc224319e068 | 310 | py | Python | tests/unit/helpers_test/test_password.py | alefeans/flask-base | e3daa4ce1020ba3711908c3ba5ef88b0cc599dfe | [
"MIT"
] | 11 | 2019-10-03T18:47:49.000Z | 2022-02-01T10:42:02.000Z | tests/unit/helpers_test/test_password.py | alefeans/flask-base | e3daa4ce1020ba3711908c3ba5ef88b0cc599dfe | [
"MIT"
] | null | null | null | tests/unit/helpers_test/test_password.py | alefeans/flask-base | e3daa4ce1020ba3711908c3ba5ef88b0cc599dfe | [
"MIT"
] | 8 | 2019-10-03T18:47:53.000Z | 2021-06-07T14:47:51.000Z | import pytest
from app.helpers import check_password, encrypt_password
| 23.846154 | 69 | 0.745161 |
38f71f66b4d3452d83d78d02e5968d474fc84f07 | 1,717 | py | Python | tests/output/test_pdf_to_png.py | ynikitenko/lena | d0fbae47f21007685edbd4e77bc91413421bebd1 | [
"Apache-2.0"
] | 4 | 2020-03-01T14:01:48.000Z | 2021-02-23T19:33:36.000Z | tests/output/test_pdf_to_png.py | ynikitenko/lena | d0fbae47f21007685edbd4e77bc91413421bebd1 | [
"Apache-2.0"
] | 1 | 2021-05-09T15:47:17.000Z | 2021-05-09T16:12:03.000Z | tests/output/test_pdf_to_png.py | ynikitenko/lena | d0fbae47f21007685edbd4e77bc91413421bebd1 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import os
import pytest
import subprocess
import sys
import lena.core
from lena.output import PDFToPNG
| 35.040816 | 86 | 0.608037 |
38f9a10a36632913442b3f03652d751ae087dae5 | 4,162 | py | Python | third_party/maya/lib/usdMaya/testenv/testUsdExportSkeleton.py | navefx/YuksUSD | 56c2e1def36ee07121f4ecb349c1626472b3c338 | [
"AML"
] | 6 | 2018-08-26T13:27:22.000Z | 2021-08-14T23:57:38.000Z | third_party/maya/lib/usdMaya/testenv/testUsdExportSkeleton.py | navefx/YuksUSD | 56c2e1def36ee07121f4ecb349c1626472b3c338 | [
"AML"
] | 1 | 2021-08-14T23:57:51.000Z | 2021-08-14T23:57:51.000Z | third_party/maya/lib/usdMaya/testenv/testUsdExportSkeleton.py | navefx/YuksUSD | 56c2e1def36ee07121f4ecb349c1626472b3c338 | [
"AML"
] | 4 | 2018-06-14T18:14:59.000Z | 2021-09-13T22:20:50.000Z | #!/pxrpythonsubst
#
# Copyright 2018 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and replaced with:
#
... | 34.683333 | 77 | 0.645603 |