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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5cc35b3bea6679945d06dbe918ac491d9c50c9aa | e38c0acac7033db5ff4fcb8843bf48fe77379392 | /desktop/libs/liboozie/setup.py | 78b885c5c1a7cf7d571b097327a11205f0257086 | [
"Apache-2.0"
] | permissive | dulems/hue | 05cdced778afa1b979b2f98bc28226c3c9b2ed0f | 3931cfd5c1dba02165cccf732cc4e6cc326a6a70 | refs/heads/master | 2021-01-04T14:10:32.477934 | 2015-07-27T03:23:44 | 2015-07-27T03:23:44 | 37,165,512 | 0 | 0 | null | 2015-06-15T23:30:55 | 2015-06-10T00:06:52 | Python | UTF-8 | Python | false | false | 1,262 | py | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | [
"romain@cloudera.com"
] | romain@cloudera.com |
f4c9a708bac850f83274e6b93266d0c857a07a67 | 1fe56144905244643dbbab69819720bc16031657 | /.history/books/admin_20210422174025.py | 974b41eccc123608d1d211f8a7c120fc32c54b59 | [] | no_license | RaghdaMadiane/django | 2052fcdd532f9678fefb034bd60e44f466bd9759 | 6ca3f87f0b72880f071d90968f0a63ea5badcca8 | refs/heads/master | 2023-04-15T17:28:25.939823 | 2021-04-24T22:33:21 | 2021-04-24T22:33:21 | 361,279,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | from django.contrib import admin
from .models import Book ,Category ,Tag,Isbn
from .forms import BookForm
from django import forms
from django.core.exceptions import ValidationError
class BookForm(forms.ModelForm):
class Meta:
model = Book
fields='__all__'
def clean_title(self):
title=... | [
"raghdamadiane@gmail.com"
] | raghdamadiane@gmail.com |
f62b38f7fe3ecd7a5044a7c77e8f64f638e862eb | 34e0865fb4915390e77336e81b2c87ec2bf52df6 | /tweet/admin.py | 18778cdb4a53c4545a3921863969b68e8c08ff99 | [] | no_license | HiPiH/local | 3702be6b140fe879188e9623ede27adfc1ce8765 | 6c3bd2c0818c780977c2081ab72906f0166625dd | refs/heads/master | 2021-01-25T04:50:29.096944 | 2011-12-24T08:21:39 | 2011-12-24T08:21:39 | 3,026,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | # -*- coding: utf-8 -*-
__author__ = 'Aleksey.Novgorodov'
from django.contrib.admin import site,ModelAdmin
from models import TweetWords,TweetLang
site.register(TweetLang)
site.register(TweetWords) | [
"admin@nvk.su"
] | admin@nvk.su |
572ac80b5a8fb2a0418cfa931e3dc7d560f7d0d6 | 127b460b1d540e6f8c3aa90dfc04e8abf84a97ff | /parler/tests/testapp/models.py | 0aa2c9f279bbb4b37ce1077dcc646bfacb091b25 | [
"Apache-2.0"
] | permissive | philippeowagner/django-parler | c10634a863088708644cbe4592bac635553e44a0 | db0ff40760759f15620954994a2e2f8584733de4 | refs/heads/master | 2021-01-09T05:31:38.302665 | 2013-09-25T13:22:07 | 2013-09-25T13:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | from django.db import models
from parler.fields import TranslatedField
from parler.models import TranslatableModel, TranslatedFields, TranslatedFieldsModel
class ManualModel(TranslatableModel):
shared = models.CharField(max_length=200, default='')
class ManualModelTranslations(TranslatedFieldsModel):
master ... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
06c37b6866986287f6f5442dcec9d3ecc5a2d997 | 988c3065d6c475c0a90765b2245de54624325e22 | /venv/bin/pylint | 298cec919a098ab672eeb5f932e9ea3b6880dc57 | [
"MIT"
] | permissive | brayomumo/Instagram | c7e3ec061e4503320f3e1ed78096d032044f2435 | cbe932eac29afda480a0cbdea71a9f1eda01845c | refs/heads/master | 2021-09-09T13:20:07.682824 | 2019-09-02T09:06:47 | 2019-09-02T09:06:47 | 205,555,185 | 0 | 0 | null | 2021-09-08T01:15:00 | 2019-08-31T14:31:57 | Python | UTF-8 | Python | false | false | 263 | #!/home/smoucha/Desktop/projects/instagram/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"brayomumo5@gmail.com"
] | brayomumo5@gmail.com | |
b938e93bf47ff375e76e067089ecc3cb9b52a355 | 44702094bd2f512cc672ade27e39ca29755f89ac | /projects/chatbot/simple-bot.py | 6b33b0a67a0e789eb8e6fdca5a01e34e990489fd | [
"Python-2.0",
"MIT"
] | permissive | AIMLCamp/python-mini-projects | 20a1c15faa645aa4bd9a24efb3cee3da555201f5 | aaa166bb190d06b2264afc548a29c998a6664a3e | refs/heads/master | 2023-09-02T04:52:00.311157 | 2021-11-22T02:19:12 | 2021-11-22T02:19:12 | 407,899,754 | 0 | 0 | MIT | 2021-11-22T02:19:12 | 2021-09-18T15:38:25 | null | UTF-8 | Python | false | false | 268 | py | import asyncio
from wechaty import Wechaty, Message
async def on_message(msg: Message):
if msg.text() == 'ding':
await msg.say('dong')
async def main():
bot = Wechaty()
bot.on('message', on_message)
await bot.start()
asyncio.run(main())
| [
"1435130236@qq.com"
] | 1435130236@qq.com |
7b1a9539da50bb87e753173c18e83da533c2e5d9 | 46c76c7ca1d9d030606f2e3e95a2a9e6bbad2789 | /args2.py | b2b54870182508e085c37f588246b43d14263d83 | [] | no_license | KayMutale/pythoncourse | be9ff713cffc73c1b9b3c1dd2bdd6d293637ce1e | 985a747ff17133aa533b7a049f83b37fc0fed80e | refs/heads/master | 2023-04-13T07:58:00.993724 | 2021-04-16T14:19:41 | 2021-04-16T14:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py |
#!/usr/bin/env python3
import sys
if len(sys.argv) < 2:
arg = input("enter stop|start|restart: ")
else:
arg = sys.argv[1]
out = {
"start" : "starting",
"stop" : "stopping",
"restart" : "stopping\nstarting"
}
print out.get(arg,"usage: stops|start|restart")
| [
"mark@ledge.co.za"
] | mark@ledge.co.za |
dc182a07b673bb672258ea59918ef4ebc350823c | 2a5c0c49319989a24f9c9f18530f109bc48a8df1 | /CursesEnded/SecondYear/PythonAnaconda(BigData)/exam/pycharm/1.py | 34bc5d217826a141d75c77fb83c323b4654f861a | [] | no_license | Kamil-IT/Studies | 0ada6dd92d7ecdbd0a3164c7c80080dd715ce8fc | d70343b2b7818ce303d816443bb15d21e03b42e0 | refs/heads/master | 2022-12-22T01:55:35.047783 | 2022-10-20T18:55:29 | 2022-10-20T18:55:29 | 217,039,987 | 0 | 1 | null | 2022-12-10T06:03:55 | 2019-10-23T11:24:33 | Jupyter Notebook | UTF-8 | Python | false | false | 3,418 | py | from matplotlib import pyplot as plt
from numpy import random
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
def generate_data(quantity, cech_quantity, class_quantity):
result_to_learn = []
class_to_learn = []
for j in range(class_quantity):
for i in range(quanti... | [
"kkwolny@vp.pl"
] | kkwolny@vp.pl |
c3bb33f234a16ed5e919d2aafe6a6b045faef2da | 9080e6e53da365b0d811099e2e992041cf4b5b47 | /0x05-python-exceptions/100-safe_print_integer_err.py | b2fcf082bb0a97016d8da2c794ed362c5a96455f | [] | no_license | benjamesian/holbertonschool-higher_level_programming | 213ad8c39d1fc2ee81843124a46914be166445d3 | 99f00414833757e3b156c148927a858ce38baa0e | refs/heads/master | 2020-07-23T00:52:46.858544 | 2020-02-11T22:03:24 | 2020-02-11T22:03:24 | 207,389,880 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #!/usr/bin/python3
import sys
def safe_print_integer_err(value):
try:
print("{:d}".format(value))
return True
except Exception as inst:
sys.stderr.write("Exception: {}\n".format(inst))
return False
| [
"808@holbertonschool.com"
] | 808@holbertonschool.com |
f224136fc4dfb21113fa0f2acbc8d724fe512e68 | d61d0498f1dde41ec07878f1ef5da039c8351cff | /examples/DeepQNetwork/DQN.py | 6000f95fa4f600fcf01c625f56f8f83659f700ec | [
"Apache-2.0"
] | permissive | Johnson-yue/tensorpack | ca9a4e0de9d7292f696d634122d65eaa6f34d26d | a0601fb76df87f567e456ba97f3e51aa85ec50e0 | refs/heads/master | 2021-05-07T03:42:56.643626 | 2017-11-14T15:14:47 | 2017-11-14T15:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,906 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: DQN.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import os
import argparse
import cv2
import tensorflow as tf
os.environ['TENSORPACK_TRAIN_API'] = 'v2' # will become default soon
from tensorpack import *
from DQNModel import Model as DQNModel
from common import ... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
ff374d319bbe1f8b52441278e5fbb540de3bd79d | 3e799066e12dbcbbce073ce9d74fc3ae43683686 | /pytablereader/__version__.py | e01e0f951c4a397fce0e5ae2b326b104aa026250 | [
"MIT"
] | permissive | nneophyt/pytablereader | 07f51f47552256211abb7c58badaa1e4c6ec3e28 | b158cf6749ce95a4602c68b1268c4e5465464760 | refs/heads/master | 2020-09-09T01:16:34.405526 | 2019-05-11T12:34:37 | 2019-05-11T12:34:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # encoding: utf-8
from datetime import datetime
__author__ = "Tsuyoshi Hombashi"
__copyright__ = "Copyright 2016-{}, {}".format(datetime.now().year, __author__)
__license__ = "MIT License"
__version__ = "0.26.1"
__maintainer__ = __author__
__email__ = "tsuyoshi.hombashi@gmail.com"
| [
"tsuyoshi.hombashi@gmail.com"
] | tsuyoshi.hombashi@gmail.com |
f050dd43c5dae9b97542bc5a13d49bf1739a90f4 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /03_Linear_Algebra_for_Machine_Learning/07/04_orthogonal_matrix.py | 7ddc8461a7f485fbbf2d7feca3783fe63b74ce9a | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # orthogonal matrix
from numpy import array
from numpy.linalg import inv
# define orthogonal matrix
Q = array([
[1, 0],
[0, -1]])
print(Q)
# inverse equivalence
V = inv(Q)
print(Q.T)
print(V)
# identity equivalence
I = Q.dot(Q.T)
print(I)
| [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
897e63f4f998a043ef122953c3868e09cc9ac7ca | ecd25c36474ecf404a32f2f0096b5a6898e4c396 | /python_stack/django/django_fullstack/login_registration/login_registration_app/migrations/0002_user_confirm.py | 1e0c5732eeff98c6bf46805332c3db2d7d436d26 | [] | no_license | matthew-le/Coding_Dojo_Bootcamp | cd7b4aa8e231db372da05a0a5444114b07fbfabf | 6d433d5305d2d8f4ea485206895d8f84bedeb59d | refs/heads/main | 2023-06-13T23:05:23.827556 | 2021-07-23T23:56:35 | 2021-07-23T23:56:35 | 388,947,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Generated by Django 2.2 on 2021-07-13 06:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login_registration_app', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='confirm',
... | [
"you@example.com"
] | you@example.com |
a3c9f655f733b4654a8313f92f1838bd5fc36704 | 72e11a80587342b3f278d4df18406cd4ce7531e8 | /msrestazure/tools.py | 3f9a3209e80bcfab44f133f86b647e30171e3669 | [] | no_license | EnjoyLifeFund/Debian_py36_packages | 740666f290cef73a4f634558ccf3fd4926addeda | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | refs/heads/master | 2021-08-24T02:17:24.349195 | 2017-12-06T06:18:35 | 2017-12-06T06:18:35 | 113,167,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,653 | py | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""), ... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
8166e63dfbe2a305ad01e95cf19ee7a4183d8ec8 | cdd150baa9a03daead7112f5eaab8f49f1e362c4 | /hyperas_skipthoughts.py | 808dea3a4621c911df93976d6e9f67306573f041 | [] | no_license | shayezkarim/personality_detection | 3e7bc26c2e3030514f75fd2eb8925f5b094eece9 | 4e6fb55fc1f20587c7bad8018c36057d971cc5c9 | refs/heads/master | 2021-06-02T21:37:44.299032 | 2016-04-04T11:50:03 | 2016-04-04T11:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py | __author__ = 'Dimitris'
from hyperopt import Trials, STATUS_OK, tpe
from hyperas import optim
from hyperas.distributions import choice, uniform
from pprint import pprint
def keras_model():
from keras.models import Sequential
from keras.layers.core import Dense
from keras.regularizers import l2, activity_... | [
"dvpappas89@gmail.com"
] | dvpappas89@gmail.com |
343766aa0e9faba33b9e0181f38968f53cf96a5e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenPublicLifeLabelDeleteModel.py | b8a8e95bad811ee04d68d3c7a776e80cfeb2813d | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 899 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenPublicLifeLabelDeleteModel(object):
def __init__(self):
self._label_id = None
@property
def label_id(self):
return self._label_id
@label_id.setter
def ... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
48a93f055fff5c07977f8c95c1b0ff1694abb04e | d6018cbcbf01b72bb420309ddf0fa38c85b01de6 | /fulledits_ratio2_combine.py | 5ec6929e38ca73d46be7511f7a27894d360ce2f6 | [] | no_license | maxwshen/lib-analysis | daf57019ea6727719212b4fbe5741fe4d52adb5a | 6234a17883268b31ac71dabd509bc70183c4f99b | refs/heads/master | 2022-03-14T00:04:02.154164 | 2019-11-21T19:32:13 | 2019-11-21T19:32:13 | 175,507,042 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | #
from __future__ import division
import _config
import sys, os, fnmatch, datetime, subprocess, pickle
sys.path.append('/home/unix/maxwshen/')
import numpy as np
from collections import defaultdict
from mylib import util
import pandas as pd
# Default params
inp_dir = _config.OUT_PLACE + 'fulledits_ratio2/'... | [
"maxwshen@gmail.com"
] | maxwshen@gmail.com |
231ba5d2ac5db3833dad59496e76c2080e56b2c5 | 2967f6fe104b2ed9cd3f02b855b36a4dced9edc8 | /src/zope/server/tests/test_dualmodechannel.py | f51e7de9f0a694588b8c7dc4368b154edaddd1f4 | [
"ZPL-2.1"
] | permissive | cjwatson/zope.server | 935ff4ab8e5d65decc1c5d95b23305d57684166f | 9c40c8a1ae57d28f1e0fa21e740826befefc30d5 | refs/heads/master | 2023-05-04T15:33:24.972288 | 2019-07-11T12:03:41 | 2019-07-11T12:03:41 | 260,460,082 | 0 | 0 | NOASSERTION | 2020-05-01T13:00:40 | 2020-05-01T13:00:39 | null | UTF-8 | Python | false | false | 3,432 | py | # -*- coding: utf-8 -*-
"""
Tests for dualmodechannel.py.
"""
import unittest
from zope.server.dualmodechannel import DualModeChannel
class TestDualModeChannel(unittest.TestCase):
def test_handle_write_non_async(self):
channel = DualModeChannel(None, None)
channel.set_sync()
# Does noth... | [
"jamadden@gmail.com"
] | jamadden@gmail.com |
b7ebcf3e574b150fdfafd4aa4c3e105ec366084d | d80f3cbc26695590895b46c3049e40437a289f70 | /dataset_evaluate/mxnet_evaluate_lib/lib/dataset/pycocotools/coco.py | 07123656c856e89177a4204d1dc3765e271d165c | [] | no_license | unsky/unsky_tools | 704d308e56c7bdde68999e0f64636122418b6a13 | 413bd0f45c9e03dc6c72db7b4bf5b2b540fc45ad | refs/heads/master | 2021-01-01T16:22:07.102959 | 2017-09-05T02:37:29 | 2017-09-05T02:37:29 | 97,814,180 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,008 | py | __author__ = 'tylin'
__version__ = '1.0.1'
# Interface for accessing the Microsoft COCO dataset.
# Microsoft COCO is a large image dataset designed for object detection,
# segmentation, and caption generation. pycocotools is a Python API that
# assists in loading, parsing and visualizing the annotations in COCO.
# Ple... | [
"2081264@qq.com"
] | 2081264@qq.com |
7182a4e9f4a9770d1dc95f0bb348efded753d61c | 00f3f33b977e87d23c2158b906402ccb3cc4c42e | /venv/lightomatic-env/bin/pyreverse | 9a144a67653b5fed84c2f5f16d8a8f21450d76f3 | [] | no_license | cosmicRover/lightoMatic | 9591499ca82e5fa5afad4d008307c6187e671aca | 9d5b1b4a61c735fd2331e23e834a8f05b961c97f | refs/heads/master | 2020-05-31T19:27:08.456380 | 2019-06-07T03:26:21 | 2019-06-07T03:26:21 | 190,455,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | #!/home/joy/pythondevelopments/lightoMatic/venv/lightomatic-env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"jpaul3250@gmail.com"
] | jpaul3250@gmail.com | |
5698e5a876e761689f9c520384b1f7e6870ac36f | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/weapon/shared_pistol_blaster_dl44.py | a31cf79b61d98013892eb7aa11c560b2892efa92 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 455 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/weapon/shared_pistol_blaster_dl44.iff"
result.attribute_te... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
a7287d052f82a938605f40dd7adeb10780d563db | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_tries.py | af8c17ef049137b1628b04c5efd273459fedff18 | [
"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 | 219 | py |
from xai.brain.wordbase.verbs._try import _TRY
#calss header
class _TRIES(_TRY, ):
def __init__(self,):
_TRY.__init__(self)
self.name = "TRIES"
self.specie = 'verbs'
self.basic = "try"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cc05aa4ae344528373cbfecd81a1db58068e7630 | 54d17336ca03801bd9c9ef37be8642b332ab71c4 | /osm/SO/rwlaunchpad/plugins/rwmonparam/rift/tasklets/rwmonparam/__init__.py | b7759435f71e74e0e62c6d2f40532748e11cad31 | [] | no_license | dennis-me/Pishahang | 2428379c4f7d3ee85df4b85727ce92e8fe69957a | cdd0abe80a76d533d08a51c7970d8ded06624b7d | refs/heads/master | 2020-09-07T12:35:54.734782 | 2020-01-24T20:11:33 | 2020-01-24T20:11:33 | 220,782,212 | 2 | 0 | null | 2019-11-10T11:46:44 | 2019-11-10T11:46:43 | null | UTF-8 | Python | false | false | 51 | py | from .rwmonparam import MonitoringParameterTasklet
| [
"github@OrangeOnBlack.de"
] | github@OrangeOnBlack.de |
ec55cd3ac6ec5285cd52aceae1ef4ae1e62ffc2d | c4a119311ac01bbe7d5ab81b1d3d663ad0900ab6 | /python-build/python-libs/xmpppy/setup.py | 1e145617a61190a81d79af3c4ed04773925b3d8d | [
"Apache-2.0",
"GPL-3.0-only"
] | permissive | kuri65536/python-for-android | 1d8d99e81e64bc87805c2c58ee0dcf43d413e72e | 26402a08fc46b09ef94e8d7a6bbc3a54ff9d0891 | refs/heads/master | 2021-06-02T01:17:29.685199 | 2018-05-05T00:12:13 | 2018-05-05T01:36:22 | 32,235,625 | 280 | 122 | Apache-2.0 | 2020-05-15T06:47:36 | 2015-03-14T22:44:36 | Python | UTF-8 | Python | false | false | 1,478 | py | #!/usr/bin/python
# -*- coding: koi8-r -*-
from distutils.core import setup,sys
from setuptools import setup
import os
if sys.version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
# Set proper release version in ... | [
"manuel@aircable.net"
] | manuel@aircable.net |
f2a5dbbfad5429b613f7fbd0482e5f5d3441bdb3 | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/aliyun/aliyun-openapi-python-sdk/aliyun-python-sdk-slb/aliyunsdkslb/request/v20140515/CreateLoadBalancerUDPListenerRequest.py | 0374135d7ac8fdca7269fcdf3feba84679d20533 | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 3,984 | 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... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
08874ff08accc44a3c0a0e0a92d886914cee7c0c | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/appplatform/azure-mgmt-appplatform/generated_samples/api_portals_validate_domain.py | f8f3c175988334e6b10e93453d559364436bf476 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,688 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e3fade9d6427a0fd859bce2452a69b4b456812e4 | 93ab050518092de3a433b03744d09b0b49b541a6 | /iniciante/Mundo 03/Exercícios Corrigidos/Exercício 086.py | 025478d7b517f7bbf55da3cbbcb5478b7fce08ae | [
"MIT"
] | permissive | ggsant/pyladies | 1e5df8772fe772f8f7d0d254070383b9b9f09ec6 | 37e11e0c9dc2fa2263ed5b42df5a395169408766 | refs/heads/master | 2023-01-02T11:49:44.836957 | 2020-11-01T18:36:43 | 2020-11-01T18:36:43 | 306,947,105 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | """
EXERCÍCIO 086: Matriz em Python
Crie um programa que crie uma matriz de dimensão 3x3 e preencha com valores lidos pelo teclado.
0 [_][_][_]
1 [_][_][_]
2 [_][_][_]
0 1 2
No final, mostre a matriz na tela, com a formatação correta.
"""
matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
for l in range(0, 3):
for ... | [
"61892998+ggsant@users.noreply.github.com"
] | 61892998+ggsant@users.noreply.github.com |
5d5bc7602ec344e62021ba7cb378c8157ab4bec7 | b8ef3a93cb9fa4d60a785e7f7b5adafc907e6f65 | /ruman/cron/manipulate_model/calculate.py | a15427d01093edd20c307abcaa9e2c424d4f7b34 | [] | no_license | lvleilei/screen | 46289b8a80850ac4db8a08b58eb4fc3fd65a0e01 | 13d4f9ac91a5e610f68525ff2a2306372810b681 | refs/heads/master | 2020-03-19T13:05:55.207809 | 2018-06-08T03:37:22 | 2018-06-08T03:37:22 | 136,560,545 | 0 | 0 | null | 2018-06-08T03:17:20 | 2018-06-08T03:17:20 | null | UTF-8 | Python | false | false | 20,090 | py | #-*-coding: utf-8-*-
import sys
reload(sys)
sys.path.append("../../")
import pandas as pd
import math
import numpy as np
from config import *
from time_utils import *
from sql_utils import *
from elasticsearch import Elasticsearch
#from createframe import es_search
#from create import table1,table2
def w... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
6f75e2758605c523dbba4a1707b229552ae59f5c | 877866345067cc6e356bcaaaa29a27b335cc4095 | /bulmaio_jinja2/sidebar/page/models.py | ea57b04810ae78a2ca1400d9086f386d6aa56ba2 | [
"MIT"
] | permissive | pauleveritt/bulmaio_jinja2 | 28a6e3da3dd577075cd9e658a6e7d7eace765fd8 | 97e09e539469337e05aa6c7a268264f2ca523da6 | refs/heads/master | 2020-03-23T16:51:11.894880 | 2018-10-04T19:10:11 | 2018-10-04T19:10:11 | 141,830,196 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | from typing import List, Optional
from bulmaio_jinja2.author.models import Author
from bulmaio_jinja2.base_model import CustomBaseModel
class SidebarPublished(CustomBaseModel):
published_date: str = None
published_time: str = None
author: Optional[Author] = None
class SidebarPrevNextItem(CustomBaseMode... | [
"pauleveritt@me.com"
] | pauleveritt@me.com |
469fe4540152fbd03607bf2825896ac72329ff43 | 5c1746c4ae9f5eb4c94c9b3a70a4d3feb966ceda | /pcapkit/vendor/reg/__init__.py | 31108b29a8037d07f9367c776cb95fa3d91292ad | [
"BSD-3-Clause"
] | permissive | JarryShaw/PyPCAPKit | 8b53c76cf54f2ef1a9e4d0a7aeb3d52605dc1d5a | a6fe49ec58f09e105bec5a00fb66d9b3f22730d9 | refs/heads/main | 2023-08-29T12:49:58.611378 | 2023-08-28T14:05:43 | 2023-08-28T14:05:43 | 109,791,841 | 204 | 29 | BSD-3-Clause | 2023-09-11T17:09:06 | 2017-11-07T05:41:56 | Python | UTF-8 | Python | false | false | 1,411 | py | # -*- coding: utf-8 -*-
# pylint: disable=unused-import
"""Protocol Type Registry Vendor Crawlers
============================================
.. module:: pcapkit.vendor.reg
This module contains all vendor crawlers of protocol type registry
implementations. Available enumerations include:
.. list-table::
* - :cl... | [
"jarryshaw@icloud.com"
] | jarryshaw@icloud.com |
95dc71f5773650d76824c1b85d404dc7f364db8c | ff00d19fbb2510b9ea127105896cfd13fc7be7bf | /Add_doctor/views.py | 603ad6caa951f3be94d0b7bd99d1e3d09ab91308 | [] | no_license | joypaulgmail/E_Health | ba43200ef6be39050fd934a83076b8acf702fe83 | b51569b9ce97fe775926a246ae4675ce561f72cf | refs/heads/master | 2023-03-01T23:04:02.510395 | 2021-02-06T07:33:43 | 2021-02-06T07:33:43 | 336,480,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.shortcuts import render
def add_doctor(request):
return render(request,'ADDDOCTOR/add_doctor.html')
| [
"joypaul650@gmail.com"
] | joypaul650@gmail.com |
d5b1438af7bbd961f911a25b4daf23155058dadb | 6296a2a73121271ae01a644b4bcd82c1aaff1899 | /worksheets/helpers/ex03.py | bfa7d8bbf3974b724ce44779140499d6eab43b15 | [
"MIT"
] | permissive | widdowquinn/Teaching-EMBL-Plant-Path-Genomics | 570de0234a9bf7a2dfc45d834cb775b3c837b314 | 5cb03893ab145ee51891ccddcef9ebffe3f9bb1e | refs/heads/master | 2021-01-18T23:27:08.243564 | 2017-11-16T10:02:18 | 2017-11-16T10:02:18 | 21,601,799 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | # ex03.py
#
# Functions and data useful in worksheet 3 of the Plant and Pathogen
# Bioinformatics course at EMBL
import pylab
def p_correct_given_pos(sens, fpr, b):
"""Returns a simple Bayesian probability for the probability
that a prediction is correct, given that the prediction
was positive, for the p... | [
"leighton.pritchard@hutton.ac.uk"
] | leighton.pritchard@hutton.ac.uk |
649893fe6b57e5ff6de93d3ae907446cf0b4c8ad | aa6c1bd093eddea65fb2f4ccc2a47020bb512a47 | /swimprotocol/address.py | e50be239ae4e81eab4e496065ac81a6f89ce33bf | [
"MIT"
] | permissive | chlin501/swim-protocol | 162606070388432ae616689d0dcd0e20f796f854 | 6f2cd3d4d4d35b5ea2a0060d225c6c469d7642ae | refs/heads/main | 2023-04-21T23:59:08.124099 | 2021-05-15T20:44:31 | 2021-05-15T20:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py |
from __future__ import annotations
from dataclasses import dataclass
from typing import Final, Optional
__all__ = ['Address', 'AddressParser']
@dataclass(frozen=True, order=True)
class Address:
"""Manages an address for socket connections.
Args:
host: The address hostname string.
port: The... | [
"ian@icgood.net"
] | ian@icgood.net |
724835a373b84b4476b57505c51a85b02c24ce3f | 89812f6ab80008222bcf93a9b2ca614a60291738 | /river/metrics/cluster/sd_validation.py | 93c41b6f2291198d07c65091eed03baab201b2d7 | [
"BSD-3-Clause"
] | permissive | Pandinosaurus/river | 47135f5b7e612f83d96f4a50f9d746dec834b16d | 09a24d35c1f548239c54c1244973241bfe5c4edc | refs/heads/master | 2023-08-27T21:08:12.553115 | 2021-11-09T22:10:17 | 2021-11-09T22:10:17 | 409,610,355 | 0 | 0 | BSD-3-Clause | 2021-11-10T04:13:30 | 2021-09-23T13:47:27 | Python | UTF-8 | Python | false | false | 4,665 | py | import math
from river import stats, utils
from . import base
class SD(base.InternalMetric):
"""The SD validity index (SD).
The SD validity index (SD) [^1] is a more recent clustering validation measure. It is composed of
two terms:
* Scat(NC) stands for the scattering within clusters,
* Dis(... | [
"noreply@github.com"
] | Pandinosaurus.noreply@github.com |
2b9506dfc10e5e9c3b64a86ebcfe9e8106bd68fc | ba54b70f93fe7f9d114623d76b1ad3f88309d66f | /uimg/migrations/0001_initial.py | 70d0c465b8a1a916e9e82b8faabf34ef9bfaf92e | [] | no_license | loobinsk/newprj | 9769b2f26092ce7dd8612fce37adebb307b01b8b | c6aa6a46973fb46375f4b05a86fe76207a8ae16d | refs/heads/master | 2023-05-07T00:28:44.242163 | 2021-05-25T08:22:05 | 2021-05-25T08:22:05 | 370,617,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
import uimg.models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserImage',
fields=[
... | [
"root@bazavashdom.ru"
] | root@bazavashdom.ru |
06d353baa11398faddd39afac93ccc41d6c7e529 | 941cb76fde4fed6a85d804421f9deee5934a6684 | /yolanda/services/urls.py | cd88bb79eddbeb67be16a8f841f4e184318be6b8 | [] | no_license | ingenieroariel/yolanda | 0e27346afc96374e8c8f29af13b0e7218b2670f6 | b8038f04d32847ed74bdc44e9ff4f694d7bb0637 | refs/heads/master | 2021-01-13T01:59:22.243342 | 2013-12-19T12:00:10 | 2013-12-19T12:00:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django.conf.urls.defaults import patterns, url
from yolanda.services.views import DigitalGlobeProxy
urlpatterns = patterns("yolanda.services.views",
url(r"^dg/?", DigitalGlobeProxy.as_view(), name="dg_service"),
)
| [
"garnertb@gmail.com"
] | garnertb@gmail.com |
64559c6f29bd350bb9da38fc03ab2979fef8ba4c | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/eqptcapacity/mcastentryhist1qtr.py | fcabdb6dadac00eabd3652b3a046c41cb11a9f9e | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 11,028 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
85bf3fd33da87dfd622556ff0779eb6f9f315ff1 | 66b1748a1238eda820345f914f60da434c668cf0 | /CodeUp/CodeUp1064.py | 77ad0d37f5e24b106e755038bf661c7f1848e046 | [] | no_license | kwangminini/Algorhitm | 5d3140021584239e30468d3dcb353b119b935e76 | 4d9a3b9284c90d141c1a73e14329152455373c53 | refs/heads/master | 2023-09-03T07:33:51.228150 | 2023-08-28T13:39:52 | 2023-08-28T13:39:52 | 225,879,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
print (((a if b<c else (a if a<c else c) )if a<b else (b if b<c else c))) | [
"rhkdals7362@gmail.com"
] | rhkdals7362@gmail.com |
0fdb42f90603cc164bd7435a2bc8f96429a8aa96 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/odtjoh001/question3.py | db78f68e48dd183436aca1d79122ba904d28af82 | [] | 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 | 1,212 | py | """Program to check if sudoku grid is valid
John Odetokun
14 May 2014"""
#create 2d-array
grid = []
list = []
for i in range (9):
list.append(input())
for c in range(9):
for i in range (9):
inpt = list[c]
gridline = []
for j in range(9):
gridline.append(inpt[j])
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
b07984eef9b46c502f3ffefbdc0893d6f0773d9c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/rubicund.py | b2a8d52712df9b1f42c6576c35321bc7fa16e6e1 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 63 | py | ii = [('CarlTFR.py', 2), ('WestJIT2.py', 1), ('AinsWRR.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
523339f3f723af86067fda3b7161b1ad59725180 | 2a6412a9359a1df5f8f12e319e73b9e4e46fd64c | /code/PythonINIAD/IPv4Converter.py | 1f3f0dd3fefe4e3730ff7d3b00238580eff77027 | [] | no_license | danganhvu1998/myINIAD | 504d1147a02f12e593f30e369daf82f85aa01bfd | 01547673dd3065efb6c7cc8db77ec93a5a4f5d98 | refs/heads/master | 2022-03-17T12:58:34.647229 | 2022-02-08T06:34:19 | 2022-02-08T06:34:19 | 143,675,719 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | import re
def biToDe(biStr):
ans=0
for bit in biStr:
ans=ans*2+int(bit)
return ans
def deToBi(deStr):
ans = ""
currValue = 128
deInt = int(deStr)
for i in range(0,8):
if(deInt>=currValue):
ans+="1"
deInt-=currValue
else:
ans+="0"
... | [
"danganhvu1998@gmail.com"
] | danganhvu1998@gmail.com |
722a7efc2f0ee638c965bda8fc21e4e61f6e9a20 | bf8d344b17e2ff9b7e38ad9597d5ce0e3d4da062 | /deploy/python/mot_jde_infer.py | 793d5271bf0a30c8c496efd0e3a12d6679260513 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleDetection | e7e0f40bef75a4e0b6dcbacfafa7eb1969e44961 | bd83b98342b0a6bc8d8dcd5936233aeda1e32167 | refs/heads/release/2.6 | 2023-08-31T07:04:15.357051 | 2023-08-18T02:24:45 | 2023-08-18T02:24:45 | 217,475,193 | 12,523 | 3,096 | Apache-2.0 | 2023-09-10T10:05:56 | 2019-10-25T07:21:14 | Python | UTF-8 | Python | false | false | 14,853 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
aaeda1c90c18d3d74453e7657b0af315e5024ae3 | f71f44d5ddc17e3c30e2bfd7988e5111a55a8b9a | /diplom/source/src/lib/interpolation/__init__.py | 375be80432c4755fbe11bc0dee04cceaae888a25 | [] | no_license | Yashchuk/diplom | 5ed1998d4b3d1fe568599973ec134f7ca13e8417 | 4029ed91ce93a41af44f03bcce365fdaecb64a37 | refs/heads/master | 2021-01-15T17:02:03.723007 | 2014-01-21T13:42:48 | 2014-01-21T13:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,813 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# file interpolation/__init__.py
#
#############################################################################
# Copyright (c) 2013 by Panagiotis Mavrogiorgos
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, ... | [
"andrew.freelance@i.ua"
] | andrew.freelance@i.ua |
896eb2ea8561b2a2c07d720ca69366a09fe1d5ac | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03418/s781538433.py | 5d531f3c4ae6cffe8a4ee7db60e768bb5e17a08c | [] | 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 | 254 | py | from fractions import gcd
def NK():
return map(int,input().split())
def main():
n,k = NK()
ans = 0
for i in range(1,n+1):
ans += (n//i)*max((i-k),0) + max(n%i-max((k-1),0),0)
print(ans)
if __name__ == "__main__":
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9fc75b632c2f6956fff01f5c2be76f1e9601666d | 1e8c805e96bc854b5acf4282c47c16ce6e1980e2 | /examples/Laplace_equation_1D.py | 173ac8080a56f7f3cc23dd09d86dfdedf85d3146 | [] | no_license | LaplaceKorea/DWave-Quantum-Annealing | d0a3058ee6b4e1e5163be28fa5dfb77e0f85c51f | 16f934e995b72aaf618480aeaf3f09dd07c2ff47 | refs/heads/master | 2023-02-22T08:49:28.588459 | 2021-01-22T02:58:38 | 2021-01-22T02:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,251 | py | """Solve 1D Laplace's equation"""
# Import packages
import warnings
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from neal import SimulatedAnnealingSampler
from dwave.system import EmbeddingComposite, DWaveSampler
from dwaveutils import bl_lstsq
# Define function
def get_laplace_1D(N, nu... | [
"supon3060@gmail.com"
] | supon3060@gmail.com |
6ae24ce5a38fadb2705eb4cf461cc71939a0abca | a9063fd669162d4ce0e1d6cd2e35974274851547 | /test/test_group_member.py | cc3e314546f87473aa1601c72e04b3590d97de44 | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
be15dd2c3d2b11acfae14de866b23bd69f9750e6 | dde8b97eee29cd6af17082cf84773d50bea7ca42 | /WHAnalysis/Configuration/test/CRAB/patTuple_standard_MC2_cfg.py | 1d4fadcebe1c85cd57ad983209b0173401d0ad8c | [] | no_license | calabria/WHAnalysis | 557cee96fe1dfe221a3a76f99b92f59c0800a8eb | 6cdcc0b73d94261f5ff7822b8bf5e48bc08268ae | refs/heads/master | 2021-01-23T13:36:11.593683 | 2014-04-12T10:39:44 | 2014-04-12T10:39:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,798 | py | ## import skeleton process
from PhysicsTools.PatAlgos.patTemplate_cfg import *
from WHAnalysis.Configuration.customizePAT import *
process.MessageLogger.cerr.FwkReport.reportEvery = 5000
process.load("RecoTauTag.Configuration.RecoPFTauTag_cff")
## ------------------------------------------------------
# NOTE: you c... | [
"cesare.calabria23@gmail.com"
] | cesare.calabria23@gmail.com |
80678ceb51847e3b26747328eba3de5a01e8f40b | 27c94d7e040902d3cdadd5862b15e67ec2ee4b6e | /xautodl/models/__init__.py | 5f57daf2c399af9b12b76b52aea6db637943ebb6 | [
"MIT"
] | permissive | D-X-Y/AutoDL-Projects | 8a0779a7710d809af2b052787928d8d34c14d0d9 | f46486e21b71ae6459a700be720d7648b5429569 | refs/heads/main | 2023-08-13T10:53:49.550889 | 2022-04-24T22:18:16 | 2022-04-24T22:18:16 | 168,538,768 | 989 | 197 | MIT | 2022-04-24T22:16:21 | 2019-01-31T14:30:50 | Python | UTF-8 | Python | false | false | 12,249 | py | ##################################################
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 #
##################################################
from os import path as osp
from typing import List, Text
import torch
__all__ = [
"change_key",
"get_cell_based_tiny_net",
"get_search_spaces",
"get_c... | [
"280835372@qq.com"
] | 280835372@qq.com |
956ba6af02f0df809334dadc3cfd857eb38648f2 | a9ce7176631ebc3bb8188d6aa3c2be09137fb43a | /migrate/0002_add_column_locationrating_hand_aligned.py | 3c4d8d3b146229be084bab19514da5cf584021a0 | [
"MIT"
] | permissive | andrewhead/Search-Task-Analysis | 0081c8c0ad6682c7e4a87aad1af4a57d18287137 | ef73745a760b5c2ec7060488219bb29237c26464 | refs/heads/master | 2020-05-21T20:04:36.299697 | 2016-09-19T00:39:06 | 2016-09-19T00:39:06 | 60,795,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from playhouse.migrate import migrate
from peewee import BooleanField
logger = logging.getLogger('data')
def forward(migrator):
migrate(
migrator.add_column('locationrating', 'hand_aligned', BooleanFie... | [
"head.andrewm@gmail.com"
] | head.andrewm@gmail.com |
c765e708dfb60a128b9ad5a48c0653d87f25b641 | aac5982c8dcf26221419086fb90c399b9f4324ef | /DFTB/MolecularIntegrals/hmi_continuum.py | 291a9f0fcdc3962b4c49d702ff72f7bc88311c0f | [] | no_license | by-student-2017/DFTBaby-0.1.0-31Jul2019 | 99184d3fa2976d4e02f7f1bddee97e56526d9365 | 92cb73f1a6472f88588986561349d7f2ad1b1c15 | refs/heads/master | 2022-12-12T00:12:50.449505 | 2020-09-01T21:05:59 | 2020-09-01T21:05:59 | 290,116,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | #!/usr/bin/env python
from DFTB.MolecularIntegrals import settings
from DFTB.MolecularIntegrals.BasissetFreeDFT import BasissetFreeDFT
import numpy as np
def hmi_continuum(l, m, E):
"""
compute continuum orbitals of the hydrogen molecular ion H2+
Parameters
----------
l,m : angular quantu... | [
"studentsctest@gmail.com"
] | studentsctest@gmail.com |
310e89e57e8b49add71c684c7faba652eff81f6b | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/hIndex_20200730204441.py | 7a49df44b99367a612d1fa52a7d722fd611b7328 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | def Hindex(citations):
result = 0
citations.sort()
for i in range(len(citations)-1,0,-1):
cnt = len(citations) -i
if citations[i] >
print('i',i,'cnt',cnt)
Hindex([3,0,6,1,5]) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
36807336601be9e76fa772e435e3ca35fe6b9a9f | 7f523c407d45d116860eff67f079e807f2b53339 | /src/third_party/capstone/bindings/python/capstone/ppc.py | 6ab177db1b88c484534778579eefa4aa0e8e5be7 | [
"MIT",
"BSD-3-Clause",
"NCSA"
] | permissive | 0vercl0k/rp | a352c96bfe3715eb9ce8c5942831123e65289dac | b24e7f58a594aaf0ce3771745bf06862f6ecc074 | refs/heads/master | 2023-08-30T08:03:14.842828 | 2023-08-09T00:41:00 | 2023-08-09T00:41:00 | 3,554,173 | 1,557 | 239 | MIT | 2023-08-09T00:41:02 | 2012-02-26T19:26:33 | C++ | UTF-8 | Python | false | false | 1,321 | py | # Capstone Python bindings, by Nguyen Anh Quynnh <aquynh@gmail.com>
import ctypes
from . import copy_ctypes_list
from .ppc_const import *
# define the API
class PpcOpMem(ctypes.Structure):
_fields_ = (
('base', ctypes.c_uint),
('disp', ctypes.c_int32),
)
class PpcOpCrx(ctypes.Structure):
... | [
"noreply@github.com"
] | 0vercl0k.noreply@github.com |
602750c19d6f198161d370a3d29d26e2b4708df9 | 7410903c6cd5ef35c592af00c934fb21c369cbf2 | /00_Code/01_LeetCode/781_RabbitsinForest.py | d63e85b18090554a3b65338b566a90711bd3ff96 | [
"MIT"
] | permissive | KartikKannapur/Algorithms | f4e4726170599db0622d18e8c06a382e9bce9e77 | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | refs/heads/master | 2020-12-25T18:32:41.086518 | 2020-10-19T02:59:47 | 2020-10-19T02:59:47 | 93,961,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | """
In a forest, each rabbit has some color. Some subset of rabbits (possibly all of them) tell you how many other rabbits have the same color as them. Those answers are placed in an array.
Return the minimum number of rabbits that could be in the forest.
Examples:
Input: answers = [1, 1, 2]
Output: 5
Explanation:
Th... | [
"kartikkannapur@gmail.com"
] | kartikkannapur@gmail.com |
376b7555eaeb64dd1701034102e96eb1f46a0cd8 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/fleet/azext_fleet/vendored_sdks/v2022_07_02_preview/operations/_fleets_operations.py | 1017f9c132abcef964e35bd610d30a18a06d7af6 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 51,536 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
fc470ad6da33016499e446b9ece69470a9b8d9a7 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20200414/codes/output/code090.py | 1bc796c03085d8ba177161a12962daf89860121c | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 180 | py | import pygal
chart = pygal.Line()
chart.add('line', [.0002, .0005, .00035], dots_size=4)
chart.add('line', [.0004, .0009, .001], dots_size=12)
print(chart.render(is_unicode=True))
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
a11a26a952f57d707df35bd758411f0eb76a9b4d | 9f84d91a8ae3df53b07fe3267992fba00a99ac9e | /torch_geometric/transforms/add_remaining_self_loops.py | 4150f30254ba8d1d07584b91f4e382795bd524ef | [
"MIT"
] | permissive | pyg-team/pytorch_geometric | ebea601eae228f3905465b5c2349d3fb3bb5cb26 | a52af694b8ce6a80811e20966fe6d08a3e7511fe | refs/heads/master | 2023-08-31T04:13:40.943308 | 2023-08-30T12:48:42 | 2023-08-30T12:48:42 | 106,024,057 | 6,775 | 1,563 | MIT | 2023-09-14T17:10:18 | 2017-10-06T16:03:03 | Python | UTF-8 | Python | false | false | 2,087 | py | from typing import Optional, Union
from torch import Tensor
from torch_geometric.data import Data, HeteroData
from torch_geometric.data.datapipes import functional_transform
from torch_geometric.transforms import BaseTransform
from torch_geometric.utils import add_remaining_self_loops
@functional_transform('add_rem... | [
"noreply@github.com"
] | pyg-team.noreply@github.com |
2fc6e64bdf4d69197a40ec1baedf053a5dbf7047 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/anp.py | 615ee34b3b608f8f3a4e5a96c301c57a86ea8e13 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
081dcfaf35eab2dc448a2db49ecc3d1ae03e2589 | 31681488e69da3c7e00b0eda28e5cb720ef2299c | /liteiclink/serwb/datapath.py | dbdb5ea0b5f764e6f447754d0c099fba7da78b88 | [
"BSD-2-Clause"
] | permissive | zsipos/liteiclink | 4e9bdf6a819f490461cb33d0837247041203071d | 864cd831f3475dffd1c92d6d4a1b86608680bcf2 | refs/heads/master | 2021-07-08T07:43:10.897604 | 2020-01-28T09:40:17 | 2020-01-28T09:40:17 | 245,119,569 | 0 | 0 | NOASSERTION | 2020-03-05T09:25:16 | 2020-03-05T09:25:15 | null | UTF-8 | Python | false | false | 6,030 | py | # This file is Copyright (c) 2017-2019 Florent Kermarrec <florent@enjoy-digital.fr>
# License: BSD
from migen import *
from migen.genlib.io import *
from migen.genlib.misc import BitSlip, WaitTimer
from litex.soc.interconnect import stream
from litex.soc.cores.code_8b10b import Encoder, Decoder
from liteiclink.serwb... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
3fe587d3479f35c248d556caac968306f606b220 | 2881dcaa58b2acbb56fe7ecdf30f1f31ec53798f | /sliding-window/max-distinct-substring/max-distinct-substring-iterative.py | 188babf47d7c25a5c63ecc49803d8c18766a160d | [] | no_license | aratik711/grokking-the-coding-interview | 2ec8791c5c1f65a752e795bded4f66b79bf8e3cc | 95a3c477d3ebd49c2d1f9d51394b61680f05a38b | refs/heads/main | 2023-07-03T10:04:39.613221 | 2021-08-11T03:08:11 | 2021-08-11T03:08:11 | 343,046,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | """
Given a string, find the length of the longest substring in it with no more than K distinct characters.
Example 1:
Input: String="araaci", K=2
Output: 4
Explanation: The longest substring with no more than '2' distinct characters is "araa".
Example 2:
Input: String="araaci", K=1
Output: 2
Explanation: The longes... | [
"arati.kulkarni@phonepe.com"
] | arati.kulkarni@phonepe.com |
caa8a343b37b913dc10f18a9cd8223fb7b89c06a | e87f369bf5642d25990d7e1b72d9fda9eab39fea | /invoke_commands/release.py | 0c8d2359956e60429dabfae22afe5d3a59e6511d | [
"MIT"
] | permissive | rajk-apps/riki | 612fc4716b842562447d9f7163cb8681e7e1e7c3 | 58257bffe7d7f00fc0cb8dc266d783c00cc16070 | refs/heads/master | 2022-10-05T21:48:17.285899 | 2022-09-18T16:31:31 | 2022-09-18T16:31:31 | 162,050,032 | 1 | 2 | MIT | 2020-07-15T21:19:40 | 2018-12-16T23:19:49 | JavaScript | UTF-8 | Python | false | false | 1,329 | py | from invoke import task
import io
from .vars import mymodule
@task
def new(c):
version = mymodule.__version__
c.run("python setup.py sdist")
c.run("twine check dist/*")
c.run(
f"twine upload dist/*{version}.tar.gz -u __token__ -p $TWINE_PASSWORD"
)
@task
def tag(c):
version = mym... | [
"endremborza@gmail.com"
] | endremborza@gmail.com |
84bb2ef6d0e866019e761834acd91b17ecfa1556 | c35b8c8ece7757943d93748fbdc6f4d54539daa6 | /poloniex/logger.py | d4d0f0e9d5aa72ff43545d70fd87b16508855ef5 | [
"MIT"
] | permissive | absortium/poloniex-api | 0b674a6fe11c60263f596049d274a7f45095b989 | e1786e8edf9116990dc2291f343ed965e9d0f5ae | refs/heads/master | 2020-12-25T16:24:52.723504 | 2017-09-27T21:13:48 | 2017-09-27T21:13:48 | 51,717,220 | 99 | 40 | null | 2017-09-27T21:13:49 | 2016-02-14T22:27:07 | Python | UTF-8 | Python | false | false | 1,273 | py | import inspect
import logging
from functools import wraps
import pp
__author__ = 'andrew.shvv@gmail.com'
def get_prev_method_name():
return inspect.stack()[2][3]
def pretty_wrapper(func):
@wraps(func)
def decorator(msg, *args, **kwargs):
pretty_msg = "Func: %s\n" % get_prev_method_name()
... | [
"andrew.shvv@gmail.com"
] | andrew.shvv@gmail.com |
8464fa813408dff6410bbc7f7c32ecb9dba9d7bc | 222367d17e0567a5d02a8391bc6954a57989b3eb | /main.py | 5dc926504d8fec28d4e21b9c0ed8f902f7240a38 | [] | no_license | turian/hydra-notebook | 8fe6a38aad2dda75ea4425b824fb527e8ca5d090 | faf499dd0c6ad0da75e9f03898fc08b731505502 | refs/heads/master | 2022-11-10T11:37:18.824841 | 2020-06-21T00:09:22 | 2020-06-21T00:09:22 | 273,799,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:light
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.4.2
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
import hydra.experimental... | [
"turian@gmail.com"
] | turian@gmail.com |
882fbb1f343f673995324914119c91a1e80e22b5 | 039c5b793ace774bb815f4061a273ff098efd475 | /in_dev/send/sender/migrations/0002_documents.py | f567f03c6f4c0c553e1c78268b62e5823994e086 | [] | no_license | zzyzx4/soft | b7872a1c1e2dc91912f22aaaf96f2cedaf1423c1 | 264c399ddef2b55efd8a1a8b796320f72c6dec7c | refs/heads/master | 2022-12-16T20:50:45.512689 | 2019-07-01T11:38:12 | 2019-07-01T11:38:12 | 184,214,960 | 0 | 0 | null | 2022-12-08T05:07:18 | 2019-04-30T07:38:24 | null | UTF-8 | Python | false | false | 958 | py | # Generated by Django 2.2.1 on 2019-05-15 10:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sender', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Documents',
fields=[
('id',... | [
"dastik0101@gmail.com"
] | dastik0101@gmail.com |
436534c28628cdbcb5a0a11c881988de9e4ff2d4 | 93115f6d768793e70f496cf9c00e20f35d7b0978 | /manage.py | 233bdae7d0dba27fea07f41ff64191b1b6425849 | [] | no_license | RedSnip8/venu_menu.py | d884b888135edd8fee4e6a39ddd082e41a4a6109 | 59aa957c62288770eab9dbbfd859f7f751dab3bf | refs/heads/master | 2020-07-06T17:39:37.351890 | 2019-08-21T05:25:05 | 2019-08-21T05:25:05 | 203,093,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'venumenu.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"FCipolone@gmail.com"
] | FCipolone@gmail.com |
d863aa960bd859d9f48e63cb47e8b52f47519960 | 739b531f456ef13c04e437239a08c4ffac6b49f5 | /jl/bin/digg-tool | 4440f8b121458ed4421524ca4b973cba2460a0c9 | [] | no_license | bcampbell/journalisted | e2ec3a6f48bdf0bec4e6e5245c7975c23e77f07d | 0df05a829825e67c35e2963c1a6d53db5872e203 | refs/heads/master | 2021-01-21T05:01:59.155762 | 2016-06-14T04:18:13 | 2016-06-14T04:18:13 | 306,575 | 6 | 1 | null | 2013-07-19T04:37:45 | 2009-09-14T13:00:58 | PHP | UTF-8 | Python | false | false | 2,846 | #!/usr/bin/env python2.4
# 2008-03-19 BenC Initial version
#
# Scraper which looks for references to newspaper articles
# on digg.com and loads the number of diggs, comments etc
# into our database, populating the article_commentlink table.
#
import sys
from datetime import datetime
from optparse import OptionParser... | [
"ben@scumways.com"
] | ben@scumways.com | |
18ac3c356a6997616ffd316d126b96694524b264 | d73409535734a788af83a9b2b2e32dd1b979d5d2 | /proxySTAR_V3/certbot/certbot/tests/util.py | a36f0f6acfe177d279e2ea8b860f81c8a0fa4ebd | [
"Apache-2.0",
"MIT"
] | permissive | mami-project/lurk | adff1fb86cb3e478fe1ded4cbafa6a1e0b93bfdd | 98c293251e9b1e9c9a4b02789486c5ddaf46ba3c | refs/heads/master | 2022-11-02T07:28:22.708152 | 2019-08-24T19:28:58 | 2019-08-24T19:28:58 | 88,050,138 | 2 | 2 | NOASSERTION | 2022-10-22T15:46:11 | 2017-04-12T12:38:33 | Python | UTF-8 | Python | false | false | 8,987 | py | """Test utilities.
.. warning:: This module is not part of the public API.
"""
import multiprocessing
import os
import pkg_resources
import shutil
import tempfile
import unittest
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
import mock
import OpenS... | [
"diego.deaguilarcanellas@telefonica.com"
] | diego.deaguilarcanellas@telefonica.com |
827f27bc483bfd708ef207bef5a1bb0e2f15d46e | 2990b0841b63f300a722107933c01c7237a7976b | /all_xuef/程序员练级+Never/Fun_Projects/cs173-python/cs173-python-master/design2/python/james-tests/emptyfun.py | 2066cff1b0af808ea95c1998937555d5cae7171d | [] | no_license | xuefengCrown/Files_01_xuef | 8ede04751689e0495e3691fc5d8682da4d382b4d | 677329b0189149cb07e7ba934612ad2b3e38ae35 | refs/heads/master | 2021-05-15T04:34:49.936001 | 2019-01-23T11:50:54 | 2019-01-23T11:50:54 | 118,802,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | def foo():
pass
print("calling foo...");
foo()
print("done");
| [
"643472092@qq.com"
] | 643472092@qq.com |
35ada6f333d683b572c085d7576aed98123320ff | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/secdev_scapy/scapy-master/scapy/modules/queso.py | 9c38f42735e3c27a6b92186d7b3e5755b162164d | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,987 | py | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
"""
Clone of queso OS fingerprinting
"""
from scapy.data import KnowledgeBase
from scapy.config import conf
from scapy.l... | [
"659338505@qq.com"
] | 659338505@qq.com |
784a4de2014ccf41f5665df5f57e6d53f1f2f561 | fd65851c7977176cfa69056ea5d63ca529e74271 | /components/diagnostics/diagnose_me/component.py | 3578702ae14a0c8acd4a14d5fa8bc69b61c74c57 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | NikeNano/pipelines | dad9f45267a7f4c495a30880dd6fe1570f26fa64 | 73804f8928ce671839d34800627b6d3ea9f820a7 | refs/heads/master | 2022-01-29T21:24:43.693120 | 2021-11-20T18:18:35 | 2021-11-20T18:18:35 | 221,051,451 | 1 | 1 | Apache-2.0 | 2021-04-23T20:07:11 | 2019-11-11T19:11:29 | Python | UTF-8 | Python | false | false | 8,302 | py | # Copyright 2020 The Kubeflow 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 applicabl... | [
"noreply@github.com"
] | NikeNano.noreply@github.com |
24a66109c4bda7c5668b7766a6f938bbafb68128 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/46/usersdata/74/18966/submittedfiles/funcoes1.py | d635ffd151a958560fc49a52a3187bbec41da256 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | # -*- coding: utf-8 -*-
from __future__ import division
def crescente (lista):
i = 0
cont = 0
while (len(lista)-1)>=i:
if lista[i]<lista[i+1]:
cont=cont+1
i = i+1
if (len(lista)-1)==cont:
return 'S'
else:
return 'N'
def decrescente (lista1):
j = ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3323cd8116e2956ac0d1007bb69f9f4a201104df | a2bbd69fe69ec9a5737565b3b7325b5dcaaecf53 | /main/page/pe_add_product.py | 074f11ce24862b59e11eba0772961cbb3a95c473 | [] | no_license | SamWithWorld/selenium-2 | d945a03492548e8ee59bbb06d8c3bdb8593d8c54 | a575d7b3962a2754e69acb99cd48fe13dc62c6e5 | refs/heads/master | 2022-09-27T09:31:28.978249 | 2015-03-12T07:03:22 | 2015-03-12T07:03:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,693 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.action_chains import ActionChains
from random... | [
"herman.wahyudi02@gmail.com"
] | herman.wahyudi02@gmail.com |
4b4679abcadd364adbc3b56bf6980cb1b8789d12 | 0a037e4ee03c5afbf6f58b7293fefab1cc6998cf | /project_2/RollingDice.py | 2c4e7dc005788ebed16ca65fa51fc394a5f1cded | [] | no_license | mingyyy/crash_course | 6ac2a41b14c821e96e3938047cb056ad2ce99280 | dad9f9b37ef3093dad25a0cb7fddf0e65fed3571 | refs/heads/master | 2020-04-24T14:24:43.283617 | 2019-12-25T07:43:05 | 2019-12-25T07:43:05 | 172,019,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | from random import randint
import pygal
class Die():
def __init__(self, num_sides=6):
# dice of 6 sides
self.num_sides = num_sides
def roll(self):
# return a random value between 1 and the number of sides
return randint(1, self.num_sides)
n = 10000
m = 2
d1 = 8
d2 = 8
die1 =... | [
"j.yanming@gmail.com"
] | j.yanming@gmail.com |
b520f7db7409a921734c2c6347f277e85a5b12c0 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/6e4c690a37f2d01a3d6449cfbabcbf45b96d0310-<fetch_file>-fix.py | 0abe5d7bd70377b7a62337b97e29848916cd98bb | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,235 | py |
def fetch_file(self, in_path, out_path):
super(Connection, self).fetch_file(in_path, out_path)
in_path = self._shell._unquote(in_path)
out_path = out_path.replace('\\', '/')
display.vvv(('FETCH "%s" TO "%s"' % (in_path, out_path)), host=self._winrm_host)
buffer_size = (2 ** 19)
makedirs_safe(o... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
fbe2fb38035c098f1729f5fc9c642d658ef7bf9e | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/signal/testcase/firstcases/testcase4_004.py | e8b43073fbae46b2b65501337b4b3f9efaa91db6 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,165 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
fa8c20fc650e966a7c439fcf78f72ccfa51bcfd0 | 6669b132eb482f95c1f40d35ecae14a544fe9197 | /tree/no872.py | 2b4c2ee97838a1e8a4aef4db93b4708475064212 | [] | no_license | markdannel/leetcode | 94dade2e5a286d04075e70e48015459ea6ac383a | 6a2ac436599ecebc527efe0d6bfe0f6f825311fb | refs/heads/master | 2021-06-06T20:56:34.868122 | 2020-10-21T12:16:56 | 2020-10-21T12:16:56 | 140,668,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | # 请考虑一颗二叉树上所有的叶子,这些叶子的值按从左到右的顺序排列形成一个 叶值序列 。
# 3
# / \
# 5 1
# / \ / \
# 6 2 9 8
# / \
# 7 4
# 举个例子,如上图所示,给定一颗叶值序列为 (6, 7, 4, 9, 8) 的树。
# 如果有两颗二叉树的叶值序列是相同,那么我们就认为它们是 叶相似 的。
# 如果给定的两个头结点分别为 root1 和 root2 的树是叶相似的,则返回 true;... | [
"wistion@foxmail.com"
] | wistion@foxmail.com |
2c79ac5a234ab0c1909ec5ed4fb2e050dfc7c112 | 9c58a1f594e18cee20128f2c8dad8257429b10d1 | /custom_business_reports/report/mapm_pbl_sales.py | d00089e3779c08973a081d7404eb9b5b448fc350 | [] | no_license | gastonfeng/Odoo-eBay-Amazon | e8919768b2a1500209f209ee3aecc7f2fb10cda7 | a9c4a8a7548b19027bc0fd904f8ae9249248a293 | refs/heads/master | 2022-04-05T00:23:50.483430 | 2020-02-19T04:58:56 | 2020-02-19T04:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | # -*- coding: utf-8 -*-
from odoo import tools
from odoo import api, fields, models
class MAMPPBLSales(models.Model):
_name = "mapm.pbl.sales.report"
_description = "mapm.pbl.sales.report"
_auto = False
_rec_name = 'date'
_order = 'date desc'
order_id = fields.Many2one('sale.order', 'Order',... | [
"yjm@mail.ru"
] | yjm@mail.ru |
d3a937c8bafdeeaad095658e1450109e72bcd7bc | 62530422360aa0cb294cb208cbc7d21d282b18b5 | /test-1b/input_utils.py | 830a1d3799cca92271006521d459574d5937f330 | [] | no_license | ag8/capsule-b | d560d75d6204a41f4c8526a84fbdae614c9e47ff | fb3bdc9ebb66890fc3f6d06fd6d8e3335ae882f9 | refs/heads/master | 2021-04-15T08:35:27.283053 | 2018-04-17T05:55:08 | 2018-04-17T05:55:08 | 126,885,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,061 | py | import os, time
# import scipy
import numpy as np
import tensorflow as tf
import collections
from config import cfg
def load_mnist(path=cfg.dataset):
fd = open(os.path.join(path, 'train-images-idx3-ubyte'))
loaded = np.fromfile(file=fd, dtype=np.uint8)
trX = loaded[16:].reshape((60000, 28, 28, 1)).astype... | [
"andrew2000g@gmail.com"
] | andrew2000g@gmail.com |
dd6825da044bffc2f8a198b2c0760f36a3143b3c | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R4/benchmark/startPyquil591.py | 331ab5964b4d9cb39ebddab5d46ce4593416f25a | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | # qubit number=4
# total number=16
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(1) # number=2
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
c5aec8a31ec607c4e166febd65af3588cb70872c | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeDrdsInstanceDbMonitorRequest.py | 255282dcb1a0e419a4b6e5416b68bade5ef1804e | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,093 | 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 |
557cf22a3c0b34d01c3207e7ec3e3456814d148d | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/configuration_aggregator_resp.py | 7e3277665b36f94cf9e6f237eff00d1bee94f5fc | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 9,329 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ConfigurationAggregatorResp:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
373c8a72664191552bc59b1eb1c3eda9b042f144 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_suntan.py | f7092f8f48d34221b8bcda80a4bb30ba17516561 | [
"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 | 330 | py |
#calss header
class _SUNTAN():
def __init__(self,):
self.name = "SUNTAN"
self.definitions = [u'pleasantly brown skin caused by being in hot sun: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
971a4fe1130c67c67676450d48c44d9c0423faff | ae12996324ff89489ded4c10163f7ff9919d080b | /LeetCodePython/LargestColorValueInaDirectedGraph.py | c4c26114bd04fca86a8152f91f6b3614eb7fbe72 | [] | no_license | DeanHe/Practice | 31f1f2522f3e7a35dc57f6c1ae74487ad044e2df | 3230cda09ad345f71bb1537cb66124ec051de3a5 | refs/heads/master | 2023-07-05T20:31:33.033409 | 2023-07-01T18:02:32 | 2023-07-01T18:02:32 | 149,399,927 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | """
There is a directed graph of n colored nodes and m edges. The nodes are numbered from 0 to n - 1.
You are given a string colors where colors[i] is a lowercase English letter representing the color of the ith node in this graph (0-indexed). You are also given a 2D array edges where edges[j] = [aj, bj] indicates tha... | [
"tengda.he@gmail.com"
] | tengda.he@gmail.com |
0c074324b2e5f243477d914e86865f85b1de2e3d | 62179a165ec620ba967dbc20016e890978fbff50 | /nncf/tensorflow/quantization/init_range.py | 2d6bff0a405aa4fd16e1ccf112bfcdd01394e7a9 | [
"Apache-2.0"
] | permissive | openvinotoolkit/nncf | 91fcf153a96f85da166aacb7a70ca4941e4ba4a4 | c027c8b43c4865d46b8de01d8350dd338ec5a874 | refs/heads/develop | 2023-08-24T11:25:05.704499 | 2023-08-23T14:44:05 | 2023-08-23T14:44:05 | 263,687,600 | 558 | 157 | Apache-2.0 | 2023-09-14T17:06:41 | 2020-05-13T16:41:05 | Python | UTF-8 | Python | false | false | 11,386 | py | # Copyright (c) 2023 Intel Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writ... | [
"noreply@github.com"
] | openvinotoolkit.noreply@github.com |
f182b0390f018af7205452f0f5f35f9e85f0130c | 625daac7e73b98935f9fe93e647eb809b48b712e | /Challenges/checkEqualFrequency.py | beb465b5ca868a5cbcf16ba1eb2e11564169cb94 | [] | no_license | aleksaa01/codefights-codesignal | 19b2d70779cc60f62511b6f88ae5d049451eac82 | a57a5589ab2c9d9580ef44900ea986c826b23051 | refs/heads/master | 2022-03-15T04:46:40.356440 | 2019-12-08T15:41:37 | 2019-12-08T15:41:37 | 112,034,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
Given array of integers, check whether each integer, that occurs in it,
is contained there the same number of times as any other integer from the
given array.
"""
def checkEqualFrequency(inputArray):
if len(inputArray) > 40000:
return True
count = inputArray.count(inputArray[0])
for i in set(in... | [
"some12curious@gmail.com"
] | some12curious@gmail.com |
89c9bc62e1e65ff6b930e0fdc27eb8ab0c1b18fe | 054043e4b151459235c63cca32fc54e16ad4d619 | /manage.py | c6bdf3fd0df120d52341cc15a0106cc2bc7cff07 | [] | no_license | venugopalgodavarthi/model-26-6-2021 | 82c19d67cff39979ddefdd1b65004d55a3ad9afe | b742218f95ec393832c17c3201171789bf0bb4d0 | refs/heads/main | 2023-06-01T09:41:44.132863 | 2021-06-26T13:09:15 | 2021-06-26T13:09:15 | 380,504,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pro30.settings')
try:
from django.core.management import execute_from_command_line
except Import... | [
"venugopalgodavarthi@gmail.com"
] | venugopalgodavarthi@gmail.com |
9e046b04afc103d5c8c01bdaa9d96e966cffef3f | dbbdf35bff726681ae34ad08eeda5f30929e2ae9 | /math/0x00-linear_algebra/12-bracin_the_elements.py | 22bcbb1c3b72f1ab9f9c4b303ab98863b5e86b99 | [] | no_license | jorgezafra94/holbertonschool-machine_learning | 0b7f61c954e5d64b1f91ec14c261527712243e98 | 8ad4c2594ff78b345dbd92e9d54d2a143ac4071a | refs/heads/master | 2023-02-03T20:19:36.544390 | 2020-12-21T21:49:10 | 2020-12-21T21:49:10 | 255,323,504 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!/usr/bin/env python3
"""
using wise-element operations
"""
def np_elementwise(mat1, mat2):
"""
using Numpy wise-element operators
Methods of Numpy arrays or matrices
suma = np.add(mat1, mat2)
resta = np.subtract(mat1, mat2)
multi = np.multiply(mat1, mat2)
div = np.divide(mat1, mat2)
... | [
"947@holbertonschool.com"
] | 947@holbertonschool.com |
55a62710c495ee1c00662cc4bad352b248617cd1 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_utils.py | 0660b05a3a050fa3f60899b59ea31785903c1750 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 6,533 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
90cda9b891ed7f996babd72cf4f9b5c8bf58a64a | 87003211b07881fa747fe4fca0aa07f437f7b553 | /savanna/openstack/common/rpc/service.py | e9610c88090594de826ab67f1864a9421a96a933 | [
"Apache-2.0"
] | permissive | lookmee/savanna | 1215492c48173ec8e7423edb2896fcd2b7cbfa83 | 33cbdf6ef01e07fabe63bdbefb949012a9aadada | refs/heads/master | 2020-12-31T02:14:07.151864 | 2013-11-15T17:43:26 | 2013-11-15T17:43:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright 2011 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not... | [
"slukjanov@mirantis.com"
] | slukjanov@mirantis.com |
5871f2151c438d680e6b7ec9fa1d2014af3d58a4 | f98a1d31ab3e82be724a03de9e468d07a7c65b5e | /medium/sortColors.py | bc4a523cdf4809171ed15c02d6a1f825553ef29e | [] | no_license | chaochaocodes/leetcode | bd618973483a88d2aa1d9ba3d1463e8d152877d4 | 087b4780e7c95fc780afd3266129c4975c68b321 | refs/heads/master | 2023-06-05T06:04:38.863389 | 2021-06-17T04:07:49 | 2021-06-17T04:07:49 | 294,852,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | '''
https://leetcode.com/problems/sort-colors/
Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.
We will use the integers 0, 1, and 2 to represent the color red, white, and blue, respect... | [
"57464564+chaochaocodes@users.noreply.github.com"
] | 57464564+chaochaocodes@users.noreply.github.com |
b143cf79d367b8b2843fc4dc1106a8f70c8df756 | 33c4bc9ca463ce0ec61945fca5841c9d8a18ab8e | /thrift/compiler/test/fixtures/qualified/gen-py3/module1/types.pyi | 3526c5f207a7649315a2d163c2aee5a44aaa8fc0 | [
"Apache-2.0"
] | permissive | gaurav1086/fbthrift | d54bb343bf1a8503dd329fbfcd0b46fe9f70754c | 68d1a8790bfd5b3974e1b966c8071f9c456b6c6a | refs/heads/master | 2020-12-27T22:41:09.452839 | 2020-02-03T23:56:20 | 2020-02-03T23:58:33 | 238,088,855 | 0 | 0 | Apache-2.0 | 2020-02-04T00:13:04 | 2020-02-04T00:13:03 | null | UTF-8 | Python | false | false | 2,465 | pyi | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
# @generated
#
import folly.iobuf as __iobuf
import thrift.py3.types
import thrift.py3.exceptions
from thrift.py3.types import NOTSET, NOTSETTYPE
import typing as _typing
import sys
import itertools
__property__ = prop... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
04f783b4a4df38fece8fdcee10e4b9afc7e09de2 | 0ec046d7ad5b66bc14d5afaac178466f9f8e7073 | /config.py | da9665e8b3c9ed60bece06604c8618383058e7b7 | [] | no_license | MarsStirner/vesta | b7e7b9da9b6028acf1ea0cd7d6088037e95fef93 | 891b26ddfddfaebe145cf4c4a220fdb8c9f74fe0 | refs/heads/master | 2020-12-03T00:34:12.420995 | 2014-10-01T08:21:37 | 2014-10-01T08:21:37 | 96,043,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # -*- coding: utf-8 -*-
DEBUG = False
SERVER_HOST = '127.0.0.1'
SERVER_PORT = 5000
SYSTEM_USER = 'vesta'
MODULE_NAME = 'vesta'
WTF_CSRF_ENABLED = True
SECRET_KEY = ''
MONGODB_HOST = '127.0.0.1'
MONGODB_PORT = 27017
MONGODB_USER = 'vesta_user'
MONGODB_PASSWORD = 'vesta_pwd'
MONGODB_DB = 'vesta'
SIMPLELOGS_URL = 'ht... | [
"santipov@korusconsulting.ru"
] | santipov@korusconsulting.ru |
e675565a6db7627396edece81fd2bcaafcf387f4 | 8efb4caeafe2cfb024827ce194b5abae6fdfc9a4 | /test/functional/test_framework/siphash.py | 62d02f18535edfc6f28097327c5c332948720b6d | [
"MIT"
] | permissive | Worldcoin-Network/worldcoin | cd8ac9631154666cb11603d5f07e3a9dc2e1653a | 4f14d8baadda3f46363c26dc327a68b33f14e28c | refs/heads/master | 2022-03-04T01:50:14.783972 | 2021-10-26T15:21:47 | 2021-10-26T15:21:47 | 156,328,955 | 15 | 9 | MIT | 2021-05-10T16:58:07 | 2018-11-06T05:08:32 | C++ | UTF-8 | Python | false | false | 2,016 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2018 The Worldcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Specialized SipHash-2-4 implementations.
This implements SipHash-2-4 for 256-bit integers.
"""
def ... | [
"quentin.neveu@hotmail.ca"
] | quentin.neveu@hotmail.ca |
05ec9e42a6699d7ed705714b7814116855fc61ac | a64d7e2814c296db3157f841f17ea73169d54405 | /minmarkets/models.py | d50f27284d6342b43dec2b0d053731836029e009 | [] | no_license | andrewseft/amjumfb | ad8ea0dc091355437cbf0984983550fe149300a5 | 6c027f47e320b7ad9c7e27d635335c9b260216a7 | refs/heads/master | 2023-05-04T23:19:07.942766 | 2021-05-25T15:39:16 | 2021-05-25T15:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,998 | py | from cloudinary.models import CloudinaryField
from django.db import models
# Create your models here.
from accounts.models import Profile, upload_image_path
class LoanPackage(models.Model):
name = models.CharField(max_length=300, blank=True, null=True)
price = models.IntegerField(default=3000)
premium_pa... | [
"mathegeniuse@gmail.com"
] | mathegeniuse@gmail.com |
0dffae8f000cbe0ea6a09206c93f17ba9c7e5ea7 | b6475b69ae89f5a2ffb3c03c21d747bc6fddbdd2 | /user/migrations/0002_auto_20201202_1712.py | cb7d7046b236d287d3782a1113ddd610830b1b72 | [] | no_license | LeeSuHa98/14-2nd-SHABANG-backend | 3718516abc1a423da7e97d9363c61bfc7dd5ec4f | 13cc50c80aca273277bae8d8b15a1623b860ce55 | refs/heads/main | 2023-02-18T05:57:27.863525 | 2021-01-19T04:47:20 | 2021-01-19T04:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | # Generated by Django 3.1.3 on 2020-12-02 17:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name='number',
new_name=... | [
"fergith@naver.com"
] | fergith@naver.com |
9454dc45a60ab83de31a7d603a042931f4f0e03e | 8a49aafeea46ded564dd2482350f82b4334436ed | /network/Auto_Deeplab/__init__.py | fd7bea4ba5e386f29d3d212818c9f6babb91e440 | [] | no_license | yifuxiong/Deeplab_pytorch | 1f96cd69a5597edc2021c24a5b88e462f67cb738 | 530809110156625945dfabd9b6dec0b2c0190415 | refs/heads/master | 2022-06-24T19:55:28.687829 | 2019-02-19T08:22:09 | 2019-02-19T08:22:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | # -*- coding: utf-8 -*-
"""
@Time : 2019/2/17 22:15
@Author : Wang Xin
@Email : wangxin_buaa@163.com
""" | [
"wangxin_buaa@163.com"
] | wangxin_buaa@163.com |
11a63de740fb4d5f7772abdb589d20dc2321c2ae | 2a6f1afa7678e5d76efe01b1474eda59d442ae0f | /venv/Lib/site-packages/jesse/indicators/vwma.py | 3d884a9f64880ba84a80dbc72e1b1bce906a4afd | [] | no_license | cagridincel/CagriTrade | 6b50c785efc3eb43487724be59511a5850a92145 | 86839e6604eb18850f6410acf5f6993da59b74ec | refs/heads/master | 2023-03-03T09:16:29.965177 | 2021-02-16T13:01:18 | 2021-02-16T13:01:18 | 338,672,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | from typing import Union
import numpy as np
import tulipy as ti
from jesse.helpers import get_candle_source
def vwma(candles: np.ndarray, period=20, source_type="close", sequential=False) -> Union[float, np.ndarray]:
"""
VWMA - Volume Weighted Moving Average
:param candles: np.ndarray
:param period... | [
"cagridincel@gmail.com"
] | cagridincel@gmail.com |
e0ea6925e3b151389aae2796fe99d07db9bb45fe | 6a6bae69fb39e7b236c0ee0abfe581ee59bb68be | /urls.py | 821c6961ddb6a2e026e807c77324ba0537835d34 | [] | no_license | taddeimania/tfb | 46b6360e5b93f9d93dc4badf5bf28dc0ed7aba36 | dee60801300acf4ba654f9c69573a0a0f9e4a4d3 | refs/heads/master | 2016-09-16T16:16:16.403711 | 2012-11-22T03:19:22 | 2012-11-22T03:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from tfb import views as base_views
from tfb.messages import views as message_views
from tfb.matchup import views as matchup_views
from tfb.player_card import views as ... | [
"jtaddei@gmail.com"
] | jtaddei@gmail.com |
b6c197d99eca65f0b1b77cd64e93e6af05231af1 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /explore/2020/august/Sort_Array_By_Parity.py | 599a6511b88e961531c076fcdd4fe199f8da353f | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | '''
https://leetcode.com/explore/featured/card/august-leetcoding-challenge/551/week-3-august-15th-august-21st/3431/
You are here!
Your runtime beats 96.99 % of python submissions.
'''
class Solution(object):
def sortArrayByParity(self, A):
"""
:type A: List[int]
:rtype: List[int]
""... | [
"838255715@qq.com"
] | 838255715@qq.com |
cbc6badcee7a608483c0c04aaa51e3dad1cd5c26 | 1388b4c7e7a896492c7953f8e4914b9818ad538c | /lessons_crawler/dao/lesson_dao.py | 5c88225ce83d82dc36ff822134571df3fb212f25 | [] | no_license | compcederj/lessons-crawler | e5b7658de4741ceb1c21f51a9835a19d4f8584fc | 2b4b0448f1fe3587d6a8f5af3254863c311ecb30 | refs/heads/main | 2023-01-21T01:50:06.337833 | 2020-11-29T23:13:33 | 2020-11-29T23:13:33 | 294,533,878 | 0 | 0 | null | 2020-11-29T23:12:01 | 2020-09-10T22:13:31 | Python | UTF-8 | Python | false | false | 1,401 | py | from datetime import timedelta
from typing import List
import click
from lessons_crawler.db import db
from lessons_crawler.models.lessons import Lesson
from lessons_crawler.models.subjects import Subject
class LessonDAO:
@staticmethod
def create_or_update(
subject: Subject, lesson_index: str, or... | [
"thiagoborges@id.uff.br"
] | thiagoborges@id.uff.br |
4bf04e81e4e02551cd90da3f5e55221a1a407668 | cfd2e1f12208dad79bc4b899e81ce1f7de84e80c | /Brian2_scripts/sim_brian_scratch/sim_brian_twenty_four_v1.py | 3245829707e2d1ef165c75d6fa0b22ddbeded811 | [] | no_license | zhouyanasd/DL-NC | 334adafdea1dd8c4c08c7efef3abc3b623344f0d | 396521096f65b27aa24efb1deda7b215876166b2 | refs/heads/master | 2023-03-22T04:57:19.790975 | 2023-03-14T08:57:01 | 2023-03-14T08:57:01 | 64,385,964 | 41 | 9 | null | 2023-02-15T17:52:34 | 2016-07-28T10:22:45 | Python | UTF-8 | Python | false | false | 12,301 | py | # ----------------------------------------
# new structure of LSM with inhibitory neuron STDP
# inhibitory neuron WTA and different spike patterns classification test
# multiple pre-train STDP and the distribution is different for different patterns
# local STDP and partial connection
# simulation 6--analysis 4
# -----... | [
"zhouyanasd@gmail.com"
] | zhouyanasd@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.