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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf09fa6ef4f4a3fb801b920743bebb3502eaa28b | 2,320 | py | Python | mp/plot_process.py | RawPikachu/valor | 02e1eb0e599904d3f0c49b52534fcb6c3762951d | [
"MIT"
] | null | null | null | mp/plot_process.py | RawPikachu/valor | 02e1eb0e599904d3f0c49b52534fcb6c3762951d | [
"MIT"
] | null | null | null | mp/plot_process.py | RawPikachu/valor | 02e1eb0e599904d3f0c49b52534fcb6c3762951d | [
"MIT"
] | null | null | null | from sql import ValorSQL
from util import guild_name_from_tag
import matplotlib.pyplot as plt
import matplotlib.dates as md
from scipy.interpolate import make_interp_spline
from matplotlib.ticker import MaxNLocator
import numpy as np
from datetime import datetime
import time
| 25.494505 | 96 | 0.551293 |
cf0d0e8e618571c35cece51daafa83cd4f90bede | 47,627 | py | Python | bot.py | SHIA1204/kyaru | c76a5df7c26fb30136ac473bd3f1ca90a2b65739 | [
"Apache-2.0"
] | null | null | null | bot.py | SHIA1204/kyaru | c76a5df7c26fb30136ac473bd3f1ca90a2b65739 | [
"Apache-2.0"
] | null | null | null | bot.py | SHIA1204/kyaru | c76a5df7c26fb30136ac473bd3f1ca90a2b65739 | [
"Apache-2.0"
] | null | null | null | import os
import shutil
from os import system
import discord
import asyncio
import os.path
import linecache
import datetime
import urllib
import requests
from bs4 import BeautifulSoup
from discord.utils import get
from discord.ext import commands
from discord.ext.commands import CommandNotFound
import logging
imp... | 43.140399 | 374 | 0.659752 |
cf0d1e9a030a45715261e6af31490bcb4b8a55b2 | 3,361 | py | Python | tapioca_disqus/resource_mapping/forums.py | marctc/tapioca-disqus | a397d21ad1b6c69f7691015338e491d106e58da4 | [
"MIT"
] | 5 | 2015-08-13T10:21:13.000Z | 2019-01-05T21:12:24.000Z | tapioca_disqus/resource_mapping/forums.py | marctc/tapioca-disqus | a397d21ad1b6c69f7691015338e491d106e58da4 | [
"MIT"
] | 3 | 2015-12-09T05:41:13.000Z | 2016-03-25T17:34:45.000Z | tapioca_disqus/resource_mapping/forums.py | marctc/tapioca-disqus | a397d21ad1b6c69f7691015338e491d106e58da4 | [
"MIT"
] | 4 | 2015-12-09T05:41:18.000Z | 2019-01-05T21:12:27.000Z | FORUMS_MAPPING = {
'forums_add_moderator': {
'resource': 'forums/addModerator.json',
'docs': 'https://disqus.com/api/docs/forums/addModerator/',
'methods': ['POST'],
},
'forums_create': {
'resource': 'forums/create.json',
'docs': 'https://disqus.com/api/docs/forums/cr... | 36.139785 | 85 | 0.580184 |
cf0dd9eac4b7a622418f1535040a8fa0ae6f0b9d | 50,168 | py | Python | experiment_extra.py | Shihab-Shahriar/500-miles | 49fc9c6d037521f454da4bc02cccd62117c0ac5f | [
"MIT"
] | null | null | null | experiment_extra.py | Shihab-Shahriar/500-miles | 49fc9c6d037521f454da4bc02cccd62117c0ac5f | [
"MIT"
] | null | null | null | experiment_extra.py | Shihab-Shahriar/500-miles | 49fc9c6d037521f454da4bc02cccd62117c0ac5f | [
"MIT"
] | 1 | 2018-10-03T21:17:27.000Z | 2018-10-03T21:17:27.000Z | from __future__ import division, print_function
import pickle
import pdb
import os
import time
from sklearn.cross_validation import StratifiedKFold
from sklearn import svm
from sklearn import metrics
import gensim
import random
from learners import SK_SVM,SK_KNN,SK_LDA
from tuner import DE_Tune_ML
from model import Pap... | 38.296183 | 131 | 0.62514 |
cf0de3ba9e20ca39a57f3acbae18add6e56df71b | 70 | py | Python | core/nn/__init__.py | achaiah/awesome-semantic-segmentation-pytorch | 4f945a1989ae8b1bb6b24f1214fa84a7ca8c8e07 | [
"Apache-2.0"
] | 1 | 2019-09-09T16:58:48.000Z | 2019-09-09T16:58:48.000Z | core/nn/__init__.py | achaiah/awesome-semantic-segmentation-pytorch | 4f945a1989ae8b1bb6b24f1214fa84a7ca8c8e07 | [
"Apache-2.0"
] | null | null | null | core/nn/__init__.py | achaiah/awesome-semantic-segmentation-pytorch | 4f945a1989ae8b1bb6b24f1214fa84a7ca8c8e07 | [
"Apache-2.0"
] | 1 | 2019-12-04T03:06:07.000Z | 2019-12-04T03:06:07.000Z | """Seg NN Modules"""
from .sync_bn.syncbn import *
from .loss import * | 23.333333 | 29 | 0.7 |
cf0ef43a8bc52fd3f88dd05dc9e8f4a26b23551b | 760 | py | Python | deploy.py | ksksksks-dev/Solidity-Demo | 572f26efdfcaeb8721cf9f98c08205dd344848b3 | [
"MIT"
] | null | null | null | deploy.py | ksksksks-dev/Solidity-Demo | 572f26efdfcaeb8721cf9f98c08205dd344848b3 | [
"MIT"
] | null | null | null | deploy.py | ksksksks-dev/Solidity-Demo | 572f26efdfcaeb8721cf9f98c08205dd344848b3 | [
"MIT"
] | 1 | 2021-10-02T07:23:28.000Z | 2021-10-02T07:23:28.000Z | import json
import solcx
from solcx import compile_standard
# solcx.install_solc()
with open("./SimpleStorage.sol", "r") as file:
simple_storage_file = file.read()
compiled_sol = compile_standard(
{
"language": "Solidity",
"sources": {"SimpleStorage.sol": {"content": simple_storage_file}},
... | 25.333333 | 82 | 0.610526 |
cf10b831b724d9102e64bddbd11566c602b17ffc | 2,185 | py | Python | test_clouddb/test_instance.py | adregner/python-clouddb | 6c77261a0e9cda221980c9240c7fffc93a78f7f7 | [
"X11"
] | 1 | 2018-05-21T23:09:36.000Z | 2018-05-21T23:09:36.000Z | test_clouddb/test_instance.py | adregner/python-clouddb | 6c77261a0e9cda221980c9240c7fffc93a78f7f7 | [
"X11"
] | null | null | null | test_clouddb/test_instance.py | adregner/python-clouddb | 6c77261a0e9cda221980c9240c7fffc93a78f7f7 | [
"X11"
] | null | null | null |
"""Primary testing suite for clouddb.models.instance.
This code is licensed under the MIT license. See COPYING for more details."""
import time
import unittest
import clouddb
import test_clouddb
CLOUDDB_TEST_INSTANCE_OBJECT = None
CLOUDDB_TEST_BASELINE_INSTANCE_COUNT = None
CLOUDDB_TEST_INSTANCE_NAME = "testsuite... | 37.672414 | 88 | 0.769794 |
cf12d221f01553d46a5821f0b5720d8d94341b9e | 3,327 | py | Python | examples/tensorflow/nlp/bert_large_squad/tune_squad.py | kevinintel/neural-compressor | b57645566aeff8d3c18dc49d2739a583c072f940 | [
"Apache-2.0"
] | 100 | 2020-12-01T02:40:12.000Z | 2021-09-09T08:14:22.000Z | examples/tensorflow/nlp/bert_large_squad/tune_squad.py | kevinintel/neural-compressor | b57645566aeff8d3c18dc49d2739a583c072f940 | [
"Apache-2.0"
] | 25 | 2021-01-05T00:16:17.000Z | 2021-09-10T03:24:01.000Z | examples/tensorflow/nlp/bert_large_squad/tune_squad.py | kevinintel/neural-compressor | b57645566aeff8d3c18dc49d2739a583c072f940 | [
"Apache-2.0"
] | 25 | 2020-12-01T19:07:08.000Z | 2021-08-30T14:20:07.000Z | #!/usr/bin/env python
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 36.56044 | 94 | 0.703937 |
cf1379541ce40bdf7c286012870b15d463d7defa | 58 | py | Python | gfxlcd/driver/ad7843/__init__.py | bkosciow/gfxlcd | 953d013abb9b695c2226b348093cc64391a01f6c | [
"MIT"
] | 12 | 2018-01-31T18:43:23.000Z | 2021-10-06T10:23:05.000Z | gfxlcd/driver/ad7843/__init__.py | bkosciow/gfxlcd | 953d013abb9b695c2226b348093cc64391a01f6c | [
"MIT"
] | 4 | 2018-04-25T15:15:16.000Z | 2021-03-21T09:21:50.000Z | gfxlcd/driver/ad7843/__init__.py | bkosciow/gfxlcd | 953d013abb9b695c2226b348093cc64391a01f6c | [
"MIT"
] | 4 | 2018-03-15T09:12:09.000Z | 2021-03-19T20:07:33.000Z | """driver/ad7843 module"""
__author__ = 'Bartosz Kosciow'
| 19.333333 | 30 | 0.724138 |
cf144bab411bff8503d65becf1b966fa838b391b | 286 | py | Python | utils/targetTools.py | brzx/pydataloader | 005c347b8fd9aca0a35ecf8eccce0a35e7e6da52 | [
"BSD-2-Clause"
] | null | null | null | utils/targetTools.py | brzx/pydataloader | 005c347b8fd9aca0a35ecf8eccce0a35e7e6da52 | [
"BSD-2-Clause"
] | null | null | null | utils/targetTools.py | brzx/pydataloader | 005c347b8fd9aca0a35ecf8eccce0a35e7e6da52 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import abc
| 19.066667 | 54 | 0.611888 |
cf151f0c30a45fd3252d2c9ba1d95617b3dd6f69 | 7,627 | py | Python | psi/app/models/product_inventory.py | lusi1990/betterlifepsi | 8e7f8562967ab1816d8c25db3251c550a357f39c | [
"MIT"
] | 33 | 2018-10-19T03:41:56.000Z | 2022-01-23T16:26:02.000Z | psi/app/models/product_inventory.py | lusi1990/betterlifepsi | 8e7f8562967ab1816d8c25db3251c550a357f39c | [
"MIT"
] | 318 | 2018-09-23T15:16:54.000Z | 2022-03-31T22:58:55.000Z | psi/app/models/product_inventory.py | lusi1990/betterlifepsi | 8e7f8562967ab1816d8c25db3251c550a357f39c | [
"MIT"
] | 19 | 2018-10-22T18:04:18.000Z | 2021-12-06T19:49:05.000Z | from sqlalchemy import select, func, or_
from sqlalchemy.ext.hybrid import hybrid_property
from psi.app import const
from psi.app.models import Product, InventoryTransactionLine, \
InventoryTransaction
from psi.app.service import Info
from psi.app.utils import format_decimal, get_weeks_between
db = Info.get_db()
| 41.005376 | 136 | 0.64075 |
cf18350dca3c8a011e1f04f49243469e79dd2045 | 1,484 | py | Python | run.py | wallarelvo/SmallCartography | 007e621386eb86d904fefef3f518b1d5f1dc7fe6 | [
"Apache-2.0"
] | null | null | null | run.py | wallarelvo/SmallCartography | 007e621386eb86d904fefef3f518b1d5f1dc7fe6 | [
"Apache-2.0"
] | null | null | null | run.py | wallarelvo/SmallCartography | 007e621386eb86d904fefef3f518b1d5f1dc7fe6 | [
"Apache-2.0"
] | null | null | null |
import carto
import argparse
if __name__ == "__main__":
main()
| 26.981818 | 67 | 0.607143 |
cf1bdfaeda3c9d3dd53a3e8c1108702ddef142c8 | 3,623 | py | Python | microservices_miner/control/issue_mgr.py | IBM/microservices-miner | b7befa1c97930b1e7347c9e386a4bb5c5f2d2198 | [
"MIT"
] | null | null | null | microservices_miner/control/issue_mgr.py | IBM/microservices-miner | b7befa1c97930b1e7347c9e386a4bb5c5f2d2198 | [
"MIT"
] | 4 | 2021-06-08T22:11:29.000Z | 2022-01-14T21:21:04.000Z | microservices_miner/control/issue_mgr.py | IBM/microservices-miner | b7befa1c97930b1e7347c9e386a4bb5c5f2d2198 | [
"MIT"
] | 1 | 2020-08-06T14:53:05.000Z | 2020-08-06T14:53:05.000Z | # (C) Copyright IBM Corporation 2017, 2018, 2019
# U.S. Government Users Restricted Rights: Use, duplication or disclosure restricted
# by GSA ADP Schedule Contract with IBM Corp.
#
# Author: Leonardo P. Tizzei <ltizzei@br.ibm.com>
from microservices_miner.control.database_conn import IssueConn, UserConn, RepositoryCo... | 27.44697 | 121 | 0.548993 |
cf1d3c9ee4fa3f3a46513695b9bd7c1714c7aef5 | 10,893 | py | Python | custom_components/skyq/config_flow.py | TomBrien/Home_Assistant_SkyQ_MediaPlayer | 50f9ad0d3b7a3bc2acc652415ff59740bf3ace10 | [
"MIT"
] | null | null | null | custom_components/skyq/config_flow.py | TomBrien/Home_Assistant_SkyQ_MediaPlayer | 50f9ad0d3b7a3bc2acc652415ff59740bf3ace10 | [
"MIT"
] | null | null | null | custom_components/skyq/config_flow.py | TomBrien/Home_Assistant_SkyQ_MediaPlayer | 50f9ad0d3b7a3bc2acc652415ff59740bf3ace10 | [
"MIT"
] | null | null | null | """Configuration flow for the skyq platform."""
import ipaddress
import json
import logging
import re
from operator import attrgetter
import homeassistant.helpers.config_validation as cv
import pycountry
import voluptuous as vol
from homeassistant import config_entries, exceptions
from homeassistant.const import CONF_... | 36.431438 | 88 | 0.597815 |
cf1e1fc048aed029497d762bdbe8c8befabdb682 | 2,045 | py | Python | tradssat/out/soilni.py | shreyayadav/traDSSAT | cc9650f896910c0d0a7a382aff36bef89aba70f2 | [
"MIT"
] | null | null | null | tradssat/out/soilni.py | shreyayadav/traDSSAT | cc9650f896910c0d0a7a382aff36bef89aba70f2 | [
"MIT"
] | null | null | null | tradssat/out/soilni.py | shreyayadav/traDSSAT | cc9650f896910c0d0a7a382aff36bef89aba70f2 | [
"MIT"
] | null | null | null | from tradssat.tmpl.output import OutFile
from tradssat.tmpl.var import FloatVar, IntegerVar
vars_ = {
IntegerVar('YEAR', 4, info='Year'),
IntegerVar('DOY', 3, info='Day of year starting on Jan 1.'),
IntegerVar('DAS', 5, info='Day after start'),
IntegerVar('NAPC', 5, info='Cumulative inorganic N appli... | 43.510638 | 72 | 0.604401 |
cf1edbd7a30a852f3ca1224c69d6e47997c186c3 | 4,888 | py | Python | project/scripts/run-cooja.py | nfi/multitrace | 7a043f4c3f580ca87c39f23337322b98594f3a51 | [
"BSD-3-Clause"
] | 4 | 2021-12-20T12:25:56.000Z | 2022-03-23T20:39:16.000Z | project/scripts/run-cooja.py | nfi/multitrace | 7a043f4c3f580ca87c39f23337322b98594f3a51 | [
"BSD-3-Clause"
] | null | null | null | project/scripts/run-cooja.py | nfi/multitrace | 7a043f4c3f580ca87c39f23337322b98594f3a51 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import argparse
import sys
import os
import time
import traceback
import subprocess
from subprocess import PIPE, STDOUT, CalledProcessError
# Find path to this script
SELF_PATH = os.path.dirname(os.path.abspath(__file__))
# Find path to Contiki-NG relative to this script
CONTIKI_PATH = os.path.... | 33.479452 | 108 | 0.63748 |
cf1f3cd2308c871fbca4d806dda3a4b0a43ddbe0 | 711 | py | Python | Recent Excel Documents.lbaction/Contents/Scripts/default.py | nriley/LBOfficeMRU | e2df583cdb32a066f3ab002d4182fa40759839a6 | [
"Apache-2.0"
] | 13 | 2016-08-21T12:18:42.000Z | 2022-02-01T22:03:45.000Z | Recent Excel Documents.lbaction/Contents/Scripts/default.py | nriley/LBOfficeMRU | e2df583cdb32a066f3ab002d4182fa40759839a6 | [
"Apache-2.0"
] | 1 | 2017-02-11T10:46:12.000Z | 2017-03-31T04:20:01.000Z | Recent Excel Documents.lbaction/Contents/Scripts/default.py | nriley/LBOfficeMRU | e2df583cdb32a066f3ab002d4182fa40759839a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import json, operator
import mruservice, mruuserdata
APP_NAME = 'Excel'
APP_BUNDLE_ID = 'com.microsoft.Excel'
APP_URL_PREFIX = 'ms-excel:ofe|u|'
EXTENSION_TO_ICON_NAME = dict(
slk='XLS8', dif='XLS8', ods='ODS', xls='XLS8', xlsx='XLSX', xltx='XLTX', xlsm='XLSM',
xltm='XLTM', xlsb='XLSB',... | 35.55 | 98 | 0.703235 |
cf1f9a3ecc8549d804dcf2f5aef38297dc7945b8 | 2,458 | py | Python | 3sum_medium.py | victorsemenov1980/LeetCodeDailyFun | f66273a9868ede5e2337f586e21eaf9e771b9b48 | [
"MIT"
] | null | null | null | 3sum_medium.py | victorsemenov1980/LeetCodeDailyFun | f66273a9868ede5e2337f586e21eaf9e771b9b48 | [
"MIT"
] | null | null | null | 3sum_medium.py | victorsemenov1980/LeetCodeDailyFun | f66273a9868ede5e2337f586e21eaf9e771b9b48 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat May 22 12:03:16 2021
@author: user
"""
'''
Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.
Notice that the solution set must not contain dupli... | 22.550459 | 156 | 0.47559 |
cf20204aba78a60c893f6561c24e36c3ce30077f | 651 | py | Python | tests/test_loss.py | MartinXPN/abcde | 13192c5f7dfb32a461b9205aed4b0b21e79d8285 | [
"MIT"
] | 4 | 2021-01-20T09:15:37.000Z | 2022-03-03T13:58:18.000Z | tests/test_loss.py | MartinXPN/abcde | 13192c5f7dfb32a461b9205aed4b0b21e79d8285 | [
"MIT"
] | null | null | null | tests/test_loss.py | MartinXPN/abcde | 13192c5f7dfb32a461b9205aed4b0b21e79d8285 | [
"MIT"
] | null | null | null | from unittest import TestCase
from torch import Tensor
from abcde.loss import PairwiseRankingCrossEntropyLoss
| 40.6875 | 110 | 0.623656 |
cf21edee740920f2ebaec338a4fef6781808e844 | 1,088 | py | Python | datasets/mvda_peas_raw/__init__.py | ryuzakyl/data-bloodhound | ae0413e748e55a0d2dbae35bbe96a672f313a64b | [
"Apache-2.0"
] | 3 | 2019-03-18T03:22:06.000Z | 2021-04-06T07:53:51.000Z | datasets/mvda_peas_raw/__init__.py | ryuzakyl/data-bloodhound | ae0413e748e55a0d2dbae35bbe96a672f313a64b | [
"Apache-2.0"
] | null | null | null | datasets/mvda_peas_raw/__init__.py | ryuzakyl/data-bloodhound | ae0413e748e55a0d2dbae35bbe96a672f313a64b | [
"Apache-2.0"
] | 2 | 2020-10-05T08:22:25.000Z | 2020-10-05T08:24:02.000Z | #!/usr/bin/env
# -*- coding: utf-8 -*-
# Copyright (C) Victor M. Mendiola Lau - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited
# Proprietary and confidential
# Written by Victor M. Mendiola Lau <ryuzakyl@gmail.com>, January 2017
import os
import scipy.io as sio
import ... | 28.631579 | 82 | 0.649816 |
cf2226ec55301df910a7704bea76af8d31c1db00 | 472 | py | Python | AULAS/Caixa de entrada/selectionSortEu.py | junioralecrim/Python | a7f716e0e2b3d17ea20c76987788831e102c4765 | [
"MIT"
] | null | null | null | AULAS/Caixa de entrada/selectionSortEu.py | junioralecrim/Python | a7f716e0e2b3d17ea20c76987788831e102c4765 | [
"MIT"
] | null | null | null | AULAS/Caixa de entrada/selectionSortEu.py | junioralecrim/Python | a7f716e0e2b3d17ea20c76987788831e102c4765 | [
"MIT"
] | null | null | null | #selection sort
#Passo a passo:
# 1 Descobrir o menor item da lista
# 2 colocar dentro de uma funo
#Rascunho do algoritimo de ordenao para mudar as posies
# if (lista[2] < minimo):
# aux = lista[0]
# minimo = lista[2]
# lista[2] = aux
lista = [7, 5, 1, 3, 8]
n = len(lista)... | 17.481481 | 59 | 0.552966 |
cf248937a1f0ddbbed80fc10763c1ab5067ed373 | 380 | py | Python | tests/test_ffwd_send.py | smstone/ffwd-client-python | 9a904ea9eecea3ab0a9c90160910bba2600d48f0 | [
"Apache-2.0"
] | null | null | null | tests/test_ffwd_send.py | smstone/ffwd-client-python | 9a904ea9eecea3ab0a9c90160910bba2600d48f0 | [
"Apache-2.0"
] | null | null | null | tests/test_ffwd_send.py | smstone/ffwd-client-python | 9a904ea9eecea3ab0a9c90160910bba2600d48f0 | [
"Apache-2.0"
] | null | null | null | import argparse
import unittest
from ffwd.ffwd_send import tag_type
| 27.142857 | 78 | 0.694737 |
cf252db5b4b95b5dc23031fed96cc1a89f8cd949 | 2,475 | py | Python | openGaussBase/testcase/SECURITY/MODIFY/Opengauss_Function_Security_Mgt_Manamegent_Case0001.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SECURITY/MODIFY/Opengauss_Function_Security_Mgt_Manamegent_Case0001.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SECURITY/MODIFY/Opengauss_Function_Security_Mgt_Manamegent_Case0001.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | """
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... | 33 | 84 | 0.645657 |
cf27715d55b617221f21406b94ab34e0ac04baac | 5,981 | py | Python | lib/surface/compute/instance_groups/managed/abandon_instances.py | eyalev/gcloud | 421ee63a0a6d90a097e8530d53a6df5b905a0205 | [
"Apache-2.0"
] | null | null | null | lib/surface/compute/instance_groups/managed/abandon_instances.py | eyalev/gcloud | 421ee63a0a6d90a097e8530d53a6df5b905a0205 | [
"Apache-2.0"
] | null | null | null | lib/surface/compute/instance_groups/managed/abandon_instances.py | eyalev/gcloud | 421ee63a0a6d90a097e8530d53a6df5b905a0205 | [
"Apache-2.0"
] | 2 | 2020-11-04T03:08:21.000Z | 2020-11-05T08:14:41.000Z | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 35.390533 | 80 | 0.69587 |
cf289c374ee47f4952cddf28f571e3c1c464ba43 | 1,185 | py | Python | day:22/isBinaryTreeSymmetric.py | hawaijar/FireLeetcode | e981e96f6a38a3b08e9b7ef59aec65f6e0e5728a | [
"MIT"
] | 1 | 2020-10-21T12:28:23.000Z | 2020-10-21T12:28:23.000Z | day:22/isBinaryTreeSymmetric.py | hawaijar/FireLeetcode | e981e96f6a38a3b08e9b7ef59aec65f6e0e5728a | [
"MIT"
] | null | null | null | day:22/isBinaryTreeSymmetric.py | hawaijar/FireLeetcode | e981e96f6a38a3b08e9b7ef59aec65f6e0e5728a | [
"MIT"
] | 1 | 2020-10-21T12:28:24.000Z | 2020-10-21T12:28:24.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
| 28.902439 | 66 | 0.420253 |
cf296e88d03c596024b49c000c2c21fe1354248f | 3,991 | py | Python | main.py | prjavidi/C- | 76e7c7720a921e48726ad652cfc0f1000f9a2b3e | [
"MIT"
] | null | null | null | main.py | prjavidi/C- | 76e7c7720a921e48726ad652cfc0f1000f9a2b3e | [
"MIT"
] | null | null | null | main.py | prjavidi/C- | 76e7c7720a921e48726ad652cfc0f1000f9a2b3e | [
"MIT"
] | null | null | null | '''chane the below arguments to check different tasks'''
TRAINSIZE = 5000
TESTSIZE = 500
'''To check TASK 3 put Normalize=1 otherwise 0'''
Nomalize = 1
learningRate = 0.01
threshold = 85
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
'''Chaneg the below numbers to pick how many samples you ne... | 27.14966 | 104 | 0.606865 |
cf29a3a3726068b1f04b6f5636cece5035884b63 | 465 | py | Python | stackoverflow.py | kenenbek/MultiAgent | 3276d192416503bb1705a3a190649c8bcf3dd630 | [
"MIT"
] | null | null | null | stackoverflow.py | kenenbek/MultiAgent | 3276d192416503bb1705a3a190649c8bcf3dd630 | [
"MIT"
] | null | null | null | stackoverflow.py | kenenbek/MultiAgent | 3276d192416503bb1705a3a190649c8bcf3dd630 | [
"MIT"
] | null | null | null | from scipy.stats import chi2
import numpy as np
from matplotlib import pyplot as plt
from scipy import optimize
import pickle
objects = []
with open("priceZZZ", "rb") as openfile:
while True:
try:
objects.append(pickle.load(openfile))
except EOFError:
break
for ... | 27.352941 | 93 | 0.636559 |
cf2bb8c6d785b39a5517d20fc3e9d6b495f276b6 | 1,080 | py | Python | 11_python-data-science-toolbox-(part-2)/2-list-comprehensions-and-generators/10_changing-the-output-in-generator-expressions.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 5 | 2021-02-03T14:36:58.000Z | 2022-01-01T10:29:26.000Z | 11_python-data-science-toolbox-(part-2)/2-list-comprehensions-and-generators/10_changing-the-output-in-generator-expressions.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | null | null | null | 11_python-data-science-toolbox-(part-2)/2-list-comprehensions-and-generators/10_changing-the-output-in-generator-expressions.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 3 | 2021-02-08T00:31:16.000Z | 2022-03-17T13:52:32.000Z | '''
10 - Changing the output in generator expressions
Great! At this point, you already know how to write a basic generator expression.
In this exercise, you will push this idea a little further by adding to the output
expression of a generator expression. Because generator expressions and list
comprehensions are so ... | 36 | 86 | 0.773148 |
cf2c4d8068a5e81799ce759db7c058c410706010 | 6,269 | py | Python | polyaxon/scheduler/spawners/tensorboard_spawner.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/scheduler/spawners/tensorboard_spawner.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/scheduler/spawners/tensorboard_spawner.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | import json
import random
from django.conf import settings
from polyaxon_k8s.exceptions import PolyaxonK8SError
from scheduler.spawners.project_job_spawner import ProjectJobSpawner
from scheduler.spawners.templates import constants, ingresses, services
from scheduler.spawners.templates.pod_environment import (
ge... | 43.534722 | 93 | 0.595948 |
cf2cdf5265503bfa5f46413c8c8ff1d4149197dd | 4,651 | py | Python | iot/rooms/__init__.py | joh90/iot | 4a571be7e0760445dd2d5be858ecb4372b5d59b4 | [
"MIT"
] | 6 | 2018-11-06T02:07:21.000Z | 2021-12-15T07:56:14.000Z | iot/rooms/__init__.py | joh90/iot | 4a571be7e0760445dd2d5be858ecb4372b5d59b4 | [
"MIT"
] | 7 | 2019-06-17T15:50:22.000Z | 2021-03-14T19:24:16.000Z | iot/rooms/__init__.py | joh90/iot | 4a571be7e0760445dd2d5be858ecb4372b5d59b4 | [
"MIT"
] | 1 | 2020-05-26T09:32:56.000Z | 2020-05-26T09:32:56.000Z | import logging
from iot.constants import ROOM_LIST_MESSAGE
from iot.utils import return_mac
from iot.devices import DeviceType
from iot.devices.broadlink import (
BroadlinkDeviceFactory,
BroadlinkDeviceTypes
)
from iot.devices.errors import (
DeviceTypeNotFound, BrandNotFound,
SendCommandError
)
from ... | 29.436709 | 81 | 0.529779 |
cf2d6649ae78a91eff025de10e3d668a7dec13c5 | 2,919 | py | Python | start.py | mutageneral/fossdiscord | 54111e6e6ff8ee64f54241a11b9da52db4776223 | [
"MIT"
] | null | null | null | start.py | mutageneral/fossdiscord | 54111e6e6ff8ee64f54241a11b9da52db4776223 | [
"MIT"
] | null | null | null | start.py | mutageneral/fossdiscord | 54111e6e6ff8ee64f54241a11b9da52db4776223 | [
"MIT"
] | null | null | null | import os, ctypes, sys, subprocess, config, globalconfig, shutil
from git import Repo
from shutil import copyfile
commands = ["--help", "--updatebot", "--start", "--credits"]
try:
booloutput = bool(sys.argv[1])
except:
startbot()
for commandList in commands:
if sys.argv[1] not in commands:
sys.exi... | 42.304348 | 249 | 0.64063 |
cf2ebd0be605b85c733e5e7a385de095a11ecc48 | 932 | py | Python | QTM/MixQC/1.0.0/plt.py | binggu56/qmd | e2628710de15f8a8b9a1280fcf92f9e87559414c | [
"MIT"
] | null | null | null | QTM/MixQC/1.0.0/plt.py | binggu56/qmd | e2628710de15f8a8b9a1280fcf92f9e87559414c | [
"MIT"
] | null | null | null | QTM/MixQC/1.0.0/plt.py | binggu56/qmd | e2628710de15f8a8b9a1280fcf92f9e87559414c | [
"MIT"
] | null | null | null | ##!/usr/bin/python
import numpy as np
import pylab as pl
#with open("traj.dat") as f:
# data = f.read()
#
# data = data.split('\n')
#
# x = [row.split(' ')[0] for row in data]
# y = [row.split(' ')[1] for row in data]
#
# fig = plt.figure()
#
# ax1 = fig.add_subplot(111)
#
# ax1.set_title("Plot t... | 19.416667 | 49 | 0.549356 |
cf2ee0d6951dff87d2cc119417466bb9ccb36246 | 2,753 | py | Python | generator/generator.py | zbelateche/ee272_cgra | 4cf2e3cf4a4bdf585d87a9209a5bf252666bc6a2 | [
"BSD-3-Clause"
] | 1 | 2020-07-23T02:57:12.000Z | 2020-07-23T02:57:12.000Z | generator/generator.py | zbelateche/ee272_cgra | 4cf2e3cf4a4bdf585d87a9209a5bf252666bc6a2 | [
"BSD-3-Clause"
] | null | null | null | generator/generator.py | zbelateche/ee272_cgra | 4cf2e3cf4a4bdf585d87a9209a5bf252666bc6a2 | [
"BSD-3-Clause"
] | 1 | 2021-04-27T23:13:43.000Z | 2021-04-27T23:13:43.000Z | from abc import ABC, abstractmethod
from ordered_set import OrderedSet
import magma
from common.collections import DotDict
from generator.port_reference import PortReference, PortReferenceBase
import warnings
| 30.588889 | 69 | 0.55721 |
cf308bf1eb0d73c66e892cc4b6703edb92094ed6 | 709 | py | Python | oms_cms/backend/info_block/models.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | oms_cms/backend/info_block/models.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | oms_cms/backend/info_block/models.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from oms_gallery.models import Gallery
from oms_cms.backend.languages.models import AbstractLang
| 28.36 | 88 | 0.686883 |
cf314a62fbc67887598a3f07228dd471a1ffe7af | 4,724 | py | Python | modules/SampleGenerator/SampleGenerator.py | ediril/BCI | f211ba70d6d75a9badff6872f86416b065f6192b | [
"BSD-2-Clause"
] | 6 | 2016-12-30T03:43:49.000Z | 2020-04-19T16:04:37.000Z | modules/SampleGenerator/SampleGenerator.py | hongweimao/BCI | 49b7e8137bd5f9d18e3efdbd94a112cde5d16c4c | [
"BSD-2-Clause"
] | 1 | 2022-03-08T09:16:10.000Z | 2022-03-08T09:16:10.000Z | modules/SampleGenerator/SampleGenerator.py | ediril/BCI | f211ba70d6d75a9badff6872f86416b065f6192b | [
"BSD-2-Clause"
] | 2 | 2015-06-16T02:46:03.000Z | 2018-12-20T20:07:59.000Z | #!/usr/bin/python
import time
import sys
import platform
from ConfigParser import SafeConfigParser
from PyDragonfly import Dragonfly_Module, CMessage, copy_to_msg, copy_from_msg, MT_EXIT
from argparse import ArgumentParser
from dragonfly_utils import respond_to_ping
import Dragonfly_config as rc
if __name__ == "__mai... | 41.078261 | 109 | 0.577053 |
cf33c0f359af61ed23f396ff759a9bbdc5a2e5ec | 7,118 | py | Python | app/gws/web/wrappers.py | ewie/gbd-websuite | 6f2814c7bb64d11cb5a0deec712df751718fb3e1 | [
"Apache-2.0"
] | null | null | null | app/gws/web/wrappers.py | ewie/gbd-websuite | 6f2814c7bb64d11cb5a0deec712df751718fb3e1 | [
"Apache-2.0"
] | null | null | null | app/gws/web/wrappers.py | ewie/gbd-websuite | 6f2814c7bb64d11cb5a0deec712df751718fb3e1 | [
"Apache-2.0"
] | null | null | null | import os
import gzip
import io
import werkzeug.utils
import werkzeug.wrappers
import werkzeug.wsgi
from werkzeug.utils import cached_property
import gws
import gws.tools.date
import gws.tools.json2
import gws.tools.net
import gws.tools.vendor.umsgpack as umsgpack
import gws.web.error
import gws.types as t
_JSON =... | 31.635556 | 117 | 0.609722 |
cf3478f4de02de9ef45febd053640f7c5386da10 | 778 | py | Python | game_shop/forms.py | ziyic/UoA_PGT_CS551Q_shopping | e0ccf867871f2ecc014a5e6fff95cba4b8342393 | [
"BSD-3-Clause"
] | null | null | null | game_shop/forms.py | ziyic/UoA_PGT_CS551Q_shopping | e0ccf867871f2ecc014a5e6fff95cba4b8342393 | [
"BSD-3-Clause"
] | null | null | null | game_shop/forms.py | ziyic/UoA_PGT_CS551Q_shopping | e0ccf867871f2ecc014a5e6fff95cba4b8342393 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author : Ziyi Cao
# @Time : 2021/4/26
# @Function:
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Game
| 25.933333 | 64 | 0.660668 |
cf34a3f0197c3f6dc8a1f65c74ae293fb179d4ac | 3,299 | py | Python | mozinor/example/toto_stack_model_script.py | Jwuthri/Mozinor | 5a2cd4f0447a96425d899a8e063668741a091a8b | [
"MIT"
] | 3 | 2017-08-17T21:32:05.000Z | 2018-07-30T11:30:09.000Z | mozinor/example/toto_stack_model_script.py | Jwuthri/Mozinor | 5a2cd4f0447a96425d899a8e063668741a091a8b | [
"MIT"
] | null | null | null | mozinor/example/toto_stack_model_script.py | Jwuthri/Mozinor | 5a2cd4f0447a96425d899a8e063668741a091a8b | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on July 2017
@author: JulienWuthrich
"""
import pandas as pd
import numpy as np
from sklearn.preprocessing import PolynomialFeatures
from sklearn.metrics import mean_absolute_error, accuracy_score, r2_score
from sklearn.model_selection import train_test_split
from sklearn.ensembl... | 35.095745 | 136 | 0.76114 |
cf36336bd222b8046304d99fe89eeed7d9b73ede | 4,330 | py | Python | Detection and Tracking/main.py | Jay-Nehra/Object-Detection | f91085ecf709d21bf7ffd3b2e370fc36ae5e88f2 | [
"BSD-3-Clause"
] | 1 | 2021-01-23T09:11:59.000Z | 2021-01-23T09:11:59.000Z | Detection and Tracking/main.py | Jay-Nehra/Object-Detection | f91085ecf709d21bf7ffd3b2e370fc36ae5e88f2 | [
"BSD-3-Clause"
] | null | null | null | Detection and Tracking/main.py | Jay-Nehra/Object-Detection | f91085ecf709d21bf7ffd3b2e370fc36ae5e88f2 | [
"BSD-3-Clause"
] | null | null | null | """
this program takes in a checkerboard image from a camera and calibrates the
image to remove camera radial and tangential distortion.
"""
import cv2
import YOLO as odYOLO # object detection using YOLO
import HOG as odHOG # object detection using an svm and HOG features
import data
import numpy as np
""" Uncomment ... | 37.982456 | 115 | 0.671132 |
cf372286c3b00f6d57b36a97cb015d54cb8dfc38 | 28,542 | py | Python | IndoorPositionEstimator/cflib/drone_quaternion.py | capriele/Crazyflie-Indoor-Position-Logger-Controller | 6f7a44984553d85a66a29c169a2f7c758a2aaac7 | [
"Apache-2.0"
] | 6 | 2017-04-23T15:47:57.000Z | 2020-03-15T17:52:15.000Z | IndoorPositionEstimator/cflib/drone_quaternion.py | capriele/Crazyflie-Indoor-Position-Logger-Controller | 6f7a44984553d85a66a29c169a2f7c758a2aaac7 | [
"Apache-2.0"
] | null | null | null | IndoorPositionEstimator/cflib/drone_quaternion.py | capriele/Crazyflie-Indoor-Position-Logger-Controller | 6f7a44984553d85a66a29c169a2f7c758a2aaac7 | [
"Apache-2.0"
] | null | null | null | """
Quadcopter Model + LQR Control + BackStepping Control
"""
#
# Author: Alberto Petrucci (petrucci.alberto@gmail.com) 2017
#
#__author__ = "Alberto Petrucci"
#__copyright__ = "Copyright 2017, Alberto Petrucci"
#__credits__ = ["Alberto Petrucci"]
#__license__ = "Apache"
#__version__ = "1.0.0"
#__maintainer__ = "Alber... | 37.654354 | 1,374 | 0.387044 |
cf37f380f3a304d0ac99d99b4a587e12239fe76f | 766 | py | Python | alipay/aop/api/response/AlipayInsSceneInsserviceprodSerinfoSyncResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayInsSceneInsserviceprodSerinfoSyncResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayInsSceneInsserviceprodSerinfoSyncResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
| 29.461538 | 120 | 0.733681 |
cf38a491c875d1bd0ae06532a675a01ccb64787d | 426 | py | Python | tests/integration/test_status.py | pnw/env-tracker | ab7a539afa329b529b6e10e55ca23cc214e0fd49 | [
"MIT"
] | null | null | null | tests/integration/test_status.py | pnw/env-tracker | ab7a539afa329b529b6e10e55ca23cc214e0fd49 | [
"MIT"
] | null | null | null | tests/integration/test_status.py | pnw/env-tracker | ab7a539afa329b529b6e10e55ca23cc214e0fd49 | [
"MIT"
] | null | null | null | from tests.helpers import BaseTestCase
| 26.625 | 79 | 0.65493 |
cf39abdd7b9db220323875a0a137611f84fce21d | 1,646 | py | Python | functions/07.py | luan-gomes/python-basic-exercises | 213844b421b27ab3e9c09be24d4efb37cc6fce08 | [
"MIT"
] | null | null | null | functions/07.py | luan-gomes/python-basic-exercises | 213844b421b27ab3e9c09be24d4efb37cc6fce08 | [
"MIT"
] | null | null | null | functions/07.py | luan-gomes/python-basic-exercises | 213844b421b27ab3e9c09be24d4efb37cc6fce08 | [
"MIT"
] | null | null | null | """
1) Faa um programa que use a funo valorPagamento para determinar o
valor a ser pago por uma prestao de uma conta.
2) O programa dever solicitar ao usurio o valor da prestao e o nmero
de dias em atraso e passar estes valores para a funo valorPagamento,
que calcular o valor a ser pago e devolver este valor ao pro... | 35.021277 | 74 | 0.744228 |
cf3a73df976f6a84385fb7762c36292debe844b3 | 1,814 | py | Python | common/login.py | zhaopiandehuiyiforsang/python_test | 7a6ef77afd3b436f798ca68c77b9ac8669e00094 | [
"MIT"
] | null | null | null | common/login.py | zhaopiandehuiyiforsang/python_test | 7a6ef77afd3b436f798ca68c77b9ac8669e00094 | [
"MIT"
] | null | null | null | common/login.py | zhaopiandehuiyiforsang/python_test | 7a6ef77afd3b436f798ca68c77b9ac8669e00094 | [
"MIT"
] | null | null | null | # -*- conding:utf-8 -*-
from init_env import BASE_DIR
from common.HttpUtils import HttpUtils
from common.env_config import ServerCC
from common.DateUtils import currentTimeMillis, DateTime
import json
import os
token_json_path = BASE_DIR + '/resources/token.json'
"""
token
"""
URL_AUTH = 'https://rasdev9.zhixueyun.c... | 25.914286 | 60 | 0.669239 |
cf3ae41287d546e236788642c821e46e2316896c | 2,269 | py | Python | practice/src/design_pattern/Interpreter.py | t10471/python | 75056454bfb49197eb44f6b4d6a1b0a0b4b408ec | [
"MIT"
] | null | null | null | practice/src/design_pattern/Interpreter.py | t10471/python | 75056454bfb49197eb44f6b4d6a1b0a0b4b408ec | [
"MIT"
] | null | null | null | practice/src/design_pattern/Interpreter.py | t10471/python | 75056454bfb49197eb44f6b4d6a1b0a0b4b408ec | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import os
#compsitecommand
#ContexthandlerCommand
def execute(command):
job = JobCommand()
try:
job.execute(Context(command))
except Exception, e:
print e.args
if __name__ == '__main__':
command = 'begin date line diskspace end'
if co... | 26.383721 | 82 | 0.588365 |
cf3bbae06f3088b31cf43074001976c60e15c3b8 | 262 | py | Python | wbb/utils/filter_groups.py | Imran95942/userbotisl | 1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c | [
"MIT"
] | 1 | 2021-11-17T13:25:25.000Z | 2021-11-17T13:25:25.000Z | wbb/utils/filter_groups.py | Imran95942/userbotisl | 1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c | [
"MIT"
] | null | null | null | wbb/utils/filter_groups.py | Imran95942/userbotisl | 1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c | [
"MIT"
] | null | null | null | chat_filters_group = 1
chatbot_group = 2
karma_positive_group = 3
karma_negative_group = 4
regex_group = 5
welcome_captcha_group = 6
antiflood_group = 7
blacklist_filters_group = 8
taglog_group = 9
chat_watcher_group = 10
flood_group = 11
autocorrect_group = 12
| 20.153846 | 27 | 0.816794 |
cf3bfcccde630a28147bd6f4bf35f454312666f8 | 179 | py | Python | tests/model.py | gunyarakun/cached-image-optimizer | 80e4c9501bcde1a82e8aeb24c32563d97841dafa | [
"MIT"
] | 2 | 2021-04-06T06:07:35.000Z | 2021-04-16T08:42:13.000Z | tests/model.py | gunyarakun/cached-image-optimizer | 80e4c9501bcde1a82e8aeb24c32563d97841dafa | [
"MIT"
] | null | null | null | tests/model.py | gunyarakun/cached-image-optimizer | 80e4c9501bcde1a82e8aeb24c32563d97841dafa | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Dict
FixtureURLS = Dict[str, FixtureURLContent]
| 16.272727 | 42 | 0.776536 |
cf3e620c460aed9e0fba7d56f5f6161f6fb1dbd6 | 3,162 | py | Python | my_pilz_sandbox/scripts/pause.py | ct2034/my_pilz_sandbox | 40400c6469918f56d384580d41f61b2cca3b49c9 | [
"BSD-3-Clause"
] | null | null | null | my_pilz_sandbox/scripts/pause.py | ct2034/my_pilz_sandbox | 40400c6469918f56d384580d41f61b2cca3b49c9 | [
"BSD-3-Clause"
] | null | null | null | my_pilz_sandbox/scripts/pause.py | ct2034/my_pilz_sandbox | 40400c6469918f56d384580d41f61b2cca3b49c9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from geometry_msgs.msg import Pose, Point, PoseArray, Quaternion
import math
import numpy as np
from pilz_robot_programming import *
import random
import rospy
import time
__REQUIRED_API_VERSION__ = "1" # API version
SLOW_VEL_SCALE = .1
ACC_SCALE = .1
GRIPPER_POSE_CLOSED = 0.001
GRIPPER_POSE_OP... | 30.403846 | 92 | 0.606262 |
cf3f13905a5ccf5bc9884a2805ccfdf8e0e29624 | 822 | py | Python | feed-runner.py | quandram/podcatcher | b1d14b10b3e1afd1947e09ddf2006dac37c6fae7 | [
"MIT"
] | null | null | null | feed-runner.py | quandram/podcatcher | b1d14b10b3e1afd1947e09ddf2006dac37c6fae7 | [
"MIT"
] | null | null | null | feed-runner.py | quandram/podcatcher | b1d14b10b3e1afd1947e09ddf2006dac37c6fae7 | [
"MIT"
] | null | null | null | import configparser
import os
from podcatcher import podcatcher
import configKeys
if __name__ == "__main__":
main()
| 37.363636 | 161 | 0.744526 |
cf3ffee88a76c631b85e7a5469a248333708be1a | 34 | py | Python | src/superfit/mainwindow/__init__.py | awacha/superfit | a95d346c4b38f61173c7434eb7389e2cf1ccae9c | [
"BSD-3-Clause"
] | null | null | null | src/superfit/mainwindow/__init__.py | awacha/superfit | a95d346c4b38f61173c7434eb7389e2cf1ccae9c | [
"BSD-3-Clause"
] | null | null | null | src/superfit/mainwindow/__init__.py | awacha/superfit | a95d346c4b38f61173c7434eb7389e2cf1ccae9c | [
"BSD-3-Clause"
] | null | null | null | from .mainwindow import MainWindow | 34 | 34 | 0.882353 |
cf431e72726e4b11c54c98c1b966e61f78dddfff | 7,755 | py | Python | source/code/tag_utilities.py | awslabs/tag-tamer | bfd164c36b5e3ba8e01aba54d973ce372e982b09 | [
"MIT",
"MIT-0"
] | 15 | 2021-06-27T23:42:37.000Z | 2021-09-24T19:40:00.000Z | source/code/tag_utilities.py | awslabs/tag-tamer | bfd164c36b5e3ba8e01aba54d973ce372e982b09 | [
"MIT",
"MIT-0"
] | 7 | 2021-07-05T06:56:46.000Z | 2021-08-06T00:59:36.000Z | source/code/tag_utilities.py | awslabs/tag-tamer | bfd164c36b5e3ba8e01aba54d973ce372e982b09 | [
"MIT",
"MIT-0"
] | 5 | 2021-06-23T17:59:01.000Z | 2021-10-20T14:22:44.000Z | """
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
Tag Tamer utility functions to evaluate resource tags
"""
import logging
# Instantiate logging for this module using its file name
log = logging.getLogger(__name__)
def tag_filter_matcher(
conjunct... | 40.602094 | 102 | 0.660477 |
cf44da1421ffcad816c602ccc4edb40367643818 | 199 | py | Python | prof_school/__init__.py | mohamedmelsayed/erp-school | 6da9bc4c4634e3b362be18f55300aacf147c32a3 | [
"MIT"
] | null | null | null | prof_school/__init__.py | mohamedmelsayed/erp-school | 6da9bc4c4634e3b362be18f55300aacf147c32a3 | [
"MIT"
] | null | null | null | prof_school/__init__.py | mohamedmelsayed/erp-school | 6da9bc4c4634e3b362be18f55300aacf147c32a3 | [
"MIT"
] | null | null | null | from .models import stage
from .models import level
from .models import class_name
from .models import student
from .models import parent
from .models import study_year
from .models import enrollment | 28.428571 | 30 | 0.829146 |
cf458acadf833d83661ceef97551521840b2249b | 730 | py | Python | brewerslab-orig-commander/metroui/ajaxRecalculate.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | 1 | 2020-04-12T10:08:10.000Z | 2020-04-12T10:08:10.000Z | brewerslab-orig-commander/metroui/ajaxRecalculate.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | 2 | 2021-12-13T20:09:45.000Z | 2022-03-08T21:09:57.000Z | brewerslab-orig-commander/metroui/ajaxRecalculate.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import re
import sys
import cgi
import _mysql
import mysql.connector
from thememetro import *
from cloudNG import *
con=mysql.connector.connect(user='brewerslab',password='beer',database="brewerslab")
form=cgi.FieldStorage()
theme=webTheme()
theme.bgcolor="#ffffff"
if theme.localUser:
sys.stdout.wri... | 28.076923 | 84 | 0.746575 |
cf4635f6758052b35e57afc944ef8877bef8bb73 | 3,624 | py | Python | PostDiffMixture/le_experiments/epsilonGreedyPolicy.py | SIGKDDanon/SIGKDD2021DeAnonV2 | 76f0373ec42ab55feefed3f4ce4bf4d532b51dd2 | [
"Apache-2.0"
] | null | null | null | PostDiffMixture/le_experiments/epsilonGreedyPolicy.py | SIGKDDanon/SIGKDD2021DeAnonV2 | 76f0373ec42ab55feefed3f4ce4bf4d532b51dd2 | [
"Apache-2.0"
] | null | null | null | PostDiffMixture/le_experiments/epsilonGreedyPolicy.py | SIGKDDanon/SIGKDD2021DeAnonV2 | 76f0373ec42ab55feefed3f4ce4bf4d532b51dd2 | [
"Apache-2.0"
] | null | null | null | import sys
import csv
import random
import math
import numpy
def constant_policy(num_actions):
''' 1-based action '''
return 1
def getEpsilonGreedyAction(eps, num_actions, default_policy):
'''
Performs epsilon greedy exploration with specified default policy.
This works as follows: in epsilon of... | 34.846154 | 122 | 0.625828 |
cf47aca5fbdc5c963454eb2445883327bc3c473e | 267 | py | Python | libp2p/protocol_muxer/exceptions.py | lithp/py-libp2p | f38899e26edabe59b291e466143d1c696c44de8d | [
"Apache-2.0",
"MIT"
] | null | null | null | libp2p/protocol_muxer/exceptions.py | lithp/py-libp2p | f38899e26edabe59b291e466143d1c696c44de8d | [
"Apache-2.0",
"MIT"
] | null | null | null | libp2p/protocol_muxer/exceptions.py | lithp/py-libp2p | f38899e26edabe59b291e466143d1c696c44de8d | [
"Apache-2.0",
"MIT"
] | null | null | null | from libp2p.exceptions import BaseLibp2pError
| 26.7 | 67 | 0.790262 |
cf47b256b9183a754f0c9560868b735c8181e6d5 | 9,250 | py | Python | cli/train.py | breid1313/nlp_hw3_text_fcn_pytorch | a4234e90d37e94a3043d9715c90bac7543f4b0ae | [
"Apache-2.0"
] | null | null | null | cli/train.py | breid1313/nlp_hw3_text_fcn_pytorch | a4234e90d37e94a3043d9715c90bac7543f4b0ae | [
"Apache-2.0"
] | null | null | null | cli/train.py | breid1313/nlp_hw3_text_fcn_pytorch | a4234e90d37e94a3043d9715c90bac7543f4b0ae | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Vladislav Lialin and Skillfactory LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 36.27451 | 162 | 0.647027 |
cf483c36d559d50ef56df32e2b8c8288a4ddb79b | 7,436 | py | Python | src/profile.py | SimonPerche/PersonalitiesWars | 495803a5be5e9fde572c3f39086d8a3510c75f58 | [
"MIT"
] | null | null | null | src/profile.py | SimonPerche/PersonalitiesWars | 495803a5be5e9fde572c3f39086d8a3510c75f58 | [
"MIT"
] | null | null | null | src/profile.py | SimonPerche/PersonalitiesWars | 495803a5be5e9fde572c3f39086d8a3510c75f58 | [
"MIT"
] | 1 | 2022-03-08T22:07:50.000Z | 2022-03-08T22:07:50.000Z | from datetime import datetime, timedelta
import asyncio
import math
from collections import defaultdict
import discord
from discord.ext import commands, pages
from discord.commands import slash_command, Option
from database import DatabaseDeck, DatabasePersonality
from roll import min_until_next_claim
import utils
| 44.261905 | 120 | 0.620764 |
cf49e6d7e31e1c1a3165ef1af9d24717e6080a4b | 11,063 | py | Python | migrations/versions/95805663f7bd_.py | Anioko/CMS | b6465faf2a5d7333f494526bcddf8083d6807aee | [
"MIT"
] | null | null | null | migrations/versions/95805663f7bd_.py | Anioko/CMS | b6465faf2a5d7333f494526bcddf8083d6807aee | [
"MIT"
] | 1 | 2021-06-02T01:40:15.000Z | 2021-06-02T01:40:15.000Z | migrations/versions/95805663f7bd_.py | Anioko/CMS | b6465faf2a5d7333f494526bcddf8083d6807aee | [
"MIT"
] | null | null | null | """empty message
Revision ID: 95805663f7bd
Revises:
Create Date: 2020-05-30 12:10:57.896357
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '95805663f7bd'
down_revision = None
branch_labels = None
depends_on = None
| 45.714876 | 92 | 0.669891 |
cf4a7aaf148ceec8298f56012e99d6d50054187d | 957 | py | Python | daseg/slack.py | pzelasko/daseg | 5e3aaf6e81a44a5eb42226bd376c92c7d1879261 | [
"Apache-2.0"
] | 4 | 2021-07-12T00:46:32.000Z | 2022-02-28T07:02:27.000Z | daseg/slack.py | pzelasko/daseg | 5e3aaf6e81a44a5eb42226bd376c92c7d1879261 | [
"Apache-2.0"
] | 2 | 2021-12-09T12:34:24.000Z | 2022-02-14T20:37:01.000Z | daseg/slack.py | pzelasko/daseg | 5e3aaf6e81a44a5eb42226bd376c92c7d1879261 | [
"Apache-2.0"
] | null | null | null | import logging
import os
import requests
| 20.804348 | 64 | 0.596656 |
cf4a971868a5db584bf5e20d4c62c91c74f32e96 | 271 | py | Python | aids/strings/is_palindrome.py | ueg1990/aids | bb543c6f53983d59edbc6a522ca10d64efd9c42e | [
"MIT"
] | null | null | null | aids/strings/is_palindrome.py | ueg1990/aids | bb543c6f53983d59edbc6a522ca10d64efd9c42e | [
"MIT"
] | null | null | null | aids/strings/is_palindrome.py | ueg1990/aids | bb543c6f53983d59edbc6a522ca10d64efd9c42e | [
"MIT"
] | null | null | null | '''
In this module, we determine if a given string is a palindrome
'''
def is_palindrome(string):
'''
Return True if given string is a palindrome
'''
if len(string) < 2:
return True
if string[0] == string[-1]:
return is_palindrome(string[1:-1])
return False
| 16.9375 | 62 | 0.678967 |
cf4a98bc5a1223ce3366c7b5c9b02fbe3d60be2f | 2,386 | py | Python | jageocoder/address.py | ny-a/jageocoder | 6c31cd7d81aa496b2fbcd3300ac1ccc9cf00fca3 | [
"MIT"
] | 12 | 2021-03-09T01:22:50.000Z | 2022-03-23T04:18:24.000Z | jageocoder/address.py | ny-a/jageocoder | 6c31cd7d81aa496b2fbcd3300ac1ccc9cf00fca3 | [
"MIT"
] | 3 | 2021-12-14T06:34:52.000Z | 2022-02-18T13:11:59.000Z | jageocoder/address.py | ny-a/jageocoder | 6c31cd7d81aa496b2fbcd3300ac1ccc9cf00fca3 | [
"MIT"
] | 3 | 2021-12-14T06:36:59.000Z | 2022-02-16T00:48:51.000Z | from logging import getLogger
from jageocoder.exceptions import AddressLevelError
logger = getLogger(__name__)
| 25.115789 | 79 | 0.508382 |
cf4c769e8b0574ab598dafe57a75ab7656e052d7 | 2,090 | py | Python | src/sympais/infer/utils.py | ethanluoyc/sympais | 68bc696434c86edb8457a3c74473c810b2c5c8f2 | [
"MIT"
] | 5 | 2021-06-04T23:24:41.000Z | 2021-12-13T21:39:57.000Z | src/sympais/infer/utils.py | ethanluoyc/sympais | 68bc696434c86edb8457a3c74473c810b2c5c8f2 | [
"MIT"
] | 24 | 2021-07-12T02:08:34.000Z | 2021-12-20T02:14:54.000Z | src/sympais/infer/utils.py | ethanluoyc/sympais | 68bc696434c86edb8457a3c74473c810b2c5c8f2 | [
"MIT"
] | 1 | 2021-07-31T10:34:19.000Z | 2021-07-31T10:34:19.000Z | import jax
from jax import lax
from jax import tree_util
import jax.numpy as np
| 24.880952 | 86 | 0.679904 |
cf4c7bd09808208650fcf7902fc5aadd3ebc4e2a | 918 | py | Python | __init__.py | nuki111/env_explore | b5dfa05fbcfb0126e246e4ef4eb5a392a8615cf0 | [
"MIT"
] | null | null | null | __init__.py | nuki111/env_explore | b5dfa05fbcfb0126e246e4ef4eb5a392a8615cf0 | [
"MIT"
] | null | null | null | __init__.py | nuki111/env_explore | b5dfa05fbcfb0126e246e4ef4eb5a392a8615cf0 | [
"MIT"
] | null | null | null | '''
env_explore is a library for quick and easy exploration of python objects
=========================================================================
**env_explore** combines pandas and ipywidgets to extract and process data
from almost any given python object into pandas DataFrame and generate a
clickable widget rep... | 43.714286 | 77 | 0.643791 |
cf4dc6fb0422c61d631abfb411ae82187b6217d2 | 3,433 | py | Python | Chapter08/python/ab-env/lib/python3.8/site-packages/numpy-1.16.4-py3.8-macosx-10.16-x86_64.egg/numpy/core/_dtype_ctypes.py | PacktPublishing/Supercharge-Your-Applications-with-GraalVM | bfb068e445f0325be9c7d526b6e07324dff9d1d2 | [
"MIT"
] | 9 | 2021-06-27T07:22:14.000Z | 2022-02-25T18:05:01.000Z | Chapter08/python/ab-env/lib/python3.8/site-packages/numpy-1.16.4-py3.8-macosx-10.16-x86_64.egg/numpy/core/_dtype_ctypes.py | PacktPublishing/Supercharge-Your-Applications-with-GraalVM | bfb068e445f0325be9c7d526b6e07324dff9d1d2 | [
"MIT"
] | null | null | null | Chapter08/python/ab-env/lib/python3.8/site-packages/numpy-1.16.4-py3.8-macosx-10.16-x86_64.egg/numpy/core/_dtype_ctypes.py | PacktPublishing/Supercharge-Your-Applications-with-GraalVM | bfb068e445f0325be9c7d526b6e07324dff9d1d2 | [
"MIT"
] | 8 | 2021-05-28T15:45:12.000Z | 2022-02-01T10:21:37.000Z | """
Conversion from ctypes to dtype.
In an ideal world, we could acheive this through the PEP3118 buffer protocol,
something like::
def dtype_from_ctypes_type(t):
# needed to ensure that the shape of `t` is within memoryview.format
class DummyStruct(ctypes.Structure):
_fields_ = [('a',... | 30.380531 | 103 | 0.633848 |
cf500d8b74ed4e30cef6a56fa9722244906f9406 | 2,202 | py | Python | tests/test_micromagnetic_zeeman.py | computationalmodelling/fidimag | 07a275c897a44ad1e0d7e8ef563f10345fdc2a6e | [
"BSD-2-Clause"
] | 53 | 2016-02-27T09:40:21.000Z | 2022-01-19T21:37:44.000Z | tests/test_micromagnetic_zeeman.py | computationalmodelling/fidimag | 07a275c897a44ad1e0d7e8ef563f10345fdc2a6e | [
"BSD-2-Clause"
] | 132 | 2016-02-26T13:18:58.000Z | 2021-12-01T21:52:42.000Z | tests/test_micromagnetic_zeeman.py | computationalmodelling/fidimag | 07a275c897a44ad1e0d7e8ef563f10345fdc2a6e | [
"BSD-2-Clause"
] | 32 | 2016-02-26T13:21:40.000Z | 2022-03-08T08:54:51.000Z | from fidimag.micro import Zeeman
from fidimag.common import CuboidMesh
from fidimag.micro import Sim
import numpy as np
def test_H0_is_indexable_or_callable():
"""
Test that an exception is raised if H0 is not indexable, and that an
exception is not raised if H0 is indexable.
"""
# Test for some ... | 25.604651 | 78 | 0.560854 |
cf50585745c7b40989b43625db650caccd9e042a | 13,058 | py | Python | rule_learner_both_classes.py | mgbarsky/classification_rules | 699969b87bd7a9080a7e937025fd26398c11a60d | [
"MIT"
] | null | null | null | rule_learner_both_classes.py | mgbarsky/classification_rules | 699969b87bd7a9080a7e937025fd26398c11a60d | [
"MIT"
] | null | null | null | rule_learner_both_classes.py | mgbarsky/classification_rules | 699969b87bd7a9080a7e937025fd26398c11a60d | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
def filter_for_list(condition_list):
result = ""
for cond in condition_list:
result += cond.to_filter() + " & "
result += "True"
return result
def get_best_condition(columns, current_data, prev_conditions, class_labels, min_coverage=30, prev_best_acc... | 38.519174 | 116 | 0.593736 |
cf51ab45924c97d384d57fc81c4e9f5c32da4311 | 23 | py | Python | samtranslator/__init__.py | bhumikapaharia/serverless-application-model | 4161fdd59f1ec449877a64796401ca074ae7be02 | [
"Apache-2.0"
] | 4 | 2021-12-18T06:44:57.000Z | 2021-12-28T09:52:53.000Z | samtranslator/__init__.py | bhumikapaharia/serverless-application-model | 4161fdd59f1ec449877a64796401ca074ae7be02 | [
"Apache-2.0"
] | 1 | 2021-04-13T17:54:21.000Z | 2021-04-13T17:54:21.000Z | samtranslator/__init__.py | chrisoverzero/serverless-application-model | f297cfb7bb68c75b3a75da49c9488e62bad16347 | [
"Apache-2.0"
] | null | null | null | __version__ = "1.35.0"
| 11.5 | 22 | 0.652174 |
cf5251ba997fd509524b5ed305550da937b3de70 | 5,314 | py | Python | packager/rpm/build.py | csdms/packagebuilder | a72f1d264d9219acfb422864fbcd57dfd6cfd51b | [
"MIT"
] | null | null | null | packager/rpm/build.py | csdms/packagebuilder | a72f1d264d9219acfb422864fbcd57dfd6cfd51b | [
"MIT"
] | null | null | null | packager/rpm/build.py | csdms/packagebuilder | a72f1d264d9219acfb422864fbcd57dfd6cfd51b | [
"MIT"
] | null | null | null | #! /usr/bin/env python
#
# Builds binary and source RPMs for a CSDMS model or tool.
#
# Create the executable script `build_rpm` with:
# $ cd path/to/packagebuilder
# $ sudo python setup.py install
#
# Examples:
# $ build_rpm --help
# $ build_rpm --version
# $ build_rpm hydrotrend
# $ build_rpm babel --tag ... | 36.902778 | 80 | 0.59936 |
cf528e1ce597b280628a646ef42b416b3143745b | 1,094 | py | Python | setup.py | dwhall/sx127x_ahsm | 71605ddb218636cb86f628441c2f1aee904bd271 | [
"MIT"
] | 1 | 2019-09-07T08:59:41.000Z | 2019-09-07T08:59:41.000Z | setup.py | dwhall/sx127x_ahsm | 71605ddb218636cb86f628441c2f1aee904bd271 | [
"MIT"
] | 1 | 2020-06-15T14:25:28.000Z | 2020-06-15T22:55:40.000Z | setup.py | dwhall/sx127x_ahsm | 71605ddb218636cb86f628441c2f1aee904bd271 | [
"MIT"
] | 1 | 2020-06-14T16:35:47.000Z | 2020-06-14T16:35:47.000Z | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="sx127x_ahsm",
version="0.1.0",
author="Dean Hall",
author_email="dwhall256@gmail.com",
description="A driver for the Semtech SX127X radio data modem.",
long_description=long_descriptio... | 33.151515 | 68 | 0.632541 |
cf54217590cfa476b93f2e6e6579db91c814fd52 | 431 | py | Python | buildPersonNet.py | danpelis/CPE322 | 86aa3b77dd710d31c0248957146949ca99b81e0b | [
"MIT"
] | null | null | null | buildPersonNet.py | danpelis/CPE322 | 86aa3b77dd710d31c0248957146949ca99b81e0b | [
"MIT"
] | null | null | null | buildPersonNet.py | danpelis/CPE322 | 86aa3b77dd710d31c0248957146949ca99b81e0b | [
"MIT"
] | null | null | null | PIPELINE_CONFIG_PATH={C:\Users\Dan\Projects\D6\ssd_mobilenet_v1_person.config}
MODEL_DIR={C:\Users\Dan\Projects\D6\personNet}
NUM_TRAIN_STEPS=50000
SAMPLE_1_OF_N_EVAL_EXAMPLES=1
python object_detection/model_main.py \
--pipeline_config_path=${PIPELINE_CONFIG_PATH} \
--model_dir=${MODEL_DIR} \
--num_train_st... | 43.1 | 78 | 0.798144 |
cf545cb8f22abd776b690122d22917eb5c3778ef | 5,756 | py | Python | Preprocessing/reversegeo.py | salathegroup/Semester_Project | 2de38eef4ae6b3c350f8b742021ff098ecb376c4 | [
"MIT"
] | null | null | null | Preprocessing/reversegeo.py | salathegroup/Semester_Project | 2de38eef4ae6b3c350f8b742021ff098ecb376c4 | [
"MIT"
] | 1 | 2018-02-20T15:25:22.000Z | 2018-02-20T15:25:22.000Z | Preprocessing/reversegeo.py | salathegroup/Semester_Project | 2de38eef4ae6b3c350f8b742021ff098ecb376c4 | [
"MIT"
] | 2 | 2017-11-07T09:12:11.000Z | 2019-04-12T16:07:40.000Z | import reverse_geocoder as rg
import csv
import multiprocessing as mp
import multiprocessing.pool
import glob
import re
mx_ca_us_state_abbrev = {
'Alabama': '1',
'Alaska': '2',
'Arizona': '3',
'Arkansas': '4',
'California': '5',
'Colorado': '6',
'Connecticut': '7',
'Delaware': '8',
... | 30.455026 | 130 | 0.509034 |
cf546ea7ea4bd4fa252d37fbbd6a124b7399d0c3 | 5,784 | py | Python | DIR.py | az7jh2/My-Raystation-Scripts | 3454378239320c2944fd96de8cb86be8824b5210 | [
"MIT"
] | 1 | 2021-05-29T22:48:49.000Z | 2021-05-29T22:48:49.000Z | DIR.py | az7jh2/My-Raystation-Scripts | 3454378239320c2944fd96de8cb86be8824b5210 | [
"MIT"
] | null | null | null | DIR.py | az7jh2/My-Raystation-Scripts | 3454378239320c2944fd96de8cb86be8824b5210 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from connect import *
#HI
#-----------------------------------------------------------------------------------------------------------#
#CI
#----------------------------------------------------------------------------------------------------#
#ROI
#DVHROI
#---------------------------------------... | 67.255814 | 149 | 0.681017 |
cf54c232a75d4a7341295831e0d07ef22dddb9f7 | 12,143 | py | Python | Trainer.py | Gorilla-Lab-SCUT/OrthDNNs | 7391b1751334c485feea212a80abc4dc8430dc1e | [
"BSD-3-Clause"
] | 4 | 2021-07-15T07:34:30.000Z | 2022-03-30T08:23:46.000Z | Trainer.py | Gorilla-Lab-SCUT/OrthDNNs | 7391b1751334c485feea212a80abc4dc8430dc1e | [
"BSD-3-Clause"
] | 1 | 2020-02-11T10:55:46.000Z | 2020-02-11T10:55:46.000Z | Trainer.py | Yuxin-Wen/OrthDNNs | 7391b1751334c485feea212a80abc4dc8430dc1e | [
"BSD-3-Clause"
] | 1 | 2021-11-23T03:31:09.000Z | 2021-11-23T03:31:09.000Z | from __future__ import division
import time
import numpy as np
import math
import random
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.nn.functional as F
import torch.optim as optim
from torch.autograd import Variable
import torchvision
from Utility import Average_meter
from Utility import ... | 43.679856 | 174 | 0.534464 |
cf555654bbc3d88a367ec4273df655fffb2396cc | 952 | py | Python | src/utils/login_to_spotify.py | SecondThundeR/spotichecker | 05787bae85cb0d9c5832939c72bad526eb419705 | [
"MIT"
] | null | null | null | src/utils/login_to_spotify.py | SecondThundeR/spotichecker | 05787bae85cb0d9c5832939c72bad526eb419705 | [
"MIT"
] | null | null | null | src/utils/login_to_spotify.py | SecondThundeR/spotichecker | 05787bae85cb0d9c5832939c72bad526eb419705 | [
"MIT"
] | null | null | null | """Utils for logging to Spotify.
This module contains functions for connecting to Spotify API.
This file can also be imported as a module and contains the following functions:
* login_to_spotify - connect to Spotify and return OAuth object
"""
import spotipy
from spotipy.oauth2 import SpotifyOAuth
SCOPES = "u... | 27.2 | 80 | 0.698529 |
cf556fe0579840dc64ac6b121230f3d881ae21c9 | 17,516 | py | Python | prostate_cancer_nomograms/statistical_analysis/nomograms_performance_evaluation/decision_curve_analysis/__init__.py | MaxenceLarose/ProstateCancerNomograms | 4ff15dccd1f2dbde58d3a21a2e680e909e2e408a | [
"Apache-2.0"
] | 1 | 2021-10-04T18:03:10.000Z | 2021-10-04T18:03:10.000Z | prostate_cancer_nomograms/statistical_analysis/nomograms_performance_evaluation/decision_curve_analysis/__init__.py | MaxenceLarose/ProstateCancerNomograms | 4ff15dccd1f2dbde58d3a21a2e680e909e2e408a | [
"Apache-2.0"
] | null | null | null | prostate_cancer_nomograms/statistical_analysis/nomograms_performance_evaluation/decision_curve_analysis/__init__.py | MaxenceLarose/ProstateCancerNomograms | 4ff15dccd1f2dbde58d3a21a2e680e909e2e408a | [
"Apache-2.0"
] | null | null | null | import pandas as pd
from .algo import *
from .validate import *
from .validate import DCAError
__all__ = ['DecisionCurveAnalysis'] # only public member should be the class
def set_threshold_bounds(self, lower, upper, step=None):
"""Sets the threshold boundaries (thresh_*) for the analysis
Notes... | 32.13945 | 99 | 0.565711 |
cf565b37008bf14878731348b0d414b055945931 | 1,493 | py | Python | pyxmp/xmp.py | jeslyvarghese/pyxmp | 94e9f97574230f04b47fbcc7ed2caaa26e125ec4 | [
"MIT"
] | null | null | null | pyxmp/xmp.py | jeslyvarghese/pyxmp | 94e9f97574230f04b47fbcc7ed2caaa26e125ec4 | [
"MIT"
] | null | null | null | pyxmp/xmp.py | jeslyvarghese/pyxmp | 94e9f97574230f04b47fbcc7ed2caaa26e125ec4 | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as ET
from .__keysearch import keysearch
from .__attribute import Attribute
| 37.325 | 68 | 0.578701 |
cf56be3b91ad405a29cca6a62ba0311c0c51443c | 1,424 | py | Python | archieves/checkdata.py | Donsuno/conda | d5c8fb2cc3f724c109b7343cc0bdb93a5afa12ba | [
"BSD-3-Clause"
] | null | null | null | archieves/checkdata.py | Donsuno/conda | d5c8fb2cc3f724c109b7343cc0bdb93a5afa12ba | [
"BSD-3-Clause"
] | null | null | null | archieves/checkdata.py | Donsuno/conda | d5c8fb2cc3f724c109b7343cc0bdb93a5afa12ba | [
"BSD-3-Clause"
] | null | null | null | from ipywidgets import widgets,interact, interact_manual
import numpy as np
import pandas as pd
from IPython.display import display,clear_output
from numpy import arange, sin, pi
import plotly.figure_factory as ff
import re
import matplotlib.pyplot as plt
from IPython.display import Image
from plotly.offline import i... | 37.473684 | 147 | 0.70014 |
cf58512d21f3bb124c3398a2b735d1fa164545ea | 812 | py | Python | accounts/migrations/0002_auto_20180531_1023.py | USKPA-dev/uskpa | 45481ba59a55f2c202723d11dde9e6b457f9b71d | [
"CC0-1.0"
] | 2 | 2018-06-07T13:06:15.000Z | 2022-02-19T07:51:40.000Z | accounts/migrations/0002_auto_20180531_1023.py | USKPA-dev/uskpa | 45481ba59a55f2c202723d11dde9e6b457f9b71d | [
"CC0-1.0"
] | 164 | 2018-04-11T15:11:54.000Z | 2021-09-07T23:58:59.000Z | accounts/migrations/0002_auto_20180531_1023.py | USKPA-dev/uskpa | 45481ba59a55f2c202723d11dde9e6b457f9b71d | [
"CC0-1.0"
] | 3 | 2018-04-24T18:36:57.000Z | 2018-06-08T21:12:34.000Z | # Generated by Django 2.0.5 on 2018-05-31 10:23
from django.db import migrations
| 23.2 | 47 | 0.552956 |
cf58a225d1a16173cd170707ce55c8de870dc56f | 568 | py | Python | sparse/utils.py | ContinuumIO/sparse | 10da2d31f0228f192b3064ab253bc828b3cf1a50 | [
"BSD-3-Clause"
] | 2 | 2017-09-17T21:22:21.000Z | 2019-08-26T02:28:10.000Z | sparse/utils.py | ContinuumIO/sparse | 10da2d31f0228f192b3064ab253bc828b3cf1a50 | [
"BSD-3-Clause"
] | null | null | null | sparse/utils.py | ContinuumIO/sparse | 10da2d31f0228f192b3064ab253bc828b3cf1a50 | [
"BSD-3-Clause"
] | 4 | 2019-03-21T05:38:06.000Z | 2021-02-23T06:26:48.000Z | import numpy as np
from .core import COO
| 19.586207 | 61 | 0.549296 |
cf58f44a787c70c43d9a1a1e3d53a92ccd902710 | 7,019 | py | Python | fusion_platform/translations.py | d-cat-support/fusion-platform-python-sdk | 6f98a60f33a962f6a10861da15affbc28bf4a17a | [
"MIT"
] | null | null | null | fusion_platform/translations.py | d-cat-support/fusion-platform-python-sdk | 6f98a60f33a962f6a10861da15affbc28bf4a17a | [
"MIT"
] | null | null | null | fusion_platform/translations.py | d-cat-support/fusion-platform-python-sdk | 6f98a60f33a962f6a10861da15affbc28bf4a17a | [
"MIT"
] | null | null | null | """
Compiled translations.
author: Matthew Casey
© [Digital Content Analysis Technology Ltd](https://www.d-cat.co.uk)
"""
# Do not modify this file manually as it is built automatically by the localisations.py script.
import i18n
# @formatter:off
i18n.add_translation('session.request_failed', 'API request fai... | 85.597561 | 169 | 0.774327 |
cf5b37ee1fc82e3da020ac4e175a1718c4b48d19 | 115 | py | Python | env.py | olukotun-sandbox/name-button | 8205dc783dd72765d44378b0b6ca354352d21ad5 | [
"MIT"
] | null | null | null | env.py | olukotun-sandbox/name-button | 8205dc783dd72765d44378b0b6ca354352d21ad5 | [
"MIT"
] | null | null | null | env.py | olukotun-sandbox/name-button | 8205dc783dd72765d44378b0b6ca354352d21ad5 | [
"MIT"
] | null | null | null | import os
print('this is home:', os.environ['HOME'])
print('this is circle branch:', os.environ['CIRCLE_BRANCH']) | 23 | 60 | 0.704348 |
cf63128ae3837cdf01a72550d0f6236a6665d83c | 35 | py | Python | scripts/tcutils/tests/cores_ut.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | 5 | 2020-09-29T00:36:57.000Z | 2022-02-16T06:51:32.000Z | tcutils/tests/cores_ut.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | 27 | 2019-11-02T02:18:34.000Z | 2022-02-24T18:49:08.000Z | tcutils/tests/cores_ut.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | 20 | 2019-11-28T16:02:25.000Z | 2022-01-06T05:56:58.000Z | """Unittests for cores module.
"""
| 11.666667 | 30 | 0.657143 |
cf63b316fcbc7d486530689ffda1e935bef34ddd | 7,937 | py | Python | netunnel/server/peer.py | kobimic/netunnel | fe7f627b01deb67e0d7bd7ae949a42db43738785 | [
"Apache-2.0"
] | 18 | 2021-01-20T16:30:47.000Z | 2022-03-08T03:43:11.000Z | netunnel/server/peer.py | kobimic/netunnel | fe7f627b01deb67e0d7bd7ae949a42db43738785 | [
"Apache-2.0"
] | null | null | null | netunnel/server/peer.py | kobimic/netunnel | fe7f627b01deb67e0d7bd7ae949a42db43738785 | [
"Apache-2.0"
] | 4 | 2021-01-24T17:52:26.000Z | 2021-08-08T14:48:03.000Z | from typing import Dict, List
from .static_tunnel import StaticTunnel
from .schemas import StaticTunnelSchema
from ..client import NETunnelClient
from ..common.utils import get_logger
from ..common.exceptions import NETunnelServerNotFound, NETunnelServerError, NETunnelResponseError, NETunnelAuthError
from ..common.auth... | 45.354286 | 157 | 0.666877 |
cf6581484116a18845484669a17d5f8076cfe782 | 2,612 | py | Python | baseline/xray.py | RoliKhanna/Anchor-Free | e3d599b7cbdc988ad7720c1e8324cabe87917d59 | [
"MIT"
] | null | null | null | baseline/xray.py | RoliKhanna/Anchor-Free | e3d599b7cbdc988ad7720c1e8324cabe87917d59 | [
"MIT"
] | null | null | null | baseline/xray.py | RoliKhanna/Anchor-Free | e3d599b7cbdc988ad7720c1e8324cabe87917d59 | [
"MIT"
] | 1 | 2019-11-25T22:08:19.000Z | 2019-11-25T22:08:19.000Z |
from nltk.corpus import reuters
import sys
import numpy as np
from scipy import optimize
# Loading data here
train_documents, train_categories = zip(*[(reuters.raw(i), reuters.categories(i)) for i in reuters.fileids() if i.startswith('training/')])
test_documents, test_categories = zip(*[(reuters.raw(i), reuters.cate... | 28.086022 | 139 | 0.568147 |
cf664ab43e12cf24ecd3e41b3708349ac277b2fd | 2,487 | py | Python | models/deepset.py | sgvdan/OCTransformer | 4bc6861406ea75afd23bdf1608a088dcba99ff14 | [
"Apache-2.0"
] | null | null | null | models/deepset.py | sgvdan/OCTransformer | 4bc6861406ea75afd23bdf1608a088dcba99ff14 | [
"Apache-2.0"
] | null | null | null | models/deepset.py | sgvdan/OCTransformer | 4bc6861406ea75afd23bdf1608a088dcba99ff14 | [
"Apache-2.0"
] | null | null | null | import torch
from torch import nn
# Obtained from: https://github.com/manzilzaheer/DeepSets/blob/master/PointClouds/classifier.py#L58
| 34.068493 | 112 | 0.602734 |
cf6665e0703b869005a49a58e097cb3fc9a32910 | 20,965 | py | Python | dft_workflow/job_analysis/collect_collate_dft_data/test_models_on_diff_oer_sets/test_models_on_diff_oer_sets.py | raulf2012/PROJ_IrOx_OER | 56883d6f5b62e67703fe40899e2e68b3f5de143b | [
"MIT"
] | 1 | 2022-03-21T04:43:47.000Z | 2022-03-21T04:43:47.000Z | dft_workflow/job_analysis/collect_collate_dft_data/test_models_on_diff_oer_sets/test_models_on_diff_oer_sets.py | raulf2012/PROJ_IrOx_OER | 56883d6f5b62e67703fe40899e2e68b3f5de143b | [
"MIT"
] | null | null | null | dft_workflow/job_analysis/collect_collate_dft_data/test_models_on_diff_oer_sets/test_models_on_diff_oer_sets.py | raulf2012/PROJ_IrOx_OER | 56883d6f5b62e67703fe40899e2e68b3f5de143b | [
"MIT"
] | 1 | 2021-02-13T12:55:02.000Z | 2021-02-13T12:55:02.000Z | # ---
# jupyter:
# jupytext:
# formats: ipynb,py
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.4.2
# kernelspec:
# display_name: Python [conda env:PROJ_irox_oer] *
# language: python
# name: conda-env-PROJ_irox_... | 23.582677 | 75 | 0.562127 |
cf677d8bfffcaf593d5e10ff7108b260a1cb5b41 | 2,478 | py | Python | pandoc-wrapfig.py | nsheff/pandoc-wrapfig | d4523cf43ebab47024d7efde27d7ccddfd983d2f | [
"MIT"
] | null | null | null | pandoc-wrapfig.py | nsheff/pandoc-wrapfig | d4523cf43ebab47024d7efde27d7ccddfd983d2f | [
"MIT"
] | null | null | null | pandoc-wrapfig.py | nsheff/pandoc-wrapfig | d4523cf43ebab47024d7efde27d7ccddfd983d2f | [
"MIT"
] | 1 | 2020-08-11T18:35:53.000Z | 2020-08-11T18:35:53.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Pandoc filter to allow variable wrapping of LaTeX/pdf documents
through the wrapfig package.
Simply add a " {?}" tag to the end of the caption for the figure, where
? is an integer specifying the width of the wrap in inches. 0 will
cause the width of the figure to be ... | 38.71875 | 124 | 0.536723 |
cf68743af20103a597b92c1707121c418cb28844 | 34 | py | Python | myscript.py | kRituraj/learnGIt | dad92da290d1aab0713d99af722e86140507e9ab | [
"MIT"
] | null | null | null | myscript.py | kRituraj/learnGIt | dad92da290d1aab0713d99af722e86140507e9ab | [
"MIT"
] | null | null | null | myscript.py | kRituraj/learnGIt | dad92da290d1aab0713d99af722e86140507e9ab | [
"MIT"
] | null | null | null | print("My name is Rituraj Khare")
| 17 | 33 | 0.735294 |
cf697a286088c58c3db9ead0e8a7c5dfcff5c956 | 3,999 | py | Python | las2vola.py | moloned/volumetric_accelerator_toolkit | 8f5cf226a7d788e4dd4215c181db49d9568c6240 | [
"Apache-2.0"
] | 6 | 2019-02-11T14:32:23.000Z | 2021-12-07T09:49:41.000Z | las2vola.py | moloned/volumetric_accelerator_toolkit | 8f5cf226a7d788e4dd4215c181db49d9568c6240 | [
"Apache-2.0"
] | null | null | null | las2vola.py | moloned/volumetric_accelerator_toolkit | 8f5cf226a7d788e4dd4215c181db49d9568c6240 | [
"Apache-2.0"
] | 2 | 2018-10-11T17:29:37.000Z | 2021-09-08T12:01:40.000Z | #!/usr/bin/env python3
"""
Las2vola: Converts Las files into VOLA format.
The ISPRS las format is the standard for LIDAR devices and stores information
on the points obtained. This parser uses the las information
for the nbit per voxel representation. The data stored is: color, height,
number of returns, intensity and... | 32.778689 | 118 | 0.607652 |
cf6a926cdf026b6807d2fbef9356b946cbf88279 | 2,871 | py | Python | pipeline/test_users.py | streamsets/datacollector-tests-external | 6f255b5e7496deeef333b57a5e9df4911ba3ef00 | [
"Apache-2.0"
] | 1 | 2020-04-14T03:01:51.000Z | 2020-04-14T03:01:51.000Z | pipeline/test_users.py | streamsets/test | 1ead70179ee92a4acd9cfaa33c56a5a9e233bf3d | [
"Apache-2.0"
] | 1 | 2019-04-24T11:06:38.000Z | 2019-04-24T11:06:38.000Z | pipeline/test_users.py | anubandhan/datacollector-tests | 301c024c66d68353735256b262b681dd05ba16cc | [
"Apache-2.0"
] | 2 | 2019-05-24T06:34:37.000Z | 2020-03-30T11:48:18.000Z | # Copyright 2017 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 30.542553 | 102 | 0.703239 |
cf6af0cf676fc11ed879ddf07c27b61f75d1ae0d | 1,107 | py | Python | email_client/email_send.py | geeksLabTech/email-client | 0f533f7b33c38d74aec8663ccc6d8116e0a2489d | [
"MIT"
] | 1 | 2021-09-06T16:43:37.000Z | 2021-09-06T16:43:37.000Z | email_client/email_send.py | geeksLabTech/email-client | 0f533f7b33c38d74aec8663ccc6d8116e0a2489d | [
"MIT"
] | null | null | null | email_client/email_send.py | geeksLabTech/email-client | 0f533f7b33c38d74aec8663ccc6d8116e0a2489d | [
"MIT"
] | 2 | 2020-09-13T02:25:50.000Z | 2021-01-06T17:25:38.000Z | import smtplib
from tools.errors import LoginException
from tools.read_config import read_config
| 42.576923 | 91 | 0.515808 |
cf6ccb75aed895f75e03cfa7e1750d857352705e | 1,511 | py | Python | test/test_scores.py | gigantenbein/UNet-Zoo | d157c22ef8041ed743aa7bbcf377f0f8ad85e755 | [
"Apache-2.0"
] | 20 | 2020-02-16T07:20:23.000Z | 2022-03-14T04:11:02.000Z | test/test_scores.py | suyanzhou626/UNet-Zoo | 76d23952d90a45a01da1cc2926b4d3a24a1adb75 | [
"Apache-2.0"
] | 6 | 2021-06-08T21:03:07.000Z | 2022-03-17T13:28:33.000Z | test/test_scores.py | suyanzhou626/UNet-Zoo | 76d23952d90a45a01da1cc2926b4d3a24a1adb75 | [
"Apache-2.0"
] | 5 | 2020-03-20T02:04:49.000Z | 2021-10-20T17:37:52.000Z | """Testing scoring functions"""
import pytest
import os
from importlib.machinery import SourceFileLoader
import utils
import shutil
import torch
import math
import matplotlib.pyplot as plt
import torchvision
| 25.183333 | 106 | 0.743878 |
cf704edeb093695bcc194edf614b3bb53790af9a | 1,074 | py | Python | flask_app/services/twitter_service.py | JenBanks8585/twitoff_Banks | 06f18c1daf5745a2d0890d8d04b87d5282b176d8 | [
"MIT"
] | null | null | null | flask_app/services/twitter_service.py | JenBanks8585/twitoff_Banks | 06f18c1daf5745a2d0890d8d04b87d5282b176d8 | [
"MIT"
] | 4 | 2021-06-08T21:50:24.000Z | 2022-03-12T00:42:59.000Z | flask_app/services/twitter_service.py | JenBanks8585/twitoff_Banks | 06f18c1daf5745a2d0890d8d04b87d5282b176d8 | [
"MIT"
] | null | null | null |
import tweepy
import os
from dotenv import load_dotenv
load_dotenv()
TWITTER_API_KEY = os.getenv("TWITTER_API_KEY")
TWITTER_API_SECRET = os.getenv("TWITTER_API_SECRET")
TWITTER_ACCESS_TOKEN = os.getenv("TWITTER_ACCESS_TOKEN")
TWITTER_ACCESS_TOKEN_SECRET = os.getenv("TWITTER_ACCESS_TOKEN_SECRET")
auth = tweepy.OAuth... | 26.195122 | 140 | 0.733706 |
cf70a281c3c891880251c2d76efe8ac3eb44248a | 1,860 | py | Python | spongeauth/api/tests/test_delete_user.py | felixoi/SpongeAuth | d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26 | [
"MIT"
] | 10 | 2016-11-18T12:37:24.000Z | 2022-03-04T09:25:25.000Z | spongeauth/api/tests/test_delete_user.py | felixoi/SpongeAuth | d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26 | [
"MIT"
] | 794 | 2016-11-19T18:34:37.000Z | 2022-03-31T16:49:11.000Z | spongeauth/api/tests/test_delete_user.py | PowerNukkit/OreAuth | 96a2926c9601fce6fac471bdb997077f07e8bf9a | [
"MIT"
] | 11 | 2016-11-26T22:30:17.000Z | 2022-03-16T17:20:14.000Z | import urllib.parse
import django.shortcuts
import pytest
import faker
import accounts.tests.factories
import api.models
| 26.956522 | 113 | 0.716129 |
cf70d57cf63af1b7800f864d1cbbd1296009fe92 | 2,091 | py | Python | tests/rw_all.py | clayne/retrowrite | 117dad525114bca695317e14affffd4e3de13cce | [
"MIT"
] | 478 | 2019-06-19T09:33:50.000Z | 2022-03-25T09:34:24.000Z | tests/rw_all.py | clayne/retrowrite | 117dad525114bca695317e14affffd4e3de13cce | [
"MIT"
] | 30 | 2019-07-12T09:38:43.000Z | 2022-03-28T04:53:31.000Z | tests/rw_all.py | clayne/retrowrite | 117dad525114bca695317e14affffd4e3de13cce | [
"MIT"
] | 62 | 2019-06-25T16:41:04.000Z | 2022-02-22T15:47:35.000Z | import argparse
import json
import subprocess
import os
from multiprocessing import Pool
if __name__ == "__main__":
argp = argparse.ArgumentParser()
argp.add_argument("test_file", type=str, help="JSON file containing tests")
argp.add_argument(
"--targets",
type=str,
help="Only t... | 27.155844 | 79 | 0.583931 |
cf71a671f7a019cfe847b9abcb8b86b99ffb82ad | 1,552 | py | Python | codeChallenge/Exercise1.py | jocardozo/Rooftop-Challenge | 0fe2ea9823f38a25911a760f286b0d55eb26e553 | [
"MIT"
] | null | null | null | codeChallenge/Exercise1.py | jocardozo/Rooftop-Challenge | 0fe2ea9823f38a25911a760f286b0d55eb26e553 | [
"MIT"
] | null | null | null | codeChallenge/Exercise1.py | jocardozo/Rooftop-Challenge | 0fe2ea9823f38a25911a760f286b0d55eb26e553 | [
"MIT"
] | null | null | null |
'''Funciones auxiliares para el recorrido de la serpiente
'''
x,y = moverEste(figure,x,y,size-1) #Esta por fuera del patron, asi que 'definimos' como movimiento por defecto
d = "s"
'''Recorrido de la serpiente
'''
for i in range(1,size,1):
if (d == "s"):
x,y = moverSur(figur... | 24.25 | 118 | 0.439433 |
cf71e91499d6deed3463b430dfcb4800d8deebe8 | 521 | py | Python | app/database.py | dorneanu/flask-app-template | ea238742f354937a19cd72a32418307dd4a7af1a | [
"MIT"
] | null | null | null | app/database.py | dorneanu/flask-app-template | ea238742f354937a19cd72a32418307dd4a7af1a | [
"MIT"
] | null | null | null | app/database.py | dorneanu/flask-app-template | ea238742f354937a19cd72a32418307dd4a7af1a | [
"MIT"
] | null | null | null | from flask import current_app
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
# Init engine and db_session
#engine = create_engine(current_app.config['SQLALCHEMY_DATABASE_URI'], ... | 37.214286 | 92 | 0.834933 |
cf73010efaaefc559ce2e5d857ca0b89c2eb9c35 | 2,753 | py | Python | tests/conftest.py | Nonse/monkeys | 93681edf18126cc49858992f80df25a7cff931e8 | [
"MIT"
] | null | null | null | tests/conftest.py | Nonse/monkeys | 93681edf18126cc49858992f80df25a7cff931e8 | [
"MIT"
] | null | null | null | tests/conftest.py | Nonse/monkeys | 93681edf18126cc49858992f80df25a7cff931e8 | [
"MIT"
] | null | null | null | import os
import pytest
import random
import config
from monkeygod import create_app, models
from monkeygod.models import db as _db
TEST_DATABASE_URI = 'postgresql://postgres:postgres@localhost/test_monkeydb'
# Adapted from http://goo.gl/KXDq2p
| 24.149123 | 76 | 0.65129 |
cf73290c5bcbebb20fd5e98add009b993c971061 | 8,610 | py | Python | src/classifier.py | WattSocialBot/ijcnlp2017-customer-feedback | 2dccdcfaf26df832343dbb76b1e31a094c578c0e | [
"MIT"
] | 17 | 2017-10-27T20:48:38.000Z | 2020-03-16T15:05:47.000Z | src/classifier.py | WattSocialBot/ijcnlp2017-customer-feedback | 2dccdcfaf26df832343dbb76b1e31a094c578c0e | [
"MIT"
] | null | null | null | src/classifier.py | WattSocialBot/ijcnlp2017-customer-feedback | 2dccdcfaf26df832343dbb76b1e31a094c578c0e | [
"MIT"
] | 3 | 2017-10-28T15:34:26.000Z | 2020-03-09T13:56:40.000Z | __author__ = "bplank"
import argparse
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.pipeline import Pipeline, FeatureUnion
from sklearn.svm import LinearSVC
from sklearn.metrics import accuracy_score, classification_report, confusion_matrix, f1_score
from sklearn.preprocessing import LabelE... | 30.316901 | 180 | 0.589315 |
cf7374d195b400da99176ae7ebdc84ce6102d8fa | 1,329 | py | Python | roles/system/files/boot-setup.py | JesperNaarttijarvi/minotaur-centos-install | df5b9ebdd1ccc717d53c06ef0060c84d72bf8e5e | [
"MIT"
] | null | null | null | roles/system/files/boot-setup.py | JesperNaarttijarvi/minotaur-centos-install | df5b9ebdd1ccc717d53c06ef0060c84d72bf8e5e | [
"MIT"
] | null | null | null | roles/system/files/boot-setup.py | JesperNaarttijarvi/minotaur-centos-install | df5b9ebdd1ccc717d53c06ef0060c84d72bf8e5e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
n_devices = len(os.popen("lspci |grep 'VGA compatible controller: NVIDIA Corporation'").read().rstrip().split("\n"))
if n_devices == 0:
print "fatal: no Nvidia devices found"
sys.exit(1)
with open("/etc/miner-startup.sh","w") as f:
f.write("#!/bin/bash\n")
f.write(... | 37.971429 | 116 | 0.665914 |