blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
400047e04233a252d0fb35fe927e52d1a4db4639 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-sas/aliyunsdksas/request/v20181203/PublicSyncAndCreateImageScanTaskRequest.py | c9bf921c804bb10a29eeaa44219a878d31ae55d6 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,646 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
fff0e6483247918bc0215838062d0a78d3f2aa30 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/venues/karaoke_venue/karaoke_duet_individualsim_situation.py | 3c1e72aaa8387818454955a79a9a54b702283a3c | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\venues\karaoke_venue\karaoke_duet_individualsim_situation.py
# Compiled at: 2016-07-16 01:45:12
# Si... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
a9e79ced7f79f55849f13742310819e73a64dfb1 | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/cassandra_protection_source.py | c79152ddb527ab066e9f0f7c688e1e1fb21e2b99 | [
"Apache-2.0"
] | permissive | cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | Python | UTF-8 | Python | false | false | 3,340 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
import cohesity_management_sdk.models.cassandra_cluster
import cohesity_management_sdk.models.cassandra_keyspace
class CassandraProtectionSource(object):
"""Implementation of the 'CassandraProtectionSource' model.
Specifies an Object representing Cassa... | [
"naveena.maplelabs@cohesity.com"
] | naveena.maplelabs@cohesity.com |
c57bd4cdfecc79a54141289af0ac284ba85f3d3b | bc42b7700ccc0014282f943a20f968dc2172c4c5 | /Day6 : Mask-RCNN on Videos/mask_rcnn_videos.py | 6b1dbe56385fa9916b3bc62811e774e2ed2e25bb | [] | no_license | vgaurav3011/100-days-of-ML-Code-2 | 1a4b6836ac1b378caeed63a253a3d2b71bada32f | 339992040d807f1c382c858b53e35ed2699518d9 | refs/heads/master | 2022-04-27T07:30:10.797553 | 2020-04-22T07:37:53 | 2020-04-22T07:37:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | py | import numpy as np
# import argparse
import random
import time
import cv2
import imutils
import os
mask_rcnn = ''
visualize = False
confi = 0.5
threshold = 0.3
#defining the labels path and
# loading the coco class labels
labelsPath = 'assets/object_detection_classes_coco.txt'
# f = open("demofile.txt", "r")
LABELS... | [
"you@example.com"
] | you@example.com |
91203a59c466da8892ee586d81d8a79b679862ea | 675afeffeda042e39c2bf7453d0f9ee890e7fad0 | /backend/behavior/apps.py | a67424e3f6f777f3e2975ea22c28f86f5a5abe2a | [] | no_license | crowdbotics-apps/behavior-management-25412 | fd4e20d5201cd861f59cc87252a7a7c518ba1d8d | 18dc5330650268f54aa8021c013a71cfdc6eabac | refs/heads/master | 2023-04-04T07:36:17.045282 | 2021-04-08T13:58:10 | 2021-04-08T13:58:10 | 353,739,891 | 0 | 0 | null | 2021-04-08T13:58:11 | 2021-04-01T15:12:20 | Python | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class BehaviorConfig(AppConfig):
name = "behavior"
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
db837659d0416abcd64e830e6dd62418e2d5388a | 01fa2aca31eb73a559d192fd29e44350f26a13a9 | /HAX/18.CocoJoe/script.module.lambdascrapers/lib/lambdascrapers/sources_scrubs/ko/drama4u.py | 1cb35e3200c5d19d766ec5ba2e8f07258beb26e7 | [
"Beerware"
] | permissive | RandomIntermition/k4y108837s | b4beedeff375645bd4fa9ad348631a9a9f3640b6 | e9115aad49795dfe30a96c278cedaf089abcc11d | refs/heads/master | 2022-05-01T18:45:57.298903 | 2022-03-30T03:41:08 | 2022-03-30T03:41:08 | 109,356,425 | 1 | 0 | null | 2019-11-08T02:20:47 | 2017-11-03T05:36:48 | Python | UTF-8 | Python | false | false | 5,121 | py | # -*- coding: UTF-8 -*-
# -Cleaned and Checked on 11-23-2018 by JewBMX in Scrubs.
# Only browser checks for active domains.
import re,urllib,urlparse
from resources.lib.modules import cleantitle,client,directstream,source_utils,dom_parser
class source:
def __init__(self):
self.priority = 1
self.l... | [
"github+github@github.github"
] | github+github@github.github |
5cb5741e1ccf992fab5d6962ca406c0996b96972 | 5e8342e4f6e48688f4a0079310e8f0b5e5386044 | /POO/Alumnos/profesor.py | 7aa8c1fac4b48d3b71088e1d6df86f077606537f | [] | no_license | fernado1981/python_ | 27a154406b5fba7e18da418bc5f75c58f3ccc24f | 7d846cd332405464fa14707ea3f2286a918fc9de | refs/heads/master | 2023-02-15T19:30:02.257345 | 2021-01-21T10:35:46 | 2021-01-21T10:35:46 | 277,186,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | class profesor:
limit = 3
def __init__(self, alumnado, name):
self.alumnos = alumnado
self.name = name
def aprobar(self):
if self.name in self.alumnos:
for c, v in self.alumnos.items():
if c == self.name:
v['aprobar'] = True
def... | [
"fernando.manrique.villanueva@gmail.com"
] | fernando.manrique.villanueva@gmail.com |
14559afff0cea58f13cdd39a5f7e9f4982efc821 | 246ec8733c63a28518160af8fc9e21ae04f76649 | /fairseq/tasks/__init__.py | 92f9d53190d0779fc407d6a8cdfd932a63079362 | [
"MIT"
] | permissive | fyabc/BT4MolGen | 80050dc24031753fa3052ef60a5bea170d9d9c56 | 05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c | refs/heads/master | 2023-05-29T01:38:36.614479 | 2021-06-18T15:56:13 | 2021-06-18T15:56:13 | 370,941,322 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import importlib
import os
from .fairseq_task import FairseqTask
TASK_REGISTRY = {}
TASK_CLASS_NAMES = set()
def setup_tas... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
dd82e1fdbc12fe353273aa0cb0856e221ae8ae1f | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /1heptane/pdep/network80_2.py | ba991ad5df7eb1552abf800c3f4a2b3950a8c035 | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 17,219 | py | species(
label = 'CH2OH(24)',
structure = SMILES('[CH2]O'),
E0 = (-28.7184,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([3000,3100,440,815,1455,1000,3003.59,4000],'cm^-1')),
HinderedRotor(inertia=(0.057913,'amu*angstrom^2'), symmetry=1, barrier=(25.9304,'kJ/mol'), semiclassical=F... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
9ebae106d0ffd798ae05342b8bf2684406293bbf | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2016_01_28_gsh_database_codes/plot_slice_compare_uniaxial2cyclic.py | d45d2d052bb44de92754eebaa18e75b9cd20c0cf | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import h5py
f = h5py.File('slice.hdf5', 'r')
slc_uni = f.get('slice_uni')[...].real
slc_cyc = f.get('slice_cyc')[...].real
par = f.get('parameters')[...]
f.close()
th = np.round(par[0]*180./np.pi, 2)
phi2 = np.round(par[1]*180... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
6f03b5b578c7f4027dd73f0fbcbb4198d4c5e38f | 15b3b60252af3e5ebd8be4a9fbcccc96469acaad | /pre_clean.py | 30bfe2e18f4c68a8065eef0a6895f5ac0df7ba16 | [] | no_license | yingl/jkb | b6d50cd5d5ba64798a28f6948f1490f334f52b97 | fdf68dee5fbe5a9cfbf2a41af78d2f2ec16a459c | refs/heads/master | 2020-03-28T11:59:47.752625 | 2020-01-23T06:49:46 | 2020-01-23T06:49:46 | 148,262,569 | 10 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('-fi',
'--filein',
type=str)
parser.add_argument('-fo',
'--fileout',
type=str)
return parser.parse_args()
if __name__... | [
"linying_43151@163.com"
] | linying_43151@163.com |
517a5b458cf820892048f7df658197d34e5aadd7 | c1869b7106a4651ecc0f0f53b82d5f11021896e3 | /examples/DKVMN/DKVMN.py | 22aaa5b5608ca405710ad4a60415fbe0a2e2f8ae | [
"MIT"
] | permissive | bigdata-ustc/XKT | 6efd7ff5b09c22ed9099f5b9b614edceff1cada0 | b3ac07541b92001b62d7cff4e8fe7e5a69c5c93c | refs/heads/master | 2021-09-22T19:22:25.563651 | 2021-09-16T02:56:10 | 2021-09-16T02:56:10 | 194,855,614 | 18 | 9 | MIT | 2021-09-16T02:56:11 | 2019-07-02T12:06:12 | Python | UTF-8 | Python | false | false | 699 | py | # coding: utf-8
# 2021/5/26 @ tongshiwei
import mxnet as mx
from XKT.DKVMN import etl
from XKT import DKVMN
batch_size = 32
train = etl("../../data/a0910c/train.json", batch_size=batch_size)
valid = etl("../../data/a0910c/valid.json", batch_size=batch_size)
test = etl("../../data/a0910c/test.json", batch_size=batch_s... | [
"tongsw@mail.ustc.edu.cn"
] | tongsw@mail.ustc.edu.cn |
a5669df662c5cbc0c978c08431dfe48e19ea5151 | bf4178e73f0f83781be6784d7587cb34a38d6edd | /platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/ocelot/filters/phy_filters.py | e49ca3348ff7ba8253f8aecb5959917a02921b04 | [] | no_license | kolbertv/ZigbeeSiliconV3 | 80d70515e93be1413c24cdcb3485f50c65a1564b | ab0bd8d4bb6c1048adef81d0e66d96006c2fabd9 | refs/heads/master | 2023-01-02T07:18:01.393003 | 2020-10-25T15:33:08 | 2020-10-25T15:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | """
Lynx specific filters
"""
from pyradioconfig.calculator_model_framework.interfaces.iphy_filter import IPhyFilter
class PhyFilters(IPhyFilter):
#Studio black list (files removed before Studio distribution)
customer_phy_groups = [
'Phys_Internal_Base_Customer_Aclara',
... | [
"1048267279@qq.com"
] | 1048267279@qq.com |
69d80edf9f62e78f34fc9b40f7ed035eb1dba0cd | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/notmuch.py | 2d64141806c5209a2c04e5546647640e733fe6b2 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | from .base import GnuRecipe
class NotMuchRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(NotMuchRecipe, self).__init__(*args, **kwargs)
self.sha256 = 'b4bf09ec9b7b64180704faa26d66cad5' \
'f911a5a00ef812da34cb02c3f8872831'
self.name = 'notmuch'
s... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
6eb155a4ac3b2b0359f9044b2ae585107b9319e7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03149/s623046352.py | 95d3c7f2b6e2b5f32f1a52e47749d1a99cffe089 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | print("YES" if set(map(int,input().split()))=={1,9,7,4} else "NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a74c31405dbceed57f5ce2704ff493613ace4432 | ceed8ee18ab314b40b3e5b170dceb9adedc39b1e | /android/external/libchrome/base/base.gyp | dc484f4a4a62b0d2aa9804b29ba98c235dc7f7a3 | [
"BSD-3-Clause"
] | permissive | BPI-SINOVOIP/BPI-H3-New-Android7 | c9906db06010ed6b86df53afb6e25f506ad3917c | 111cb59a0770d080de7b30eb8b6398a545497080 | refs/heads/master | 2023-02-28T20:15:21.191551 | 2018-10-08T06:51:44 | 2018-10-08T06:51:44 | 132,708,249 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60,092 | gyp | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/win_precompile.gypi',
'base.gypi',
],
'targets': [
{
'tar... | [
"Justin"
] | Justin |
00c249df496d497a62d7988f77d4d095b9b8644e | 925f6b2376bcdcf175194b4f390beeffb57d67e0 | /sosmypc/sosmypc/core/forms.py | c69f02eae6de9e7a5494462446fa674876afd469 | [] | no_license | CoutinhoElias/sosmypc | a0a86f0c05f5f0d6e0beb3a7b22da73ed8951ac4 | ce77520f0e7fe33441de030f85c85c4fccce8afb | refs/heads/master | 2021-01-18T23:21:22.377626 | 2016-06-02T18:07:27 | 2016-06-02T18:07:27 | 53,994,124 | 1 | 1 | null | 2016-05-18T19:29:35 | 2016-03-16T02:23:09 | JavaScript | UTF-8 | Python | false | false | 6,118 | py | import datetime as datetime
from django import forms
from django.contrib.auth.forms import UserCreationForm
from material import Layout, Row, Fieldset, Span3, Span2, Span10, Span8, Span7, Span5
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout
from .models import ProfissoesPessoa, Qua... | [
"coutinho.elias@gmail.com"
] | coutinho.elias@gmail.com |
cd9eca8fdea4985097b9053005381853c3e81a01 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/contrib/nn/python/ops/alpha_dropout_test.py | a46269392668d58794c05b147c0b616940dd905c | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,629 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
b275fe795cf9ab1470d80878cc1dcd2f8bff4dfb | 2e7fa13a40dafa81c5852b7a9d70555c45814574 | /QT/pyqt/Qline_Edit.py | 84efff4077167ce8cc0584f2f562a6c1388a02b6 | [] | no_license | Ziaeemehr/miscellaneous | 5768c6f5a2fe76468faed4283a3572a44ccd0239 | 43a62aaa28c577b09f605a135818a2dacc75d67c | refs/heads/master | 2021-07-24T02:43:51.032849 | 2020-09-23T06:17:17 | 2020-09-23T06:17:17 | 217,556,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
def window():
app = QApplication(sys.argv)
win = QWidget()
e1 = QLineEdit()
e1.setValidator(QIntValidator())
e1.setMaxLength(4)
e1.setAlignment(Qt.AlignRight)
e1.setFont(QFont("Arial",20))
e2 = QLineEdit()
e2.setVali... | [
"a.ziaeemehr@gmail.com"
] | a.ziaeemehr@gmail.com |
7be4d69ad6872e1ec239fc9e76020f4128811aa0 | a0f7cd0dac6b24ca8f0eb26e13f55e7d3bfd6073 | /tutorgame/regexapp/migrations/0001_initial.py | 5fcf0d31f6456839a59a6d71d3b5d49dd99c32ce | [] | no_license | tomaccosheep/capstone-draft-7 | 217d0e279c7a3a25207f084ee5f148de5815fe0c | 0a66c24397d2c0d4878a057c6bdd21a1009b15b6 | refs/heads/master | 2021-01-22T17:49:05.881406 | 2017-08-14T19:00:19 | 2017-08-14T19:00:19 | 102,405,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-13 18:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Card_M... | [
"al.burns.email@gmail.com"
] | al.burns.email@gmail.com |
a8ff5cf0bc6c164790c98a11d4fee5fbabbc3acc | 669be04e813baf7ac5a444ff9197237a8674126d | /product.py | 0fec1a80bb34ec37fb8020167d1acab1e59d7db0 | [] | no_license | vangali12/PythonOOP | d24d588eddfa6b03919dd6735b8bf3c898630425 | 579d365981b9d1520ec88dcbfe52147745be94ef | refs/heads/master | 2021-07-08T04:07:00.184547 | 2017-10-05T19:07:37 | 2017-10-05T19:07:37 | 105,929,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | class Product(object):
def __init__(self, price, name, weight, brand, cost):
self.price = price
self.name = name
self.weight = weight
self.brand = brand
self.cost = cost
self.status = "sale"
def sell(self):
self.status = "sold"
return self
def addTax(self, tax):
self.price = self.price + (self.pric... | [
"30483940+vangali12@users.noreply.github.com"
] | 30483940+vangali12@users.noreply.github.com |
311c308c4f86c1fc335a834b79971196dc1408b7 | f000fa4e6ef1de9591eeabff43ba57b7bf32561d | /tests/api/views/v1/test_api_role.py | 93c7a8cc9a38f118dfa72b73518a74bbaa4126b7 | [] | no_license | VictorDenisov/ceph-lcm | 1aca07f2d17bfda8760d192ffd6d17645705b6e4 | 3cfd9ced6879fca1c39039e195d22d897ddcde80 | refs/heads/master | 2021-01-15T09:19:23.723613 | 2016-09-17T01:18:45 | 2016-09-17T01:18:45 | 68,424,913 | 0 | 0 | null | 2016-09-17T01:17:36 | 2016-09-17T01:17:36 | null | UTF-8 | Python | false | false | 10,881 | py | # -*- coding: utf-8 -*-
"""This module has tests for /v1/role API."""
import uuid
import pytest
from cephlcm.common.models import role
@pytest.fixture
def mongo_collection(pymongo_connection):
return pymongo_connection.db.role
@pytest.fixture
def clean_role_collection(mongo_collection, sudo_role):
mongo... | [
"sarkhipov@mirantis.com"
] | sarkhipov@mirantis.com |
0a27983665eca4c578a5013cd7157737e2c6dec8 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/automox/icon_automox/actions/run_command/action.py | c10f2f3ba76d3af402ecb5308a617e712b5da48f | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 1,408 | py | import insightconnect_plugin_runtime
from .schema import RunCommandInput, RunCommandOutput, Input, Output, Component
# Custom imports below
class RunCommand(insightconnect_plugin_runtime.Action):
def __init__(self):
super(self.__class__, self).__init__(
name="run_command", description=Compone... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
9a42e5f17ab99a99ebc15ec69c703a5a312f984f | 2c4648efe8c7e408b8c3a649b2eed8bb846446ec | /codewars/Python/8 kyu/ValidateCodeWithSimpleRegex/validate_code_test.py | 8aefdd9d13dd8eab5601b43efe0c1ecca12ebe4b | [] | no_license | Adasumizox/ProgrammingChallenges | 9d79bd1b0ce4794b576124f9874aabb86d5c0713 | 3630fcde088d7991e344eb1b84805e9e756aa1a2 | refs/heads/master | 2021-07-16T08:16:57.538577 | 2020-07-19T19:58:28 | 2020-07-19T19:58:28 | 190,159,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from validate_code import validate_code
import unittest
class TestValidateCodeWithSimpleRegex(unittest.TestCase):
def test(self):
self.assertEqual(validate_code(123), True)
self.assertEqual(validate_code(248), True)
self.assertEqual(validate_code(8), False)
self.assertEqual(validate_cod... | [
"darkdan099@gmail.com"
] | darkdan099@gmail.com |
d5854818d5e3e6c8e2cdd670b2817f56b180997d | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.elastictranscoder.Preset-python/__main__.py | 65842b4d7b1e0d1857cb2f1f1a92513b38482b13 | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | import pulumi
import pulumi_aws as aws
bar = aws.elastictranscoder.Preset("bar",
audio={
"audioPackingMode": "SingleTrack",
"bitRate": 96,
"channels": 2,
"codec": "AAC",
"sampleRate": 44100,
},
audio_codec_options={
"profile": "AAC-LC",
},
container="... | [
"jvp@justinvp.com"
] | jvp@justinvp.com |
2e7a3c78dc70b3d8601a2cc34252103d8834c6d2 | 4da9c19d9839c670fda30a45a7e223da624eee4a | /Codechef Problem solutions/chef and happiness new.py | c2f55bca41451258e8ad08c4309a6725aa068313 | [] | no_license | JineshKamdar98/Codchef-Problem-Solutions | 3e1737669cc0657ccc224e06f800b587130f5787 | 4447679aa3fb45a2d57f93bf3f724f6223049506 | refs/heads/master | 2020-05-05T06:38:10.306619 | 2019-04-06T06:16:10 | 2019-04-06T06:16:10 | 179,795,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | for t in range(int(input())):
n=int(input())
a=list(map(int,input().split()[:n]))
a.sort()
index=[]
value=[]
f=0
for i in range(n-1,-1,-1):
if((a[i]-1) in index):
f=0
break
else:
index.append(a[i]-1)
value.append(a[... | [
"noreply@github.com"
] | JineshKamdar98.noreply@github.com |
29904bf7638508da99c3a12ea8f0679def218f3a | 4148260054c2cf4605dacb8bdef3605c82eca470 | /temboo/Library/Google/Picasa/AddCommentToPhoto.py | 8f14bfc24bb5d18a65fd905bcc1b74a6b9fa4d9f | [] | no_license | wimsy/actuarize-web | 0f23d5f00afe3d36d430621cdb497d2e64998416 | 5f43af3019da6fb08cafeec9ff0a89df5196b864 | refs/heads/master | 2021-03-12T19:38:21.887681 | 2012-12-19T01:13:50 | 2012-12-19T01:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,767 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# AddCommentToPhoto
# Adds a comment to a specified photo in Google Picasa.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography i... | [
"mike.wimsatt@gmail.com"
] | mike.wimsatt@gmail.com |
2c683ab4db0dca1536a5101026e78e0f0ce3d233 | 707287238a36b8e5f3e26c347cca580549b441e5 | /combgen/linexts/pruesse_ruskey/coroutine/gen_all_no_sign.py | 9c51d769c4821cbf0a96ea4b8610985ba7f55d44 | [] | no_license | sahands/coroutine-generation | 2a01e3c5a36fc6b82d8087a15591a452e4bca636 | f0b318016b8925b2ab16640a588210548f7989db | refs/heads/master | 2016-09-06T04:54:02.453166 | 2015-01-06T21:32:58 | 2015-01-06T21:32:58 | 17,954,406 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from .gen_all import gen_all
def gen_all_no_sign(n, poset, a_b_pairs):
for i, pi in enumerate(gen_all(n, poset, a_b_pairs)):
if i % 2 == 0:
yield pi[1:]
| [
"sahands@gmail.com"
] | sahands@gmail.com |
f742b40048d600de11e340648eb9e41f0de18b24 | adde5784379cba18934bc32bd779959ccc8bc94f | /redash/query_runner/exasol.py | 790fb7d7475c18e969c6cb22d50a6751c0be4eae | [
"BSD-2-Clause"
] | permissive | YuanlvCold/mxzz-bi | 32292a8cafb4097fcb60e70917849a2f23e5511f | 7cae1b80e2f715d0af7ca912d1793668353c4b9e | refs/heads/master | 2022-12-02T04:39:06.631341 | 2020-08-17T06:46:19 | 2020-08-17T06:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,668 | py | import datetime
from redash.query_runner import *
from redash.utils import json_dumps
def _exasol_type_mapper(val, data_type):
if val is None:
return None
elif data_type["type"] == "DECIMAL":
if data_type["scale"] == 0 and data_type["precision"] < 16:
return int(val)
... | [
"2426548297@qq.com"
] | 2426548297@qq.com |
9f9ad3e97589ce06abe60f4f50a7a25348e188fb | 0f0a0d5672bf40438d68ad523f484da0760407e8 | /Intro to Tensorflow/regression.py | 09dcf16265433ca238162899742a45f9e63ad631 | [
"MIT"
] | permissive | ITSJKS/100-Days-of-ML-Code | 45b3c4873df7e8684308003b8cc860a08000e11b | 677d8d6a19ae63d3aa2ddd74e9ce8ae7a06b71df | refs/heads/master | 2023-04-14T06:22:04.196837 | 2019-01-21T07:58:59 | 2019-01-21T07:58:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 22 19:01:05 2018
Tensorflow implementation of the iris dataset classification
@author: Vishal
"""
#Using a linear classifier
import tensorflow.contrib.learn as tf
from sklearn import datasets, metrics
iris = datasets.load_iris()
clf = tf.TensorFlowLinearClassifier(n_cla... | [
"vishal114186@gmail.com"
] | vishal114186@gmail.com |
765b1ab039eeab0f545d9ebe0eaed5446fb91029 | a3acbac8cc1ab10ebd6459d5204459a31d5ca77a | /re_2dmap_extractor/src/re_2dmap_extractor/srv/_RequestLocMap.py | d92a36d12b3d2b31a2716dceebc8d47e870372b0 | [] | no_license | flavoi/roboearth | 970904486b385a9930ac853f13bbf8e82f48288d | 517a611c2531781dea7835c1cd2d80ff7e143638 | refs/heads/master | 2020-04-10T00:30:55.822173 | 2017-12-28T11:35:42 | 2017-12-28T11:35:42 | 6,952,511 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 14,206 | py | """autogenerated by genpy from re_2dmap_extractor/RequestLocMapRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import re_msgs.msg
class RequestLocMapRequest(genpy.Message):
_md5sum = "a31bdc686743a8e0baa91632efca1e98"
_type = "re_2dmap_ex... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
2e4709fffd71fb1f3063ee6d4fb22fb9316304a7 | 995a74ba81cafedfbc37358e3aa68027420fee08 | /crawler/kcc/kcc/spiders/councilors.py | aeec24518703e57889f4df657437621d22615fc3 | [
"CC0-1.0"
] | permissive | inno-v/councilor-voter-guide | 21c0cb64f6ba814c397e455e14028abc092f8cb3 | f394cfaaeb83852b1feeef91bff08cbe29b15bb2 | refs/heads/master | 2021-01-21T03:31:16.850558 | 2014-09-10T15:29:38 | 2014-09-10T15:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,128 | py | # -*- coding: utf-8 -*-
import re
import urllib
from urlparse import urljoin
import scrapy
from scrapy.http import Request, FormRequest
from scrapy.selector import Selector
from kcc.items import Councilor
def GetDate(text):
matchTerm = re.search(u'''
(?P<year>[\d]+)[\s]*(年|[.])[\s]*
(?P<month>[\d]... | [
"twly.tw@gmail.com"
] | twly.tw@gmail.com |
3dc9f20502373cff728ee33faf9c522efd1ec8fc | fec863b67ec1ae65da7111bd8c77d0ab2ef1f6ce | /movie recommendation system/.history/testimportpython_20210430234858.py | e6c7b09f43d29238374e89404f4d08be511f11de | [] | no_license | kannan768/movie-recommendation-system | e6cf71620e25a0185fed3b37896137f1f39b0801 | 7460d440d44e77390e459ab10c535b6971c9c3ab | refs/heads/main | 2023-05-14T02:21:50.930672 | 2021-06-09T05:02:30 | 2021-06-09T05:02:30 | 375,225,316 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | import pymongo
import pandas as pd
client=pymongo.MongoClient("mongodb:local") | [
"kannanbsk1609080@gmail.com"
] | kannanbsk1609080@gmail.com |
c1dda275c9eb15fcb582e6bb36c529df26a40a49 | 163cb4945b7096559b02ced7f547189842373d6a | /pymethods/arrays/Pointsurface.py | c22fe0a7c8e40e3b55bfb921934d29a863e71130 | [] | no_license | mirasobhy/pymethods | 1e3de553648c8ff94c1dcf2bf98667208a0c21c9 | 7d72049c6a9be491aa92c2fc1828eb498bf281f4 | refs/heads/master | 2020-12-28T14:23:19.683888 | 2020-02-05T04:21:31 | 2020-02-05T04:21:31 | 238,367,632 | 0 | 0 | null | 2020-02-05T04:28:20 | 2020-02-05T04:28:19 | null | UTF-8 | Python | false | false | 10,781 | py | try:
from pymethods import (arrays, utils, pyplot, math, algorithms)
except ImportError:
from .. import arrays, utils, pyplot, math, algorithms
import pyvista as pv
from scipy.spatial import cKDTree
import numpy as np
import multiprocessing
from functools import wraps
import logging
_n_cpus = multiprocessing.cp... | [
"38807452+hj40@users.noreply.github.com"
] | 38807452+hj40@users.noreply.github.com |
7d851a9a75ada74b98b107a496c6122be5559ee5 | 578d83b3c4b08ec703b2d66fb073a00224ef7ab0 | /fortimanager/library/fortios_vpn_certificate_crl.py | ec7b1318709b364a8303c8aa1d69395f663e5f7c | [] | no_license | prajavat/fortiget | 9cb73760b1704db9e633ef835ea6b6947ba87647 | 7ed08b1b98284b21934743c1830629c5b48b510c | refs/heads/main | 2023-06-29T18:29:51.963775 | 2021-08-05T07:53:03 | 2021-08-05T07:53:03 | 334,605,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,667 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"prashant@cloudstake.com"
] | prashant@cloudstake.com |
218de8abbc9bfd77742d7ab9ac813686655e4ae3 | 46d2a73deb63f81554c478822459a41f09d8519c | /github/objects/projectcard.py | 4b94450c49a4edf517c719c3e31c973f8a74e7dd | [
"Apache-2.0"
] | permissive | ByteMeDirk/github.py | ad036aef661adc4d9a06239f52b79acd5230c430 | 14b14f857fb85c35b5d14ba073afc36e339199b9 | refs/heads/master | 2023-08-10T17:40:52.783117 | 2020-08-13T23:54:55 | 2020-08-13T23:54:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,230 | py | """
/github/objects/projectcard.py
Copyright (c) 2019-2020 ShineyDev
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 ... | [
"contact@shiney.dev"
] | contact@shiney.dev |
43876ba54601bc0d0ee260b3f6b6a8ad88551d0d | 730430ba3b45d5728ef044863598199bfa33aaaa | /examples/Baselines/Halite_competition/torch/rl_trainer/replay_memory.py | b4c790801b49cecbdfda042bfbf8dbcc81e1227a | [
"Apache-2.0"
] | permissive | PaddlePaddle/PARL | 062d1b4a5335553be6cdfc33ad12f07ebbcd7310 | 3bb5fe36d245f4d69bae0710dc1dc9d1a172f64d | refs/heads/develop | 2023-08-09T02:12:39.741551 | 2023-05-19T17:52:25 | 2023-05-19T17:52:25 | 131,044,128 | 3,818 | 988 | Apache-2.0 | 2023-07-28T03:59:20 | 2018-04-25T17:54:22 | Python | UTF-8 | Python | false | false | 3,684 | py | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
9825285fd8b02cec04445d56367f20d53ae3c2d7 | 85ac9f05432a2a4299cb43969395fd7865e78267 | /entrega4/src/pruebas/process_redirections_to_turtle.py | 7e480559ab44f750fdf039792dc86192344abdfd | [] | no_license | pablodanielrey/twss | 72d8056c2f3fd2a70d465d3176802dbc019fd022 | b533fa6e0ea86460d8ccb49ec554a6f6e7ab4352 | refs/heads/master | 2023-05-20T03:06:23.078921 | 2021-06-12T23:31:13 | 2021-06-12T23:31:13 | 352,428,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | import sys
import json
import requests
import re
def get_content(req):
if (req.status_code >= 300 and req.status_code < 400):
''' es una redirección '''
url = req.headers['Location']
assert url != None
req = requests.get(url, headers={'Accept':'text/turtle'}, allow_redirects=False)... | [
"pablodanielrey@gmail.com"
] | pablodanielrey@gmail.com |
009bd21a3d2025431d689ed24c60ffaf15d6dd35 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_threesomes.py | 7e62196108961159ab33296a6027c68b9f050abc | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _THREESOMES():
def __init__(self,):
self.name = "THREESOMES"
self.definitions = threesome
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['threesome']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bf2f71d4544d180707bbd68d82738833911d9391 | a41742023c5725a3e5cfbf50a54601dbe0416855 | /evafm/database/models.py | 41fcb478214df0029c4445d44854f7a1e9d9ee17 | [] | no_license | UfSoft/EvAFM | 1cccb6651833565ccc2e3d241a2e70040e999291 | 72dca1c40ca6ae90d4228ac0e208c623ed6c5d3b | refs/heads/master | 2020-04-15T04:42:43.690612 | 2011-01-21T23:15:51 | 2011-01-21T23:15:51 | 26,618,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,880 | py | # -*- coding: utf-8 -*-
"""
evafm.core.database.models
~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: © 2011 UfSoft.org - Pedro Algarvio (pedro@algarvio.me)
:license: BSD, see LICENSE for more details.
"""
import os
import re
import sys
import logging
from os import path
from operator import itemgetter
from ... | [
"ufs@ufsoft.org"
] | ufs@ufsoft.org |
e6099d9bca20c1e703ed995f7d4e83cb35feb56d | 13d222bc3332378d433835914da26ed16b583c8b | /src/pemjh/challenge111/main.py | 55ded9f15d33ecae72908afa7c8d34a24369a64e | [] | no_license | mattjhussey/pemjh | c27a09bab09cd2ade31dc23fffac07374bea9366 | 2ebb0a525d2d1c0ee28e83fdc2638c2bec97ac99 | refs/heads/master | 2023-04-16T03:08:59.390698 | 2023-04-08T10:54:00 | 2023-04-08T10:54:00 | 204,912,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | """ Challenge111 """
# pylint: disable=missing-docstring
from pemjh.numbers import is_prime
def build_nums(repeated, other):
if len(repeated) > 0:
if len(repeated) > 1 or len(other) > 0:
for num in build_nums(repeated[1:], other):
yield [repeated[0]] + num
els... | [
"matthew.hussey@googlemail.com"
] | matthew.hussey@googlemail.com |
deaf64a7afcb6d1a9c81b881eef0fa76f4e156d2 | 1f4239936f18b709e82a965022d5d549238bb620 | /klein/test/util.py | 9755e2b9e215d85c5b5aa3c33130e6e879e8b915 | [
"MIT"
] | permissive | WnP/klein | 2165625dcbacb77bc2789dad6c4379685d634d0b | a07a6742abbd2418f2b42bf951ab11de23885c0f | refs/heads/master | 2020-12-25T21:12:27.192758 | 2014-05-14T22:27:06 | 2014-05-14T22:27:06 | 19,759,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | import twisted
from twisted.trial.unittest import TestCase
from twisted.python import failure
from twisted.python.versions import Version
if twisted.version < Version('twisted', 13, 1, 0):
class TestCase(TestCase):
def successResultOf(self, deferred):
result = []
deferred.addBoth... | [
"haggardii@gmail.com"
] | haggardii@gmail.com |
b5199780ed75b7319552b04200ef132351c6e4be | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/securitycenter/v1p1beta1/securitycenter-v1p1beta1-py/google/cloud/securitycenter_v1p1beta1/services/security_center/transports/grpc_asyncio.py | d39b77cab1dcfc5bbc94c50ed491e85f795a3798 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,798 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
72985b6e699ed82ff22ee8a2afdb80209e328897 | 7a431bf2a221a9b06a7239e6190c66a7de9b9b87 | /bagpipe/bgp/vpn/evpn/linux_vxlan.py | 0dcc7a7dc8a8d42f9c6691ac3ca9f628eadf0c60 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | matrohon/bagpipe-bgp | c7bbe84d17d6e3838fef1a00616ba76a31fc96f6 | e0366ea14d3775106e6a4e11bce273647b936071 | refs/heads/master | 2020-12-14T08:50:55.223325 | 2016-03-09T16:59:54 | 2016-03-09T16:59:54 | 33,677,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,750 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# encoding: utf-8
# Copyright 2014 Orange
#
# 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
#
# Un... | [
"thomas.morin@orange.com"
] | thomas.morin@orange.com |
b62869b2ea9ec7ee576a4f420b28e4a11c073e56 | 82319ec6aaf462f6823f43946a7f4a0624bffa20 | /Mariana/candies.py | 0cf5f3dbec3776bc67771d2ceb5bca91f91c772a | [
"Apache-2.0"
] | permissive | enterstudio/Mariana | b76a382f5873f9bf83837e9f5190ab6684e14972 | 6b186d93c5fe5521603a389e975595e45e1ea5d2 | refs/heads/master | 2021-04-29T04:30:21.627507 | 2017-11-21T16:30:55 | 2017-11-21T16:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | import sys, time
import Mariana.settings as MSET
MESSAGE_LOG_FILE = None
def friendly(msgSubject, msg, warning=False, flush = True) :
"""Prints a friendly message"""
global MESSAGE_LOG_FILE
m = " " + msg.replace("\n", '\n ')
if warning :
subject = "WARNING: " + msgSubject
else :
subject = msgSubject
... | [
"tariq.daouda@umontreal.ca"
] | tariq.daouda@umontreal.ca |
3d176dce7202f238b832138d2285f99c932b6cae | 3d7860f969ee69585b476fb22ff2ee1cff587eab | /src/inventory/migrations/0003_auto_20180123_1811.py | 56cdec16960d437cfa3a33d52bc9d1ce1df42bb9 | [] | no_license | niketanmoon/inventory1 | c8778c89eb641dd35d75589c3ffb8d8c200eec34 | 7cb204c5ee5519c89bced51e55675f9d0f3475b0 | refs/heads/master | 2022-10-19T01:31:37.915746 | 2018-01-24T09:32:25 | 2018-01-24T09:32:25 | 118,739,027 | 0 | 1 | null | 2022-10-11T05:56:48 | 2018-01-24T08:56:48 | Python | UTF-8 | Python | false | false | 707 | py | # Generated by Django 2.0.1 on 2018-01-23 12:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0002_auto_20180117_1255'),
]
operations = [
migrations.AlterField(
model_name='computer',
name='Acquisi... | [
"niketanmoon@gmail.com"
] | niketanmoon@gmail.com |
4a598d2367df91c2132f36ba1260a08e69c2849f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_156/405.py | aeb8d5ee9d8ab943436dd2561792b7b36aab3233 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | for j in range(int(raw_input())):
I = int(raw_input())
A = list(map(int, raw_input().split(" ")))
result = max(A)
Z = 2
while Z < result:
result = min(result, sum([(x - 1) // Z for x in A]) + Z)
Z += 1
print 'Case #%d: %s' % (j + 1, result) | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2066d3c55c24d18937568e13c5eed223311a3637 | 7876cdf2db81f57998578823f677536e85691075 | /jsongraph/binding.py | e269afb396a71490c93d62c230d23fdd84b24a4d | [
"MIT"
] | permissive | backgroundcheck/jsongraph | fe43b2d1bd3c762639614e513cd727bc93a89a0c | 35e4f397dbe69cd5553cf9cb9ab98859c3620f03 | refs/heads/master | 2021-01-17T11:43:40.447531 | 2015-10-02T13:20:53 | 2015-10-02T13:20:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | from rdflib import Literal, URIRef
# from rdflib.term import Identifier
# from rdflib.namespace import RDF
from jsonmapping import SchemaVisitor
from jsongraph.util import is_url, safe_uriref
from jsongraph.vocab import BNode, PRED, ID
class Binding(SchemaVisitor):
@property
def uri(self):
val = se... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
5bb04a05fca219f33e78261c8eabe59102d646b5 | fb82fdf706863465b1f357cd1fa0447474cd8a70 | /ServerComponent/venv/Lib/site-packages/rsrc/framework/view.py | 33c4500d6b89d88f27d05dc9d26bfb47d98bb8b9 | [
"MIT"
] | permissive | CDU55/FakeNews | d79e2a069b3f1392f779d5b2256cd54c696e789a | 707bd48dd78851081d98ad21bbdadfc2720bd644 | refs/heads/main | 2023-02-20T06:27:18.618837 | 2021-01-17T15:14:27 | 2021-01-17T15:14:27 | 305,167,221 | 0 | 1 | MIT | 2020-12-07T19:51:46 | 2020-10-18T18:16:49 | Python | UTF-8 | Python | false | false | 2,331 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import json
import functools
from rsrc import Request
def response(method):
@functools.wraps(method)
def decorator(self, *args, **kwargs):
resp = method(self, *args, **kwargs)
data = json.dumps(resp.data)
... | [
"48147775+BiancaChirica@users.noreply.github.com"
] | 48147775+BiancaChirica@users.noreply.github.com |
f49f3f5b667f54e765d0a80a7fa5d26295c46453 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_29256.py | 924ec987143f729b08f0842e3acfffa9bd2a048a | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,832 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
be8697cb49a18120c3513f680f36a42111d156ed | e21e7623d99312dc8a4c0eedc0febb22d24c7918 | /venv/lib/python3.8/site-packages/pyp2p/rendezvous_client.py | eee0fb064138eecdbbc7dc7e63861d063e5a2c91 | [] | no_license | axelonet/E-voting-system-on-blockchain | 49aa9b2b45f75e85ed9de4d113849c1f3d95dd1d | 2651bab50f29a2b68ad17b2d2240279af2f24419 | refs/heads/master | 2023-01-04T04:03:44.817356 | 2020-04-15T06:06:36 | 2020-04-15T06:06:36 | 255,822,230 | 1 | 0 | null | 2020-10-25T11:52:19 | 2020-04-15T06:12:39 | null | UTF-8 | Python | false | false | 29,185 | py | """
This module handles all the operations required to bootstrap
the peer-to-peer network. It includes a custom client for
talking to the Rendezvous Server allowing the program to
accept and request connections with simultaneous and passive
nodes.
* A passive node is a node which can receive inbound connections... | [
"anmolpanwar8@gmail.com"
] | anmolpanwar8@gmail.com |
196640e93c3fb69f365d16802339e2aa1414300b | 739e41d4f24f79c772d266cded0de9b759c6e953 | /venv/lib/python3.6/site-packages/nlp/datasets/winogrande/61dcf44f5c98e1c1c1526feabb5b487d0362949de206a1208b95d9042b89378c/winogrande.py | 6e0be715a32acff4004245b67b56d63b2cb8574b | [
"MIT"
] | permissive | MachineLearningBCAM/Minimax-risk-classifiers-NeurIPS-2020 | 24b7bbdecf459292f8b58be286feab3b9aa341ba | 82586c632268c103de269bcbffa5f7849b174a29 | refs/heads/main | 2023-05-18T15:41:13.495286 | 2021-06-11T18:21:35 | 2021-06-11T18:21:35 | 304,268,819 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,433 | py | """TODO(winogrande): Add a description here."""
from __future__ import absolute_import, division, print_function
import csv
import json
import os
import nlp
# TODO(winogrande): BibTeX citation
_CITATION = """\
@InProceedings{ai2:winogrande,
title = {WinoGrande: An Adversarial Winograd Schema Challenge at Scale},
a... | [
"adiaz@bcamath.org"
] | adiaz@bcamath.org |
24981d1ca550c828a9733f5955126a18a2d925b3 | 0aa98e0e7d9b63179eaaecd406e0b726594bed1e | /betfairlightweight/streaming/listener.py | c698f37f883a7971c3b36d6f140d8676a5e595c0 | [
"MIT"
] | permissive | alexeypavlenko/betfairlightweight | ce16c60cc8872961ca25452836098c90780ad84a | 3841ca88466abf08152b7a4d2b8fced196307105 | refs/heads/master | 2021-01-11T12:26:51.787855 | 2016-12-11T09:06:29 | 2016-12-11T09:06:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,568 | py | import json
import logging
import time
from .stream import MarketStream, OrderStream
class BaseListener:
def __init__(self):
self.market_stream = None
self.order_stream = None
def register_stream(self, unique_id, operation):
if operation == 'authentication':
logging.info... | [
"paulingliam@gmail.com"
] | paulingliam@gmail.com |
d361163583c2c32c54d91c8e8707524d150b297a | a110cda0dd755a0aeeccaa349de5b7c8f836f7d9 | /Dynamo_0.7.X/markerAndTextDisplayStyle.py | 390152422c99ba55f8f8ecbba14bd663d5c5819d | [] | no_license | ksobon/archi-lab | 26d93ef07e4f571e73a78bc40299edd3dc84c2a6 | 9a8a57eccca899ace78a998dc7698ff7754fae6b | refs/heads/master | 2021-01-15T09:37:06.045588 | 2020-06-03T15:55:46 | 2020-06-03T15:55:46 | 26,090,112 | 6 | 5 | null | 2020-02-09T04:24:41 | 2014-11-02T19:02:28 | Python | UTF-8 | Python | false | false | 4,562 | py | #Copyright(c) 2015, Konrad K Sobon
# @arch_laboratory, http://archi-lab.net
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentMan... | [
"ksobon1986@gmail.com"
] | ksobon1986@gmail.com |
941fad21374a597dfb5c097d482af2e93d687dab | 2951174fd6d8a7cf9a71e0663ae3b22bd309be5a | /yinyuetai.py | ef78c8285d10e9124070a491e1d831f446d99c16 | [] | no_license | WhiteBrownBottle/Python- | c76045a3127723666083cee4b4c20b08491e4067 | 92fcaba555a566eae829ea401a20f459b4f39dfe | refs/heads/master | 2021-07-18T21:17:45.677091 | 2017-10-24T06:47:38 | 2017-10-24T06:47:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | import os
import requests
import bs4
import random
def get_html(url):
try:
r = requests.get(url, timeout = 30)
r.raise_for_status
r.encoding = r.apparent_encoding
return r.text
except:
return 'Something wrong!'
def get_agent():
'''
模拟header的user-agent字段,
返回... | [
"958255724@qq.com"
] | 958255724@qq.com |
c9ad0beaf717d4624106ae4450733c77f377bf54 | f97242dfbe3c629dcabb6226b59aaf808a5b1cec | /project/analysis/migrations/0002_auto_20151216_1041.py | ba6d0fa627953bddd0602f1598b1068dc1b19f8c | [] | no_license | shapiromatron/genomics | ab48cc2d7eab94e9777ffce0ee7d5865af7d7ae1 | 8cabcaf7a6a04cd84fdefca6a39c9fde5f3329c8 | refs/heads/master | 2021-01-21T04:50:24.186897 | 2016-06-10T19:52:24 | 2016-06-10T19:52:24 | 44,177,551 | 0 | 1 | null | 2016-06-10T19:44:42 | 2015-10-13T13:19:32 | Python | UTF-8 | Python | false | false | 2,020 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('analysis', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='analysis',
options=... | [
"shapiromatron@gmail.com"
] | shapiromatron@gmail.com |
a9e04e7b4337a71ea3c4145ef99e36b28fc0f349 | c560b501fd326cad710c079e781a02366a70ddcf | /neural_sp/models/lm/transformer_xl.py | 8eb12980fa36974eec76a97e2addf844cccb643c | [
"Apache-2.0"
] | permissive | houwenxin/neural_sp | b3f90176c462f242304c202e3534dfb98c95b225 | b34e6c067bd79092abe8ff5445d9a55c147bef51 | refs/heads/master | 2023-03-11T16:04:12.668442 | 2021-03-03T15:32:36 | 2021-03-03T15:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,493 | py | # Copyright 2020 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""TransformerXL language model."""
import copy
import logging
import math
import os
import random
import shutil
import torch
import torch.nn as nn
from neural_sp.models.lm.lm_base import LMBase
from neur... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
21b9439764ab2bc2b66440c6d24e63f1b755f5c2 | 4d586ecc9febedb199376bc005eb783c55fae7b0 | /great_expectations/expectations/core/expect_column_values_to_match_like_pattern.py | c6a927e14227c06c8ace633c79c429646d7294f7 | [
"Apache-2.0"
] | permissive | spbail/great_expectations | 1db532763ad9c5c07aec251b64a61de3fb6f677f | c4fa245f77912dfdfd613c84fb75f631c0b73f03 | refs/heads/main | 2023-07-01T23:40:44.586052 | 2021-04-22T00:09:35 | 2021-04-22T00:09:35 | 360,619,476 | 2 | 0 | Apache-2.0 | 2021-04-22T17:20:19 | 2021-04-22T17:20:18 | null | UTF-8 | Python | false | false | 2,792 | py | from typing import Optional
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.expectations.util import render_evaluation_parameter_string
from ...render.renderer.renderer import renderer
from ...render.util import substitute_none_for_missing
from ..expectat... | [
"noreply@github.com"
] | spbail.noreply@github.com |
5b2498d10e6e0f7de3e78241053183a155df9a95 | ce73929de648d080420fc99a86e7b73bfb15f0dc | /tms_maintenance/__openerp__.py | 67959bfef32db6801dfb3d8b4b7b99f04d6e8f0e | [] | no_license | thinkasoft/TMS | dce16ee4b10f9e35d392c883b443f556946d9526 | d8d07227749e07e047a03713142c0bb898a9abf6 | refs/heads/master | 2021-01-10T02:31:22.526633 | 2016-02-01T22:25:00 | 2016-02-01T22:25:00 | 50,875,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,922 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2012 HESATEC (<http://www.hesatecnica.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | [
"you@example.com"
] | you@example.com |
2777fc95d9b7160b0a91a6bd8f318fee534d933e | 8bccc05fcb3cfc6ed93991927a514a96f53f7ec0 | /old_version/candidate_selection/tensorflow_models/baselines/entity_embedding_vs_gold.py | bf4932a2a4dc0e677e69a935306211c2a78dac5a | [
"MIT"
] | permissive | afcarl/QuestionAnsweringGCN | 54101c38549405d65ef22e38fed9e5bd58122ada | e9c1987b40a553f0619fa796f692c8880de32846 | refs/heads/master | 2020-03-20T10:35:55.729170 | 2018-06-07T11:45:12 | 2018-06-07T11:45:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,137 | py | import tensorflow as tf
from candidate_selection.tensorflow_hypergraph_representation import TensorflowHypergraphRepresentation
from candidate_selection.tensorflow_models.abstract_tensorflow_model import AbstractTensorflowModel
from candidate_selection.tensorflow_models.components.decoders.softmax_decoder import Softm... | [
"michael.sejr@gmail.com"
] | michael.sejr@gmail.com |
733d22a07c4e1178875dce93e145e10c84489699 | c68d238ac786a42c4dd47d4ab5820709aa4dcdb3 | /ExFin/credit/migrations/0003_creditrateup.py | 2057cb69f91adc42bdaa82ecbdcd2ee1441e312d | [] | no_license | tenebranum/ExFin | b78d2a9651d5b9e8fb0fae3adccc48f7897221d2 | 7ac7b7a0be00537a6a600721009f4a28eb90c3ab | refs/heads/master | 2022-12-14T21:17:02.334600 | 2022-09-21T10:33:27 | 2022-09-21T10:33:27 | 139,338,729 | 0 | 0 | null | 2022-12-08T00:59:15 | 2018-07-01T15:07:52 | Python | UTF-8 | Python | false | false | 1,110 | py | # Generated by Django 2.0.2 on 2018-03-06 14:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('credit', '0002_auto_20180303_1408'),
]
operations = [
migrations.CreateModel(
name='CreditRateU... | [
"vetal969696@gmail.com"
] | vetal969696@gmail.com |
5066a140ff8819c7e2b0f4236f3dadc455c60f9e | 72328633f1b4640868c2ba7af81adcca6350e7da | /07-动态规划/2-动态规划问题/03-064.py | a9ae8d6e8865cff23c72daa24b567b07e52219f0 | [] | no_license | qiaozhi827/leetcode-1 | a9f10192c74a6de498bce0fa7e1d995bf67edec4 | 1d1ffe25d8b49832acc1791261c959ce436a6362 | refs/heads/master | 2022-11-06T19:39:32.792946 | 2020-07-05T06:23:27 | 2020-07-05T06:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | class Solution(object):
def minPathSum(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
m = len(grid)
if m == 0:
return 0
n = len(grid[0])
for j in range(1,n):
grid[0][j] += grid[0][j-1]
for i i... | [
"czy36mengfei@163.com"
] | czy36mengfei@163.com |
0da170eeb4c9c974c1cd842b20ba915ea9ff5e14 | b26c41926fa3a7c2c061132d80e91a2750f2f468 | /tensorflow_probability/python/experimental/util/jit_public_methods.py | 927285368770ee307c5f7c058aa83b3846574dff | [
"Apache-2.0"
] | permissive | tensorflow/probability | 22e679a4a883e408f8ef237cda56e3e3dfa42b17 | 42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5 | refs/heads/main | 2023-09-04T02:06:08.174935 | 2023-08-31T20:30:00 | 2023-08-31T20:31:33 | 108,053,674 | 4,055 | 1,269 | Apache-2.0 | 2023-09-13T21:49:49 | 2017-10-23T23:50:54 | Jupyter Notebook | UTF-8 | Python | false | false | 5,174 | py | # Copyright 2021 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
8e9e7723d0d08bab41f6b2e74af3f118ff5cb2e3 | 53e90091d10a2454e14a02ecc689e355ac2a7cc1 | /book3/pylisting/code_wfst.py | e3d6c5128b16804c82c340c83396238548917d71 | [] | no_license | dougalg/nltk.github.com | aac74cf03d17475adc177ac08691359cb1f4adb6 | 9a04ac5264f5ef08d87d6b920580c9160042f1a0 | refs/heads/master | 2020-12-07T17:15:15.894232 | 2014-04-21T14:11:17 | 2014-04-21T14:11:17 | 18,965,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # Natural Language Toolkit: code_wfst
def init_wfst(tokens, grammar):
numtokens = len(tokens)
wfst = [[None for i in range(numtokens+1)] for j in range(numtokens+1)]
for i in range(numtokens):
productions = grammar.productions(rhs=tokens[i])
wfst[i][i+1] = productions[0].lhs()
re... | [
"stevenbird1@gmail.com"
] | stevenbird1@gmail.com |
c413c0507a2af69c905edbbce39795ea9ae12c2d | c9000e5e30825b29febbefa5ad00da1f57551f8e | /04/zhumeichao/Login.py | b425be01877d8e9766d6f68f886054ccc3d22165 | [] | no_license | xiaotian1991/actual-10-homework | 81c58b24f58fc87e4890f1475ad83de8b66ee53b | 0b379ca6189f843f121df4db5814c83262f9981a | refs/heads/master | 2021-06-12T23:35:52.954510 | 2017-03-24T07:41:18 | 2017-03-24T07:41:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #!/usr/bin/env python
#encoding=utf-8
import Usermod
num=raw_input("<登陆1> <注册2>\n 请输入操作数字:")
if num == '1':
userinfo=Usermod.userlist("user.txt")
Usermod.userlogin(userinfo)
elif num == '2':
userinfo=Usermod.userlist("user.txt")
Usermod.adduser(userinfo,"user.txt")
else:
print "PS:\t输入数字1 -... | [
"shengxinjing@addnewer.com"
] | shengxinjing@addnewer.com |
2f468e02b23ded4932329802f1f8dbd8609875d0 | 17f1811abda6c828460b77f460671f9c2f464204 | /leetcode/duplicates_list.py | ce3849e0269c3d72f27886e3afb9af07c0d8ac5a | [] | no_license | rishabhranawat/challenge | f10f69fc30881a0571c4321b466a89aeeb06e568 | e836343be5185f8843bb77197fccff250e9a77e3 | refs/heads/master | 2021-01-21T15:13:47.590675 | 2020-04-25T15:26:42 | 2020-04-25T15:26:42 | 91,833,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # Problem Source: LeetCode
# Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array),
# some elements appear twice and others appear once.
# Find all the elements that appear twice in this array.
# Could you do it without extra space and in O(n) runtime?
# Example:
# Input:
# [4,3,2,7,8,2,3,1]
# Output:
# [2... | [
"rishabhranawat12345@gmail.com"
] | rishabhranawat12345@gmail.com |
63755929f03cbc64d858991d90397a001ce08a5b | 1b0846fddb7c1e8c09e080db40dca9a9590a2519 | /news_scrap/migrations/0005_auto_20180806_0954.py | e7b63894612a3e74bc3b7d6d63fbee799f71a2e0 | [] | no_license | Serdiuk-Roman/self-written_project | 3d657982e95112fa1031241a8f8e2ee138533450 | 3aa0e733173871c2da692deb1a9346e635f90e75 | refs/heads/master | 2022-12-11T11:25:59.841042 | 2018-08-07T19:53:01 | 2018-08-07T19:53:01 | 143,103,670 | 0 | 0 | null | 2022-12-08T02:19:51 | 2018-08-01T04:25:21 | Python | UTF-8 | Python | false | false | 392 | py | # Generated by Django 2.0.7 on 2018-08-06 09:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news_scrap', '0004_auto_20180627_0759'),
]
operations = [
migrations.AlterField(
model_name='shortnews',
name='news_... | [
"serdiuk.r@gmail.com"
] | serdiuk.r@gmail.com |
8385accd5777109597a2d31c8effe9b4dffa447a | 42229d7c76c305cfde63659ad715a4e6bef0ea99 | /goods/test/class_inside_distance.py | 20bc5d36fc8d67eb626ddc098a24d94d68ce79a3 | [] | no_license | LRJliurj/GoodsServer | 4a043d2f1195e4793aad327732201375495a88f9 | c8c1bbda4fa4ba2a0e8a4055a67b7278ddb15b03 | refs/heads/master | 2020-07-05T14:03:58.536658 | 2019-09-24T03:01:53 | 2019-09-24T03:01:53 | 202,668,466 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | __author__ = 'admin'
# *_*coding:utf-8 *_*
import numpy as np
import os
from goods.util import distance_util
#计算单个商品类内差异值
def inside_distance(img_feature_path,img_dis_path):
img_features = {}
with open(img_feature_path,'r') as f:
lines = f.readlines()
for line in lines:
feature = line.spl... | [
"908601417@qq.com"
] | 908601417@qq.com |
937536e97205603aaafc55317b87850a6abf7d9e | 54f395d77fd98fce2e42f9883953118a4cd74cf8 | /test/socket_overload.py | 96ca82600e39f9deba4e315164d0ed83b6752451 | [] | no_license | zdimon/angular-chat | bfdaa0cb5861da03764402202179711edb92c131 | 483ddf675e8c6233b3a0642b9aa86fe058ef9e44 | refs/heads/master | 2020-04-06T05:30:52.957098 | 2017-01-31T12:12:00 | 2017-01-31T12:12:00 | 39,195,268 | 0 | 1 | null | 2015-09-08T13:27:47 | 2015-07-16T12:21:08 | Python | UTF-8 | Python | false | false | 1,090 | py | import websocket
from websocket import create_connection
import logging
import json
import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '../djapp'))
import brukva
bclient = brukva.Client()
bclient.connect()
import time
def test_brukva():
mes = { 'action': 'close_room' }
print 'send to test_... | [
"zdimon77@gmail.com"
] | zdimon77@gmail.com |
3c89317045ceea3ccaeb459a84d66c919258d4ca | 4e02d5b0b1b0739553fd40bbbdfb0d02c9830350 | /0387_First_Unique_Character_in_a_String.py | 5434e1b8da203b3a94bc89b9f30006df155d5acb | [] | no_license | bingli8802/leetcode | b039ab6af62f0c8992463393f561caafd21056e6 | a509b383a42f54313970168d9faa11f088f18708 | refs/heads/master | 2023-03-29T03:11:45.801090 | 2021-03-23T22:55:16 | 2021-03-23T22:55:16 | 279,321,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | class Solution(object):
def firstUniqChar(self, s):
"""
:type s: str
:rtype: int
"""
if not s:
return -1
res = float('inf')
dic = defaultdict(list)
for i, v in enumerate(s):
dic[v].append(i)
for val in dic.values():
... | [
"noreply@github.com"
] | bingli8802.noreply@github.com |
ca1f2f962c2c3961e8d6261325d768ab71aad657 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/1267.py | f52e8c78ada28936bf0480feb093bd78584889c3 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/env python
# vim: set filetype=python et sw=4 ts=4:
import sys
sys.setrecursionlimit(1024*1024)
T = int(sys.stdin.readline())
def seconds_to_reach(target, rate):
return target/rate
def solve(C, F, X, rate):
seconds_if_buy = seconds_to_reach(C, rate) + seconds_to_reach(X, rate+F)
seconds_if_wa... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
163b4a862ee387590032965b8fa924cb93c8285d | c68c841c67f03ab8794027ff8d64d29356e21bf1 | /Two Sum.py | 3abbd4c8b7c4aa74e47f5b64b07dc156c8fd010a | [] | no_license | jke-zq/my_lintcode | 430e482bae5b18b59eb0e9b5b577606e93c4c961 | 64ce451a7f7be9ec42474f0b1164243838077a6f | refs/heads/master | 2020-05-21T20:29:11.236967 | 2018-06-14T15:14:55 | 2018-06-14T15:14:55 | 37,583,264 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | class Solution:
"""
@param numbers : An array of Integer
@param target : target = numbers[index1] + numbers[index2]
@return : [index1 + 1, index2 + 1] (index1 < index2)
"""
def twoSum(self, numbers, target):
# write your code here
# if not numbers:
# return [... | [
"jke0zq@gmail.com"
] | jke0zq@gmail.com |
330d730d2bb745c574dbbb58a796b26d37a5afcb | 92e6f33a01b8f9e1e3b4914c67fbd6789a6abaac | /pygenic/backend/Backend.py | d9df99f5aaa80256e399441ad091bf558aad567c | [] | no_license | daeken/pygenic | 9a4b5b31eeca53b228999508d4f19bf56808cfaf | 8878a8bfdfb823a9143548a1de8e19c15c62523d | refs/heads/master | 2021-01-17T16:09:30.498552 | 2016-07-28T03:45:43 | 2016-07-28T03:45:43 | 61,535,924 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | from pygenic import *
class Backend(object):
backends = {}
@staticmethod
def register(cls):
Backend.backends[cls.__name__.lower()] = cls
return cls
ws = '\t'
def __init__(self, hexLiterals=True):
self.temp_i = 0
self.hexLiterals = hexLiterals
def tempname(self, prefix='temp'):
self.temp_i += 1
re... | [
"cody.brocious@gmail.com"
] | cody.brocious@gmail.com |
db2576d2ad6f96a0a3c6a41291d124e0c66a19c4 | 991c4f5318d090b937a6f6d2e9639612c5366724 | /simple_eyetracker/image_processing/simple_cl_conv.py | 3d5c564d9862549a976a2802fbaf067913d5406f | [] | no_license | coxlab/simple_eyetracker | d7da3c680e5a7f5d70bec2d2ab7596b419d3f8d8 | b857eb1e671d1751d3c58f9c59184432caadcdd0 | refs/heads/master | 2021-03-22T01:10:11.178095 | 2017-09-28T20:49:54 | 2017-09-28T20:49:54 | 102,738,996 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,230 | py |
import pyopencl as cl
import pyopencl.array as cl_array
from pyopencl import clmath
from pyopencl.elementwise import ElementwiseKernel
import numpy as np
import numpy.testing as nptest
from localmem_cl_conv import LocalMemorySeparableCorrelation
class NaiveSeparableCorrelation:
def __init__(self, ctx, queue):
... | [
"david.daniel.cox@gmail.com"
] | david.daniel.cox@gmail.com |
80a9a0385609f6092de63c881530a49feb80b62d | 09fd456a6552f42c124c148978289fae1af2d5c3 | /LinkedList/21.py | bbf74d969562ffdc2b3217be6edda17bdc828f3b | [] | no_license | hoang-ng/LeetCode | 60b4e68cbcf54cbe763d1f98a70f52e628ab32fb | 5407c6d858bfa43325363503c31134e560522be3 | refs/heads/master | 2021-04-10T11:34:35.310374 | 2020-07-28T10:22:05 | 2020-07-28T10:22:05 | 248,932,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | # 21. Merge Two Sorted Lists
# Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
# Example:
# Input: 1->2->4, 1->3->4
# Output: 1->1->2->3->4->4
# Definition for singly-linked list.
class ListNode(object):
def __init__(se... | [
"hoang2109@gmail.com"
] | hoang2109@gmail.com |
9e3718eabb1635e6485630419714c693a7599cdd | 705c2cf0ae1f38efb2340a056b0e78f89f83ec5e | /security_checks/mplcursors_interactive.py | a5758e070897d880410b40de7b7bbeebf9c67b42 | [] | no_license | Vital-Fernandez/vital_tests | 42fad619841d4b57c5ab419e6f58eef523ff8566 | ee8dbc9c09e433f91e78f9ea16977a9e5a44be6c | refs/heads/master | 2023-09-01T21:27:32.160440 | 2023-08-21T20:51:59 | 2023-08-21T20:51:59 | 235,336,802 | 0 | 1 | null | 2022-10-19T08:52:42 | 2020-01-21T12:24:57 | Python | UTF-8 | Python | false | false | 978 | py | # import numpy as np
# import matplotlib.pyplot as plt
# import mplcursors
#
# x = np.linspace(0, 10, 100)
#
# fig, ax = plt.subplots()
# ax.set_title("Click on a line to display its label")
#
# # Plot a series of lines with increasing slopes.
# for i in range(1, 20):
# ax.plot(x, i * x, label=f"$y = {i}x$")
#
# # ... | [
"vital.fernandez@gmail.com"
] | vital.fernandez@gmail.com |
78970072af6b04d0d5817dcb82a22a137e0cf694 | 387400d70932b7b65f0ad0e24cb8290a8ce6ed46 | /August_18/129. Sum Root to Leaf Numbers.py | 01bbb2666f4a9e0dc162a013afb5256eadefec2e | [] | no_license | insigh/Leetcode | 0678fc3074b6294e8369756900fff32c7ce4e311 | 29113d64155b152017fa0a98e6038323d1e8b8eb | refs/heads/master | 2021-01-20T07:51:21.051366 | 2018-09-17T13:33:15 | 2018-09-17T13:33:15 | 90,051,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | """
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the total sum of all root-to-leaf numbers.
Note: A leaf is a node with no children.
Example:
Input: [1,2,3]
1
/ \
2 ... | [
"zhangchaojie@ruc.edu.cn"
] | zhangchaojie@ruc.edu.cn |
29d251ed2774013737c30b03ac4211fbb47f0035 | 540789545998547d8f7d2732a8f2e9ffafcb4a93 | /bigml/laminar/math_ops.py | 0c39c5c0d9e95d5ba9041a77e1edcc9838515998 | [
"Apache-2.0"
] | permissive | davidifeoluwa/python | 801453adcc99a4eb0b92ef385ec20fa96f272f64 | b5dc03a4c695144250994261813bf39799a8c325 | refs/heads/master | 2020-03-11T04:01:21.906660 | 2018-04-03T16:26:49 | 2018-04-03T16:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,477 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2017-2018 BigML
#
# 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 requi... | [
"merce@bigml.com"
] | merce@bigml.com |
76d9ff4eb111325342e02d42d3862b6329453016 | 06919b9fd117fce042375fbd51d7de6bb9ae14fc | /py/tests/problems/linkedlist/loop_detect_test.py | 0120bef7fddaf215a3f2ca32b984123bbf69953c | [
"MIT"
] | permissive | bmoretz/Daily-Coding-Problem | 0caf2465579e81996869ee3d2c13c9ad5f87aa8f | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | refs/heads/master | 2022-12-07T15:41:06.498049 | 2021-11-18T19:45:19 | 2021-11-18T19:45:19 | 226,376,236 | 1 | 0 | MIT | 2022-11-22T09:20:23 | 2019-12-06T17:17:00 | C++ | UTF-8 | Python | false | false | 1,243 | py | import unittest
from dcp.problems.linkedlist.node import build_ref_list
from dcp.problems.linkedlist.loop_detect import detect_loop1
class Test_DetectLoop1(unittest.TestCase):
@staticmethod
def set_loop(node, loop_back):
loop_node, prev = None, None
while node != None:
if node.d... | [
"bmoretz@ionicsolutions.net"
] | bmoretz@ionicsolutions.net |
37803d71ba2811fec39a1deeee753f4bdc6deb73 | 4a869982cc4cc99d83df18465f545e51c97aeb37 | /.history/Baseline/ma-course-subjectivity-mining/pynlp/ml_pipeline/pipelines_20201015124127.py | 40b408e13f354ddad6524fd6ce7574e836258622 | [] | no_license | SorenKF/emotional_sm | 09d367421782d8c83987fb99be258b1b30c4ce8d | 63d51103f7511b19a83dec668327fcc7ea4a7f39 | refs/heads/main | 2023-02-03T14:12:14.572581 | 2023-01-24T18:06:52 | 2023-01-24T18:06:52 | 301,679,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,492 | py | from sklearn.pipeline import Pipeline, FeatureUnion
from ml_pipeline import preprocessing, representation
from sklearn.naive_bayes import MultinomialNB
from sklearn import svm
def pipeline(preprocessor, representation, classifier):
return Pipeline([('prep', preprocessor),
('frm', representati... | [
"s.k.f.fomsgaard@student.vu.nl"
] | s.k.f.fomsgaard@student.vu.nl |
24f069fc6d342348dc51bae9ba831ef54d23aa2d | 516d8b09391fcf6f1dd95fb665a617c4982af55d | /contact/migrations/0014_remove_contactuserpayam4_tarikhjavab.py | c50800d70842dbbe09b104e763f1bc2e8dfe3c43 | [] | no_license | rezmehp/abasian-peroject | 33eb357fbef3591b9cdd7d5a73fb2c90b62fb7a7 | 5c09a4d235719933f10688454066962dae13f3f5 | refs/heads/master | 2023-04-06T21:17:12.855048 | 2021-04-13T15:16:23 | 2021-04-13T15:16:23 | 235,763,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # Generated by Django 3.0.2 on 2020-03-30 15:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('contact', '0013_auto_20200330_2013'),
]
operations = [
migrations.RemoveField(
model_name='contactuserpayam4',
name='tarikhj... | [
"rezmehproject@gmail.com"
] | rezmehproject@gmail.com |
da1ab05092eedc735b9105d87a269a3ce7b359e0 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /rQkriLJBc9CbfRbJb_20.py | dda0425632ec74faa830b48d2c71f225b037b0bf | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py |
def index_of_caps(word):
liste = []
for i, j in enumerate(word):
if j.isupper() == True:
liste.append(i)
return liste
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7827d8a029673449b0405f45876d99fbc56ab1ee | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/brdlia004/question2.py | f51e12c327875c64f8d15a6444ade3e2a4b02e7c | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | """File reformatter"""
#Liam Brodie
#BRDLIA004
#11 May 2014
print("Enter the input filename:")
infile = input("")
file = open(infile,"r")
string = file.readlines()
file.close()
print("Enter the output filename:")
outfile = input("")
linelength = eval(input("Enter line width:\n"))
newS = ""
for li... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
0d62ec6728b2d8109f68cc7705ee9fca73ad2cf3 | f6bdc0fa18bdf9c02417b7665eaec0a32f536df2 | /tj2_romi_ros/tj2_romi_waypoints/src/tj2_romi_waypoints_node.py | 75c099188a441cba5634730093fc119252492a18 | [] | no_license | frc-88/FRC-Romi-ROS | c677114a78a5a737ba49120d7a54e320525aa130 | 14506bab796c3ea62cd86310678fcd998507729b | refs/heads/main | 2023-03-29T20:28:14.000042 | 2021-04-03T18:42:39 | 2021-04-03T18:42:39 | 337,286,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,631 | py | #!/usr/bin/env python3
import os
import yaml
import math
from collections import OrderedDict
import rospy
import actionlib
import tf2_ros
import tf_conversions
import tf2_geometry_msgs
from tf.transformations import euler_from_quaternion, quaternion_from_euler
import geometry_msgs
from std_msgs.msg import ColorRGB... | [
"woz4tetra@gmail.com"
] | woz4tetra@gmail.com |
4d6a87ecdb5ea24eb88b724c2eb6a34cebff36f0 | fe31c3cb21bac1cf7d06bb8dbb00ad7c09994403 | /afternoon_python/venv/Tuples_Lists_Dictionaries.py | 48f7408d63dc1905bd9303656c8225f857ddf067 | [] | no_license | bsakari/Python-Projects | 87718827daa9ff4ac16bf0855e04cadef329aa1d | 41104d8d1df84c27255f2d221ff68f219de8c84f | refs/heads/master | 2020-03-21T03:16:42.332439 | 2018-06-20T14:39:34 | 2018-06-20T14:39:34 | 138,045,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # () tuple Cannot be updated
# [] list Can be updated
# {} dictionary Cannot also be updated
name1 = ("King","mimi","wewe",9,2.5,("two",7,2.5,"yes"))
# print(name1)
# print(name1[5])
# print(name1[0:4])
# print(name1[1:])
name2 = ["King","mimi","wewe",9,2.5,("two",7,2.5,"yes")]
print(name2)
# print(name2[5])
# print(n... | [
"sakaribenjamin@gmail.com"
] | sakaribenjamin@gmail.com |
389026db81519bc1f589892bb1a1714505a3b1ed | 5068bc927a7fff73923ce95862ff70120160c491 | /electrum_axe/gui/kivy/uix/drawer.py | d94e14494f89c86ae344d59ee0b866ca609fc9ea | [
"MIT"
] | permissive | AXErunners/electrum-axe | cdbce2dbb92e23e32e9f9b733ae9f65f51c0ae9f | 7ef05088c0edaf0688fb167df353d6da619ebf2f | refs/heads/master | 2021-04-03T09:40:37.109317 | 2020-08-27T16:53:18 | 2020-08-27T16:53:18 | 124,705,752 | 336 | 75 | MIT | 2020-10-17T18:30:25 | 2018-03-10T23:00:48 | Python | UTF-8 | Python | false | false | 8,494 | py | '''Drawer Widget to hold the main window and the menu/hidden section that
can be swiped in from the left. This Menu would be only hidden in phone mode
and visible in Tablet Mode.
This class is specifically in lined to save on start up speed(minimize i/o).
'''
from kivy.app import App
from kivy.factory import Factory
... | [
"slowdive@me.com"
] | slowdive@me.com |
5eff08a2a8ac3d7eb32d009fdf49681a45178538 | 6874be4a1382a7a79af829f733155cc1e33f2733 | /numstring.py | 9e352c04a1dca353cb2401c5450b88774f986d4b | [] | no_license | LawerenceLee/classes_PY | 9028604ef835aae8099658c7edfe6b509827e5ce | 440a0efff6ed4cb58a2d7b11e6cc86f49373b0af | refs/heads/master | 2021-07-10T06:34:13.537879 | 2017-10-10T22:09:24 | 2017-10-10T22:09:24 | 106,476,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | class NumString:
def __init__(self, value):
self.value = str(value)
def __str__(self):
return self.value
def __int__(self):
return int(self.value)
def __float__(self):
return float(self.value)
def __add__(self, other):
if '.' in self.value:
... | [
"lucifitz.edward@gmail.com"
] | lucifitz.edward@gmail.com |
2775ffa54c0bc23d1d71871ec34631d79c86c5d8 | ee3039b27532d09c0c435ea7b92e29c70246c66e | /opencv/learnOpencv/091-120/110-KMeans进行数据分类.py | 29e53c58acf946e676b6778afd44438e05fed344 | [] | no_license | Alvazz/fanfuhan_ML_OpenCV | e8b37acc406462b9aaca9c5e6844d1db5aa3c944 | dacfdaf87356e857d3ff18c5e0a4fd5a50855324 | refs/heads/master | 2022-04-05T06:15:31.778227 | 2020-02-07T01:40:07 | 2020-02-07T01:40:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | """
KMeans进行数据分类
"""
import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
X = np.random.randint(25, 50, (25, 2))
Y = np.random.randint(60, 85, (25, 2))
pts = np.vstack((X, Y))
# 初始化数据
data = np.float32(pts)
print(data.shape)
# 定义停止条件
criteria = (cv.TERM_CRITERIA_EPS + cv.TERM_CRITERIA_MAX_ITER, ... | [
"gitea@fake.local"
] | gitea@fake.local |
e0080d15f3124eb2541946e99066319f21c9cf29 | e20f478e1ea049e9539c4cbe5535338649651a28 | /music/process/crop.py | 4408f6423f9c18727674889669633690352de910 | [] | no_license | josephding23/RiffGAN | dde35d3f31f8e21d3a1a17ae958085dd8a752163 | f3850a22281fe8344d0db18919f3301d7bc9b55d | refs/heads/master | 2022-12-08T20:26:36.250666 | 2020-09-03T08:17:37 | 2020-09-03T08:17:37 | 269,524,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | from dataset.grunge_library import *
from music.db_fragments.riff import *
import os
def crop_riffs():
griff_table = get_guitar_riff_table()
briff_table = get_bass_riff_table()
unit_griff_table = get_unit_guitar_riff_table()
unit_briff_table = get_unit_bass_riff_table()
for griff in griff_table.... | [
"dingzhx@vip.qq.com"
] | dingzhx@vip.qq.com |
386d192a0ec7ee09139f82edbcdcc3242ee5d609 | 4766d241bbc736e070f79a6ae6a919a8b8bb442d | /archives/leetcode/0380. Insert Delete GetRandom O(1).py | 49e6f76ec6d3d7f929204d444413ca284bb1fee3 | [] | no_license | yangzongwu/leetcode | f7a747668b0b5606050e8a8778cc25902dd9509b | 01f2edd79a1e922bfefecad69e5f2e1ff3a479e5 | refs/heads/master | 2021-07-08T06:45:16.218954 | 2020-07-18T10:20:24 | 2020-07-18T10:20:24 | 165,957,437 | 10 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | '''
Design a data structure that supports all following operations in average O(1) time.
insert(val): Inserts an item val to the set if not already present.
remove(val): Removes an item val from the set if present.
getRandom: Returns a random element from current set of elements. Each element must have the same probab... | [
"noreply@github.com"
] | yangzongwu.noreply@github.com |
38b7bdf38f9e8eff00eaac099e6aff6c113b5c29 | 057fde8a8ab9622a3524cb880c7ace5a15c0f355 | /set12/116.py | 544622ad13b6a605b28c5b6947e4a09f425bdcfc | [] | no_license | ramyasutraye/Guvi_Python | e9ba6eb812ec8014214dce77d710ce230bbb8020 | 2fed3c460185fbf7bcf64c068084bcdb7d840140 | refs/heads/master | 2020-04-23T19:30:21.003061 | 2018-05-25T10:43:14 | 2018-05-25T10:43:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | n=int(input("Enter n value:"))
k=int(input("Enter k value:"))
print(str(n)+str(k))
| [
"noreply@github.com"
] | ramyasutraye.noreply@github.com |
cf990863204d3924096ace3258291586735811b1 | d5813a3017818b5dff54d283e3ba9a0ceaf5cea9 | /yabgp/message/update.py | d117131e8d6bc8ac7fc3338709e7be2dce1ce6b9 | [
"Apache-2.0"
] | permissive | trungdtbk/yabgp | 12244fa7b23f56951d2a839e0c1706d74d478bd6 | 19850134d1a95f008be4416e495629aa659b55bb | refs/heads/master | 2021-01-22T04:24:31.924393 | 2017-02-10T12:15:33 | 2017-02-10T12:15:33 | 81,541,694 | 0 | 0 | null | 2017-02-10T07:59:27 | 2017-02-10T07:59:27 | null | UTF-8 | Python | false | false | 19,649 | py | # Copyright 2015 Cisco Systems, 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 requi... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
30b607ac4c0ea0c052d4efeeabd5863ce8ad5d02 | 854394f4148e7bee8cd3c6d2a01e97ffbf772103 | /0x0A-python-inheritance/100-my_int.py | 4c939bd416117895b5cbd983bf6c85632d952eed | [] | no_license | garethbrickman/holbertonschool-higher_level_programming | cb3ccb864102d62af72b5e86d53638bd899bfabb | 05d65c6c89008cb70cbc1ada5bb9c8ed7a2733e9 | refs/heads/master | 2021-07-10T08:32:23.397388 | 2020-10-15T18:40:55 | 2020-10-15T18:40:55 | 207,379,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | #!/usr/bin/python3
"""
Class for MyInt
"""
class MyInt(int):
"""Defines base class"""
def __init__(self, int):
"""Instantiation"""
super().__init__()
self.int = int
| [
"977@holbertonschool.com"
] | 977@holbertonschool.com |
91daa7e071b04676a4a5ef9324c7c921ce8d1724 | f7ff9607822bb8f347598c10d185941cf1956852 | /aliyun-python-sdk-facebody/aliyunsdkfacebody/request/v20191230/GetBodyPersonRequest.py | 8f62bb24d7e1e9f501ad532c6eb1173a0ec918cd | [
"Apache-2.0"
] | permissive | djzqbx001/aliyun-openapi-python-sdk | 5ca32201c578528f4b4228c7636b36c3f60a7c60 | 7d2e3c854c4d70ed341f036f5f7be0310216c303 | refs/heads/master | 2023-09-06T10:17:55.489439 | 2021-11-19T04:26:37 | 2021-11-19T04:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
3c3ab58037a0242827c23176c1faadb16196997d | be7bb6d0cbdb27d3ff72830dc9cce41b170b27fe | /0x02-python-import_modules/101-easy_print.py | 0f9d43b5028f6f9044a2a3cf6d6abfff4ba5fdcb | [] | no_license | camagar/holbertonschool-higher_level_programming | 21a8e7c2a2ad07c694c5443e174bb70502f910c2 | 97dd2fade6fb64ac7d9c52e412c0b8c1b8dfc3de | refs/heads/master | 2023-04-07T21:38:00.071687 | 2021-04-14T02:11:42 | 2021-04-14T02:11:42 | 291,889,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | #!/usr/bin/python3
import iscool
| [
"mauriciogrestrepo@gmail.com"
] | mauriciogrestrepo@gmail.com |
d41e07b6b493159c8e8f0b0dbd4c5a75389917d1 | e77a3618d0afe63a2f00d87b61c3f19d3eba10d8 | /plugins/beebeeto/poc_2014_0115.py | dc729f19c5425e035250f73a0c2b0ebc24b7ef11 | [] | no_license | Explorer1092/coco | b54e88a527b29209de7c636833ac5d102514291b | 15c5aba0972ac68dc4c874ddacf5986af5ac2a64 | refs/heads/master | 2020-05-31T07:03:19.277209 | 2019-01-29T14:36:45 | 2019-01-29T14:36:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | #!/usr/bin/env python
# coding=utf-8
"""
Site: http://www.beebeeto.com/
Framework: https://github.com/n0tr00t/Beebeeto-framework
"""
import re
import urllib2
from baseframe import BaseFrame
class MyPoc(BaseFrame):
poc_info = {
# poc相关信息
'poc': {
'id': 'poc-2014-0115',
'n... | [
"834430486@qq.com"
] | 834430486@qq.com |
33c640404f61f1578eabdb131983ea14b43007c2 | 93a13468fd34692ca58ec5aad8f923a5097a19a5 | /users/views.py | e2150174780cec0192b483daaa9b2f09e459b8a2 | [] | no_license | Ryanden/AirBnB-Clone | 0734735a5f1e38b2670db12a4aeb81a2ccb8dc71 | a9be3a6f2cda3c11f036c5f8a31b0c972ed77905 | refs/heads/master | 2023-04-29T07:10:10.177262 | 2021-02-16T13:48:33 | 2021-02-16T13:48:33 | 232,119,018 | 0 | 0 | null | 2023-04-21T21:14:19 | 2020-01-06T14:32:18 | Python | UTF-8 | Python | false | false | 1,532 | py | from django.views import View
from django.views.generic import FormView
from django.shortcuts import render, redirect, reverse
from django.contrib.auth import authenticate, login, logout
from django.urls import reverse_lazy
from . import forms
class LoginView(View):
def get(self, request):
form = forms.Lo... | [
"lockstom@gmail.com"
] | lockstom@gmail.com |
b53e1d637c5aada77f90884734c81edc8fe7d932 | d5bc5ad0aa9276c661adfffe0acbe8b3211b39e4 | /torch_glow/tests/functionality/quantized_cut_in_the_middle_test.py | 5b9260be64fc135f8e6585d3c9cf1b5472c2371b | [
"Apache-2.0"
] | permissive | xw285cornell/glow | b3ec6f84be6485e5b55550c97566d11512e92167 | 90b5badcf583c0cdd880d263a687ae387bcbbb72 | refs/heads/master | 2022-12-06T05:49:09.743232 | 2020-09-04T07:34:59 | 2020-09-04T07:36:17 | 292,919,567 | 0 | 0 | Apache-2.0 | 2020-09-04T18:28:14 | 2020-09-04T18:28:13 | null | UTF-8 | Python | false | false | 2,078 | py | # isort:skip_file
from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import torch_glow
import torch
from tests.utils import GLOW_NODE_NAME
class TestQuantizedCut(unittest.TestCase):
def test_quantized_cut(self):
"""Test cut quantized chunk in the middle.""... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
be81e9c26fcc8071cfffa694007f998c4194f36b | 4f0a7a6942003a928037a68ac7ba6f1afb5c30c7 | /mysite/api/serializers.py | 5f3243b80ddf585f0dd9f12f458ec4edf4c4458d | [] | no_license | UPstartDeveloper/learn-django-live | 20230fb1930420bbc9c5b12a50659a9476ab830d | 94f6eea08de321b1cc41c17571cf36bdb5ee9a7e | refs/heads/master | 2023-05-06T10:18:14.990145 | 2022-04-29T15:31:15 | 2022-04-29T15:31:15 | 216,932,883 | 0 | 0 | null | 2023-04-21T20:41:16 | 2019-10-23T00:18:09 | Python | UTF-8 | Python | false | false | 319 | py | from rest_framework.serializers import ModelSerializer
from polls.models import Question, Choice
class QuestionSerializer(ModelSerializer):
class Meta:
model = Question
fields = '__all__'
class ChoiceSerializer(ModelSerializer):
class Meta:
model = Choice
fields = '__all__'
| [
"zainr7989@gmail.com"
] | zainr7989@gmail.com |
3f6b69f20b7796bfb25dcb7c59db2b97b1d8faf1 | 1ab903cf2e439919e208db6a1ea85b95fc447eb6 | /classifier_preprocessor_quality_factor.py | 041d0557ef44914a9d67d98ee552072f9081c777 | [] | no_license | shanonentropy/photonic_thermometer_intake_module | 7156e91a7e38e9f1413f1edfe6308ac773fd9613 | d3ff7b967ae6ea072bd1edc0718fe662d67b3d07 | refs/heads/main | 2023-08-25T06:26:40.189162 | 2021-10-04T18:14:38 | 2021-10-04T18:14:38 | 413,526,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,031 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 26 10:38:27 2019
@author: zahmed
this program is part of the SENSOR_CLASSIFIER program's pre-processing routine
it will take in all the data from the sensor folder and display it
"""
import os
import pandas as pd
from sklearn.preprocessing import minmax_scale... | [
"noreply@github.com"
] | shanonentropy.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.