blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75a1e04d4f255a5474166190d0441015bd0ed8a3 | e62814e5569503d6c812d5ec6f3f58b09390e7e7 | /step_goobi_uuid_property_insert.py | 2b16e7b44202750fe0e1f39615e269b50461ca1e | [] | no_license | bodleian/goobi.scripts | bd6386430bd401b4244d69a539469fb1a1f0c10f | 9f49cfee8b3a50285e7349b112ad937fcfbbd2af | refs/heads/master | 2021-01-22T03:53:41.402661 | 2014-08-15T15:57:52 | 2014-08-15T15:57:52 | 22,986,286 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Insert UUID property into Goobi process we need this to track the file through to databank.
Command line:
needs: process_id, and uuid_property (={process.uuid} e.g. "urn:uuid:fdc407b6-c825-41df-a2e4-a078f26a3231" )
Relies on:
None
Example run :
In Goobi:... | [
"m.r.davis@me.com"
] | m.r.davis@me.com |
7cacd1dd37262a6d38619e54028326e7a6d00f2c | 942f0b081d2271978ffe20fbbfa8d687b57e5c02 | /leetcode_30_day_april_challenge/move_zeros.py | bdede907cefea61edb48a13b4f757972851eeb30 | [] | no_license | simtb/coding-puzzles | 99762322606bb505d82924d4d5843db1c04aafbd | 9e1d53e35b2117240eb357d7930cdb8cfd891c8e | refs/heads/master | 2021-04-12T15:46:40.181048 | 2021-02-28T23:47:36 | 2021-02-28T23:47:36 | 249,089,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | """Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements."""
from typing import List
def move_zeros(arr: List[int]) -> List[int]:
n: int = len(arr)
for i in range(n):
changes: int = 0
for j in range(n - 1 - i):... | [
"simeon@Sims-MacBook-Pro.local"
] | simeon@Sims-MacBook-Pro.local |
d5ec0e04dd5500eda0ad7b333c827b4d2463cbdf | 6b95f96e00e77f78f0919c10b2c90f116c0b295d | /test/test_inline_response202.py | d3a00cc06da474d95da4e66e488988513c12bb47 | [] | no_license | telstra/Programmable-Network-SDK-python | 0522b54dcba48e16837c6c58b16dabde83b477d5 | d1c19c0383af53a5f09a6f5046da466ae6e1d97a | refs/heads/master | 2021-09-19T17:09:06.831233 | 2018-07-30T03:22:26 | 2018-07-30T03:22:26 | 113,531,312 | 3 | 1 | null | 2018-07-30T03:22:27 | 2017-12-08T04:23:15 | Python | UTF-8 | Python | false | false | 1,560 | py | # coding: utf-8
"""
Telstra Programmable Network API
Telstra Programmable Network is a self-provisioning platform that allows its users to create on-demand connectivity services between multiple end-points and add various network functions to those services. Programmable Network enables to connectivity to a g... | [
"steven@developersteve.com"
] | steven@developersteve.com |
04bec2b66d1ef1c8e4bbea7dfc8a98c2b624be34 | 90b2ad813c96d630cd254475b0ad3a7a735011e5 | /codigo/controlCaldera/caldera_test.py | 16098961222b064d8bf6848b36cc767c120d156f | [] | no_license | vtt-info/micropythonTutorial | dbcd4c13af442446c9816e4fdcd82b8eaaf6a27a | 67a58fb56bef4ef55c89cf76fc3ccde842b62ce6 | refs/heads/master | 2020-11-27T21:44:22.044221 | 2019-12-22T16:25:44 | 2019-12-22T16:25:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | import machine,neopixel
import Wemos
# v1.3.2
# Using a wemos https://escapequotes.net/wp-content/uploads/2016/02/esp8266-wemos-d1-mini-pinout.png
# Led compatible neopixel https://a.pololu-files.com/picture/0J5433.631.jpg
np = neopixel.NeoPixel(machine.Pin(Wemos.D4),1) # Led RGB through the Hole en pin D4 (GPIO2)... | [
"javacasm@gmail.com"
] | javacasm@gmail.com |
ad1e48f44f79ad0c5a60ee98a8dd1866a27d02de | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/wikipedia/testcase/interestallcases/testcase5_016_8.py | d2ddd7e33b16c6095040950cbeb7ea7a2c673c25 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,687 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
ef381458bcdcadbba563ab49dcacec973e040ea1 | da19363deecd93a73246aaea877ee6607daa6897 | /xlsxwriter/test/comparison/test_set_column06.py | ad889ef5be614b162f5f0085d6e8392e5a681921 | [] | no_license | UNPSJB/FarmaciaCrisol | 119d2d22417c503d906409a47b9d5abfca1fc119 | b2b1223c067a8f8f19019237cbf0e36a27a118a6 | refs/heads/master | 2021-01-15T22:29:11.943996 | 2016-02-05T14:30:28 | 2016-02-05T14:30:28 | 22,967,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTes... | [
"lealuque.tw@gmail.com"
] | lealuque.tw@gmail.com |
e777f1420d3950373be922682ff3590a659ac445 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_publication_response.py | 0cbd07d9ea4af6a54d63f78b004d0846a5e67dd4 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,637 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowPublicationResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
f8000dc2c77c02dbc4af7acc88ff19d0eed6a957 | 4eee7b0e53818bd21ca009d742ac8391202620ba | /flaskuse/hello.py | d4fd9e685a27eb5a3ea3d4522c4d572abb8cd7df | [] | no_license | mysqlf/python | e7c44bafee5abefc1356da9fb123fe3d6b3d2e7c | e8aacf30e046d71681a93a5f333de72e48410ebf | refs/heads/master | 2020-05-21T13:33:28.289668 | 2017-11-09T02:13:48 | 2017-11-09T02:13:48 | 61,173,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from mycontroller import *
from flask import Flask, url_for, render_template, Markup
from flask import request
from werkzeug import secure_filename
app = Flask(__name__)
@app.route('/')
def index():
return 'Index Page'
@app.route('/hello')
def hello():
return ... | [
"1154505909@qq.com"
] | 1154505909@qq.com |
0db56182c37e2a925d63b210611b2538389f0dd6 | 0f0484e60c4bffca000a41ec79d9bfe340f306dd | /utils/misc_functions.py | 0b43b685791bea2857039a9ccf3442d625e97ada | [] | no_license | drewlinsley/girik_tracker | a0e40d6baa3ac6ebb8a03ae75aefa157c21c2579 | 1f533637dc1d1c9b95f66a5642ef36fe0a985b9c | refs/heads/main | 2023-05-25T17:28:59.249668 | 2021-01-18T19:24:57 | 2021-01-18T19:24:57 | 330,765,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,425 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import os
from torch._six import inf
def metric_scores(target, pred):
# import pdb; pdb.set_trace()
correct = pred.eq(ta... | [
"drewlinsley@gmail.com"
] | drewlinsley@gmail.com |
4fa7a733310fec058b23179c8cc2b624763a0f04 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/python/ops/confusion_matrix.py | 8c71c85a8602e916e2bbdb57fb232709a165fbbe | [] | 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 | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e21988dea8949ba458dae995e92cb075509d190fff93bc9e82241b49dc260044
size 10906
| [
"business030301@gmail.com"
] | business030301@gmail.com |
b2bb802e638ba009abc13376f61b0379c2671fe7 | 20775e72946453964380a8a306b6d854e46acf65 | /nextGreaterElements.py | db0366eafc3612b3110b1f34eca24ad8912b1e4e | [] | no_license | candyer/leetcode | c3a0d710854f3a845c14b0501ef91041d19b2fd0 | 35bb20951ee746bae6a36067ad0b0edbceb3aff4 | refs/heads/master | 2022-05-19T14:39:14.698905 | 2022-03-13T22:40:59 | 2022-03-13T22:40:59 | 56,853,612 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | # https://leetcode.com/problems/next-greater-element-ii/description/
# 503. Next Greater Element II
# Given a circular array (the next element of the last element is the first element of the array),
# print the Next Greater Number for every element. The Next Greater Number of a number x is the first
# greater numb... | [
"candyer@users.noreply.github.com"
] | candyer@users.noreply.github.com |
77f94057e75282a9b290f7a3880b99f2b1b41c0f | d7016f69993570a1c55974582cda899ff70907ec | /sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_04_01/aio/_monitor_management_client.py | 8a28d2c6a3418097977d4a2d199cf59789d148f2 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 4,426 | 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"
] | kurtzeborn.noreply@github.com |
983320d2d0c833484df5f6d587da4222d312e494 | 686b7298ee91a1e692cf6421fb70b6b9ad0631fc | /inventario/migrations/0006_auto_20160319_1726.py | 4eb9b11dc278d1e7dd8881de41542ca77cf2e4e3 | [
"MIT"
] | permissive | exildev/piscix_demo | 63816e943856e79b5fa66098e46b1ecf25d3ed76 | 6e844be31333c7f6cd12fd0e21dc990405f9c27c | refs/heads/master | 2021-01-14T11:31:00.874581 | 2016-03-26T02:30:48 | 2016-03-26T02:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-19 17:26
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('inventario', '0005_remove_articulo_tiempo_entrega'),
]
operations = [
migrations.Ren... | [
"mariobarrpach@gmail.com"
] | mariobarrpach@gmail.com |
b324d53e059459b4339c95fde9797b639f4da857 | e905abd9bb7bd7017657d0a0c4d724d16e37044c | /.history/article/spiders/ieee_20210208220908.py | 1b4559f00f8d8a1ef2e2657fa0038446b83482f3 | [] | no_license | tabdelbari/articles | a8b921841f84fb473f5ed1cdcda743863e6bc246 | f0e1dfdc9e818e43095933139b6379a232647898 | refs/heads/main | 2023-03-05T10:21:35.565767 | 2021-02-10T13:35:14 | 2021-02-10T13:35:14 | 325,654,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,991 | py | import scrapy
import logging
import re
from scrapy_splash import SplashRequest, request
from article.items import ArticleItem
import json
class IeeeSpider(scrapy.Spider):
name = 'ieee'
allowed_domains = ['ieee.org']
lua_script = """
function main(splash, args)
assert(splash:go{
splash.a... | [
"abdelbari1996@hotmail.com"
] | abdelbari1996@hotmail.com |
5b68c46e362fc852d12fa7dce1a2b0860f5939f0 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_14557.py | 01cb4efa005d598743b8d7f0fcb2ec83c17849aa | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,838 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
5a795473338894e4d41d85117065b1535326c5be | a59ba2ee7e1913e456f3e606d6d6dc5a31644385 | /backend/zing_23016/wsgi.py | 21b146e577e6b9c91b88457dd00af33bbc8f1c3a | [] | no_license | crowdbotics-apps/zing-23016 | d423af784af6f742bf9979862341dca5d137374f | 612ce25b72a5584c5e65013d71066361b5cadc32 | refs/heads/master | 2023-01-13T19:30:51.965289 | 2020-11-27T16:31:10 | 2020-11-27T16:31:10 | 316,550,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for zing_23016 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9b6c702e3759ad0660f538e4118ce527b5742871 | add16900a969741c9e7570d3b7b47b76e22ccd04 | /torch/distributed/optim/zero_redundancy_optimizer.py | 6aa341d9b71b7784224bd96742d807eec337e54c | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | talemache/pytorch | 55143c60b927a73f6392f7dde1f4fc8ef7ee76e6 | a4da326621418dcccba50d2e827e6644e7f03ed1 | refs/heads/master | 2023-05-09T06:02:30.990411 | 2021-05-30T04:37:41 | 2021-05-30T04:37:41 | 318,314,852 | 2 | 0 | NOASSERTION | 2021-05-30T04:37:41 | 2020-12-03T20:43:29 | null | UTF-8 | Python | false | false | 25,986 | py | # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
import collections
import copy
import io
from collections import OrderedDict
from itertools import chain
from typing impo... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
db8dfe9991954528b244b5f8cf6d9c33ff7d2af3 | 6d87f66357e4002c461532b39498636d29956097 | /stack/nova/nova/volume/xensm.py | 7e9a4b0ee4dfa78c453f883bea0dd1a3d2409587 | [
"Apache-2.0"
] | permissive | megaumi/openstack-tbd-scheduler | b8588b35c45b8fe9eee59723276047601ce2dfde | 13928e9fec092e573c4945343a8b60e1fa86c4b3 | refs/heads/master | 2021-06-06T05:45:48.026940 | 2020-07-24T08:52:55 | 2020-07-24T08:52:55 | 6,046,752 | 0 | 1 | null | 2020-07-24T08:52:57 | 2012-10-02T15:11:38 | Python | UTF-8 | Python | false | false | 9,911 | py | # Copyright (c) 2011 Citrix 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 ... | [
"umi@apricot.(none)"
] | umi@apricot.(none) |
5dc7d5bd0407b85a06af759117ef2a22ba854a65 | 368b89707805e8ac6d5baf26a11b280369995ca5 | /src/server/db/position.py | d7a6146c0112d6c462e5a1301ae730759ffb2a40 | [] | no_license | cheng93/fof | 2940d739c1399c88db06b5c99e8075e918fbf060 | 0115a6d3f6775c5c1c8a30cfd7f6f7f9006e75fe | refs/heads/develop | 2020-03-19T06:55:20.274365 | 2018-07-25T22:14:11 | 2018-07-25T22:14:11 | 136,067,138 | 0 | 0 | null | 2018-07-25T22:14:12 | 2018-06-04T18:33:35 | Python | UTF-8 | Python | false | false | 178 | py | from sqlalchemy import Column, MetaData, String, Table
metadata = MetaData()
position = Table(
'position', metadata,
Column('position', String(4), primary_key=True)
)
| [
"derek.c@hotmail.co.uk"
] | derek.c@hotmail.co.uk |
cafe2343b668290a858a0f96812af2e3ac9e4e28 | 2233a4f0e009ee7fa20ed32df19a1aa89e29897e | /schedule/migrations/0022_auto_20150319_1645.py | a1285df3e84a08a6e6e496e7ff8d9c34f42fec00 | [] | no_license | jphalis/g-fitness | 1e366c2ffdd8f9230716c5bab0a77d6eb1dad02d | 13c99ce037def2ab24749919001055908245274d | refs/heads/master | 2023-01-07T19:33:41.169665 | 2016-02-23T03:09:42 | 2016-02-23T03:09:42 | 312,346,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('schedule', '0021_auto_20150319_1643'),
]
operations = [
migrations.AlterModelOptions(
name='event',
... | [
"jphalisnj@gmail.com"
] | jphalisnj@gmail.com |
d3a2d1c2f249943ecc71eab9991a509b79c1e6b5 | 363d82529eef4a389639ebdbea734dca00ac7abd | /543.二叉树的直径.py | b5afb853934546c70f7087413a23b6f0f7a7544f | [] | no_license | adsl305480885/leetcode-zhou | d9ac9ff391a68fb491bf3d3a5204778585fc9a40 | 79c96fc7f66ed0508351ed9300482a1619f39fb5 | refs/heads/main | 2023-05-03T12:26:05.218505 | 2021-05-21T10:39:30 | 2021-05-21T10:39:30 | 314,748,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | '''
Author: Zhou Hao
Date: 2021-04-10 14:18:20
LastEditors: Zhou Hao
LastEditTime: 2021-04-10 14:35:12
Description: file content
E-mail: 2294776770@qq.com
'''
#
# @lc app=leetcode.cn id=543 lang=python3
#
# [543] 二叉树的直径
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, ... | [
"2294776770@qq.com"
] | 2294776770@qq.com |
56c1624a38bccdf77be1877b90433cc4538019ce | 8034f2d73ef135ba359c2efe6e2f3b4fd0c8d24b | /calorie_app/urls.py | 5c50014d71ae5e4b4a6c76fca152c47ba64966d0 | [] | no_license | Tanmoy-Sarkar/Calorie-Counter-App | d48794fa5e28ef35511eb8b5ac6f9967c31c6b27 | c2d86c70ac3ee990a7d43dd56a6b797ad553bd06 | refs/heads/master | 2023-02-13T09:40:26.421959 | 2023-01-26T06:33:10 | 2023-01-26T06:33:10 | 288,371,015 | 16 | 13 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """calorie_app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"tanmoy9920@gmail.com"
] | tanmoy9920@gmail.com |
077412369ffa56fa6b0e3434b853373e8c50a91a | 8d5166f334de6e904946d6023fc43ac1f40c5bc1 | /flaskshop/plugin/utils.py | dfc036a09ca6be44c0618053b9aae671220b33c5 | [] | permissive | UnknownFX02/flask-shop | 1a44d8a37223fe23d239ac3c86ac0d9fee9f93be | 0e5f60b1ef6986e01e8ffc172a3ea0f42ab828e7 | refs/heads/master | 2022-12-03T23:33:29.235488 | 2020-08-27T06:49:03 | 2020-08-27T06:49:03 | 271,223,635 | 0 | 0 | BSD-3-Clause | 2020-06-10T08:36:54 | 2020-06-10T08:36:54 | null | UTF-8 | Python | false | false | 1,835 | py | import pkg_resources
from flask import current_app
from jinja2 import Markup
from email import message_from_string
class TemplateEventResult(list):
"""A list subclass for results returned by the hook that
concatenates the results if converted to string, otherwise it works
exactly like any other list.
... | [
"hjlarry@163.com"
] | hjlarry@163.com |
127e31297ebf132a0683539de8335b6daec5723b | c1d9dc8351241a3bd519a6f8ebc4531bfed2de6f | /backup/Python/342.py | f98c0b2cd20ac8e4bdfcde2b718bd2c69bfdcd6b | [] | no_license | yichenluan/LeetCodeSolution | 3cf4b31e36f32c6b689b7b724c5cf57c3efb70bc | 26af13bbac60d656415bbba0c3bc7acbaa5a7d63 | refs/heads/master | 2021-05-23T06:05:07.183561 | 2020-10-20T09:11:41 | 2020-10-20T09:11:41 | 52,205,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | class Solution(object):
def isPowerOfFour(self, num):
if not num:
return False
if not (num & (num - 1)) == 0:
return False
if not (num - 1) % 3 == 0:
return False
return True
| [
"jinke@bytedance.com"
] | jinke@bytedance.com |
ddcfe8f2cdc5d452bf59e1fc86f53325f9020cc4 | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage1-model/redis/__init__.py | 585dbcc2344416e5829499f1e3f43a511046132f | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from redis.client import Redis, StrictRedis
from redis.connection import (
BlockingConnectionPool,
ConnectionPool,
Connection,
UnixDomainSocketConnection
)
from redis.utils import from_url
from redis.exceptions import (
AuthenticationError,
ConnectionError,
BusyLoadingError,
... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
1c5aa35b8785c506895721ac052b7d4c2c56eb72 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/aio/operations/_operations.py | 28024c758e76afb53492bbd857262e1c597a6dfd | [
"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 | 5,909 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
86bef4e13477c78a5e612684587aa19f28da4b8d | 1d2bbeda56f8fede69cd9ebde6f5f2b8a50d4a41 | /hard/python/c0142_765_couples-holding-hands/00_leetcode_0142.py | c46b1c56bc678cb941deb1bf6bf4acae31bb8896 | [] | no_license | drunkwater/leetcode | 38b8e477eade68250d0bc8b2317542aa62431e03 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | refs/heads/master | 2020-04-06T07:09:43.798498 | 2018-06-20T02:06:40 | 2018-06-20T02:06:40 | 127,843,545 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | # DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#765. Couples Holding Hands
#N couples sit in 2N seats arranged in a row and want to hold hands. We want to know the minimum number of swaps so that every... | [
"Church.Zhong@audiocodes.com"
] | Church.Zhong@audiocodes.com |
b88d5f4ced79ba96ff6f1da85c68767483659955 | 890844d4d519f5b4cab71bdd86c04ce808b5ca2e | /02NetworkProgramming/day02/basic02.py | 28f9737063bcd70e2e1d679a274fd32d5d2f5123 | [
"MIT"
] | permissive | mumudexiaomuwu/Python24 | 01ccb828813cbacf8c24a98aaf05cc79692d0765 | 771a3f44c5d0e9a7be1118b84ca89cd34c3d7293 | refs/heads/master | 2022-03-21T19:23:40.159333 | 2019-12-22T13:59:16 | 2019-12-22T13:59:16 | 268,305,437 | 1 | 0 | MIT | 2020-05-31T15:13:32 | 2020-05-31T15:13:31 | null | UTF-8 | Python | false | false | 2,234 | py | """
Tcp 面向连接(必须先建立连接),可靠的数据传输方式,类似于打电话,可靠的3个原因
1- TCP采用的发送应答机制 2- 超时重传 3- 错误校验
1- tcp使用的是send & recv
2- udp使用的是sendto & recvfrom
3- 涉及到网络发送接收都是byte的类型需要解码的类型
4- 设计的网络地址都是元组类型
5- tcp的close方法作用有两个1- 断开链接(因为tcp有链接) 2- 释放资源
"""
import socket
# 创建一个tcp的socket使用的是sock_stream, udp使用的类型是数据棒sock_d... | [
"china.hao.zhang@gmail.com"
] | china.hao.zhang@gmail.com |
f98e608644abb0387a70db6a9523a976fc16915c | 4d9bdaf3deb0f78dc99eb87b8cd4386e8f3069de | /scripts/pstacks_genShell_m3_10-10_ak.py | 431f758b6ef3e2bf4e2577b07d11e24bfd785beb | [] | no_license | mfisher5/PCod-Compare-repo | 5b6f688097feb279a26cd12f43bf91f9a5a83e15 | 2320781656836c1d9534be1a406b1cae4c47ebe1 | refs/heads/master | 2020-03-07T12:33:25.000207 | 2018-06-10T23:05:23 | 2018-06-10T23:05:23 | 127,480,623 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | ###### Generate Shell Script to Run pstacks --> populations ######
## MF 3/10/2017
## For US Cod Data
## Edited by MF 5/3/2017 for Korea PCod Data
## Edited 6/25/2017 for Korea PCod Data
## Edited 10/9/2017 for combined data
## At Command Line: python cstacks_populations_genShell_7-6 ARG1
##---- ARG1 = Alaska sam... | [
"mfisher5@uw.edu"
] | mfisher5@uw.edu |
56c60a7a909dfc3fe221554eb0fb79cc12619469 | b5118fcbbce916d1f7cb97472d32cf594694e95c | /src/FPSDP/Models/Waves/Propagator.py | e5376562fd29fb1b3a9bbddcb532f895cab2caa7 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | loikki/Fusion-Plasma-Synthetic-Diagnostics-Platform | d0b870cdf2b98b309e1b300af44420de1b1bb947 | a7b1c0ded776d71fbc8ae60d9a6af204e896f971 | refs/heads/master | 2021-01-19T19:03:18.759971 | 2016-04-27T23:34:32 | 2016-04-27T23:34:32 | 57,330,093 | 0 | 0 | null | 2016-04-28T19:59:47 | 2016-04-28T19:59:46 | null | UTF-8 | Python | false | false | 78,927 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 26 15:20:15 2016
@author: lei
Propagators for electromagnetic waves propagating in plasma
"""
from __future__ import print_function
import sys
from time import clock
from abc import ABCMeta, abstractmethod, abstractproperty
from math import cos
import warnings
import n... | [
"shilei8583@gmail.com"
] | shilei8583@gmail.com |
cd6243d56baba1b3817aa844c813455acd763692 | 935b5e5a4780429263570cb2d7adc1651b2259e4 | /misc/linux_file_monitor/__init__.py | 532005216b0d76cefcf1b5fd484a014b0e2988fb | [
"MIT"
] | permissive | restran/hacker-scripts | 8dddc0ddced9fe8691aa29d7b682ea1bd9e22f55 | 30bbfd8bb97cda2b4762156aaf2973296f0e7cde | refs/heads/master | 2021-05-04T07:34:51.820983 | 2017-01-24T08:49:00 | 2017-01-24T08:49:00 | 70,647,744 | 31 | 13 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | # -*- coding: utf-8 -*-
# Created by restran on 2016/10/18
from __future__ import unicode_literals, absolute_import
| [
"grestran@gmail.com"
] | grestran@gmail.com |
8917ad139cf2da94dcb469f102d4483cbb9cc910 | 6e8a8b97c7a57be6b8e5a66e3a7428070bed35fd | /api_starships/permissions.py | 29d2a72278c79ea394320af3cd3e9f289401fcda | [] | no_license | msadour/starships | 42c96e633f97bc3043e27353c6b95b4148ecc911 | c6acb30e2c083a367d1fa76061015e24bcdd6405 | refs/heads/master | 2023-02-09T21:04:08.399768 | 2021-01-07T15:40:06 | 2021-01-07T15:40:06 | 316,753,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,471 | py | """Permissions."""
from typing import Any
from rest_framework import permissions
from rest_framework.request import Request
from rest_framework.viewsets import ModelViewSet
class StarshipPermission(permissions.BasePermission):
"""Class StarshipPermission."""
def has_permission(self, request: Request, view:... | [
"sadour.mehdi@gmail.com"
] | sadour.mehdi@gmail.com |
95dffd8ced9c0d7e6190915111e75b464ab0a75d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/389/usersdata/328/72253/submittedfiles/poligono.py | 5d4c5208b59de627e4ac5aa1da3e11486f019ed4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # -*- coding: utf-8 -*-
n=input('número de lados:')
nd=((n(n-3))/2)
print('%.f'%nd) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3b6cff95b6042ae1ab0f22d092b948527aae6267 | c4b94158b0ac8f1c4f3d535b6cdee5d1639743ce | /Python/202__Happy_Number.py | 47cb48abe1098b5be359eb97b207e68d166122ac | [] | no_license | FIRESTROM/Leetcode | fc61ae5f11f9cb7a118ae7eac292e8b3e5d10e41 | 801beb43235872b2419a92b11c4eb05f7ea2adab | refs/heads/master | 2020-04-04T17:40:59.782318 | 2019-08-26T18:58:21 | 2019-08-26T18:58:21 | 156,130,665 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | class Solution(object):
def isHappy(self, n):
"""
:type n: int
:rtype: bool
"""
def getsum(n):
result = 0
while n:
result += (n % 10) ** 2
n /= 10
return result
dic = {}
while n:
... | [
"junou_cui@berkeley.edu"
] | junou_cui@berkeley.edu |
ecbe3471333dc221fca2f9aaeb7c33aca2d7b5cc | 3b89c0a97ac6b58b6923a213bc8471e11ad4fe69 | /python/CodingExercises/LeetCode254.py | 74e495b5df862f025f565c8dd901403b2d2068c3 | [] | no_license | ksayee/programming_assignments | b187adca502ecf7ff7b51dc849d5d79ceb90d4a6 | 13bc1c44e1eef17fc36724f20b060c3339c280ea | refs/heads/master | 2021-06-30T07:19:34.192277 | 2021-06-23T05:11:32 | 2021-06-23T05:11:32 | 50,700,556 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | '''
254. Factor Combinations
Numbers can be regarded as product of its factors. For example,
8 = 2 x 2 x 2;
= 2 x 4.
Write a function that takes an integer n and return all possible combinations of its factors.
Note:
You may assume that n is always positive.
Factors should be greater than 1 and less than n.
Exampl... | [
"kartiksayee@gmail.com"
] | kartiksayee@gmail.com |
ff718c3e4ee54cf0cc1d19fc1fff467dcb821976 | e993c53e4e1a52acc8279129c67feb0d3a1b9cbc | /catkin_ws/src/o2as_new_parts_description/scripts/generate_urdf_from_meshes.py | c603cb122ab11370f89306bfb6e53d326f5f583e | [
"MIT"
] | permissive | DevwratJoshi/ur-o2as | 134ec87d371a7d9f9b64cbeb4030b23cf114812d | 265249c27908a79a301014168394db0c0dc2204c | refs/heads/master | 2021-01-03T16:03:57.344339 | 2020-02-17T03:58:39 | 2020-02-17T03:58:39 | 240,143,319 | 0 | 0 | MIT | 2020-02-13T00:21:52 | 2020-02-13T00:21:51 | null | UTF-8 | Python | false | false | 6,049 | py | #!/usr/bin/python
import csv
import os
import rospy
import rospkg
rp = rospkg.RosPack()
print("D1")
# Read in the files
filenames = os.listdir(os.path.join(rp.get_path("o2as_new_parts_description"), "meshes"))
filenames_strip1 = []
filenames_no_ext = []
for name in filenames:
filenames_strip1.append(os.path.spl... | [
"FvDrigalski@gmail.com"
] | FvDrigalski@gmail.com |
f6b92fffe86d78aa71f118f1e2b859ed4b4e4687 | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/share/pyshared/orca/scripts/apps/gnome-terminal/__init__.py | 6d23cdc88a4643612c92817ef16ad48e420275df | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | # Orca
#
# Copyright 2005-2008 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This ... | [
"root@xinli.xinli"
] | root@xinli.xinli |
5f65acfc2b5fda515169faee849a62be2f35b931 | bad1fb943e73e09b7e7015ff1b0f6a5d70fb5db9 | /docs/the_guide/first.4.py | 67c3eee40d207ea5b54cb20936ecc516430b8a1f | [
"MIT"
] | permissive | ototoi/ModernGL | 3f144620f56f2da2b3338482c8590c6e3b07ce1f | e480d5d37c5015e2f11daf9c5a81fe7ac1803c5a | refs/heads/master | 2020-03-21T05:17:41.816286 | 2018-06-18T05:17:52 | 2018-06-18T05:17:52 | 138,153,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | import moderngl
import numpy as np
from PIL import Image
ctx = moderngl.create_standalone_context()
prog = ctx.program(
vertex_shader='''
#version 330
in vec2 in_vert;
in vec3 in_color;
out vec3 v_color;
void main() {
v_color = in_color;
gl_Positi... | [
"cprogrammer1994@gmail.com"
] | cprogrammer1994@gmail.com |
8d7bb20efb818296b43c56f75c09e6e9b32b442e | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sets_20200605194836.py | ef670150e7382ed5ad0de0def99c44fd74197e63 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | def Strings(str):
values = {}
newArray = []
keys = []
for i in str:
newArray.append(i.split(":"))
# print(newArray)
for j in range(len(newArray)):
if newArray[j][0] in values:
values[newArray[j][0]] += int(newArray[j][1])
else:
values[newArr... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
0fda43ed917891dff09066db67788a2591466a61 | 6f2a0372295ca35eb7942a705ba4a6494557ba2e | /중간고사 대비/scorecalc.py | 03d273e059dcb5e1fdc3f5a9b166759ebd14f659 | [] | no_license | kimth007kim/python_choi | 599f8edbf55fa68f72bfb9d874be384f896bc281 | a5cc1b4557c9c873bcbb9f31f03b3370439f84bd | refs/heads/master | 2023-02-06T09:13:24.169973 | 2020-12-23T12:48:35 | 2020-12-23T12:48:35 | 293,230,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | import sys
global hak,name
global kor,math,eng
global ekor,emath,eeng
global ckor,cmath,ceng
global clkorsum,clmathsum,clengsum
global clkoravg,clmathavg,clengavg,clavg
global no_of_std
global mysum,myavg
def read_student():
global hak,name
global kor,math,eng
hak= int(input("학번을 입력하시오: "))
if hak ==... | [
"kimth007kim@naver.com"
] | kimth007kim@naver.com |
b6d30e1bd3be00c9e89db87946e9906c76860cc7 | 9d5c9d9373002ab4ed1b493136517e8b4ab160e5 | /saas/backend/biz/org_sync/user.py | fb65d0a424672d14e649580b389c3a558032c316 | [
"MIT"
] | permissive | robert871126/bk-iam-saas | f8299bb632fc853ef0131d445f84c6084fc84aba | 33c8f4ffe8697081abcfc5771b98a88c0578059f | refs/heads/master | 2023-08-23T19:23:01.987394 | 2021-10-22T09:45:28 | 2021-10-22T09:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,639 | py | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with th... | [
"zhu327@gmail.com"
] | zhu327@gmail.com |
7d3778088c7ed1ef7ffbcc65cf91720b823b70b1 | 9fcb7c93ead12fa4e5b26d495d29c9f067f5a5ee | /experiment/kitti/ssd/ssd_kitti_inception_multi_scale_0.7.py | a81b470a46ffa647ea4bc94fd2316e67df8c665b | [] | no_license | wangkingkingking/densebox | 6cde2895b24bf2161e7521541d73094c275cd6c7 | c6efae717a829dc3915763607ed58b8737c6d375 | refs/heads/master | 2020-04-25T02:29:50.272180 | 2018-10-25T22:49:33 | 2018-10-25T22:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,285 | py | from __future__ import print_function
import caffe
from caffe.model_libs import *
from google.protobuf import text_format
import math
import os
import shutil
import stat
import subprocess
import sys
root_dir='/home/vis/hy/baidu_experiment/kitti/ssd'
#### dataset 'Baidu', 'KITTI' #####
dataset='KITTI'
#### base mode... | [
"yangyi02@gmail.com"
] | yangyi02@gmail.com |
4879c0f27053a97ba0ee5868fcc05ab2f742e9ee | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/api_base_info.py | 71e4ce11b0fb9d2e00b1d771858c307c044597bf | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 25,307 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ApiBaseInfo:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3b7e15c3a958604eb009d29d77ee4c2137e96ea0 | 4c64602aad2c707f96818537c6de1551a73eba17 | /examples/vanet.py | f5114b9ce36cafffcf80588b446e5f3782139e69 | [] | no_license | Lucas-Developer/mininet-wifi | 3b8cec6fe30fb8064cb39dc3e21f2ef728bcc23f | 3531eae06171b5f3d9af49c8459085552f7f3b04 | refs/heads/master | 2021-07-01T09:54:20.779275 | 2017-09-06T11:38:37 | 2017-09-06T11:38:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | #!/usr/bin/python
'Simple idea around Vehicular Ad Hoc Networks - VANETs'
from mininet.net import Mininet
from mininet.node import Controller, OVSKernelSwitch
from mininet.link import TCLink
from mininet.cli import CLI
from mininet.log import setLogLevel
import os
import random
def topology():
"Create a network... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
5bbaa1c12b507a492ab1c426141d7111c9edbe9a | 89a3cb6e0625e7ae8d3d4c12bf5214557d344059 | /Code_[2017-10-16]_Predict_Iozone_Runtime/estimate_runtime.py | 94e299cee247f9067d6c46c21fe9567f1127f056 | [] | no_license | tchlux/VarSys | e5adc802bbf8149bd3584d350bb429c24d4cbdd8 | 313a3029d838520d30ce960fa56a897ba9180037 | refs/heads/master | 2023-07-20T10:58:34.901566 | 2020-09-22T15:37:45 | 2020-09-22T15:37:45 | 108,617,499 | 0 | 0 | null | 2023-07-06T21:13:39 | 2017-10-28T03:44:31 | null | UTF-8 | Python | false | false | 5,415 | py | from util.algorithms import Delaunay
from util.data import read_struct
import numpy as np
# SOURCE_COLUMN_NAMES = ["Machine","Media","Frequency","File Size",
# "Record Size","Num Threads","Iteration","Test",
# "Throughput","Runtime"]
# SOURCE_COLUMN_DTYPES = [str, str, int... | [
"thomas.ch.lux@gmail.com"
] | thomas.ch.lux@gmail.com |
1a481dabcd66aaa332cab1538d4588fff1dc8764 | 24d30f5c44da766cf4749e0bd25cba4371260113 | /collective/js/timeago/viewlet.py | 68d1896951d9558f14e82fe18038520d56f58e9b | [] | no_license | collective/collective.js.timeago | b7a18c57da782e6ce79329ef2f9f8606c346eda4 | 7298fec0ef2581510877450ba5c64fc2b09f36b8 | refs/heads/master | 2023-04-17T05:41:21.366537 | 2019-01-04T09:58:31 | 2019-01-04T09:58:31 | 6,313,727 | 0 | 0 | null | 2019-01-04T09:58:32 | 2012-10-20T21:06:05 | JavaScript | UTF-8 | Python | false | false | 531 | py | from plone.app.layout.viewlets.common import ViewletBase
SCRIPT_TAG = """<script type="text/javascript"
src="%s/++resource++collective.js.timeago/locales/jquery.timeago.%s.js"></script>"""
class L10nTimeAgo(ViewletBase):
"""Load L10N for this javascript"""
def update(self):
super(L10nTimeAgo, self)... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
59fb3278a3e5d96e6b2a9c06da519ede4a7769de | 046d9405f06774ab8d52cd356b137007e6c9599a | /python/python/老师笔记/python/day20/day20/code/mycopy.py | 1132c6f499742f3e749e8672dd1f6e967789e5c6 | [] | no_license | jluocc/jluo2018 | 3a49d9884bd2bc2e02e0d6ef9f066269c2e430a8 | 30e39f93ef65810d39423a4b66dd253cdeaddae5 | refs/heads/master | 2020-04-07T15:24:07.850373 | 2019-01-06T06:05:19 | 2019-01-06T06:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | # 练习:
# 1. 写程序实现复制文件功能:
# 要求:
# 1. 源文件路径和目标文件路径需手动输入
# 2. 要考虑关闭文件问题
# 3. 要考虑复制超大文件问题
# 4. 要能复制二进制文件
def mycopy(src_file, dst_file):
"""此函数的功以实现复制文件
src_file : 源文件名
dst_file : 目标文件名
"""
try:
with open(src_file, "rb") as fr,\
open(dst_file, 'wb... | [
"473145009@qq.com"
] | 473145009@qq.com |
e18f9021a41549e6b2a1b9e496023e39f9194ba2 | 4ce2cff60ddbb9a3b6fc2850187c86f866091b13 | /tfrecords/src/wai/tfrecords/adams/__main__.py | 6a7ad9bd492b63b308863d202677b533e1c98f3d | [
"MIT"
] | permissive | 8176135/tensorflow | 18cb8a0432ab2a0ea5bacd03309e647f39cb9dd0 | 2c3b4b1d66a80537f3e277d75ec1d4b43e894bf1 | refs/heads/master | 2020-11-26T05:00:56.213093 | 2019-12-19T08:13:44 | 2019-12-19T08:13:44 | 228,970,478 | 0 | 0 | null | 2019-12-19T03:51:38 | 2019-12-19T03:51:37 | null | UTF-8 | Python | false | false | 164 | py | """
Allows package to be run as ``python -m wai.tfrecords.adams2objectdetection``
"""
# Import and run sys_main
from wai.tfrecords.adams import sys_main
sys_main()
| [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
91c9bb549214cf9884dc0f0d8f21a956e5032e51 | ebb97a3b88370310dde843bd18c51c60edf8cfc6 | /accounts/forms.py | 5e9c1c22dc063088f360124175b0bae42563e7ab | [] | no_license | Mehedi2885/django-aws | b12b81181b3cfa2b2194327a614f897f4d3838f7 | 2d7de01c04075f691b26b64a3a3e93ed7e9eabf1 | refs/heads/master | 2022-12-03T18:15:44.460209 | 2020-08-26T22:19:39 | 2020-08-26T22:19:39 | 290,062,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | from django import forms
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.contrib.auth import authenticate, get_user_model
from django.db.models import Q
from .models import USERNAME_REGEX
from django.core.validators import RegexValidator
User = get_user_model()
class UserLoginForm(forms.F... | [
"mehedi_45seafarer@yahoo.com"
] | mehedi_45seafarer@yahoo.com |
c1c7b46b3e56dfed4ca6d9f3d15f0f8fb9d00b52 | 56f74f085887a44e3f02c3c9c5f33061e7bd3f48 | /code/AlignE.py | cb0c25478fc73997f090fd73e2a08ca348947e3e | [
"MIT"
] | permissive | SummersEpsilon/BootEA | db97fa2da811b36e0f23f38f8682a3c7f805c788 | 483673b69f2076129ddf1dfeff7244e79f66419f | refs/heads/master | 2020-03-25T13:35:57.535200 | 2018-07-10T07:41:54 | 2018-07-10T07:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | import sys
import time
import utils as ut
from train_funcs import get_model, train_tris_k_epo, train_tris_1epo
from model import P
def train(folder):
ori_triples1, ori_triples2, triples1, triples2, model = get_model(folder)
hits1 = None
if P.epsilon > 0: # using epsilon-truncated uniform negative sampli... | [
"sunzequn@live.cn"
] | sunzequn@live.cn |
87583cd5ecdc59f3aa273ba9d275579ba2975c78 | 133e8c9df1d1725d7d34ea4317ae3a15e26e6c66 | /python/snowflake/test2.py | dc2d6ff0368ae02d8a12d6b4b8018a1dd742043c | [
"Apache-2.0"
] | permissive | 425776024/Learn | dfa8b53233f019b77b7537cc340fce2a81ff4c3b | 3990e75b469225ba7b430539ef9a16abe89eb863 | refs/heads/master | 2022-12-01T06:46:49.674609 | 2020-06-01T08:17:08 | 2020-06-01T08:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | # -*- coding:utf-8 -*-
import gevent
# 导入pysnowflake客户端
import snowflake.client as cli
# 链接服务端并初始化一个pysnowflake客户端
host = '192.168.1.24'
port = 30001
cli.setup(host, port)
signal_stop = False
fp = open("1.txt", 'a+')
def work1():
while 1:
if signal_stop: break
# 生成一个全局唯一的ID(在... | [
"1248644045@qq.com"
] | 1248644045@qq.com |
25e1fe0a7a256c46cf9713bcfdbfb73cbafc0659 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_physical_interface/test_c141741f.py | f2402082940de4eaef28a9d308f3a2ce6e62228a | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,770 | py | import pytest
import time
import sys
from page_obj.scg.scg_def import *
from page_obj.scg.scg_def_log import *
from page_obj.common.rail import *
from page_obj.scg.scg_def_interface import *
from os.path import dirname, abspath
from page_obj.common.ssh import *
from page_obj.scg .scg_def_ipv4acl import *
sy... | [
"15501866985@163.com"
] | 15501866985@163.com |
e7d8d2e3f710d7efd617fadbb8df4f65aabbe932 | edbb63696580638af0084ee318d2c9bc9e8c7e79 | /soupclass8.py | f5ba734171b37b5e0c0a464644a23c8893b1efdb | [] | no_license | awaddell77/Scrapers | fef34e34b8e039f4992497cae75135cdb57b2581 | 0a36fb2c99f2d7b90533834b29c0ba8f27c13a85 | refs/heads/master | 2020-05-21T13:44:06.524855 | 2020-03-16T23:00:45 | 2020-03-16T23:00:45 | 62,753,048 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 38,173 | py | from bs4 import BeautifulSoup as bs
import requests, lxml
import unicodedata
from PIL import Image
import subprocess, os, csv, re, time, codecs
import sys
from os.path import join
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from ... | [
"waddell.andrew@gmail.com"
] | waddell.andrew@gmail.com |
9b392a450ea207ec64ff84df7d7266ec14c8dcc8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/30/usersdata/66/9508/submittedfiles/atividade.py | 16f34cbf7463c7c0ed803d6ee1d9681c23c816b1 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n=input("digite n:")
a=0
i=1
if n<0:
n=n*(-1)
while i<=n:
a=a+i/(n-(i-1))
i=i+1
print("%.5f" %a)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5a5caae8e284fa7c63df3359448fbe781d44d929 | ff23900a911e099595c392a7efab1d268b4f5f7d | /python_modules/dagster/dagster_tests/core_tests/asset_defs_tests/test_asset_selection.py | 0a1c3bf903ec3a41b08909b5deb1d1e05ff30477 | [
"Apache-2.0"
] | permissive | zkan/dagster | bbf2da091bdc7fca028c569db72b9c68ddf55e98 | b2b19edb71fc8985f505b116927350dd23b4a7d9 | refs/heads/master | 2022-08-24T03:20:12.583577 | 2022-08-16T00:01:23 | 2022-08-16T00:01:23 | 244,012,061 | 0 | 0 | Apache-2.0 | 2020-02-29T17:33:24 | 2020-02-29T17:33:24 | null | UTF-8 | Python | false | false | 3,243 | py | # pylint: disable=unused-argument
import operator
from functools import reduce
import pytest
from dagster import DagsterInvalidSubsetError, SourceAsset
from dagster._core.definitions import AssetSelection, asset
from dagster._core.definitions.events import AssetKey
@asset(group_name="ladies")
def alice():
retur... | [
"noreply@github.com"
] | zkan.noreply@github.com |
ee173ca29ace8a4c199bf3f5636f3d95efa23326 | 63cb66189455864a7f5700cf771ca4763f7f0726 | /Python-Scripts/prob4.py | 053410ff184c2c44c47e4bd6b991de8338db0dfc | [] | no_license | minotaur423/Python3 | 463df1cb709ccfd56f6c44e0afd958fa3c1b0565 | b78280a7415fba0bb957cd01ef335981e674d790 | refs/heads/master | 2020-07-05T11:38:17.961199 | 2020-03-23T21:13:37 | 2020-03-23T21:13:37 | 202,638,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | # Minimum of Two
# Of two numbers, please, select one with minimum value.
numbers = '4530935 -7046905 -6053968 -3773809 -720333 -2827580 -3589271 -1194369 -1307901 -7419932 -9402924 4982685 3813773 1740340 7824338 -6500810 -6851464 1953149 -5295578 8531462 -2270289 -4221325 6832977 -9125445 -5010709 -5607113 2783857 76... | [
"minotaur423@me.com"
] | minotaur423@me.com |
77b98f70cf01883b7cc710317dce5593b411d4fc | 590e1ee46ff65cecfd477c76954c585926a1060b | /tools/hikyuu/importdata.py | 4d25c71eb903949a1ba59628589b2b09154c289e | [
"MIT"
] | permissive | teeger/hikyuu | e33b41de3860bbc651d65aced6eb9df8fa040e72 | 4125d8f8a3e16a3332ca249b253bd0a45a01c97f | refs/heads/master | 2021-01-01T17:11:19.067205 | 2017-07-20T17:13:51 | 2017-07-20T17:13:51 | 98,016,169 | 1 | 0 | null | 2017-07-22T07:50:11 | 2017-07-22T07:50:10 | null | UTF-8 | Python | false | false | 1,084 | py | #!/usr/bin/python
# -*- coding: utf8 -*-
# cp936
import urllib.request
import subprocess
import time
import sys
import os
import shutil
import configparser
if __name__ == "__main__":
starttime = time.time()
data_config_file = os.path.expanduser('~') + "/.hikyuu/data_dir.ini"
data_config = configparser.... | [
"fasiondog@163.com"
] | fasiondog@163.com |
894b81251987480a66eb12a1720c7094f7784c2f | 61f2472f7aa9865102ff0fcdf2eaa0f44c125e4b | /plot_lines.py | 66143e5b24b3e3f9a47456dc55c36bc8c21a2a0f | [] | no_license | iancze/Disk | 833ec74925e99cfa9e2351fdae42f246551b1ac1 | e24139d46493e63246bf6853fc774b5d0c371f2d | refs/heads/master | 2016-09-06T16:58:07.967229 | 2013-03-21T16:46:00 | 2013-03-21T16:46:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
img = np.load("img45.npy")
plt.plot(np.arange(0,50,1),img[:,24])
plt.plot(np.arange(0,50,1),img[:,18])
plt.show()
| [
"iancze@gmail.com"
] | iancze@gmail.com |
f219fc412f8f474d200e3b3268acd6ed404545fc | 7ec275c9d212f3dfb25a40fd88d102e8495c83d0 | /tests/test_mysql.py | ed4b173beae921ad3d8db7ff8e1c1e58db62d55c | [
"MIT"
] | permissive | matthew-emw/alembic | 3793c990ae1c96e875633ecd963ef4b1f5673b12 | ced3f89404f9ade93358956cbbdc122832a15e29 | refs/heads/master | 2020-11-25T18:56:34.841230 | 2019-12-16T18:47:38 | 2019-12-16T18:47:38 | 228,802,013 | 0 | 0 | MIT | 2019-12-18T09:14:30 | 2019-12-18T09:14:29 | null | UTF-8 | Python | false | false | 19,404 | py | from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import DATETIME
from sqlalchemy import func
from sqlalchemy import Integer
from sqlalchemy import MetaData
from sqlalchemy import Table
from sqlalchemy import text
from sqlalchemy import TIMESTAMP
from sqlalchemy.engine.reflection import Inspe... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
266c6c1e1bad9d5a4bdc64a6151657ed8941242d | 8287d5ad89328bc0a88624c822c63e46962f4883 | /01/PythonApplication72.py | 0258ac22c1674c3a0a9c3dddb3f5312e0ac30583 | [] | no_license | CA2528357431/python-note-error | 9b12ada3519ab3979f0a1b1f3434693752e690eb | a73c0a133d51e36cdfca303297b8bac64ace96a5 | refs/heads/main | 2023-06-17T06:32:16.554079 | 2021-07-14T08:45:26 | 2021-07-14T08:45:26 | 385,879,057 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | # 异常捕获
try:
x=int(input("num is "))
print(x+1)
except:
print("input error")
print("\ngogogo") | [
"2528357431@QQ.com"
] | 2528357431@QQ.com |
30dc3b83b70681d9e36365f7c345991c608c914c | 195dedd9a5bcfab98178a1b5d3a45e439fa764c7 | /froide/helper/elasticsearch.py | 999238277ce4689ffdf3705089a7ae6b02552e81 | [
"MIT"
] | permissive | AleksiKnuutila/tietopyynto | b0b85b050dfc4b43bf54f842cf44d62f9f604b24 | 4c7438499002e521114daf07f561fd140a21dfbb | refs/heads/master | 2022-12-08T13:52:17.198179 | 2018-03-03T12:57:27 | 2018-03-03T12:57:27 | 123,689,109 | 0 | 0 | MIT | 2022-12-06T16:49:58 | 2018-03-03T12:18:02 | Python | UTF-8 | Python | false | false | 3,009 | py | import logging
from haystack.fields import NgramField
from haystack.exceptions import MissingDependency
try:
from haystack.backends.elasticsearch2_backend import (
Elasticsearch2SearchEngine, Elasticsearch2SearchBackend
)
from haystack.backends.elasticsearch_backend import FIELD_MAPPINGS
except (... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
07fb51a79df00193e3591bc7def8f1b5166ea8cd | d2433a1c66d0482522f348319897ede18198eb8d | /baseline.py | 0ab90d072ee60e8bff25c5bb01305020789d4fe7 | [] | no_license | jizongFox/MixMatch-pytorch | 9a8d61fe0aa3018b10b144d9f85f27972d9172af | 76fb0ba71ad86747eae40c7a2b8bca4449bdb839 | refs/heads/master | 2020-08-22T17:40:55.997515 | 2019-10-22T19:18:45 | 2019-10-22T19:18:45 | 216,450,068 | 0 | 0 | null | 2019-10-21T01:03:07 | 2019-10-21T01:03:03 | null | UTF-8 | Python | false | false | 13,971 | py | from __future__ import print_function
import argparse
import os
import random
import shutil
import time
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.parallel
import torch.optim as optim
import torch.utils.data as data
import... | [
"jizong.peng.1@etsmtl.net"
] | jizong.peng.1@etsmtl.net |
5da64b8b3e3e4b20a075891686682a371ef6be7a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/14/usersdata/2/5103/submittedfiles/tomadas.py | 1ca9014b8f7c5329f5c9e799f36c1042e23d889d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#COMECE SEU CODIGO AQUI
t1=int(input('Digite a quantidade de tomadas de t1: '))
t2=int(input('Digite a quantidade de tomadas de t2: '))
t3=int(input('Digite a quantidade de tomadas de t3: '))
t4=int(input('Digite a quantidade de tomadas de t4: '))
r=... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1379e0007fd8a92788d9491c14679781dbb054e6 | 1f080333f1714ba88d4f41d6ce2676f0b299e05e | /.venv/lib/python2.7/site-packages/pulsar/main.py | eae928c5e06860f694070e3770b9a62247b94263 | [] | no_license | venice-juanillas/EIB-hackathon | b66bf128144dcef893c91af84dc28ff48be08e1b | 6b73babff2b88dccbd5ec2e74bd5737ff0a4270b | refs/heads/master | 2022-11-17T23:52:24.365210 | 2018-04-05T01:56:17 | 2018-04-05T01:56:17 | 120,545,413 | 0 | 1 | null | 2022-10-25T18:54:52 | 2018-02-07T01:19:48 | Python | UTF-8 | Python | false | false | 9,963 | py | """Stand-alone entry point for running Pulsar without a web server.
In its simplest form, this method will check the current directory for an
app.yml and run the corresponding configuration as a standalone applciation.
This makes sense when ``app.yml`` contains a ``message_queue_url`` option so
Pulsar is configured to... | [
"v.juanillas@irri.org"
] | v.juanillas@irri.org |
346416f856df0bfb504d4e4c4d89ea8212a1a537 | f1a3bd9ad5ef76204c24dc96f113c405ece21b6d | /main/migrations/0013_auto__del_chatmessage__del_appearance__del_chatroom__chg_field_competi.py | 8afe06b5b85dda037df2e76db2bdf795822a7c20 | [] | no_license | JamesLinus/solidcomposer | 02f83c3731774e8008d46b418f3bf4fb5d9dab36 | ed75e576ce1c50487403437b5b537f9bfbb6397e | refs/heads/master | 2020-12-28T23:50:06.745329 | 2014-01-24T02:34:41 | 2014-01-24T02:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,437 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'ChatMessage'
db.delete_table('main_chatmessage')
# Deleting model 'Appearan... | [
"superjoe30@gmail.com"
] | superjoe30@gmail.com |
1f66a17b6e6e7fcf42112e7f578bce1b451cbf8f | 4920b6c12dc2427036077d38ed8fa513130418a8 | /bipad_api/bipad_api/models/category.py | c49f67dca9f6c652d86b43bfafde6ac4c94530d5 | [] | no_license | laxmitimalsina/covid_dashboard | d51a43d3ba2ad8a9754f723383f6395c1dccdda5 | ccba8a3f5dd6dbd2b28e2479bda6e581eb23805f | refs/heads/master | 2023-05-29T15:07:32.524640 | 2021-05-03T11:15:43 | 2021-05-03T11:15:43 | 273,698,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,643 | py | # coding: utf-8
"""
BIPAD API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
cl... | [
"laxmitimalsina2017@gmail.com"
] | laxmitimalsina2017@gmail.com |
e996a130ae3e8e349ee5ca36d9849208e1ae92a5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_travel.py | 64808d168274a9e0a3e1c8911044af7d305d4fcb | [
"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 | 590 | py |
#calss header
class _TRAVEL():
def __init__(self,):
self.name = "TRAVEL"
self.definitions = [u'to make a journey, usually over a long distance: ', u'to move or go from one place to another: ', u'If something such as food travels well/badly, it does/does not stay in good condition if it is moved long distances: ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
79c237b1d056c370bba7f97cce69dbff585338c0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03207/s438264335.py | 8862defe545a7c943d0affc1bfdacb7c92e14431 | [] | 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 | 94 | py | n=sorted([int(input()) for _ in range(int(input()))],reverse=True);print(max(n)//2+sum(n[1:])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6f29ffc6d3f59f6406793d8257a73f266cebf417 | 4b42e9f3fbd1dd565d6b47c57f317455b3f346c0 | /client-cffi.py | 7678e2546af9345a028ddc66f1ff63edbb435847 | [
"MIT"
] | permissive | 0xjjoyy/go-cshared-examples | 336c8750426f011a50620a3cb23610ee10c6f81d | 13d35dd3468708cc8181a87577040db8312f00e3 | refs/heads/master | 2022-09-30T16:27:55.805153 | 2020-06-07T16:21:43 | 2020-06-07T16:21:43 | 270,358,048 | 0 | 1 | MIT | 2020-06-07T16:03:44 | 2020-06-07T16:03:43 | null | UTF-8 | Python | false | false | 971 | py | from __future__ import print_function
import sys
from cffi import FFI
is_64b = sys.maxsize > 2**32
ffi = FFI()
if is_64b: ffi.cdef("typedef long GoInt;\n")
else: ffi.cdef("typedef int GoInt;\n")
ffi.cdef("""
typedef struct {
void* data;
GoInt len;
GoInt cap;
} GoSlice;
typedef struct {
const ch... | [
"binet@cern.ch"
] | binet@cern.ch |
23ee7dd1d50c158f655a16d132ccf8456ea3b221 | d2c9e35f7895ce4291a7e0d7a71d5e6e8f05c2a1 | /dependencies/georeference maps/pythongis/vector/fileformats/__init__.py | 5283ee609a0c2348ceb13f4fec28912db55c350c | [
"MIT"
] | permissive | karimbahgat/ToponymGeoreferencingPaper | 23596328c77d781696ae1efcf8f1ad131aef545a | eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f | refs/heads/master | 2023-04-12T18:09:24.292247 | 2021-12-08T12:44:46 | 2021-12-08T12:44:46 | 167,424,976 | 3 | 0 | MIT | 2022-11-22T04:22:13 | 2019-01-24T19:33:11 | Python | UTF-8 | Python | false | false | 163 | py | """
Contains specific fileformat modules and classes that wrap around
the technicalities of each type of format, using the same API for all.
"""
from . import *
| [
"karim.bahgat.norway@gmail.com"
] | karim.bahgat.norway@gmail.com |
6099ff11e2c69e88712d48322a25ed486c5d7206 | 98b63e3dc79c75048163512c3d1b71d4b6987493 | /tensorflow/python/keras/premade/linear.py | f8ea38fa5f660022aa62513806ea668bae76fb76 | [
"Apache-2.0"
] | permissive | galeone/tensorflow | 11a4e4a3f42f4f61a65b432c429ace00401c9cc4 | 1b6f13331f4d8e7fccc66bfeb0b066e77a2b7206 | refs/heads/master | 2022-11-13T11:56:56.143276 | 2020-11-10T14:35:01 | 2020-11-10T14:35:01 | 310,642,488 | 21 | 12 | Apache-2.0 | 2020-11-06T16:01:03 | 2020-11-06T16:01:02 | null | UTF-8 | Python | false | false | 7,386 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
e412f05f8bbd941c26e5fb4c8e2e5350b90ef1d7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03455/s519667153.py | 8bc99346e22c58301e70f7a3b45fc106a0df9aee | [] | 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 | 130 | py | # 1 <= a , b <= 10000
a,b = input().split()
total = int(a) * int(b)
if total % 2 == 0:
print("Even")
else:
print("Odd") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
815fa74406d84cd2c843e0571ab5c266bd917999 | fc0a6e0f9ffa90a2473fec77bc52ea02e9b21f55 | /venv/lib/python3.7/site-packages/akshare/futures_derivative/jyfm_tools_func.py | f727dae9a00b6b387c33f3dd8c00afec8bda6876 | [] | no_license | YixuanSeanZhou/COVID19_Scraping | 3903e697caf406c7d357afd8cc43811d62896244 | b84890c4a5ddef589cd76d1ed8fd4a1976f4e3c4 | refs/heads/master | 2022-09-08T16:14:33.292096 | 2020-05-23T04:26:02 | 2020-05-23T04:26:02 | 266,261,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,901 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Author: Albert King
date: 2020/01/02 17:37
contact: jindaxiang@163.com
desc: 获取交易法门-工具: https://www.jiaoyifamen.com/tools/
交易法门首页: https://www.jiaoyifamen.com/
# 交易法门-工具-套利分析
交易法门-工具-套利分析-跨期价差(自由价差)
交易法门-工具-套利分析-自由价比
交易法门-工具-套利分析-多腿组合
交易法门-工具-套利分析-FullCarry... | [
"thomaszhou2333@gmail.com"
] | thomaszhou2333@gmail.com |
b6702240301b4cfb77f50d0ab35f32d7cea35811 | 11771f5dd90a74d5c76765f27f0d9a9cb044f57b | /route/tool/func.py | 6079710834256c945d7c51e9d5757b2c34046636 | [
"BSD-3-Clause"
] | permissive | openNAMU/openNAMU | cc031ea848ac6d829ad243fcf59da26adf0f0814 | 868107e4ef53e4e78af15c590673b78ee385baa5 | refs/heads/beta | 2023-08-24T10:20:00.245680 | 2023-08-23T14:09:53 | 2023-08-23T14:09:53 | 78,184,261 | 86 | 75 | BSD-3-Clause | 2023-09-13T21:36:03 | 2017-01-06T07:22:10 | Python | UTF-8 | Python | false | false | 104,767 | py | # Init
import os
import sys
import platform
import json
import smtplib
import random
import ipaddress
import subprocess
import email.mime.text
import email.utils
import email.header
# Init-Version
with open('version.json', encoding = 'utf8') as file_data:
version_list = json.loads(file_data.read())
print('Versio... | [
"min08101@naver.com"
] | min08101@naver.com |
7fafe4d9c44018a47cee9ceab6bdbd6967e0e2fd | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/chromite/lib/process_util_unittest.py | 04d1cf2cacead98d8a3be6b0b589842c479314d7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 3,646 | py | # -*- coding: utf-8 -*-
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unittests for the process_util.py module."""
from __future__ import print_function
import os
import signal
from chromite.lib... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
f63c6a76968bc1de9c4ffaa8e06836efe164a3a0 | 6c53a90b60ff6b45642b1043bc0813c1042bf89e | /modules/gevent/core/network.py | 52b99fb51e7cb6fc1ffe71030d5650cedf817862 | [] | no_license | Ralph-Wang/MyPythonCookBook | 9a5779a947fa3ee44a9cd3b9a290457ae7e3a4b4 | 90b9814e87c8c93448e20f1bbeca4173fd0ca482 | refs/heads/master | 2021-06-07T00:52:54.365618 | 2018-04-10T07:38:51 | 2018-04-10T07:38:51 | 25,971,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import gevent.monkey
gevent.monkey.patch_socket()
import gevent
import urllib2
import json
def fetch(pid):
response = urllib2.urlopen("http://localhost:8080/time.php")
result = response.read()
json_result = json.loads(result)
datetime = json_result["date... | [
"ralph_ld@aliyun.com"
] | ralph_ld@aliyun.com |
4c8c470aa55009a5135e43a6d61250800bdcb084 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_084/ch158_2020_04_29_11_41_30_969744.py | 7ee6e3eb0df3145b3b9957459c366420f7f90f6e | [] | 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 | 145 | py | with open('texto.txt','r') as arq:
x=arq.read()
l=[]
l.append(x)
l=x.split(',')
for i in range(len(l)):
c=i
print(c)
| [
"you@example.com"
] | you@example.com |
172a3092151f70ea08ab7cd917d52b5b9178d896 | 4d3999e06a63989cd4dc7fe928940e0ca533cbd4 | /swagger_client/models/body80.py | 4b778751a25263206f3f215023bef78286013977 | [] | no_license | ribaguifi/orchestra-client-python | c8f1c4b9760c2df173222bb5bcaf73b231d2b4bb | a211f7f6c0353f4476176c6c2fed11a2be553db8 | refs/heads/main | 2023-06-03T00:28:57.108274 | 2021-06-22T12:22:28 | 2021-06-22T12:22:28 | 379,258,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Body80(ob... | [
"santiago@ribaguifi.com"
] | santiago@ribaguifi.com |
0f7324893345909e6bd84eaa00790ab3560f237e | b735a7bb48572788e4d7b9bbfc281341affc9fbf | /src/striga/core/executor.py | 415d7a8f5e5b033b32de2a16d06e1ebfc65553bb | [
"MIT"
] | permissive | ateska/striga | 6489cfb04bd163d88aec92a2bc108afd13738efb | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | refs/heads/master | 2021-01-22T04:09:26.931513 | 2017-09-03T12:33:20 | 2017-09-03T12:33:20 | 102,263,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | import Queue, logging as L
import striga.core.exception
###
class Executor(object):
'''
Executor class is implementation of 'deffered execution' pattern.
It is wrapper on Queue object where you can put callables that will be called later
possibly from other thread.
Start/Stop:
_StartExecutor
_StopExe... | [
"ales.teska@teskalabs.com"
] | ales.teska@teskalabs.com |
3400aab058c58b9c8b5f063b8d370cdf1f040ff6 | 4ef058858c4f7e3f2ba4b540d3def83a289f2cf5 | /tests/community/test_notion.py | d38e03d13cad172a0071116e0621fa771d614b5b | [
"Apache-2.0"
] | permissive | soasme/runflow | 13c86f1b3d0fcebef9a5805d27d5dc5837f37b24 | b23086c2487a157b8c2d40f6225a1bcd9e8b6c60 | refs/heads/main | 2023-06-15T05:58:29.736445 | 2021-07-13T04:05:27 | 2021-07-13T04:05:27 | 347,520,694 | 7 | 1 | Apache-2.0 | 2021-07-13T03:56:37 | 2021-03-14T01:46:30 | Python | UTF-8 | Python | false | false | 672 | py | import pytest
from runflow import runflow
pytest.importorskip("notion_client")
def test_update_notion_title(mocker):
client = mocker.MagicMock()
mocker.patch("notion_client.AsyncClient", client)
runflow(
path="examples/notion_update_title.hcl",
vars={
"notion_token": "any",
... | [
"soasme@gmail.com"
] | soasme@gmail.com |
e74b1e6797551fd7fd12b6b2e04f34c8d6deaff1 | c1f6de6ba19e5d288e3b3ed60ba731992549d090 | /triggerflow/service/worker.py | 984aaf2fae6f99dbb8954a5d9915d9db68c74036 | [
"Apache-2.0"
] | permissive | aslom/triggerflow | 2d74ad6996806418fdd54d47111028a7d60e5e74 | 861c32f5a6004c6e55e270d24e19f58adbf3bfff | refs/heads/master | 2022-11-06T03:20:54.860109 | 2020-06-23T12:45:30 | 2020-06-23T12:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,900 | py | import logging
import traceback
from uuid import uuid4
from enum import Enum
from datetime import datetime
from multiprocessing import Process, Queue
from threading import Thread
from collections import defaultdict
from . import triggerstorage
from . import eventsources
from .conditions import default as default_condi... | [
"aitor.a98@gmail.com"
] | aitor.a98@gmail.com |
93e5552915128e12d4cfc8b0ce388819b78c7271 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnn1365.py | 9f8bd5b260d53184db3785b186554f1efad625ba | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 141 | py | ii = [('RoscTTI3.py', 1), ('CrokTPS.py', 1), ('DaltJMA.py', 2), ('MereHHB3.py', 5), ('MereHHB.py', 3), ('StorJCC.py', 1), ('MereHHB2.py', 2)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
8cb884bc4e5afddda1795cbd6239817a0170d2d2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03000/s520644884.py | 29a5961b4ea33b06b1868b14deb656aa9b1a89d2 | [] | 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 | 183 | py | n, x = map(int, input().split())
a = list(map(int, input().split()))
l = [0] * (n+1)
for i in range(n):
l[i+1] = l[i] + a[i]
ans = 0
for i in l:
if i <= x:
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2f68f5d4f5096ed3d02f4445ee1175e535e2453d | 4e66ef0a2a8bfa6f3e28f9da3e21d72da2d10218 | /blog/migrations/0002_comment.py | e7c614203e3432c4433a8a3332e44a479ee4084e | [] | no_license | ethyl2/blog_with_django | e5a3d76e67ece9f5ccea8fd19c6600f12405ef94 | 27113accd856275a18cd4a79b3c81017712af9bd | refs/heads/master | 2020-12-02T12:44:00.837842 | 2017-08-04T06:15:17 | 2017-08-04T06:15:17 | 96,583,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-01 23:26
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
... | [
"zzzuzz@gmail.com"
] | zzzuzz@gmail.com |
6e23aaf27bb4940488fa21496216e567af254023 | 312ab41033c2cb043d617d3e633c166503fd280c | /Informatikk/Master/V2021/metoderiai/ovinger/oving2/hmm.py | ef966cd7111a33e031a0d627af237bbb10e1b19f | [] | no_license | skanin/NTNU | cb9b833d9de0d504965979584370b8f353435cd1 | e4023856f69060f8d3d09ff4990e29f7a75d98b1 | refs/heads/master | 2022-01-30T14:31:22.947512 | 2022-01-20T14:11:14 | 2022-01-20T14:11:14 | 113,476,017 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,902 | py | import numpy as np
class HiddenMarkovModel():
def __init__(self, transition_probabilities, emission_probabilities, start_probabilities):
self.transition_probabilities = transition_probabilities
self.emission_probabilities = emission_probabilities
self.start_probabilities = start_probabiliti... | [
"sander.b.lindberg@gmail.com"
] | sander.b.lindberg@gmail.com |
cfa56c647df30955c37da9d94bd099b65f9a9649 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class2183.py | eccca375a9b5cc827c4c2809a7a2a27fecae15f8 | [
"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 | 4,162 | py | # qubit number=4
# total number=39
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
de4c55a261af30401d7bf324c487b9a6bed50385 | 6c839a8ad267fe7585288e50cff3e9e12006cba3 | /python/qidoc/test/projects/translateme/source/conf.py | 4b581714e61874976f7e3460f2b8e2ad96b24eea | [
"BSD-3-Clause"
] | permissive | Supremeylb/qibuild | 2e89dfa9213a0834da30cbeb47eb8967740b716b | 800105f5dd7a3d45df1f06844066ff6edeec2ac0 | refs/heads/master | 2021-07-11T20:27:54.619718 | 2017-09-25T08:32:36 | 2017-09-25T08:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | ## Copyright (c) 2012-2015 Aldebaran Robotics. All rights reserved.
## Use of this source code is governed by a BSD-style license that can be
## found in the COPYING file.
project = 'translateme'
master_doc = 'index'
locale_dirs = ["locale/"]
gettext_compact = False
extensions = ["sphinx.ext.ifconfig"]
language = 'en'
| [
"dmerejkowsky@aldebaran-robotics.com"
] | dmerejkowsky@aldebaran-robotics.com |
30b3f5e6b8dd7acc409b18a60c49aefed1b3f8f3 | 96c970ebacd9ade1493f4d01537005788b43a49b | /pychron/mv/zoom_calibration.py | a3da0918e179f89d25f62401cbcf0f0ef19368d3 | [
"Apache-2.0"
] | permissive | OSUPychron/pychron | d2da9051b68024200d0009de634da810ccef2a0d | fe0ba9daff9548fa8bebab26db66a1cefff7c1d6 | refs/heads/master | 2021-01-14T12:47:26.389887 | 2015-12-18T22:27:02 | 2015-12-18T22:27:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,232 | 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
a12aa6461879925c067b7f14a46b012a28b24ec7 | 2ec14fd1724fc8959e1d3a1b4d3f61d5c0cf6f48 | /test/functional/rpc_misc.py | 01bb98704702568b7cbfdaeff5d9986135c35593 | [
"MIT"
] | permissive | vitae-labs/Vitae | 7ddf8142d1e663f406399ec17de1c7bbba5e32fd | fa301e714cb26e742cfe29164a25961f1ff6d52c | refs/heads/main | 2022-07-28T15:48:24.765770 | 2022-01-29T06:13:19 | 2022-01-29T06:13:19 | 451,559,855 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Bitcoin Core developers
# Copyright (c) 2020-2021 The Vitae Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC misc output."""
import xml.etree.ElementTree a... | [
"hemant.singh.leu@gmail.com"
] | hemant.singh.leu@gmail.com |
fd69692308c8bd12e17d7144bed851c4272c78be | 92d0464cf6fcb3bc2f70578d026c1ce02ec71012 | /geemap/utils.py | 4f516642cea11a47496ffe094d3e7f7f8281a8df | [
"MIT"
] | permissive | HurriCaneBQL/geemap | 9c8b9ee7aaa89675a15e7bc7ed8b9efbd2dbc05c | 6e65a0617a04a26582420eec104a6c8d8a6050ab | refs/heads/master | 2022-11-16T02:33:01.644588 | 2020-07-08T00:32:05 | 2020-07-08T00:32:05 | 278,059,741 | 1 | 0 | MIT | 2020-07-08T10:29:21 | 2020-07-08T10:29:20 | null | UTF-8 | Python | false | false | 20,238 | py |
"""Module of various Earth Engine utility functions.
"""
import os
import ee
def ee_initialize(token_name='EARTHENGINE_TOKEN'):
"""Authenticates Earth Engine and initialize an Earth Engine session
"""
try:
ee_token = os.environ.get(token_name)
if ee_token is not None:
credenti... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
73cee0ced6185306292e96f9ab04ff73888a1034 | 145129d75d8255e609cdaf1bc9aa66424e4de0d1 | /pattern14.py | 9402d4f59e45b58be30fa126553ebf14e38a22c8 | [] | no_license | Neeraj-kaushik/coding_ninja | 7ca2d004b149ff0193400569864c48749e331aca | 23eb74bb8d4d80032b58c1408ac445aa87037a49 | refs/heads/master | 2022-11-07T19:43:05.869574 | 2020-06-19T17:31:34 | 2020-06-19T17:31:34 | 267,366,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | n= int(input())
n1=(n+1)/2
n2=n/2
i=1
while i<=n1:
space=1
while space<=i-1:
print(' ',end="")
space+=1
j=1
while j<=i:
print("*",' ',end="")
j=j+1
print()
i=i+1
i=1
while i<=n2:
space=1
while space<=n2-i:
print(' ',end="")
space+=1
j=1... | [
"nkthecoder@gmail.com"
] | nkthecoder@gmail.com |
58e68c654d5d58d5d45f28a45f542a66b4486d6c | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/thirdGreatest_20200626150451.py | 4d434d3d92ac15bfc9446b37929cf6f0c85ab03f | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | def third(arr):
Min = len(arr[0]) # gets the length of the first word
world = arr[0]
for i in range(len(arr)):
if len(arr[i]) <= Min:
world = arr[i]
print(world)
third(["hello","world","world"]) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
41976d5ff5074bc64f7a55a189ca2a2332cd1df4 | 48734afd8b92f1fed71abc7f45cac772395cbe2c | /internal/source/query/ml_phase/bag_worker/scorers/count_LDA_scorer.py | 7e29517ee495e14bffb5a3c016db4f6a4e873ceb | [] | no_license | AthenaWisdom/standalone_scorer | 70c750060ea0476105d427fd39a2e34343673a82 | 8a76dd97aedec964a53182d92c26d6cb155bda36 | refs/heads/master | 2023-04-07T21:36:28.175460 | 2019-09-18T09:47:24 | 2019-09-18T09:47:24 | 150,236,080 | 0 | 0 | null | 2023-03-31T14:32:20 | 2018-09-25T08:59:52 | Python | UTF-8 | Python | false | false | 4,630 | py | __author__ = 'Igor'
import numpy as np
import scipy as sp
from source.query.ml_phase.bag_worker.scorers.bag_scorer import BagScorer
"""
Complexity:
heaviest part evaluation of bags (applying count scorer thousands of times)
All binning are upper bounded by 10, so number of bags is mostly dependent on number of FILEs ... | [
"yuvalgak@gmail.com"
] | yuvalgak@gmail.com |
070c0926b0f298d66bbc14fda85c77561b9d469a | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Reconstruction/RecJobTransforms/scripts/RDOMerge_tf.py | 465798c84232256ffd8a6f29fc4612f3131e11a6 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,138 | py | #! /usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# @version $Id: RDOMerge_tf.py 710146 2015-11-24 10:37:59Z graemes $
import sys
import time
import logging
# Setup core logging here
from PyJobTransforms.trfLogger import msg
msg.info('logging set in %s' % sys.argv[0]... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
92cc110e90fa3e10c2c017340738086ce4cd9822 | ed90fcbfd1112545fa742e07131159bb3a68246a | /smry/server-auth/ls/google-cloud-sdk/lib/googlecloudsdk/dns/commands/record_sets/transaction/remove.py | 8238df93f127a720ada77bae62eae8862f216a2f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | wemanuel/smry | 2588f2a2a7b7639ebb6f60b9dc2833f1b4dee563 | b7f676ab7bd494d71dbb5bda1d6a9094dfaedc0a | refs/heads/master | 2021-01-10T21:56:55.226753 | 2015-08-01T13:37:06 | 2015-08-01T13:37:06 | 40,047,329 | 0 | 1 | Apache-2.0 | 2020-07-24T18:32:40 | 2015-08-01T13:26:17 | Python | UTF-8 | Python | false | false | 2,813 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""gcloud dns record-sets transaction remove command."""
from googlecloudapis.apitools.base import py as apitools
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import exceptions
from googlecloudsdk.core import log
from googlecloudsdk.core impo... | [
"wre@thenandchange.org"
] | wre@thenandchange.org |
78f0306d674ff7d89eb0a9bb434ac804dff7555e | 18f8abb90efece37949f5b5758c7752b1602fb12 | /py/django_tools/feincms/feincms/module/page/templatetags/feincms_page_tags.py | 42f40209a977ae20d7146be16fd41c7716b52a5f | [
"BSD-2-Clause"
] | permissive | marceltoben/evandrix.github.com | caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516 | abc3fbfb34f791f84e9a9d4dc522966421778ab2 | refs/heads/master | 2021-08-02T06:18:12.953567 | 2011-08-23T16:49:33 | 2011-08-23T16:49:33 | 2,267,457 | 3 | 5 | null | 2021-07-28T11:39:25 | 2011-08-25T11:18:56 | C | UTF-8 | Python | false | false | 11,296 | py | from django import template
from django.conf import settings
from django.http import HttpRequest
from feincms.module.page.models import Page, PageManager
from feincms.utils.templatetags import *
from feincms.utils.templatetags import _parse_args
register = template.Library()
# --------------------------------------... | [
"evandrix@gmail.com"
] | evandrix@gmail.com |
5bf284e9f229119fd9345299057fcaa908cd837f | 747b4ab1f5e79a1a5aff743130f25c2cdbad7f01 | /home/base_util.py | 51a891933fe5c40ebdb0f535b80851da6c4064f8 | [] | no_license | madmax330/homemediaserver | 2ec92540b31da730e3cbf086d2c95de813313c5c | d647f8cab0e972334b6f7c7b9a1b17b124d4a67d | refs/heads/master | 2021-06-27T06:36:45.349038 | 2020-01-09T17:37:43 | 2020-01-09T17:37:43 | 232,868,028 | 0 | 0 | null | 2021-06-10T22:28:26 | 2020-01-09T17:40:00 | JavaScript | UTF-8 | Python | false | false | 1,144 | py | from .forms import NewMessageForm
class BaseUtil:
def __init__(self):
self._name = 'Base Util'
self._form = None
self._user = None
self.__errors = []
def add_error(self, err):
self.__errors.append(err)
def get_errors(self):
return self.__errors
def g... | [
"madmax330@yahoo.com"
] | madmax330@yahoo.com |
56274c4232c922cd534fd8845d239dd3d999ac15 | bf723cb4388474932638fef6b1bc6b72582f2c6c | /Move Zeroes.py | 17c20b8957a6cf119b88e1a1208b28f89dfd4b6c | [
"MIT"
] | permissive | Eurus-Holmes/LCED | b49b7df277c88edc3b15b7b578d414296972bf08 | 6edefc9e65a26e28dc2b0201d89f0578391ff195 | refs/heads/master | 2021-06-08T03:03:48.324481 | 2019-11-04T11:14:30 | 2019-11-04T11:14:30 | 144,397,878 | 12 | 1 | null | 2018-11-16T02:21:13 | 2018-08-11T15:46:27 | Java | UTF-8 | Python | false | false | 403 | py | class Solution(object):
def moveZeroes(self, nums):
"""
:type nums: List[int]
:rtype: None Do not return anything, modify nums in-place instead.
"""
i = 0
for num in nums:
if num != 0:
nums[i] = num
i += 1
for j in x... | [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
50c033ce8984f4dac5b4750a4dded896f1dae06d | ce1b53a7461610fa50568a29a713a906fbac7409 | /rendereasy/cna/interfaces/album.py | 53d12231eec35333b7ab8d71dca8634783110b43 | [] | no_license | lflrocha/rendereasy.cna | d5b35afedc985bad803539936e2f62efa859f72a | 8c6a4d6f6631f8aa6b9f145ca87faf34a8474b66 | refs/heads/master | 2022-01-17T22:35:39.800684 | 2019-07-13T18:33:56 | 2019-07-13T18:33:56 | 110,979,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from zope.interface import Interface
# -*- Additional Imports Here -*-
from zope import schema
from rendereasy.cna import cnaMessageFactory as _
class IAlbum(Interface):
"""Description of the Example Type"""
# -*- schema definition goes here -*-
downloadlink = schema.TextLine(
title=_(u"Downloa... | [
"lflrocha@gmail.com"
] | lflrocha@gmail.com |
5f0a70699e2d82232fa35e148c3cbe096a82296c | c4702d1a06640555829b367852138cc93ba4a161 | /dym_report_jualbysalesman/wizard/dym_report_jualbysalesman_wizard.py | 452bb1a25053f671d54e60d690d9d5539d62e5f3 | [] | no_license | Rizalimami/dym | 0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26 | af1bcf7b77a3212bc8a8a0e41e6042a134587ed4 | refs/heads/master | 2020-04-08T10:56:43.605698 | 2018-11-27T06:44:08 | 2018-11-27T06:44:08 | 159,287,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from openerp.osv import orm, fields, osv
from lxml import etree
class dym_report_jualbysalesman_wizard(orm.TransientModel):
_name = 'dym.report.jualbysalesman.wizard'
_description = 'Report Penjualan By Salesman'
_columns = {
'branch_ids': fields.many2many('dym.branch', 'dym_report_jualbysales... | [
"rizal@portcities.net"
] | rizal@portcities.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.