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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
773a9c950dadebe96e322008747406a0b9f8f0f6 | e2590e0a78046a22131b69c76ebde21bf042cdd1 | /ABC201_300/ABC272/A.py | 57474a572cc278ecffea8eee32d6d0c291f2f408 | [] | no_license | masato-sso/AtCoderProblems | b8e23941d11881860dcf2942a5002a2b19b1f0c8 | fbc02e6b7f8c6583e5a4e5187463e0001fc5f4d8 | refs/heads/main | 2023-01-22T23:57:58.509585 | 2023-01-21T14:07:47 | 2023-01-21T14:07:47 | 170,867,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py |
N = int(input())
A = list(map(int, input().split()))
ans = sum(A)
print(ans) | [
"masato@seijinnoMacBook-Pro-2.local"
] | masato@seijinnoMacBook-Pro-2.local |
a3893b7af600fd02fcdec99a9b9be57297add3f2 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/DeleteAutoSnapshotPolicyRequest.py | 488788217b53df32f58597a4bf291be7c188d000 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,491 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
1645c6cad013926349e1d26ee8c6295279aa6bc1 | e87893e47c134854adca03ae7e7a4a3cce2188a4 | /mse-20190531/setup.py | bc7b227a4a6870c4f32d4f7dd26ecbb17f71a8a1 | [
"Apache-2.0"
] | permissive | hazho/alibabacloud-python2-sdk | 29ebddd9fc1828c7c9bedafb4ea22a07435455fd | c3e320c44b8f2584f520219dda3904554041648b | refs/heads/master | 2023-07-01T17:52:09.632578 | 2021-08-02T06:58:54 | 2021-08-02T06:58:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | # -*- coding: utf-8 -*-
"""
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
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
105b746bfb0c97536f34cf858a0f2402bb81e241 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /GPibesdkGf433vHBX_4.py | 085b9b67bd5f7f6a637897c9ec9a03391dfa0879 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | """
[Goldbach's Conjecture](https://en.wikipedia.org/wiki/Goldbach%27s_conjecture)
is amongst the oldest and well-known unsolved mathematical problems. In
correspondence with [Leonhard
Euler](https://en.wikipedia.org/wiki/Leonhard_Euler) in 1742, German
mathematician [Christian
Goldbach](https://en.wikipedia.org/wik... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1a5b3bb032a2e5672df0376a092d182290d421e5 | 5391e92d4d197da8ec995806658700e4580c4894 | /cv-deeplearning/model.py | c3c73a47311d25de79d4f04c1af37648fe5d97a9 | [] | no_license | dw363851601/EmotionRecognitionOnHologram | cf34470c1039dbe9302c17125366ead42a2eb05f | dff5be0cd0d169331a83e3edc3f27f690eddea07 | refs/heads/master | 2020-12-09T19:07:26.059968 | 2016-12-25T06:22:04 | 2016-12-25T06:22:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,178 | py | # Simple CNN model for CIFAR-10
import numpy
import matplotlib.pyplot as plt
from time import time
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import Flatten
from keras.constraints import maxnorm
from keras.optimizers import SGD
from keras.layer... | [
"antlowhur@yahoo.com"
] | antlowhur@yahoo.com |
8c6d42028956d013e3fb9bda34c34f18cb040c10 | 089541b30391d590aa172936ed64f331923e440f | /fxakeys/fxaoauth.py | 592a7fc477c82d06ba8f70bd24bb27e24572daf8 | [] | no_license | tarekziade/fxakeys | a998e24929fdb27f3f69f52c2c12b3731b5cc400 | facad48d518d4818b1069960640682608da5a201 | refs/heads/master | 2021-01-20T06:59:52.348423 | 2015-01-20T20:45:39 | 2015-01-20T20:45:39 | 28,179,114 | 0 | 1 | null | 2015-01-05T16:46:19 | 2014-12-18T10:32:49 | Python | UTF-8 | Python | false | false | 1,197 | py | # uses https://github.com/mozilla/PyFxA/tree/rfk/assertion-and-oauth-helpers
import os
from fxa.oauth import Client as OAuthClient
from fxa.core import Client
EMAIL = os.environ.get('FXA_USER', "tarek@mozilla.com")
PASSWORD = os.environ.get('FXA_PASSWORD')
CLIENT_ID = "021fd64aa9661fa1"
AUTH_SERVER = "https://stable.... | [
"tarek@ziade.org"
] | tarek@ziade.org |
55ada8edacc7dbd44e9c4294403ba8ca33aed17d | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/EcoAppInfo.py | 95dc9ca38d46125d73ceee06c93ff6531c17d02c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,316 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class EcoAppInfo(object):
def __init__(self):
self._app_code = None
self._app_name = None
@property
def app_code(self):
return self._app_code
@app_code.setter
... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
7d4056153f8243a56f753b468a645df7976d8a59 | 20a9787564f76ae0fcf2332a8655b21bae0646a3 | /PnC_Problems/combinations.py | 2f94b3a5dcb2fa7f07f1e4a0cdacbb70cd6afcba | [] | no_license | nidhiatwork/Python_Coding_Practice | 3b33a40c947413c2695d3ee77728fa69430f14cd | 9d5071a8ddcda19181d3db029fb801d4e3233382 | refs/heads/master | 2023-02-08T20:50:47.522565 | 2023-02-04T10:04:10 | 2023-02-04T10:04:10 | 194,607,759 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | '''
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
Input: n = 4, k = 2
Output:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]
'''
class Solution:
def combine(self, n, k):
def backtrack(first = 1, curr = []):
# if the combination is done
... | [
"nidhi.bhushan123@gmail.com"
] | nidhi.bhushan123@gmail.com |
a00322efe87cdb1e528958949461479c35ff71ce | acda0bc700943654156d491eaa0b766bea0ae7bd | /apps/reportes/excel_compras.py | b78ac0a88cf1eac3c8baf532c20afa3e3216eeac | [] | no_license | bluehawkarthur/casa_campo | a11baaec966d51a1e733ad2dd48bb77a0ecd6cb5 | 22a57b58a722769e8e25330457ed868d230f5c05 | refs/heads/master | 2021-01-18T15:05:47.674205 | 2016-10-26T20:03:55 | 2016-10-26T20:03:55 | 68,387,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,736 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import StringIO
import xlsxwriter
from django.utils.translation import ugettext
from django.db.models import Avg, Sum, Max, Min
import decimal
from apps.compras.models import Compras
def WriteToCompras(weather_data, fecha_de, fecha_a, total, town=None):
output = StringIO.... | [
"josedanielf9@gmail.com"
] | josedanielf9@gmail.com |
9ff992753acc8984026428d8344c247f599cf9bf | ec5650aaa12fceaf77f6f59f843bf984d79b39cd | /adv.py | 43c3310d024d248ee024d17b1435abbc6abd2f9f | [] | no_license | cvandeyar/calculator_1_exercise | 17a0ea46ccc18f6821f2383f25bb7fb13241a9cc | 1e912b13e09ce4826d07f04f1e8587162d309b9d | refs/heads/master | 2020-06-18T13:30:07.959272 | 2019-07-11T03:50:22 | 2019-07-11T03:50:22 | 196,317,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | """Advanced functions for calculator."""
from arithmetic import add, cube, multiply
# NOTE: to actually have these work, you'll need to copy these functions
# into arithmetic.py --- that's where calculator.py will look for them!
def add_mult(num1, num2, num3):
"""Add num1 and num2 and multiply sum by num3."""
... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
bfe7b5964fe4bc6859511d7d8b9fe6b87fbbffd9 | fe5a6394e09b88dfc13279f56a4dab4cf9f15e52 | /source_py2/python_toolbox/caching/cached_property.py | de41e0f46b829fbd48d8bae582134d21b45d8a3c | [
"Python-2.0",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | alilosoft/python_toolbox | acba8f93d675650eac7f9313177af28e0388f2e0 | 7ba9d35d82a99eb243117e850a2b4b2058cd24fc | refs/heads/master | 2022-10-14T10:21:32.693760 | 2019-04-23T09:01:30 | 2019-04-23T09:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | # Copyright 2009-2017 Ram Rachum.
# This program is distributed under the MIT license.
'''
Defines the `CachedProperty` class.
See its documentation for more details.
'''
from python_toolbox import decorator_tools
from python_toolbox import misc_tools
class CachedProperty(misc_tools.OwnNameDiscoveringDescriptor):
... | [
"ram@rachum.com"
] | ram@rachum.com |
5377d6c3bc12039277ba4a6274799c98a98841ed | 2c942aec676880cd1a80251005f6d8a3f6fe605a | /aoc/2020/2020_07.py | ed0a067e85ab1bf25c3a24d18cb54583fd04abdb | [] | no_license | rsprenkels/python | 53ac1c89b5d60642f1a0c692a8bbac6b6d99d4c0 | 1e621ed146bdc52b735613c124a1bab36a36a39a | refs/heads/master | 2021-06-24T03:37:05.056202 | 2020-12-21T17:19:24 | 2020-12-21T17:19:24 | 151,983,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | def read_input():
with open('2020_07.txt') as f:
lines = [line.rstrip().rstrip('.') for line in f.readlines()]
result = {}
for line in lines:
bagtype, contents = line.split(' contain ')
bagtype = bagtype.rstrip(' bags')
result[bagtype] = {}
fo... | [
"ron.sprenkels@gmail.com"
] | ron.sprenkels@gmail.com |
97e2c939bed93a40d9cf934a4a00623c788ee443 | 210e1cffcd8a705c2a8a1485ed5532b9169f5d10 | /whoville/cloudbreak/models/cloud_storage_supported_response.py | 4e79c1e6195a5984637baff6fb34b531912f8e8f | [
"Apache-2.0"
] | permissive | mikchaos/whoville | 2a45bc6636d448733d8d2368ac88a980cf6954ea | 6eabaea4b74ac0b632c03db8252590131c6ce63b | refs/heads/master | 2020-04-19T08:53:04.430990 | 2019-01-29T05:01:57 | 2019-01-29T05:01:57 | 168,092,002 | 0 | 0 | Apache-2.0 | 2019-01-29T05:00:06 | 2019-01-29T05:00:06 | null | UTF-8 | Python | false | false | 4,863 | py | # coding: utf-8
"""
Cloudbreak API
Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud... | [
"chaffelson@gmail.com"
] | chaffelson@gmail.com |
b66ecac904b0bfc74639f495c782e2ab42fead17 | 4ef3f7344de72d4a6f6275b19bec8b8e76950ace | /web_dynamic/3-hbnb.py | 640c44b363bd3fbcf5f796f18cac9599d85358e3 | [
"LicenseRef-scancode-public-domain"
] | permissive | Nukemenonai/AirBnB_clone_v4 | 72f0eb179724ca6323149180fafd26c412b71c3d | 02235f6da53a637e56b5ce2be54fc7f07493446e | refs/heads/master | 2022-07-16T08:44:35.953496 | 2020-05-20T23:12:20 | 2020-05-20T23:12:20 | 264,218,864 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | #!/usr/bin/python3
""" Starts a Flash Web Application """
from models import storage
from models.state import State
from models.city import City
from models.amenity import Amenity
from models.place import Place
from os import environ
from flask import Flask, render_template
import uuid
app = Flask(__name__)
# app.jinja... | [
"david.giovanni.ovalle@gmail.com"
] | david.giovanni.ovalle@gmail.com |
288dae2ca1120785a4fb38575e6ba3c6d60a8819 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02676/s175559403.py | 24586eac2a3d237870ed433bfac6dbdfcc159dad | [] | 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 | 107 | py | K = int(input())
S = str(input())
SK = S[0: (K)]
if len(S) <= K:
print(S)
else:
print(SK + '...') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8b5f499bd346e63e8214aa9c699e9dd6034d93ee | f70d80def7ee61ed2e27b7bafbc277d47c8079c7 | /projects/migrations/0001_initial.py | 7dcbb5f0adfc9bbad994b0158f267a62e54b947b | [] | no_license | Patrick322/portfolio-2 | ff60c29f09b2c6f03455b5ad3a30a125cbce450a | 915ced53d1b0b0cabb2e5c62b238dbd538d59666 | refs/heads/master | 2022-10-02T09:36:56.577804 | 2020-02-28T08:54:32 | 2020-02-28T08:54:32 | 243,439,553 | 0 | 0 | null | 2022-09-16T18:18:49 | 2020-02-27T05:34:35 | Python | UTF-8 | Python | false | false | 1,046 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-02-27 13:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='descript... | [
"patrickbuong@gmail.com"
] | patrickbuong@gmail.com |
af59836612ad8fd2f5f8b9b44b0ae3f143456af1 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/recoveryservices/azure-mgmt-recoveryservicessiterecovery/azure/mgmt/recoveryservicessiterecovery/aio/operations/_replication_alert_settings_operations.py | 943e0351e9ac5441785219a768b5915373dc174e | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 11,783 | 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"
] | adriananeci.noreply@github.com |
aed82e441b85ed4312cf3aa9291086f440ce7e11 | 7b15c40c00ba2008024979d0e520a922bc2f8229 | /mianshi_prep/AMZ_VO_prep/hard_questions/0460_LFU_Cache.py | f7be806c8edd772df40005d567baa264e1b0471c | [] | no_license | axd8911/Leetcode | aa9875a5b55c7d5e961d9a3ea55823d06eb08a88 | 1c6cab14f4dac4f3f29f1b5ce13bb5289724fdb4 | refs/heads/master | 2022-07-07T12:59:38.251218 | 2021-06-22T06:27:05 | 2021-06-22T06:27:05 | 173,857,144 | 0 | 1 | null | 2022-06-22T01:22:30 | 2019-03-05T02:23:42 | Python | UTF-8 | Python | false | false | 2,199 | py | class Node:
def __init__(self,key,val,freq):
self.key = key
self.val = val
self.freq = freq
self.prev = None
self.next = None
class LFUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self.dic = {}
self.head = {}
self.t... | [
"axd8911@hotmail.com"
] | axd8911@hotmail.com |
390c04d988cf787118d6a25b2b9352c333a2e08d | a90bff90507da296d3a021e31db128f4b40f2836 | /db_setup/chlamdb-load-refseq-homology-search.py | dad2e49599bc5da88048e7f0c503bd6dba4b2bc5 | [] | no_license | CarraraAlessia/chlamdb | b6b84fcaadbdbac66baa573d7440b9bbd6403994 | af18c8d05621da46029f24bc3d2df870082b6904 | refs/heads/master | 2023-06-25T23:39:05.235022 | 2021-06-17T13:28:09 | 2021-06-17T13:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,521 | py | #!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
# Load blast/plast/diamond results into biosql databas
# Author: Trestan Pillonel (trestan.pillonel[]gmail.com)
# Date: april 2019
# ---------------------------------------------------------------------------
def load_blastnr_file_into_db(locus_tag2taxon_id,
... | [
"trestan.pillonel@gmail.com"
] | trestan.pillonel@gmail.com |
1711ac75a5a82d904e2a11ea02136e499ef4108e | 82e7b27cc4377def80c2b475645d502e40a0e498 | /newsletter/migrations/0005_auto_20160125_0254.py | 69d79829f179eb4c077d4a43f0335481bb1b1b4e | [] | no_license | craYBoi/bryte | 850698e735a08ea10a08a78dc9e23b7e760c682f | d2b5a74d200ccb06cc3ef4e3180b83cbc338ce3e | refs/heads/master | 2022-12-12T08:54:56.863372 | 2017-06-28T05:03:32 | 2017-06-28T05:03:32 | 63,019,677 | 0 | 0 | null | 2022-11-22T01:00:25 | 2016-07-10T21:44:41 | CSS | UTF-8 | Python | false | false | 448 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-25 02:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0004_price_stripe_price'),
]
operations = [
migrations.AlterFi... | [
"baoyuyang@Yuyangs-MacBook-Pro.local"
] | baoyuyang@Yuyangs-MacBook-Pro.local |
90f4fc6a5ec9d9d136150f6ea46628bf52e36d88 | 18dba2f82e17873e5e8161e74bc714ef88b09b36 | /realestate/estatebase/helpers/functions.py | 779f670f3d442fe73466b6d13824bd9a723543d7 | [] | no_license | sanchellius/estate-agent | 8013573624b62ea3b6362fa0c22edf8371ca6966 | 53c15c2f2c970bd432ae579b5aa6f76ab2fbac49 | refs/heads/master | 2021-01-17T21:15:35.988578 | 2016-07-25T21:51:24 | 2016-07-25T21:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | from django.http import QueryDict
import re
from decimal import Decimal
from urlparse import urlparse
from django.utils.encoding import iri_to_uri
def safe_next_link(full_path):
q = QueryDict('', mutable=True)
next_url = urlparse(full_path).path
next_query = iri_to_uri(urlparse(full_path).query)
... | [
"picasso75@yandex.ru"
] | picasso75@yandex.ru |
9fb2e995488929466afd0c299777848ab6ecd18e | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/20dbfc68-5cc5-11e4-af55-00155d01fe08.py | 79ab6a9dabb325804e657801054778d7a284d0b6 | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | #!/usr/bin/python
################################################################################
# 20dbfc68-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
1e093299de91cbd2fab004b79cab184c606be1ee | 1170f797b7788b9e8445b7dd65377763068a9aa3 | /GR/wrapper.py | 272738be6d288247b157a3fb494a18bba88c454c | [] | no_license | f-fathurrahman/ffr-python-stuffs | 2585c554e15ec6828900739376250ed391cf6966 | d249c4f2a01f58a96083bac2377309c05f652907 | refs/heads/master | 2023-08-23T22:54:34.147166 | 2023-07-20T23:24:50 | 2023-07-20T23:24:50 | 83,401,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py |
import subprocess
import sys
import os
# set GKW_WSTYPE, we will save the output to a file
os.environ["GKS_WSTYPE"] = "mov"
Nargs = len(sys.argv)
if Nargs <= 2:
raise RuntimeError("Nargs must be >= 2")
fileout = sys.argv[2]
p = subprocess.Popen("python " + sys.argv[1], shell=True)
(output, err) = p.communicate... | [
"fadjar.fathurrahman@gmail.com"
] | fadjar.fathurrahman@gmail.com |
9d2132b47d93d5e0865dc119edb6b06a5d541d5f | 73346545e69194dc1cfd887314afe600076ff263 | /polling_stations/apps/data_collection/management/commands/import_torbay.py | d9b2e0c418fbf0ff7ba59e80c34fb2974714b1c9 | [] | permissive | chris48s/UK-Polling-Stations | c7a91f80c1ea423156ac75d88dfca31ca57473ff | 4742b527dae94f0276d35c80460837be743b7d17 | refs/heads/master | 2021-08-27T18:26:07.155592 | 2017-11-29T15:57:23 | 2017-11-29T15:57:23 | 50,743,117 | 1 | 0 | BSD-3-Clause | 2017-11-29T16:03:45 | 2016-01-30T20:20:50 | Python | UTF-8 | Python | false | false | 398 | py | from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = 'E06000027'
addresses_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club__08June2017.tsv'
stations_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club_... | [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
3cb530929d7ea2efe25e3bb6fac8ca13940e787f | 9912b1ab920f30975f889981fe716bbf9c07ed74 | /__manifest__.py | 7220ced1a99fb9b8532cbfd454ac1d3e19f6f6ea | [] | no_license | DevHerles/inputmask_widget | 905ab0ff6a740c3982c8885da36c495c2cab6eed | 677954dd2a280f552f819c66276875c77b7e5197 | refs/heads/master | 2020-03-19T14:46:51.026510 | 2018-06-13T05:15:39 | 2018-06-14T00:21:22 | 136,639,113 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | # -*- coding: utf-8 -*-
{
'name': "Inputmask and prefix and suffix Widget",
'summary': """
A Widget to make masks on form fields and adds prefix and suffix""",
'description': """
================
Inputmask Widget
================
Based on jquery.inputmask 4.x `Docs in GitHub
<http://robinherbots.githu... | [
"herles.incalla@gmail.com"
] | herles.incalla@gmail.com |
458e9bbba31ceb823acf10c95c13b494e740289c | 0ff91fa3bcd9cc115d5f9e73d82dca4d777143aa | /hackerrank/regex/Introduction/matching-digits-non-digit-character-English.py | f53b863c3716408cfed7ea7667b9d85b267d3717 | [] | no_license | Cekurok/codes-competition | 1b335851b3e07b58a276b29c72df16ddbeff6b80 | 834afa2cc50549c82c72f5b0285661cd81f9a837 | refs/heads/master | 2021-09-16T05:08:58.689661 | 2018-06-16T18:35:16 | 2018-06-16T18:35:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | Regex_Pattern = "\d\d\D\d\d\D\d\d\d\d" # Do not delete 'r'. | [
"rrangarajan.85@gmail.com"
] | rrangarajan.85@gmail.com |
7aa9f578705c118458bafc85e9b94655547cbeea | 8ad9faa828ce54cddc38dc86eef30e6635babd0c | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/dhcpv6client/sessionlifetime/sessionlifetime.py | 8ca6d215e9239b748c58b9e34fef8b2e41fe23dd | [
"MIT"
] | permissive | ralfjon/IxNetwork | d1a50069bc5a211f062b2b257cb6775e7cae8689 | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | refs/heads/master | 2020-04-04T00:36:24.956925 | 2018-10-26T16:37:13 | 2018-10-26T16:37:13 | 155,655,988 | 0 | 0 | MIT | 2018-11-01T03:19:30 | 2018-11-01T03:19:30 | null | UTF-8 | Python | false | false | 3,326 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# 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, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
d8cd83e97f91d6b36d543a34f7783d646ba3ce69 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02982/s889628380.py | ceebed5e03d04542d3a821f49d64e25799fbd681 | [] | 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 | 451 | py | n, d = list(map(int, input().split()))
x = [list(map(int, input().split())) for _ in range(n)]
def is_square_num(n):
i2 = 0
for i in range(0, n + 1):
if i2 == n:
return True
if i2 > n:
return False
i2 += i * 2 + 1
c = 0
for i in range(n-1):
for j in range(i+1, n):
dist = 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
702f501475a3c225219f5cb5b426fbfdc62b1f7b | 7c63a96fad4257f4959ffeba0868059fc96566fb | /py/d_beazly-python_cookbook/ch_01-data_structures_and_algorithms/20-combining_multiple_mappings_into_a_single_mapping/main.py | 58beb28cedcc1247b17dbd2aaf79ad89b833babc | [
"MIT"
] | permissive | ordinary-developer/education | b426148f5690f48e0ed4853adfc3740bd038b72c | 526e5cf86f90eab68063bb7c75744226f2c54b8d | refs/heads/master | 2023-08-31T14:42:37.237690 | 2023-08-30T18:15:18 | 2023-08-30T18:15:18 | 91,232,306 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | def example_1():
a = { 'x': 1, 'z': 3 }
b = { 'y': 2, 'z': 4 }
from collections import ChainMap
c = ChainMap(a, b)
print(c['x'])
print(c['y'])
print(c['z'])
print(len(c))
print(list(c.keys()))
print(list(c.values()))
c['z'] = 10
c['w'] = 40
del c['x']
print(a)
... | [
"merely.ordinary.developer@gmail.com"
] | merely.ordinary.developer@gmail.com |
36f168571fded04552831063feee177143246c3b | fc141c11542d9b7cc73d3e773fc522375d443b76 | /1/Blocky/ConfigManager.py | 57d7d2f261daf8202d083a38fead5e26138d10da | [] | no_license | curlyz/BlockyFirmware | 4157bce89f80c99a6537f02f55a26a949df865d8 | c96c7c7ccc85a9d0c41b65f05290f300814d7a8e | refs/heads/master | 2020-03-22T07:53:40.891234 | 2018-07-04T14:18:34 | 2018-07-04T14:18:34 | 139,731,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,917 | py | from Blocky.Indicator import indicator
import network,socket,time,random,binascii,machine,re,ustruct,gc,ujson
from json import dumps , loads
from os import stat
from _thread import start_new_thread
import socket
from Blocky.MicroWebSrv import MicroWebSrv
from time import sleep_ms
"""
class config is called whe... | [
"noreply@github.com"
] | curlyz.noreply@github.com |
85b811d9a073b85292df6fbf2857ab0e79d7e73d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /hgjdb2nm4ZwuCjtHE_23.py | d607960e58a0f2cdee5216eb2833175e981cd787 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | """
Create a function that takes an input (e.g. `"5 + 4"`) and returns `True` if
it's a mathematical expression or `False` if not.
### Examples
math_expr("4 + 5") ➞ True
math_expr("4*6") ➞ True
math_expr("4*no") ➞ False
### Notes
* Should only work with the following operations: `+, -, *,... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a2309afb06edda94024beddd1ba9263d258f351a | 9d8f241e4e851f0fe71655d2b698c3d40feab98a | /machin/frame/helpers/servers.py | 6a335670c8bb80846e10a291c18ac8f7a57e92a2 | [
"MIT"
] | permissive | StepNeverStop/machin | c30c15bbcc38dde06eac57e7ff562753b8927f6b | 3caecb6ea7b02a9687281e2270577a6ed92c5dd8 | refs/heads/master | 2022-11-24T14:43:20.041102 | 2020-07-21T13:08:19 | 2020-07-21T13:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,441 | py | from typing import Callable, Any
from machin.parallel.distributed import (
get_world, get_cur_name
)
from machin.parallel.server import (
PushPullGradServerImpl,
PushPullModelServerImpl
)
from time import sleep
from torch.optim import Adam
def grad_server_helper(actor_model_creator: Callable,
... | [
"hanhanmumuqq@163.com"
] | hanhanmumuqq@163.com |
c9623b17049e090a38baf5ebc95b81f2033f0adf | fcd965c9333ee328ec51bc41f5bc0300cc06dc33 | /DailyCoding/sublist_sum.py | 8279021f55404cf656d21b8ad965d6deb19eb0eb | [] | no_license | henrylin2008/Coding_Problems | 699bb345481c14dc3faa8bab439776c7070a1cb0 | 281067e872f73a27f76ae10ab0f1564916bddd28 | refs/heads/master | 2023-01-11T11:55:47.936163 | 2022-12-24T07:50:17 | 2022-12-24T07:50:17 | 170,151,972 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | # Daily Coding Problem #149
# Problem
# This problem was asked by Goldman Sachs.
#
# Given a list of numbers L, implement a method sum(i, j) which returns the sum from the sublist L[i:j] (including i,
# excluding j).
#
# For example, given L = [1, 2, 3, 4, 5], sum(1, 3) should return sum([2, 3]), which is 5.
#
# You ca... | [
"henrylin2008@yahoo.com"
] | henrylin2008@yahoo.com |
078b83228af29571af314a7042a432ee5af90ffd | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/gcloud_main.py | cc51169da6045e5ed0a9f55387dc93859fc6de88 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 4,953 | py | #!/usr/bin/env python
#
# Copyright 2013 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... | [
"toork@uw.edu"
] | toork@uw.edu |
56ee55efa9b04d090673d1cb1c6c7c00d4977197 | 46f1f22151448fa35fc5228d730374f1167c100f | /exam_summer_2019/myproject/myapp/schema.py | 00d13e6d0ba6b132a4f1167707c9f5b3597b0f3b | [
"BSD-2-Clause"
] | permissive | ThitiChuenbubpha/2019 | e6b6623e7c8e4757396caf3fbde0e09c5e973e12 | ebe9ef4475e4534700ad5b6bf387b04cd88ad197 | refs/heads/master | 2020-09-13T00:48:39.707117 | 2019-10-27T05:54:37 | 2019-10-27T05:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | import graphene
from graphene import Node, Connection, ConnectionField
from graphene_django.types import DjangoObjectType
from graphene_django.filter import DjangoFilterConnectionField
from myapp.models import Customer
class CustomerType(DjangoObjectType):
class Meta:
model = Customer
filter_fiel... | [
"wasit7@gmail.com"
] | wasit7@gmail.com |
4138e71309c447be4fe32f2d84f1de700cb31853 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.9.50/1/1569577821.py | c3c6e7738935c84d7e6b1a5f1a75f2fb285cf078 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def nwords(s: str):
n = 0
print(len(s))
#for x in list(s):
# n += 1
#re
## Lösung Teil 2.
######################################################################
## Lösung Teil 3. (Tests)
## revert
try:
... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
929135e421f53121060a567e1a9d34c89c427727 | 330aea7bca768b6e0021768f568278ceaec263f8 | /tests/functional/test_auto_init.py | 9b02a58e43e5385c0029eb2c3d74304750cc0f39 | [
"MIT"
] | permissive | dkrikun/textX | d90e95a174ebddda9780d71363dfd85fc92376f2 | 9381f375001d3d7462f0261e89ca48d595a1f130 | refs/heads/master | 2020-04-06T13:34:43.577843 | 2018-11-17T21:25:44 | 2018-11-17T21:25:44 | 157,506,185 | 0 | 0 | null | 2018-11-14T07:07:23 | 2018-11-14T07:07:23 | null | UTF-8 | Python | false | false | 1,426 | py | # -*- coding: utf-8 -*-
from textx import metamodel_from_str
grammar = """
First:
dummy=INT
('first' seconds+=Second)?
('A' a=INT)?
('B' b=BOOL)?
('C' c=STRING)?
d?='boolasgn'
('F' f=FLOAT)?
;
Second:
INT|STRING
;
"""
def test_auto_init():
"""
Test that attributes are initi... | [
"igor.dejanovic@gmail.com"
] | igor.dejanovic@gmail.com |
7acc4c37ffb2c85f644df6d98a54b9d6841688bc | 2ea7eac8256e331c016055c59f635b63b3e28130 | /Assistant/1029/problem1.py | 1b6e30f74bf4024255dcfa5d69e09e1856803386 | [] | no_license | FawenYo/NTU_Programming-for-Business-Computing | 83d2f73b087e238451aa76d4481146b7b00670e7 | cdf18ee474107f1ab52c34bcc64d69022ecb57b5 | refs/heads/master | 2023-01-18T20:22:19.737103 | 2020-12-04T00:20:41 | 2020-12-04T00:20:41 | 297,369,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | def main():
mode = int(input())
number_one = float(input())
number_two = float(input())
answer = calculate(mode=mode, number_one=number_one, number_two=number_two)
print(answer)
def calculate(mode, number_one, number_two):
if mode == 1:
result = number_one + number_two
elif mode ==... | [
"twsky020600@gmail.com"
] | twsky020600@gmail.com |
64951345d0602541dd829ecf8b3d13cd94f7a650 | 67f70009f2e1ded752788f349c998c25cc2a7674 | /agsci/common/portlets/navigation.py | 9dd89498b390e368330c9eeb97d10015d041218d | [] | no_license | tsimkins/agsci.common | 83b58e4646115e9a5cdc9d39037386579c3ac2d9 | a833b2e5257da35786f21916e279f8b1082b2faa | refs/heads/master | 2023-08-18T05:19:25.121259 | 2023-08-16T20:29:47 | 2023-08-16T20:29:47 | 35,234,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | from Acquisition import aq_inner
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.CMFPlone.browser.navtree import SitemapQueryBuilder
from plone.app.layout.navigation.interfaces import INavtreeStrategy
from plone.app.layout.navigation.navtree import buildFolderTree
from plone.app.po... | [
"trs22@psu.edu"
] | trs22@psu.edu |
5a164311fcef00a16a41d80f04c0e84992445dc7 | 348efd861c5081256571aaaa007250cfe25368d6 | /libs/python/BlueJeansMeetingsRestApi/api/application_api.py | 651b59e0d55e2618e062b9891bfd47eb0ce1e911 | [] | no_license | isabella232/api-rest-meetings | cf671df70bf0dfa469686e5c8736fc4b286fa3c4 | dc2da1df323a164009c5049c15b84b1a3f22247d | refs/heads/master | 2023-09-06T01:51:02.733419 | 2021-10-04T12:23:15 | 2021-10-04T12:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,493 | py | # coding: utf-8
"""
BlueJeans Meetings REST API
## Video That Works Where You Do. <p>This site provides developers access to APIs from BlueJean's Meetings meeting service. From here you can see and try actual API calls to manage User Accounts, Meetings, and Recordings, pull Analytical Data and Current State... | [
"glenninn@yahoo.com"
] | glenninn@yahoo.com |
f8e7682bf7a48a93e5cfd186148615448866ede2 | 02952fc67147a2f11a9ed8c4eb29210bec5672ed | /business/service/apis/database.py | 44f8b51ee5daf5539321be390b99486795437155 | [] | no_license | cuijianzhe/cow | b110a70398b09a401dadc7d3ed24dfe2bae50f5b | 3539cab6e73571f84b7f17391d9a363a756f12e1 | refs/heads/main | 2023-06-04T10:33:33.975885 | 2021-06-19T10:40:36 | 2021-06-19T10:40:36 | 340,634,448 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from base.api import BaseApi
from business.service.controllers import asset_obj as asset_obj_ctl
class CreateServiceDatabaseApi(BaseApi):
need_params = {
'obj_id': ('服务ID', 'required int'),
'environment_id': ('环境ID', 'required int'),
'typ': ('资产类型', 'required str'),
'ass... | [
"598941324@qq.com"
] | 598941324@qq.com |
f54154b7929dc5511075fb7ab6b3bcaba9517461 | 768090e32003d74062cc47a0e67f47f682ceba13 | /nemo/collections/asr/parts/utils/speaker_utils.py | a75e50f77cc2da42706d2f7bb25a9d415ea096bf | [
"Apache-2.0"
] | permissive | AlexGrinch/NeMo | 028e57e2243c474249986e1c5027d4e762775124 | ba6ebee02e554e6f7229edfe67a610eca4d226af | refs/heads/main | 2022-10-10T15:42:25.146469 | 2022-08-05T22:08:05 | 2022-08-05T22:08:05 | 209,156,248 | 0 | 1 | Apache-2.0 | 2019-09-17T21:04:30 | 2019-09-17T21:04:29 | null | UTF-8 | Python | false | false | 36,411 | py | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | AlexGrinch.noreply@github.com |
ebdf547c9cc28cc4fae502f246233e6ce2a9336a | 201b42947d38be70cd0985fb3fc46bd6068ca2f8 | /virtual_env/libs/mysql-connector/python2/mysql/connector/locales/__init__.py | 7ce069299861db074ce6e4c58292db8d28973d9c | [
"MIT",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-or-later",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rcosnita/fantastico | d4fade25a10231f50b62fff6b41d814815dd4b62 | 81c8590556baa9e1148071b7835d74b1efada561 | refs/heads/master | 2021-03-12T21:55:03.260192 | 2020-07-28T07:16:39 | 2020-07-28T07:16:39 | 9,280,607 | 3 | 1 | MIT | 2020-07-28T07:16:40 | 2013-04-07T17:52:51 | Python | UTF-8 | Python | false | false | 2,261 | py | # MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
# MySQL Connector/Python is licensed under the terms of the GPLv2
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
# MySQL Connectors. There are special exceptio... | [
"radu.cosnita@gmail.com"
] | radu.cosnita@gmail.com |
cacf7418089897de53462fdef0cb199e1eee68d9 | e41bb17fd1a360aa953d5e629e2323a5f2183673 | /groupingLetter.py | f296a9f9cd2ae76fcf24b3f60c621c3bb09eaed7 | [] | no_license | madan-ram/OCR-using-SWT | 5cbbd2d65cf874ca12289b7273288ddd29caf844 | b38a09b138207b13efb10e4afaff9aef3ae1f38f | refs/heads/master | 2021-10-06T10:57:15.018654 | 2021-10-02T09:48:35 | 2021-10-02T09:48:35 | 22,715,504 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | import numpy as np
cimport numpy as np
import cython as cy
from sklearn import cluster
import random
import cv2
cdef class componentDetails:
cdef:
double mean
double variance
int centerX
int centerY
double colorAverageB
double colorAverageG
double colorAverag... | [
"madan_ram@rocketmail.com"
] | madan_ram@rocketmail.com |
b18b3d17aaf056935d17e2adf0139d7481789ed6 | 395ea41c138ecd39b615f4b73ad744e8acb4d4ad | /sdk/keyvault/azure-keyvault/azure/keyvault/v7_3_preview/models/security_domain_json_web_key.py | 3cb39b67e87241dbe437c781f06c1015469ef5c1 | [
"MIT"
] | permissive | mccoyp/azure-keyvault-7.3-preview | d7e80b9ec6f11eede8838749ce2d72de38e53303 | da351753a9d3d2bf97c27566865cd88bae7faa55 | refs/heads/main | 2023-04-28T22:28:44.283778 | 2021-05-11T03:35:58 | 2021-05-11T03:35:58 | 366,241,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,929 | 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 ... | [
"mcpatino@microsoft.com"
] | mcpatino@microsoft.com |
05babc07dd1862ac2a329569d754ae06c9a41369 | ea727658bb22df6dd0a4d8aaff5d13beec8ec8b5 | /examples/大數據資料分析/範例程式/第06章/function10.py | 845cd5c55cd930ce0fc67cbef8f266c8adc03345 | [] | no_license | kelvinchoiwc/DataScience_1082 | f8e31c230776f45d70f6b96ef81d16881118e453 | 199f915540afe6c9a9ec7055aac5911420d783be | refs/heads/master | 2023-07-24T04:29:01.763893 | 2021-09-01T12:33:21 | 2021-09-01T12:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | import random
def lotto():
for i in range(1, 7):
n = random.randint(1, 49)
print(n, end = ' ')
def main():
lotto()
main() | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
393bf85d24331af9e594edf37e1f640f06a5fddd | 67597949572f7f5b1137bc51bc04c9d9f7288beb | /DuelingDQN/tf2/network.py | 11295ac17bf69cb12cce33f72b8442ef4ef95de0 | [
"MIT"
] | permissive | philtabor/Deep-Q-Learning-Paper-To-Code | 32ca4c840534fc56aa5e8911ca65e9722f245b92 | 64e0546d95ba313fb677f193abbdc38f463c4aa3 | refs/heads/master | 2023-07-28T01:07:55.013663 | 2022-02-22T04:12:48 | 2022-02-22T04:12:48 | 222,623,037 | 315 | 156 | MIT | 2023-07-07T14:21:03 | 2019-11-19T06:19:06 | Python | UTF-8 | Python | false | false | 1,066 | py | import tensorflow.keras as keras
from tensorflow.keras.layers import Conv2D, Dense, Flatten
class DuelingDeepQNetwork(keras.Model):
def __init__(self, input_dims, n_actions):
super(DuelingDeepQNetwork, self).__init__()
self.conv1 = Conv2D(32, 8, strides=(4, 4), activation='relu',
... | [
"ptabor@gmail.com"
] | ptabor@gmail.com |
44274452848ad04965f1b868266bc76353361d67 | b5698c259c80c9dc9b1cbca9dd82eb7f4d799f61 | /tests/basics/TryExceptContinue.py | 02406755120ee96ec689be851300b164d753ec19 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | 4O4/Nuitka | 431998d4d424f520d2887e9195ad7d7c61691b40 | e37d483b05c6b2ff081f3cedaee7aaff5c2ea397 | refs/heads/master | 2020-04-02T04:06:10.826960 | 2018-10-18T21:13:16 | 2018-10-18T21:13:16 | 154,000,090 | 0 | 0 | Apache-2.0 | 2018-10-21T11:17:44 | 2018-10-21T11:17:44 | null | UTF-8 | Python | false | false | 2,223 | py | # Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python tests originally created or extracted from other peoples work. The
# parts were too small to be protected.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the ... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
df9f02668c0d7e87a15e4c877af9ea7111ad7f1e | f124cb2443577778d8708993c984eafbd1ae3ec3 | /saleor/graphql/payment/tests/mutations/test_transaction_update.py | 27e69d0360e0b2cb907244e0dfdcf35ea68b5ca1 | [
"BSD-3-Clause"
] | permissive | quangtynu/saleor | ac467193a7779fed93c80251828ac85d92d71d83 | 5b0e5206c5fd30d81438b6489d0441df51038a85 | refs/heads/master | 2023-03-07T19:41:20.361624 | 2022-10-20T13:19:25 | 2022-10-20T13:19:25 | 245,860,106 | 1 | 0 | BSD-3-Clause | 2023-03-06T05:46:25 | 2020-03-08T17:44:18 | Python | UTF-8 | Python | false | false | 21,754 | py | from decimal import Decimal
import graphene
import pytest
from .....order import OrderEvents
from .....order.utils import update_order_authorize_data, update_order_charge_data
from .....payment import TransactionStatus
from .....payment.error_codes import TransactionUpdateErrorCode
from .....payment.models import Tra... | [
"noreply@github.com"
] | quangtynu.noreply@github.com |
02e2cef720f89367a0514a83ac28d81349dfb272 | d6d3ffb725bae57f486859b8079f18347ed0efd4 | /authapp/migrations/0006_auto_20210120_1440.py | 15bda62d497d56c1b93b2aecd2a4aa2275978fdc | [] | no_license | igoregizarov/Django_1 | 84a64b737ba5e60646cce81565ce787fb29add91 | d67ad64c73c77a7216efb3d7ade51a0b3cade9b2 | refs/heads/master | 2023-02-23T09:48:53.842396 | 2021-01-20T15:02:45 | 2021-01-20T15:02:45 | 314,855,477 | 0 | 0 | null | 2021-01-24T17:48:42 | 2020-11-21T16:33:09 | Python | UTF-8 | Python | false | false | 520 | py | # Generated by Django 3.1.5 on 2021-01-20 14:40
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('authapp', '0005_auto_20210106_1008'),
]
operations = [
migrations.AlterField(
... | [
"i_gor88@mail.ru"
] | i_gor88@mail.ru |
7afa4fdb8867d5c5fbd6ef35fc197ae109cd1802 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2194.py | a3ea9167f7d3c136b9a89937fadc64ca3157ceba | [
"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 | 3,059 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=39
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
9d62383be8709ebccece20cd0a4154e081f04513 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_02_01/aio/operations/_resolve_private_link_service_id_operations.py | e0523ed0738032af0b4c39c4887fca1e99458815 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 8,628 | 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"
] | test-repo-billy.noreply@github.com |
97105b80d891c064414647abccdf7e61da668a77 | a29310948867f5f07109fcd225a84282ad7eea16 | /dict_test/reflection_dict.py | b456ccfaebacb262ddf83adc489d3db7c324a81b | [] | no_license | likeweilikewei/Python-study-demo | 09b266c0756b6e340e8b8e3153a7e497be8ee1a9 | 7dd4bc851273a5815d8980f9857828abfa5364a7 | refs/heads/master | 2020-06-26T21:17:27.095532 | 2019-07-31T02:17:43 | 2019-07-31T02:17:43 | 199,760,324 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 760,707 | py | # -*- coding=utf-8 -*-
bai_ke = ['中国银行', '市盈率', '股票', '蓝筹股', 'IPO',
'巴菲特', 'MACD', 'KDJ指标', '量比', '内盘外盘', '公司型基金',
'融资融券', '岛形反转', '自营商', '桂冠电力', '股市什么时候垮', '新短线英雄',
'多空英雄', '深圳证券交易所成份股价指数', '成本均线', '外资股', '股票上市', '期货经纪商',
'股东大会', '活筹指数', '市值配售', '加拿大风险交易所', '四度空间', '注册资本',
'分拆', '委托买卖股票', '热钱', '地量', 'KD指标死叉', '顾比倒... | [
"1293120583@qq,com"
] | 1293120583@qq,com |
b7cd7f1a108aad64431d747311cc62397a6d6d44 | 0919e847675c0004cb3c7e9a92a02414daf0b819 | /Chromium_Flagged Plotter- Intellus Chromium Data.py | 1d322ae51445791943c48369e342e36d7be3ad3e | [] | no_license | caseygierke/770-Cr-Plotting | faf117d9da6d9a37a7bbf15322476713f6e6f87d | 5a0a82cc1d145050f932f3f03c0f186badb498f2 | refs/heads/master | 2022-11-13T02:58:30.611698 | 2020-07-03T23:27:51 | 2020-07-03T23:27:51 | 273,330,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,842 | py | # Chromium_Flagged Plotter- Intellus Chromium Data.py
# This code generates figures from all of the files
# in the specified path
# Written by Casey Gierke of Lee Wilson & Associates
# Updated 8/17/2018
# Updated 10/24/2018
# With Notepad++, use F5 then copy this into box
# C:\Python27\python.exe -i "$(FULL_CURRENT_... | [
"abc@example.com"
] | abc@example.com |
bc8a8b9f077cdc5ac9b387c1490e2d80cee2b7bc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02797/s575415788.py | d0c691e46b068541bfa0e837f808a9e611103930 | [] | 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 | 279 | py | if __name__ == "__main__":
N, K, S = map(int, input().split())
for _ in range(K):
print(S, end=" ")
if S == 10**9:
for _ in range(N-K):
print(S-1, end=" ")
else:
for _ in range(N-K):
print(S+1, end=" ")
print()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5f18a93fe844e2423c0e8ef9f99710f791ce72bc | c2df9e04adec78e789d1fbdb0711c45e5b9263a7 | /venv/Lib/site-packages/matplotlib/tests/test_backend_tools.py | e7e7aef2f7dccfacd2e7ac4182456e56015e5a67 | [
"MIT",
"BSD-3-Clause"
] | permissive | AdarshSai/Final_Project | 433009a2f416e894ee3be85cd9317cb8e8df5516 | f966834ca72dd232102ed500ef47ef2b3bdbed5b | refs/heads/main | 2023-01-23T12:21:41.342074 | 2020-11-19T22:24:15 | 2020-11-19T22:24:15 | 308,898,012 | 0 | 1 | MIT | 2020-11-19T22:24:17 | 2020-10-31T14:19:58 | Python | UTF-8 | Python | false | false | 521 | py | import pytest
from matplotlib.backend_tools import ToolHelpBase
@pytest.mark.parametrize('rc_shortcut,expected', [
('home', 'Home'),
('backspace', 'Backspace'),
('f1', 'F1'),
('ctrl+a', 'Ctrl+A'),
('ctrl+A', 'Ctrl+Shift+A'),
('a', 'a'),
('A', 'A'),
('ctrl+shift+f1', 'Ctrl... | [
"adarshsaig@gmail.com"
] | adarshsaig@gmail.com |
cb7d406bbe2040aeda1ecde7ed9d338058dcf966 | c88a0708603d4152619d138726e1948de3f3147b | /sources_from_mxshop/MxShop-django/apps/goods/filters.py | 2a5be7566d200a87114ab58cbf3cffe2d1139a5a | [
"Apache-2.0"
] | permissive | yangtao4389/similal_taobao | 51e16bc1b00fa7ebd0c8b76455226a18dbf91be2 | 90a71c55bbbaffa9776e8460d0752374a674e0ad | refs/heads/master | 2022-12-13T12:52:26.449701 | 2019-04-04T08:21:19 | 2019-04-04T08:21:19 | 177,726,687 | 0 | 0 | Apache-2.0 | 2022-12-08T02:30:44 | 2019-03-26T06:19:48 | Python | UTF-8 | Python | false | false | 1,004 | py | # goods/filters.py
import django_filters
from .models import Goods
from django.db.models import Q
class GoodsFilter(django_filters.rest_framework.FilterSet):
'''
商品过滤的类
'''
#两个参数,name是要过滤的字段,lookup是执行的行为,‘小与等于本店价格’
pricemin = django_filters.NumberFilter(name="shop_price", lookup_expr='gte',help_t... | [
"438936731@qq.com"
] | 438936731@qq.com |
99d624d8ee435a95516b140151dada5c4a236cde | dc509f325f67eabdab0c77ee4a25616e920f0422 | /interface/interface/settings.py | c758ea333b106c9227fb0908a47ce9db2dc2d2a5 | [] | no_license | Verbozeteam/deployment-manager | 68452ed10132d5d56694c69f225bda92499635a8 | 2508e5345da9764c068bb259ecff27b11a739982 | refs/heads/master | 2021-03-30T17:52:46.353069 | 2018-05-15T14:23:12 | 2018-05-15T14:23:12 | 109,695,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,666 | py | """
Django settings for interface project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"hasan.aljawaheri@gmail.com"
] | hasan.aljawaheri@gmail.com |
40465ac3a5c4b555cfb0d993dd600530c544d66e | 3ad6fa2bfdf1d9849b8b60a740cd7992fbca1dd9 | /myshop/orders/views.py | 5a01f5e3b0888ed707ff895694f22102603c784b | [] | no_license | marri88/e-commerce-projects | 2845c08c33330a4ceec9dbbd6216a99381fb30a4 | b516f13fec930091007ffab4d7c992f002c32803 | refs/heads/master | 2023-06-26T08:56:01.448973 | 2021-07-23T08:02:13 | 2021-07-23T08:02:13 | 388,724,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.urls import reverse
from django.contrib.admin.views.decorators import staff_member_required
from django.conf import settings
from django.http import HttpResponse
from django.template.loader import render_to_string
import weasyprint
from .model... | [
"aymira.narzhigitova@gmail.com"
] | aymira.narzhigitova@gmail.com |
8a2b8ca6f252f0c115125b69d99a7b9c4fc6262c | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/ken5scal/tutorial-kernel/tutorial-kernel.py | 4f7d5dd11a50d9c9ccdeceed1f34d0a28150d62a | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,776 | py | #!/usr/bin/env python
# coding: utf-8
# In[59]:
# Kaggleのススメかた
## トレインデータ、テストデータの統計を確認
## 適当に特徴量を追加-> 例: Sibpar(兄弟・パートナー)とParch(親子共)から家族カラムの追加、Fareから運賃分布を区切る、NameのMr.Mrs/Miss/Captain/Col/Dr...
## 前処理を頑張る(新しい特徴量の追加、データの正規化)
## 適当なアルゴリズムを書く
## 動くことを確認する
## トレインデータ、テストデータの統計を確認
## 改善を確認する
## 繰り返す
# 前処理
## 欠損値(Nul... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
3f815bf2f210fbaa3120160b9f4970a11eb7d31f | eb9e9928294810ae61ac761852e2d382ccab18eb | /models/__init__.py | 2bf15472606b1e5554d83e835eeb4fd070e4f389 | [] | no_license | yingchauhuang/keepwin | 688e7abb1dfae5ce7986c691215cbe49bac8ffcb | b109a67e2a106ac82af086937ed490d65ea7c728 | refs/heads/master | 2019-01-23T02:48:30.572349 | 2014-05-15T13:18:21 | 2014-05-15T13:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113,560 | py | from askbot import startup_procedures
startup_procedures.run()
import logging
import hashlib
import datetime
import re
import sys
import urllib
from django.db.models import Max
from django.core.urlresolvers import reverse, NoReverseMatch
from django.db.models import signals as django_signals
from django.template impor... | [
"yingchauhuang@gmail.com"
] | yingchauhuang@gmail.com |
afbe3cf916d4fa0ea681b44a17ff4667bd59e7be | 83064dee14ea9fd1e5a5fc6c9c1ff2f3f9f8af9e | /app/snippets/urls/viewsets_router.py | 7a22c7e637fd69103b0a2fe7e3f38ff111220e9b | [] | no_license | Ryanden/Drf-tutorial | 096d5ea41ae819876c65946795bee247e2fdbd5a | 8526255b9f3416bc63569c49be1ab3f9bb564260 | refs/heads/master | 2020-03-23T10:00:41.098213 | 2018-07-26T06:24:57 | 2018-07-26T06:24:57 | 141,420,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.urls import path, include
from rest_framework.routers import SimpleRouter
from ..views import viewsets as views
router = SimpleRouter()
router.register(r'snippets', views.SnippetViewSet)
router.register(r'users', views.UserViewSet)
urlpatterns = [
path('', include(router.urls)),
] | [
"lockstom@gmail.com"
] | lockstom@gmail.com |
60e604952fbb31fc00222152227003ba563805f7 | d27af9d58b91b8cd998ac0eb87d980d304ff0670 | /Beginner-Contest/ABC175/ABC175_A.py | 860756ca1ac5eece21d871ccd171c1499c5663a4 | [] | no_license | mongesan/Atcoder-m0_ngesan-py | 29dd79daab149003ffc8b6b6bad5fa2e7daa9646 | 6654af034d4ff4cece1be04c2c8b756976d99a4b | refs/heads/master | 2023-08-20T19:50:04.547025 | 2021-10-27T12:24:51 | 2021-10-27T12:24:51 | 258,486,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | s=str(input())
streak=0
ans=0
for ch in s:
if ch=='R':
streak+=1
else:
ans=max(ans, streak)
streak=0
ans=max(ans, streak)
print(ans) | [
"syun1.mongesan@gmail.com"
] | syun1.mongesan@gmail.com |
69ac6ef380c598e940e96d81102ed0e48639aa4d | 5c1864e6d5bfe1850f2576c4ee371f81adfe0ed3 | /aluzine/scripts/out.py | 69da10045aca8b0d58863d30b0d263a32551abf2 | [] | no_license | Fantomas42/aluzine | a82f4fc0a65ca304acc93be7c7035be17b973ca7 | bda1ac034fcf2f72d548a3b9918fa49f65ee014b | refs/heads/master | 2021-06-05T17:28:04.822250 | 2017-07-28T21:10:35 | 2017-07-28T21:10:35 | 98,689,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import argparse
from random import randint
from time import sleep
from aluzine.lock import Lock
from aluzine.timestamper import TimeStamper
def cmdline():
parser = argparse.ArgumentParser()
parser.add_argument(
'--random-range',
type=int,
help='Range of minutes before pinging')
... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
e2a6ada1773edb8e70ae79264e86f2d61a111303 | 0b5e9296e2663e014e41afa488236466de68c071 | /scrapy/tupian/tupian/items.py | fd8d7f1c395bf1208cd189fbe81784b44bedb2b1 | [] | no_license | feiyu563/feiyu | f875f784d02ce24eadd62b8882358f922cd0dba6 | b1d0e6f4d7bfba7c786d1105e630ea920eff7589 | refs/heads/master | 2021-05-13T22:22:38.059641 | 2018-01-06T14:05:34 | 2018-01-06T14:05:34 | 116,486,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class TupianItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
fa0236dc26c612007b35af9f064cf9310aec110a | ea4e262f3dc18a089895fef08bedefc60b66e373 | /supervised_learning/0x06-keras/8-main.py | 6ded7ba2a077d02e952d1faea7c71270db739909 | [] | no_license | d1sd41n/holbertonschool-machine_learning | 777899d4914e315883ba0c887d891c0c8ab01c8a | 5f86dee95f4d1c32014d0d74a368f342ff3ce6f7 | refs/heads/main | 2023-07-17T09:22:36.257702 | 2021-08-27T03:44:24 | 2021-08-27T03:44:24 | 317,399,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | #!/usr/bin/env python3
import numpy as np
import tensorflow as tf
build_model = __import__('1-input').build_model
optimize_model = __import__('2-optimize').optimize_model
one_hot = __import__('3-one_hot').one_hot
train_model = __import__('8-train').train_model
if __name__ == '__main__':
datasets = np.load('../da... | [
"1498@holbertonschool.com"
] | 1498@holbertonschool.com |
59c72f4178722441262ca42e068f0a519bea8e4c | a3eccc652f83815318bdb033a33573c5b1e073e9 | /nac/orders/views/api/utils.py | 2ddd5859db4d60c82099ea50fc5ae7d7a48c2edc | [] | no_license | jsvelu/coms-dev--old | 8139fa511e2985b4d71550f1c59402069d09edf3 | de300ad6ef947d29380972a6efe809f4ef05d7e1 | refs/heads/main | 2023-07-17T20:44:36.101738 | 2021-09-04T21:56:38 | 2021-09-04T21:56:38 | 403,158,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,437 | py | from datetime import date
from datetime import datetime
from dateutil.relativedelta import relativedelta
from django.conf import settings
from django.core.exceptions import ValidationError
from django.utils import timezone
from django.utils.datastructures import OrderedSet
from rest_framework.response import Response
... | [
"velu@qrsolutions.in"
] | velu@qrsolutions.in |
9b347f152a74bbe9f6235cc4de3392c524d6b89e | e210167f253547473d160d3c1c286b10ea3650a1 | /102.py | ac9e7e1106330a404e6200382f70d9195e069c21 | [] | no_license | cowarder/LeetCode | ee231f7bab0bb1525e187f770c15dbf339daba87 | 7d785a11fe2bd2bc3399984e0c0af8546780e185 | refs/heads/master | 2021-01-11T19:20:09.248360 | 2020-07-19T08:04:27 | 2020-07-19T08:04:27 | 79,439,657 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | """
问题描述:
102. Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree [3,9,20,null,null,15,7],
3
/ \
9 20
/ \
15 7
return its level order traversal as:
[
[3],
[9,20... | [
"1615482151@qq.com"
] | 1615482151@qq.com |
d40bdb2115a80899a2108be893a7dbf61ef4148d | 1916dc66aa9710d9a7d4fab42c28c1c49e2f630c | /portfolio/settings/front_settings.py | ce22ed2b4190f5b552422a2c75758b7ff9c2166b | [] | no_license | robert8888/portfolio | 8ce6c1be774666a58ee44379621c6a4515f64d37 | a640b1a62810e4a5dd4f7e20fefc86dc3ca7851f | refs/heads/master | 2023-06-03T23:28:53.888863 | 2021-06-25T13:11:28 | 2021-06-25T13:11:28 | 333,259,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | import os
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
BASE_DIR = Path(__file__).resolve().parent.parent.parent
VUE_FRONTEND_DIR = os.path.join(BASE_DIR, 'vue_components_src')
WEBPACK_LOADER = {
'DEFAULT': {
'CACHE': not os.getenv('DEBUG') == 'True',
'BUNDLE_D... | [
"robert.kami88@gmail.com"
] | robert.kami88@gmail.com |
bb2a9134475afdbac1eb87ee63f6e731aee8adc7 | 1ac99f8065a2646bdb8ea9003fd5930341fb0cf4 | /Packages1/example.py | d7263046428940429459d40efd4c5da80fa482eb | [] | no_license | krishnanunni-pr/Pyrhon-Django | 894547f3d4d22dce3fff14e88815122c12c145b5 | c59471f947ceb103bb27a19e8a2a160e8ada529b | refs/heads/master | 2023-07-29T19:40:38.199104 | 2021-09-09T18:12:24 | 2021-09-09T18:12:24 | 385,128,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | def printxc():
print("Hello packages") | [
"krishna@gmail.com"
] | krishna@gmail.com |
2bd01b25979b5838d3cc2cdb4d2c4a17be0b4dc9 | 862a2ac24f5d8e863a244482bf2502ff1d3dac06 | /python/tp_prod_template_cfg.py | 86a430ea9286a3b3f47c9407a8acc3e80af61bcc | [] | no_license | jhgoh/MuonAnalysis-MuonIdentification | ebc390cb70a793eb1b3f7f3d2cfc978d27b8d6dd | 480303cb7b6d1e059b7f52007232cd76a3ecdb38 | refs/heads/master | 2021-01-23T22:06:21.775809 | 2017-03-10T09:25:13 | 2017-03-10T09:25:13 | 83,117,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,715 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TagProbe")
process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(False),
# allowUnscheduled = cms.untracked.bool(... | [
"jhgoh@cern.ch"
] | jhgoh@cern.ch |
7072a73887aa4336d1a7a507dd430068214eb15c | 4cf3f8845d64ed31737bd7795581753c6e682922 | /.history/main_20200118160126.py | af2b3afd547776246d4619e1cb47bd43d722a85c | [] | no_license | rtshkmr/hack-roll | 9bc75175eb9746b79ff0dfa9307b32cfd1417029 | 3ea480a8bf6d0067155b279740b4edc1673f406d | refs/heads/master | 2021-12-23T12:26:56.642705 | 2020-01-19T04:26:39 | 2020-01-19T04:26:39 | 234,702,684 | 1 | 0 | null | 2021-12-13T20:30:54 | 2020-01-18T08:12:52 | Python | UTF-8 | Python | false | false | 976,971 | py | from telegram.ext import Updater, CommandHandler
import requests
import re
# API call to source, get json (url is obtained):
contents = requests.get('https://random.dog/woof.json').json()
image_url = contents['url']
def get_url():
contents = requests.get('https://random.dog/woof.json').json()
url = cont... | [
"ritesh@emerald.pink"
] | ritesh@emerald.pink |
82da582318ee9575d46e178e8482edab49463b7d | c2709bd19de85d67d12d9320578731b656a19cc5 | /pho/apertures.py | 4b1114a0d4caca8ee90de676e20d33c652c7746e | [] | no_license | bd-j/pho | 3862cac0c092152af2446508cfc2a3617db10c88 | a3f9a66dfabeaa51a27e6045aba3cd60d38b3977 | refs/heads/main | 2020-12-24T06:37:45.792387 | 2016-10-11T19:52:23 | 2016-10-11T19:52:23 | 64,546,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,680 | py | import numpy as np
from sedpy import ds9region
__all__ = ["read_brown_apertures", "read_brown_coordinates",
"read_sings_apertures",
# "process_aperture_line", "process_coordinate_line",
"make_ds9_region"]
def make_ds9_region(info, **extras):
"""Given a dictionary of region info ... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
7f96254e5cf83245ca43c17f873a164a78887c32 | 1064501bd36d801da5e972993a581ed68ef84d75 | /folioloaderq/tasks/workflow.py | 6aa13d3a718f6cec3147464f1ecc527b569a4a47 | [] | no_license | culibraries/folio-loaderq | 9b48646c9b770a2fc1adca46a9935e989e623229 | 1d79faf8886d8fc1421bf723832719a0f4b99f70 | refs/heads/master | 2020-03-19T12:47:00.082955 | 2018-06-20T11:47:08 | 2018-06-20T11:47:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | from celery.task import task
from celery import signature, group
from reference import loadFixedDueDateSchedules, loadLoanPolicies, deleteReferenceCirculationData
import requests,os, json
@task()
def circulationReferenceWorkflow(tag='default',tenant='diku'):
"""
Workflow deletes and loads Loan Policy and Fix... | [
"mbstacy@gmail.com"
] | mbstacy@gmail.com |
ef9c4bde726a4a8fc17ca17529d9c10e3cac8d39 | 959a1bbaef979183ca0aacf03b748e87aa842197 | /build/mav_comm/planning_msgs/catkin_generated/pkg.installspace.context.pc.py | 00ea38cbfebc71ebd26abcc7d3a383edf4dc964c | [] | no_license | rishabhgks/quad_ws | 723a95ccc825ddb13f2e27fb9e220cc7b03db6db | 19f7a57a585ca9799b3fd11f5b80d894c5b88167 | refs/heads/master | 2022-11-10T13:44:23.056196 | 2020-06-19T14:32:17 | 2020-06-19T14:32:17 | 250,417,696 | 0 | 0 | null | 2020-06-19T14:32:18 | 2020-03-27T02:03:07 | Makefile | UTF-8 | Python | false | false | 504 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;geometry_msgs;sensor_msgs;octomap_msgs".replace(';',... | [
"rishabhgs19@gmail.com"
] | rishabhgs19@gmail.com |
f5a900e7fff1e641a248630f0448ac7c46157d2c | 3e16c8782a6d401f3f4149074d8c0a6e72b42aea | /tests/unit/utils/test_templates.py | 3d5855dd21e82eb92351a9a847c3e4d132450cb2 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | alan-cugler/salt | c976a70aed05544fc0dba92291abaed5ed37e901 | 523c254cb1ae665c6eb613bfdd492c8127d00cd4 | refs/heads/master | 2020-06-09T07:54:09.578186 | 2020-01-15T18:57:43 | 2020-01-15T18:57:43 | 193,403,401 | 0 | 0 | Apache-2.0 | 2019-06-23T23:00:18 | 2019-06-23T23:00:18 | null | UTF-8 | Python | false | false | 6,173 | py | # -*- coding: utf-8 -*-
'''
Unit tests for salt.utils.templates.py
'''
# Import python libs
from __future__ import absolute_import, print_function, unicode_literals
import sys
import logging
# Import Salt libs
import salt.utils.templates
# Import Salt Testing Libs
from tests.support.unit import TestCase, skipIf
log... | [
"arizvisa@gmail.com"
] | arizvisa@gmail.com |
976d85ab13c69876767e0db544ac66ad2c330639 | 3171e1c10727536ee0cea7b953bbee6812ffcffb | /br_boleto/__manifest__.py | 338b38d72c3c37715b53edc9307482a5c3681ec7 | [] | no_license | mamcode/wbsfoosbr | cd74e53be4ca0c521ea4140386453e4cfde667bc | 23eb322e76edc907db8b1284800e211b7770432e | refs/heads/master | 2020-05-15T05:55:01.449119 | 2019-04-18T15:39:38 | 2019-04-18T15:39:38 | 182,113,770 | 1 | 0 | null | 2019-04-18T15:34:35 | 2019-04-18T15:34:34 | null | UTF-8 | Python | false | false | 1,478 | py | # -*- coding: utf-8 -*-
# © 2016 Danimar Ribeiro, Trustcode
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ # pylint: disable=C8101,C8103
'name': 'Pagamentos via Boleto Bancário',
'summary': """Permite gerar e realizar a integração bancária através de
arquivo CNAB 240 - Mantido ... | [
"a"
] | a |
b71af492ba80e8985daaa90ca0e3a0be170b4c9a | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/StoreActionsViewMeta.py | c988d0eefbdd86e08cb6fca3b43b1884be105fc3 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 848 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/StoreActionsViewMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class StoreActionsViewMeta(BaseDAAPIComponent):
def actionSelect(self, triggerChainID):
... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
21c81b27f70a76711fac18e783a9e69507a8429b | bc0e7871a8b5365d270bec9d01fb83a9c9347d93 | /lib/smanstal/devel/tests/unit/TestMod_types/TestMod_mdict/__init__.py | aa2ee173f6f3ece7f9a6761edc01e469fe5553b6 | [
"MIT"
] | permissive | BackupTheBerlios/empath-svn | 33e4943c52a5c5682488320d6826a3df1b926cf1 | 8731cf01fe498bedc432b189c152a32eee8a751f | refs/heads/master | 2021-01-01T19:30:21.408115 | 2007-10-21T20:42:06 | 2007-10-21T20:42:06 | 40,672,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Module: smanstal.tests.TestPkg_types.TestMod_mdict
# File: __init__.py
# Copyright (C) 2006 Ariel De Ocampo arieldeocampo@gmail.com
#
# This module is part of the smanstal project and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import unittest
from smanstal.tests import ad... | [
"smokybobo@2d1e70a7-801d-0410-ab83-90da37f5c1c7"
] | smokybobo@2d1e70a7-801d-0410-ab83-90da37f5c1c7 |
694076d1aeb49221da8d2b329dc465602d47de77 | 73a475fe07dedc07a4affe1c8c31137c6bab7d6c | /src/static/__init__.py | 7b05b2249083c2ae94e64072370275056fb9a800 | [] | no_license | SIXBYSIX-LLC/bg-api | 79dd6f12044876ffe438994d73cfe96d48b9046e | 3129d0fc500b68e565d3f21b7878d70522829bf3 | refs/heads/master | 2021-05-31T10:42:18.266736 | 2016-03-30T10:26:08 | 2016-03-30T10:26:08 | 36,426,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | """
******
Static
******
The aim of this app is to handle static files upload for any object (like product images,
user credit form, etc...) and store them to cloud.
We currently use `Cloudinary` for image/file storage
So any other app that needs file storage should make relation(either foreign key or many to many)
w... | [
"in.abhi9@gmail.com"
] | in.abhi9@gmail.com |
e6dc270a2c4eeebbddb25b00a3337a7b94a18034 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-datacatalog-lineage/samples/generated_samples/datalineage_v1_generated_lineage_delete_lineage_event_sync.py | e8b12cb2079d10ada081f3419d9cf80ca290f51e | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,815 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
3bd33a7c40f51b3e64fe1a979a10843e4253828c | d785e993ed65049c82607a1482b45bddb2a03dda | /loose/loose_DYJetsToLL_M-10to50_ext1_cfg.py | 0990948f868d92040c19c053abb26adc497f1f53 | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'loose_DYJetsToLL_M-10to50_ext1'
config.General.transferLogs= True
config.section_("JobType")
config.JobType.pluginName = '... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
4b8afae387b53dcdd52104c4c43509bc39274698 | 35d4f6e592fef933312fec601095ca5d0c4fe616 | /backend/beers_criteria_18818/wsgi.py | 5bd26dcebd14b048dc68037938a7ef992367e4db | [] | no_license | crowdbotics-apps/beers-criteria-18818 | 0a7a16b5290a87de3e6ea0ce01f317b2eba12122 | 54ec167fc8c3d6728f163e3e4bc37019af62238c | refs/heads/master | 2022-11-16T17:38:05.757707 | 2020-07-10T19:40:49 | 2020-07-10T19:40:49 | 278,718,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for beers_criteria_18818 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(... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
be6eae6b3778e68036264546f5b0ff32fa329d2e | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/account_app/models_20210104133316.py | 50b9f5f04aaad68f55aea207fd96fa639a3e08b6 | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py |
from django.db import models
from django.db.models.fields import DateTimeField, EmailField
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.conf import settings
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delet... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
f78e5588c03f86a806368376c5dd8bb66e782f54 | 356409640c2f981e12f0f3b93044c999c54fe984 | /task5/melodic/lib/python2.7/dist-packages/pcl_ros/cfg/MLSConfig.py | 129ac0c007c21afc316c98e75fa9f0bdbf72ce0b | [] | no_license | ElenaHan23/task | 1b290ee23e131812ff6f81c69dacae5c403b0d87 | d6e469c0c451946bdb7ac3786880bb71f21be21a | refs/heads/master | 2023-01-03T01:05:30.391747 | 2020-10-31T10:40:52 | 2020-10-31T10:40:52 | 308,710,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,698 | py | ## *********************************************************
##
## File autogenerated for the pcl_ros package
## by the dynamic_reconfigure package.
## Please do not edit.
##
## ********************************************************/
from dynamic_reconfigure.encoding import extract_params
inf = float('inf')
config... | [
"1756134400@qq.com"
] | 1756134400@qq.com |
7c9c9e27a66dd8b88776805e7f7682fab8640875 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/apimanagement/v20160707/get_api_management_service.py | 388ab6cd5bbec019eb5f790dd8c910ae06bdb922 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 14,388 | 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
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
f4bd399cac0996ad1d2a4fb239f655c5a9b1485c | e7aaebedf140262fde121c9ae4f5f01fcc295655 | /operations/Bcolors.py | 2c38c89c99991c5e50e1e0319666979d80206b89 | [
"Apache-2.0"
] | permissive | vibhatha/PSGDSVMPY | 69224490ef36c36bb59df54b9473d01e9369b395 | 69ed88f5db8d9a250ee944f44b88e54351f8696f | refs/heads/master | 2020-05-19T03:18:41.785594 | 2019-05-03T17:43:55 | 2019-05-03T17:43:55 | 184,796,792 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | class Bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
TEAL = ''
| [
"vibhatha@gmail.com"
] | vibhatha@gmail.com |
7ff569848f1debdbb9256bdcc78cfecb6705c8e5 | e408a1c27efcafaec1f6bf1e6255075eae171102 | /AppServer/src/http/path.py | 6fe92ec0a88f516b1a954b1b8997e1e76043d295 | [] | no_license | adoggie/BlueEarth | acd609a5da9eb0276dc810776f97a35c5b5ccf8c | ef2c4d045d8d933bcbf5789a87a189be6b33947d | refs/heads/master | 2020-03-29T15:31:54.834861 | 2018-12-23T16:03:59 | 2018-12-23T16:03:59 | 150,067,522 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | #coding: utf-8
"""
路径轨迹抽吸、过滤处理
考虑 采用高德的抓路服务或者百度鹰眼服务进行绑路服务
"""
from math import sin, cos, sqrt, atan2, radians
from functools import partial
def distance(coord1, coord2):
R = 6373.0
lat1 = radians(coord1[0])
lon1 = radians(coord1[1])
lat2 = radians(coord2[0])
lon2 = radians(coord2[1])
dlon = lon2 - lon1
dlat ... | [
"24509826@qq.com"
] | 24509826@qq.com |
2b2b170972af8d99f005ac98a71125629d05848e | d7fafa497d5724a6a53d6790556a0056493be80e | /srl_model/tests/modules/token_embedders/token_characters_encoder_test.py | 1a37036109245f020f670e0ba1322ed93ef2a1fc | [
"Apache-2.0"
] | permissive | rz-zhang/Bert_Attempt | 472a9e3d7e3874f63710f850357b884354bb2d46 | 26936a5a63ff22c8ab118480caf515cdc395e37f | refs/heads/master | 2021-10-08T09:25:04.297734 | 2018-12-10T14:59:13 | 2018-12-10T14:59:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | # pylint: disable=no-self-use,invalid-name
from copy import deepcopy
import numpy
from numpy.testing import assert_almost_equal
import torch
from srl_model.common import Params
from srl_model.data import Vocabulary
from srl_model.modules import Seq2VecEncoder
from srl_model.modules.token_embedders import Embedding, T... | [
"986645906@qq.com"
] | 986645906@qq.com |
58a5cf372752a07384f5c2b99bc92596ccbd3eb9 | 9951b1f9957031f9b5015bf48da854faba1079c0 | /pipelines/imaging/with_lens_light/pipelines/light_parametric__mass_light_dark__source_inversion.py | dedcf15ec6a58506d66a0fdddc3a2bdec359b234 | [] | no_license | jonathanfrawley/autolens_workspace_test_copy | 07c069b77759afb2d836d9763846d27727eea67c | 7f7c72feedf5ad3dd7b6d65a3b6de463eaaa4fe6 | refs/heads/master | 2023-04-24T11:57:52.620442 | 2021-02-25T15:52:54 | 2021-02-25T15:52:54 | 367,427,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,836 | py | from os import path
import autofit as af
import autolens as al
"""
In this pipeline, we fit `Imaging` of a strong lens system where:
- The lens `Galaxy`'s light is modeled parametrically using one or more input `LightProfile`s.
- The lens `Galaxy`'s light matter mass distribution is fitted with the `LightPr... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
de4d7f75b3c1455cc71971b6be306ddc2e288b53 | ac7d9676d662b6bccf4d6308b6226fdb9c38caf1 | /Chapter_02/playin_with_csv/read_it.py | 5c99ece4346d7ff2bfbc2ede369809f970f4d451 | [] | no_license | codingEzio/code_py_book_automateit | 8b0f8a1613043dd3c32562d8e893f6799e96a20a | fc1feca3951d6944068d1669f968d45c0267d873 | refs/heads/master | 2020-04-04T17:55:45.261830 | 2018-11-13T15:21:49 | 2018-11-13T15:21:49 | 156,142,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import csv
from pprint import pprint
with open('./src/mylist.csv', mode='rt') as mycsv:
reader = csv.DictReader(mycsv)
for row in reader:
print(row['first_name'], row['phone'], sep='\t')
print('-' * 40)
print(
reader.fieldnames[:3], # all col
reader.line_num, # current pos
reader.dialect, ... | [
"assassinste@gmail.com"
] | assassinste@gmail.com |
6f469ed253c42b14b18a0d7a8292b0ac6a4e8f22 | ac611dc723fce87df6a0dbbe9627251af6bbb34e | /calculate_upwind_matrix.py | c21a12c79792fd84062f9de72754457de5549115 | [
"MIT"
] | permissive | l5d1l5/Land-use-regression-model | 3400f45ea38cc468bba188818985adcce14e04b8 | 04658d37252a091f089d7c334bf16fc026525af5 | refs/heads/master | 2020-07-06T18:16:22.732051 | 2019-08-01T21:51:02 | 2019-08-01T21:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,004 | py | #############################################
# calculate_upwind_matrix.py
# Author: Andrew Larkin
# Developed for Perry Hystad, Oregon State University
# Date last modified: Jan 25, 2017
# Description: This script combines wind direction measurements from a csv file with
# air monitor shapefiles and buffered major an... | [
"noreply@github.com"
] | l5d1l5.noreply@github.com |
7275923ecef7097f38c66b5d6187cb02df4c58aa | 144f8f6f6d26189e04d53450ac13e82b6438b21f | /edk2basetools/UPT/MkPkg.py | e2cc0c8cba267d495d4ca9b2dc71c21125f7bab4 | [
"BSD-2-Clause-Patent"
] | permissive | matthewfcarlson/edk2-pytool-base | 82fe9d0971cf63b3ffb6ce39b4740d23c9a21ed2 | ddf78ca6e2110f03e020a5bd0ca32b2a463fecff | refs/heads/master | 2021-02-04T07:56:29.543912 | 2020-07-27T20:59:38 | 2020-07-27T20:59:38 | 243,640,413 | 0 | 0 | NOASSERTION | 2020-07-24T01:19:27 | 2020-02-27T23:50:20 | Python | UTF-8 | Python | false | false | 9,819 | py | ## @file
# Install distribution package.
#
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
'''
MkPkg
'''
##
# Import Modules
#
from os import remove
from os import getcwd
from os import chdir
import os.path
from sys import stdin
from sys impo... | [
"macarl@microsoft.com"
] | macarl@microsoft.com |
40d7e666e69ba98ef745277b44c57a3e42d152a0 | 10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8 | /samcli/cli/global_config.py | 254237943251207a04baa78f1ce9f0fd06d0c831 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | aws/aws-sam-cli | 6d4411aacf7f861e75e5cf4882a32858797a276d | b297ff015f2b69d7c74059c2d42ece1c29ea73ee | refs/heads/develop | 2023-08-30T23:28:36.179932 | 2023-08-30T21:58:26 | 2023-08-30T21:58:26 | 92,205,085 | 1,402 | 470 | Apache-2.0 | 2023-09-14T21:14:23 | 2017-05-23T18:16:23 | Python | UTF-8 | Python | false | false | 15,124 | py | """
Provides global configuration helpers.
"""
import json
import logging
import os
import threading
import uuid
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Dict, List, Optional, Type, TypeVar, cast, overload
import click
from samcli.lib.utils.hash import str_checksum
LOG = log... | [
"noreply@github.com"
] | aws.noreply@github.com |
7fcfac2f1819bce34cda83d097938ff412cfaeb7 | ebe422519443dbe9c4acd3c7fd527d05cf444c59 | /choose_team.py | 208072cba0485adeeb2960fd0c6bfd21935c3bad | [] | no_license | SaiSudhaV/coding_platforms | 2eba22d72fdc490a65e71daca41bb3d71b5d0a7b | 44d0f80104d0ab04ef93716f058b4b567759a699 | refs/heads/master | 2023-06-19T18:05:37.876791 | 2021-07-15T18:02:19 | 2021-07-15T18:02:19 | 355,178,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #your code goes here
def choose_team(ar, n, k):
res = [1 for i in ar if k <= 5 - i]
return sum(res) // 3
if __name__ == "__main__":
n, k = map(int, input().split())
ar = list(map(int, input().split()))
print(choose_team(ar, n, k)) | [
"saisudhavadisina@gmail.com"
] | saisudhavadisina@gmail.com |
251ed6b10574b3e8817b6b1eaa15badf05cc05d5 | 1620e0af4a522db2bac16ef9c02ac5b5a4569d70 | /Ekeopara_Praise/Phase 2/DATA STRUCTURES/Day58 Tasks/Task2.py | 36a9e8fa4dd6d36028b1b6a469aa6a6ac097b3a2 | [
"MIT"
] | permissive | Ekeopara-Praise/python-challenge-solutions | cda07902c9ffc09ba770ae7776e5e01026406a05 | 068b67c05524b5c5a0d6084315eca3424c768421 | refs/heads/master | 2022-12-15T15:29:03.031583 | 2020-09-25T06:46:27 | 2020-09-25T06:46:27 | 263,758,530 | 2 | 0 | null | 2020-05-13T22:37:33 | 2020-05-13T22:37:32 | null | UTF-8 | Python | false | false | 479 | py | '''2. Write a Python program to iterate over an enum class and display individual member and their value.
Expected Output:
Afghanistan = 93
Albania = 355
Algeria = 213
Andorra = 376
Angola = 244
Antarctica = 672 '''
import enum
class Member(enum.Enum):
Afghanistan = 93
Albania = 355
Algeria = 213
Ando... | [
"ekeoparapraise@gmail.com"
] | ekeoparapraise@gmail.com |
3b18eb971ca2dc90d51b5b8e9d7e57f0b820083b | af82475dc7eb45c478414372c222e7b6016359d4 | /lesson6 常用第三方库/test.py | f73a0bda72bc5e020c6acf73df49bad4471e0589 | [] | no_license | enfangzhong/PythonBaseCode | 8f58c8b817eb9f4b0f0a5be437a52d5b5fab3433 | 9ab4a578b2692fdbb6aeeacb310251d51f72e953 | refs/heads/master | 2020-05-17T16:26:02.598344 | 2019-04-27T20:49:40 | 2019-04-27T20:49:40 | 183,817,172 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('-c',
'--config',
default='ds_config') # # Assign config file, don't use '.py' suffix.
parser.add_argument('-s',
'--spider',
... | [
"944727327@qq.com"
] | 944727327@qq.com |
ae53f4b2ed79ef52996c3be6315a5b237aa8d918 | 2d82d4c6574bd6d32f2cf1c781615f7951f55f66 | /muntjac/ui/grid_layout.py | 882e6db471410b393e62c86b10046a29b1369cab | [
"Apache-2.0"
] | permissive | metaperl/muntjac | f83f745ee03942a61af92ee7fba7285aa9c46f3c | 8db97712edd81b4d25deaaa48587d2a08010f2c8 | refs/heads/master | 2021-01-15T22:04:25.057862 | 2012-11-09T03:52:59 | 2012-11-09T03:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,430 | py | # @MUNTJAC_COPYRIGHT@
# @MUNTJAC_LICENSE@
"""Defines a container that consists of components with certain coordinates
on a grid."""
from warnings import warn
try:
from cStringIO import StringIO
except ImportError, e:
from StringIO import StringIO
from muntjac.ui.alignment import Alignment
from muntjac.ui.ab... | [
"r.w.lincoln@gmail.com"
] | r.w.lincoln@gmail.com |
f6f10afbbb696646ef765ae2318db35c7467bb9b | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/game_control/events_notifications.py | d9ae44d125d62fb8ff885ffc41ada5a66da86e99 | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,118 | py | # 2016.05.01 15:20:36 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/game_control/events_notifications.py
from collections import namedtuple
import BigWorld
import Event
from debug_utils import LOG_DEBUG
from PlayerEvents import g_playerEvents
from helpers import getLocalizedData
from gui.game_cont... | [
"info@webium.sk"
] | info@webium.sk |
b7a1fa9c6c441627ed45cc10f7b739c15163e60a | 242f738d327bc0d35409100c506dc3266c254e6c | /aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeIntranetAttributeKbRequest.py | 85f9ecbe0bf41079d386b4959e5dab37ea6f9b1a | [
"Apache-2.0"
] | permissive | crazygit/aliyun-openapi-python-sdk | f5d70b89f01a02945fcdc43c3c1e32cc1b0fb2c1 | 3edb9f23f1ada79f4876678aacee88818cfeb11e | refs/heads/master | 2021-06-25T05:59:09.143419 | 2017-09-13T10:19:40 | 2017-09-13T10:19:40 | 103,385,054 | 0 | 0 | null | 2017-09-13T10:13:55 | 2017-09-13T10:13:55 | null | UTF-8 | Python | false | false | 1,936 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.