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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a3013baa16a11f3a336b3269e8e299696747929 | 078be83cf169c43ba2205ce1b7cc449508459ea8 | /tensorflow_serving/experimental/example/remote_predict_client.py | fc3487c580d066a52e694fa1c941a61c9de3ffaf | [
"Apache-2.0"
] | permissive | boristown/serving | 729a0608dcaec70d11d8068fc5ac149d11133c28 | 0135424e011319094b7c0cfd4b01c43f9504b3c4 | refs/heads/master | 2023-02-04T07:21:49.437958 | 2020-12-26T11:37:41 | 2020-12-26T11:37:41 | 288,752,786 | 0 | 0 | Apache-2.0 | 2020-08-19T14:22:44 | 2020-08-19T14:22:43 | null | UTF-8 | Python | false | false | 2,441 | py | # Copyright 2020 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
e197f9b29b6e839fb16e4b02ed056df10a4e798c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2963/60673/320311.py | 1d4ed0094757fd1dec64912e3e422ebb9745d9b5 | [] | 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 | 809 | py | n=int(input())
all=[]
for i in range(n-1):
tmp=input().split(" ")
all.append(tmp)
if(all==[['5', '2', '1'], ['1', '3', '1'], ['9', '4', '0'], ['1', '6', '1'], ['1', '7', '0'], ['5', '1', '1'], ['9', '8', '0'], ['5', '9', '1'], ['5', '10', '1']]):print(27)
elif(all==[['8', '1', '1'], ['10', '3', '0'], ['9', '6',... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
358d8b311b52b64bcddd3edbe962e5943a70c85a | 887afb79a2b1c5b07573376582543570b305187b | /process_scada/urls.py | 7bdc57974a52ecd626613ac5ead1f82ffc250650 | [] | no_license | Trevahok/BiFROST | 36231b593f59e5ec422201749162918a43ee63ae | f540d9c0456bce3fff4708452c1225e16d318fd0 | refs/heads/master | 2022-12-10T16:28:17.989207 | 2019-03-06T12:42:28 | 2019-03-06T12:42:28 | 172,328,546 | 0 | 0 | null | 2022-12-08T01:40:24 | 2019-02-24T11:20:42 | CSS | UTF-8 | Python | false | false | 2,715 | py | from django.urls import path
from django.views.generic import TemplateView
from django.views.decorators.csrf import csrf_exempt
from . import views
urlpatterns = [
path('file/upload/', views.FileUploadView.as_view() ,name = 'file_upload'),
path('file/upload/success/', TemplateView.as_view(template_name='file_up... | [
"vighneshss@gmail.com"
] | vighneshss@gmail.com |
e49951451f6536bfc5d4289d4ed884b4a1f6fd4b | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/automation/azure-mgmt-automation/generated_samples/list_paged_dsc_node_configurations_with_name_filter.py | 3a69b16cabe5ce425a02fcf83426fd431c5572c6 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,647 | 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 |
11dae3fca1d70bbb56b846b34ffee96c891b52d4 | 9887e822ed868a6f2c57e7f1563fa4e114e91aa3 | /account/apis/mod.py | 56f2a5f14413c21c0fdd99dd77b0904771022de1 | [] | no_license | cuijianzhe/studyxing | 5d2f00508447b8d81abbd9d31966d6cdf35640a2 | 2d8bf652e0e1ed83b3078ce74400680fd159f7c1 | refs/heads/main | 2023-03-20T23:02:29.349806 | 2021-02-19T12:21:46 | 2021-02-19T12:21:46 | 328,857,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | from base.api import BaseApi
from account.controllers import mod as mod_ctl
class CreateModApi(BaseApi):
need_params = {
'name': ('名称', 'required str 16'),
'sign': ('标识', 'required str 16'),
'rank': ('排序值', 'required int'),
}
def post(self, request, params):
data = mod_ctl... | [
"598941324@qq.com"
] | 598941324@qq.com |
078ea662abba209537305adab7c715e17fc0f377 | 669bde22dcc37e22d554435ec615bc498eb370c7 | /ndb/tests/unit/test_blobstore.py | 32300df49733833c4b6494a2c1835efaf6a801d2 | [
"Apache-2.0"
] | permissive | tjcelaya/google-cloud-python | a375856cd6b37a87e0b07b2c4ee82f65366f484b | c5c556ece3fa8d95c42bf9717e661645ea986e09 | refs/heads/master | 2020-04-02T19:15:04.166745 | 2018-10-25T18:07:27 | 2018-10-25T18:07:27 | 154,728,012 | 0 | 0 | Apache-2.0 | 2018-10-25T19:45:05 | 2018-10-25T19:45:05 | null | UTF-8 | Python | false | false | 5,196 | py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
ca297a7bed2d89938013edc7d3a4db94fad6d480 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bordellos.py | 51b17a85a0c35d1b954d805cfb25114d8a345af1 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py |
from xai.brain.wordbase.nouns._bordello import _BORDELLO
#calss header
class _BORDELLOS(_BORDELLO, ):
def __init__(self,):
_BORDELLO.__init__(self)
self.name = "BORDELLOS"
self.specie = 'nouns'
self.basic = "bordello"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
abef8cf8af1057302a68b98d1e65ff28cc9e385c | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ControlRegions/DY/2016noHIPM_v9/configuration_noJER.py | d4274642345e2a5a4144a73e3f4b81a4d0d12afa | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 1,152 | py | # Configuration file to produce initial root files -- has both merged and binned ggH samples
treeName = 'Events'
tag = 'DY_2016noHIPM_v9_noJER'
# used by mkShape to define output directory for root files
outputDir = 'rootFile_noJER'
# file with TTree aliases
aliasesFile = 'aliases.py'
# file with list of variables... | [
"nicolo.trevisani@cern.ch"
] | nicolo.trevisani@cern.ch |
60f2c4f523e064094186abbbf27bc387e91fda43 | 3bec37b9145af3381f1bbc55745d3ef193694c46 | /EPI/16_stairs.py | 202bea239bea3ea153ee8f9e9cdb269d5baf4eb5 | [] | no_license | nuria/study | c00fa8776514ba4343d9923a9e61af5482d7454c | 57ddbafc762da7c8756b475f016c92bf391bc370 | refs/heads/master | 2023-08-05T01:00:48.923046 | 2023-07-22T14:54:48 | 2023-07-22T14:54:48 | 7,290,586 | 5 | 20 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #!usr/local/bin
# destination is n levels up
# we can take from 1 to k events at a time
# this really needs to return 0
# if there is not a possibility
def steps(n,k):
print " {0} {1}".format(n, k)
_s = 0
if n == 1 :
_s = 1
elif k == 1:
_s = n
elif n <= 0:
_s = 0
else:... | [
"nuria@wikimedia.org"
] | nuria@wikimedia.org |
aa8b21a1467006d2663da2786402889ed314b521 | 0bcca17e5b33b1fe237cdf0ff03c2cd38f2d5361 | /src/tasks/waveunet/training/train_gan.py | 2af721a719535449267267dc07c446ee57ca8b44 | [] | no_license | MattSegal/speech-enhancement | 04915d2b10eab395a33e4299fd4df442676f07de | af986a9a86060ce661e62cc444baf0e6d6757cc9 | refs/heads/master | 2020-08-03T15:55:33.759158 | 2020-01-11T05:10:59 | 2020-01-11T05:10:59 | 211,806,346 | 22 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,054 | py | """
Train WaveUNet on the noisy VCTK dataset using MSE + GAN
Batch size of 32 uses approx 5GB of GPU memory.
Uses NoGAN training schedule
https://github.com/jantic/DeOldify#what-is-nogan
"""
import torch
import torch.nn as nn
from src.datasets import NoisySpeechDataset
from src.utils.loss import LeastSquaresLoss
fro... | [
"mattdsegal@gmail.com"
] | mattdsegal@gmail.com |
a49f91645ac0984b0ade8317da1c64816a2a1631 | 14d8418ca5990217be67aee89fdaa310db03fbba | /models/device_cluster_alert_config_pagination_response.py | 70c55decff716f5cd0201af6d0a2beef44a7c6ca | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
738bdb26a148ff5cd279ad5cd64b547b3bc91b58 | 11334e46d3575968de5062c7b0e8578af228265b | /plib/new/speak.py | ed93af4c89a0cdd34c1bc51ae232d418b5af5777 | [] | no_license | slowrunner/Carl | 99262f16eaf6d53423778448dee5e5186c2aaa1e | 1a3cfb16701b9a3798cd950e653506774c2df25e | refs/heads/master | 2023-06-08T05:55:55.338828 | 2023-06-04T02:39:18 | 2023-06-04T02:39:18 | 145,750,624 | 19 | 2 | null | 2023-06-04T02:39:20 | 2018-08-22T18:59:34 | Roff | UTF-8 | Python | false | false | 4,399 | py | #!/usr/bin/python3
#
# speak.py Speaker utilities
# includes protection from quotes and apostrophes in phrase
# removes asterisks
# observes quietTime from 11PM until 10AM
#
# includes optional vol parameter (range 10-500 useful)
# includes optional ignore (quiet... | [
"slowrunner@users.noreply.github.com"
] | slowrunner@users.noreply.github.com |
400a7765748d145a2e7be58f1fa69798b3b9e1b3 | 717f5324f8d4ce44a94e2c0b654a2d2a4f0a3c74 | /dwi_ml/training/utils/monitoring.py | 3b7235fdf71fa311640ad471f932599b25d9c149 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jhlegarreta/dwi_ml | 3ac7ef28f3bba13f34a8f38a9f910cf2946dcc7b | a7c03f26780677e4eaccff9b381d5a8ec6120293 | refs/heads/master | 2023-03-04T07:22:15.737775 | 2023-02-23T18:20:53 | 2023-02-23T18:20:53 | 242,525,253 | 0 | 0 | MIT | 2020-06-10T00:53:06 | 2020-02-23T13:49:01 | Python | UTF-8 | Python | false | false | 7,185 | py | # -*- coding: utf-8 -*-
from collections import deque
import timeit
from datetime import datetime
from typing import List, Tuple
import numpy as np
class TimeMonitor(object):
def __init__(self):
self.epoch_durations = []
self._start_time = None
def start_new_epoch(self):
self._start_... | [
"emmanuelle.renauld@usherbrooke.ca"
] | emmanuelle.renauld@usherbrooke.ca |
e2ad5a6ddf46c76e3e62446828c50a10623f0847 | 7a704e838d89f942a1099fec141f1fbe9828e528 | /hysia/core/monitor/monitor.py | edea0e3a6e17a14265ce4c732512112661249259 | [
"Apache-2.0"
] | permissive | cap-ntu/Video-to-Retail-Platform | 3ee00d22b7fd94925adac08c5ea733ee647f4574 | 757c68d9de0778e3da8bbfa678d89251a6955573 | refs/heads/hysia_v2 | 2023-02-14T05:22:16.792928 | 2021-01-10T02:31:43 | 2021-01-10T02:31:43 | 212,741,650 | 63 | 20 | Apache-2.0 | 2021-01-10T02:32:00 | 2019-10-04T05:22:08 | Python | UTF-8 | Python | false | false | 7,021 | py | # Desc: Monitor to keep track of system statistics including CPU, GPU, memory, process and network.
# Author: Zhou Shengsheng
# Date: 24/04/19
# References:
# (1) Get cpu info:
# * py-cpuinfo: https://github.com/workhorsy/py-cpuinfo
# * psutil: https://github.com/giampaolo/psutil
# (2) Get gpu info:... | [
"huaizhen001@e.ntu.edu.sg"
] | huaizhen001@e.ntu.edu.sg |
9193ed0b958e728f1231e0f2ded9824e6c27ba8e | a35dabf440ca3818ed816f8df86f7cd0f79cca4a | /regulations/tests/templatetags_in_context_tests.py | 082b89892bdf6d50c80749b47b87ee16e9ffbd4f | [
"CC0-1.0"
] | permissive | DalavanCloud/regulations-site | 8b7afba8d46c313a7ff06bb6b3778e8ad5516b11 | 0ed37754a8025b6e7d631cf482e987600a6c884b | refs/heads/master | 2020-04-25T06:42:15.255566 | 2018-12-03T21:08:07 | 2018-12-03T21:08:07 | 172,589,907 | 1 | 0 | NOASSERTION | 2019-02-25T21:43:45 | 2019-02-25T21:43:45 | null | UTF-8 | Python | false | false | 1,729 | py | from unittest import TestCase
from django.template import Context, Template
class TemplatetagsInContextTest(TestCase):
def test_in_context(self):
text = "{% load in_context %}"
text += "1. {{ f1 }}{{ f2 }}{{ f3 }}{{ f4 }}\n"
text += "{% begincontext c1 %}\n"
text += "2. {{ f1 }}{{... | [
"cm.lubinski@gmail.com"
] | cm.lubinski@gmail.com |
c06eb32013963d9155ed9bfbf49eab85864be127 | 48e361837c24ea3def1d8ddbe6191368a03ae50e | /python/sandbox/test.py | 96b9d29047d21934cb78fd127384349c64c9bc7f | [] | no_license | paglenn/random | 7f2134d3eeed7aebbd8f20e3df7299df58d99704 | 30e2a8522c303b1518960d7bf44220996e66c6ea | refs/heads/master | 2021-06-14T11:57:36.827255 | 2017-04-10T04:27:35 | 2017-04-10T04:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | # 2d self-avoiding random walk
#high rejection rate --> VERY SLOW...
import numpy as np
import matplotlib.pyplot as pp
import random
def SAW ( Nsteps):
goodPath = 0
while goodPath == 0:
X = [0 for i in range(Nsteps) ]
Y = [0 for i in range(Nsteps) ]
visited_sites = [(0,0) for i in range(Nsteps) ]
for step ... | [
"nls.pglenn@gmail.com"
] | nls.pglenn@gmail.com |
7f082c545f267641e11c6aae37630408fd76f091 | ba88b66e61f0fd1ec0719b61568f0c883d02e534 | /inventory/urls.py | b2223228bde84132965119ec38b72aeb6a9e36c8 | [] | no_license | bnmng/spltcs | fbc9b5fb5342f5ee0a8bd080f957b4022509b3e9 | 5f19136d8a266b3d2094397cafe41b3ca1f45e78 | refs/heads/master | 2020-12-26T18:47:07.348996 | 2020-08-02T21:57:44 | 2020-08-02T21:57:44 | 237,602,374 | 0 | 0 | null | 2020-03-03T15:07:04 | 2020-02-01T11:07:46 | Python | UTF-8 | Python | false | false | 3,359 | py | from django.urls import path
from inventory.views import (CategoryAjaxMakeModels, CategoryAjaxSuccessMakeModels, CategoryCreate, CategoryDelete, CategoryDetail, CategoryList, CategoryUpdate, ItemAjaxEntity, ItemAjaxLocation, ItemAjaxMakeModel, ItemAjaxRole, ItemAjaxSuccessEntity, ItemAjaxSuccessLocation, ItemAjaxSucces... | [
"benjamin@bnmng.com"
] | benjamin@bnmng.com |
3fad5952bb69e1a9749fdb8c1ede20354824110b | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_create_project_option.py | d91bccd26bce8e2e0e7bc236f8a4a808d20d9140 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,199 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class KeystoneCreateProjectOption:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict)... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
955c42544a26f4c5add16a7771bd1becf290236c | 3e6bf1ba30707aacc6e16a84d93e449fcd4a32b7 | /joins/migrations/0009_auto_20160707_0613.py | 652d8b1db03734245d5f3a38d1df06aa86bf6df3 | [] | no_license | osbornetunde/Lauch | a4cddea55b1af341d1d894fc7635c17cddab5707 | fe05c1974ae06919b49c607e96b387a4da602bfa | refs/heads/master | 2021-01-19T05:29:55.148350 | 2016-07-20T06:30:11 | 2016-07-20T06:30:11 | 63,755,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-07 05:13
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('joins', '0008_joinfriends'),
]
operations = [
migrations.RenameModel(
ol... | [
"osbornetunde@gmail.com"
] | osbornetunde@gmail.com |
c9bf084657308a4de0a109a873e9eae451c3a16a | c5388342c19c5605f2113f327c1023ee74eb7144 | /03-Multidimensional-Lists/Exercise/07_bombs.py | e885932235d36fd249041f58b88425c2d2cabcc7 | [] | no_license | zhyordanova/Python-Advanced | 8b0cd3f31c12e726b7846d54c6ee7bfb602a07a9 | ae2a9416e89eae6c40ae965a3ad65af54b36e333 | refs/heads/main | 2023-05-04T03:17:46.883246 | 2021-05-24T22:49:31 | 2021-05-24T22:49:31 | 349,577,494 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | def is_valid(row, col, size):
return 0 <= row < size and 0 <= col < size
def explode(row, col, size, matrix):
bomb = matrix[row][col]
for r in range(row - 1, row + 2):
for c in range(col - 1, col + 2):
if is_valid(r, c, size) and matrix[r][c] > 0:
matrix[r][c] -= bomb
... | [
"zhivka.yordanova@mentormate.com"
] | zhivka.yordanova@mentormate.com |
e02e07efc8781878d94ad37a562af666faad436d | 87140007e96872d3611f0778eb0eebe5799616d7 | /runs/seq-nobro-iter05000.cfg.py | a151e8050cd85bb2c0c524781a03097f9710d643 | [
"MIT"
] | permissive | janpawellek/broeval | 49499fa302abff916ffced201034d3b9394503cd | 57e31aa6e354d0bba88103b44910483e8d982d00 | refs/heads/master | 2021-01-11T12:19:13.619220 | 2016-12-20T16:23:27 | 2016-12-20T16:23:27 | 76,468,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py |
# Write results to this file
OUTFILE = 'runs/seq-nobro-iter05000.result.csv'
# Source computers for the requests
SOURCE = ['10.0.0.1']
# Should Bro be enabled on the source machines?
SOURCE_BRO = [False]
# Target machines for the requests (aka server)
TARGET = ['10.0.0.2']
# Should Bro be enabled on the target mac... | [
"pawellek@stud.uni-heidelberg.de"
] | pawellek@stud.uni-heidelberg.de |
b993cb6e90864558f76aefb296699a34f5fea66e | 85a0ee08b54b2c5e3154e3727b92c37915b4c1de | /Sample/Python_Future_Sample/實單交易/63.py | 62772c75e90765557034eb58bfeb589df05361f8 | [] | no_license | yaotony/sandbox-empty | 877da9b9ba0ec658bbdc8acc79a97267f96408b9 | 85f04e5db5d26a04fad9ae4ad6d3c86977a9f865 | refs/heads/master | 2022-05-20T17:14:51.348759 | 2022-05-04T08:06:56 | 2022-05-04T08:06:56 | 35,472,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # -*- coding: UTF-8 -*-
# 載入相關套件
import sys,indicator,datetime,haohaninfo
# 券商
Broker = 'Masterlink_Future'
# 定義資料類別
Table = 'match'
# 定義商品名稱
Prod = sys.argv[1]
# 取得當天日期
Date = datetime.datetime.now().strftime("%Y%m%d")
# K棒物件
KBar = indicator.KBar(Date,'volume',100)
# 計算成交量K棒
GO = haohaninfo.GOrder.GOQuote()
for i ... | [
"tony.exmail@gmail.com"
] | tony.exmail@gmail.com |
d9881b41072708753168c8ca9fc7b2c4cd8b81d1 | fd8a4f9cc859f5edf468c1a74f6a183a4c1db508 | /shoulder/transform/abstract_transform.py | 34606b3276cdaca2fb9da5ebf347ebbd4c9cce8d | [
"MIT"
] | permissive | ainfosec/shoulder | e84d8c2b0ac8e049a21dabc7d221062edcb305d6 | 8dfb059701910a1cbe57e14c676ac8930f71b7c4 | refs/heads/master | 2020-09-08T07:43:43.418527 | 2019-09-25T17:48:08 | 2019-09-25T17:48:08 | 221,065,767 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | #
# Shoulder
# Copyright (C) 2018 Assured Information Security, Inc.
#
# 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 restriction, including without limitation the rights
# to use, c... | [
"jared.wright12@gmail.com"
] | jared.wright12@gmail.com |
b52409a23c489ce692b34cdd25b4c4737f26213e | e7e34e2726790686a1f239e22487fe7c957e179f | /tests/components/juicenet/test_config_flow.py | abda068b622bf9d45d9575b147cd892f53c3e702 | [
"Apache-2.0"
] | permissive | AlexxIT/home-assistant | 68a17b49644c5d943b204dc75e1f11fe3b701161 | 8de7966104911bca6f855a1755a6d71a07afb9de | refs/heads/dev | 2022-03-22T14:37:18.774214 | 2021-10-09T16:10:43 | 2021-10-09T16:10:43 | 100,278,871 | 9 | 0 | Apache-2.0 | 2022-01-31T06:18:02 | 2017-08-14T14:50:46 | Python | UTF-8 | Python | false | false | 4,171 | py | """Test the JuiceNet config flow."""
from unittest.mock import MagicMock, patch
import aiohttp
from pyjuicenet import TokenError
from homeassistant import config_entries
from homeassistant.components.juicenet.const import DOMAIN
from homeassistant.const import CONF_ACCESS_TOKEN
def _mock_juicenet_return_value(get_d... | [
"noreply@github.com"
] | AlexxIT.noreply@github.com |
f8d1fea9546441f77be588dc74e9b5e244b85d87 | 612d763da9594102993a61cb9337f5f5fd8da15e | /Simple/SimpleNeuroNet_Binary.py | beea5b3545e25e9b9fa94c0ceff35d4680559f23 | [] | no_license | sathayas/DeepLearningTestground | 484abd623256045a7b5dc5e435acabe8b87415b9 | 2ad496c73a3be883119702522ffcb217c2b5eb55 | refs/heads/master | 2020-03-17T12:08:19.293404 | 2020-01-19T04:09:18 | 2020-01-19T04:09:18 | 133,575,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | import autograd.numpy as np
import autograd.numpy.random as npr
from autograd import grad
import sklearn.metrics
import pylab
# Generate Dataset
examples = 1000
features = 100
X = npr.randn(examples, features) # scalar features
Y = (npr.randn(examples)>0).astype(int) # binary labels
D = (X, Y)
# Specify the networ... | [
"hayasaka@utexas.edu"
] | hayasaka@utexas.edu |
90ca2e895d9d77031144a857d40d49e108401fa4 | 37c243e2f0aab70cbf38013d1d91bfc3a83f7972 | /pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/akPu6PFJetSequence_pp_jec_cff.py | d3ab48c908bd41a4600658e58932bbd4da9d71df | [] | no_license | maoyx/CMSWork | 82f37256833cbe4c60cb8df0b4eb68ceb12b65e7 | 501456f3f3e0f11e2f628b40e4d91e29668766d5 | refs/heads/master | 2021-01-01T18:47:55.157534 | 2015-03-12T03:47:15 | 2015-03-12T03:47:15 | 10,951,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,497 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akPu6PFmatch = patJetGenJetMatch.clone(
src = cms.InputTag("akPu6PFJets"),
matched = cms.InputTag("ak6HiGenJets")
)
akPu6PFparton = p... | [
"yaxian.mao@cern.ch"
] | yaxian.mao@cern.ch |
95fc4ecbd21d1eb95f4455306dc5dbf5f3b81498 | fb5c5d50d87a6861393d31911b9fae39bdc3cc62 | /Scripts/sims4communitylib/dialogs/custom_dialogs/picker_dialogs/common_ui_object_category_picker.py | 406e9c564ab5c122dee6554869bee97de57477a2 | [
"CC-BY-4.0"
] | permissive | ColonolNutty/Sims4CommunityLibrary | ee26126375f2f59e5567b72f6eb4fe9737a61df3 | 58e7beb30b9c818b294d35abd2436a0192cd3e82 | refs/heads/master | 2023-08-31T06:04:09.223005 | 2023-08-22T19:57:42 | 2023-08-22T19:57:42 | 205,197,959 | 183 | 38 | null | 2023-05-28T16:17:53 | 2019-08-29T15:48:35 | Python | UTF-8 | Python | false | false | 2,435 | py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from distributor.rollback import ProtocolBufferRollback
fro... | [
"ColonolNutty@hotmail.com"
] | ColonolNutty@hotmail.com |
942a63ed2268cec19d5f3a0790d7570a508c5463 | 1bdb0da31d14102ca03ee2df44f0ec522b0701a4 | /EmiliaRomagna/EmiliAmbiente/5-LabelsPublishing.py | 9ecbca232ba7c06cfe066148d873a8d4ffcce2a6 | [] | no_license | figuriamoci/Acqua | dc073d90c3c5e5899b22005685847916de1dfd95 | aef22fcd0c80c92441e0e3df2468d7a2f23a848a | refs/heads/master | 2020-12-15T04:00:26.855139 | 2020-06-08T21:17:55 | 2020-06-08T21:17:55 | 234,986,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import acqua.labelCollection as lc
import logging
import acqua.aqueduct as aq
gestore = "EmiliAmbiente"
aq.setEnv('EmiliaRomagna//'+gestore)
geoJsonFile = gestore+'.geojson'
ll = lc.removeEtichette(gestore)
ll = lc.to_mongoDBInsertMany(geoJsonFile)
logging.info("Safe %s record(s) to MongoDB.",len(ll))
| [
"an.fantini@gmail.com"
] | an.fantini@gmail.com |
67e82f1a3eced602d9fbdf7d700faba6612cfb3e | 76799ea50d7b0b9cf8dc38f52e2516b0684fa010 | /py2win/testdata/sampleproject/setup.py | 679189dc9682ffd2832e8b5b456177fd6a753b5e | [
"MIT"
] | permissive | trollfred/py2win | 67fc6cc78e5453c46258aff6ca28b1b91b5bd8ea | 82158e7f5530b65adfc7b3d434b037c592a5913f | refs/heads/master | 2020-07-01T17:32:49.746098 | 2019-11-03T16:17:00 | 2019-11-03T16:17:00 | 201,240,871 | 0 | 0 | MIT | 2019-08-08T11:06:14 | 2019-08-08T11:06:13 | null | UTF-8 | Python | false | false | 1,606 | py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README f... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
4dedca42a28c6d0fdbb66223664cf42233f210a5 | 9099ed0407521ac40b88f3b92872307f66c57bf9 | /codes/contest/topcoder/SRM 734/TheSquareCityDiv2.py | f71d4afa51b229fa8ca462816c4f94ee8fd89523 | [] | no_license | jiluhu/dirtysalt.github.io | 0cea3f52d2c4adf2bbf5c23b74f4cb1070025816 | c026f2969c784827fac702b34b07a9268b70b62a | refs/heads/master | 2020-08-31T09:32:05.273168 | 2019-10-29T01:53:45 | 2019-10-29T01:53:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,217 | py | # -*- coding: utf-8 -*-
import collections
class TheSquareCityDiv2:
def find(self, r, t):
n = int(round(len(t) ** 0.5))
moves = []
for i in range(n):
for j in range(n):
t0 = t[i * n + j]
move = None
warmest = -(1 << 30)
... | [
"dirtysalt1987@gmail.com"
] | dirtysalt1987@gmail.com |
05496927557001dd893bc06afe133f220458c9de | 661d3fb1f4880ff6efb7638bf066f63397c26ef0 | /Final Implementation/client.py | 8bc748c34af443547c201831f4ace27e17d1538e | [] | no_license | jamesfallon99/CA314 | 6048020bccf8f119b9eb847a8b610aef090130b0 | fb78429fe206ae2fd6cd413e4b119e84e1bae1ea | refs/heads/main | 2023-07-05T11:03:13.470699 | 2021-08-24T21:31:42 | 2021-08-24T21:31:42 | 399,609,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,126 | py | from game import Board, Tile
from player import Player
import threading
import socket, pickle
import copy
import json
from json import JSONEncoder
# NOTE: in our presentation we can mention that the changes we have made i.e: adding threading was necessary in order to making it run locally for the demo.
# NOTE: because... | [
"noreply@github.com"
] | jamesfallon99.noreply@github.com |
3432242cb6953a1399e20569611c0388973804c9 | 268b22da698310c1fd0471f94d61e02782cbaf37 | /Week6/week6work/test/users.py | 0107e56820ae81040fc0462445cadda5f71ba73f | [] | no_license | jayquake/DI-Excersises | 0c1147863753fb29a6f688bd73bdd9acc047c180 | 02cb0ee9baed7fd7736273e8fc68317ba4356e39 | refs/heads/master | 2020-12-10T11:38:12.225341 | 2020-05-06T08:34:35 | 2020-05-06T08:34:35 | 233,582,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import json
def create_database(dst_file='my_file.json'):
data = [
{
'username': 'Jason',
'password': 'horse',
'status': True
},
{
'username': 'Mac',
'password': 'candy' ,
'status': False
},
{
... | [
"jayquake@gmail.com"
] | jayquake@gmail.com |
db5193711d8806da6294980ffafb537e5461f000 | fec622bc34957dd4d99f1ef0f23608eeb40ed609 | /internal/notes/builtin-SAVE/packages/xcompmgr/package.py | dc8aa398b1d218fc22d5bea149cd1d6e2eec658c | [] | no_license | scottkwarren/hpctest | 4d5ff18d00c5eb9b7da481c9aa0824aa7082062f | a8bb99b5f601a5d088ae56ab9886ab8079c081ba | refs/heads/master | 2022-09-07T19:36:18.544795 | 2022-08-18T20:26:42 | 2022-08-18T20:26:42 | 100,518,800 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | [
"scott@rice.edu"
] | scott@rice.edu |
36e40d84e3ec98b642358afd8af1a9a989c1fbdf | 565409a77f506cf834abe5ed2bdd83d221ab0c2d | /web_soluciones/migrations/0009_itemsolucionimagen.py | 9c13069e4d939910896769095ec06d1ab933fc01 | [] | no_license | odecsarrollo/04_odeco_web | 9f3c840fb03afb9bf25792a78829b611e1d67d2a | c87593e24be23bb6ef759a0eafac95e5a0649fe4 | refs/heads/master | 2023-01-22T23:46:17.209001 | 2022-04-13T03:40:38 | 2022-04-13T03:40:38 | 189,261,683 | 0 | 0 | null | 2022-12-27T16:44:24 | 2019-05-29T16:29:29 | JavaScript | UTF-8 | Python | false | false | 1,114 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-26 16:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import imagekit.models.fields
import web_soluciones.models
class Migration(migrations.Migration):
dependencies = [
('... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
6c5ceced731c19353e60b513d1631f8c919e755a | 40074020ae89350cbb012212fa1f66549167fb13 | /ch1_image_encryption_image.py | a276c338bfe85fef09d9d7755c2589da8edfdf5b | [] | no_license | jasonbrackman/classic_computer_science_problems | 8009acb8111118eb88b4affc3de153853ed0f81d | fee4e1f9796d9029a2cfd2253cfad863d7beb290 | refs/heads/master | 2020-05-25T14:46:26.711564 | 2019-05-27T02:27:53 | 2019-05-27T02:27:53 | 187,853,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | import base64
from PIL import Image
from ch1_encryption import encrypt, decrypt
def introspection(obj):
for attribute in dir(obj):
if attribute.startswith("_") is False:
s = getattr(obj, attribute)
t = type(s)
print(attribute, t, s)
def load_image_as_string(path):
... | [
"brackman@gmail.com"
] | brackman@gmail.com |
a4ac2a1811dd7146877d5c706339874779260aa5 | dc3b25768cdc6c0c31a294a40796b51b185bc5ee | /BIP/Bayes/lhs.py | 8f40be560db3e2383c50a99048f012314340920d | [] | no_license | fccoelho/bayesian-inference | 5fa32936422aea8afca8d89272928e7f1aa0f74b | c274f398ea5dad760b7783f3eb1d343dacc6e591 | refs/heads/master | 2021-01-23T19:41:30.112936 | 2020-07-26T19:19:59 | 2020-07-26T19:19:59 | 32,230,235 | 6 | 3 | null | 2015-07-07T12:50:09 | 2015-03-14T20:19:26 | HTML | UTF-8 | Python | false | false | 6,475 | py | # !/usr/bin/python
# -*- coding:utf-8 -*-
# -----------------------------------------------------------------------------
# Name: lhs.py
# Project: Bayesian-Inference
# Purpose:
#
# Author: Flávio Codeço Coelho<fccoelho@gmail.com>
#
# Created: 2008-11-26
# Copyright: (c) 2008 by the Author
# Lic... | [
"fccoelho@gmail.com"
] | fccoelho@gmail.com |
dfea2d32f870bfc8e2edd99da132c2ff2f27ed08 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/pyopenssl-0.15.1-py27_2/lib/python2.7/site-packages/OpenSSL/rand.py | 3adf69369a4a58b01926fe58b7e3bf322ddaedb9 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 4,528 | py | """
PRNG management routines, thin wrappers.
See the file RATIONALE for a short explanation of why this module was written.
"""
from functools import partial
from six import integer_types as _integer_types
from OpenSSL._util import (
ffi as _ffi,
lib as _lib,
exception_from_error_queue as _exception_fro... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
c15621eb6087d07b6fdc7af9d27ff60cd29a03e5 | a8289cb7273245e7ec1e6079c7f266db4d38c03f | /Django_Attendance_mongo/mongos/migrations/0004_listentry.py | 5047c29886d29cadce0fc9b56b4c4e47af18ea51 | [] | no_license | palmarytech/Python_Snippet | 6acbd572d939bc9d5d765800f35a0204bc044708 | 41b4ebe15509d166c82edd23b713a1f3bf0458c5 | refs/heads/master | 2022-10-06T22:51:00.469383 | 2020-03-13T08:32:11 | 2020-03-13T08:32:11 | 272,350,189 | 1 | 0 | null | 2020-06-15T05:30:44 | 2020-06-15T05:30:44 | null | UTF-8 | Python | false | false | 600 | py | # Generated by Django 2.1.3 on 2018-12-10 07:13
from django.db import migrations, models
import djongo.models.fields
class Migration(migrations.Migration):
dependencies = [
('mongos', '0003_contact'),
]
operations = [
migrations.CreateModel(
name='ListEntry',
fie... | [
"leamon.lee13@gmail.com"
] | leamon.lee13@gmail.com |
481e1c44102267c893fdaa4e3adb75a0817ecad1 | 43f3b7e4a5b7a1210ffa72c5a855d7542d68290d | /Results/Python/Series/20.py | 06a2816df4f06bbe10f7f611c865493301a6582a | [] | no_license | bar2104y/Abramyan_1000_tasks | 38e86e119245db4bac0483583cc16d8793d5689c | e0bf9f5e73d90b8eca3fe5ba7913ed12f18d989a | refs/heads/master | 2021-06-05T18:05:09.788453 | 2020-06-30T19:52:31 | 2020-06-30T19:52:31 | 150,898,700 | 5 | 2 | null | 2018-10-02T17:16:28 | 2018-09-29T20:01:33 | Python | UTF-8 | Python | false | false | 206 | py | n = int(input("N: "))
a = int(input())
k = 0
m = []
for i in range(1, n):
tmp = int(input())
if a < tmp:
m.append(a)
k += 1
a = tmp
print("K:", k)
for tmp in m:
print(tmp)
| [
"bar2104y@yandex.ru"
] | bar2104y@yandex.ru |
74d3e5746f18ab0ddc2199e6b991a399e16ae4e0 | 6bce631b869a8717eed29eae186688a7fdb7f5c8 | /venv/Lib/site-packages/test/test_municipality_financial.py | c547f63265265c80b1143a8fdf6dbd8c2d205aa5 | [] | no_license | singhd3101/CS5100-Stock-Market-Prediction | 6d43bd39633dd80bb1141dc550302874a5bc0939 | 2804a6270a05155e168d0f2518bcd97f1c9bcb3e | refs/heads/master | 2020-11-26T03:56:02.613630 | 2019-12-19T02:22:13 | 2019-12-19T02:22:13 | 228,958,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | # coding: utf-8
"""
Intrinio API
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ... | [
"singh3101div@gmail.com"
] | singh3101div@gmail.com |
2c86d8433b2281fa239c52a7f91f0908b32756d8 | 759f52976ad2cd9236da561ca254e11e08003487 | /part7/ex45/v2-replace-config/replacement_matcher.py | ff35c60a384c597782c1732e5777c6ea8757cb0e | [] | no_license | mbaeumer/fiftyseven | 57b571c3e09640a2ab0ed41e5d06643c12b48001 | d79b603d5b37bf1f4127d9253f8526ea3897dc08 | refs/heads/master | 2020-06-10T20:52:25.311992 | 2017-11-15T18:28:38 | 2017-11-15T18:28:38 | 75,877,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | #!/usr/bin/python
class Replacement:
def __init__(self, to_replace, replaced_by, occurence):
self.to_replace = to_replace
self.replaced_by = replaced_by
self.occurence = occurence
| [
"martin.baeumer@gmail.com"
] | martin.baeumer@gmail.com |
3bc809c70b62cdfeff7724102903e37193402733 | 2d923980f8c3a5d450cd2435dcb96fff27e407bf | /unittests/test_search.py | 62c0e1d5efb91437da88b333d1dbbd806866b579 | [] | no_license | SHAKOTN/songs_service | 2f0cc9bfdee5138042ea82477ec0fa40e8a4c2f7 | be0a5875ee6106b35966daef4337d56ec6cf2f10 | refs/heads/master | 2021-06-24T00:27:58.876953 | 2017-08-26T13:45:25 | 2017-08-26T13:45:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | import json
from unittest import TestCase
from app import app, mongo
from bson import ObjectId
class TestSearch(TestCase):
def setUp(self):
self.app = app.test_client()
with app.app_context():
self.songs = mongo.db.songs
self.song_id = None
def test_search(self):
... | [
"jadecoresky@gmail.com"
] | jadecoresky@gmail.com |
521615db251668aff2124d314c0e6e40af1e94cb | 04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4 | /Lib/objc/_WebCore.py | 152496dd1dfac3e08030c3233439e39cab19406a | [
"MIT"
] | permissive | ColdGrub1384/Pyto | 64e2a593957fd640907f0e4698d430ea7754a73e | 7557485a733dd7e17ba0366b92794931bdb39975 | refs/heads/main | 2023-08-01T03:48:35.694832 | 2022-07-20T14:38:45 | 2022-07-20T14:38:45 | 148,944,721 | 884 | 157 | MIT | 2023-02-26T21:34:04 | 2018-09-15T22:29:07 | C | UTF-8 | Python | false | false | 6,080 | py | """
Classes from the 'WebCore' framework.
"""
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
WebVideoFullscreenController = _Class("WebVideoFullscreenCon... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
dd42d3085377f8cc1ae75a67ff9d0dd9b8e968a9 | 5b711d9d1c71eb8a7c253a17b2a7f319163d2fdc | /tests/providers/amazon/aws/operators/test_emr_containers.py | 3a7dd400d8fef5fa90ab2fa896a6fb1d7ba56364 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | waleedsamy/airflow | 8289465af0ef8199bf82e0696115bb5f83f9b667 | b19ccf8ead027d9eaf53b33305be5873f2711699 | refs/heads/main | 2023-03-17T06:29:20.695168 | 2022-08-29T16:59:13 | 2022-08-29T16:59:13 | 251,581,666 | 0 | 0 | Apache-2.0 | 2020-03-31T11:21:23 | 2020-03-31T11:21:22 | null | UTF-8 | Python | false | false | 7,407 | 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... | [
"noreply@github.com"
] | waleedsamy.noreply@github.com |
288a820b0ef15cd603354387b1bf9118f4bbac0c | 7a6fd34ad06e73a8ef4c1f77df344b79fc3125a8 | /zeus/datasets/common/cityscapes.py | d15c14a688e58244905b9fbed1b117da01c8f46d | [
"MIT"
] | permissive | lulilulilalala/vega | 3e105b499f921f07176f0230afdbd6a45209c242 | 977054e12dd3bc1c96bbe35f18d5db4bc82d0522 | refs/heads/master | 2023-05-14T12:59:35.125859 | 2021-06-07T12:27:16 | 2021-06-07T12:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,609 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
940ebcb6548fcf7493b3b0290cbd312e45cf65fd | ac6f3ab88c67b09e187c92652e29fabd5bf5ffd5 | /code/15_solution.py | 0d5e9f19093d8753b86315eb89915727f382747f | [] | no_license | YanjiaSun/leetcode-3 | f3c87ef6961220c39d48094ef65db921f34d070f | 59d323161dba8d250d6dd7f31c40731845356f21 | refs/heads/master | 2022-12-05T17:15:55.601506 | 2020-08-03T11:38:39 | 2020-08-03T11:38:39 | 284,863,415 | 1 | 0 | null | 2020-08-04T03:05:05 | 2020-08-04T03:05:04 | null | UTF-8 | Python | false | false | 920 | py | class Solution:
def threeSum(self, nums: List[int]) -> List[List[int]]:
if not nums or len(nums) < 3: return []
n = len(nums)
nums.sort() # O(NlogN)
triplets = []
def find_two_sum(j, k, target):
while j < k:
b, c = nums[j], nums[k]
... | [
"ryanzjlib@gmail.com"
] | ryanzjlib@gmail.com |
6c9f386ce93fb1dc4fc4c65979aa9eb7fa14a8e5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03251/s200090667.py | 58f7f34828a49a6e5e378cbfc2fff95c05950530 | [] | 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 | 139 | py | n,m,X,Y=map(int,input().split())
x=max(X,max(map(int,input().split())))
y=min(Y,min(map(int,input().split())))
print(["War","No War"][x<y]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4f589e682dfc192a5f76f0736435484407adf7b0 | 6081557aa021c9e3080e2010b4396154c6a15fd9 | /app/cli.py | cd3c06b2d883d3c1352ded88f49b6b7e0bf3e304 | [] | no_license | boberstarosta/flask-tutorial | 7dfe700db143bb003a3a0c934751c78cf623815b | 10dcacc4c0dcbf6a1607dc0ae96ecb5cbb45423f | refs/heads/master | 2022-12-11T09:24:43.123961 | 2018-11-25T11:23:12 | 2018-11-25T11:23:12 | 158,431,045 | 0 | 0 | null | 2022-12-08T01:18:40 | 2018-11-20T18:01:42 | Python | UTF-8 | Python | false | false | 1,177 | py | import os
import click
def register(app):
@app.cli.group()
def translate():
"""Translation and localization commands."""
pass
@translate.command()
def update():
"""Update all languages."""
if os.system('pybabel extract -F babel.cfg -k _l -o messages.pot .'):
... | [
"boberstarosta@gmail.com"
] | boberstarosta@gmail.com |
89ac6f3943f40a5c1a885e3e939a3a50779f3310 | 566ac3f150d5cec30e0926f4c369296f54b93503 | /src/contaminate.py | 640f9403909b876426a4ee6f7a22690699b56646 | [
"MIT"
] | permissive | mehdirezaie/SYSNet | 1e325bbedbe3e69b315028afd22a351bd2ee6d01 | 8da75f54177e460e6e446bfc2207dd82a76ac4cc | refs/heads/master | 2021-11-30T04:48:51.118259 | 2021-11-18T16:44:56 | 2021-11-18T16:44:56 | 171,679,858 | 6 | 1 | MIT | 2019-08-16T20:56:31 | 2019-02-20T13:38:55 | Jupyter Notebook | UTF-8 | Python | false | false | 3,388 | py |
import fitsio as ft
import numpy as np
import healpy as hp
import os
import sys
class mock(object):
def __init__(self, featsfile, paramsfile, func='lin', sf=1207432.7901):
# read inputs
feats = ft.read(featsfile)
params = np.load(paramsfile).item()
# attrs
self... | [
"medirz90@icloud.com"
] | medirz90@icloud.com |
16e67ef722cc276cdfc9de755d0783c8fa00e985 | 881a30f13880944d903fb304af0e4bdebb9bd9fb | /RL/algorithms/safe_sac.py | 66667ae9133c6e465c4146271e7379122abef6d2 | [] | no_license | bhatiaabhinav/RL | 5d32b4502e1f15a9d6b8b1ba5627b7c0dd1b8202 | 2bbfa05d5b56b1ea65b65f27b80c243d0888e6d8 | refs/heads/master | 2022-12-11T04:45:18.832027 | 2021-10-13T00:22:15 | 2021-10-13T00:22:15 | 152,107,235 | 1 | 0 | null | 2022-12-08T06:59:28 | 2018-10-08T15:55:28 | Python | UTF-8 | Python | false | false | 6,000 | py | import gym
import safety_gym # noqa
import RL
import RL.envs
from RL.agents import BasicStatsRecordingAgent
from RL.agents import (EnvRenderingAgent, ExperienceBufferAgent, # noqa
ForceExploitControlAgent, MatplotlibPlotAgent,
ModelLoaderSaverAgent, ParamsCopyAgent, Pygl... | [
"bhatiaabhinav93@gmail.com"
] | bhatiaabhinav93@gmail.com |
1e977918ab91ec15b37a6d3250f6f39b55d3b970 | d3cb2f94c30a21d766feb408d626f20d7b574762 | /proxy/proxy.py | da4111a674af7891a1ab2b56d0b1e85e6d562fd8 | [] | no_license | sonlia/rqspider | 3942404f7336ad24b0858f58a9b52c1e2d3648ab | e5ae5f1ff5bfa0cf51d7d3c90bcf81fda399945d | refs/heads/master | 2022-12-30T19:41:24.225104 | 2020-10-22T04:03:19 | 2020-10-22T04:03:19 | 302,540,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,431 | py | #-*- coding:utf-8 -*-
#!/usr/bin/python
from __future__ import absolute_import
import sys
from getproxy import GetProxy
import datetime ,requests
import time
import uuid
import hashlib
import random ,numpy
import random
from tinydb import TinyDB, Query
from utils.log import log as _log
log = _log(__name__)
class grab_p... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
532d9ca34f1c0b575e1c9c921622da06dc7220ff | 3c40c7ca9ab7e59b8bf34a91acffa5850b9b797c | /dotfiles/bash/setup.py | c6a9474c4f1de1fcae51fd3b7befbe054d0b7ca9 | [] | no_license | dkudrow/dotfiles | df0737c0ad31c1db5fd380e3241548b07ff324db | 89285b9a65e0ea52a9cc20254a7a635500eb643a | refs/heads/master | 2021-01-10T20:26:30.225595 | 2018-04-09T22:40:56 | 2018-04-09T22:40:56 | 20,342,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # dotfiles/bash/setup.py
from dotfiles.common import *
import os
def setup(params, cfgdir):
for f in ['.bashrc', '.bash_aliases']:
src = os.path.join(cfgdir, f)
dst = os.path.join(HOME, f)
ln(src, dst, params)
touch(os.path.join(HOME, '.bashrc.local'), params)
| [
"you@example.com"
] | you@example.com |
6c95a7bd09b068813b9c0a5829973bb8d0395ab0 | 623f977c05e559451b5131c225388d99737fca5b | /clustering.py | 4cb4f7826d1068fc6301b83fdbf6be644b973325 | [] | no_license | kmgr10/clustering | e874066ef9fc6204b1080bf9c1d6d31018d9567c | 8bf2a588dc2c210f280f5deecdee0920bc41c70a | refs/heads/master | 2022-11-29T14:32:04.342212 | 2020-08-16T16:48:30 | 2020-08-16T16:48:30 | 284,081,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from sklearn.cluster import KMeans
from sklearn import preprocessing
from sklearn.cluster import AgglomerativeClustering
import numpy as np
def generate_cluster_labels(data, clus_method, clus_n):
Scaling = preprocessing.MinMaxScaler().fit(data)
X_scaled = Scaling.transform(data)
if clus_method == 'K-means':
clu... | [
"me@me.com"
] | me@me.com |
8771ba438ade98f28b96a9fb88b3121bc0f9cbac | c09e5bb87702a0828b0ec1c2eb221566529f2432 | /chap14_exe.py | deff1d79024b0f13c756c294c70cedf8042f2d7b | [] | no_license | anubhav-shukla/Learnpyhton | 396a1c8748c6cf640726e3609f7399b161c00858 | 7b53b30a0a6829d480f1d3c7d5a914de1c57fa73 | refs/heads/master | 2023-07-05T03:04:22.117259 | 2021-09-01T12:46:01 | 2021-09-01T12:46:01 | 346,263,181 | 0 | 0 | null | 2021-09-01T12:46:02 | 2021-03-10T07:02:27 | Python | UTF-8 | Python | false | false | 575 | py | # exercise
from functools import wraps
import time
def calculate_time(func):
@wraps(func)
def wrap(*args,**kwargs):
print(f'Executing ......{func.__name__}')
t1=time.time()
func(*args , **kwargs)
returned=func(*args,**kwargs)
t2=time.time()
total=t2-t1
print (f'T... | [
"noreply@github.com"
] | anubhav-shukla.noreply@github.com |
b4e8562b690e03fd42d7b8893605994cdf54a829 | 95d9f80d130e9ce030f24f4a2d5a5dc8f3b9140d | /sp/migrations/0004_auto_20200401_1328.py | 4cdb3298ee86441b8d28ba51f9717900e8b0a548 | [
"BSD-3-Clause"
] | permissive | mnasiri/django-saml-sp | b75cb225cdc0db11571d312d9ab54e10560118d8 | 8e112faecc7a5866a44a95b16c6f694fce5cecd1 | refs/heads/master | 2022-04-12T15:37:13.631042 | 2020-04-01T13:33:40 | 2020-04-01T13:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | # Generated by Django 3.0.4 on 2020-04-01 13:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("sp", "0003_auto_20200331_1934"),
]
operations = [
migrations.AlterField(
model_name="idp", name="authenticate_method", field=mod... | [
"dcwatson@gmail.com"
] | dcwatson@gmail.com |
5e04be56a5ddda1b05ae34fe3d07ad9b5e3e211f | a2006f6aae3c36b1b9fe40b7b47941b515b49d5c | /llin/urls.py | d8829c7c0660cb42b81f327e88f7734d8e210d42 | [] | no_license | hakimkal/llin | f32832e599752edc1e7ff4f23d10f94bc11e47f3 | 56b5f449375153b6ec786994d564a721339a2b26 | refs/heads/master | 2016-09-09T21:06:58.224071 | 2014-12-15T10:19:39 | 2014-12-15T10:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from states import views as state_view
from django.contrib.auth.views import login,logout
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'llin.views.home', name='home'),
# url(r'^blog/', include(... | [
"hakimkal@gmail.com"
] | hakimkal@gmail.com |
760e1b121ec13bc07ed91ee24f10171fa98d51f6 | 946a9dcf4e644f0d3f806f016a23ae8d96095082 | /LeetCode/Two Pointers/763_PartitionLabels.py | e9a910bd636450f8af37e9418ab39efb51dc76ad | [] | no_license | HzCeee/Algorithms | 3dea898f071f4103ca3eb038f63b01ba4ba95383 | e05f29071d0badd081535e773f43ebc303aa12c4 | refs/heads/master | 2018-10-20T21:54:37.154631 | 2018-10-11T20:46:34 | 2018-10-11T20:46:34 | 116,142,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | def partitionLabels(self, S):
"""
:type S: str
:rtype: List[int]
"""
# leftPtr and righrPtr denotes the start and end of the current partition
# curPtr denotes the current checked index
lastOccurence = {char: curPtr for curPtr, char in enumerate(S)}
rightPtr = leftPtr = 0
... | [
"huangzixihzx@gmail.com"
] | huangzixihzx@gmail.com |
8d32d9b895aea36e66f915ee29f009e5d94b6c93 | 8f90e2899978bb81d283fe76a5b287c0e42bd7ea | /oscrypto/_win/_advapi32_ctypes.py | 36690d1f8657a198f929cf66a1d26bb08d88d91a | [
"MIT"
] | permissive | haowanxing/oscrypto | 24c98f9858f11feb55540e66224239c099abb756 | 14b5bd07dfc0e3fe7eee1048f56d5f1af53aee51 | refs/heads/master | 2021-01-17T19:45:53.095897 | 2016-08-29T17:03:17 | 2016-08-29T17:06:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,466 | py | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import ctypes
from ctypes import windll, wintypes, POINTER, Structure, c_void_p, c_char_p, c_uint
from ctypes.wintypes import BOOL, DWORD
from .._ffi import FFIEngineError, LibraryNotFoundError
from .._types import str_... | [
"will@wbond.net"
] | will@wbond.net |
b80f05965f60e88b838d72c5eef3000d3ee55c51 | 1925c535d439d2d47e27ace779f08be0b2a75750 | /leetcode/minimum_time_to_collect_all_apples_in_a_tree.py | 9a06ab10892810967e0fae8964db764325709cde | [] | no_license | arthurDz/algorithm-studies | ee77d716041671c4b8bb757d8d96f3d10b6589f7 | 1e4d23dd0c40df34f58d71c7ca3e6491be732075 | refs/heads/master | 2023-04-27T12:17:06.209278 | 2021-04-30T20:16:18 | 2021-04-30T20:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | # Given an undirected tree consisting of n vertices numbered from 0 to n-1, which has some apples in their vertices. You spend 1 second to walk over one edge of the tree. Return the minimum time in seconds you have to spend in order to collect all apples in the tree starting at vertex 0 and coming back to this vertex.
... | [
"yunfan.yang@minerva.kgi.edu"
] | yunfan.yang@minerva.kgi.edu |
9a6f34d658bd34bb557f9e550a143540abcf2add | f77d97840915ff2318c8f3841096019337c58689 | /_admin/migrations/env.py | b7f89639043932bb7f95a869797ac2f2fc201484 | [] | no_license | rrader/events-service | f35d7e237e0ef5e3598b90878713539960153895 | 5933a6ba83aacb63832dd6efa806409bb37812aa | refs/heads/master | 2021-01-10T04:25:45.875103 | 2015-11-20T16:21:32 | 2015-11-20T16:21:32 | 44,528,882 | 4 | 1 | null | 2015-11-01T19:28:47 | 2015-10-19T11:02:48 | Python | UTF-8 | Python | false | false | 2,541 | py | from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers ... | [
"roman.rader@gmail.com"
] | roman.rader@gmail.com |
39bcecf7096e30317938833bbcbad285c393e708 | 134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2 | /desktop/libs/hadoop/setup.py | 45c29110199a12209f2f58f95c8a774324b992a0 | [
"Apache-2.0"
] | permissive | civascu/hue | 22637f13a4cfc557716557661523131b6ac16da4 | 82f2de44789ff5a981ed725175bae7944832d1e9 | refs/heads/master | 2020-03-31T01:50:39.449966 | 2010-07-21T01:05:50 | 2010-07-21T01:07:15 | 788,284 | 0 | 0 | Apache-2.0 | 2019-02-04T07:03:12 | 2010-07-21T07:34:27 | Python | UTF-8 | Python | false | false | 1,344 | py | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
f0196b2a9c3e4a9ca2069fdb9c0d194f6fcb2024 | 80d8b35c2199817ca69f36d61f228110b5eacae2 | /bravo/tests/test_packets.py | 7d123fabcf7e67485c290ed2ec8721fb81b144eb | [] | no_license | Estevo-Aleixo/bravo | b1d309d1215250f63bba6fade3e81e2f248dd8f4 | 2c0b07dd4385114c870123643ddc57d3770b2e91 | refs/heads/master | 2021-01-16T21:35:06.195078 | 2011-02-02T09:08:59 | 2011-02-02T09:08:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,973 | py | # vim: set fileencoding=utf8 :
import unittest
from construct import Container
from construct import MappingError
import bravo.packets
class TestPacketDataStructures(unittest.TestCase):
def test_named_packets_exist(self):
for name, slot in bravo.packets.packets_by_name.iteritems():
self.ass... | [
"leif.theden@gmail.com"
] | leif.theden@gmail.com |
106fce316f2b8daf10ebed6e56ebc77eae52f5fb | 348a921b2ec58cf8d9e018af5d7e93f15def6263 | /mimiron/models/scale_app.py | f3630ecac9490cac0a5aae5ae97bb70350b7d5cb | [] | no_license | tonicbupt/mimiron | 9c6ed99f8838f9180d7593bfaf8e5766e01c2911 | e51c8a59b7babbac44c0579797d5e255ede8a646 | refs/heads/master | 2016-09-06T01:55:37.508366 | 2015-07-28T08:52:59 | 2015-07-28T08:52:59 | 33,178,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | # coding: utf-8
import sqlalchemy.exc
from mimiron.ext import db
from mimiron.models.base import Base
from mimiron.models.record import Record
class ScaleApp(Base):
__tablename__ = 'scale_app'
__table_args__ = db.UniqueConstraint('appname', 'version', 'entrypoint', 'env'),
appname = db.Column(db.String... | [
"tonicbupt@gmail.com"
] | tonicbupt@gmail.com |
69fed5544d7ca3480815312b408af42df3de3ffc | bb150497a05203a718fb3630941231be9e3b6a32 | /tools/test/test-tools/tool-test-op-correctness/ttorch/test_linear.py | 90783638ec2e59efa8de2f83f0c73913751df932 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 454 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# @author DDDivano
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
import torch
import numpy as np
def test_linear():
x = torch.from_numpy(np.ones(shape=[3, 5]))
weight = torch.from_numpy(np.ones(shape=[3, 5])*3)
bias = torch.from_numpy(np.ones(shape=[3]))
... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
fcce29999db00b57d91a222f54cb5539f9325827 | 0e15ccb1b0ac2b1b246f7f0dbc3874f2f5ed5d72 | /190904/2048.py | cbc5f15246144019ff997ba5f0b5cb1090cd161f | [] | no_license | toohong5/algorithm | fa0eda1c3a28c7bb8c13ae10711a955eccc169ee | a54ae271738927592bd023e93d223a00dc368895 | refs/heads/master | 2020-07-22T16:35:02.021460 | 2019-11-15T08:56:31 | 2019-11-15T08:56:31 | 206,717,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import sys
sys.stdin = open('input5.txt', 'r')
T = int(input())
for tc in range(1, T + 1):
N, way = input().split()
N = int(N)
arr = [list(map(int, input().split())) for _ in range(N)]
if way == "up":
| [
"toohong5@gmail.com"
] | toohong5@gmail.com |
83f9c8bad1d536eb9ed04197aca5de98c52cbfa7 | 4a0e3ffff54be178b377a4c18fe0ced2d44b7be6 | /tests/test_simplification.py | ef4d8ef459a90652ce1d7f1345a8374f72c490e6 | [] | no_license | WinVector/data_algebra | 608371904c0fcc99ffab7e0fe57c49dc75fd6b21 | 1e96817919ae891ba108d8d7471b2200b2528271 | refs/heads/main | 2023-04-13T20:11:18.682084 | 2023-04-10T14:09:41 | 2023-04-10T14:09:41 | 203,080,133 | 113 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | import data_algebra
import data_algebra.test_util
from data_algebra.data_ops import *
import pytest
def test_simplification_1():
ops = (
TableDescription(table_name="d", column_names=["col1", "col2", "col3"])
.extend({"sum23": "col2 + col3"})
.extend({"x": 1})
.extend({"x": 2})
... | [
"jmount@win-vector.com"
] | jmount@win-vector.com |
e06f3268b5fbbda6ff380b19dfcec992dfa4102a | 32bbe94e77deced5e58de97eb19e7c6126b001df | /backend/src/conftest.py | 6f9abb7eb37c760dac2ba89491f5762a265968c3 | [] | no_license | 3asyPe/astudy | 16d8adacc3bee9f2667c0a5f1be8228868440c6a | 0643a33a294c410523738f59f95c8d205dd63dc5 | refs/heads/master | 2023-06-25T11:23:39.500361 | 2021-07-28T13:33:48 | 2021-07-28T13:33:48 | 336,819,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | import random
import string
import pytest
from django.conf import settings
from django.contrib.auth.models import AnonymousUser
from mixer.backend.django import mixer as _mixer
from app.test.api_client import DRFClient
from billing.models import BillingProfile
from carts.models import Wishlist
User = settings.AUTH... | [
"alex.kvasha228@gmail.com"
] | alex.kvasha228@gmail.com |
91482f3078c6a8ffb8b5a646e4292e26b7ee4b5d | c1366a8772664a1076be1f709ec8364ded2cc119 | /Jump_to_python/자료형/문자열 자료형.py | 83a4d4ba86ad49e1d9b20118b1b020238912bfee | [] | no_license | Daboni/Python | 04eecda0ff57a385374f8cfd479a9db98cbf3d60 | e6bd7887a46535b3d5737836c2f8bbb668ef89ec | refs/heads/main | 2023-02-26T16:45:55.553629 | 2021-02-04T06:44:11 | 2021-02-04T06:44:11 | 322,223,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,944 | py | #문자열
"Life is too short, You need Python"
"a"
"123"
# ""
"Hello World"
# ''
'Python is fun'
# """ """
"""Life is too short, You need Python"""
# ''' '''
'''Life is too short, You need Python'''
# ' 포함시키기
food = "Python's favorite food is perl"
food #"Python's favorite food is perl"
# "... | [
"noreply@github.com"
] | Daboni.noreply@github.com |
7d48311b4c76492c3f5616ad0a990dbeef8271b4 | 29b1757434a8069fd65bf11303a4422a4a7b8d47 | /grit/command/Remote.py | 316c67fcc4abda133a942fcfcfbb78ab0f5cde86 | [
"Artistic-2.0"
] | permissive | rec/grit | 720310e33aee7b31d26b976e1936e6e390dba2f4 | b5be6d50cb802db9c9510e68688908f3d4d6d162 | refs/heads/master | 2020-05-17T20:03:39.979504 | 2019-02-19T13:38:57 | 2019-02-19T13:38:57 | 21,712,161 | 2 | 1 | null | 2015-03-17T00:56:48 | 2014-07-10T22:14:25 | Python | UTF-8 | Python | false | false | 1,583 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import json
import os
import urllib2
from grit import Call
from grit.Cache import cached
from grit import Project
from grit import Settings
_REMOTE = """
git remote add {nickname} git@github.com:{user}/{project}.git
"""
SAFE = True
... | [
"tom@swirly.com"
] | tom@swirly.com |
203327de968cec0206b4fe3aedf0a89d8e26ff80 | 0dc9bbce77d65a6991f7659c70bf4b81bb319a28 | /artascope/src/model/user_config.py | 65658857748e05322f7ca187a74384a026c9e800 | [
"MIT"
] | permissive | magus0219/icloud-photo-downloader | cca1f3aa0ee93fd3fb195d68d5e02edacea19bc5 | 6334530d971cf61089d031de99a38f204c201837 | refs/heads/master | 2023-05-06T14:51:21.145193 | 2020-08-10T14:10:49 | 2020-08-10T14:10:49 | 259,565,469 | 11 | 0 | MIT | 2021-06-02T01:53:05 | 2020-04-28T07:37:03 | Python | UTF-8 | Python | false | false | 2,212 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Created by magus0219[magus0219@gmail.com] on 2020/3/30
from artascope.src.model.mixin import JsonDataMixin
class NotifyType:
NONE = 0
SLACK = 1
EMAIL = 2
class TargetType:
SFTP = 1
class SchedulerEnable:
Disable = 0
Enable = 1
class Rein... | [
"magus0219@gmail.com"
] | magus0219@gmail.com |
13f1d9708281dbfba9691ad955cf3dc31d7cedf6 | e1cacf76f531494414c846f61d055b06801052d8 | /sdk/python/kubeflow/katib/configuration.py | 6afecca91b0a56b71205147a7189f5e67a9965e8 | [
"Apache-2.0"
] | permissive | prem0912/katib | 388d6637f2fed8c67aa7bd0ad4419dedccb75ad7 | d19149ddcd5b59054d4c26fb23a141b8adbe9634 | refs/heads/master | 2020-06-17T16:10:55.954875 | 2020-06-03T09:19:53 | 2020-06-03T10:06:01 | 243,764,109 | 0 | 2 | Apache-2.0 | 2020-02-28T13:04:57 | 2020-02-28T13:04:57 | null | UTF-8 | Python | false | false | 7,643 | py | # coding: utf-8
"""
katib
swagger description for katib # noqa: E501
OpenAPI spec version: v0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import copy
import logging
import multiprocessing
import sys
import urllib3
import six
... | [
"premnath.vel@gmail.com"
] | premnath.vel@gmail.com |
8f437d715a4f2b8228b57dd1fbf993432c1036ab | 2af94f8a7609d47fdcea28a2132c4f8bacb103e3 | /lib/_idigi_data.py | 793da64bda691d043bc092f2f50eb3cd4c3c53b3 | [] | no_license | bernhara/DigiGateway4Raph | 685527723f0b306f387233c78d27fe9d78717c38 | f36ba29ef883d70f94b8609ff734b5dcde786c66 | refs/heads/master | 2020-07-05T19:56:27.027547 | 2019-08-19T06:10:46 | 2019-08-19T06:10:46 | 202,756,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,503 | py | """idigi_data
idigi_data provides an easy way for Digi device based python apps to
push up data files to the Device Cloud server the device belongs to.
See idigi_pc.py to run on a PC.
"""
import sys
import os
sys.path.append("WEB/python/idigi_data.zip")
try:
# Device Cloud is built into Digi devices. Y... | [
"ORBA6563@S-ORBA65630.rd.francetelecom.fr"
] | ORBA6563@S-ORBA65630.rd.francetelecom.fr |
e8637c520683003b8fa83bcc0a7a54244c0cb2aa | ff0a81d12b17a45a214380f4bdbb2360e050ff40 | /src/accounts/migrations/0001_initial.py | ee232af4db0f7eb2fcf0a2240e24198592e30880 | [] | no_license | rcmiskin10/university-marketplace | 45425275f6f7a73ab81441d613c26def2410a8e4 | 726e99153ad36d0aa38141822285f79feb910c06 | refs/heads/master | 2020-04-05T23:42:59.025790 | 2017-01-11T03:15:20 | 2017-01-11T03:15:20 | 68,738,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='MyUser',
field... | [
"rcmiskin@gmail.com"
] | rcmiskin@gmail.com |
f4ae5179833a9c7f84ab735605567beee5973043 | 861a3f230b19bb5db1e34750e7c469a5989bf162 | /11.HashTable/2.jewels-and-stones/3_counter.py | d56c1f27ba1e577815a47a43ef8032f167a7adbe | [] | no_license | jana-choi/PythonCodingTest | 6ef3786c9a9c71dc749723a4db614a1833332791 | 294588392cf551a77a28d9153098c3d823f271f7 | refs/heads/master | 2022-12-24T10:49:36.712057 | 2020-09-25T01:59:58 | 2020-09-25T01:59:58 | 285,706,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from collections import Counter
def numJewelsInStones(J, S):
freqs = Counter(S)
count = 0
for char in J:
count += freqs[char]
return count
if __name__ == "__main__":
J = "aA"
S = "aAAbbbb"
print(numJewelsInStones(J, S)) | [
"lovej0918@gmail.com"
] | lovej0918@gmail.com |
d224412bcfacaefd9576997b2fd07907fabe1ad6 | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /3.7.2/_downloads/edc9e862d9e0d115b20877b32f705afc/pcolor_demo.py | 2e17cd7db90b2f637939f4660fe465fbf44089c0 | [] | 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 | 3,626 | py | """
===========
Pcolor demo
===========
Generating images with `~.axes.Axes.pcolor`.
Pcolor allows you to generate 2D image-style plots. Below we will show how
to do so in Matplotlib.
"""
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.colors import LogNorm
# Fixing random state for reproducibili... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
78f2cb9e8e6566e1b063e3cf67098480f3c48b68 | 54049cdb26004a52689254c7b3fedff9e2c6d163 | /bloom/commands/patch/remove_cmd.py | c5da59a8c1bd50ca790ca9fa0126e0f09437b43b | [
"BSD-3-Clause"
] | permissive | hershwg/bloom | d6692e8bc63a3e95e8165fb80a75b32271b7a526 | 9fbdd6f6de52cf4263b76a93e37a730725242e93 | refs/heads/master | 2021-01-15T20:19:23.232209 | 2012-10-25T07:00:34 | 2012-10-25T07:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | from __future__ import print_function
import sys
from argparse import ArgumentParser
from bloom.util import add_global_arguments
from bloom.util import execute_command
from bloom.util import handle_global_arguments
from bloom.logging import log_prefix
from bloom.logging import error
from bloom.logging import debug
fr... | [
"wjwwood@gmail.com"
] | wjwwood@gmail.com |
323456b2a796bba44c887fe9bdc4cce4f6cb8c09 | 365c85a280596d88082c1f150436453f96e18c15 | /Python/Daily/2029. stone_game_ix.py | f647f8a361d8cfb7d86d66e00b93c306cc7099bf | [] | no_license | Crisescode/leetcode | 0177c1ebd47b0a63476706562bcf898f35f1c4f2 | c3a60010e016995f06ad4145e174ae19668e15af | refs/heads/master | 2023-06-01T06:29:41.992368 | 2023-05-16T12:32:10 | 2023-05-16T12:32:10 | 243,040,322 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# https://leetcode-cn.com/problems/stone-game-ix/
# Alice and Bob continue their games with stones. There is a row of n stones, and each stone
# has an associated value. You are given an integer array stones, where stones[i] is the value of the ith stone.
#
# Alice and Bo... | [
"zhaopanp2018@outlook.com"
] | zhaopanp2018@outlook.com |
7c37858040a76a9843570a391d8938e7658c7749 | d936bc1d23f3ccee2e87f7a911ad7eada9147d0f | /canvas_mouse_draw_shape.py | 8ca2ae61d3758d5649e80e2bf4c5a5207376efeb | [] | no_license | mesebilisim/python-kod-bankasi | b83982fa962194b43bd3e1fbbbd5bf4ad56a6c11 | 8740cba66fd764ec8cf4174aa5e6cade49ae0af6 | refs/heads/master | 2020-07-27T21:41:35.882996 | 2015-10-13T22:55:23 | 2015-10-13T22:55:23 | 73,424,342 | 1 | 0 | null | 2016-11-10T22:00:23 | 2016-11-10T22:00:23 | null | UTF-8 | Python | false | false | 1,427 | py |
from Tkinter import *
trace = 0
class CanvasEventsDemo:
def __init__(self, parent=None):
canvas = Canvas(width=300, height=300, bg='beige')
canvas.pack()
canvas.bind('<ButtonPress-1>', self.onStart)
canvas.bind('<B1-Motion>', self.onGrow)
canvas.bind('<Double-1>',... | [
"electrocoder@gmail.com"
] | electrocoder@gmail.com |
680f3dc411c72dd3386788bef61685df9c7fcb4f | 3cedc7c1519d3b013aad9ec4e6a6ee7834da7589 | /appium/没整理/lesson2/toutiao1.py | 1ef5799e27844b16d15878ddd160fd41e56ce680 | [] | no_license | hzrg/songqin_course | 53437100669ee93d2ac5ecae5de938b1a4007d7f | 05e422ce34a42fd6d3819722a19252f8005e79ed | refs/heads/master | 2022-02-09T13:27:59.871400 | 2019-06-13T06:08:45 | 2019-06-13T06:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # coding=utf8
from appium import webdriver
import time,traceback
desired_capabilities = {}
desired_capabilities['platformName'] = 'Android'
desired_capabilities['automationName'] = 'Appium'
desired_capabilities['platformVersion'] = '5.1'
desired_capabilities['deviceName'] = '192.168.56.104:5555'
desired... | [
"1174497735@qq.com"
] | 1174497735@qq.com |
331c3fec668136c0d08a36f50d5718da3362a69b | d170dbc754cca63e712284294b6286065fec6df5 | /fa/jquery/templates/admin/models.pt.py | a3278b8727dcae923aec797de8987774cd997501 | [] | no_license | FormAlchemy/fa.jquery | 3d2ba746a1631db32d2f83fba7c6ae9b75bb312f | 8aa4686c66cf8612fd4a5c2e7fc34e29cb8b606f | refs/heads/master | 2016-09-06T06:03:12.277972 | 2013-10-10T08:46:36 | 2013-10-10T08:46:36 | 1,256,529 | 9 | 12 | null | 2017-12-21T08:05:22 | 2011-01-15T00:55:19 | Python | UTF-8 | Python | false | false | 5,037 | py | registry = dict(version=0)
def bind():
from cPickle import loads as _loads
_lookup_attr = _loads('cchameleon.core.codegen\nlookup_attr\np1\n.')
_attrs_4358996304 = _loads('(dp1\nVclass\np2\nVfa_model ui-widget-header ui-corner-all\np3\ns.')
_init_scope = _loads('cchameleon.core.utils\necontext\np1\n.')
... | [
"gael@gawel.org"
] | gael@gawel.org |
50953bdf36c326c7d5d2cae9869a92215db15261 | a54d5a5ae5ba352963f1166a29e1bb6c867157ab | /python/test/test_good_name.py | 30030f836c9780fecc2b6f39ca94cdcb806270bf | [] | no_license | alephist/edabit-coding-challenges | 06f573e90ffbd13bc54ecbdaa8e6a225aa44f5d8 | 35f1fc84848fc44e184aae1ae231a36319c1c81e | refs/heads/main | 2023-07-30T22:39:37.468756 | 2021-09-18T07:47:02 | 2021-09-18T07:47:02 | 341,467,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import unittest
from typing import Tuple
from good_name import name_score
test_values: Tuple[Tuple[str, str]] = (
('MUBASHIR', "THE BEST"),
('MATT', "THE BEST"),
('PAKISTAN', "THE BEST"),
('AIRFORCE', "THE BEST"),
('GUV', 'NOT TOO GOOD'),
('PUBG', "NOT TOO GOOD"),
('ME', "PRETTY GOOD"),
... | [
"justin.necesito@gmail.com"
] | justin.necesito@gmail.com |
1905fd29a2ad0d74d4ce302177cb049f49249cd9 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_19988.py | f78479142fcdf29382cc31b81425d60aff326ea2 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | # Trouble with aligning two y-axis ticks with matplotlib
lim1 = ax1.get_ylim()
lim2 = (lim1[0]*2, lim1[1] *2)
ax2.set_ylim(lim2)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
2e57d9700d3d664bc7705e1dbba720f6395b5865 | c15db2bb1756ee63bab13e583ff70c18e765d575 | /drf_generators/templates/apiview.py | 3972099189a1aef1850173941c99580a581d08f9 | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | tkliuxing/drf-generators | 89857c6c0d3b301cd32611f90a9d4ef8fab92d77 | 899c3f4efb3c3fe10ee582f3950bb6e48fc03350 | refs/heads/master | 2020-12-29T22:14:13.732920 | 2020-08-10T07:00:51 | 2020-08-10T07:00:51 | 238,751,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py |
__all__ = ['API_VIEW', 'API_URL']
API_URL = """from django.conf.urls import include, url
from . import api
urlpatterns = [
{% for model in models %}
url(r'^{{ model|lower }}/(?P<id>[0-9]+)/$', api.{{ model }}APIView.as_view()),
url(r'^{{ model|lower }}/$', api.{{ model }}APIListView.as_view()),
{% endfor %}
]
... | [
"ouyanghongyu@gmail.com"
] | ouyanghongyu@gmail.com |
c9adeac271c2119cfa73776e7e87d0a4969b0509 | dd3f5a712dbab0d3c4f4526c64c08ba710f78b81 | /Basic/dataStructure/structure/t06dequeue.py | e9d2f37337664d1f56c4b9a4fbfcb8b579fc4bc1 | [] | no_license | nameusea/pyGreat | 3988ebcce3f80a7e458a20f9b2e3ccba368efcf8 | dde8b6a1348620ffd3b2d65db3d5b4331e5c78be | refs/heads/master | 2023-04-25T09:02:32.831423 | 2021-05-17T11:31:22 | 2021-05-17T11:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | class Dequeue(object):
def __init__(self):
'''初始化一个空队列'''
self.__list = []
def add_front(self, item):
'''从队列首添加'''
self.__list.insert(0, item)
def add_rear(self, item):
'''从队列尾添加'''
self.__list.append(item)
def pop_front(self):
'''从队列首删除'''
... | [
"darcyzhang@DarcydeMacBook-Air.local"
] | darcyzhang@DarcydeMacBook-Air.local |
216a32e87fa6cda93c871bfcf130c1a61a7e4723 | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/lasers/tasks/panes/co2.py | 1745ef46b0037c5117b26def82274ef321ff93ef | [] | no_license | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | #===============================================================================
# Copyright 2013 Jake Ross
#
# 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/license... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
c618ca60468f267f06da2cbd256b606154cc1254 | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/runtime/models/luis_result.py | 15b9ac3de342daddf2340f74c9e4f7d1970e7d5b | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 2,695 | 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 |
8978268857118174c16dc40b067aae092d316737 | f59d9f7edacd17af7af2c8a4c900bde4fe18ba1a | /measure_extinction/utils/mock_spectra_data.py | 4ddd463f2a6db111b9657372d0b077a560140350 | [
"BSD-3-Clause"
] | permissive | karllark/measure_extinction | 8a1fead4db8be8dda44b3c4e8687fd9fd3a4d537 | 464fc09a60e0d0ee226b590542404e972b62d2e9 | refs/heads/master | 2023-05-27T06:48:32.434042 | 2023-03-06T13:40:50 | 2023-03-06T13:40:50 | 116,707,319 | 1 | 4 | null | 2023-04-28T12:40:04 | 2018-01-08T17:31:44 | Python | UTF-8 | Python | false | false | 6,858 | py | import pkg_resources
import argparse
import numpy as np
import matplotlib.pyplot as plt
from astropy.table import QTable
import astropy.units as u
__all__ = ["mock_stis_data"]
def mock_stis_single_grating(moddata, gname="G140L", applylsfs=True):
"""
Mock up a single grating STIS low resolution observation us... | [
"kgordon@stsci.edu"
] | kgordon@stsci.edu |
5b9d2d32cc0987d491c966fd7fafda8d931a36aa | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startQiskit_QC76.py | 7e339b6337cf42dff01c14d045fcf73a39befa91 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | # qubit number=3
# total number=9
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collection... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
9035e78db4008b3c0bde93ae8d77a2fcd26f4761 | 935b9efca392b124d571319568c08ba45446d2a0 | /lino_book/projects/lydia/tests/dumps/18.8.0/courses_line.py | f6c815319873d98bc3450f6d0444c1bee99e56b1 | [
"BSD-2-Clause"
] | permissive | wallento/book | 6efba2baa1e42bb99514a937342000271dfe798b | 8c5a68f30f9ab65479a988608bda66ea6209afd8 | refs/heads/master | 2020-04-06T10:58:01.629671 | 2018-11-07T09:41:54 | 2018-11-07T09:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | # -*- coding: UTF-8 -*-
logger.info("Loading 3 objects to table courses_line...")
# fields: id, ref, name, excerpt_title, company, contact_person, contact_role, course_area, topic, description, every_unit, every, event_type, fee, guest_role, options_cat, fees_cat, body_template
loader.save(create_courses_line(1,None,['... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
b0894045935a4bd7927b3d27d1bcbe9580c0d34e | 683e5c676c02a746ba35ef6045c99983ad4b4b0c | /matomo_sdk_py/matomo_sdk_py.py | be960c84fb4b3446264311e9ee51c37069567f5a | [
"Apache-2.0"
] | permissive | autofitcloud/matomo-sdk-py | f14ec95b6f8c9b94f74dcfa3f81f90612188a0cb | 802434b125da8c9da168a18d82e8f539716df501 | refs/heads/master | 2023-05-24T21:01:30.376179 | 2019-12-04T13:26:46 | 2019-12-04T13:26:46 | 217,569,529 | 0 | 0 | Apache-2.0 | 2023-05-22T22:31:29 | 2019-10-25T16:03:40 | Python | UTF-8 | Python | false | false | 1,773 | py | import requests
SKIP_PING=False
def ping_matomo(action_name, action_base, idsite, uuid_val, matomo_url):
"""
Gather anonymous usage statistics
action_name - same field in matomo
action_base - website URL in matomo, e.g. https://example.com
idsite - integer representing ID of website in matomo
uuid_val - ma... | [
"shadiakiki1986@gmail.com"
] | shadiakiki1986@gmail.com |
8f6323614670e2e31fd6089d6d719aba5fe21293 | 82b3bcc6467c93c8b84948e7df1ec32fe4c4b004 | /WEEK 4/Day 4/python-lesson-day4/stuff.py | 7a5f26446b1d590d01b86288ca383be2de42f360 | [] | no_license | MrAch26/Developers_Institute | b7868fc94556bfced4cb53537278c3ec17991426 | 840c9710278af033ccdb5f5c3edd7a2a97476aba | refs/heads/master | 2023-03-28T19:31:11.666544 | 2021-04-06T06:54:20 | 2021-04-06T06:54:20 | 298,250,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py |
def test(*args):
print(type(args))
print(args[4])
print("printing Args")
for item in args:
print(item)
# * packs items into a tuple, and unpacks into a list
# ** packs items into a dict
def kwtest(**kwargs):
print(type(kwargs))
print("printing KWargs")
for k,v in kwargs.items():
print(k,"-",v)
def pa... | [
"MrAch26@users.noreply.github.com"
] | MrAch26@users.noreply.github.com |
40605fa6ce7b50c0bece515198274ad164e27a67 | 9189089752d970ced51a1c50503fce399b93f589 | /create-sw-file-tools/play_with_geonames-v2.py | c8ba486cc37a6e1a1d6455a22448a6bb495b3c04 | [] | no_license | SwannedLakee/Feynman-knowledge-engine | 464b0d187213b28d9e3995c5e27b41e216359046 | 9a09ff8041dda20dadc3368700b718266757cf24 | refs/heads/master | 2023-03-24T05:25:30.320650 | 2020-03-13T12:31:59 | 2020-03-13T12:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | #!/usr/bin/env python3
import sys
from the_semantic_db_code import *
from the_semantic_db_functions import *
from the_semantic_db_processor import *
#C = context_list("geonames AU")
# is new_context() faster than context_list() ??
C = new_context("geonames US")
# NB: may need to filter down to ASCII chars.
#file = ... | [
"garry@semantic-db.org"
] | garry@semantic-db.org |
be45c52e65245d926bc6bd8a07045f441de50ede | 92137962a84e724df31b63367854349a875f1c43 | /tapis_cli/clients/basic/main.py | 24b0135901c881fa43e4e7cdef09ea4e8c6aea53 | [
"BSD-3-Clause"
] | permissive | TACC-Cloud/tapis-cli | e3a26e79a20d1ada4cb2dc9ef204cae3e385bfe7 | d34e8635d3dbacc8276cf52b6bae04caacd655de | refs/heads/main | 2023-04-08T14:47:27.707885 | 2022-02-13T17:43:26 | 2022-02-13T17:43:26 | 203,083,094 | 11 | 3 | BSD-3-Clause | 2022-04-01T20:23:23 | 2019-08-19T02:21:28 | Python | UTF-8 | Python | false | false | 1,122 | py | from ..http import HTTPFormatOne, HTTPFormatMany
__all__ = ['BasicHTTPFormatOne', 'BasicHTTPFormatMany']
def add_common_arguments(parser):
parser.add_argument('--username',
dest='username',
type=str,
help="Username")
parser.add_argument(... | [
"vaughn@tacc.utexas.edu"
] | vaughn@tacc.utexas.edu |
f807bce27f1dd1c18871c787b6582c62f5b1e254 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/web/v20210101/get_web_app_domain_ownership_identifier_slot.py | 3b8508cf4c91fe3a7690d3c8355195664eae3ed8 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,347 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
8f2f52a14e7110870ebe759c5b112bb4055bfa0f | 27327e2e0a6844a58a2c7019effabd10f35a652c | /pythonchallenge/crossin_mryk2.py | 4f088c487c0071f4354e39d3957b533f4fca0b84 | [] | no_license | jtr109/AdvancePython | 996b975483502ebfb2c3f03ceb1d1d2b6bbf0b30 | a72926c533d41495d9d1d60a8d020d3fe047d0e2 | refs/heads/master | 2021-01-20T10:59:49.282810 | 2016-08-25T10:09:20 | 2016-08-25T10:09:20 | 66,245,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def sort_and_unique(l):
new_l = list(set(l))
new_l.sort()
return new_l
if __name__ == '__main__':
l = [4, 7, 3, 4, 1, 9, 8, 3, 7]
print(sort_and_unique(l))
| [
"lyp_login@outlook.com"
] | lyp_login@outlook.com |
23017da9226d9dc9b4476b492e8cdfa7b4fb0f17 | e3098a32e5825c88db0f20938ec4ca89054ec52c | /shaney.py | 78ec8bd87bc43fce563e32825057b5ae9c7f92f4 | [] | no_license | yuvipanda/frailgrey | 9e807c25f3e5e08ee537f3c7ac46a534407f74da | 472973aa7477bca7936fd44bc14b8fad62f4e647 | refs/heads/master | 2020-06-05T01:35:47.935109 | 2012-10-05T06:45:41 | 2012-10-05T06:45:41 | 259,656 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # shaney.py by Greg McFarlane
# some editing by Joe Strout
#
# search for "Mark V. Shaney" on the WWW for more info!
import sys
import random
import string
def generate(text, count):
words = text.split()
end_sentence = []
dict = {}
prev1 = ''
prev2 ... | [
"yuvipanda@gmail.com"
] | yuvipanda@gmail.com |
740b55aeecc180691958ce5d79ae04df440cc154 | ee00ebe5e71c36b05fbff993b19e9723b963313f | /45_jump_game_2.py | 4a4f2be0a2b148c4e181e07c60f39a8a23966d34 | [] | no_license | 26XINXIN/leetcode | f365560d93604a28abf399707b333f3c11f924ec | 78ed11f34fd03e9a188c9c6cb352e883016d05d9 | refs/heads/master | 2021-06-28T16:31:45.103879 | 2020-09-19T20:33:55 | 2020-09-19T20:33:55 | 144,975,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | class Solution:
def jump(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
n = len(nums)
first, last = 0, 0
jump_times = 0
while last < n - 1:
# print(first, last)
farest = 0
for i in range(first, last + 1):
... | [
"yangxin.nlp@bytedance.com"
] | yangxin.nlp@bytedance.com |
039fd47273a7f03c29529774896c1ad054dd0856 | 5bd8909ecedbc68b23e2bf6d4560a02b4eea3fa1 | /blog/migrations/0008_auto_20201228_0115.py | 8aa17a3ceebb7508b529e2be38c5e11866ee05ee | [] | no_license | HadiGhazali/zoomit | 5c0ca881ed43a1f0baccb90d88309c35ac549e74 | 39a14394e84d86e434f506f270e80084710a4507 | refs/heads/main | 2023-02-19T11:31:18.949557 | 2021-01-20T18:14:55 | 2021-01-20T18:14:55 | 318,006,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | # Generated by Django 3.1.4 on 2020-12-28 01:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_auto_20201225_1529'),
]
operations = [
migrations.RenameField(
model_name='hitcoun... | [
"hadivardanjani1378@gmail.com"
] | hadivardanjani1378@gmail.com |
a4a7daf902c1db9cb57fbf3b4c0b6878a28e5589 | e21599d08d2df9dac2dee21643001c0f7c73b24f | /Others/Modules/xml/create_xml.py | 943aeadcfe0f48fa947e92b0b54c945162ad1537 | [] | no_license | herolibra/PyCodeComplete | c7bf2fb4ce395737f8c67749148de98a36a71035 | 4ef7d2c3aec6d28a53eed0e649cdeb74df3d783b | refs/heads/master | 2022-07-17T05:39:03.554760 | 2020-05-03T07:00:14 | 2020-05-03T07:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | # coding=utf-8
import xml.dom.minidom
# 在内存中创建一个空的文档
doc = xml.dom.minidom.Document()
# 创建一个根节点Managers对象
root = doc.createElement('Managers')
# 设置根节点的属性
root.setAttribute('company', 'xx科技')
root.setAttribute('address', '科技软件园')
# 将根节点添加到文档对象中
doc.appendChild(root)
managerList = [{'name' : 'joy', 'age' : 27, 'sex' ... | [
"zengyuetian@cloutropy.com"
] | zengyuetian@cloutropy.com |
dd31f3e5ecd70f29f6e610e0bb210939483e3274 | bd4812ba7af196d2e866cbf2935b2e7308d95066 | /python/leetcode/389_find_difference.py | 7133e92ba94094b445c901ba3128895d677dbe32 | [
"Apache-2.0"
] | permissive | yxun/notebook | f507201e15c4376f0655121724254c0d5275c3b1 | 00eb1953d872a9a93a13d7cf23d8e4ed641d1ce7 | refs/heads/master | 2023-09-01T03:50:48.142295 | 2023-08-17T12:11:25 | 2023-08-17T12:11:25 | 207,569,654 | 2 | 2 | Apache-2.0 | 2023-08-17T12:11:26 | 2019-09-10T13:38:49 | Java | UTF-8 | Python | false | false | 1,128 | py | #%%
"""
- Find the Difference
- https://leetcode.com/problems/find-the-difference/
- Easy
Given two strings s and t which consist of only lowercase letters.
String t is generated by random shuffling string s and then add one more letter at a random position.
Find the letter that was added in t.
Example:
Input:
s =... | [
"yuanlin.yxu@gmail.com"
] | yuanlin.yxu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.