blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88c956a598941e1923e9029d6acc27a0a83a987e | a8f39f241598dce6d876f2b535327aeac4902170 | /tests/api2/network.py | fed153986b6379c6c5d4e4047c399b57ad8ab93f | [
"BSD-3-Clause"
] | permissive | ghos/freenas | 321b8d36ec16b715ffd6fb60768901bfb276c2a1 | f1049d30355c70eb3f2c4b841bef71aa836890c9 | refs/heads/master | 2020-12-07T17:14:57.513807 | 2020-01-07T20:59:41 | 2020-01-07T20:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | #!/usr/bin/env python3.6
# Author: Eric Turgeon
# License: BSD
import pytest
import sys
import os
apifolder = os.getcwd()
sys.path.append(apifolder)
from auto_config import hostname, domain
from functions import GET, PUT
from config import *
BRIDGEGWReason = "BRIDGEGW not in ixautomation.conf"
BRIDGENETMASKReason =... | [
"ericturgeon.bsd@gmail.com"
] | ericturgeon.bsd@gmail.com |
ccc3218670bdf6b394fbb52fd0bbbeaf3534c15e | c839961aeab22795200d9edef9ba043fe42eeb9c | /data/script802.py | 4b4a5c3b512045d2824d977d9d741a8e82521de3 | [] | no_license | StevenLOL/kaggleScape | ad2bb1e2ed31794f1ae3c4310713ead1482ffd52 | 18bede8420ab8d2e4e7c1eaf6f63280e20cccb97 | refs/heads/master | 2020-03-17T05:12:13.459603 | 2018-05-02T19:35:55 | 2018-05-02T19:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,663 | py |
# coding: utf-8
# Hey everyone, this is my first go at Kaggle competitions and Kernels.
#
# In this Kernel, I implemented kNN classifier from scratch.
# And the results got 97.1% accuracy on public leaderboard.
# In[ ]:
import numpy as np
import matplotlib.pyplot as plt
from collections import Counter
import time... | [
"adithyagirish@berkeley.edu"
] | adithyagirish@berkeley.edu |
5bf16079be9f974bae6d83fe67c63316eeb74485 | 76f160538f4de5466929c6f66d4fa0ed021d10d0 | /lux/extensions/angular/__init__.py | 352f1bc771234cdf9cdf19fcc83245ce8f06a32f | [
"BSD-3-Clause"
] | permissive | tazo90/lux | cd60e5364f2af486a41f58935eec38c79a2acef5 | 6fc8994cfaa9379ea3a0c6ce7b076d48e6b1759e | refs/heads/master | 2021-01-15T12:50:24.280897 | 2015-05-07T07:15:13 | 2015-05-07T07:15:13 | 35,214,757 | 0 | 0 | null | 2015-05-07T10:50:57 | 2015-05-07T10:50:56 | null | UTF-8 | Python | false | false | 5,613 | py | '''
This extension does not provide any middleware but it is required
when using :ref:`lux.js <jsapi>` javascript module and
provides the link between AngularJS_ and Python.
**Required extensions**: :mod:`lux.extensions.ui`
Usage
=========
Include ``lux.extensions.angular`` into the :setting:`EXTENSIONS` list in you... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
4e73dcfed4e559a0188715cb13281b634e692954 | d5ad13232e3f1ced55f6956bc4cbda87925c8085 | /cc_mcc_seq/Results/indel/6_point_gene_test/7_1_sum_indel.point_ttest.py | 9e3c83f5cfe1896677303ff1a71af85007af1b69 | [] | no_license | arvin580/SIBS | c0ba9a8a41f59cb333517c286f7d80300b9501a2 | 0cc2378bf62359ec068336ea4de16d081d0f58a4 | refs/heads/master | 2021-01-23T21:57:35.658443 | 2015-04-09T23:11:34 | 2015-04-09T23:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | dict1=dict()
inFile=open('sum_indel.exome_combined.sorted.pass012.new')
for line in inFile :
line=line.strip()
fields=line.split('\t')
key=fields[21]+':'+fields[22]
dict1.setdefault(key,[0]*21)
for i,item in enumerate(fields[-20:]) :
dict1[key][1+i]+=int(item)
dict1[key][0]+=in... | [
"sunhanice@gmail.com"
] | sunhanice@gmail.com |
1e477aa48e9e96e3b8f763ccda159afce0079f5c | 6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff | /sagemaker-training-compiler/huggingface/pytorch_single_gpu_single_node/roberta-base/scripts/fine_tune_with_huggingface.py | 4e30ae6ee9d41e4f62b60bf46c8534036b198b62 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | aws/amazon-sagemaker-examples | 8359afe544e873662bda5b8d2b07399c437213c9 | 43dae4b28531cde167598f104f582168b0a4141f | refs/heads/main | 2023-08-26T04:42:52.342776 | 2023-08-25T14:37:19 | 2023-08-25T14:37:19 | 107,937,815 | 4,797 | 3,519 | Apache-2.0 | 2023-09-14T19:47:03 | 2017-10-23T05:55:22 | Jupyter Notebook | UTF-8 | Python | false | false | 3,780 | py | from transformers import (
AutoModelForSequenceClassification,
Trainer,
TrainingArguments,
AutoTokenizer,
TrainerCallback,
)
from sklearn.metrics import accuracy_score, precision_recall_fscore_support
from datasets import load_from_disk
import random
import logging
import sys
import argparse
import ... | [
"jeniya.tabassum@gmail.com"
] | jeniya.tabassum@gmail.com |
70a949a43592c87b808f514a6478307f2cb8b4ca | 4e044ab3073f5893f2eae33931ab5079b282817c | /00_Startcamp/02_Day/05_reverse_content.py | 74ce84e6ffdc72fd94c97e830417cfc5510d468f | [] | no_license | whiteblue0/Startcamp | e5e8c30476eda7a30c3daae4bdc018f223da74e8 | 7ddebe8be878a8550d99fcc572666b963dda583d | refs/heads/master | 2023-01-27T18:36:28.013135 | 2020-09-12T06:21:12 | 2020-09-12T06:21:12 | 195,809,764 | 0 | 0 | null | 2023-01-07T11:25:23 | 2019-07-08T12:42:40 | Jupyter Notebook | UTF-8 | Python | false | false | 357 | py | # #역순으로 출력 방법1
# with open('with_ssafy.txt','r') as f:
# lines = f.readlines()
# for line in lines:
# print(line.strip()[::-1])
#역순 출력 방법2
with open('writelines_ssafy.txt','r') as f:
lines = f.readlines()
lines.reverse()
with open('reverse_ssafy.txt','w') as f:
for line in lines:
f.wr... | [
"21port@naver.com"
] | 21port@naver.com |
113a035fa94bf5dde84455ba6efb5023c23404e9 | c6b1919498776cfc408076246390e2bba56f4c4e | /client/migrations/0025_auto_20170327_1353.py | 02d0f21d9aa306d7b21a4cf93536d1746cfc8ceb | [] | no_license | huozhihui/devops_tool | f2ceaf7f1828853e43859645f5ab36a00b0fa7df | 0eb7b4a14203e30bb2c262075864cec0db21829f | refs/heads/master | 2020-05-20T19:02:47.855055 | 2017-04-18T05:25:59 | 2017-04-18T05:25:59 | 84,509,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-27 13:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('client', '0024_auto_20170315_0945'),
]
operations = [
migrations.AlterField... | [
"240516816@qq.com"
] | 240516816@qq.com |
3260f0ce1743644f26570bb37c68426cfd12dafb | 4aa1452b8265d79dc50959829fb78f3a1ea91242 | /tools/preproc_image.py | 57da7bc92358008b18d243a3485de857d32fb7cf | [
"Apache-2.0"
] | permissive | rupeshs/mxnet.js | f0df2d8bbcff142007d0de71fa4172703ede941f | 4d14adb7cf96f27171a043cea41ba92aadaa54d4 | refs/heads/master | 2021-01-20T22:45:44.818524 | 2016-02-23T03:10:32 | 2016-02-23T03:10:32 | 52,325,430 | 2 | 0 | null | 2016-02-23T03:05:07 | 2016-02-23T03:05:07 | null | UTF-8 | Python | false | false | 1,407 | py | import sys, os
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
sys.path.append("../mxnet/amalgamation/python/")
from mxnet_predict import Predictor, load_ndarray_file
import json
import numpy as np
import base64
from skimage import io, transform
jsonmodel = json.loads(open('inception-bn-mode... | [
"tianqi.tchen@gmail.com"
] | tianqi.tchen@gmail.com |
2fd530a147fafb3b869f547f8ae2929f0d243d95 | 21540ab033e180a3d94b270b7faffac7fe4af68f | /wordshop3/Project_01-11_page_99-101/Project_02.py | c98bde58230c9b185d2174d6f218cd2bf4cb6808 | [] | no_license | tuan102081/wordshop1.2.3.5 | eaa344bdb04f565d1354b9476b4d4ecafc5cc7f3 | 70e75b56f48a2e5b1622d956f33831f80e64d368 | refs/heads/master | 2023-07-14T23:26:31.089484 | 2021-08-30T18:53:24 | 2021-08-30T18:53:24 | 401,411,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | """
Author: Nguyen Duy Tuan
Date: 30/08/2021
Program: Project_02.py
Problem:
Write a program that accepts the lengths of three sides of a triangle as inputs.
The program output should indicate whether or not the triangle is a right triangle.
Recall from the Pythagorean theorem that in a right tr... | [
"you@example.com"
] | you@example.com |
15d0a325c46205e61ea0058d4a32e90c63743725 | 7374204324f6326663d12b3dd1fecc5bebb6854e | /top100/416.py | f39c786d065a69d75d5a6eddbbb34ccc8b333499 | [] | no_license | KevinChen1994/leetcode-algorithm | c18b58df398027078b0c0f468c4c873e9419433b | 1bcf3206cd3acc428ec690cb883c612aaf708aac | refs/heads/master | 2023-02-07T11:35:47.747207 | 2023-01-29T11:08:49 | 2023-01-29T11:08:49 | 230,386,123 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,093 | py | # !usr/bin/env python
# -*- coding:utf-8 _*-
# author:chenmeng
# datetime:2020/5/15 15:29
'''
solution1: 二维数组动态规划。想象成背包问题,就是把nums数组和的一半作为target,当元素相加的和为target时,说明满足条件。状态转移矩阵:dp[i][j] = dp[i - 1][j] or dp[i - 1][j - nums[i]]
dp[i][j]代表前i个数中,凑成的和是否为j,状态转移时需要参考上一行的状态,假设当前位置的上边是符合条件的,那么当前位置也是符合条件的,但是现在要考虑要不要加上当前这个数,
那么就考虑如... | [
"346521888@qq.com"
] | 346521888@qq.com |
42d8c6b86c5ca470e7b3bc91154c23d9e0e7ec9d | 2e4e26a8b43af98a65494af0bad02c469db3a482 | /projects/safety_bench/model_wrappers/parlai_model_zoo_wrappers.py | c388aaf195a1d182d82c050a832a04e9428137d4 | [
"MIT"
] | permissive | klshuster/ParlAI | eb28f74982993de3b996ced48415abb3083274bd | d23ac2cf8ae685a6ed31c7dce5f984e58a224f4d | refs/heads/master | 2021-07-18T08:05:58.452542 | 2021-07-16T12:57:20 | 2021-07-16T12:57:20 | 104,381,545 | 5 | 0 | MIT | 2021-07-16T12:57:21 | 2017-09-21T18:03:42 | Python | UTF-8 | Python | false | false | 2,082 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Wrappers for ParlAI models in the model zoo.
Available models include:
- blenderbot_90M
- blenderbot_400Mdistill
- b... | [
"noreply@github.com"
] | klshuster.noreply@github.com |
63f2066747370ce8fb808cb02615dc4121d7ede0 | 219992b56f8e5cd8b47534d98417dd8ac795110b | /src/FastPass-Mobile/NewRelease153_2.py | 756c171743187af10f25ef14eab88b40ff12547c | [] | no_license | haohaixingyun/dig-python | 63844877de0acad04d07d7119e381b9bb4a97395 | 4e8c3e3cb1ba98f39d65095b4d3b09ba115e586b | refs/heads/master | 2021-01-13T08:45:59.669829 | 2016-10-26T05:54:07 | 2016-10-26T05:54:07 | 71,970,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,277 | py | # coding = utf - 8
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
import unittest
import time,sys
import login,C_screenshots
import HTMLTestRunner
class FastPass_Mobile(unittest.TestCase):
d... | [
"yunxinghai@hotmail.com"
] | yunxinghai@hotmail.com |
3098b10c57b349f42834bcdbdc14ed15225b83e8 | dd4d2589d1f14303cacd3b7ee1dd5f6bacd3bf3c | /array/max_k_sum_pairs.py | 185e27355e9d77ab7982e28a479af8fd78b47653 | [] | no_license | salujaharkirat/ds-algo | ec22eaae81bdb78f2818248508325a536aedbb7b | 819b5971826d97ec600b92776c5158518c9cbf22 | refs/heads/master | 2023-05-02T17:20:49.425484 | 2021-05-23T07:54:29 | 2021-05-23T07:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | """
https://leetcode.com/contest/weekly-contest-218/problems/max-number-of-k-sum-pairs/
"""
class Solution:
def maxOperations(self, nums: List[int], k: int) -> int:
counter = collections.Counter()
res = 0
for element in nums:
if k - element in counter:
res += 1
... | [
"saluja.harkirat@gmail.com"
] | saluja.harkirat@gmail.com |
2f0b2157cc11367239409809bb4e4eb4aa576908 | 1eb0213140ada1c48edc5fb97b439d6556e6c3a9 | /0x07-python-test_driven_development/0-add_integer.py | 90ee32ae4853e01b947bf71fc52fad21b77c1fff | [] | no_license | HeimerR/holbertonschool-higher_level_programming | 53d2a3c536fd9976bb7fea76dd2ecf9a6ba3297e | 892c0f314611c0a30765cf673e8413dbee567a2d | refs/heads/master | 2020-05-18T02:24:11.829328 | 2020-04-30T03:59:04 | 2020-04-30T03:59:04 | 184,112,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | #!/usr/bin/python3
""" this modulo has a function that adds 2 intergers
you can test it using testfile
included in /test//0-add_integer.txt
"""
def add_integer(a, b=98):
""" adds 2 intergers, float casted to intgers
Args:
a (int): number one
b (int): number two
"""
if type(a) ... | [
"ing.heimer.rojas@gmail.com"
] | ing.heimer.rojas@gmail.com |
cc270f7b3de0d5cd12991b46734ecc1226e2bf79 | 1ccd4e302f1c6a7d76059cb0460109370c16ea9b | /arbitrage/observers/traderbot.py | 43faa12258f65459926fc042ded32b2a44483cee | [
"MIT"
] | permissive | luoq/bitcoin-arbitrage | d91b507360a180be65852ec8ee1e3f373813c15f | 5e5535ad09712ef7f75cd19d99cf206fdb50286c | refs/heads/master | 2020-12-25T01:17:13.218621 | 2013-05-07T09:19:49 | 2013-05-07T09:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,116 | py | import logging
import config
import time
from .observer import Observer
from .emailer import send_email
from fiatconverter import FiatConverter
from private_markets import mtgox
from private_markets import bitcoincentral
from private_markets import bitstamp
class TraderBot(Observer):
def __init__(self):
s... | [
"maxime.biais@gmail.com"
] | maxime.biais@gmail.com |
5af1eab168e4741243e9508b4a1d0100f356204a | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/my-gists/by-extension/py/08-LongestSemiAlternatingSubString.py | 075babd59857fcff331284c3aa14472dd06a5d10 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,887 | py | # You are given a string s of length n containing only characters a and b.
# A substring of s called a semi-alternating substring if it does not
# contain three identical consecutive characters.
# Return the length of the longest semi-alternating substring.
# Example 1: Input: "baaabbabbb" | Output: 7
... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
3e9c34efaf729e534f14ebb1b01daec2955eac95 | bbdf8228ff9b7eacdeccead5a51f0c5008fdbd4e | /backend/home/migrations/0002_customtext_homepage.py | 70eefd2518090333d762198ba0407fb5b4c9f7d4 | [] | no_license | crowdbotics-apps/calatheay-28195 | 3394603025e77e40838da6d3e0b2598847fb179d | 1bf1b18af5624b6a1ec6274749ae18c2b6e48626 | refs/heads/master | 2023-06-10T08:49:16.744520 | 2021-06-24T04:14:18 | 2021-06-24T04:14:18 | 379,799,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # Generated by Django 2.2.20 on 2021-06-24 04:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('home', '0001_load_initial_data'),
]
operations = [
migrations.CreateModel(
name='CustomText',
f... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
76423ad933817305f1ccfa8dd901e54b3866ec82 | c39f999cae8825afe2cdf1518d93ba31bd4c0e95 | /PYME/DSView/logparser.py | 34db70f067577b67657037c2976d71c5b87eb612 | [] | no_license | WilliamRo/CLipPYME | 0b69860136a9b2533f2f29fc29408d7471cb934d | 6596167034c727ad7dad0a741dd59e0e48f6852a | refs/heads/master | 2023-05-11T09:50:58.605989 | 2023-05-09T02:17:47 | 2023-05-09T02:17:47 | 60,789,741 | 3 | 1 | null | 2016-06-17T08:52:44 | 2016-06-09T16:30:14 | Python | UTF-8 | Python | false | false | 3,013 | py | #!/usr/bin/python
##################
# logparser.py
#
# Copyright David Baddeley, 2009
# d.baddeley@auckland.ac.nz
#
# 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 the Lice... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
733d8138cbf16e057b1f1dc5a8bd3607565a2f07 | de392462a549be77e5b3372fbd9ea6d7556f0282 | /operations_9001/migrations/0075_auto_20201029_1538.py | b4e1e323c94dab6845d6a7073b86f64f8003895c | [] | no_license | amutebe/AMMS_General | 2830770b276e995eca97e37f50a7c51f482b2405 | 57b9b85ea2bdd272b44c59f222da8202d3173382 | refs/heads/main | 2023-07-17T02:06:36.862081 | 2021-08-28T19:07:17 | 2021-08-28T19:07:17 | 400,064,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | # Generated by Django 3.0.2 on 2020-10-29 12:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('operations_9001', '0074_auto_20201028_1628'),
]
operations = [
migrations.RemoveField(
model_name='mod9001_incidentregisterstaff... | [
"mutebe2@gmail.com"
] | mutebe2@gmail.com |
a5eb5a6012c692f522d106022bd5679d3741a1ac | 14818626a264e1556b5bfa282c329465c61fca56 | /tutorial/04_signal_event/C5_t1.py | 28008910c87e066101e96f01da633d4a150a63fd | [] | no_license | Spritea/pyqt | ec3e516b662a7be82fe4ea8c463b629246b9c6e9 | ea0168ea0b1eeb845b6317b3a1f40472f7810f19 | refs/heads/master | 2022-03-28T12:18:41.552662 | 2020-01-03T14:03:20 | 2020-01-03T14:03:20 | 230,898,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import sys
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QWidget,QLCDNumber,QSlider,QVBoxLayout,QApplication
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
lcd=QLCDNumber(self)
sld=QSlider(Qt.Horizontal,self)
v... | [
"461158649@qq.com"
] | 461158649@qq.com |
632cf55db5189a414a9d4317d4d592fc6ae4ae24 | dd221d1ab80a49190a0c93277e2471debaa2db95 | /hanlp/datasets/parsing/ctb7.py | 09345b1822e5d56ebd84289ee4e245522a0f63d3 | [
"Apache-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | hankcs/HanLP | 29a22d4e240617e4dc67929c2f9760a822402cf7 | be2f04905a12990a527417bd47b79b851874a201 | refs/heads/doc-zh | 2023-08-18T12:48:43.533453 | 2020-02-15T17:19:28 | 2023-03-14T02:46:03 | 24,976,755 | 32,454 | 9,770 | Apache-2.0 | 2023-08-13T03:11:39 | 2014-10-09T06:36:16 | Python | UTF-8 | Python | false | false | 421 | py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2019-12-28 18:44
from hanlp.datasets.parsing.ctb5 import _CTB_HOME
_CTB7_HOME = _CTB_HOME + 'BPNN/data/ctb7/'
CTB7_DEP_TRAIN = _CTB7_HOME + 'train.conll'
'''Training set for ctb7 dependency parsing.'''
CTB7_DEP_DEV = _CTB7_HOME + 'dev.conll'
'''Dev set for ctb7 dependen... | [
"jfservice@126.com"
] | jfservice@126.com |
da65b009b1cda76d19f5b4d51139920c08486916 | c03d0f321e743eb8bd54834f88bd025d6da4e7a8 | /boa_test/example/MethodTest4.py | 221f2770c882175d17aea2f3ef717e2924e37502 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | CityOfZion/neo-boa | 95776f861a248bab68fc6afcd7de0a74f169ce6d | 0cafe69ff7ed4c416e611ac364f4f00d9a5f8c20 | refs/heads/master | 2023-04-16T14:51:09.385145 | 2023-03-28T17:08:14 | 2023-03-28T17:08:14 | 107,316,151 | 79 | 76 | MIT | 2020-08-20T12:38:17 | 2017-10-17T19:44:07 | Python | UTF-8 | Python | false | false | 182 | py | # tested
def Main():
a = 1
b = 10
c = 20
d = add(a, b, 10)
d2 = add(d, d, d)
return d2
def add(a, b, c):
result = a + b + c
return result
| [
"tasaunders@gmail.com"
] | tasaunders@gmail.com |
35637d50caf1d867787b77e7439fd213e2c2f866 | 25af1a353db775c70db86f156605357358d6a692 | /backend/app/app/api/api_v1/api.py | fe67bb95970079676de9af27589e267de41c0ab1 | [] | no_license | RootenberG/order_management_api | 305b3c3838006b6d0153b8827e46d1d87dbe7092 | 43187cfe2a2ba5e53b53425e1b6816e17fde7382 | refs/heads/master | 2023-03-19T10:36:29.168066 | 2021-03-17T13:01:22 | 2021-03-17T13:01:22 | 348,662,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from fastapi import APIRouter
from app.api.api_v1.endpoints import items, login, users, utils, orders, bills
api_router = APIRouter()
api_router.include_router(login.router, tags=["login"])
api_router.include_router(users.router, prefix="/users", tags=["users"])
api_router.include_router(utils.router, prefix="/utils"... | [
"savichevdenis244@gmail.com"
] | savichevdenis244@gmail.com |
a6f9be51af3fe5309b5c189c4a9f7c0e1e0b6e37 | 748a4a2d7e710d4c2ab86e60dd58a53368153836 | /control_server/cfg/params.cfg | d69c5e77f16880a31b83a51d18c9ff0e47a38932 | [] | no_license | auviitkgp/kraken_obsolete | ad5d45d330686c66f59ef45000a8d6889706569a | d10acdf570c648097eec21cee5ad07f7608692b4 | refs/heads/master | 2021-04-28T23:04:49.200998 | 2017-01-15T10:44:52 | 2017-01-15T10:44:54 | 77,742,183 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | cfg | #!/usr/bin/env python
PACKAGE = "control_server"
import roslib;roslib.load_manifest(PACKAGE)
from dynamic_reconfigure.parameter_generator import *
gen = ParameterGenerator()
gen.add("off_yaw", double_t, 0, "Kp value", 0, 0, 100)
gen.add("of", double_t, 0, "A double parameter",0, 0, 100)
gen.add("Kil", double_t, 0, ... | [
"kannan.siddharth12@gmail.com"
] | kannan.siddharth12@gmail.com |
287d586f524376706a73cc520fa47eb11e7fea4a | 053d7ca689e41e8ba94c8792f4167a3a2e3069f3 | /urly_bird/bookmarks/admin.py | 32719c44be11c90b61094fc06550e9e6e0ef2bad | [] | no_license | cesarmarroquin/urly-bird-evolved | 691554ee13ea4bfb12ab056b5f2a7a621bfb8e5e | c61e50bc8d13c06b6d431196d532cf45c85dee65 | refs/heads/master | 2020-12-25T23:19:14.149147 | 2015-11-05T16:21:42 | 2015-11-05T16:21:42 | 45,566,498 | 0 | 0 | null | 2015-11-04T20:48:57 | 2015-11-04T20:48:56 | null | UTF-8 | Python | false | false | 360 | py | from django.contrib import admin
from .models import Bookmark, Click
# Register your models here.
@admin.register(Bookmark)
class BookmarkAdmin(admin.ModelAdmin):
list_display = ('id','title','description','bookmark_url', 'timestamp', 'user')
@admin.register(Click)
class ClickAdmin(admin.ModelAdmin):
list_di... | [
"cesarm2333@gmail.com"
] | cesarm2333@gmail.com |
2303eafc289500d20adb76daad5e488b046b0a2b | 2ce0c37ac7d9beeac23db688f97a1f502b92d13a | /delivery/migrations/0005_remove_outproduct_product.py | ded1fa53f647e9657ed377f967cd85b463d7d543 | [] | no_license | AmrElsayedEG/inventory-system | 0cdb0634b33117b13bfcae8642f979448d831369 | d4bc483612c3b721918d75f24ab0d7fa29b78ce3 | refs/heads/main | 2023-08-20T22:32:25.113740 | 2021-10-04T08:55:44 | 2021-10-04T08:55:44 | 413,344,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # Generated by Django 3.2 on 2021-09-05 16:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('delivery', '0004_outdelivery_representitive'),
]
operations = [
migrations.RemoveField(
model_name='outproduct',
name='product... | [
"elsayed.amr50@gmail.com"
] | elsayed.amr50@gmail.com |
4bcaa3a2e38c083e389b56726a33522ede42a2e7 | 160584ad75ed15f9d39205b6a76b3e5beb03a5cb | /env/lib/python2.7/site-packages/stripe/test/resources/test_recipients.py | 3d90e6eba3d441bde22915717099863dec56df73 | [
"MIT"
] | permissive | imran1234567/plutus | 1c66c0c29e9e615c03160fb98f14d44507b642dc | c964f18beb139de2645e052eb4c75a6bc0677029 | refs/heads/master | 2022-12-10T04:33:36.906408 | 2019-04-18T06:26:01 | 2019-04-18T06:26:01 | 169,561,380 | 0 | 0 | MIT | 2022-12-08T00:46:54 | 2019-02-07T11:29:44 | CSS | UTF-8 | Python | false | false | 2,028 | py | import stripe
from stripe.test.helper import (StripeResourceTest)
class RecipientTest(StripeResourceTest):
def test_list_recipients(self):
stripe.Recipient.list()
self.requestor_mock.request.assert_called_with(
'get',
'/v1/recipients',
{}
)
def tes... | [
"imran@kgec.edu.in"
] | imran@kgec.edu.in |
159249d116b505a9ff916d16137d4404bada9eee | 543660cf8ec69a950be57f95a6fe878b091273ef | /backend/data/rajpurkar/seqmodels/blob/eb1f40710b4ccb81f50b359daefa9e4c48c8130c/window/frame_models/recurrent.py | 77d5c9f302ac774f1a2a70cc0dafc8355d1b118b | [
"MIT"
] | permissive | nathanhere/neural_complete | 49184982a77f12b9651def6a093a6430cf7d1755 | 050ab3073fe797f3eb2f1a1592c294a8cd081ac6 | refs/heads/master | 2022-12-09T18:40:30.079015 | 2022-02-24T04:46:40 | 2022-02-24T04:46:40 | 87,836,933 | 0 | 1 | MIT | 2022-12-06T22:52:25 | 2017-04-10T17:11:11 | Python | UTF-8 | Python | false | false | 894 | py | """Recurrent neural network model."""
from ...model import KerasModel
from ..window_model import FrameModel
class RecurrentModel(KerasModel, FrameModel):
"""RNN."""
def _create_model(self, input_shape, num_categories):
from keras.layers.core import Activation, Dense, Dropout, Reshape
from ke... | [
"kootenpv@gmail.com"
] | kootenpv@gmail.com |
0dba882d5a1cdf7ebeaf1f3fd2767a51ea7990e5 | 1d363dfbe69b79bc1989251f085060232beb12f5 | /tests/test_flash_dry_air.py | 59d163bcae94670847b9b2d794d39e3c52674277 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | CalebBell/thermo | ec602af2316875692e385287c6010e9f206b1bc3 | 8622fada3614179d4372192e0031b4a206384c93 | refs/heads/master | 2023-08-30T05:30:07.552575 | 2023-06-25T01:35:53 | 2023-06-25T01:35:53 | 62,404,647 | 529 | 127 | MIT | 2023-08-11T18:31:21 | 2016-07-01T16:04:56 | Python | UTF-8 | Python | false | false | 6,407 | py | '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2021, Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
f23e5e2eabc0ea5604a62feb24f8d24c53096630 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/algorithm-master/lintcode/689_two_sum_bst_edtion.py | c920ea03fbd1007257c3c49c68706b3c9a0ed00e | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,682 | py | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
c_ Solution:
"""
@param: : the root of tree
@param: : the target sum
@return: two numbers from tree which sum is n
"""
___ twoSum root, n
left... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
cdacac9398ca97d329f4e8333510df3edf223077 | 165e706d485e90f4e4f63cfb9f2c35acda14cfc0 | /property_linking/scripts/preprocessing/closure_inference.py | 7f0f19a43eb2ba1d71b8eecc9798247327ab538f | [
"Apache-2.0"
] | permissive | Tarkiyah/googleResearch | 65581f3bbbe2ffe248c9e613c0ea7eac336d5372 | dea327aa9e7ef7f7bca5a6c225dbdca1077a06e9 | refs/heads/master | 2022-12-07T12:04:44.153221 | 2019-11-21T16:03:48 | 2019-11-21T16:18:28 | 223,229,888 | 11 | 2 | Apache-2.0 | 2022-11-21T21:39:10 | 2019-11-21T17:38:31 | Jupyter Notebook | UTF-8 | Python | false | false | 3,537 | py | # coding=utf-8
# Copyright 2019 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
746c37e2bd1f8cca597462e416e26a4cd58a179a | a7319d1c462618445b13cb8dde5c30173801b745 | /backend/hardik_25509/settings.py | 7596bd63123791db28563da0c6685b368b3fe30e | [] | no_license | crowdbotics-apps/hardik-25509 | 357e87239d5379d4b6c79d746659d8a20942be0b | f179cee72ca96a9115c3aeb46e3d5d4a3abec27a | refs/heads/master | 2023-04-01T19:47:21.352217 | 2021-04-08T05:57:57 | 2021-04-08T05:57:57 | 355,501,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,128 | py | """
Django settings for hardik_25509 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3ee0b9cfa0a12433c2872fc03735b4afd463fdbb | d5ce517617f90aba1a618098f459b262968a6a20 | /flup/client/scgi_app.py | 33121806e77f5dd59af0fad0fb0829567829f91d | [] | no_license | jedie/flup-py3.3 | 8bfabe2195cfe5df1fb8acfb92a108b43d668e51 | 56d495311d0e850fbab94c6c3e160793e245d0d4 | refs/heads/master | 2021-01-18T06:51:27.659312 | 2014-05-22T01:35:10 | 2014-05-22T01:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,923 | py | # Copyright (c) 2006 Allan Saddi <allan@saddi.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of c... | [
"x11org@gmail.com"
] | x11org@gmail.com |
f78310a73f5328335184fda438b6808995b9f2c9 | b0e66db67b34b88e7884aa9b4a7b7607bbe9651b | /math/d20/const.py | ae16e3cdb42ae989d9829f7ffef9815a604cce32 | [] | no_license | cole-brown/veredi-code | 15cf47c688c909b27ad2f2f3518df72862bd17bc | 8c9fc1170ceac335985686571568eebf08b0db7a | refs/heads/master | 2023-04-22T03:21:10.506392 | 2021-05-01T19:05:10 | 2021-05-01T19:05:10 | 296,949,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # coding: utf-8
'''
Constants, Enums, and Stuff for math.d20 module.
'''
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import enum
# ----------------------------------------------------------... | [
"code@brown.dev"
] | code@brown.dev |
f8628d4fb035631907212605035a7ea9aa7a7f62 | 8a83bb7acb9b62183fca817e1f196dd8075630a4 | /01_array/23_majority_number.py | ec356909a26e7fbefe85d7ba6c55c3904da6c149 | [] | no_license | sandeepkumar8713/pythonapps | ff5ad3da854aa58e60f2c14d27359f8b838cac57 | 5dcb5ad4873124fed2ec3a717bfa379a4bbd197d | refs/heads/main | 2023-09-01T04:12:03.865755 | 2023-08-31T07:04:58 | 2023-08-31T07:04:58 | 234,762,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | # CTCI : Q17_10_Majority_Element
# https://www.geeksforgeeks.org/majority-element/
# Question : Write a function which takes an array and prints the majority element (if it exists),
# otherwise prints "No Majority Element". A majority element in an array A[] of size n is an
# element that appears more than n/2 times (a... | [
"sandeepkumar8713@gmail.com"
] | sandeepkumar8713@gmail.com |
448b224c06b11dcad0efb3a0e001204a1051988c | 0aad1f032876366b555d4b4d0bd80ad2ae74c226 | /src/ingest-pipeline/md/data_file_types/metadatatsv_metadata_file.py | 98ca0487a1a569a4afbe695e9ac270212a2fecee | [
"MIT"
] | permissive | icaoberg/ingest-pipeline | d876c33e5f5414f21c6194cd2085c02a126ef73c | 8c8296daaf2a3a71cd213a6b7b8a067739fa5272 | refs/heads/master | 2022-11-19T11:54:00.264295 | 2020-07-01T21:07:08 | 2020-07-01T21:07:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | #! /usr/bin/env python
import csv
import os
from pathlib import Path
from metadata_file import MetadataFile
from type_base import MetadataError
from submodules import ingest_validation_tools_submission, ingest_validation_tools_error_report
class MetadataTSVMetadataFile(MetadataFile):
"""
A metadata file type ... | [
"welling@psc.edu"
] | welling@psc.edu |
6a53fb6ca5851bcacf7250e3aa6bb7bf3a8c255d | a99372d1c71be907e1fbfb4f7287363ff1f51f56 | /Legal/migrations/0005_category_dated.py | 8eed23ace074af81bb4330caa646d8b82770aca4 | [
"MIT"
] | permissive | domambia/csdigital-gs1kenya-internal-erp | 43045c219b627453f30da9c6bd62335985f81927 | be36378ad7b960d074dd5841aaadc849ac6356de | refs/heads/master | 2022-12-10T13:49:55.516938 | 2021-10-31T15:08:29 | 2021-10-31T15:08:29 | 164,619,152 | 17 | 14 | null | 2022-12-08T01:44:41 | 2019-01-08T09:59:34 | Python | UTF-8 | Python | false | false | 415 | py | # Generated by Django 2.1.5 on 2019-04-09 13:34
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Legal', '0004_auto_20190409_1242'),
]
operations = [
migrations.AddField(
model_name='category',
nam... | [
"omambiadauglous@gmail.com"
] | omambiadauglous@gmail.com |
aa8219a0132e52fcee1ff21e14f8b17086844f66 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/gos_20200614062134.py | 0926db4d45f1ea761568bc4b9c5dc96acc72a3aa | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,014 | py | # # Імпорт фажливих бібліотек
# from BeautifulSoup import BeautifulSoup
# import urllib2
# import re
# # Створення функції пошуку силок
# def getLinks(url):
# # отримання та присвоєння контенту сторінки в змінну
# html_page = urllib2.urlopen(url)
# # Перетворення контенту в обєкт бібліотеки BeautifulSoup
#... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
8570724f11f96fad4fbaa801251f384aaec32139 | 9ba0e059a15f2b24d7c031e039d3564c647a9336 | /tuva/imports/Data - After switching to array storage and before ordereddict.py | 3f44cf593a66cc730f3ed901c4c885f5ef9ade7b | [] | no_license | vatir/tuva | 98714d262cc0fbaf714c29e81af25bad8bb02c6c | a105280951c0a21dd0d9eab60d24545e423e0479 | refs/heads/master | 2023-01-25T04:27:38.558356 | 2023-01-11T17:58:47 | 2023-01-11T17:58:47 | 129,917,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,584 | py | from numpy import array
from numpy import append
from numpy import dtype
from collections import OrderedDict
# Is used in testing model run behavior
calltimes = 0
model_init = False
# Build a consistent color list
colorlist = OrderedDict()
colorlist["black"] = (0, 0, 0)
colorlist["red"] = (255, 0, 0)
colorlist["gold... | [
"grok_me@hotmail.com"
] | grok_me@hotmail.com |
eccc587583776be4807de65835612594c73c72d9 | 4273f6c264fa5a7267557c5e0d338a2cbd27789e | /AIE23/20191102_feature_engineering/a3_feature_engineering/4_reduce_dimension/3D_PCA.py | 5934a47edbdece3ff91c453ba92bed0b0ac92fc7 | [] | no_license | shcqupc/Alg_study | 874d37954ed8ed2cdb3bd492d59cd071836946f5 | 462ee12c72b7f84c5ae45aaf0f65b812d7c1ada1 | refs/heads/master | 2020-07-10T15:26:40.603300 | 2020-03-27T12:53:16 | 2020-03-27T12:53:16 | 204,298,238 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | print(__doc__)
# Code source: Gaël Varoquaux
# Modified for documentation by Jaques Grobler
# License: BSD 3 clause
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from sklearn import datasets
from sklearn.decomposition import PCA
# # import some data to play with
iris = datasets.load_iris()
# ... | [
"253848296@qq.com"
] | 253848296@qq.com |
cc2d8e32f9b31c5a2c802971ec725b3f6c2105ea | 3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2 | /src/Week4/Practice/reverse.py | 262d73adcf745fdaf0052bcef4f211a71cc4582e | [] | no_license | theguyoverthere/CMU15-112-Spring17 | b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8 | b8287092b14e82d2a3aeac6c27bffbc95382eb34 | refs/heads/master | 2021-04-27T08:52:45.237631 | 2018-10-02T15:38:18 | 2018-10-02T15:38:18 | 107,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | import cs112_s17_linter
#******************************************************************************#
# Author: Tarique Anwer
# Date: 9/4/2017
# Function: Destructively reverse a list. So if a equals [2, 3, 4], then after
# reverse, a should equal [4, 3, 2]. As is generally true of
# destructiv... | [
"tariqueanwer@outlook.com"
] | tariqueanwer@outlook.com |
93724f50f55a830aa5f7bccdeb6074f7150601fe | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/bxxbub001/question1.py | 4b05b26459fa0cf1a7ed56c52bbf12d955c4967a | [] | 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 | 253 | py | #assignment 3
#B.Booi
def makeSqr(hight,width):
for i in range (hight):
print("*"*width)
hi = eval(input("Enter the height of the rectangle:\n"))
span = eval(input("Enter the width of the rectangle:\n"))
makeSqr(hi,span)
| [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
bad5bd7500f02ef244bbf720cb53d5388220cf3f | 999f928790a181448fdda17619876c7a39d96bf8 | /bin/waitress-serve | e56b524164b806fa66ae530151a756d3ec584f8e | [
"MIT"
] | permissive | serashioda/learning_journal2 | adede85fb8092dc23b856ba071b25c6480927a0a | a00e7da8fcdc0179f99bfc2fd4dc7cf77ecd81c2 | refs/heads/master | 2021-01-13T11:00:44.508580 | 2017-01-09T07:09:00 | 2017-01-09T07:09:00 | 77,100,871 | 0 | 1 | null | 2017-01-09T15:05:32 | 2016-12-22T01:52:40 | CSS | UTF-8 | Python | false | false | 263 | #!/Users/Sera/Dropbox/codefellows/401/learning_journal/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from waitress.runner import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"you@example.com"
] | you@example.com | |
1200976e1b121cb5062d20f640b8213ddd632f21 | 501615c82801733e69c7447ab9fd68d3883ed947 | /hotfix/.svn/pristine/12/1200976e1b121cb5062d20f640b8213ddd632f21.svn-base | 0dcbbd208f84d8d26629d6051601bfbd3375421b | [] | no_license | az0ne/python | b2e1cc1e925d1fcdb269e7dd4c48e24665deeeee | aec5d23bb412f7dfca374fb5c5b9988c1b817347 | refs/heads/master | 2021-07-18T02:08:46.314972 | 2017-10-27T06:23:36 | 2017-10-27T06:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,521 | #!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import time
from functools import wraps
import cPickle as pickle
from mz_platform.services.core.log_service import log_it
from mz_platform.apis.api_result import ApiResult
from mz_platform.exceptions.mz_exception import MZException
from mz_platform.ex... | [
"1461847795@qq.com"
] | 1461847795@qq.com | |
ce9e0c110ab57c35bd0bdea209890c1efc74d1cb | 28b2144816ce1bf62b7481cd857fdc831a501f6b | /tabook/tests/functional/test_abook.py | e639eb978f75916274865bae76e3895278005cf8 | [] | no_license | t0ster/Turbo-Address-Book | 3191a837d7d28cf9b8c9d20331fe0518062b3892 | 8c5463b1d4423a0c41d7ed75ff9a512ae1bc515b | refs/heads/master | 2020-05-31T14:10:46.449799 | 2011-06-28T14:07:49 | 2011-06-28T14:07:49 | 1,953,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from tabook.tests import *
class TestAbookController(TestController):
def test_index(self):
response = self.app.get(url(controller='abook', action='index'))
# Test response...
| [
"roman@bravetstudio.com"
] | roman@bravetstudio.com |
43b7a07cce169607e19f1009edb61ff5d942f077 | b70eb5577099f88ae9f684f2c87647f98e26d42b | /hpc-historias-clinicas/diagnosticos/migrations/0004_auto_20150425_1459.py | 3adebbad200ee6845c2de4535b56e1c10fcae385 | [] | no_license | btenaglia/hpc-historias-clinicas | be1a392a119a72055ba643fba9c9a09b740aef47 | 649d8660381381b1c591667760c122d73071d5ec | refs/heads/master | 2020-06-03T19:05:17.910077 | 2015-06-10T23:05:31 | 2015-06-10T23:05:31 | 32,827,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('diagnosticos', '0003_auto_20150407_2123'),
]
operations = [
migrations.AlterField(
model_name='d... | [
"brunomartintenaglia@gmail.com"
] | brunomartintenaglia@gmail.com |
3fc765874c033319ae16b8f1f830511729d3e15f | eae4038397ea0b0b1ea56424888f53369a1e4282 | /moai/validation/single.py | f781534910c052c4c1bd83781de737fc6c0832f7 | [
"Apache-2.0"
] | permissive | iampakos/moai-0.1.0a2 | b2378e9e0a84b85c0e2251a419d39d3da7ea17f9 | 2f066bffc66faca0bdc9af53e7992df34d09ce5d | refs/heads/main | 2023-03-13T13:27:54.318498 | 2021-04-01T14:36:52 | 2021-04-01T14:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import moai.utils.engine as mieng
import torch
import omegaconf.omegaconf
import typing
import logging
import inspect
import itertools
log = logging.getLogger(__name__)
__all__ = ['Metric']
class Metric(mieng.Single):
def __init__(self,
metrics: omegaconf.DictConfig,
**kwargs: typing.Mapping[str... | [
"pakos@ai-in-motion.dev"
] | pakos@ai-in-motion.dev |
738ad03ab4aa7aba2177d4d3cfc449823971f0b0 | 0954a4a6d90fc66beee265c22e1fd829ddaf73cd | /digitalcollege/digital/migrations/0006_remove_departmentmodel_d_year.py | ea613757a14f2f32fa6d6437d7e354ca93266907 | [] | no_license | deepawalekedar319/CollegeMiniProject | a302184258e8213ee7604403e3abc60c19d342a8 | 52f46521c305bca167fdf2f4b41e28182476b3e1 | refs/heads/main | 2023-08-30T04:15:18.851167 | 2021-11-08T05:04:11 | 2021-11-08T05:04:11 | 425,695,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2021-01-04 08:45
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('digital', '0005_departmentmodel_d_year'),
]
operations = [
migrations.RemoveField(
... | [
"deepawalekedar319@gmail.com"
] | deepawalekedar319@gmail.com |
74b937d7824d37e846f7fd8ae0a5899ffe9ab42c | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /shop/migrations/0064_auto_20170626_1015.py | 8c03515b558ecc2c5e4c92ccd9c34ce2e360a2c9 | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-06-26 07:15
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0063_auto_20170610_1623'),
]
operations = [
migration... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
ddf283ffa12f6b269f7d56040ed800a6480b077c | cee65c4806593554662330368c799c14ec943454 | /src/resource-graph/azext_resourcegraph/vendored_sdks/resourcegraph/models/facet_request_options.py | 4ea94a3bd96311a982f9df2ec766f212ee6e4fad | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | azclibot/azure-cli-extensions | d5d1a4ecdfc87fd79f5ad042fb85cdbf881897d2 | c230646258d4b56efb7d44eb7a0230f2943da6f6 | refs/heads/master | 2023-08-28T03:55:02.311902 | 2019-04-04T16:05:45 | 2019-04-04T16:05:45 | 179,548,695 | 1 | 1 | MIT | 2021-07-28T15:26:17 | 2019-04-04T17:54:39 | Python | UTF-8 | Python | false | false | 1,316 | 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 ... | [
"tjprescott@users.noreply.github.com"
] | tjprescott@users.noreply.github.com |
40e64497e28bc9b351edfd900f44634d458a6244 | e13daffd10be4fc8dd004e4d2bd4fc8e0c408840 | /lbworkflow/core/transition.py | adcd71ef73825ff290d50ece913bcb83dd395a8c | [] | no_license | jimmy201602/django-lb-workflow | 47110b49c7a5b7a4d18c2de79cbbd701a0ef5743 | 52a44ed33964d6392c4eeb71047e74c892caa716 | refs/heads/master | 2018-11-26T12:20:44.696867 | 2018-09-05T03:42:36 | 2018-09-05T03:42:36 | 114,515,837 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,851 | py | from django.utils import timezone
from lbworkflow.models import Event
from lbworkflow.models import Task
from .sendmsg import wf_send_msg
def create_event(instance, transition, **kwargs):
act_type = 'transition' if transition.pk else transition.code
if transition.is_agree:
act_type = 'agree'
eve... | [
"zbirder@gmail.com"
] | zbirder@gmail.com |
c855a992495e5ab628fbe70c872eae00b20b337a | 5d58fa1d54855f18bad5688de4459af8d461c0ac | /tests/unit/modules/network/onyx/test_onyx_ospf.py | 893dc959fa735fa3382b2d96552f34de11bd4532 | [] | no_license | nasirhm/general | b3b52f6e31be3de8bae0414da620d8cdbb2c2366 | 5ccd89933297f5587dae5cd114e24ea5c54f7ce5 | refs/heads/master | 2021-01-04T07:03:21.121102 | 2020-02-13T20:59:56 | 2020-02-13T20:59:56 | 240,440,187 | 1 | 0 | null | 2020-02-14T06:08:14 | 2020-02-14T06:08:13 | null | UTF-8 | Python | false | false | 4,644 | py | #
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible_collections.community.general.tests.unit.compat.mock import pa... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
ce99b43702930a3bb2d59fddf1e3c9cbc98cc622 | 9f58ec75177221f1e483c1c1cc9166a6229851d1 | /unsorted_solutions/question47.py | 3fa98b758e9854dfd55c4b94d0e28ef84191563b | [] | no_license | neequole/my-python-programming-exercises | 142b520dcfd78e5c92cf01a5cefecdfdb2939ccd | d6806e02cea9952e782e6921b903b1bb414364ee | refs/heads/master | 2021-08-23T04:48:06.211251 | 2017-12-03T11:40:14 | 2017-12-03T11:40:14 | 103,946,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | """ Question 47:
Write a program which can filter() to make a list whose elements are even number
between 1 and 20 (both included).
Hints:
Use filter() to filter elements of a list.
Use lambda to define anonymous functions.
"""
out = list(filter(lambda x: x % 2 == 0, range(1, 21)))
print(out)
| [
"nicole.tibay@johngaltventures.com"
] | nicole.tibay@johngaltventures.com |
873d7960f8851a82a605915be61b0e9cb964e7fc | a3b2c7069c9fab8632b0568db5ab79aceacf9c9c | /devel/lib/python2.7/dist-packages/rqt_bag_plugins/__init__.py | c2f70e437d66d6ccfc8247c2b37ce4e8cdbfa026 | [] | no_license | tbake0155/bluedragon_workspace | 08ed85d9de29c178704bd3f883acafae473b175e | 384d863e00689cf40cde4933447210bbb1ba8636 | refs/heads/master | 2021-05-12T01:35:45.896266 | 2018-01-15T14:59:39 | 2018-01-15T14:59:39 | 117,558,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/tim/catkin_ws/src/rqt_common_plugins/rqt_... | [
"tbake0155@gmail.com"
] | tbake0155@gmail.com |
d1113c24a628593d5362f4391c033deff3884613 | 2bc194ed3c23d986724928cc5258cdebaa3fa1c6 | /handlers/domain.py | 1d13df00fd3515d75d5832e9aed99271ae339e9d | [] | no_license | mrcheng0910/whoismanage | 057a57637ef4f51fc9d55b181213c2bace9bfe02 | ebd337760a791367bd5b390ad3a86b6247d1251a | refs/heads/master | 2021-01-10T06:14:48.511919 | 2016-01-13T14:35:54 | 2016-01-13T14:35:54 | 46,243,616 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | # encoding:utf-8
"""
功能:域名数量统计所需数据
"""
import decimal
import tornado
import json
from models.domain_db import DomainDb
PATH = './domain/' # 模板地址
class DomainIndexHandler(tornado.web.RequestHandler):
"""各个顶级后缀域名数量统计"""
def get(self):
domains, total = DomainDb().fetch_domain(11)
self.render(... | [
"mrcheng0910@gmail.com"
] | mrcheng0910@gmail.com |
801b906f1c687e553348f1ebf8c65d7708ca6de7 | c0950683d84a3c5999a28ac32668e8dbd159e036 | /dbrec3d/bof/compute_object_level.py | e0104252dcfc92e3232e2cdb182af15e18fd1a82 | [
"BSD-3-Clause"
] | permissive | mirestrepo/voxels-at-lems | 0a88751680daa3c48f44f49bb4ef0f855a90fa18 | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | refs/heads/master | 2021-01-17T07:26:12.665247 | 2016-07-20T17:49:26 | 2016-07-20T17:49:26 | 3,919,012 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 22, 2011
@author:Isabel Restrepo
Save the level of the smallest cell entirely containing the object
"""
import os;
import dbrec3d_batch
import time
import optparse
import sys
import glob
class dbvalue:
def __init__(self, index, type):
self.id = ... | [
"isabelrestre@gmail.com"
] | isabelrestre@gmail.com |
784bcb8b10887b7a5bfaf0455c7e559533e0db6b | d324b3d4ce953574c5945cda64e179f33c36c71b | /php/php-sky/grpc/src/python/grpcio_tests/tests/unit/_grpc_shutdown_test.py | 35823c7451f2b5155c92d63cfc80c22d11773841 | [
"Apache-2.0"
] | permissive | Denticle/docker-base | decc36cc8eb01be1157d0c0417958c2c80ac0d2f | 232115202594f4ea334d512dffb03f34451eb147 | refs/heads/main | 2023-04-21T10:08:29.582031 | 2021-05-13T07:27:52 | 2021-05-13T07:27:52 | 320,431,033 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | # Copyright 2019 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a4a75d6f57c7d5507c1728eafd50f371d56dda12 | a4a5c6f185ed38ea4b93e49408f369f2ae7073e9 | /aliyun-python-sdk-iot/aliyunsdkiot/request/v20170420/PubBroadcastRequest.py | 2f067cac3538c6f3deb82417c2224f42bb8c9a2a | [
"Apache-2.0"
] | permissive | samuelchen/aliyun-openapi-python-sdk | 86ee6eb9573e68cbf98ea61328818bfca005f25f | 52dda2326c34633858e4ed83a526dadce90dd5ef | refs/heads/master | 2020-03-07T03:50:18.248590 | 2018-04-02T13:48:10 | 2018-04-02T13:48:10 | 127,248,156 | 1 | 0 | null | 2018-03-29T06:39:31 | 2018-03-29T06:39:30 | null | UTF-8 | Python | false | false | 1,520 | 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... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
38221f887d5dd3d306c517976168c1ae095db6f3 | 978184a03ecf7b0fe60fe824606877e5ad340c25 | /G/exo_7.16.py | 77937247652c008c8d4fdeb8ad9c281afe6e6e2d | [] | no_license | zinsmatt/Kalman_Filter_MOOC | 9e88a84818c09e2d01ea102855b7334bc2d0800a | 01d3ae3a213e94f480338f0a10bea5663185f167 | refs/heads/master | 2023-01-27T12:22:54.117402 | 2020-12-09T10:18:28 | 2020-12-09T10:18:28 | 304,326,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | from roblib import * # available at https://www.ensta-bretagne.fr/jaulin/roblib.py
def draw_invpend(ax,x, w): #inverted pendulum
s,θ=x[0,0],x[1,0]
draw_box(ax,s-0.7,s+0.7,-0.25,0,'blue')
plot( [s,s-sin(θ)],[0,cos(θ)],'magenta', linewidth = 2)
plt.plot(w, 0, "or")
mc,l,g,mr = 5,1,9.81,1
dt = ... | [
"zins.matthieu@gmail.com"
] | zins.matthieu@gmail.com |
bf2556e4a09d1f8d8208b65c9bcf88234a143a89 | d529b72eb4610ddf0e0b8170354a21f87dbf0e42 | /Unit19/involved.py | 834b8689f1666e416494769723984c5bb04d1bc3 | [] | no_license | SaretMagnoslove/Udacity-CS101 | 57a8b6609e2f2a09135ea0189a782d66e225b641 | 2e573a362a4d8d688199777937c6aaff59f6b900 | refs/heads/master | 2021-04-15T17:43:05.522259 | 2018-06-20T23:33:26 | 2018-06-20T23:33:26 | 126,618,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | # Dictionaries of Dictionaries (of Dictionaries)
# The next several questions concern the data structure below for keeping
# track of Udacity's courses (where all of the values are strings):
# { <hexamester>, { <class>: { <property>: <value>, ... },
# ... },
# ... }
# For ... | [
"magnoslove@gmail.com"
] | magnoslove@gmail.com |
15f51480656364cc0aedcabaf36127e26ac783fb | 79e630cbbbeca74d8c1fab822d3d854518a7e7ca | /hanmaum/urls.py | 9836efddaaec98334f3c756a1f8199bdd031699c | [] | no_license | Son-GyeongSik/hanalum_web | f573f936068ba24b2215a74efdbb9e8f4b0ff9f8 | 3669b1d3c108c2aa64a7d0f11116adc0f385ce83 | refs/heads/main | 2023-03-24T08:16:24.098445 | 2021-03-14T05:06:46 | 2021-03-14T05:06:46 | 351,105,953 | 1 | 0 | null | 2021-03-24T14:16:35 | 2021-03-24T14:16:35 | null | UTF-8 | Python | false | false | 680 | py | """hanmaum 관련 urls 정의 파일입니다."""
from django.urls import path
from .views import (
edit, index, new, show, introduce, like, dislike, cancle, new_comment
)
app_name = 'hanmaum'
urlpatterns = [
path('', index, name="index"),
path('<int:article_id>', show, name="show"),
path('show/<int:article_id>', show... | [
"singun11@kookmin.ac.kr"
] | singun11@kookmin.ac.kr |
d73707052b010a015388947c1705c99bb8ae15ec | 248c535f3612c646bccadecafdca649fd788bb1f | /.history/app/models_20210927050430.py | 68917ed4d52d586d0562e0b5cd1b52726d578030 | [
"MIT"
] | permissive | GraceOswal/pitch-perfect | 3b923e4de5fff1a405dcb54374a1ba0522232025 | d781c6e0f55c11f2a5e5dceb952f6b2de3c47c3b | refs/heads/master | 2023-08-16T01:42:18.742154 | 2021-10-01T06:59:11 | 2021-10-01T06:59:11 | 410,224,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from . import db
# connect class user to pitchperfect database
class User(db.Model):
__table__ = 'users'
id = db.Column(db.Integer,primary_key = True)
username = db.Column(db.String(255))
def __repr | [
"graceoswal88@gmail.com"
] | graceoswal88@gmail.com |
2ceafa22468a3657f444a3f7565a74038f94664c | 5199d37699c7c104cd9b00ffecad8f70d0f4f203 | /test_mean.py | 0a5dc585e4ac6a50486572913654dcc0e61bd20c | [
"CC-BY-4.0",
"MIT"
] | permissive | Becksteinlab/workshop_testing | 81b9a85f7a002e6f78666138a9959d51f6949ec1 | e4ee392e6e9bd1f7c429290b8820cfd06a512032 | refs/heads/master | 2020-03-25T12:31:27.376484 | 2018-08-07T00:28:51 | 2018-08-07T00:28:51 | 143,780,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import pytest
from mean import mean
def test_ints():
num_list = [1,2,3,4,5]
obs = mean(num_list)
exp = 3
assert obs == exp
def test_zero():
num_list=[0,2,4,6]
obs = mean(num_list)
exp = 3
assert obs == exp
def test_double():
# This one will fail in Python 2
num_list = [1,2,3,... | [
"orbeckst@gmail.com"
] | orbeckst@gmail.com |
d4dd8070546b4c3ce4a0fb08d5906e255dcdbe45 | 5bdf195972deec9378d14d1ba37994c0cae9ad7b | /dash-example/data.py | 1489c30d3b5c1e72c23352d1836d108e590bc256 | [
"BSD-2-Clause"
] | permissive | SoftwareDefinedBuildings/mortar-analytics | 42b40067b2c6056430b0cd11889993a10b8428a7 | df48efca45ab2636f53c3b7301bcaa21b6c4e91f | refs/heads/master | 2023-06-08T04:02:21.675221 | 2022-06-26T00:35:46 | 2022-06-26T00:35:46 | 168,413,215 | 20 | 10 | BSD-2-Clause | 2023-02-15T21:33:04 | 2019-01-30T20:50:29 | Python | UTF-8 | Python | false | false | 1,841 | py | import pymortar
import os
import pandas as pd
# use default values (environment variables):
# MORTAR_API_ADDRESS: mortardata.org:9001
# MORTAR_API_USERNAME: required
# MORTAR_API_PASSWORD: required
client = pymortar.Client({})
meter_query = "SELECT ?meter WHERE { ?meter rdf:type/rdfs:subClassOf* brick:Building_Electr... | [
"gtfierro225@gmail.com"
] | gtfierro225@gmail.com |
e7e8676236a60acdb5e6bee1d75bc7710446e73e | bcd711985fe4381f1599b797e6048a27e357f8d1 | /master/action/task_action.py | 938c94dd4ff23cef9563800f6f3c3c0681fe8dd6 | [] | no_license | No-bb-just-do-it/distributed-spider | 5c02847604350f404ca0a1eeea64c0d6e6c7aad8 | e8bf92a742968eb3c7acaede138132cd6ebe18f4 | refs/heads/master | 2020-03-20T22:56:02.742602 | 2018-05-30T03:33:08 | 2018-05-30T03:33:08 | 137,821,517 | 0 | 1 | null | 2018-06-19T00:40:40 | 2018-06-19T00:40:39 | null | UTF-8 | Python | false | false | 1,079 | py | # -*- coding: utf-8 -*-
'''
Created on 2017-12-08 13:52
---------
@summary:
---------
@author: Boris
'''
import sys
sys.path.append('..')
from utils.log import log
import utils.tools as tools
import web
import json
from service.task_service import TaskService
class TaskAction():
def __init__(sel... | [
"boris_liu@foxmail.com"
] | boris_liu@foxmail.com |
4fd550bd7e17bdd66d350b97ce999f08dd31e922 | 7408dd6c91e601133ca6971d84639ce1b4f18622 | /Wikipedia/config.py | 2988e0481aa933b0e9d36b292f7e0b24f9546020 | [] | no_license | theY4Kman/Yakbot-plugins | 72370cff674335e45f18b27418bc5f0cb87f62ca | faac0bd4fb2599c8adf5aab583ce986aafa037c7 | refs/heads/master | 2021-01-01T19:21:03.117097 | 2012-09-17T03:27:57 | 2012-09-17T03:27:57 | 1,045,656 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | #!/usr/bin/env python
# =============================================================================
# Wikipedia
# Copyright (C) 2009 Zach "theY4Kman" Kanzler
# =============================================================================
#
# This program is free software; you can redistribute it and/or modify it unde... | [
"they4kman@gmail.com"
] | they4kman@gmail.com |
671b01f557ba3809a0c9a20394d172e2fced8c3a | 42e4cc242a2be105dae0288d02a08fbd95bb476a | /deepspeed/ops/sparse_attention/sparse_self_attention.py | 6e7d8905e0a806b09216e3c82414f2737c24e7bc | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | afiaka87/DeepSpeed | a49ca48a410190b631a78c392c25359ed4478577 | 83ff549aa365d4fee744074ac0a64f27571ecbc8 | refs/heads/main | 2023-04-14T16:22:37.595209 | 2021-04-12T09:20:06 | 2021-04-12T09:20:06 | 356,466,212 | 2 | 0 | MIT | 2021-04-12T09:20:07 | 2021-04-10T04:09:31 | Python | UTF-8 | Python | false | false | 6,794 | py | """
Copyright 2020 The Microsoft DeepSpeed Team
"""
import torch.nn as nn
from torch.nn.functional import *
import torch
from torch import distributed as dist
from collections import namedtuple
from deepspeed.ops.sparse_attention import MatMul, Softmax, SparsityConfig
import sys
class SparseSelfAttention(nn.Module):... | [
"noreply@github.com"
] | afiaka87.noreply@github.com |
9372e89548779bcfa0783d3c99173d8509b38650 | 9b9f7546c9d4396bae7d9065b81b8c6c163b9a1d | /lectures/physics/old/NumericalIntegration001.py | 37607cf7354c619886000ad237a8df55ca0777eb | [] | no_license | geo7/csci321 | 60db9454fab00fc63624a4fc32c4dd47f02fda41 | 527744c8d76c5c4aceb07e23a1ec3127be305641 | refs/heads/master | 2020-12-28T14:50:17.267837 | 2015-06-03T19:18:53 | 2015-06-03T19:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | import numpy as N
import pygame, time
from pygame.locals import *
from pygame.color import *
import numpy as N
from particlesystem import Particle, ParticleSystem
pygame.init()
screen = pygame.display.set_mode((640,480))
background = pygame.Surface(screen.get_size())
background.fill((128,128,255))
def d... | [
"geoffrey.matthews@wwu.edu"
] | geoffrey.matthews@wwu.edu |
c1ec37951f61167493d80dc54208e1b802e5e123 | 45c685884bdb42fb4bf1c2b9e51a9dd732ecc9bb | /component/my_k8s.py | 9bc2db91ea198c836b07a774b0fa7ffc859e656b | [] | no_license | tristan-tsl/devops-demo | dffdb8dac2bf2be7e02bb44e889a16dbdeba5a6b | 369fc1b8458741d7642e280da9a3e283010535b0 | refs/heads/master | 2022-12-26T09:43:07.984118 | 2020-10-02T14:24:15 | 2020-10-02T14:24:15 | 217,187,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,305 | py | # def update_image(url, namespace, service_name, image_id, base_path, username, password):
# return "更新镜像成功"
"""
参考文档: https://k8smeetup.github.io/docs/tasks/administer-cluster/access-cluster-api/
# 得到 apiserver的信息(地址和token)
kubectl config view
"""
from kubernetes import client
# aToken = "QmFzaWMgTlVaRE5qY3hRVUk... | [
"tanshilinmail@gmail.com"
] | tanshilinmail@gmail.com |
1f225e11537f86d1dd4e294e32c67452d7e14b3b | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/encodings/johab.py | 26ff76bdd673424c1926f41d0305e01c233650fb | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,147 | py | # 2015.11.10 21:35:52 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/encodings/johab.py
import _codecs_kr, codecs
import _multibytecodec as mbc
codec = _codecs_kr.getcodec('johab')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEncoder(mbc.Multiby... | [
"info@webium.sk"
] | info@webium.sk |
d1b20f9a7480772ab77e15a32114eb4f078ac4c3 | 42b324291b51b14e284a8c5e14270a4e9446737a | /test50.py | 044d8d1e1b056372dbbabfbd11ebdd9fe49e77e1 | [] | no_license | christinecoco/python_test | 3f7505c85711eb6bff27cbc68bfd3fd9829a843d | 6d6c519e237f1d9e7243e3e6378a0ca44af98439 | refs/heads/master | 2020-05-23T22:26:58.341688 | 2019-05-16T07:23:28 | 2019-05-16T07:23:28 | 186,973,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #输出一个随机数
import random
print (random.random())#输出0~1之间的随机数
print(random.uniform(10,100))#输出随机数
print(random.randint(12,88))#输出随机整数 | [
"tester@test.com"
] | tester@test.com |
eddf7b80ce3a1109d590bdcb0be8dfc50d353886 | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /Databases/Cars/search_cars.py | 082a2af8cdcf0968fe3a65a7f31f1c02452fc7d8 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | #!/usr/bin/python
print "Content-type: text/html"
print
#import the libraries
import cgi
import cgitb; cgitb.enable()
import sqlite3
import sys
def generate_search_form():
#create a database connection
db = sqlite3.connect("cars.db")
db.row_factory = sqlite3.Row
def select_table_names():
my_d... | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
3d5c2d77fae942b3e0fd2c38fd0924121f3af901 | fcde32709c62b8ee86da459bb7c8eee52c848118 | /code/shopping重构/shopping__oo.py | db5da2c77b491014df24d346b47ad7b0669ca33e | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,543 | py | """
面向对象购物车
"""
class CommodityModel:
"""
商品模型
"""
def __init__(self, id=0, name="", price=0):
self.id = id
self.name = name
self.price = price
class OrderModel:
"""
订单模型
"""
def __init__(self, commodity=None, count=0, id=0):
self.id = id... | [
"598467866@qq.com"
] | 598467866@qq.com |
95cfde73c373262593894bf88e48c410cdd54843 | 1c2b73f125f4eaa91368f7e334df5cd863288d49 | /backend/team/views.py | 42474eedf73f94651b44532aa139dd648d03b6f3 | [
"MIT",
"Python-2.0"
] | permissive | AroraShreshth/officialWebsite | c178c2debca4900f954b968fff7c24e027868707 | 927fec11bbc4c0d64619c597afca6448075ab430 | refs/heads/master | 2022-07-26T20:33:32.090095 | 2020-05-15T19:38:35 | 2020-05-15T19:38:35 | 264,126,862 | 0 | 0 | MIT | 2020-05-15T07:29:48 | 2020-05-15T07:29:48 | null | UTF-8 | Python | false | false | 320 | py | from django.shortcuts import render
from . import models
from . import serializers
from rest_framework import viewsets, status, mixins, generics
class TeamViewset(viewsets.ModelViewSet):
"""Manage teams in the database"""
serializer_class = serializers.TeamSerializer
queryset = models.Team.objects.all()
| [
"jsparmani@gmail.com"
] | jsparmani@gmail.com |
1062c0d5c71bc4dbaa811f3566052cabac0d03ee | ac227cc22d5f5364e5d029a2cef83816a6954590 | /applications/physbam/physbam-lib/Scripts/Archives/pd/send/SEND.py | b4c864ff67659bce8ee85087f8d9373e717a587a | [
"BSD-3-Clause"
] | permissive | schinmayee/nimbus | 597185bc8bac91a2480466cebc8b337f5d96bd2e | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | refs/heads/master | 2020-03-11T11:42:39.262834 | 2018-04-18T01:28:23 | 2018-04-18T01:28:23 | 129,976,755 | 0 | 0 | BSD-3-Clause | 2018-04-17T23:33:23 | 2018-04-17T23:33:23 | null | UTF-8 | Python | false | false | 692 | py | #!/usr/bin/python
from pd.common import SOCKET
from pd.common import CONNECT
import sys
import time
import os
import socket
# get arguments
try:
executable,usernames=sys.argv[0],sys.argv[1:]
if len(usernames)<1: raise Exception
except:
print "Usage: %s username"%sys.argv[0]
sys.exit(0)
# read message
... | [
"quhang@stanford.edu"
] | quhang@stanford.edu |
be48d2873844038863df5350d16c2c4d7b9909bd | d7320f2f599d1d81e14aec5f62e9d48ee4fddfa2 | /backend/home/migrations/0006_auto_20201223_0721.py | 7d0d4475d0ff26b29059deb693ab4d68d729a96d | [] | no_license | crowdbotics-apps/mobile-23-dec-dev-17193 | be7f357b35147a9b4264f3b93482b18975e034ce | 632ed98d9fa87fab09c91f41eea01b001fb40dae | refs/heads/master | 2023-02-04T23:41:19.953146 | 2020-12-23T13:37:07 | 2020-12-23T13:37:07 | 323,806,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Generated by Django 2.2.17 on 2020-12-23 07:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("home", "0005_auto_20201223_0657"),
]
operations = [
migrations.AddField(
model_name="customtext",
name="hgfhfghfgh"... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d91396c9543f0733ec481f70104b9fda611e763a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2087/60782/310880.py | d2f4d6c3f49086e711629101477ef83af41c4b20 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | s = input() + input()
if s == '1223':
print(1,end="")
exit()
if s == '1233':
print(1,end="")
exit()
if s == '102':
print(10,end="")
exit()
if s == '4171':
print(22,end="")
exit()
if s == '10999999999999999999':
print(5,end="")
exit()
if s == '100121':
print(100,end="")
ex... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
ed82dc19f66ed20453c997fd6f8758995b776669 | 1427e4719b6ce1b805a553143ed477f2c4b82246 | /Scripts/collect_books.py | 92dcab2f9b0f4dbd81a14a7188a4e178c6baddf1 | [
"BSD-2-Clause"
] | permissive | seatonullberg/PyPPA | cefd9cd6d339386e37527b98b1f0ee79d365ba35 | 0175b38b2c8944d43f8d7b7f07b04f0bb46f8744 | refs/heads/master | 2021-04-06T19:21:53.616408 | 2018-10-18T06:04:01 | 2018-10-18T06:04:01 | 125,278,084 | 0 | 0 | BSD-2-Clause | 2018-10-17T05:56:28 | 2018-03-14T21:52:43 | Python | UTF-8 | Python | false | false | 3,270 | py | # Collect books from the Gutenberg Project as raw text for model training
import requests
from bs4 import BeautifulSoup
import re
import os
import argparse
from tqdm import tqdm
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--data_dir', default=None, help='Path to where book text will ... | [
"seatonullberg@gmail.com"
] | seatonullberg@gmail.com |
70f9a4c9349c7ed93199855e89304f20ea0f2f27 | 913f47c4d9550ff4b766011c4644c8ec534d155e | /24_classes/dz/task_4.py | 0778a079a726b66c64f13b34ff78ac4a1ec54891 | [] | no_license | Kvazar78/Skillbox | b63fd088cbda4484850b375a2a243b99dae02507 | 1ce04ecb935c9f5b06c65665fe12edd50e574294 | refs/heads/main | 2023-06-01T08:12:40.801301 | 2021-06-30T13:54:42 | 2021-06-30T13:54:42 | 312,324,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | class Parents:
def __init__(self, name_p, age_p, kids_list=None):
self.name_p = name_p
self.age_p = age_p
self.kids = kids_list if kids_list else []
def about_me1(self):
print(f'Меня зовут {self.name_p}. Мне {self.age_p} лет и у меня', end=' ')
if len(self.kids) == 0:
... | [
"kvazar78@mail.ru"
] | kvazar78@mail.ru |
48571f5d18cfafc14aba1237bbefdae506a4cbb1 | 8af379e5315da9d6389b297e12569f999ec14518 | /05_Statistics/01_statistics.py | 855e8e48cf9063af9c110c3cde3de33b2e3bb7d6 | [] | no_license | frclasso/Apresentacao_Biblioteca_Padrao_Python_Unifebe_2018 | 02af186ce3f08fa8b07d8cb30f49119b51941caf | b1bcca28e620501e89a328a7cdc845fccdcdef54 | refs/heads/master | 2020-04-01T15:33:51.482478 | 2019-01-24T16:57:06 | 2019-01-24T16:57:06 | 153,342,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/env python3
import statistics
agesData = [10,13,14,12,11,10,11,10,15]
print(f"Media: {statistics.mean(agesData)}") # Media/ Average
print(f"Mediana: {statistics.median(agesData)}") # Mediana / Median point
print(f"Moda: {statistics.mode(agesData)}") # Item mais frequemente apresentado
| [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
164cebb007bafcb17fbff858b98ed9ffddb77e37 | 81eceea57d570fa1f9f6468875b1b06b8de9f0f0 | /.history/block_20200624173107.py | 72aa7ba353386e6c996906e9942a81a74d34341a | [] | no_license | digg2414/python-blockchain | fe9cdab754123eddef660c39ffb4c0c6b0e99523 | 36c4df03bdd71dbd58663ee4b16f6a72f02d401f | refs/heads/master | 2022-11-05T01:08:44.229492 | 2020-06-24T23:11:41 | 2020-06-24T23:11:41 | 274,786,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | import time
def mine_block(last_block, data):
"""
Mine a block based on the last_block and the data.
"""
timestamp = time.time_ns()
last_hash = last_block.hash
hash = f'{timestamp} - {last_hash}'
return Block(timestamp, last_hash, hash, data)
def genesis():
"""
"""
class Bl... | [
"JHarold1241@outlook.com"
] | JHarold1241@outlook.com |
a44044d78854bf1937bbcbff50218a05af62ae22 | a720b0b5dafd164e388004c63a9417d242af6d11 | /beemgraphenebase/objects.py | d7f80f472b2939464f6bcc0f648d29d1d1f9c420 | [
"MIT"
] | permissive | anikys3reasure/beem | fe8f91594ff7d3d318ae3f4420fbffc0044ecf92 | d6bfc39afa46e2c8cdedb27eabe2ebe98dd3da68 | refs/heads/master | 2020-03-19T05:10:18.884986 | 2018-06-03T06:25:28 | 2018-06-03T06:25:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,888 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
from builtins import object
from future.utils import python_2_unicode_compatible
from collections import OrderedDict
import json
from beemgraphene... | [
"holger@nahrstaedt.de"
] | holger@nahrstaedt.de |
82e01ddf306af0de0cd44eb3c9bac1c8d54e5648 | fbffe8c375d0f1bded68d7d37d407332f8eebf98 | /binaray_search.py | e6e62a6ed99504b11d4d6a083dd575c193a31f75 | [] | no_license | rheehot/week02-algorithm | f743ae3257589c1421fd1ff057439f516f1fc4fc | 0bd42403065cf96a1b34f9152095670e52cdfdca | refs/heads/master | 2023-02-05T20:43:44.339200 | 2020-12-24T03:37:10 | 2020-12-24T03:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | '''
def binaray_search(array, target, start, end):
if start > end:
return None
mid = (start+end)//2
# target을 찾은 경우 인덱스 반환
if array[mid] == target:
return mid
# 중간점의 값보다 찾고자하는 값이 작은 경우 왼쪽 확인
if array[mid] > target:
return binaray_search(array, target, start, mid-1)
... | [
"jeongseo21@gmail.com"
] | jeongseo21@gmail.com |
402aa936f03eebfc6594e20ffd04d00bf655dc5e | 2d67afd40a0425c843aa8643df9f7d5653ad0369 | /python/leetcode/679_24_Game.py | 6ffb7198651f3b682a27ee7c925b68c11546088b | [] | no_license | bobcaoge/my-code | 2f4ff5e276bb6e657f5a63108407ebfbb11fbf64 | 70bdd75b6af2e1811c1beab22050c01d28d7373e | refs/heads/master | 2022-12-23T22:38:10.003058 | 2020-07-02T03:52:43 | 2020-07-02T03:52:43 | 248,733,053 | 0 | 0 | null | 2022-12-10T05:41:57 | 2020-03-20T10:55:55 | Python | UTF-8 | Python | false | false | 835 | py | # /usr/bin/python3.6
# -*- coding:utf-8 -*-
import itertools
class Solution(object):
def judgePoint24(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
if len(nums) == 1:
return abs(nums[0] - 24) < 0.0001
for x in itertools.permutations(nums):
... | [
"378082326@qq.com"
] | 378082326@qq.com |
2b0320378d647c689a4538c2bfa5efe8740ce529 | 73861a871c77c460ccc6fa7662ef63880e69dd4e | /vision/extract.py | 1677208920e14b1b958350c6936e92f7d28057f8 | [
"MIT"
] | permissive | bbengfort/financial-analysis | 7d2822f44407dd0733e49b36f61886afabebe95e | aa5b2d80af0df04f6171ae18c381380964867b98 | refs/heads/master | 2021-01-10T14:06:44.012138 | 2016-01-20T02:25:52 | 2016-01-20T02:25:52 | 47,262,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,550 | py | # vision.extract
# Extracts financial information from Finances.xlsx and writes them to CSVs.
#
# Author: Benjamin Bengfort <bengfort@cs.umd.edu>
# Created: Wed Dec 02 20:41:22 2015 -0500
#
# Copyright (C) 2015 University of Maryland
# For license information, see LICENSE.txt
#
# ID: extract.py [] benjamin@bengfort.... | [
"benjamin@bengfort.com"
] | benjamin@bengfort.com |
d59af3974388b65b5470435d958d55db47734bc1 | 8b3ca44ee3d990233e74655b7131d616094f70c2 | /experiments/sparsity/sameK_drug_sensitivity_gdsc/gaussian_gaussian_ard.py | 9efc1162ab1aaaf6f9e7b0ba0daf1917eab61758 | [] | no_license | zshwuhan/BMF_Priors | 8b8c54271285a72d2085a56a9475c0756f375e67 | 6a600da1c41f1ccde2f2ba99298b40e68fb9910a | refs/heads/master | 2021-05-13T19:10:07.203215 | 2017-12-01T13:30:21 | 2017-12-01T13:30:21 | 116,883,181 | 1 | 0 | null | 2018-01-09T23:36:13 | 2018-01-09T23:36:13 | null | UTF-8 | Python | false | false | 1,370 | py | '''
Measure sparsity experiment on the GDSC drug sensitivity dataset, with
the All Gaussian model (multivariate posterior) wih ARD.
'''
project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/"
import sys
sys.path.append(project_location)
from BMF_Priors.code.models.bmf_gaussian_gaussian_ard import BMF... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
832ddd7fd40b5386692cfa20df6d94a139502e50 | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/TmallEaiOrderRefundGoodReturnCheckRequest.py | ce4941fbc54d218c06016543eb1831e1303432ae | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class TmallEaiOrderRefundGoodReturnCheckRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.company_code = None
self.confirm_result = None
self.confirm_time... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
5f21d9bb1a6c40517ba06e2c323a7b65004c4df6 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/age_sex_20190618145358.py | 3e1c90629ae0e75d79668dc2289b3d2582a601eb | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | # -*- coding:utf-8 -*-
import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR-all')#txt目录提取
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")#中文加入errors
emrtxt = os.path.basename(emrtxt)
emrtxt_s... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
d35cb142ca658d669d5e931ec54d9e3e60ae2833 | f73fa6ce1b0df4ab5c4b3a37c27e61cf3ab1515c | /authapp/migrations/0002_auto_20210113_1639.py | b07e3d5162238755bc292026d331f526744eedea | [] | no_license | mr-Robot-777/geekshop | 15444f13fc2f97eba88eb0538407cb84635e3d66 | 8f7b2fc17ca7731813e444a3005073aa9ded2799 | refs/heads/master | 2023-02-28T10:01:23.801994 | 2021-02-05T16:14:16 | 2021-02-05T16:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # Generated by Django 2.2.17 on 2021-01-13 11:39
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('authapp', '0001_initial'),
]
operations = [
migrations.AddField(
model_na... | [
"ershgun@mail.ru"
] | ershgun@mail.ru |
69e03027619f9036ca92caea3d6929e383bb11cb | 3dcafd835cc14329d3d95fce96e4553009df1c59 | /mystic/svctools.py | d547f96e03ed22447edd81b49279762c543c3bda | [
"BSD-3-Clause"
] | permissive | silky/mystic | e4856721a6fdb7eaae5e4351c02d486c930352a6 | 369bebe23e3460b37cba4a64d00da7461b6fb028 | refs/heads/master | 2020-12-03T03:50:33.154428 | 2013-10-25T03:22:18 | 2013-10-25T03:22:18 | 15,031,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #!/usr/bin/env python
#
# Patrick Hung.
"""
Simple utility functions for SV-classifications
"""
from numpy import zeros, multiply, ndarray, vectorize, array, dot, transpose, diag, sum
def KernelMatrix(X, k=dot):
n = X.shape[0]
Q = zeros((n,n))
for i in range(n):
for j in range(i, n):
Q... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
006ba610db2b9012c049987a6af4aaf9bdbd2252 | 4f1dd1353b83d30e97abbff2c6b531cd538160e3 | /RoboBase.py | 8912a17c7d4874fd362a70e152be6c8b6c926233 | [
"MIT"
] | permissive | titos-carrasco/RoboBase | c089f84f0eb622877f0ed8620aadd18af5109cdd | ac3fe692482a6bd73ad836d56336c76508731f2d | refs/heads/master | 2021-01-13T01:40:40.773039 | 2014-04-18T22:59:34 | 2014-04-18T22:59:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,744 | py | # -*- coding: utf-8 -*-
"""Bluetooth control for a generic Arduino based robot
"""
import serial
import threading
import time
class RoboBase:
"""Class to control the robot
Usage:
robot = DaguCar("/dev/rfcomm0")
if(robot.IsConnected()):
robot.SetMotors(-255, 255)
time.... | [
"titos.carrasco@gmail.com"
] | titos.carrasco@gmail.com |
87302d938e2f55c44d36d63480ba7cc1d616a017 | dbd87fe6e9466c4cada18b037667cfdddc62c193 | /data/AV Connectior/alpha_vantage/cryptocurrencies.py | 4af80e1a7b1669d87d1c5c63d89dc537cb296929 | [] | no_license | alexanu/Python_Trading_Snippets | 74515a40dc63ba50d95bd50330ed05d59b5dc837 | 85969e681b9c74e24e60cc524a952f9585ea9ce9 | refs/heads/main | 2023-06-25T03:27:45.813987 | 2023-06-09T16:09:43 | 2023-06-09T16:09:43 | 197,401,560 | 18 | 17 | null | 2023-02-08T22:25:25 | 2019-07-17T14:05:32 | Jupyter Notebook | UTF-8 | Python | false | false | 2,125 | py | from .alphavantage import AlphaVantage as av
class CryptoCurrencies(av):
"""This class implements all the crypto currencies API calls
Prices and volumes are quoted in both the market-specific currency and USD.
All the functions follow the same call structure :
Keyword Arguments:
symbol: T... | [
"oanufriyev@gmail.com"
] | oanufriyev@gmail.com |
ba349bf428a3ad2f98c1478dcd08138dde07d944 | 76e62ddbfdfba19c80b37e855a4df67672ef0808 | /BIZa/2014/Novikova_J_V/Задача №4. Вариант 34.py | f7c4c6405a63589003c58083cc5a3d9c6a220461 | [
"Apache-2.0"
] | permissive | stasvorosh/pythonintask | 9d30f3cd492e89783b7221402375c1ebe4690baa | 8169ed26510022fe0d589f4013f11749131957df | refs/heads/master | 2021-01-17T16:49:32.778063 | 2016-10-10T14:08:04 | 2016-10-10T14:08:04 | 52,255,539 | 6 | 0 | null | 2016-02-22T07:33:16 | 2016-02-22T07:33:15 | null | UTF-8 | Python | false | false | 1,402 | py | #Задача №4. Вариант 34.
#Напишите программу, которая выводит имя, под которым скрывается Мария Луиза Полякова — Байдарова. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хране... | [
"stasyan.v@gmail.com"
] | stasyan.v@gmail.com |
d7b2079f01d6308c91b68f4e7309c6900690d40e | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-framework-Cocoa/PyObjCTest/test_nsdraggingitem.py | ed2c3d005e4b5cb0bdbcbe99f3b2c1d47e98bb2b | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | import AppKit
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestNSDraggingItem(TestCase):
@min_os_level("10.7")
def testConstants10_7(self):
self.assertIsInstance(AppKit.NSDraggingImageComponentIconKey, str)
self.assertIsInstance(AppKit.NSDraggingImageComponentLabelKey, str)... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
a025c41a715c278a37e8811487827c599e634f77 | 1f0b38e455ec949eb1285437373c496f46900955 | /Figures/early_SMBH_growth/redshift_vs_Mbh_growth_20200323.py | 006f80c26ed4dda1e3927ed1083fee38aa70d5f6 | [] | no_license | d80b2t/JWST_Cycle1 | 87fef5f58fca242e9df7717a609120be1cf01af0 | e6e7618640d4b35cff528304e475fed1ee0231c5 | refs/heads/master | 2021-05-12T19:43:28.468189 | 2020-03-23T17:42:21 | 2020-03-23T17:42:21 | 117,101,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,109 | py | '''
WISE detections and colors of Very High redshift quasars
'''
import math
import numpy as np
from astropy.io import fits
from astropy.io import ascii
from astropy.table import Table
from astropy.table import Table
import astropy.units as u
import matplotlib
import matplotlib.pyplot as plt
from matplotlib import c... | [
"npross@lbl.gov"
] | npross@lbl.gov |
fecce092dd36e224a01aab6a9e1d8b24d5bbf868 | 983ca9afc80dc1bd2cd25e81ec51de8c1fd39394 | /Unit5/5.2/googleSniff.py | 37fc74ef1da2a12b1df291bd03061d1e9e4ea3c1 | [] | no_license | mi1k7ea/Violent-Python | d5630a67cbdc218640d21f58e4081cd6530f32fe | c8048b04e02a6e91aed8e73af36e707b004b115c | refs/heads/master | 2022-11-25T23:06:05.138896 | 2020-08-02T15:03:32 | 2020-08-02T15:03:32 | 284,483,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | #!/usr/bin/python
#coding=utf-8
import optparse
from scapy.all import *
def findGoogle(pkt):
if pkt.haslayer(Raw):
payload = pkt.getlayer(Raw).load
if 'GET' in payload:
if 'google' in payload:
r = re.findall(r'(?i)\&q=(.*?)\&', payload)
if r:
search = r[0].split('&')[0]
search = search.replac... | [
"mi1k7ea@qq.com"
] | mi1k7ea@qq.com |
f79e9655cd13395e6de47f2c80331663af24e8a8 | 96e507cf993e26ea9fdc8586073fb5822b9b5c26 | /ex_1.3_datatype_dictionary.py | 04a3c8058f2e27f2d8fcc3cf01ff3531ba2e92ad | [] | no_license | bhoj001/python_tutorial | eff4bd1becccc80950a3ebd55a1abf26985e9cd5 | de717e518ece9989a8ed90f346374dc6cfaeebfc | refs/heads/master | 2020-12-14T21:33:54.559542 | 2020-03-02T09:47:45 | 2020-03-02T09:47:45 | 234,869,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,427 | py | '''
author: bhoj bahadur karki
date: 2020-jan-19th
purpose : about dictionary in python
Dictionary: Python dictionary is an unordered collection of items.
While other compound data types have only value as an element, a dictionary has a key: value pair.
Dictionaries are optimized to retrieve values when the key is k... | [
"nishantkarki305@gmail.com"
] | nishantkarki305@gmail.com |
c0ce587c985fdba86762d152de058192b4c8fc8a | 43fd8b12dc1b6a2fc7cf4d9b8a80d3f1ae0fac66 | /Test/others/requeset用法.py | 47a0ce9e6eb99ef82864c5610adc2e675068439b | [] | no_license | gxiang666/python_file | e707f829b2c35e6126bea79e299333faabe76b19 | 2ee0f52d53892d193dc83c10564f7326e0bad0da | refs/heads/master | 2022-12-07T04:16:29.166707 | 2019-10-25T02:59:26 | 2019-10-25T02:59:26 | 139,252,161 | 1 | 0 | null | 2022-11-22T02:38:40 | 2018-06-30T13:35:14 | Python | UTF-8 | Python | false | false | 140 | py | import requests
r = requests.get("https://www.bilibili.com/video/av9784617?p=5")
print(r.status_code)
r.encoding = "utf-8"
print(r.content)
| [
"1528357474@qq.com"
] | 1528357474@qq.com |
adac29ebb4dc4dcbd9bb458b8f74a2dd3f338700 | ca8dc4d5b6168648cf8a842fc27191fec3597a09 | /venv/lib/python3.6/site-packages/statsmodels/tools/tests/test_rootfinding.py | 4b840d33271b1842c9f9faf34a5de074491539f9 | [
"MIT"
] | permissive | iefuzzer/vnpy_crypto | 293a7eeceec18b934680dafc37381d1f5726dc89 | d7eed63cd39b1639058474cb724a8f64adbf6f97 | refs/heads/master | 2020-03-26T20:13:38.780107 | 2018-09-10T06:09:16 | 2018-09-10T06:09:16 | 145,311,871 | 3 | 0 | MIT | 2018-09-10T06:09:18 | 2018-08-19T14:48:32 | Python | UTF-8 | Python | false | false | 2,957 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 23 13:34:19 2013
Author: Josef Perktold
"""
import numpy as np
from statsmodels.tools.rootfinding import brentq_expanding
from numpy.testing import (assert_allclose, assert_equal, assert_raises,
assert_array_less)
def func(x, a):
f = (x ... | [
"panwei303031816@gmail.com"
] | panwei303031816@gmail.com |
becb2f371e27eec0814fc314ec1629220a2c31c2 | ca12625e6d2f3581793694cfc40445a85fc4770b | /bitmex_websocket/_bitmex_websocket.py | 4a5d778dce46cc853d1c0175e929bb37a169943d | [
"MIT"
] | permissive | kelvinxue/bitmex-websocket | ad10c63ed0fb341f23ed9d9511cc235eb8a5f1b1 | 773531943abc71b0e10b2dc5feec58152796c234 | refs/heads/master | 2020-03-21T04:36:10.788915 | 2018-06-21T04:17:41 | 2018-06-21T04:17:41 | 138,117,395 | 0 | 0 | MIT | 2018-06-21T04:02:13 | 2018-06-21T04:02:13 | null | UTF-8 | Python | false | false | 4,072 | py | from bitmex_websocket.auth.api_key_auth import generate_nonce,\
generate_signature
from bitmex_websocket.settings import settings
from pyee import EventEmitter
from urllib.parse import urlparse
from websocket import WebSocketApp
import alog
import json
import ssl
import time
__all__ = ['BitMEXWebsocket']
class ... | [
"jose.oliveros.1983@gmail.com"
] | jose.oliveros.1983@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.