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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b90cc6344c7868d92b0bac983f668cc7aad38c4c | 56e469a1bfd29004fa258a54668dfbbc4459663d | /python3-pandas-tutorial/src/lesson6.py | 2f6229fcc0269b0b8e6b2bdd47c4b9d40ff8c905 | [] | no_license | wind86/learning | bfce4a6795b58b27d0148b878299cacfe96aa26f | 4449ba0eed0a8f803a2bb9fbd663faf43148f03a | refs/heads/master | 2020-04-05T23:28:40.082439 | 2017-11-04T11:36:40 | 2017-11-04T11:36:40 | 83,236,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | '''
Created on May 15, 2017
Joining and Merging Dataframes - p.6 Data Analysis with Python and Pandas Tutorial
based on https://www.youtube.com/watch?v=XMjSGGej9y8&index=6&list=PLQVvvaa0QuDc-3szzjeP6N6b0aDrrKyL-
@author: ubuntu
'''
import pandas as pd
# df1 = pd.DataFrame({'HPI':[80,85,88,85],
# ... | [
"wind86@meta.ua"
] | wind86@meta.ua |
c582ec9b4a70e9179e20a14245487ba928f81ead | ba0cea0d05962e8a84016a80e3b9c9c358aa64c8 | /trading/TradingModel.py | 1458d04546c0e16e201695d145ce969e96281167 | [] | no_license | acjones212/tudorials | 48b7445dc832127021495bd5061b5e79588dc1bb | 7998da771e4623697b1b73c4a43c3e84fe67322f | refs/heads/master | 2020-06-30T06:13:03.055008 | 2019-02-17T04:00:43 | 2019-02-17T04:00:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | import pandas as pd
import requests
import json
import plotly.graph_objs as go
from plotly.offline import plot
from pyti.smoothed_moving_average import smoothed_moving_average as sma
class TradingModel:
def __init__(self, symbol):
self.symbol = symbol
self.df = self.getData()
def getData(self):
# define U... | [
"tudor.barbu7@gmail.com"
] | tudor.barbu7@gmail.com |
d5aecc30265afc5225221cf01160890cd3124607 | e31c41ee342d0c07cb134f545a89cdc36b4577d2 | /tests.py | 6afd8736483e506604c6dd3f671e386c6f5e91f9 | [] | no_license | peiyanz/lab23_test-py-2 | cc3072e301d2e405e438a2e958da87e32ec2f431 | 8bb5fc3ae37e713e6c46b7b2d6e8e9f66ac1c69a | refs/heads/master | 2021-06-10T23:15:11.659163 | 2017-02-03T20:52:31 | 2017-02-03T20:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py | import unittest
from party import app
from model import db, example_data, connect_to_db
class PartyTests(unittest.TestCase):
"""Tests for my party site."""
def setUp(self):
self.client = app.test_client()
app.config['TESTING'] = True
def tearDown(self):
"""Do at end of every tes... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
01d887cb06b9f0c3e3d6f268aad5bd2cabab5e3b | 3b604fe8f03f25859991cdab37804bcda51a4f18 | /dublyou/apps/competitions/migrations/0019_auto_20170208_1052.py | 0943f1c9608da03e38b8e3377f5dc03b26507e4e | [] | no_license | dublyou/matchup-games | e6238cbca7c30c6d4b4ddd161b84dfd5cc1bbacd | 07b2db2e7d52ac6590ab55a1a05e6076d8c9d680 | refs/heads/master | 2020-03-11T11:10:10.506719 | 2018-04-17T20:41:30 | 2018-04-17T20:41:30 | 129,956,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,036 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-08 16:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('profile', '0012_auto_20170130_1013'),
('competition... | [
"jgriff@Calebs-MacBook-Pro.local"
] | jgriff@Calebs-MacBook-Pro.local |
13e77167020da45609f0cd75bedd565b03cd3509 | 426b80c3c966d3b3734d2929bf9a9854311d4867 | /arl-python/arl/imaging/facets.py | 4ed2aee58e31c050ea54c6b6917712f9230bf269 | [
"Apache-2.0"
] | permissive | Song655/arlo | 7dcbfd5ff304a525a749fc8f22726a568e92459b | cee1613d4a2b2e1263da9d5b4b9930eef569509c | refs/heads/master | 2020-04-19T21:42:53.614248 | 2019-02-19T04:00:53 | 2019-02-19T04:00:53 | 168,449,766 | 0 | 0 | Apache-2.0 | 2019-01-31T02:31:29 | 2019-01-31T02:31:29 | null | UTF-8 | Python | false | false | 2,353 | py | """ The wide field imaging equation can be approximated by partitioning the image plane into small regions, treating each separately and then glueing the resulting partitions into one image. We call this image plane partitioning image plane faceting.
.. math::
V(u,v,w) = \\sum_{i,j} \\frac{1}{\\sqrt{1- l_{i,j}^2- ... | [
"chrisyoung_yrk@163.com"
] | chrisyoung_yrk@163.com |
e798a6e4262bf870dc3d3512db94aba356ee540c | d786fe979eef20b0538f3e9fecedc8d021b55a17 | /cubeRoot-example/cubeRoot.py | e7462b2ba7866a205a468f891cff86d86463e48c | [] | no_license | Waylonryan/mis3640 | 962ae36080de08d3ada9971c4529808cb718c072 | 5182a8fbe12a2e0116f61d9e541311537909ed07 | refs/heads/master | 2020-04-04T06:57:10.342733 | 2018-10-30T21:19:56 | 2018-10-30T21:19:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | x = int(input('Enter an integer: '))
ans = 0
while ans**3 < x:
ans = ans + 1
if ans**3 != x:
print(str(x) + ' is not a perfect cube')
else:
print('Cube root of ' + str(x) + ' is ' + str(ans))
# to-do
# make it work for negative integers.
| [
"zli@babson.edu"
] | zli@babson.edu |
cdfbedf06247d69bc7d9bd3e665f2d5b323587d5 | a8f3204139d7f68c23bd8411b8594899ba792e79 | /sequana/scripts/vcf_filter.py | 55781d1ce859c85b9ef780f5ca4131234c5cb118 | [
"BSD-3-Clause"
] | permissive | switt4/sequana | 874189c869ccc07a592c0a6a3c77999adcabe025 | 7bd4f32607d62bebfd709628abc25bfda504761b | refs/heads/master | 2023-02-13T13:06:26.021426 | 2020-12-01T14:49:02 | 2020-12-01T14:49:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,617 | py | # -*- coding: utf-8 -*-
#
# This file is part of Sequana software
#
# Copyright (c) 2016 - Sequana Development Team
#
# File author(s):
# Thomas Cokelaer <thomas.cokelaer@pasteur.fr>
#
# Distributed under the terms of the 3-clause BSD license.
# The full license is in the LICENSE file, distributed with this s... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
bb7deba4e4d085d42507355673c51bbf2f4a36de | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-batchai/azure/mgmt/batchai/models/jobs_list_by_resource_group_options_py3.py | befaa301bc381da6dd25ca329eb37d1a97dd8402 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,527 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
71244379010bf6cc5b3ea22e05ebe42ed3e01507 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Apps/GUI Calculator/App.py | 567e8dad37e33764bda12b5b45f2a6eb961c6b50 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4c907f593448d1cbfbc11948da94ab550ae20556e795a8b0fe1fb45fc9d68ac7
size 2810
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
74de3618e035512437ee47362e4808c6dc173b16 | 929a816fc299959d0f8eb0dd51d064be2abd6b78 | /LeetCode/easy - Binary Tree/226. Invert Binary Tree/.ipynb_checkpoints/recursion-checkpoint.py | b1490441905a8905dc5b84ba3b028b65a00c088d | [
"MIT"
] | permissive | vincent507cpu/Comprehensive-Algorithm-Solution | 27940da7bc0343921930a2eafbd649da93a5395d | 04e01e49622457f09af2e1133954f043c0c92cb9 | refs/heads/master | 2023-07-20T07:12:15.590313 | 2021-08-23T23:42:17 | 2021-08-23T23:42:17 | 258,644,691 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def invertTree(self, root: TreeNode) -> TreeNode:
if not root:
return root
... | [
"vincent507cpu@gmail.com"
] | vincent507cpu@gmail.com |
7873de2b4692d3ff9b1e48c09365bc144c04070e | 53ba0b6f172abcade631ae1f52852c400302559e | /python_developer_tools/cv/bases/attentions/SimAM-master/mmdetection/configs/faster_rcnn/faster_rcnn_r101simam_fpn_1x_coco.py | 4f303a3883c2031e6b27de79add6502d76aa9e6a | [
"Apache-2.0"
] | permissive | sssssshf/python_developer_tools | f97c64ee0aa0a7e9d31d173192805771c83abb7f | 44d2e67a2e2495a12d6b32da12c76cf0010ac7ea | refs/heads/main | 2023-08-19T02:44:53.536200 | 2021-10-13T02:10:19 | 2021-10-13T02:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | _base_ = './faster_rcnn_r50simam_fpn_1x_coco.py'
model = dict(pretrained='checkpoints/simam-net/resnet101.pth.tar', backbone=dict(depth=101))
| [
"zengxh@chint.com"
] | zengxh@chint.com |
0e4a97c2bc6c7e6c2cfcd660c9c7457f9b9f3029 | 59fcc364f9a07aa7047824c66645ee406ea8aed4 | /tagger.py | ae7402a3284fee0e57f476bcedde92de0efcffb7 | [] | no_license | vaastav/VA102 | b8f1db3802320c9fd1c83788c0d0b027072439bf | 78137946a0325155f7a7cc26b894e79f66c97a00 | refs/heads/master | 2016-08-08T23:47:33.815551 | 2016-03-27T02:22:00 | 2016-03-28T01:36:00 | 47,371,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | from nltk.tokenize import word_tokenize
from nltk.tag import pos_tag, map_tag
import nltk
import csv
keywordTags = ['ADJ','ADV','NOUN','NUM','VERB']
def isKeywordTag(tag):
return tag in keywordTags
def find_keywords(review):
text = word_tokenize(review.decode("utf8"))
tagged_review = pos_tag(text)
simplified_tag... | [
"vaastav.anand05@gmail.com"
] | vaastav.anand05@gmail.com |
94f8efdcedc3b47468b0d18a9b274757ad8ba2c1 | e638e9fda0e672fa9a414515d0c05a24ab55ad38 | /GroupAnagrams.py | 233b7f261dff5493b1a06428b1859c3ffd2a8664 | [] | no_license | zjuzpz/Algorithms | 8d1c7d50429aa5540eb817dc5495a20fc3f11125 | 2df1a58aa9474f2ecec2ee7c45ebf12466181391 | refs/heads/master | 2021-01-21T05:55:48.768728 | 2020-08-04T22:44:08 | 2020-08-04T22:44:08 | 44,586,024 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | """
49. Group Anagrams
Given an array of strings, group anagrams together.
For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"],
Return:
[
["ate", "eat","tea"],
["nat","tan"],
["bat"]
]
Note:
For the return value, each inner list's elements must follow the lexicographic order.
All inputs will be in l... | [
"zjuzpz@gmail.com"
] | zjuzpz@gmail.com |
37f5c70ea8454936494a75f8f31143cebca074ab | b9e295b2ee933d134d0526445eac9ac022e39dde | /contentcuration/contentcuration/utils/sentry.py | aaa3dc10a3b7863e4b023b7159f5b0e8a9509249 | [
"MIT"
] | permissive | ivanistheone/studio | b40fb9ab70e8f23e87013985470a8e44df30fe61 | 47605c51a0b806e580013b2b733f5bf68688aa59 | refs/heads/develop | 2021-06-04T01:35:05.589507 | 2020-12-09T00:03:40 | 2020-12-09T00:03:40 | 88,676,886 | 0 | 2 | MIT | 2019-04-10T04:43:10 | 2017-04-18T22:44:48 | Python | UTF-8 | Python | false | false | 210 | py | from django.conf import settings
def report_exception(exception=None):
if getattr(settings, "SENTRY_ACTIVE", False):
from sentry_sdk import capture_exception
capture_exception(exception)
| [
"richard@learningequality.org"
] | richard@learningequality.org |
12b14afbdcc78dddb3e1859f8bb22e7a1a08fb43 | 2d4af29250dca8c72b74e190e74d92f1467120a0 | /TaobaoSdk/Response/TradeContactGetResponse.py | fc57445cfc9a3544b5dffda3880e500cfa7b950f | [] | no_license | maimiaolmc/TaobaoOpenPythonSDK | 2c671be93c40cf487c0d7d644479ba7e1043004c | d349aa8ed6229ce6d76a09f279a0896a0f8075b3 | refs/heads/master | 2020-04-06T03:52:46.585927 | 2014-06-09T08:58:27 | 2014-06-09T08:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,132 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 通过交易号获取单笔订单的联系信息
# @author wuliang@maimiaotech.com
# @date 2013-09-22 16:52:43
# @version: 0.0.0
from datetime import datetime
import os
import sys
import time
_jsonEnode = None
try:
import demjson
_jsonEnode = demjson.e... | [
"chenke@maimiaotech.com"
] | chenke@maimiaotech.com |
bc2651b0aa33406897aec6872ca646ab3015a056 | ebe6a5bf993c80c9d3d55e275c1b8a23c456c83b | /abcclassroom/notebook.py | aad12aa764d5faec3f06dfca2f379ae0eb6d50f2 | [
"BSD-3-Clause"
] | permissive | betatim/grading-workflow-experiments | fd5d2ec7ea23e460d26644c242034ff11c78a59a | b38742547a43f376724fee1e04e540688b1f5019 | refs/heads/master | 2020-03-23T22:15:47.125374 | 2018-12-20T23:04:37 | 2018-12-20T23:04:37 | 142,164,781 | 0 | 0 | null | 2018-07-24T13:47:45 | 2018-07-24T13:47:44 | null | UTF-8 | Python | false | false | 3,333 | py | import ast
import os
import nbformat
import papermill as pm
from nbclean import NotebookCleaner
from .utils import chdir
try:
from IPython.core.inputsplitter import IPythonInputSplitter
except ImportError:
raise ImportError('IPython needs to be installed for notebook grading')
def split_notebook(notebook... | [
"betatim@gmail.com"
] | betatim@gmail.com |
8c4d5fd485c84b3512ba5be24c00b3af11158b39 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/costmanagement/azure-mgmt-costmanagement/generated_samples/generate_cost_details_report_by_subscription_and_time_period.py | fa959fac431751278f479b18f052ba906ad83b60 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"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,723 | 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 |
c664c730762bad69858a72e5f797d0714ba2e6da | f52997ac7e1b41f34018c3a0028ced8638072b2b | /src/extended_search/backends/backend.py | aed89d730ad7c0b675eb42d9352b4874e2ed0828 | [
"MIT"
] | permissive | uktrade/digital-workspace-v2 | 49fae1fca819b625c6f6949fb5ce51b89fbcab96 | 7e328d0d55c9aa73be61f476823a743d96e792d0 | refs/heads/main | 2023-09-03T12:03:47.016608 | 2023-09-01T12:07:55 | 2023-09-01T12:07:55 | 232,302,840 | 6 | 0 | MIT | 2023-09-13T15:50:24 | 2020-01-07T10:41:18 | Python | UTF-8 | Python | false | false | 7,967 | py | from wagtail.search.backends.elasticsearch7 import (
Elasticsearch7SearchBackend,
Elasticsearch7SearchQueryCompiler,
)
from wagtail.search.index import SearchField
from wagtail.search.query import MATCH_NONE, Fuzzy, MatchAll, Phrase, PlainText
from extended_search.backends.query import Nested, OnlyFields
from ... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
b6e028147abb5f242c4fbbc9df615e138999ea5a | bba618de189d579c1cc6026a94e0734dc8b89330 | /data/data_cluster.py | 13df72e75b0e45451decf75fcde1cc7b5f5b0011 | [] | no_license | Tetuwo181/KMeans | 9f9ab5b04a6d1d730f8db5a40ab99284e82ec444 | 7fbf62665af79e58df5e8d5bc882ded59f39938a | refs/heads/master | 2020-03-28T17:22:03.748501 | 2018-09-14T12:02:43 | 2018-09-14T12:02:43 | 148,782,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | import numpy as np
from typing import Union
from typing import Tuple
from typing import Optional
from typing import Callable
from typing import List
Position = Union[np.ndarray, Tuple]
class AbsData(object):
"""
データを格納するクラスのベース
"""
def __init__(self, position: Position):
"""
:param p... | [
"hamakaze181and189amarube@gmail.com"
] | hamakaze181and189amarube@gmail.com |
d0202a7b6d83f2e2b9581177ccc335588b29f1e4 | 7d1fec7f929c0d80707a8f46a5379abecb513ad8 | /crab_horizon_movement.py | a3e02b8fbcc5d67816798a218ddb17d6fbd70beb | [] | no_license | francescofilippini6/Sky_Coverage | 4cacdc8f2963d16c61c315772f311e6cc1f12e63 | 963d0fe18332eb6d0093c36402371b5f74655e82 | refs/heads/main | 2023-03-11T19:25:49.347341 | 2021-02-26T08:40:43 | 2021-02-26T08:40:43 | 326,218,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | import math as m
import numpy as np
import csv
import matplotlib.pyplot as plt
import pandas as pd
import astropy.coordinates as coord
import astropy.units as u
from astropy.io import ascii
from astropy.coordinates import SkyCoord
from astropy.coordinates import SkyCoord, EarthLocation
from astropy import coordinates ... | [
"francesco.filippini3@gmail.com"
] | francesco.filippini3@gmail.com |
6a342b5c99bf52551cdf9a41ee3935805787d9f3 | c1a9da6e041c406edaf419338b46d497071a21f2 | /todo/migrations/0003_alter_todo_is_completed.py | 58f741a4001e33e16bf101448afed67c4baa85fc | [] | no_license | alex1the1great/learn-todo | a0016b89cebb8c35aaac2e9872be7cee33f99bb8 | e2faa1edaac7d450999c7aacb0f335bf40665e89 | refs/heads/master | 2023-04-20T21:47:23.012887 | 2021-05-05T13:08:51 | 2021-05-05T13:08:51 | 364,278,364 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 3.2.1 on 2021-05-05 06:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todo', '0002_alter_todo_is_completed'),
]
operations = [
migrations.AlterField(
model_name='todo',
name='is_complete... | [
"asimshrestha608@gmail.com"
] | asimshrestha608@gmail.com |
ef06ee1a907c60dea3b5c90465285f9435c942f6 | 2f5d5149c064dfd18c0456db4326eca8b3cdb843 | /pqmf.py | 871405affaee1a846645216bf7716d9611fd1e26 | [
"MIT"
] | permissive | BridgetteSong/multiband-hifigan | a201cebc29d8d7b0d166303e824aca9651134cff | 718a8117211ceb735c8916cfae8662a68dad8876 | refs/heads/master | 2023-03-11T14:59:26.101235 | 2021-03-02T11:44:52 | 2021-03-02T11:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | import numpy as np
import torch
import torch.nn.functional as F
from scipy import signal as sig
# adapted from
# https://github.com/kan-bayashi/ParallelWaveGAN/tree/master/parallel_wavegan
class PQMF(torch.nn.Module):
def __init__(self, N=4, taps=62, cutoff=0.15, beta=9.0):
super(PQMF, self).__init__()
... | [
"rishikksh20@gmail.com"
] | rishikksh20@gmail.com |
7a48086a1a8ce564a8b688393160f9619cc2d920 | bfb6ccbcb2707bca5eb44f2b64c0084aa6561b5a | /docs/examples/textbook/stellar_minimal.py | 0eb338ca801befefe4cf1b76f358451e7f1a3879 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cgroeneveld/amuse | 79c8ece558f484df4494609e95274cffd5c37c60 | 9684fd22ce8293b837d2c78f56948e3ec3d04032 | refs/heads/master | 2020-08-16T16:44:46.702465 | 2019-10-14T19:16:04 | 2019-10-14T19:16:04 | 215,526,071 | 0 | 0 | Apache-2.0 | 2019-10-16T10:57:34 | 2019-10-16T10:57:34 | null | UTF-8 | Python | false | false | 1,591 | py | """
Minimal routine for running a stellar evolution code
"""
###BOOKLISTSTART###
from amuse.lab import *
def main(m, z, model_time):
stellar = MESA()
stellar.parameters.metallicity = z
stellar.particles.add_particle(Particle(mass=m))
initial_luminosity = stellar.particles.luminosity
dt = 1 | u... | [
"steven@rieder.nl"
] | steven@rieder.nl |
52fc3c13de1c7ab9d2f4226fda0f15568c18f21f | b7d01719eb6d5c504747674227df3410b22f75fa | /scripts/ibm/get_activation.py | aa337733f12853b6f6b01afe8d12ac631e6c42f4 | [] | no_license | lee212/FaaS-Evaluation | c16c0d5b16ae8ac5d45d6cf6638ba60e712094b1 | 38876242553d0bf36e262e91da244fd1bdd55121 | refs/heads/master | 2021-09-23T02:36:41.500656 | 2018-09-20T01:41:18 | 2018-09-20T01:41:18 | 103,572,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | import sys
import json
import requests
import os
import argparse
url = 'https://openwhisk.ng.bluemix.net/api/v1/namespaces/_/activations/'
auth_string = os.environ['IBM_OPENWHISK_AUTH_STRING']
def argument_parser():
parser = argparse.ArgumentParser("IBM OpenWhisk Activation Results")
parser.add_argument("fnam... | [
"hroe.lee@gmail.com"
] | hroe.lee@gmail.com |
3da489896f1d4b8481f999e4ab87ffaca902aa69 | dfc2c18053b8e7576f88e7b2524d7ca3a8f47282 | /ch09/session4/21.py | 22f613217b0cbb380b591a0d5e7f7acd6804e7a8 | [] | no_license | Xoozi/tchomework | a6eed3bbf697ff12af8d42249ec58a139aed0c4c | 627c98b0b652ef20fd93025a17341bba76fbfce6 | refs/heads/master | 2021-01-23T21:18:15.793703 | 2018-10-21T11:05:55 | 2018-10-21T11:05:55 | 57,583,655 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 448 | py |
#燃烧的箭
#例3中的火炬台直径12英尺. 用方程5和例3c, 求燃烧的箭通过边沿之间的水平距离需要多长时间
#箭在边沿上方时有多高
#由例3c v0 cos α = 90*32/sqrt(68*64)
#半程时间为t/2
#期间竖直方向位移为-g(t/2)²
v0h = 90.0*32.0/sqrt(68.0*64)
t = 12.0/v0h
g = 32.15
h = 74-g*(t/2.0)**2
print 't:%f, h:%f' % (t, h)
#xoozi 答案是通过时间1.9秒, 这绝对是错了, 我的答案合理
| [
"wwfxtt@gmail.com"
] | wwfxtt@gmail.com |
8809f892e839ecb6296a61b91988e02177d6fd1e | ef90992dc00640f42ec615075a9b030b771f81e4 | /python-machine-learning/ch04/ch04-6/mushroom-download.py | cc4bf516b5258e4e5b4c8be4642807012331b96c | [] | no_license | korea7030/pythonwork | 88f5e67b33e9143eb40f6c10311a29e08317b77e | 70741acb0477c9348ad3f1ea07a183dda82a5402 | refs/heads/master | 2023-01-08T01:47:15.141471 | 2020-09-09T13:28:20 | 2020-09-09T13:28:20 | 54,378,053 | 0 | 0 | null | 2022-12-26T20:25:43 | 2016-03-21T10:00:07 | Jupyter Notebook | UTF-8 | Python | false | false | 523 | py | # -*- coding: utf-8 -*-
import urllib.request as req
local = "mushroom.csv"
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/mushroom/agaricus-lepiota.data"
req.urlretrieve(url, local)
print("ok")
"""
첫번째 열 : 독의 유무(독: p / 식용 : e)
두번째 열 : 버섯머리모양(벨 : b / 혹 : k / 오목 : s/ 평평한 : f)
네번째 열 : 머리색(갈색 : n / 황갈색 ... | [
"korea7030@naver.com"
] | korea7030@naver.com |
17fec2fc6f5b0c5fd1cd55adb95430ecf92baa2a | 9f6ca792f8ef4fac137ddab6b5af3ae4629759d8 | /realize_bj_2941.py | 18991a5526a58b5a875b70f7f4f0e667d86f1cdf | [] | no_license | pjhq2/Baekjoon | d01374eca0fc0b4d68d2209fc57d83db3349c89c | 921822f0cdaca1456f167d271c9efe84ddee2bd4 | refs/heads/main | 2023-08-11T11:48:30.364066 | 2021-09-22T12:43:07 | 2021-09-22T12:43:07 | 386,900,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | word = input()
cro = ['c=', 'c-', 'dz=', 'd-', 'lj', 'nj', 's=', 'z=']
result = len(word)
for c in cro:
result -= word.count(c)
print(result) | [
"pkonu7@gmail.com"
] | pkonu7@gmail.com |
c9aa4f532ea1ce1fd202c31db44912e2f536d887 | b3e147ac438246d60644725fa93c16c9bae7fa7e | /Django Social Authentication/msg/communities/migrations/0001_initial.py | deadef4e706daa8a0473ca511f741db8917598ed | [] | no_license | Ehsan-Molavi/teamtreehouse | c55180b3d8eac8c18c03f335056fae1088c769e4 | cbe90b2eff0708e4c95a6909d7edec494ddd9615 | refs/heads/master | 2020-09-09T05:54:49.828487 | 2017-04-25T16:09:19 | 2017-04-25T16:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-08-18 21:44
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"brian@ubuntu.ubuntu-domain"
] | brian@ubuntu.ubuntu-domain |
ad16a47079c9d48d939186dd69f791eb8776e562 | eba3e4a3935d6422d1ed85aaf69337f5ba15fc74 | /tg-build/WebApp/bbwi/bbwi/commands.py | bc1be16efe88e2d957500026b277c85035637373 | [] | no_license | arianepaola/tg2jython | 2ae74250ca43b021323ef0951a9763712c2eb3d6 | 971b9c3eb8ca941d1797bb4b458f275bdca5a2cb | refs/heads/master | 2021-01-21T12:07:48.815690 | 2009-03-27T02:38:11 | 2009-03-27T02:38:11 | 160,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | # -*- coding: utf-8 -*-
"""This module contains functions called from console script entry points."""
import sys
from os import getcwd
from os.path import dirname, exists, join
import pkg_resources
pkg_resources.require("TurboGears>=1.0.5")
pkg_resources.require("SQLObject>=0.7.1")
import cherrypy
import... | [
"arianepaola@gmail.com"
] | arianepaola@gmail.com |
7026e3a545655b602456d212833fb1d8827ea6eb | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/message/message/tests/test__validate_reactions.py | 9cefa7864a1e54b584a1deb4686712a2d416e78a | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 1,431 | py | import vampytest
from ....core import BUILTIN_EMOJIS
from ....emoji import ReactionMapping
from ....user import User
from ..fields import validate_reactions
def test__validate_reactions__0():
"""
Tests whether ``validate_reactions`` works as intended.
Case: passing.
"""
reactions = Reaction... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
eca9d2184d08829e57c6e53dc200435a62c27dca | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs_with_max_replays_5/interreplay_131_l_4/replay_config.py | 81dd578b4a0ae58eed76c481e6a8fe40e4d236b9 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pyre... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
13690714d2c28a995bb0fdc95c5e71261ffd971b | 091a301b966f3141fc6020c754916ca1828216f9 | /exercises/05_basic_scripts/task_5_1c.py | 0f175b39c372c5c8c949a367a202937c462f389a | [] | no_license | netproglogic/pyneng-examples-exercises-en | f9d6a9b04873fc79ef6d3362844fb6464715cd3d | 299676a575f1d97922d8e60e8773ad9ea0301ce5 | refs/heads/main | 2023-06-28T23:12:02.153433 | 2021-07-27T02:38:51 | 2021-07-27T02:38:51 | 389,825,380 | 0 | 0 | null | 2021-07-27T02:30:05 | 2021-07-27T02:30:04 | null | UTF-8 | Python | false | false | 1,413 | py | # -*- coding: utf-8 -*-
"""
Task 5.1c
Copy and modify the script from task 5.1b so that when you request a parameter
that is not in the device dictionary, the message 'There is no such parameter' is displayed.
The assignment applies only to the parameters of the devices, not to the devices themselves.
> Try typing a ... | [
"nataliya.samoylenko@gmail.com"
] | nataliya.samoylenko@gmail.com |
35a312ce72be62ae3e48ff98179b21d0e9debdf3 | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_0159.py | 84026e92728dd9d32811d5f23f0d556a9e0d1ec8 | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | class Solution:
def lengthOfLongestSubstringTwoDistinct(self, s: str) -> int:
ret, l, r = 0, 0, 0
cnt = dict()
hash_set = set()
while r < len(s):
cs = s[r]
# print(hash_set, cnt, l, r)
if cs not in cnt:
cnt[cs] = 1
else:... | [
"lih627@outlook.com"
] | lih627@outlook.com |
bebca619b51381ed8388bff56f2aa99999713b2d | 1515e55e6695bf6e385da86e489fddbbe64a667f | /Tree Based/617. Merge Two Binary Trees.py | f66b02c3bde3a1c74686589f056d8aa1764c7a0d | [] | no_license | Stella2019/leetcode_stella | f9d9789ef6815c05feb04587718fb528d1c0331d | 253a5cc51394d3c15c64d398af5442ccc65ae7aa | refs/heads/master | 2022-12-11T18:18:47.685881 | 2020-09-07T00:24:23 | 2020-09-07T00:24:23 | 293,383,967 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | """
把两个树重叠,重叠部分求和,不重叠部分是两个树不空的节点
"""
"""
题目大意
将两个二叉树进行merge操作。操作方式是把两个树进行重叠,如果重叠部分都有值,那么这个新节点是他们的值的和;如果重叠部分没有值,那么新的节点就是他们两个当中不为空的节点。
解题方法
递归
如果两个树都有节点的话就把两个相加,左右孩子为两者的左右孩子。
否则选不是空的节点当做子节点。
时间复杂度是O(N1+N2),空间复杂度O(N)。N = t1 的 t2交集。
"""
class Solution:
def mergeTrees(self, t1, t2):
"""
:type t1: Tre... | [
"noreply@github.com"
] | Stella2019.noreply@github.com |
8875cb041f81b6df9792c3edb27badd2bb779332 | 23ec6adce704bff40d04cd6fc0ba446375405b68 | /firstBadVersion.py | f20f5f8d9fe87eb060c05515325ef8b18688ed84 | [] | no_license | amoghrajesh/Coding | 1845be9ea8df2d13d2a21ebef9ee6de750c8831d | a7dc41a4963f97dfb62ee4b1cab5ed80043cfdef | refs/heads/master | 2023-08-31T10:10:48.948129 | 2023-08-30T15:04:02 | 2023-08-30T15:04:02 | 267,779,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def bs(a,l,r,key):
while l<r:
m= l + (r-l)//2
if a[m]==key:
r=m
else:
l=m+1
return l,a[l]
a=[True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False]
n=len(a)
print(bs(a,0,n-1,False)) | [
"amoghrajesh1999@gmail.com"
] | amoghrajesh1999@gmail.com |
3732d7628f4b49ef7cd4f940283873df9defe2b4 | f0b741f24ccf8bfe9bd1950425d83b6291d21b10 | /components/aws/sagemaker/workteam/src/sagemaker_workteam_spec.py | 5b53cf8749125007f9bca1eb2cf8f0c92c1fadd4 | [
"PSF-2.0",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"Unlicense",
"Python-2.0",
"Apache-2.0",
"Li... | permissive | kubeflow/pipelines | e678342b8a325559dec0a6e1e484c525fdcc8ce8 | 3fb199658f68e7debf4906d9ce32a9a307e39243 | refs/heads/master | 2023-09-04T11:54:56.449867 | 2023-09-01T19:07:33 | 2023-09-01T19:12:27 | 133,100,880 | 3,434 | 1,675 | Apache-2.0 | 2023-09-14T20:19:06 | 2018-05-12T00:31:47 | Python | UTF-8 | Python | false | false | 3,485 | py | """Specification for the SageMaker workteam component."""
# 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... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
1f73e465808ce7005cd026a05ec7c9f9142b53dc | 4d1039cb53135c002dbee160c13e6a89bf57e57d | /main/migrations/0010_auto_20200901_1742.py | faacead814c375600d0625c3082f60b71c5ad347 | [] | no_license | nova-sangeeth/drix-url | 235c59c3692c294f84d94bb4bcd633bf20172aaf | 1fe32b45397f853e406a3641a23bdd5bb128d346 | refs/heads/master | 2023-08-06T07:40:55.387540 | 2021-09-24T04:48:01 | 2021-09-24T04:48:01 | 275,612,983 | 0 | 0 | null | 2021-09-24T04:48:02 | 2020-06-28T15:25:46 | HTML | UTF-8 | Python | false | false | 762 | py | # Generated by Django 3.0.7 on 2020-09-01 17:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main', '0009_user_create... | [
"novasangeeth@outlook.com"
] | novasangeeth@outlook.com |
e17ffa077e98c9701b914e8fd82a3c615792b1f2 | 1e17d31c1e8e6db8e42b9c1358b1cbd7d58b1eb9 | /examples/readme.py | d559b18c0a0c60d197f7baf168e4fce4fa9656c0 | [
"MIT"
] | permissive | pedrogclp/MerossIot | 69970526734b7b4762da888d1bcf09567ca8fd3f | 5913704375a4a20e7626519dd05d20143001adaf | refs/heads/0.4.X.X | 2023-05-27T22:56:48.291245 | 2021-03-27T10:16:21 | 2021-03-27T10:16:21 | 371,523,608 | 0 | 0 | MIT | 2021-05-27T22:58:37 | 2021-05-27T22:58:36 | null | UTF-8 | Python | false | false | 1,214 | py | import asyncio
import os
from meross_iot.http_api import MerossHttpClient
from meross_iot.manager import MerossManager
EMAIL = os.environ.get('MEROSS_EMAIL') or "YOUR_MEROSS_CLOUD_EMAIL"
PASSWORD = os.environ.get('MEROSS_PASSWORD') or "YOUR_MEROSS_CLOUD_PASSWORD"
async def main():
# Setup the HTTP client API fr... | [
"albertogeniola@gmail.com"
] | albertogeniola@gmail.com |
2a9d0b5364557a152ab30182bfae2f7f02da9b62 | 9bbb00c09aaaa19565d3fb8091af568decb5820f | /3_Intro_To_Importing_Data_Python/1_Introduction_To_Flat_Files/7_Importing_with_Mixed_DataTypes.py | eb846cc9f26170ad1f3cd993191f6acb801e650f | [] | no_license | PeterL64/UCDDataAnalytics | 4417fdeda9c64c2f350a5ba53b2a01b4bdc36fc7 | d6ff568e966caf954323ecf641769b7c79ccb83a | refs/heads/master | 2023-06-14T04:10:41.575025 | 2021-07-07T15:23:50 | 2021-07-07T15:23:50 | 349,780,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # Importing with Mixed Data Types 2
# Similar to the np.genfromtxt() function there is another function, np.recfromcsv() for CSV files.
# np.recfromcsv has some defaults, so you do not need to enter them. dtype=None, delimiter=',' and names=True
# Assign the filename: file
file = 'titanic.csv'
# Import file using np... | [
"peterlyonscbar@gmail.com"
] | peterlyonscbar@gmail.com |
e04dffd49d4e6b770fadf40d765cf2c417a9b93a | 6f255449d5790a1124ca56bec0e3dc457c1b3958 | /quzzi/quiz-5/z5103095@unsw.edu.au.files/quiz_5.py | 3e5b2471c2d36032c333902037e21a3206dfc3af | [] | no_license | tomtang110/comp9021 | ac8995f3f558ffdfff7af76a08c67e208fe26aa4 | 6c9e6404f515a72bc94a185c1c98d5aba49266c8 | refs/heads/master | 2020-03-23T18:56:41.177586 | 2018-07-24T04:56:23 | 2018-07-24T04:56:23 | 141,943,053 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | # Randomly fills a grid of size 10 x 10 with 0s and 1s and computes:
# - the size of the largest homogenous region starting from the top left corner,
# so the largest region consisting of connected cells all filled with 1s or
# all filled with 0s, depending on the value stored in the top left corner;
# - the size o... | [
"tomtang110@outlook.com"
] | tomtang110@outlook.com |
38a5a0665f4b5838c1c02d622affa06df9ded96a | 4191b25485148f003193d556a34b8d3cca2f2e27 | /code_testing/visualization.py | 893b8df97219af3de336af1efe0f42d194b0f4cf | [] | no_license | anilkunwar/FEA-Net | 429b7077d3d4c3a5e8a5edde52c049f2a985b5e7 | 858d3e3aed8f851082ac6f95756f382118e97908 | refs/heads/master | 2022-03-17T03:01:59.483998 | 2019-12-01T17:42:11 | 2019-12-01T17:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | import matplotlib.pyplot as plt
import numpy as np
SMALL_SIZE = 8
MEDIUM_SIZE = 10
BIGGER_SIZE = 12
plt.rc('font', size=SMALL_SIZE) # controls default text sizes
plt.rc('axes', titlesize=SMALL_SIZE) # fontsize of the axes title
plt.rc('axes', labelsize=MEDIUM_SIZE) # fontsize of the x and y labels
... | [
"hope-yao@asu.edu"
] | hope-yao@asu.edu |
a77a1d75e259fc62a385e27de488bc5836d93512 | bc7d019d3c88cfb637fdcc15ec800ed6e7db565c | /voyage_prevu/migrations/0035_aeroport_port.py | ef2ac653179f3370811641731034e92a65b4d838 | [] | no_license | Zaenma/paiement-django | dec9fca85b2cad0c62b7ec3fa416b34420dea31f | 7dfb777425320daf5a165dcc36ec7c0df898aa34 | refs/heads/master | 2023-03-19T07:31:53.409214 | 2020-11-09T14:58:51 | 2020-11-09T14:58:51 | 311,372,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | # Generated by Django 3.1.2 on 2020-11-06 18:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('voyage_prevu', '0034_auto_20201105_2023'),
]
operations = [
migrations.CreateModel(
name='Aeroport',
fields=[
... | [
"zaenma.halidisalim@gmail.com"
] | zaenma.halidisalim@gmail.com |
784027b7fe592ac2a4ca726e8c9251121601027f | 07306da5b68336715383a705f85f90aefeccfe96 | /tests/test_stream_protocol.py | 7f9a7d0ce1b20d3e43cd386f75a3f12224c7dcc2 | [
"Apache-2.0"
] | permissive | datarobot/aiohttp | ebbb9e3c2af3c1b8a7fddc888195c09ad7ab55f9 | 19d95a5ad84cf1453b8091b9bd8640317831e15f | refs/heads/master | 2021-05-13T17:29:51.844981 | 2018-06-12T15:24:36 | 2018-06-12T15:24:36 | 116,824,901 | 0 | 1 | Apache-2.0 | 2018-06-12T15:32:02 | 2018-01-09T14:15:15 | Python | UTF-8 | Python | false | false | 961 | py | from unittest import mock
from aiohttp import parsers
def test_connection_made(loop):
tr = mock.Mock()
proto = parsers.StreamProtocol(loop=loop)
assert proto.transport is None
proto.connection_made(tr)
assert proto.transport is tr
def test_connection_lost(loop):
proto = parsers.StreamProt... | [
"andrew.svetlov@gmail.com"
] | andrew.svetlov@gmail.com |
03fef4d8423aa08251d98b642634ce53a2e4542a | 607dc8df19fc5248f6289cdda97857b5d58ca16f | /smac/runner/__init__.py | 4bda4cb5ebae36ef239b127e1fa675d9cb31b1b9 | [
"BSD-3-Clause",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | automl/SMAC3 | 7dce243a33023c52d6819deff966f7b502e90ed0 | 541ee7e0383b491b86d1a23dcff669f2efad616d | refs/heads/main | 2023-08-31T17:36:06.067579 | 2023-08-01T13:02:51 | 2023-08-01T13:02:51 | 65,900,469 | 943 | 259 | NOASSERTION | 2023-09-11T02:36:57 | 2016-08-17T10:58:05 | Python | UTF-8 | Python | false | false | 472 | py | from smac.runner.abstract_runner import AbstractRunner
from smac.runner.dask_runner import DaskParallelRunner
from smac.runner.exceptions import (
FirstRunCrashedException,
TargetAlgorithmAbortException,
)
from smac.runner.target_function_runner import TargetFunctionRunner
__all__ = [
# Runner
"Abstrac... | [
"noreply@github.com"
] | automl.noreply@github.com |
beb4ebfba4d36ed804bf6dbd3b0fe7eb3512b978 | 1d61bf0b287533c9eb89bf71e217ead8cffb7811 | /System/Tester/tester.py | 1463da9e5ee33340fd14192bc1502171fc16b93f | [] | no_license | chukotka12/PP4E-GitHub | 2f6bf5e431a211beb9e1b6aa56b495770f07e6e4 | c9347ffa20f598b8c469082788a964549cd5df2b | refs/heads/master | 2020-05-30T04:43:30.570872 | 2019-09-10T14:33:14 | 2019-09-10T14:33:14 | 189,545,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,056 | py | """
##############################################################################
Тестирует сценарии Python в каталоге, передает им аргументы командной строки,
выполняет перенаправление stdin, перехватывает stdout, stderr и код завершения,
чтобы определить наличие ошибок и отклонений от предыдущих результатов
выполнен... | [
"chukreev.g@gmail.com"
] | chukreev.g@gmail.com |
bab250c929a45a4303cf4458404b5564c91d3e7e | 7374204324f6326663d12b3dd1fecc5bebb6854e | /offer/21.py | 92c2b908ffa610098c7214b6d91323a1b69d4e39 | [] | 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 | 466 | py | # !usr/bin/env python
# -*- coding:utf-8 _*-
# author:chenmeng
# datetime:2020/8/27 22:54
class Solution:
def exchange(self, nums):
right = 0
for i in range(len(nums)):
if nums[i] % 2 != 0:
nums[i], nums[right] = nums[right], nums[i]
right += 1
re... | [
"346521888@qq.com"
] | 346521888@qq.com |
72edb51cbaee18ff1b5ed216dfe4334d588619c4 | 7bf617f77a55d8ec23fa8156c1380b563a5ac7f6 | /CG/SciPy/7900_08_04.py | 347dafa320f3570a8b98232c11f7348e03708ca2 | [] | no_license | anyatran/school | c06da0e08b148e3d93aec0e76329579bddaa85d5 | 24bcfd75f4a6fe9595d790808f8fca4f9bf6c7ec | refs/heads/master | 2021-06-17T10:45:47.648361 | 2017-05-26T12:57:23 | 2017-05-26T12:57:23 | 92,509,148 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | #!/usr/bin/python
# select a non-GUI backend
import matplotlib
matplotlib.use('Agg')
# import plotting module
import matplotlib.pyplot as plt
# used to 'fake' file writing
from cStringIO import StringIO
# used to generate the graph
import numpy as np
# function called by mod_python upon request on this file
def in... | [
"panhtran249@gmail.com"
] | panhtran249@gmail.com |
a60335fd3c0161a7831115494dd5523f809e1519 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/ndxkee009/question3.py | 5bbb84a08292c8d8d7b0d5a8882340aedd384aa1 | [] | 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 | 610 | py | """Keegan Naidoo
NDXKEE009
4 May 2014"""
text=input("Enter a message:\n")
def Encrypt(text):
if text =="":
return ""
elif text[0]==" ":
return " " + Encrypt(text[1:])
elif(ord(text[0])<97):
return text[0] +Encrypt(text[1:])
elif(text[0... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
2ebf12f787421a9fff6f50523fcb9c583a664292 | 680185d233bdc0a1b2f404923d69e1d2e5b94d9d | /rambler/net/compareExpressions.py | 6dc3058383d1cf10c04989605ccfdad5836882f0 | [] | no_license | pombredanne/rambler.net | e0c5d36d3495d85fa07edbaa2c52c6ce69c2ae70 | 065d5ec4d1eee086b0b37910e3a6887ae748d83e | refs/heads/master | 2020-12-31T02:49:31.666102 | 2012-04-12T18:24:58 | 2012-04-12T18:24:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | import cStringIO
REGULAR_EXPRESSION_CHARS='.*+?'
IGNORE_CHARS='()'
def compareExpressions(exp1,exp2):
"""Given two strings which represent regular expressions returns compare how greedy an expressin
-1 if exp1 is more precicse than than exp2
0 if exp1 is as precise as exp2
1 if exp1 is less precise th... | [
"srobertson@codeit.com"
] | srobertson@codeit.com |
7b764c9a795922647c4f3acaf33d0114c1f2c22c | 4cdc9ba739f90f6ac4bcd6f916ba194ada77d68c | /剑指offer/第四遍/19.正则表达式匹配.py | e839a9c0ddfc157700ff3f37508a06178b532c62 | [] | no_license | leilalu/algorithm | bee68690daf836cc5807c3112c2c9e6f63bc0a76 | 746d77e9bfbcb3877fefae9a915004b3bfbcc612 | refs/heads/master | 2020-09-30T15:56:28.224945 | 2020-05-30T03:28:39 | 2020-05-30T03:28:39 | 227,313,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | """
请实现一个函数用来匹配包含'. '和'*'的正则表达式。模式中的字符'.'表示任意一个字符,而'*'表示它前面的字符可以出现任意次(含0次)。在本题中,匹配是指字符串的所有字符匹配整个模式。例如,字符串"aaa"与模式"a.a"和"ab*ac*a"匹配,但与"aa.a"和"ab*a"均不匹配。
示例 1:
输入:
s = "aa"
p = "a"
输出: false
解释: "a" 无法匹配 "aa" 整个字符串。
示例 2:
输入:
s = "aa"
p = "a*"
输出: true
解释: 因为 '*' 代表可以匹配零个或多个前面的那一个元素, 在这里前面的元素就是 'a'。因此,字符串 "aa" 可被视为 '... | [
"244492644@qq.com"
] | 244492644@qq.com |
4291138f901a7718cffecda75a832431563fc9a5 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2453486_0/Python/yakirsudry/solution.py | ea43b0bf5caa42220edc99eeee8ce197f20cdefd | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import os
input = r"A-small-attempt0.in"
output = r"testoutput.txt"
def get_solution_str(table):
o_wins_string = "O won"
x_wins_string = "X won"
draw_string = "Draw"
not_finished_string = "Game has not completed"
o_good_chars = ["O","T"]
x_good_chars = ["X","T"]
o_wins = False
x_wins = False
for i in xrange(... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
b6ee2ce9b062a51c42f418699bc88c5290f2d92e | 8d3835e39cbc2c74d8535b809686d6ab3033c0d0 | /ecommerce/carts/migrations/0001_initial.py | ae9854cb961e0bd4a352d399116cca10ab49b218 | [] | no_license | gayatribasude/GayatrisWorld | 125698955cd8b98a5aa2377331293587a57f2911 | 552ea2ef946e95f5bccc4e51d4030484ab0bc438 | refs/heads/master | 2023-06-25T19:45:03.232059 | 2021-08-02T16:43:47 | 2021-08-02T16:43:47 | 384,343,617 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | # Generated by Django 2.1.3 on 2018-12-06 16:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('prod... | [
"gayatribasude"
] | gayatribasude |
6b38251500d3171ba1a90aee8bf9ea0e04f55017 | faf45ce5687f45b1c1a9aad272dcec6c2543db24 | /imaginet/evaluate.py | 2c82c70e8b09db334924e7f825b1d587f5660e18 | [
"MIT"
] | permissive | gchrupala/reimaginet | b8b7ee73bfdbf5d4d293bd5704e554fb9800ac1e | f583b62877a62d8c06e2dcd1e39363f4cc4976f9 | refs/heads/master | 2020-04-12T06:15:43.473654 | 2017-05-22T15:47:38 | 2017-05-22T15:47:38 | 37,725,869 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,646 | py | # encoding: utf-8
# Copyright (c) 2015 Grzegorz Chrupała
from __future__ import division
import theano
import theano.tensor as T
import numpy
from scipy.spatial.distance import cdist
def paraphrase_ranking(vectors, group):
"""Rank sentences by projection and return evaluation metrics."""
return ranking(vectors... | [
"g.chrupala@uvt.nl"
] | g.chrupala@uvt.nl |
ec03231406e390198411099c19d5d3824fc7495c | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/GEM/YW_CYBMM_SZSJ_143.py | 13ea7b42f76855712e5a8114bc47a20da2331362 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,065 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
e94b34f7a4b61d2270b468fc4f32388eb0bd1a4b | a8d5cb55b80f4c160323b6c6fbe094c6e6634c75 | /users/migrations/0002_user_date_validated.py | f66d0dab256b23098a3db314f10101d8bcfdba4b | [] | no_license | birkoss/mtg-achievements-api | 00d5d954e3c5bbf919a44ef49bde9feaf3ceee61 | 133806c668f92b4b94d0f731edec5c08041010cc | refs/heads/master | 2023-03-28T18:16:06.077949 | 2021-04-03T13:34:15 | 2021-04-03T13:34:15 | 347,626,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.1.7 on 2021-03-14 13:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='date_validated',
... | [
"admin@birkoss.com"
] | admin@birkoss.com |
c432544fd2dcaf1b9c22fc5905cc20ab2b72813e | 88bbf27deb0b2a1b96985c0a94ff0b7a3d012820 | /hq/wsgi.py | 30b1d7a4018f35aa170b75ea1e1d0f1b1cca4721 | [] | no_license | Code-Community99/Hiq-django | e8efb7d63bd4fc0bc8e2af193fdec9aaab0975b0 | af62622648ad88f6e8d94e86a8dc5d6660e3bbe2 | refs/heads/master | 2022-12-14T01:12:45.218318 | 2020-05-18T23:29:35 | 2020-05-18T23:29:35 | 233,811,384 | 2 | 1 | null | 2022-12-08T03:34:53 | 2020-01-14T10:02:55 | JavaScript | UTF-8 | Python | false | false | 163 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hq.settings')
application = get_wsgi_application()
| [
"duncansantiago18@gmail.com"
] | duncansantiago18@gmail.com |
11e3806d74fcbc6ee3de46136854f7d5e113f04a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/2374.py | daaadf5cd464dc0f520aa0689946e9fa40c58e1b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | global flipcounter
def flip(line,start,k):
global flipcounter
for t in range(k):
if(line[start + t]) == '+':
line[start + t] = '-'
else:
line[start + t] = '+'
flipcounter= flipcounter +1
def myfunc(line,k):
global flipcounter
flipcount... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
67f81d788c523b73d542f8546f97f8bef336fb9f | 13faa0d553ed6c6a57791db3dfdb2a0580a1695b | /CodeChef/Long/August 2017/MATDW.py | 45224dc97400725d10522949e774031fc7ef9126 | [] | no_license | kautsiitd/Competitive_Programming | ba968a4764ba7b5f2531d03fb9c53dc1621c2d44 | a0d8ae16646d73c346d9ce334e5b5b09bff67f67 | refs/heads/master | 2021-01-17T13:29:52.407558 | 2017-10-01T09:58:23 | 2017-10-01T09:58:23 | 59,496,650 | 0 | 0 | null | 2017-05-20T17:27:18 | 2016-05-23T15:56:55 | HTML | UTF-8 | Python | false | false | 1,639 | py | import sys
def printIt(s):
print s
sys.stdout.flush()
def bestDisk(diskInfo):
return diskInfo[0]/(diskInfo[3]*1.0)
n,h = map(int,raw_input().split())
hardDisksInfo = sorted([map(int,raw_input().split())+[i] for i in range(h)], key=bestDisk)
penalty = input()
numberOfHardDisk = 0
currentHardDisk = -1
user... | [
"kautsiitd@gmail.com"
] | kautsiitd@gmail.com |
53cc9c9f7fc41839ec9ba889a34855ff10ac768b | e5a044708032b853f1cdf8906da63502716fd410 | /test/test_payment_tokenization_error_response.py | e86d56dc5ffac418b05c1b6b00de8fdc69fafcad | [] | no_license | GBSEcom/Python | 4b93bab80476051fc99f379f018ac9fa109a8a6a | 5fa37dba8d0c3853686fdc726f863743376060c9 | refs/heads/master | 2021-12-04T12:55:29.605843 | 2021-11-19T22:01:03 | 2021-11-19T22:01:03 | 136,058,345 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
2fd7d116a398cf706f0f19d4f65963b0537f9d24 | 0323561eacf19846e7e293d9cbc0b5e0e2de1d91 | /Step_8/A3C_NETWORK.py | 0203c47f042512a2d9d7c3992d69d133fb3ece7a | [
"Apache-2.0"
] | permissive | LeeDaeil/Process_A3C | 77cb3760f579fb1d80e191871bf853e27089bff9 | 1876fbe1b928e13b9c8766095b2d13abfda94019 | refs/heads/master | 2020-03-31T15:39:23.567327 | 2019-07-10T09:40:25 | 2019-07-10T09:40:25 | 152,345,573 | 1 | 2 | Apache-2.0 | 2018-12-25T02:34:36 | 2018-10-10T01:39:29 | Python | UTF-8 | Python | false | false | 4,228 | py | from keras.layers import Dense, Input, LSTM
from keras.models import Model
from keras.layers.wrappers import TimeDistributed
from keras.optimizers import RMSprop
from keras import backend as K
from Step_6.Parameter import PARA
class A3C_net_model:
def __init__(self):
if PARA.Model == 'LSTM':
# ... | [
"dleodlf1004@naver.com"
] | dleodlf1004@naver.com |
4a6e24f762958195452038e9fed1de89efdbd298 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/connectivity_hop_py3.py | 1ab3ca4895e26853a60e072edcb9b2dcc90c301e | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 2,122 | 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
3cd1756d135e7014c2c7cfd9d5f9e2379b777769 | b44ae8c215c7577616ce94bbddda57d46ff46577 | /experiments/sparsity/sameK_20repeats_movielens_100K/gaussian_gaussian_univariate.py | 4a00a17770a6dc4e784f85d4bedd6be94cbc77c7 | [] | no_license | changchunli/BMF_Priors | 06a74d89198b11c0c3ba673a1d4869986cd7bc2d | 15b20537eefd36347ed84617882eeea1c453e162 | refs/heads/master | 2020-03-21T07:50:08.081910 | 2018-06-10T10:22:04 | 2018-06-10T10:22:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | '''
Measure sparsity experiment on the MovieLens 100K dataset, with
the All Gaussian model (univariate posterior).
'''
import sys, os
project_location = os.path.dirname(__file__)+"/../../../../"
sys.path.append(project_location)
from BMF_Priors.code.models.bmf_gaussian_gaussian_univariate import BMF_Gaussian_Gaussia... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
2cb0388f30962d3fce1d5759446ab5384374b8a0 | ff4302db00bc503ab86ae02f170b078e1cda2312 | /daili/tiantian_cart/urls.py | b8ce4472c71db93b77dd44ee8ad49601cd8f9f76 | [] | no_license | pythonIn/dali | 28f3eab4f747fa0fc885d21b650e3111a0a88da2 | f37ed9a4d3e52cf1dabe454cb434abf736eb04bf | refs/heads/master | 2020-03-16T15:48:36.869406 | 2018-06-01T18:43:57 | 2018-06-01T18:43:57 | 132,759,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from django.conf.urls import url, include
import views
urlpatterns = [
url(r'^cart$',views.cart),
url(r"^add(\d+)_(\d+)$", views.add),
url(r'^mend(\d+)_(\d+)$', views.mend),
url(r'^cart_del(\d+)$', views.cart_del)
]
| [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
e1156b9394dfbc82e1105de1b18c7c019647151c | 10920b11a22a20f9a7f63157818327f3c4e41888 | /jibby_opencv/Object Recognition/image.py | 51ebc065790ef203d5025db954510b6b13e3513e | [] | no_license | dsall/computerv | e331b3d025c8cec0119b789107d1fef18d08f02a | 40671d618c31ad9d9b20fc902a218a8e281098bc | refs/heads/master | 2021-09-15T09:33:08.495580 | 2018-05-29T23:41:42 | 2018-05-29T23:41:42 | 135,363,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | import urllib.request
import cv2
import numpy as np
import os
def store_raw_images():
neg_images_link = 'http://image-net.org/api/text/imagenet.synset.geturls?wnid=n07942152'
neg_image_urls = urllib.request.urlopen(neg_images_link).read().decode()
pic_num = 877
if not os.path.exists('neg'):
... | [
"djiby45@outlook.com"
] | djiby45@outlook.com |
a261fb52ce97eb8401acfc01dd3dd7cc0ab4a979 | a0cbae33d175fdf0299eddc775a1b4b84c0addcf | /orquesta/tests/unit/specs/mistral/test_base_spec.py | 1559a000d680dcef5ba76c42537c582ccfa6a8bf | [
"Apache-2.0"
] | permissive | batk0/orquesta | 240ff95c76c610c52518ee7d2e3eee11b6594a73 | f03f3f2f3820bf111a9277f4f6c5d6c83a89d004 | refs/heads/master | 2020-04-17T10:48:48.016607 | 2019-01-19T15:40:05 | 2019-01-19T15:40:05 | 166,514,957 | 0 | 0 | Apache-2.0 | 2019-01-19T06:37:39 | 2019-01-19T06:37:39 | null | UTF-8 | Python | false | false | 1,958 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | [
"m4d.coder@gmail.com"
] | m4d.coder@gmail.com |
df4fecd88d5cd9e582134ca7ea60cbda93a24e83 | 1dc0de033e5f4e2471fb0ecdf55cc955e9287836 | /lines_bars_and_markers/120-绘制条形图.py | 2dacb6031c45e979a4e0de31749212506fa89c36 | [] | no_license | weiyinfu/learnMatplotlib | 5db2337723751a10d5dc6f077c97bef0fb919c0d | 3b173161f96d7b419c1b1be65f09e267141fa385 | refs/heads/master | 2022-08-29T20:46:26.222042 | 2022-08-02T02:22:33 | 2022-08-02T02:22:33 | 147,894,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # 导入绘图模块
import matplotlib.pyplot as plt
# 构建数据
GDP = [12406.8, 13908.57, 9386.87, 9143.64]
# 中文乱码的处理
plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False
# 绘图
plt.bar(range(4), GDP, align='center', color='steelblue', alpha=0.8)
# 添加轴标签
plt.ylabel('GDP')
# 添加标题
plt.title('四个直辖市GDP大比拼... | [
"weiyinfu.weiyinfu@bytedance.com"
] | weiyinfu.weiyinfu@bytedance.com |
58c292c8901934720c90bda9409969ed438bc743 | b1c403ad1211221427dddc80a7f15956da498175 | /0x03-caching/0-basic_cache.py | d6dab650de3d655f0aa8fac8482cca3dc26d9587 | [] | no_license | oumaymabg/holbertonschool-web_back_end | 246dd47b9abdb277d6ef539c9bc38a8f0509554a | dce7ff683d8bce9ad986d72948c9e75ca7b80d2a | refs/heads/master | 2023-09-05T22:27:28.961336 | 2021-11-15T21:05:53 | 2021-11-15T21:05:53 | 389,440,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | #!/usr/bin/python3
""" Basic dictionary """
from base_caching import BaseCaching
class BasicCache(BaseCaching):
""" Class that inherits from BaseCaching and is a caching system
This caching system doesn’t have limit """
def put(self, key, item):
""" Assign to the dictionary """
if key... | [
"oumaymabou257@gmail.com"
] | oumaymabou257@gmail.com |
ec5cac4f337e78f90c3b2276496c1e93b970c87c | 14baf43101ef0d805bfe287a1498106f9b89580f | /lol.py | 77acc4b5075751f88bc3a0b7d258b4fe2d8e00c3 | [] | no_license | justinembawomye/python-fun | e10358e1825697d725dd9d11b94bbcc920965800 | edabbff26a39fefe36b9800b784fee438fa1b2c8 | refs/heads/master | 2023-08-27T13:20:56.258556 | 2021-10-28T20:17:49 | 2021-10-28T20:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py |
# creating the main function
def main():
for a in range(3):
meow()
def meow():
print('Hey cat!! .....Y.O.L.O')
main() | [
"jmbawomye@gmail.com"
] | jmbawomye@gmail.com |
c95518e76732e60e2498accc86ec780469776dd4 | 1e7673cf975dbdafd57cf040b3df00bf62da2f2a | /final_PhonoCi2.0/makegif.py | 63954ff3e0d581008d002f990733acea4847b393 | [] | no_license | pondjames007/RWET | 9771058767e45392537f20d701b772d4ec776ff2 | 5fbfc46ab3f98336cfa7bd3c1789097a7f8e16b9 | refs/heads/master | 2021-05-04T00:53:03.212648 | 2018-05-04T20:42:15 | 2018-05-04T20:42:15 | 120,354,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,059 | py | import requests
from bs4 import BeautifulSoup
import os
import sys
import random
from PIL import Image, ImageDraw, ImageFont
import textwrap
def download_file(url, local_filename=None):
if local_filename is None:
local_filename = url.split('/')[-1]
# if os.path.exists(local_filename):
# retur... | [
"jameshuang@nyu.edu"
] | jameshuang@nyu.edu |
bf76b641e40e5ae38de03980d78eb5ec4c5cea4e | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/python/data/__init__.py | fdef948f260e00288a0fd67087f3b7bd58136b7c | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d2c61947afcd5ecdc7b2c49e834ad9feeeed830ece0335e0f29375f7da626b17
size 1506
| [
"business030301@gmail.com"
] | business030301@gmail.com |
f4167843167e81ed9d67f4244251831321f65ce7 | d8a9b88f4087ebfe97b462e589071222e2261e47 | /189. Rotate Array.py | e4112871d60ef56e0896ddb710f0ccab9299cc03 | [] | no_license | rohitpatwa/leetcode | a7a4e8a109ace53a38d613b5f898dd81d4771b1b | f4826763e8f154cac9134d53b154b8299acd39a8 | refs/heads/master | 2021-07-07T12:40:30.424243 | 2021-03-31T00:21:30 | 2021-03-31T00:21:30 | 235,003,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # Create 2 parts of the array of size n-k and k. Reverse these two parts individually and then reverse the whole array.
class Solution:
def reverse(self, nums, start, end):
while start<end:
nums[start], nums[end] = nums[end], nums[start]
start += 1
end -= 1
... | [
"rohitpatwa@gmail.com"
] | rohitpatwa@gmail.com |
909cc6f34cdde8891f13255f83a6b221376d03b9 | 27e18001bd40f6fe5b9f675130e359147ce3519a | /20.py | e2bcaa0ba31c60aa60680cbbbe23bd056d298725 | [] | no_license | jsomers/project-euler | 6934a5d4eb2c116b08face308a010ddb74e0c123 | 61cc4cd7978deeed9d071f678c786f991e05d8a7 | refs/heads/master | 2021-01-01T05:39:39.568380 | 2014-08-21T04:05:10 | 2014-08-21T04:05:10 | 10,680,061 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Give the sum of the digits in 100!
def mul(x, y):
return x*y
def fact(n):
facts = []
for i in range (1, n+1):
facts.append(i)
a = reduce(mul, facts)
return a
print fact(100)
string = '9332621544394415268169923885626670049071596826438162146859296389521759999322991560894146397615651828625369792082722375825118... | [
"jsomers@gmail.com"
] | jsomers@gmail.com |
7a7281413d8c98326a014edb808a6254dad9ba1e | 919e74f05976d9ea5f28d5dcf0a3e9311a4d22b2 | /conans/test/functional/toolchains/gnu/autotools/test_apple_toolchain.py | c9217eac77c70998abec202599110b89c924298c | [
"MIT"
] | permissive | thorsten-klein/conan | 1801b021a66a89fc7d83e32100a6a44e98d4e567 | 7cf8f384b00ba5842886e39b2039963fc939b00e | refs/heads/develop | 2023-09-01T12:04:28.975538 | 2023-07-26T10:55:02 | 2023-07-26T10:55:02 | 150,574,910 | 0 | 0 | MIT | 2023-08-22T14:45:06 | 2018-09-27T11:16:48 | Python | UTF-8 | Python | false | false | 4,435 | py | import os
import textwrap
import platform
import pytest
from conans.client.tools.apple import to_apple_arch
from conans.test.assets.autotools import gen_makefile
from conans.test.assets.sources import gen_function_h, gen_function_cpp
from conans.test.utils.tools import TestClient
makefile = gen_makefile(apps=["app"]... | [
"noreply@github.com"
] | thorsten-klein.noreply@github.com |
f149b88f3ad064c0087ca3f578642aea3bc5c4ed | c4af67db4c523d20f2d55aef90ba77db1fb53c38 | /Archetypes/tests/test_construction.py | 5e11425921baaa08285bc4c4a19308a46ef93964 | [
"BSD-3-Clause"
] | permissive | dtgit/dtedu | e59b16612d7d9ea064026bf80a44657082ef45a3 | d787885fe7ed0de6f9e40e9b05d852a0e9d60677 | refs/heads/master | 2020-04-06T05:22:50.025074 | 2009-04-08T20:13:20 | 2009-04-08T20:13:20 | 171,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import unittest
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase
class FactoryTest(ATSiteTestCase):
def testSimplePortalType(self):
self.folder.invokeFactory(id="dummy", type_name="SimpleType")
self.assertEqual(self.folder.dummy.getPtype(), "Simple Type")
def XXXtestCopiedF... | [
"ron@domU-12-31-39-02-65-03.compute-1.internal"
] | ron@domU-12-31-39-02-65-03.compute-1.internal |
560b1cb677c6f79c4127fb6c7433e86b2f01752a | 6320fef2ea7376c2b35f97f1a5af004e90f09098 | /1-2주차 실습(복습)/venv/Lib/site-packages/bleach/utils.py | 1163bd3e732017cd74fb3402832980ffcaa22fa2 | [] | no_license | Dplo1514/ploaistudy | 7aa08d7f71653748a9e32dcc09ee8f6cec0aaed9 | e35e42b1e5f0c90cc1e2a59993a1ef73d8872d0c | refs/heads/master | 2023-09-03T00:45:55.601651 | 2021-10-24T12:19:38 | 2021-10-24T12:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | from collections import OrderedDict
def _attr_key(attr):
"""Returns appropriate key for sorting attribute names
Attribute names are a tuple of ``(namespace, name)`` where namespace can be
``None`` or a string. These can't be compared in Python 3, so we conver the
``None`` to an empty string.
... | [
"dladlsgur3334@gmail.com"
] | dladlsgur3334@gmail.com |
b3caaba13db1b1269a90e25161e1dace19a05ba5 | f7d0c32b8d29dcff788d439c2b7051734afbbfc6 | /meiduo1/apps/user/utils.py | 3f1156f45390d1d7a949de53e45f59034719129f | [
"MIT"
] | permissive | woobrain/nginx-uwsgi-web | dcf5159ba3f3332108c2d351ef3dac0cc504ade7 | 5b3ca1fba8205c2c0a2b91d951f812f1c30e12ae | refs/heads/master | 2022-12-22T21:08:00.758841 | 2019-11-13T12:31:20 | 2019-11-13T12:31:20 | 221,447,696 | 0 | 0 | MIT | 2022-12-11T19:51:54 | 2019-11-13T11:52:19 | JavaScript | UTF-8 | Python | false | false | 664 | py |
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from meiduo1 import settings
def generic_active_email_url(id, email):
# 实例化加密对象
s = Serializer(secret_key=settings.SECRET_KEY,expires_in=3600)
# 组织数据
data = {
"id":id,
"email":email
}
# 加密数据
serect_dat... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
f8eec1a3c5a02a18416e5676f7d9647bf0fd199e | 35ff4e124ea73cd2630ddf25dfe019b4b4e3f5d6 | /200_NumberOfIslands/200_NumberOfIslands_1.py | 88b82c01ab92a45cbcc835225055f670d848f1c6 | [] | no_license | H-Cong/LeetCode | 0a2084a4845b5d7fac67c89bd72a2adf49f90c3d | d00993a88c6b34fcd79d0a6580fde5c523a2741d | refs/heads/master | 2023-03-19T15:22:00.971461 | 2021-03-11T00:33:00 | 2021-03-11T00:33:00 | 303,265,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | class Solution:
def numIslands(self, grid: List[List[str]]) -> int:
'''
BFS
'''
row = len(grid)
col = len(grid[0])
count = 0
for i in range(row):
for j in range(col):
if grid[i][j] == "1":
count += 1
... | [
"nych1989@gmail.com"
] | nych1989@gmail.com |
46737b82df4a556766e1e833e4e748b0474f551c | 2136701f48ad131084b331039d864f85988cf451 | /spider/work/media_huadong/somenew/spiders/zhongguojiangxiwang.py | a15ce477adf94d9e61ca22cfee9bc5f1b8e94dbf | [] | no_license | cuiyulin77/other | 9d374a47d482f1c3f9ef0f3ac4429487643b04b9 | c00cafaf7607452966fa523c4d0b04edb7f153e6 | refs/heads/master | 2020-05-18T04:24:26.095929 | 2019-04-30T06:37:53 | 2019-04-30T06:37:53 | 184,169,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | # -*- coding: utf-8 -*-
import scrapy
from somenew.items import SomenewItem
import hashlib
import datetime
class DezhouxinwenSpider(scrapy.Spider):
# 中国江西网
name = 'zhongguojiangxiwang'
allowed_domains = ['jxnews.com.cn']
start_urls = ['http://www.jxnews.com.cn/']
# start_urls = ['http://fc.jxnews.c... | [
"494658565@qq.com"
] | 494658565@qq.com |
121ee74bb7d8df6823b01dac06b94931eb309d1a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03043/s556042691.py | 4e6f577175da4a7f55616baa41faeb4da62a38fa | [] | 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 | 178 | py | n,k=map(int, input().split())
ans=0
import math
for i in range(1,n+1):
sikou=math.ceil(math.log((k/i),2))
if sikou<0:
sikou=0
ans+=(1/n)*0.5**sikou
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
afd23e3eaa95e013ad89a9c3b5e91281ab263ef3 | 3147bb3457617842c24210c9c7e5a0d07fc548a6 | /guardianCrossword.py | 3e8b9aa7b1dcf1ebf5c095422550004651768d48 | [] | no_license | rashley2712/tools | 4378a062276e4c5c52563842d7a077e3a5e84f42 | e361abce89bfd4cf9e11d0e575c5d12c2c530e13 | refs/heads/master | 2023-01-10T12:52:50.744164 | 2022-12-21T14:19:01 | 2022-12-21T14:19:01 | 40,479,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,040 | py | #!/usr/bin/env python3
import argparse
import datetime
import datetime
import sys
import urllib.request
import os
# Google Cloud libraries
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from google.oauth2.credentia... | [
"rashley@gmail.com"
] | rashley@gmail.com |
2c064571b166c16d2e2162eb550f4acddc9755a2 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_BoxCox/trend_Lag1Trend/cycle_0/ar_12/test_artificial_128_BoxCox_Lag1Trend_0_12_100.py | 69be51d0ac616d981af16e76ed8ffa0a59aeca1f | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 263 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 0, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
5cbd9b759b68b1c777c5a8035820707a318f8074 | dd449ad8388847779b265f49f2339c9681376c60 | /rl-lapan-book/chap6_dqn_pong/model.py | 12c593bc41d537299d8fb3ee85ce5990e5c10f0d | [] | no_license | whoji/training-ground | 478d76a8c274050eb910b28729ca1d1cdb47eae9 | b107cc47c4a04bb8868c410ab207bacab5a86e4c | refs/heads/master | 2020-05-16T16:13:26.788156 | 2019-12-04T01:56:01 | 2019-12-04T01:56:01 | 183,154,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | import torch
import torch.nn as nn
import numpy as np
class DQN(nn.Module):
"""docstring for DQN"""
def __init__(self, input_shape, n_actions):
"""assumes input_shape is of CHW shape (4,84,84)"""
super(DQN, self).__init__()
self.conv=nn.Sequential(
nn.Conv2d(in_channels=inp... | [
"minli1985@gmail.com"
] | minli1985@gmail.com |
e1ac6ff44e858e2564178ff72f096851718b1ac2 | 7f8b266b1b175f62a5d9608a0028f2265f294233 | /guild/commands/operations.py | 0e51d3f6f25d165f93eb42a4dc169732d4f1fe81 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | jukiewiczm/guildai | 7d1cd4e324e1f2bd70a90156e254e9e4d00c6e4c | 478cc29cb102a8bd0bed693ce9626fe4949257a2 | refs/heads/master | 2020-10-01T22:47:39.595549 | 2019-12-12T15:38:06 | 2019-12-12T15:38:06 | 227,639,644 | 0 | 0 | Apache-2.0 | 2019-12-12T15:37:39 | 2019-12-12T15:37:38 | null | UTF-8 | Python | false | false | 1,875 | py | # Copyright 2017-2019 TensorHub, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"g@rre.tt"
] | g@rre.tt |
e43043403f1e2a603fa3fac290b06c7c435e8f11 | fa0ee3daeed8edb10e98b6772fa39923243d53c5 | /algorithms/hard_all_pairs_that_sum_to_number.py | 56976bc27cc4888ec8cdbc2a9df5029dab6ab0f5 | [
"Apache-2.0"
] | permissive | ppinko/python_exercises | 8a93664b6a8fc75d1088d67cd8e5f5ba3f39364a | d4ef2ddb28834ef49ac8060ce16f6b1446b6713e | refs/heads/master | 2022-07-21T13:39:39.694515 | 2022-07-06T18:46:49 | 2022-07-06T18:46:49 | 254,176,710 | 1 | 0 | null | 2020-04-08T19:13:45 | 2020-04-08T19:05:39 | Python | UTF-8 | Python | false | false | 836 | py | """
https://edabit.com/challenge/8LZdBwmpBiLJ5Sobt
"""
def all_pairs(lst: list, num: int) -> list:
lst.sort()
ans = []
for i, v in enumerate(lst[:-1]):
for j in lst[i+1:]:
if v + j == num:
ans.append([v, j])
return ans
assert all_pairs([2, 4, 5, 3], 7) == [[2, 5]... | [
"p.pinkowicz@gmail.com"
] | p.pinkowicz@gmail.com |
699cfc5f42f72a4fd6018d7cf3cb617c55697fac | 953fc3064e82231d1c5b7fb3be6563113e3c1483 | /examples/dfa/authentication/create_dfa_client_without_yaml.py | 3cc547e12209647629f680aa25f4f657827a493f | [
"Apache-2.0"
] | permissive | hshore29/googleads-python-lib | 08a3dc093b76b16c7b84026360e89793a1a5e4c9 | 14de75b8400aa4c1c0920d8edda6bb6e46b858cc | refs/heads/master | 2021-01-15T12:50:43.278667 | 2014-03-20T14:47:01 | 2014-03-20T14:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | #!/usr/bin/python
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"api.jdilallo@gmail.com"
] | api.jdilallo@gmail.com |
c02e1231cabab17604214697637c98b264de8add | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_396/ch54_2019_09_23_14_18_10_668876.py | 7c95795017287e26da8a69a6e6f64707dd17edcc | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | def junta_nome_sobrenome(x, y):
i = 0
lis = []
while i < len(x):
lis.append(x[i] + " " + y[i])
return lis | [
"you@example.com"
] | you@example.com |
0c3fd2bef7b4cd1a6f18d706cdf63c1576257b8d | 6c8a590bac5d39d95034127f0f47a84e71d298a7 | /game_element.py | e3dcefbe2fc5a99445c3f617772db566b601c6ac | [] | no_license | UO-CIS211/FiveTwelve | 3f57c40d401588f89370676679dd03f5ce35f42e | eca5d58e4c09189b873a6ce04fe109b6ac711a2e | refs/heads/master | 2022-01-12T18:58:30.185373 | 2022-01-11T23:11:09 | 2022-01-11T23:11:09 | 117,500,226 | 1 | 13 | null | 2020-10-01T17:16:05 | 2018-01-15T05:16:11 | Python | UTF-8 | Python | false | false | 2,087 | py | """
Board game element: Relates the model component
of a grid game to the view component.
Neither the game logic (in the model component)
nor the display logic (n the view component) is
defined here; this is the notification logic
for sending events from the model component
to the view component.
The 'model' componen... | [
"michal.young@gmail.com"
] | michal.young@gmail.com |
116f54ce54861411c14fc2fd70b69e2b5b4e04c4 | 6d4f60b000d3b00561c439c5faceaa9931e20a9d | /fast_arrow/resources/option_order.py | de9ab50509c11638544e980be5ecac9f567d2ab9 | [
"MIT"
] | permissive | Jiacli/fast_arrow | 25485c6712e3e2f5e8dea7de7cc40e932d372381 | beb95fc402fca12670a6c39cdb4abe524937d321 | refs/heads/master | 2020-03-28T03:12:59.549434 | 2018-09-06T02:45:37 | 2018-09-06T02:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | from fast_arrow import util
from fast_arrow.resources.option import Option
class OptionOrder(object):
@classmethod
def all(cls, client):
"""
fetch all option positions
"""
url = 'https://api.robinhood.com/options/orders/'
data = client.get(url)
results = data["... | [
"westonplatter@gmail.com"
] | westonplatter@gmail.com |
aba91413f1139d347b5032c4f60dae2b8e713d84 | 2ac77ba91b0972516aea272d24faad85a53e229a | /ProfileReviews.py | e31c1ed97473faafbc7c570b420f4a925172d989 | [
"MIT"
] | permissive | Blue-IT-Marketing/cloud-jobs | f98cdb80f61a1b85230025696dab432b423f7c21 | 99f577fe963aeaaaad6a6c6139563648a1fb3b03 | refs/heads/master | 2020-03-18T19:28:22.313288 | 2019-02-27T07:28:39 | 2019-02-27T07:28:39 | 135,156,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,548 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Justice Ndou'
__website__ = 'http://jobcloud.freelancing-seo.com/'
__email__ = 'justice@freelancing-seo.com'
# Copyright 2014 Freelancing Solutions.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | [
"mobiusndou@gmail.com"
] | mobiusndou@gmail.com |
0651a0df3619054f72a838d5ca3e1adf32cbab8d | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /1.5.0/examples/user_interfaces/embedding_in_qt5.py | 6f35d7745d3b7dae338f30a786f1cece1338a65e | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 4,328 | py | #!/usr/bin/env python
# embedding_in_qt5.py --- Simple Qt5 application embedding matplotlib canvases
#
# Copyright (C) 2005 Florent Rougon
# 2006 Darren Dale
# 2015 Jens H Nielsen
#
# This file is an example program for matplotlib. It may be used and
# modified with no restriction; raw copi... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
6db2f2bffdf1414130a745c38c695d1487cb7613 | 05ea9d119263eca2292e23fa2151b7b4cabd8de6 | /setup.py | 188200af449f4008c216f639b97207689b00c9c8 | [
"MIT"
] | permissive | BugBreaker/smote_variants | 55f5f650abac163a1dbebf71adb96ce13060e6da | dd937a5c827580912ec81d3e209ae96074623301 | refs/heads/master | 2020-04-16T21:26:05.344604 | 2019-01-01T16:36:23 | 2019-01-01T16:36:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | import os
import codecs
from setuptools import setup
def readme():
with codecs.open('README.rst', encoding='utf-8-sig') as f:
return f.read()
version_file= os.path.join('smote_variants', '_version.py')
with open(version_file) as f:
exec(f.read())
DISTNAME= 'smote_variants'
DESCRIPTION= 'Variants of ... | [
"gyuriofkovacs@gmail.com"
] | gyuriofkovacs@gmail.com |
233365653559692108c043142b29b488ee4196ec | 47b028ec01008ed901f2fd7779abe47f52d458fe | /tests/test_api.py | 279dc71cb898c8d6e493c54c58b52be80ebc4953 | [
"MIT"
] | permissive | avara1986/gozokia | d6a5c2214f96c666283f129b96d22ce78291b32e | 03da46359c4a97a35b8f94686cccec7fc9b438cd | refs/heads/master | 2020-12-24T06:24:06.031752 | 2016-10-12T10:27:12 | 2016-10-12T10:27:12 | 38,059,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # encoding: utf-8
import unittest
import os
from gozokia import Gozokia
from gozokia.rules import GreetingRaise, GreetingObjetive
os.environ.setdefault("GOZOKIA_SETTINGS_MODULE", "tests.settings_tests")
class ApiTest(unittest.TestCase):
def test_foo(self):
goz = Gozokia()
goz.initialize()
... | [
"a.vara.1986@gmail.com"
] | a.vara.1986@gmail.com |
abb4fca4705ef6f801a4ae2c4b73ea567e65411f | c7f1c021d88e215dccb0bbb10db02293cd8528b8 | /plugins/agent2/agent2/__init__.py | 06fa9186ad1d3376ceff7add1d40b3ac454ed2dd | [] | no_license | manuelnaranjo/OpenProximity | d11e61418b2249d210f0bbf5adbc6ccc38cd2773 | f93c8009e40ce60c65090370adf0427e944d375b | refs/heads/master | 2023-08-31T11:17:28.033936 | 2011-11-13T03:27:10 | 2011-11-13T03:27:10 | 1,778,676 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | # OpenProximity2.0 is a proximity marketing OpenSource system.
# Copyright (C) 2009,2008 Naranjo Manuel Francisco <manuel@aircable.net>
#
# 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 version 2... | [
"manuel@aircable.net"
] | manuel@aircable.net |
1d0bddf3aee9a3f85fd686500670596d63d534b2 | 71a4a5ff8dac94da32769710ed7734b6d93013de | /durgajobs/testapp/admin.py | 22abbfb07dee953ad05bbe9e0aeebfcf61c1e93b | [] | no_license | djangoprojects5pm/durga-jobs-project | fc6f114ac37276bda1567470831a5ff464432254 | 7cd967a2114a3bdd3038931a1ee15a7fa2367911 | refs/heads/master | 2022-11-22T07:39:08.747916 | 2020-07-20T13:44:04 | 2020-07-20T13:44:04 | 281,136,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from django.contrib import admin
from testapp.models import hydjobs,blorejobs,chennaijobs,punejobs
# Register your models here.
class hydjobsAdmin(admin.ModelAdmin):
list_display=['date','company','title','eligibility','address','email','phonenumber']
class blorejobsAdmin(admin.ModelAdmin):
list_display=['dat... | [
"you@example.com"
] | you@example.com |
53dcc50f07e28eea9f33d772461b6d58768e8783 | 409ce560793c070ef4211b99c5a4a5316a258c4f | /pylith/topology/JacobianViewer.py | b8265fba4e31aecf6a5a07b3d37f9c57c2e909a2 | [
"MIT"
] | permissive | calum-chamberlain/pylith | bb718bfb4305f03b45d42348e5d4fa5ed5f4a918 | 8712c39ade53c1cc5ac0e671e4296cee278c1dcf | refs/heads/master | 2020-12-06T17:15:08.638337 | 2016-05-15T20:30:28 | 2016-05-15T20:30:28 | 46,401,744 | 0 | 0 | null | 2016-05-15T20:30:29 | 2015-11-18T07:09:12 | C++ | UTF-8 | Python | false | false | 3,525 | py | #!/usr/bin/env python
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
02026e3cc3bc04d240c802281453151f5a171cb6 | 4a7e359bb329e3df757c2b6c812512c24ec615eb | /zxserver/migrations/0013_zxcomments_active.py | 849c33e5850883aaea0e8f8950c9b6f5450d2b3a | [] | no_license | AlexBlueCrow/farmbackend | 7768e84edafea230de713241db6bb566f7b8407e | 311b25543d312a6b9d1b68905c15a6785a0b5097 | refs/heads/master | 2021-08-20T04:47:28.018997 | 2020-08-12T16:23:49 | 2020-08-12T16:23:49 | 214,458,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.2.5 on 2020-03-25 06:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zxserver', '0012_auto_20200324_0957'),
]
operations = [
migrations.AddField(
model_name='zxcomments',
name='active',... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
ec9d306935b9d6e779748f27758791152ace2ff5 | 581b8d28255229ce8c08c679ad1f169ec33dccc8 | /tests/test_adjdictbqm.py | bebba45ad99b789da7e46a03dd1e0748b981877f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | arcondello/dimod | 6e3381299dd08e8aa01af2b95350ef92a9504ef9 | 9af460dc0f9028a1292cf786063c278cae3c0c80 | refs/heads/master | 2023-08-20T18:57:06.730554 | 2020-10-08T02:56:36 | 2020-10-08T02:56:36 | 115,138,524 | 1 | 0 | Apache-2.0 | 2022-04-21T16:23:24 | 2017-12-22T17:55:46 | Python | UTF-8 | Python | false | false | 1,444 | py | # Copyright 2019 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"arcondello@gmail.com"
] | arcondello@gmail.com |
5056b4eb34025036efed2f77739e4022a917041f | 4ca8382d8e0bc00f4cd440be63d7d64fbbd033c0 | /test_site/mysite/news/migrations/0006_auto_20210608_1502.py | c4c425c07c24e3f981fdecb4725908c322ffb1cd | [] | no_license | KarinaYatskevich/python | 8ea0b8273399a313f161f5b4ce5e62e421109be1 | b889532fe6dbf7f953b250c923584e910bc70b21 | refs/heads/master | 2023-08-28T14:52:27.298276 | 2021-10-22T19:27:29 | 2021-10-22T19:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # Generated by Django 3.2.3 on 2021-06-08 12:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0005_alter_news_category'),
]
operations = [
migrations.RenameField(
model_name='news',
old_name='content',
... | [
"karinav19817@gmail.com"
] | karinav19817@gmail.com |
940287a3c1503fd4beefd16acea158f5422f72d3 | 633ab8880dc367feefdb6ef565ed0e70a4094bc1 | /10001-11000/10989.py | dac6c76fc02397c18eca1041d39086789a6943ec | [] | no_license | winston1214/baekjoon | 2e9740ee2824d7777f6e64d50087b5c040baf2c6 | 20125255cd5b359023a6297f3761b2db1057d67d | refs/heads/master | 2023-03-04T09:07:27.688072 | 2021-02-16T13:51:49 | 2021-02-16T13:51:49 | 284,832,623 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # @Author YoungMinKim
# baekjoon
import sys
N=int(sys.stdin.readline())
result = [0]*10001
for _ in range(N):
a=int(sys.stdin.readline())
result[a] = result[a]+1
for i in range(10001):
if result[i] != 0:
for j in range(result[i]):
print(i) | [
"winston1214@naver.com"
] | winston1214@naver.com |
8807631112c2be71c1b5d45755803ffd6af7db0f | 8606e128484a4cc1fc4e7b406817a7ea96b55c8b | /src/run.py | fbb1ff4541fb7f17ac4c7648ff7c86c21ecf6c22 | [
"CC0-1.0"
] | permissive | ytyaru/Python.PySimpleGuiWeb.SetUp.20210618110027 | a3eba2e262cbf40a3e26e854c849e604244aeb99 | 9b5163d7eb07ff8efae5de91bd21d02a87455a39 | refs/heads/master | 2023-06-07T21:16:56.862107 | 2021-06-18T06:38:15 | 2021-06-18T06:38:15 | 378,022,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | #!/usr/bin/env python3
# coding: utf8
import PySimpleGUIWeb as sg
print(dir(sg))
print(sg.theme_list())
sg.theme('DarkGreen')
layout = [
[sg.Text('PySimpleGUIWeb テスト')],
[sg.Text('名前', size=(15, 1)), sg.InputText('山田太郎')],
[sg.Text('年齢', size=(15, 1)), sg.Spin(None, initial_value=20)],
[sg.Text('趣味', ... | [
"yttry0@gmail.com"
] | yttry0@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.