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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d73ff38e70007c31e510c64ace9b12e806986bf | ab97a8915347c76d05d6690dbdbcaf23d7f0d1fd | /build/android/resource_sizes.py | 7f4f7ee5a5ea77ae9d7418a846d3e17a8b746d14 | [
"BSD-3-Clause"
] | permissive | laien529/chromium | c9eb243957faabf1b477939e3b681df77f083a9a | 3f767cdd5c82e9c78b910b022ffacddcb04d775a | refs/heads/master | 2022-11-28T00:28:58.669067 | 2020-08-20T08:37:31 | 2020-08-20T08:37:31 | 288,961,699 | 1 | 0 | BSD-3-Clause | 2020-08-20T09:21:57 | 2020-08-20T09:21:56 | null | UTF-8 | Python | false | false | 30,129 | py | #!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Reports binary size metrics for an APK.
More information at //docs/speed/binary_size/metrics.md.
"""
from __future__ import pr... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
7597042226d2a591aafcd88f49a1d3803ca5542a | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/addon_library/local/QBlocker/qspace.py | 2933954bc62f6a436dc7ce68da7564f1cafda0ba | [
"GPL-3.0-only",
"MIT"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 9,181 | py | import bpy
import gpu
import bgl
# import bmesh
from gpu_extras.batch import batch_for_shader
import mathutils
# import numpy
from .utilities.grid_utils import GetGridVector
from .utilities.math_utils import LinePlaneCollision
from bpy_extras.view3d_utils import region_2d_to_vector_3d, region_2d_to_origin_3d
from .util... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
32495522b2fd81ea7a06028dc2510f01b7e67688 | 0bfb55b41282803db96b90e7bba73d86be7e8553 | /publishers/views.py | b49de4967641e53db9e71a5c7bf2107d3902696b | [
"MIT"
] | permissive | OpenFurry/honeycomb | eebf2272f8ae95eb686ad129555dbebcf1adcd63 | c34eeaf22048948fedcae860db7c25d41b51ff48 | refs/heads/master | 2021-01-11T01:52:40.978564 | 2016-12-29T18:08:38 | 2016-12-29T18:08:38 | 70,649,821 | 2 | 2 | null | 2016-12-29T18:08:39 | 2016-10-12T01:22:38 | Python | UTF-8 | Python | false | false | 16,485 | py | from django.contrib import messages
from django.contrib.auth.decorators import (
login_required,
permission_required,
)
from django.contrib.auth.models import (
Group,
User,
)
from django.core.paginator import (
EmptyPage,
Paginator,
)
from django.core.urlresolvers import reverse
from django.db.... | [
"madison.scott-clary@canonical.com"
] | madison.scott-clary@canonical.com |
4c1ee37f5712dd73553e9b461af163e6df479098 | 34b09bc83e5726fccb524a93cf2742f5aeadedef | /8. Tree/2_answer.py | d5b9861160ea84ed0907fad53f3211d82894046b | [] | no_license | mjson1954/WIC | 57eb20ffe7aaf8695d679c893efacdeede573e72 | 670112209aacd274d09f6e9a89d948120486bfc8 | refs/heads/master | 2023-03-20T00:57:19.740025 | 2021-03-05T10:52:51 | 2021-03-05T10:52:51 | 289,925,829 | 0 | 0 | null | 2021-02-21T02:16:11 | 2020-08-24T12:46:58 | Python | UTF-8 | Python | false | false | 351 | py |
def inorder(n, last):
global cnt
if n <= last:
inorder(n * 2, last)
tree[n] = cnt
cnt += 1
inorder(n * 2 + 1, last)
for test_case in range(int(input())):
N = int(input())
tree = [0] * (N + 1)
cnt=1
inorder(1, N)
print('#{} {} {}'.format(test_case+1... | [
"mjson1954@gmail.com"
] | mjson1954@gmail.com |
28bb8c869e9ae1e4c9b795e3350951ba632fa612 | 3a51de9b289a141f23f7ad7feb97e937484ecbcf | /lib/player/player.py | 9260ad3101f8da06695f47ff4a8a9b333a8ab636 | [] | no_license | AndyDeany/sunni-remake | 52c40db465db0fa4cd04b9fbcb7f32e58e0fd52d | 3d6c5f742e41cc8c2c39bfd2b380f63ea012ef0f | refs/heads/main | 2023-05-01T05:47:50.858883 | 2021-05-07T17:35:44 | 2021-05-07T17:35:52 | 363,158,917 | 0 | 0 | null | 2021-05-12T13:32:49 | 2021-04-30T14:03:19 | Python | UTF-8 | Python | false | false | 3,620 | py | from collections import namedtuple
from lib.image import Image
from .moves import Kick, Headbutt, Frostbeam, Heal
from lib.character import Character, NotEnoughManaError
class Player(Character):
"""Class representing the Player (the character controlled by the user)."""
CHARACTER_1 = "character1"
CHARAC... | [
"oneandydean@hotmail.com"
] | oneandydean@hotmail.com |
3e6c0fb2e8ea90c331f630cd46132459a08ba11d | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/aio/operations/_private_link_services_operations.py | 54d5ac4c0661e5743c01f3ebc3f5bd9c73f96edc | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 62,988 | 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"
] | catchsrinivas.noreply@github.com |
9835945c0bfb18ed417925e0b02705344f7870b7 | a4e502e9487cf17c53f9f931ec0dbc12168fea52 | /tests/pyre/weaver/expressions_c.py | 09c724e94b47be07f1a16ff25188f81bbe895f1b | [
"BSD-3-Clause"
] | permissive | bryanvriel/pyre | bdc5dd59c46d53ff81f2ece532b9073ac3b65be1 | 179359634a7091979cced427b6133dd0ec4726ea | refs/heads/master | 2021-09-28T00:10:26.454282 | 2018-11-11T16:42:07 | 2018-11-11T16:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2018 all rights reserved
#
"""
Exercise a C expression weaver
"""
def test():
# get the packages
import pyre.weaver
import pyre.calc
# instantiate a weaver
weaver = pyre.weaver.weaver(name="sanity")
... | [
"michael.aivazis@orthologue.com"
] | michael.aivazis@orthologue.com |
da07e2f0dd5b923746161c2fc6fb1063975a5ddf | bc441bb06b8948288f110af63feda4e798f30225 | /container_sdk/model/tuna_service/test_plan_pb2.pyi | 65a3b9c5324b9494fb47733d0fb869bd301ffe6d | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,626 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from container_sdk.model.tuna_service.requirement_instance_pb2 import (
RequirementInstance as container_sdk___model___tuna_service___requirement_instance_pb2___RequirementInstance,
)
from google.protobuf.descriptor import (
Descriptor as g... | [
"service@easyops.cn"
] | service@easyops.cn |
d5168dc66457bc8c199197309d234dab576d48e0 | e9391e1d8f21ccf147b7f6b4a285379ab48f33e2 | /core/views.py | 389feccf9b2002e33ea7cffdf756727486efca40 | [] | no_license | boiyelove/alpenels | 62bd1c4bf2a0f5a0453a835604ddc2ca9ba523ad | ff35d1cae529a5f79e9ea62469884fc0730c0ff0 | refs/heads/master | 2021-10-10T02:01:35.219036 | 2019-01-06T08:18:08 | 2019-01-06T08:18:08 | 163,274,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,326 | py | import dateutil.parser
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse, reverse_lazy
from django.views.generic import ListView, DetailView, TemplateView
from django.contrib.auth.mixins import LoginRequiredMixin
from django... | [
"daahrmmieboiye@gmail.com"
] | daahrmmieboiye@gmail.com |
4e7e149ca665074c8dcd76689919720b275cc675 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_25196.py | 44ac5a1798b7117ed0a62c5f052b52af112d5a3f | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | # ImportError: No module named wpf (in Revit environment only) - User interface
import wpf
wpf.__file__
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
e52b90544d1ceaf93d83e0f1899866350df1397b | 790589224695a2c7dc3977c718bb0f7cb5f6429e | /stats/fan98test.py | f321b8ec683a0ee393a9d1f769c96c44158afabb | [] | no_license | nikolaims/delayed_nfb | 58ab51b3a9dd798f18579d9ebfead89c095413ac | 37a8fbbd6e75a604ff092695fefd6a6421101de4 | refs/heads/master | 2022-12-19T04:30:34.252323 | 2020-09-18T13:23:27 | 2020-09-18T13:23:27 | 282,847,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,323 | py | import numpy as np
import os
def eval_z_score(data_points1, data_points2):
# mean, std and number of samples
x1_mean = np.mean(data_points1, 0)
x1_std = np.std(data_points1, 0)
x1_n = data_points1.shape[0]
x2_mean = np.mean(data_points2, 0)
x2_std = np.std(data_points2, 0)
x2_n = data_poin... | [
"n.m.smetanin@gmail.com"
] | n.m.smetanin@gmail.com |
0c16c4cbc7bec0d762c92dd42889be0e90d2cec4 | ce5b5bca631122dd68494a66cdbb69531fec05e9 | /src/1014.py | f1bb2e49976ee3a0b6ab2f7569ae16bf58e75824 | [] | no_license | lucas54neves/urionlinejudge | 4008e29fb8810a32249c08a5aefa69288ed4d81b | 1d7d6f43d6dbde34c0f6a78e3c6d8770d599e28e | refs/heads/master | 2020-04-29T08:08:39.660682 | 2017-01-06T12:41:04 | 2017-01-06T12:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | # -*- coding: utf-8 -*-
x = int(input())
y = float(input())
print("{:.3f} km/l".format(x / y))
| [
"calazans10@gmail.com"
] | calazans10@gmail.com |
8fa54b65fc4063813a985acf4e0059e7116705ef | 568fa58296378fa129ab3349adf010daa44ed45b | /third_party/incubator-tvm/python/tvm/relay/op/vision/_make.py | f0e31709194d710393e7fbefe4f8a90a6f98e6cb | [
"Apache-2.0",
"BSD-3-Clause",
"NCSA",
"X11-distribute-modifications-variant",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | mindspore-ai/akg | 37f471badc66de6a831f1f45ad84344f34d23ef2 | 99f33858d6972741748cbfc9ab0bf9600428fef7 | refs/heads/master | 2023-07-25T23:03:17.672665 | 2023-07-11T07:33:57 | 2023-07-11T07:33:57 | 274,077,856 | 319 | 36 | Apache-2.0 | 2021-12-30T13:43:08 | 2020-06-22T08:09:05 | Python | UTF-8 | Python | false | false | 894 | 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... | [
"1027252281@qq.com"
] | 1027252281@qq.com |
229f80c2b25ce34f5817bf9a25216175cb2e46cd | 48983b88ebd7a81bfeba7abd6f45d6462adc0385 | /HakerRank/algorithms/sorting/countingsort1.py | e135cc9ca8e5df255df2c85165a7a381e75f68d4 | [] | no_license | lozdan/oj | c6366f450bb6fed5afbaa5573c7091adffb4fa4f | 79007879c5a3976da1e4713947312508adef2e89 | refs/heads/master | 2018-09-24T01:29:49.447076 | 2018-06-19T14:33:37 | 2018-06-19T14:33:37 | 109,335,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # author: Daniel Lozano
# source: HackerRank ( https://www.hackerrank.com )
# problem name: Algorithms: Sorting: Counting Sort 1
# problem url: https://www.hackerrank.com/challenges/countingsort1/problem
# date: 8/20/2017
n = int(input())
array = [int(i) for i in input().split()]
count = [0 for i in range(max(array)+... | [
"lozanodaniel02@gmail.com"
] | lozanodaniel02@gmail.com |
8a39bf68b2b2cea3c56735111181d89cb786306c | a742bd051641865d2e5b5d299c6bc14ddad47f22 | /algorithm/牛客网/14-链表中倒数第k个节点.py | b5d4a48dcbdb55bdc68a5ec35835d1df39b8ff13 | [] | no_license | lxconfig/UbuntuCode_bak | fb8f9fae7c42cf6d984bf8231604ccec309fb604 | 3508e1ce089131b19603c3206aab4cf43023bb19 | refs/heads/master | 2023-02-03T19:10:32.001740 | 2020-12-19T07:27:57 | 2020-12-19T07:27:57 | 321,351,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py |
"""
输入一个链表,输出该链表中倒数第k个结点。
以空间换时间
"""
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def FindKthToTail(self, head, k):
# write code here
'''
# 运行时间:22ms 占用内存:5856k
ret = []
while head:
... | [
"525868229@qq.com"
] | 525868229@qq.com |
8350946547ae600ae9e371657261443a53ba657a | e5aff0646237acf3639ac805652143cd8267bf33 | /template.py | 828dd581ec0c8f3190ff0720f6f760fc3cb2513a | [
"Apache-2.0"
] | permissive | HTDerekLiu/BlenderToolbox | 42943cf9fee7277d319ff5baffe7810c4c27dfe4 | 8044e77268ff018514ad1501c291f6deb6a07ec6 | refs/heads/master | 2023-07-20T05:14:58.736225 | 2023-07-10T16:33:17 | 2023-07-10T16:33:17 | 162,408,776 | 408 | 48 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | import sys, os
sys.path.append(os.path.join(os.path.abspath(os.getcwd()))) # change this to your path to “path/to/BlenderToolbox/
import BlenderToolBox as bt
import os, bpy, bmesh
import numpy as np
cwd = os.getcwd()
'''
RENDER AN IMAGE STEP-BY-STEP:
1. copy "template.py" to your preferred local folder
2. In "template... | [
"hsuehtil@cs.toronto.edu"
] | hsuehtil@cs.toronto.edu |
3415a4ecb83d7e175dabb499de9265c8cc036262 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_appointing.py | 26b9e8439c7ab22458130ace2febc7adeaf9fdc6 | [
"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 | 230 | py |
#calss header
class _APPOINTING():
def __init__(self,):
self.name = "APPOINTING"
self.definitions = appoint
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['appoint']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
850ec92026f401141c59fd3e0a0d2ad28d4ca8fe | ab464f019ed1669fa4f0fbf2a7f25e662d996948 | /proj1/Python-Test1/morsels_proxydict2.py | c91c7e265c8e16301a026dd6092f7af3df73b900 | [] | no_license | maniraja1/Python | fed2aa746c690560d7744b1378259af1cdfa9bb0 | c9e6e12836fed47cdba495a07f43d7599265bea1 | refs/heads/master | 2021-06-03T19:17:16.591303 | 2021-01-04T16:06:25 | 2021-01-04T16:06:25 | 89,430,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py |
class ProxyDict:
def __init__(self,data={}):
self.data=data
def __getitem__(self, item):
return self.data[item]
def __iter__(self):
for key, value in self.data.items():
yield key
def keys(self):
x = []
for key in self.data.keys():
x.app... | [
"mrajagopal@mrajagopal-ltm.internal.salesforce.com"
] | mrajagopal@mrajagopal-ltm.internal.salesforce.com |
5c8633a022c983ef715a29fc3751eecef317daca | 0e47f4e7765938324cee0186c4ba0bf257507b0b | /docs/source/conf.py | 51cc86e7396589f9260c1bc7af7ae2d7111a6bbe | [
"BSD-3-Clause"
] | permissive | JarryShaw/lorem.js | fcd9cceb6ff9d21a273a995dd36ad9a1fd4644c1 | b2e8e163e065b0b5d2a367f564a3a8ac756104ca | refs/heads/master | 2023-08-03T05:49:24.006149 | 2023-07-30T01:58:22 | 2023-07-30T01:58:22 | 213,123,617 | 0 | 0 | BSD-3-Clause | 2023-07-30T01:58:24 | 2019-10-06T07:09:14 | TypeScript | UTF-8 | Python | false | false | 2,467 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"jarryshaw@icloud.com"
] | jarryshaw@icloud.com |
97286bf0248e398684ddbc5cbc43952b3ebf61b4 | 187f114edca30e0fec49cdaee873bbe614295442 | /docs/source/conf.py | 802726555ddced6fbbd0320aa0d3c743866fc976 | [
"MIT"
] | permissive | scorphus/pvsim | c5b3f4535d8c404cf1a4fbe9c731c5dee7fc8251 | 778349147245c754e37ab7d44d385b03780105ac | refs/heads/master | 2022-10-24T02:12:28.331528 | 2020-06-08T17:09:49 | 2020-06-08T17:09:49 | 109,788,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,807 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of pvsim.
# https://github.com/scorphus/pvism
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT-license
# Copyright (c) 2017, Pablo Santiago Blum de Aguiar <pablo.aguiar@gmail.com>
# PV Simulator Challenge documentation build ... | [
"scorphus@gmail.com"
] | scorphus@gmail.com |
c7eaf6bea58237cdccc33d21a51b534bf54ca155 | d1b59545c498a1188b84a874324522385dbadfe4 | /A01/q1/q2.py | 2ff0ac09805da363d938afc94d3b1439a1e4c0be | [] | no_license | khat3680/basic_python-104 | 570c64daf6a89c5696966c75a9901b0d15eb758e | c3a79e08cb5fe6dcba5130c295f395c6130d559b | refs/heads/master | 2022-12-09T21:32:27.068654 | 2020-09-11T17:08:47 | 2020-09-11T17:08:47 | 294,756,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | """
------------------------------------------------------------------------
Assignment 1 Question 2
C
------------------------------------------------------------------------
Author: Anshul Khatri
ID: 193313680
Email: khat3680@mylaurier.ca
__updated__ = "2019-09-14"
-----------------------------------------------... | [
"anshulskhatri@gmail.com"
] | anshulskhatri@gmail.com |
149137c48aaf71c39a2d48bd44e95b892c37bca9 | 627094b5e463bd113f626450eaceb01dfa4ff5d5 | /udsoncan/services/ReadDataByPeriodicIdentifier.py | d943ab4a2cdd1f4a238f9e91cbb7fec3ea179296 | [
"MIT"
] | permissive | DaleChen0351/python-udsoncan | 49eefcb299e2a4fabe0bf168905cc86ef43d6f62 | c495e872c69c4ea05e3b477d2a1088cb83167a17 | refs/heads/master | 2020-04-20T06:10:25.252315 | 2019-03-28T07:38:17 | 2019-03-28T07:38:17 | 168,675,483 | 0 | 0 | MIT | 2019-03-28T07:38:19 | 2019-02-01T09:42:02 | Python | UTF-8 | Python | false | false | 718 | py | from . import *
from udsoncan.Response import Response
from udsoncan.exceptions import *
class ReadDataByPeriodicIdentifier(BaseService):
_sid = 0x2A
supported_negative_response = [ Response.Code.IncorrectMessageLegthOrInvalidFormat,
Response.Code.ConditionsNotCorrect,
Response.Code.RequestO... | [
"py.lessard@gmail.com"
] | py.lessard@gmail.com |
bad5caea1aca73bb22c458643376be763d78501b | 7d4e3f36fb1bac247599510820c0f537417f99e4 | /jnpy/__init__.py | 27623371e04ec7b6314a18697122d86eded15828 | [
"MIT"
] | permissive | jojoquant/jonpy | 562065ea74ac1038c36d3993f43e71cc39a799a7 | c874060af4b129ae09cee9f8542517b7b2f6573b | refs/heads/master | 2022-09-08T07:15:37.051279 | 2022-03-18T06:41:22 | 2022-03-18T06:41:22 | 244,432,056 | 7 | 7 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # !/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Datetime : 2020/1/22 上午1:40
# @Author : Fangyang
# @Software : PyCharm
if __name__ == '__main__':
pass
| [
"fangyang.jing@hotmail.com"
] | fangyang.jing@hotmail.com |
22dd8bde5c343bdbe523ce05f063df666dc97e78 | 7b813118535a4a311159f0709e17dd44f4acb1e6 | /apps/base/models.py | 398010b665f09735b46711a2319959b8a58e3dab | [
"Apache-2.0"
] | permissive | apprentice1985/BlogBackendProject | ee4af2994f73bb3a87c2f3e6336754e518830444 | 67534e995f965e7ec3330a316251f7b87c0e9b7f | refs/heads/master | 2021-01-25T13:05:22.776354 | 2018-03-01T17:12:57 | 2018-03-01T17:12:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,844 | py | import hashlib
from django.db import models
from material.models import MaterialSocial, MaterialMaster
class NavigationLink(models.Model):
"""
自定义导航
"""
name = models.CharField(max_length=30, verbose_name="名称", help_text="名称")
desc = models.CharField(max_length=100, verbose_name="简介", help_text=... | [
"i@coderap.com"
] | i@coderap.com |
17c62b25766d04711a43abe1a6664544e0969e56 | 82080ef68a203f141ab6435c32fdcc79351b448e | /web_dynamic/3-hbnb.py | f2591110ea9142633bb3c28838dee8b09cc5a20f | [
"MIT"
] | permissive | dalexach/AirBnB_clone_v4 | 60291a8d10d58f75d707fdc4a0c11095e4c36dc5 | 04e1db0691cbe5cefb6a5f42f7e008e8ba24d5d6 | refs/heads/master | 2023-02-08T02:26:40.018351 | 2020-02-18T20:14:16 | 2020-02-18T20:14:16 | 240,527,417 | 0 | 2 | MIT | 2023-02-02T03:27:32 | 2020-02-14T14:32:44 | HTML | UTF-8 | Python | false | false | 1,356 | py | #!/usr/bin/python3
"""
Flask App that integrates with AirBnB static HTML Template
"""
from flask import Flask, render_template, url_for
from models import storage
from uuid import uuid4
# flask setup
app = Flask(__name__)
app.url_map.strict_slashes = False
port = 5000
host = '0.0.0.0'
# begin flask page rendering
@a... | [
"diahancaroll@hotmail.com"
] | diahancaroll@hotmail.com |
04eef729215eff975b7ee7bd345bbf3cd621784c | f5f87fabe766e69c7a003d070b6447ef5a45c603 | /stylelens_search/models/__init__.py | 6c599ebfcc38fd644fb7183bd6deae699ba00867 | [] | no_license | BlueLens/stylelens-search | 4a4f17f876e1781a6fee5663bfa62f83f657d7db | 7c21d59d49915688777714fb896d65a101dab28a | refs/heads/master | 2021-07-15T08:55:45.256052 | 2017-10-21T15:44:35 | 2017-10-21T15:44:35 | 107,691,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # coding: utf-8
"""
stylelens-search
This is a API document for Image search on fashion items\"
OpenAPI spec version: 0.0.1
Contact: devops@bluehack.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import models into model packag... | [
"master@bluehack.net"
] | master@bluehack.net |
ef03dc7074da5007a1486441d0229d4e4db99142 | e0e9b1446ccaccdd7332b2f916e737cdaced8a8d | /.scripts/submit.py | 6ce7eff369601b1752b5709ac46a92bb65b5cbf9 | [] | no_license | marygmccann/cse-34872-su20-assignments | 3afd51f8cfc7c0262b7937d113755baf49cbd20e | c2c2f21da1abd86e646c16ea86f21702efb34d68 | refs/heads/master | 2022-08-24T10:32:31.545059 | 2020-05-19T21:03:43 | 2020-05-19T21:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,252 | py | #!/usr/bin/env python3
import glob
import json
import os
import sys
import requests
import yaml
# Globals
ASSIGNMENTS = {}
DREDD_QUIZ_URL = 'https://dredd.h4x0r.space/quiz/cse-34872-su20/'
DREDD_QUIZ_MAX = 2.0
if bool(os.environ.get('DEBUG', False)):
DREDD_CODE_URL = 'https://dredd.h4x0r.space/debug/cse-3... | [
"pbui@nd.edu"
] | pbui@nd.edu |
6407d8cd05af0356ac59c26e791b779813da547d | ef1f62cf4e53f856bf763ac0dee73f054518530d | /Week_07/208.Implement_Trie.py | 00f27ebe6bcf165fca9b12eb1cd01c797725850f | [] | no_license | ZHHJemotion/algorithm008-class01 | 3338af3619d8e1754a62af6a852f517b47298d95 | 5bb7d2b74110df0b5788b94c69582552d711563a | refs/heads/master | 2022-11-12T09:26:24.941738 | 2020-06-30T15:29:20 | 2020-06-30T15:29:20 | 255,102,230 | 0 | 0 | null | 2020-04-12T14:39:17 | 2020-04-12T14:39:17 | null | UTF-8 | Python | false | false | 1,821 | py | # Implement a trie with insert, search, and startsWith methods.
#
# Example:
#
#
# Trie trie = new Trie();
#
# trie.insert("apple");
# trie.search("apple"); // returns true
# trie.search("app"); // returns false
# trie.startsWith("app"); // returns true
# trie.insert("app");
# trie.search("app"); // returns ... | [
"zhhjemotion@hotmail.com"
] | zhhjemotion@hotmail.com |
a573ee26fbe78730cc20595670f4408e417d3492 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/GLES1/OES/single_precision.py | d67e1d503c813791b2ce19f41892ef8db20a7272 | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 1,317 | py | '''OpenGL extension OES.single_precision
This module customises the behaviour of the
OpenGL.raw.GLES1.OES.single_precision to provide a more
Python-friendly API
Overview (from the spec)
This extension adds commands with single-precision floating-point
parameters corresponding to the commands that only variants ... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
2f9a53d49fd4ed9c71a2cd957ff8bd6d59d9d5d0 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/web-dev-notes-resource-site/2-content/Data-Structures/1-Python/maths/gcd.py | 51d2711d3abfc8b69402ae7ee013a4a7b2f630df | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 938 | py | def gcd(a, b):
"""Computes the greatest common divisor of integers a and b using
Euclid's Algorithm.
"""
while b != 0:
a, b = b, a % b
return a
def lcm(a, b):
"""Computes the lowest common multiple of integers a and b."""
return a * b / gcd(a, b)
"""
Given a positive integer x, c... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
1d996f9d9e66d2a64deb825439e2acd7feef60e3 | 28a9cc19537f7264421afeb9883962aa480c2616 | /deals/migrations/0002_product_data_category_id.py | cc5cb13b2afca538cacf42cdf415cf940e913c68 | [] | no_license | ujjwalagrawal17/BrokerAppBackend | b33df886b389aabfcfe7278c3e41c99d13d4fbb3 | 1b8ffd18e4c5257d222c17b8aece3351b549b204 | refs/heads/master | 2021-01-22T21:23:18.807792 | 2017-03-18T19:06:44 | 2017-03-18T19:06:44 | 85,425,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-12-29 18:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deals', '0001_initial'),
]
operations = [
migrations.AddField(
mod... | [
"ujjwal.iitism@gmail.com"
] | ujjwal.iitism@gmail.com |
4340e9b7a8286e8c59be954b02524b64f84cd8d3 | c36aae30fad06ea64dd5d158d364c18462a70799 | /website/books/models.py | ea80d86c5c777f2270f02934900264f101096070 | [] | no_license | srikanthpragada/building_web_applications_using_django_framework | 60222ca503c97aa375726d4496db9e36a72ebb4b | 920780593d6324414d0c727a9bce2db171614350 | refs/heads/master | 2023-01-03T12:31:10.851750 | 2020-10-31T15:49:10 | 2020-10-31T15:49:10 | 308,915,547 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from django.db import models
class Book(models.Model):
title = models.CharField(max_length=30, unique=True, null=False)
author = models.CharField(max_length=30, null=False)
price = models.IntegerField(null=False)
def __str__(self):
return f"{self.id} - {self.title} - {self.author} - {self.pri... | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
8fb78e1b6dc83ef71a9e50e3592e4b6d439b160e | b77a36eb7c2214151feccca0c4894381147d6051 | /movie/migrations/0009_alter_movie_movie_rating.py | 2d33a2519713b24a769d3ba4f64c82b9413b674c | [] | no_license | mnk-q/watchlist | b15536bb8a2a81f1935bb08a25b04dc27953f896 | 3ac14b1ba48a2bd7aae84e7a3c64cf60fedd6f17 | refs/heads/master | 2023-06-04T21:14:51.235899 | 2021-06-25T17:41:37 | 2021-06-25T17:41:37 | 349,739,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.2.3 on 2021-06-17 13:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movie', '0008_alter_movie_movie_studio'),
]
operations = [
migrations.AlterField(
model_name='movie',
name='movie_ra... | [
"="
] | = |
2e4e80804e0df7428bc6a33fefaccdae4578c22f | eb4119dda59e44fc418be51a33c11e5d32f29fd7 | /src/ssadmin/exceptions.py | 85209da51cf62e8e06cd884e306ea79a48927876 | [
"MIT"
] | permissive | daimon99/ssadmin | 4ee08f4d56bc8f27099f1e1caa72a3ca8b8b1b57 | 9a1470712bdca5b0db17895d4c8215555d6b1b04 | refs/heads/master | 2020-12-24T12:29:49.070231 | 2016-11-11T13:26:34 | 2016-11-11T13:26:34 | 72,992,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | # coding:utf-8
class SSError(Exception):
pass
| [
"daijian1@qq.com"
] | daijian1@qq.com |
305d5f76e5fb3052bcd63b76465b8fe2c3e33e0b | 92e26b93057723148ecb8ca88cd6ad755f2e70f1 | /SE/BottleNeck/r40_SE/network.py | bba54ad210394d7c821cc9509f84a78419bb598a | [] | no_license | lyuyanyii/CIFAR | 5906ad9fbe1377edf5b055098709528e06b5ace2 | d798834942d6a9d4e3295cda77488083c1763962 | refs/heads/master | 2021-08-30T20:09:52.819883 | 2017-12-19T08:37:37 | 2017-12-19T08:37:37 | 112,701,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | import numpy as np
from megskull.network import Network
from megskull.opr.all import (
Conv2D, Pooling2D, FullyConnected, Softmax,
CrossEntropyLoss, Dropout, ElementwiseAffine
)
from megskull.opr.helper.elemwise_trans import ReLU, Identity, Sigmoid
from megskull.graph.query import GroupNode
from megskull.o... | [
"315603442@qq.com"
] | 315603442@qq.com |
13d7260187bc3dedef4fe80405688fa7a830b32e | 2c4ba5a56b7a3d3e1c286b678eb8068f51c23046 | /week3/2-Resolve-with-Functions/solutions/twin_primes.py | ff03fddc715021dd92dde7664a6c768f15866bd7 | [] | no_license | OgnyanPenkov/Programming0-1 | 3b69757bd803814585d77479fc987a0ee92d0390 | 8078f316ea2b81216c21cf78e7cf1afc17f54846 | refs/heads/master | 2021-01-21T15:12:20.814368 | 2015-10-07T18:16:39 | 2015-10-07T18:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | def is_prime(n):
if n <= 1:
return False
start = 2
is_prime = True
while start < n:
if n % start == 0:
is_prime = False
break
start += 1
return is_prime
p = input("Enter number: ")
p = int(p)
q = p - 2
r = p + 2
is_p_prime = is_prime(p)
is_q_pri... | [
"radorado@hackbulgaria.com"
] | radorado@hackbulgaria.com |
eacfa3bf0ecf50f94c712db40637ea50d9317cbf | 38a42a205eaa5a0a46989c95f0b01f7e04b96a9e | /uoft/CSC236H1S Intro to Theory Comp/tut/quiz6/MasterRunner.py | 6ed2c358606beddceff4c243ed6535cafbbe5a68 | [
"MIT"
] | permissive | Reginald-Lee/biji-ben | d24cd1189ca3e9ed7b30e5b20a40137e8d6d4039 | 37009dfdbef9a15c2851bcca2a4e029267e6a02d | refs/heads/master | 2023-05-06T23:06:49.819088 | 2020-06-10T12:07:47 | 2020-06-10T12:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | def soln(a, b, k, e):
c = 0
while c <= e:
print ((float (a) / b**k)**c)
c += 1
| [
"rexarski@gmail.com"
] | rexarski@gmail.com |
f250d33cc3036d938d84a63612f7bddeef67203a | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/toon/PlayerDetailPanel.py | 7fab34d34832d1ccb0846ed7cb013f3fb958085d | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 5,657 | py | # 2013.08.22 22:26:15 Pacific Daylight Time
# Embedded file name: toontown.toon.PlayerDetailPanel
from pandac.PandaModules import *
from toontown.toonbase.ToontownGlobals import *
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from direct.showbase import DirectObject
from direct.fsm import Classic... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
c75ca77774d5cd9bcad6368b9bdf184ac951965a | 6e46a850cc4ece73476a350e676ea55ce72b200a | /aliyun-python-sdk-imageseg/aliyunsdkimageseg/request/v20191230/SegmentCommodityRequest.py | f66063bb203dc2f9890c64ed12a522c3fa6acc49 | [
"Apache-2.0"
] | permissive | zhxfei/aliyun-openapi-python-sdk | fb3f22ca149988d91f07ba7ca3f6a7a4edf46c82 | 15890bf2b81ce852983f807e21b78a97bcc26c36 | refs/heads/master | 2022-07-31T06:31:24.471357 | 2020-05-22T17:00:17 | 2020-05-22T17:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | 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 |
94c01ee844d433e79abd65caad5625c1412139c1 | ec31d26a8b619ec98dc5c586f525420572cc39a1 | /scripts/map_timings.py | c76a6e265894314d3ec6f5f64a7eeab8b4fa9405 | [
"MIT"
] | permissive | stestagg/timing | b0fab6ff8814e5edeeaa98b7bcd470aa9e527742 | 57f40229616b2dc385afc447f3f587940158c3b4 | refs/heads/master | 2021-06-25T19:20:17.158308 | 2017-09-11T22:26:23 | 2017-09-11T22:26:23 | 103,174,114 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import sys
from collections import namedtuple
from pprint import pformat
import yaml
from jinja2 import Environment, FileSystemLoader, select_autoescape
Output = namedtuple("Output", ["cpu", "human"])
def unit_sort(x):
raw = 1 - x[0]
if raw < 0:
return abs(raw) * 0.001
return raw
def render(**kw... | [
"stestagg@gmail.com"
] | stestagg@gmail.com |
5da5b673a32056f2d144a312b0032ee8c2690cc3 | 3faffa899187e9244c7f3bccc02bf451e496637e | /python/chapter 1/1-1.py | ef166815faf24e009175ecdbc670c22723e9f8a0 | [] | no_license | WuLC/Beauty_OF_Programming | 909aa6e3dff3dc090da6a3f375aec15222b14f6a | 63accae07afbbece292a1115ce37b44e03839e31 | refs/heads/master | 2020-04-06T04:12:15.573389 | 2016-11-21T03:42:24 | 2016-11-21T03:42:24 | 58,548,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # -*- coding: utf-8 -*-
# @Author: LC
# @Date: 2016-10-16 12:27:57
# @Last modified by: WuLC
# @Last Modified time: 2016-10-16 20:35:05
# @Email: liangchaowu5@gmail.com
########################################
# take up certain usage of a cpu cor
#########################################
import time
import psuti... | [
"liangchaowu5@gmail.com"
] | liangchaowu5@gmail.com |
08ea5f305b23d6fd9cbdfda052a2a1e19f6d8b88 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_sparse_attention_op.py | 87306b8b8d54285c8c3ddbbba4bd91a143364b4a | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 18,439 | py | # Copyright (c) 2021 PaddlePaddle 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 app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
56d158dff5e05e09140913a1e7f0634290017b2f | 274b743e47c08ac17afa96f4c76017e168c5793a | /torchsde/_core/methods/scalar/utils.py | 2fc1c75437a8fde6448d5ad83c5811805c280b48 | [
"Apache-2.0"
] | permissive | patrick-kidger/torchsde | 8cc6ea4ea75435fedb54a390be35d201b6a65265 | 4e6902b51bcf1c2f15c4c94027909c1162a6695c | refs/heads/master | 2022-12-01T06:11:28.082318 | 2020-08-09T17:28:43 | 2020-08-09T17:28:43 | 286,237,250 | 3 | 2 | Apache-2.0 | 2020-08-09T17:28:44 | 2020-08-09T12:56:51 | null | UTF-8 | Python | false | false | 898 | py | # Copyright 2020 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 agreed to in writing, ... | [
"12689993+lxuechen@users.noreply.github.com"
] | 12689993+lxuechen@users.noreply.github.com |
7bf7fd3eaeee8d2f8d11255b72f453b53bd61041 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/npc/DistributedGhostAI.py | 8b7ab4804bd8b8e385c65685fd59e4d316aa705e | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | from direct.distributed import DistributedObjectAI
class DistributedGhostAI(DistributedObjectAI.DistributedObjectAI):
def ___init___(self, air):
DistributedObjectAI.DistributedObjectAI.__init__(self, air)
def announceGenerate(self):
DistributedObjectAI.DistributedObjectAI.announceGenerate(sel... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
24c033c557df6d3c058bc52996289b4261529790 | 970b654bc4e4dd2e2167dbdbb737e8dc34f82bae | /Portfolio/views.py | 76ce58bc4da492e206c7f302faf41ad7824cc7b1 | [] | no_license | Subhrans/Portfolio_using_Django | 5b7024bbf97a46e48300dc0f4c00c5111ab9537f | 8e7817c8b651f6004c495fde6c2a3defbf705158 | refs/heads/main | 2023-05-31T14:33:55.558325 | 2021-05-31T17:46:41 | 2021-05-31T17:46:41 | 322,904,475 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,281 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponseNotFound
from .forms import SubscribeForm, ContactUsForm, LoginForm
from django.contrib import messages
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.decorators import login_required
from... | [
"subhransud525@gmail.com"
] | subhransud525@gmail.com |
72c70e99db2ead16f2ef5be4abc6008f77fad04c | 0bce7412d58675d6cc410fa7a81c294ede72154e | /Python3/0044. Wildcard Matching.py | 9df5bb742fe54fee40a24b8f728f83976693a948 | [] | no_license | yang4978/LeetCode | 9ddf010b0f1dda32cddc7e94c3f987509dea3214 | 6387d05b619d403414bad273fc3a7a2c58668db7 | refs/heads/master | 2022-01-15T04:21:54.739812 | 2021-12-28T12:28:28 | 2021-12-28T12:28:28 | 182,653,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | class Solution:
def isMatch(self, s: str, p: str) -> bool:
l1 = len(s)
l2 = len(p)
dp = [[False]*(l2+1) for i in range(l1+1)]
dp[0][0] = True
for j in range(1,l2+1):
if(p[j-1]=='*'):
dp[0][j] = dp[0][j-1]
for i in range(1,... | [
"noreply@github.com"
] | yang4978.noreply@github.com |
4e28dafd47b60ac34e28b715db2cbfcf5fefbdb2 | c08b5edb5075e7840e716b0a09006dae0a4d05ac | /.history/Missions_to_Mars/scrape_mars_20200808232435.py | 3a588df03c13e75f15c5b6cfa084daff2ad77809 | [] | no_license | OlgaDlzk/web-scraping-challenge-1 | 06f915eb76c55c9bc37889017dd9af81122dc1a5 | f99c3436dfb0169595c46dae7733d90e21385cc6 | refs/heads/master | 2023-03-18T00:58:37.928024 | 2020-09-22T20:32:47 | 2020-09-22T20:32:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,673 | py | # Dependencies
import numpy as np
import pandas as pd
from bs4 import BeautifulSoup as bs
import requests
from splinter import Browser
import re
# Initialize browser
def init_browser():
executable_path = {"executable_path": "/usr/local/bin/chromedriver"}
#executable_path = {'executable_path': 'chromedriver.e... | [
"ermiasgelaye@gmail.com"
] | ermiasgelaye@gmail.com |
f3ac7390128a0e5cba6fa4f0fbbe5e23df6ae422 | 0ac0387f701e10a3d5d1fd42287ae8ab4b76be11 | /Start_up_sub_power/Main_FAST_Ver2.py | be7641b967fc1091c95e9d371ef7e5d6058e65d2 | [
"Apache-2.0"
] | permissive | LeeDaeil/CNS_Autonomous | 676e6f091c4e25d4f9b52683d119bae1ea4289a5 | 2ae3688cfd654b9669893e3cdf4cdf1ac0748b9f | refs/heads/master | 2021-06-19T11:09:38.550032 | 2021-01-06T07:45:29 | 2021-01-06T07:45:29 | 144,431,774 | 2 | 0 | null | 2018-11-10T15:38:05 | 2018-08-12T02:24:15 | Python | UTF-8 | Python | false | false | 53,345 | py | import tensorflow as tf
from keras.layers import Dense, Input, Conv1D, MaxPooling1D, LSTM, Flatten, Dropout
from keras.models import Model
from keras.optimizers import Adam, RMSprop
from keras import backend as K
#------------------------------------------------------------------
import threading
import datetime
from c... | [
"dleodlf1004@naver.com"
] | dleodlf1004@naver.com |
741f02664bdd52868fe507b0d1fe419b4afddc95 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02897/s660020311.py | ea80983864a51ccbb925913415ad8d21b55324d5 | [] | 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 | 103 | py | n = int(input())
oddCount = len(list(filter(lambda x: x % 2 == 1, range(1,n + 1))))
print(oddCount / n) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6be48f1637c815776435a38e54f966983166a081 | b91588cda1a129f06aa9493ee6d6a70e4f996b7f | /Production/python/Spring16/SMS-T1bbbb_mGluino-1000_mLSP-900_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_cff.py | c69faaf277b52d7d2654832ef700f0bd01594130 | [] | no_license | muzamilahmad/LeptoQuarkTreeMaker | 2371e93589dbe41b02a93a2533cbf5e955aaa0db | 8e7eed0d03c6770a029eafb9b638e82c600a7425 | refs/heads/master | 2021-01-19T01:02:35.749590 | 2018-02-06T17:27:52 | 2018-02-06T17:27:52 | 65,389,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISpring16Mi... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
7e48b766b0f55a68c8fea240590cb3cbe02c5a0d | 77772edccbdb5fe07229358a48471cfeca395893 | /restau/urls.py | 23b136010aa6519649d9415cbe92f9971b8637d7 | [] | no_license | ShreySumariya07/Restaurant-Drf | a4b08b2522da37ab88e807cb42978b014dce639a | a06fba134a50b1803d1ce59eeb5a3c4e7c1a9528 | refs/heads/master | 2023-06-22T21:55:09.949692 | 2021-01-29T13:45:25 | 2021-01-29T13:45:25 | 334,158,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py |
from django.urls import path
from . import views
urlpatterns = [
path('restaurants/', views.Restaurants.as_view()),
path('restaurants/<str:restaurant_id>/', views.RestaurantDetail.as_view()),
path('restaurants/<str:restaurant_id>/recipes/', views.Recipes.as_view()),
path('restaurants/<str:restaurant_i... | [
"you@example.com"
] | you@example.com |
2c29dde493d22062c4ad341523e1cddfa11d7c80 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/object_method_complex_call-153.py | 384c6c28ad4f88a1960d2add9439c0e2ccbf5dda | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | class A(object):
a:int = 42
def foo(self:"A", ignore:object) -> int:
return self.a
class B(A):
b:bool = True
def __init__(self:"B"):
print("B")
def bar(self:"B") -> int:
return self.foo(self.foo(print("...")))
def foo(self:"B", ignore:object) -> int:
return 1... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
df13f4b67919899516f1c43c1e5841125b3cad2d | 7d6a8a62c117bbf15da9fa4240ce60cd98efb935 | /venv/bin/wheel | 3a3464ce28ada17adf3b1fbb91a270083e6c2e35 | [] | no_license | Sem31/creating_API | 040281c14a510072c2194e76864f84afa0a4dfb9 | d468b1d97d0bb272087beea06dc21dda02f7efc1 | refs/heads/master | 2022-10-14T13:33:39.548294 | 2019-09-24T06:20:26 | 2019-09-24T06:20:26 | 210,194,810 | 0 | 0 | null | 2022-09-16T18:10:40 | 2019-09-22T18:27:03 | Python | UTF-8 | Python | false | false | 249 | #!/home/sem/Desktop/chating_API/original/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"31kamleshprajapat@gmail.com"
] | 31kamleshprajapat@gmail.com | |
3100bf04aa4c403c82b611c69b52c10ec9c06173 | 4be5c172c84e04c35677f5a327ab0ba592849676 | /python/interviewbit/strings/min_chars_to_make_palindrome/min_chars_to_make_palindrome.py | a703d91003b0bbc9c59a79a4de9d67fc79ac951e | [] | no_license | niranjan-nagaraju/Development | 3a16b547b030182867b7a44ac96a878c14058016 | d193ae12863971ac48a5ec9c0b35bfdf53b473b5 | refs/heads/master | 2023-04-06T20:42:57.882882 | 2023-03-31T18:38:40 | 2023-03-31T18:38:40 | 889,620 | 9 | 2 | null | 2019-05-27T17:00:29 | 2010-09-05T15:58:46 | Python | UTF-8 | Python | false | false | 3,241 | py | '''
https://www.interviewbit.com/problems/minimum-characters-required-to-make-a-string-palindromic/
Minimum Characters required to make a String Palindromic
Given an string A. The only operation allowed is to insert characters in the beginning of the string.
Find how many minimum characters are needed to be inserted... | [
"vinithepooh@gmail.com"
] | vinithepooh@gmail.com |
aa6c975ee2f19bb1dc0094b1d58e5ff4d74ef6c8 | 86abbc013ab6209d11d58b735048a560ce059e72 | /tests/test_01_main/test_env_vars_2.py | ca3fab4037b7b777f6209d3922be51fa56d92bee | [
"MIT"
] | permissive | alexiri/meinheld-gunicorn-docker | e518e10f1845856f1c2c81181e825b5c8aebf99a | e9ff167987a967071b408c0ecb7790232f378ea7 | refs/heads/master | 2020-04-16T23:44:49.276125 | 2019-01-12T14:12:12 | 2019-01-12T14:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | import time
import docker
import pytest
from ..utils import (
CONTAINER_NAME,
get_config,
get_process_names,
stop_previous_container,
)
client = docker.from_env()
@pytest.mark.parametrize(
"image",
[
("tiangolo/meinheld-gunicorn:python3.6"),
("tiangolo/meinheld-gunicorn:pyth... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
6af5aa34d0a7a362993c603080d43cfa065632d3 | 029f8af8b1f8cd1106761aac48b86c13bd1592f4 | /pysrc/cpu/cpu_6809.py | b161b4d6dbfdd8ef0c9260faee89e8e27fc65585 | [] | no_license | highno/computerarcheology | 093ead424ada446c85bcb1cbcfc8c17b572d1814 | a7b0df284e0c98c3c75ebeb6374ffb1bf87b7640 | refs/heads/master | 2020-12-09T22:31:53.025623 | 2020-02-15T10:16:54 | 2020-02-15T10:16:54 | 233,435,423 | 0 | 0 | null | 2020-01-12T18:03:36 | 2020-01-12T18:03:36 | null | UTF-8 | Python | false | false | 23,883 | py |
OPCODES = [
{"mnem": "LDY #w", "code": "108Ewmwl", "bus": ""},
{"mnem": "NEG p", "code": "00pp", "bus": "rw"},
{"mnem": "COM p", "code": "03pp", "bus": "rw"},
{"mnem": "LSR p", "code": "04pp", "bus": "rw"},
{"mnem": "ROR p", "code": "06pp", "bus": "rw"},
{"mnem": "ASR p", "code": "07pp",... | [
"topherCantrell@gmail.com"
] | topherCantrell@gmail.com |
33642132bf671fca1fb601bf2a308944456d0679 | 17f6881c70401dc63757cc7b5fa4d9dd396689e3 | /src/main/com/libin/yfl/2.py | ab40b869edeb44fd720e43b62d3e0074571c639f | [] | no_license | BigDataRoad/Algorithm | 0ab493eeb478125b4beb62d78ce18c73e30b0496 | 2f2fb4f4b84f6c9df8adbada63b327c43ce29ddd | refs/heads/master | 2023-07-02T04:06:51.025648 | 2021-07-28T14:04:55 | 2021-07-28T14:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | ''''
面试题50. 第一个只出现一次的字符
在字符串 s 中找出第一个只出现一次的字符。如果没有,返回一个单空格。
示例:
s = "abaccdeff"
返回 "b"
s = ""
返回 " "
'''
class Solution:
def firstUniqChar(self, s: str) -> str:
d1 = {}
for each in s:
if each not in d1:
d1[each] = 1
else:
d1[each] += 1
... | [
"yangfengling@inttech.cn"
] | yangfengling@inttech.cn |
1b41e87af402abd0b44ebbe92b9d6c0550a0335c | aa0270b351402e421631ebc8b51e528448302fab | /sdk/servicenetworking/azure-mgmt-servicenetworking/generated_samples/frontend_patch.py | cb930d459dcae096783768ee9d0d2b0061cf2ee1 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 1,803 | 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"
] | fangchen0601.noreply@github.com |
2f10dba5436ddd58b598a3bbcab70bc2d65b0d95 | 0667af1539008f9c6c0dcde2d3f50e8bbccf97f3 | /source/rttov_test/profile-datasets-py/div52_zen30deg/021.py | 1f7d863a8a771f5d34136eb75b9ce1e209bff41d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bucricket/projectMAScorrection | bc6b90f07c34bf3e922225b2c7bd680955f901ed | 89489026c8e247ec7c364e537798e766331fe569 | refs/heads/master | 2021-01-22T03:54:21.557485 | 2019-03-10T01:47:32 | 2019-03-10T01:47:32 | 81,468,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,029 | py | """
Profile ../profile-datasets-py/div52_zen30deg/021.py
file automaticaly created by prof_gen.py script
"""
self["ID"] = "../profile-datasets-py/div52_zen30deg/021.py"
self["Q"] = numpy.array([ 1.60776800e+00, 4.96291500e+00, 5.49166000e+00,
8.63497500e+00, 8.20432100e+00, 4.71451600e+0... | [
"bucricket@gmail.com"
] | bucricket@gmail.com |
df76809e8cc0c86466eac41b4177052d87b4c49f | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/pef/RelocLgByImport.pyi | 27b5bea67c6a66a0caa4003b216de6e66cc6fd77 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | pyi | import ghidra.app.util.bin.format.pef
import ghidra.app.util.importer
import ghidra.program.model.data
import ghidra.program.model.listing
import ghidra.util.task
import java.lang
class RelocLgByImport(ghidra.app.util.bin.format.pef.Relocation):
"""
See Apple's -- PEFBinaryFormat.h
"""
def ap... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
ccbde9d6da768d83b804f523d581a547d9ba4769 | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/math/math_inverse_trig.py | 26b2a3fc86ae12776e4c1f17fcb31bef477a193f | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 379 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2010 Doug Hellmann. All rights reserved.
#
"""Inverse trigonometric functions
"""
#end_pymotw_header
import math
for r in [ 0, 0.5, 1 ]:
print 'arcsine(%.1f) = %5.2f' % (r, math.asin(r))
print 'arccosine(%.1f) = %5.2f' % (r, math.acos(r))
prin... | [
"350840291@qq.com"
] | 350840291@qq.com |
356a0bc40cd0d90f4452998c8f8c8ff403d7b25b | b1742abd82bd3c27b511d5ba855b9b1e87e6854a | /lab_03_magic_8_ball.py | b8ad94d1f6d1263e2666335d8b65c5b1fb29e783 | [] | no_license | tomaccosheep/simple_django_render | 8702e13e96462e495287b2f5624dcd2d142d72b4 | 6dd2a5bab32e352cc6ff9b7b542ba2d126f01728 | refs/heads/master | 2023-05-03T05:36:47.601119 | 2020-02-28T21:44:26 | 2020-02-28T21:44:26 | 243,859,346 | 0 | 0 | null | 2023-04-21T20:51:57 | 2020-02-28T21:41:12 | Python | UTF-8 | Python | false | false | 362 | py | '''DJANGO STUFF'''
import os
from django.shortcuts import render
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
'''MAGIC 8 BALL LAB'''
import random
input("What's your question?\n:")
with open('lab_03_out.html', 'w') as f:
f.write(render(None, 'lab_03_in.html', {'answer': random.choice(['It will happen', "It w... | [
"al.burns.email@gmail.com"
] | al.burns.email@gmail.com |
c9bfa9d5d595624d4165a76659b67985675a32e9 | 1524720d6480ad0a51b6fd8ff709587455bf4c5d | /tums/trunk/etch-release/reportlab/platypus/tables.py | a49c9859e686ec868da21d48cbc20c0ba62f7411 | [] | no_license | calston/tums | 2bd6d3cac5232d2ccb7e9becfc649e302a310eab | b93e3e957ff1da5b020075574942913c8822d12a | refs/heads/master | 2020-07-12T03:46:43.639800 | 2018-05-12T10:54:54 | 2018-05-12T10:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,563 | py | #Copyright ReportLab Europe Ltd. 2000-2004
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/platypus/tables.py
__version__=''' $Id: tables.py 3269 2008-09-03 17:22:41Z rgbecker $ '''
__doc__="""
Tables are created by passing the constructor a... | [
"junwin@gmail.com"
] | junwin@gmail.com |
64cf0bf1871a6b84f9a729968ec396164bec5eff | 732b0b3e2ae0e6c498cfd2ed893de60b9fc22a32 | /tests/integration/actions/collections/test_welcome_interactive_noee.py | 5c0bbeddc6c0b39a11d26ac6b3341c0b5bf0a460 | [
"Apache-2.0"
] | permissive | didib/ansible-navigator | eb7b77c1df30b2e90b663383f0f76b6224e92c02 | 62fdbd05f25fb2d79133b3ab207f53ac2f2d6d36 | refs/heads/main | 2023-08-30T06:43:42.876079 | 2021-10-14T18:42:17 | 2021-10-14T18:42:17 | 425,540,819 | 0 | 0 | Apache-2.0 | 2021-11-07T15:27:54 | 2021-11-07T15:27:53 | null | UTF-8 | Python | false | false | 1,166 | py | """ collections from welcome interactive w/0 ee
"""
import pytest
from .base import BaseClass
CLI = "ansible-navigator --execution-environment false"
testdata = [
(0, CLI, "ansible-navigator welcome screen"),
(1, ":collections", "ansible-navigator collections top window"),
(2, ":0", "Browse testorg.coll_... | [
"noreply@github.com"
] | didib.noreply@github.com |
6a9815bcd0c734fda3cd74d9658b0d8ab02503a6 | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1_toleration.py | 770bb006050329795a673f8662ff0e3e39b446f0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,907 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
17040fde877a4f28ad58496fd1e547336763246d | 9bf7d7ace42a61991970fd967c19071a50609b9e | /ipython/MultiDot.py | d5d3b44b3bd700618f18adcdb674674c8abe775a | [] | no_license | ParsonsRD/SciPy-CookBook | 29b68eace76962ae00735039bc3d488f31714e50 | 52f70a7aa4bd4fd11217a13fc8dd5e277f2388ea | refs/heads/master | 2020-03-17T17:33:28.827269 | 2013-05-17T06:56:54 | 2013-05-17T06:56:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,663 | py | # <markdowncell>
# The matrix multiplication function, numpy.dot(), only takes two
# arguments. That means to multiply more than two arrays together you end
# up with nested function calls which are hard to read:
#
# <codecell>
dot(dot(dot(a,b),c),d)
# <markdowncell>
# versus infix notation where you'd just be ... | [
"matti.pastell@helsinki.fi"
] | matti.pastell@helsinki.fi |
38192ff80015c3eaf94f38a786aaa3a32e84f80e | 06bf7c9f24b2a9cfe1f9feb1481838b37713904e | /scripts/ansible-vagrant-inventory.py | b88e0db54e121ddfbc708d93aa319328c75d5ce2 | [
"MIT"
] | permissive | marcelodevops/dotfiles | 31efb4d62b7e5161fba40c204612d01e44cc35bd | eeb63ea94f27aef0eef8777bd8a423ae81133217 | refs/heads/master | 2022-03-08T20:37:08.749623 | 2019-10-22T20:14:45 | 2019-10-22T20:14:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | #!/usr/bin/env python
from __future__ import print_function
import argparse
import json
import os
import os.path
import subprocess
import sys
def exit_err(msg):
print(msg, file=sys.stderr)
sys.exit(1)
def get_vagrant_index():
path = os.path.expanduser('~/.vagrant.d/data/machine-index/index')
with o... | [
"anlutro@gmail.com"
] | anlutro@gmail.com |
e8b58c05a571106b4b6e583e9fb783bceebe4a72 | 236e6a7c4604443f0f4acd778bcccd747011080e | /ax/storage/sqa_store/sqa_config.py | 4c184fcadc002f2ad2f11fec983230902d70b085 | [
"MIT"
] | permissive | MayukhBagchiTrento/Ax | a161e1fee615c4e570de51b32f9e656063dc228d | 7c925ba8365af714d9671208de490ba48814bfaa | refs/heads/master | 2023-05-09T20:14:14.525338 | 2021-06-02T18:46:51 | 2021-06-02T18:46:51 | 268,482,239 | 0 | 0 | MIT | 2020-06-01T09:43:39 | 2020-06-01T09:43:38 | null | UTF-8 | Python | false | false | 2,537 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from enum import Enum
from typing import Dict, NamedTuple, Optional, Type
from ax.core.arm import Arm
from ax.core.bas... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
d6ab292e0caa5483ef89895c47a5e5aa8ee679c7 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/billing_setup_service/transports/base.py | b8a572cac8815e85d9d4868a0e0d004ba5c7b66a | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
9a5e9d041ce5d5aec6a271c32fdf6721bfcdf335 | 0d9445f17a7175c3872c6ffb9280c3269b8a1eb9 | /test/unfolding/test_unfolding.py | 06ece9628fe17d60ef34aa60e688ece98132da0e | [] | permissive | neukirchen-212/phonopy | 8aa4fc9f63cb124acaa6f7ab052275a423c000cb | e34588dcb32fb15aa2a6604ffd3e62ebb0927c0f | refs/heads/develop | 2023-08-24T00:47:35.908407 | 2021-10-16T12:02:27 | 2021-10-16T12:02:27 | 328,015,607 | 0 | 0 | BSD-3-Clause | 2021-01-11T12:53:48 | 2021-01-08T21:24:17 | null | UTF-8 | Python | false | false | 4,753 | py | import numpy as np
from phonopy import Phonopy
from phonopy.unfolding import Unfolding
# from phonopy.interface.vasp import write_vasp
import os
data_dir = os.path.dirname(os.path.abspath(__file__))
def test_Unfolding_NaCl(ph_nacl):
"""Test to reproduce proper band structure of primitive cell
Results are wr... | [
"atz.togo@gmail.com"
] | atz.togo@gmail.com |
c16fe6d08af84f79148a92df9ca28ec80d1fbd1b | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/planner/leaf.py | a26a48f95065c8ded94a02ebbeb6e1facd5221d6 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,862 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
d4df2caa6ed25adc9924e59b16ebf3b4dc71c06b | 64cd09628f599fe18bf38528309349f7ac0df71e | /ML.Autoencoder/Reference/1_Autoencoder.py | 59899e4665c25aec2652d6535c1f0822d0364e62 | [] | no_license | JunyoungJang/Python | 958c057b2fd37c03876d3cf566ee27ee637bb020 | 76d4cd441deff8061e10608e0848360bc4f34490 | refs/heads/master | 2021-01-19T21:54:42.208469 | 2020-02-14T09:54:17 | 2020-02-14T09:54:17 | 83,768,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py | # Gradient-Based Learning Applied to Document Recognition [Y LeCun 1998] http://yann.lecun.com/exdb/publis/pdf/lecun-01a.pdf
# Greedy Layer-Wise Training of Deep Networks [Bengio 07] http://papers.nips.cc/paper/3048-greedy-layer-wise-training-of-deep-networks.pdf/
# Extracting and Composing Robust Features with Denoisi... | [
"lakino@yonsei.ac.kr"
] | lakino@yonsei.ac.kr |
a1088c8dfa47439b1217fe6d2ebf2519ad1696a3 | ae6189642a07fd789f51caadb924328a54919cac | /100-problems/review/dinamic-programming/37-coin-2.py | f4d3151f226422f8a88fdfd7ba7a84605042607d | [] | no_license | d-matsui/atcorder | 201e32403653b2fdf0d42188faf095eb8b793b86 | 22ec1af8206827e10a986cb24cf12acc52ab1d6a | refs/heads/master | 2020-09-27T23:15:27.281877 | 2020-09-01T13:24:34 | 2020-09-01T13:24:34 | 226,632,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | #!/usr/bin/env python3
from pprint import pprint
import sys
sys.setrecursionlimit(10 ** 6)
input = sys.stdin.buffer.readline
INF = float('inf')
n, m = map(int, input().split())
coins = list(map(int, input().split()))
# dp[i] := ちょうどi円支払うときのコインの最小枚数
dp = [INF] * (n + 1)
dp[0] = 0
for i in range(n + 1):
for c ... | [
"mti.daiki@gmail.com"
] | mti.daiki@gmail.com |
c8d1d2b5066d64780127495106322b5db11767f8 | 8b9bf5891152762a0dbaef2f01ba8a302d3213fa | /git_blankfile.py | 9e977d1f7d84a0fba2c33fa1f8a736a35c14897b | [] | no_license | WRGrantham/github_practice | bd79ec1d3bfbefe50e00686f63bb247529293370 | a4a1e06b1cbe7ef2667934584293d3a401382fb2 | refs/heads/master | 2020-03-22T06:49:39.473734 | 2018-07-04T03:15:24 | 2018-07-04T03:15:24 | 139,660,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | def bitch_please(string):
print ("bitch, PLEASE!")
bitch_please(poop_butt)
poop_butt = "Mr Poopy Butthole, we've got changes"
| [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
529fdedd635d45409b375681a83e45cf48eb5ce7 | 2f24144874d82759f616fdff09e1e9ab196aeac1 | /project_config/wsgi.py | 557e1a8ecbd2d5538cd768f08e09bc678aeb245f | [] | no_license | mfonism/aso_models | 4f0985d9d8761d84bc591d0c8f1f6f97a1d96312 | f677a9416b5ffda940c8e79407968556a83644ad | refs/heads/main | 2021-09-27T02:27:05.746713 | 2020-08-26T23:38:24 | 2020-08-26T23:38:24 | 214,043,643 | 4 | 3 | null | 2021-09-22T18:01:14 | 2019-10-09T23:29:55 | Python | UTF-8 | Python | false | false | 405 | py | """
WSGI config for project_config 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('DJANG... | [
"mfonetimfon@gmail.com"
] | mfonetimfon@gmail.com |
70b8250d91c0fe9c9201349f493e908f51d62f94 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_MaxPool3D_11.py | 0d68f5ac5631e67e9f271a8346573b1b1fc46ec8 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 620 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
eee8b28412164b068298414bbbfdd00a7682dde6 | d190750d6cb34e9d86ae96724cf4b56a2f57a74a | /tests/r/test_gilgais.py | cf929d3c6685b3eb562f0d35660052a163cdc03a | [
"Apache-2.0"
] | permissive | ROAD2018/observations | a119f61a48213d791de0620804adb8d21c2ad9fb | 2c8b1ac31025938cb17762e540f2f592e302d5de | refs/heads/master | 2021-09-24T04:28:02.725245 | 2018-09-16T23:06:30 | 2018-09-16T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.gilgais import gilgais
def test_gilgais():
"""Test module gilgais.py by downloading
gilgais.csv and testing shape of
extracted data has 36... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
0be288da85863450afa7a166af6d2304e7aa4300 | 6fb37fee016346120d4c14c4343516532304055a | /src/genie/libs/parser/iosxe/tests/test_show_ip.py | 87faf2deeb76a8bc95aeaaf838eda94ca386a3b5 | [
"Apache-2.0"
] | permissive | devbollinger/genieparser | 011526ebbd747c6dcd767535ce4bd33167e15536 | ad5ce7ba8f5153d1aeb9cffcfc4dde0871f3401c | refs/heads/master | 2020-12-20T11:36:00.750128 | 2020-01-24T18:45:40 | 2020-01-24T18:45:40 | 236,061,155 | 0 | 0 | Apache-2.0 | 2020-01-24T18:38:43 | 2020-01-24T18:38:42 | null | UTF-8 | Python | false | false | 6,901 | py | # Python
import unittest
from unittest.mock import Mock
# ATS
from ats.topology import Device
from ats.topology import loader
# Metaparser
from genie.metaparser.util.exceptions import SchemaEmptyParserError, SchemaMissingKeyError
# iosxe show_lisp
# from genie.libs.parser.iosxe.show_lisp import ShowLispSession
#... | [
"karmoham@cisco.com"
] | karmoham@cisco.com |
853b5efb4360f589ed00f617b2c4e5f5ad8dc3c6 | c49849e8c0234ab60d4c5c17233b84ae63932074 | /src/decision-trees.py | d3e57413bfcf73273372e63481c02ec9d78856e9 | [] | no_license | AlexisDrch/Machine-Learning | 97a79c15087765ac97b8693c39f42807255d2a22 | f60cf4147f38a900dd606bb1c07e986a6c72d262 | refs/heads/master | 2021-04-06T09:11:48.926794 | 2018-03-12T09:02:32 | 2018-03-12T09:02:32 | 124,861,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | # coding: utf-8
from utils import *
# ### 1. Decision Trees
# In[18]:
clf_dt = tree.DecisionTreeClassifier(criterion='gini') # explain use of gini and information gain
# #### 1. Balancing wine dataset
# In[19]:
cv = StratifiedKFold(n_splits=10)
title = 'Learning Curve - Decision Tree - wine imbalanced'
plt, sc... | [
"aleksi.durocher@wanadoo.fr"
] | aleksi.durocher@wanadoo.fr |
b73af01c3a4ae24080e795dfdfa6fc5f0dded805 | 9e1bda53da4c5e98190f5f25235f528d692ee5a8 | /.history/my_app/forms_20210405180446.py | 9fd1f9a4b32ae169cb9e3865f612d88a43ae36d9 | [] | no_license | Jumayev-A/Project-3 | 3d373181af6a87e3fe319a13d28fcd18941167b7 | 34ddd009726cbba9ae52e74a46d554fd735566e2 | refs/heads/main | 2023-06-10T11:02:06.446151 | 2021-07-07T06:19:11 | 2021-07-07T06:19:11 | 350,375,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django import forms
from my_app.models import BlogModel
class BlogForm(forms.ModelForm):
class Meta:
model = BlogModel
fields = ['title','description'] | [
"abdy.jumayev@gmail.com"
] | abdy.jumayev@gmail.com |
8f8f52e2e5ddc47176d85bf7b051d523a6670890 | 5dd03f9bd8886f02315c254eb2569e4b6d368849 | /tests/python/twitter/common/string/test_basic_scanf.py | 00b280c41ad6bed4daf5a43c6fffc5bfa45b65b2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | adamsxu/commons | 9e1bff8be131f5b802d3aadc9916d5f3a760166c | 9fd5a4ab142295692994b012a2a2ef3935d35c0b | refs/heads/master | 2021-01-17T23:13:51.478337 | 2012-03-11T17:30:24 | 2012-03-11T17:30:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | import pytest
import unittest
from twitter.common.string.scanf import ScanfParser
def almost_equal(a, b, digits=7):
return abs(a-b) < 0.1**digits
def basic_scanf(fmt, string, extra=False):
formatter = ScanfParser(fmt)
result = formatter.parse(string, extra)
assert len(result.ungrouped()) == 1
return result.... | [
"jsirois@twitter.com"
] | jsirois@twitter.com |
087e5477ba0dc7f53e31d552937861e0ef8d456b | 5831b0293cbb6f9e0660ac4ec952cbdb047d051d | /tests/test_corpus.py | f045ffdac25a7a65fc7e1b85f1b460d32a078e9a | [
"Apache-2.0"
] | permissive | mdlynch37/textacy | 03e3287fd8ee8bd4d06e48b7b87edf8324a987e5 | c1c7376a84a62faeee496e9b8cc2a29edc28c7d1 | refs/heads/master | 2021-01-20T09:29:54.627035 | 2017-12-04T05:31:14 | 2017-12-04T05:31:14 | 101,596,726 | 0 | 0 | null | 2017-08-28T02:36:30 | 2017-08-28T02:36:30 | null | UTF-8 | Python | false | false | 3,565 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import os
import shutil
import tempfile
import unittest
from textacy import Corpus
from textacy import Doc
from textacy import cache
from textacy import compat
from textacy import fileio
from textacy.datasets.capitol_words import Capitol... | [
"burton@chartbeat.com"
] | burton@chartbeat.com |
3439f18b0ee4568641def717417ce8bf67b35fa8 | 0141361f7c4d276f471ac278580479fa15bc4296 | /Greedy/videoStitching.py | 35e26476c753b3396c97ac391d7f749443758fc4 | [] | no_license | tr1503/LeetCode | a7f2f1801c9424aa96d3cde497290ac1f7992f58 | 6d361cad2821248350f1d8432fdfef86895ca281 | refs/heads/master | 2021-06-24T19:03:08.681432 | 2020-10-09T23:53:22 | 2020-10-09T23:53:22 | 146,689,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | class Solution:
def videoStitching(self, clips: List[List[int]], T: int) -> int:
end = -1
end2 = 0
res = 0
for i, j in sorted(clips):
if end2 >= T or i > end2:
break
elif end < i and i <= end2:
res += 1
end = end... | [
"noreply@github.com"
] | tr1503.noreply@github.com |
532a85852e977f65bd726f325702a8c0c9dee17d | bb6ebff7a7f6140903d37905c350954ff6599091 | /third_party/skia/gyp/tools.gyp | 5ea127296ae495935da7b0fc984ead95cda3ef51 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 15,688 | gyp | # GYP file to build various tools.
#
# To build on Linux:
# ./gyp_skia tools.gyp && make tools
#
{
'includes': [
'apptype_console.gypi',
],
'targets': [
{
# Build all executable targets defined below.
'target_name': 'tools',
'type': 'none',
'dependencies': [
'bbh_shootout'... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
5eb1b4c72a607c8c34436d80e1ae1bdf17b45c32 | c55aedc3479a4d311fb406d8133b0e0ceb99d2df | /example/new_system_app/1_BFS_aug.py | c36ba8e8a01e7f60215e6fb316506cd4a9217873 | [] | no_license | tarwcz111111111/DashCam_python | 4a33cdb3e5a8368b81ddc7c0596d4f0802b7c9d6 | 6e025ff49261c146205eb56bbbf4175f1d413f54 | refs/heads/master | 2020-08-25T04:55:16.695561 | 2017-08-28T04:34:59 | 2017-08-28T04:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | #!/usr/bin/python2
# ==============================================================
# Step.0
# Fetch the Google data
# ==============================================================
import sys
sys.path.append('/home/andy/Documents/gitHub/DashCam_python/module') # use the module under 'module'
import file_process
impo... | [
"ydnaandy123@gmail.com"
] | ydnaandy123@gmail.com |
0d2fcc5aaf85d229d9c6559618c3ca3d55b05514 | f5fbe5ed5cae7661bc2b9f0aebad003cc4813379 | /qupy/ldpc/symplectic.py | 0130502cc46462313b0294616964b187126c4436 | [
"MIT"
] | permissive | punkdit/qupy | 4f88c8d473b35ff5fe59fa29ce930af01bd60aec | 42da77e2be9a6e289e714a3a8f0e865a755cba23 | refs/heads/master | 2023-09-01T00:48:53.356345 | 2023-08-18T09:20:18 | 2023-08-18T09:20:18 | 157,732,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,344 | py | #!/usr/bin/env python3
"""
Build symplectic matrices over F_2.
This group is a quotient of the Clifford group by the Pauli group.
"""
from collections import namedtuple
from functools import reduce
from operator import mul
from random import shuffle
import numpy
from numpy import concatenate as cat
from qupy.util i... | [
"simon@arrowtheory.com"
] | simon@arrowtheory.com |
d6ed4bf04f30d4d1b1b82eeb248dc600ede27fd9 | eae6dddca9285702c4c7ed6ba6bdaceef9631df2 | /CCC-2018/Junior/Junior-1/J1.py | 475041d11174a226860f6028287db67757ce1cb8 | [] | no_license | simrit1/CCC-Solutions-2 | 7823ce14801c4219f6f1dd4c42fb013c2dfc45dd | ee2883aa38f933e526ce187d50ca68763876cb58 | refs/heads/master | 2023-07-04T02:19:37.320261 | 2021-08-07T22:12:36 | 2021-08-07T22:12:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # CCC 2018 Junior 1: Telemarketer or not?
#
# Author: Charles Chen
#
# Simple if statement
digit1 = int(input())
digit2 = int(input())
digit3 = int(input())
digit4 = int(input())
if (digit1 == 8 or digit1 == 9) and (digit2 == digit3) and (digit4 == 8 or digit4 == 9):
print("ignore")
else:
print(... | [
"noreply@github.com"
] | simrit1.noreply@github.com |
4c62fa5221d7e7acc4a6d1fd239915dd62942b79 | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/landing/migrations/0079_auto_20200215_2305.py | d85a68046299dd8b76f851e1157494274efd585e | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 522 | py | # Generated by Django 2.2.10 on 2020-02-15 22:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('landing', '0078_auto_20200215_1909'),
]
operations = [
migrations.AlterField(
model_name='section',
name='template'... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
53bfd78a3bc2f711a4860ef3c45e69b66823e37c | b57b0a14df5c6841f04cccb7b02ad04afbca18f8 | /avi_vantage/datadog_checks/avi_vantage/config_models/instance.py | 017f57d0d5fea29b61a601bec35b7ad9e169c9c1 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"AFL-3.0",
"BSD-3-Clause-Modification",
"LGPL-3.0-only",
"Unlicense",
"LGPL-2.1-only",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | zeroc0d3/integrations-core | d9c99803c049668b7f9f9c796d338e343d3d46ee | 634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb | refs/heads/master | 2021-09-28T18:37:00.650406 | 2021-09-13T11:59:45 | 2021-09-13T11:59:45 | 199,758,958 | 0 | 0 | BSD-3-Clause | 2019-07-31T02:01:25 | 2019-07-31T02:01:24 | null | UTF-8 | Python | false | false | 4,652 | py | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from __future__ import annotations
from typing import Any, Literal, Mapping, Optional, Sequence, Union
from pydantic import BaseModel, Extra, Field, root_validator, validator
from datadog_checks.base.ut... | [
"noreply@github.com"
] | zeroc0d3.noreply@github.com |
9c3fde3ac2b31c11bd87657492d509c219cfb13d | 601f604ea3eed7d106513a9d40b7df98a0cf8c95 | /make-report.py | 12318d9d79fba8c77d47cdde77c40b94df84d43f | [] | no_license | exbracer/dynet-benchmark | 53e892d55f26f075dfdaf43859d5c1af49c15a75 | 9cbc2d66ca20b7b8040a55a66d2024edd5bf5c42 | refs/heads/master | 2021-09-06T11:40:06.802647 | 2018-02-06T05:47:00 | 2018-02-06T05:47:00 | 120,275,569 | 0 | 0 | null | 2018-02-05T08:24:03 | 2018-02-05T08:24:03 | null | UTF-8 | Python | false | false | 8,103 | py | #!/usr/bin/env python
# This should be used as
# mkdir -p report
# grep '\(per_sec\|startup\)' log/*/*.log | python make-report.py
import sys
import re
from collections import defaultdict
stats = defaultdict(lambda: {})
allstats = defaultdict(lambda: [])
##### Regexes
fnameregex = re.compile(r"log/([a-z-]+?)(-gpu|)... | [
"neubig@gmail.com"
] | neubig@gmail.com |
468730321e33a424ae9e609b460c46656deba515 | 63ae3faa596333fa89ed6059332ed956b6dd3ae1 | /career/models/base.py | 518e8700dd9167d358c289a74f2d9d65c6953a78 | [] | no_license | wyzane/tornado-skill-general | 28470d786dc949a2616143b0b35e593d90f2fdc4 | 915ec990a20b2bb76d56c040cade57a7627d0ebe | refs/heads/master | 2020-06-13T13:43:02.401369 | 2019-07-28T08:20:17 | 2019-07-28T08:20:17 | 194,675,732 | 0 | 0 | null | 2019-07-28T08:20:18 | 2019-07-01T13:14:11 | Python | UTF-8 | Python | false | false | 432 | py | # from sqlalchemy import Table, MetaData
# from sqlalchemy.ext.declarative import declarative_base
#
# from config.db import engine_db_career
#
#
# Base = declarative_base()
#
#
# def model(table):
# class BaseModel(Base):
# __tablename__ = table
# metadata = MetaData(engine_db_career)
#
# #... | [
"wyzane1207@163.com"
] | wyzane1207@163.com |
df195ccf60e3003e51d78a0956fd1691ae0fb0b1 | 6a6984544a4782e131510a81ed32cc0c545ab89c | /src/icetray/python/i3logging.py | efb475dd0d2c1a00a4a5b5832c425bca34254a58 | [] | no_license | wardVD/IceSimV05 | f342c035c900c0555fb301a501059c37057b5269 | 6ade23a2fd990694df4e81bed91f8d1fa1287d1f | refs/heads/master | 2020-11-27T21:41:05.707538 | 2016-09-02T09:45:50 | 2016-09-02T09:45:50 | 67,210,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,068 | py |
import logging, string, traceback
from icecube.icetray import I3Logger, I3LogLevel
class LoggingBridge(I3Logger):
pylevels = {
I3LogLevel.LOG_TRACE : 5,
I3LogLevel.LOG_DEBUG : logging.DEBUG,
I3LogLevel.LOG_INFO : logging.INFO,
I3LogLevel.LOG_NOTICE : 25,
I3LogLevel.LOG_WARN : logging.WARNING,
I3Log... | [
"wardvandriessche@gmail.com"
] | wardvandriessche@gmail.com |
1180150b5396a4f4f5f32bcfded61140220148f6 | 612325535126eaddebc230d8c27af095c8e5cc2f | /depot_tools/recipe_modules/tryserver/example.py | ee0d0c9b7ba47b44b49510cebbd1e8c402c7da6f | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'recipe_engine/path',
'recipe_engine/platform',
'recipe_engine/properties',
'recipe_engine/python',
'tryserver',
]
def RunS... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
17d0a7ae053230e48a78d11e61f5bbb734bedea7 | a82418f3d62b944a27b6e9000829af54b7575893 | /psets_gensim_v1/2018/cfgs_update_noFilter/cfg_hiddenValleyGridPack_vector_m_10_ctau_100_xiO_1.py | b6d42b1da295fb78cdd8daf9fa567a4be76ed208 | [] | no_license | mcitron/hiddenValleyGeneration | abb347a30319ce5f230e0e1248a4259bf4cc4b1b | 5d165be91ae082fdba790506bfb11a026d602787 | refs/heads/master | 2023-04-08T13:34:56.835752 | 2021-04-28T17:14:46 | 2021-04-28T17:17:14 | 362,550,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,190 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/cfgs_update_noFilter/hiddenValleyGridPack_vector_m_10_ctau_100_xiO_1.py --python_filename cfg_hiddenVall... | [
"mcitron@cern.ch"
] | mcitron@cern.ch |
4b949d091e01e60d0542cd3a3d47c56894232e58 | 7ac271f357f4c8f0c23c697b11966259f836880f | /app/web/exception.py | 96c30998834aeb4bf7f41d79bdd54f9610cf7fca | [] | no_license | cheng93/PythonWeb | 74a58eadee4ee7d2872a582a907bbf47630df371 | d5ced8dee1d5ba31778125c5e67169c92acf26a0 | refs/heads/develop | 2021-01-19T23:59:11.315871 | 2018-03-04T19:26:18 | 2018-03-04T19:26:18 | 89,063,916 | 0 | 0 | null | 2018-03-04T19:26:19 | 2017-04-22T11:09:14 | Python | UTF-8 | Python | false | false | 134 | py | from pyramid.view import view_config
@view_config(route_name='throw_exception')
def throw_exception(request):
raise Exception()
| [
"derek.c@hotmail.co.uk"
] | derek.c@hotmail.co.uk |
56860c88d4bc8dd9e78a1b54940265c25bb42bfa | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/FreeOpcUa_python-opcua/python-opcua-master/release.py | fc05a90bf5b60295b7aab2321c144549eb9401a9 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,120 | py | import re
import os
def bump_version():
with open("setup.py") as f:
s = f.read()
m = re.search(r'version="(.*)\.(.*)\.(.*)",', s)
v1, v2, v3 = m.groups()
oldv = "{0}.{1}.{2}".format(v1, v2, v3)
newv = "{0}.{1}.{2}".format(v1, v2, str(int(v3) + 1))
print("Current version is: {0}, write ... | [
"659338505@qq.com"
] | 659338505@qq.com |
4c979a9566f34d6b5958baa4ca8d9883abd3afa6 | 845d96ba5efe898a1e1272c862f476e983e54d46 | /10/src/gomoku.py | 6ee645b50621b32a80852855980e5a4f804a1274 | [] | no_license | ppaanngggg/rl_course | fe5d092d87e61149857f9ee085ac73d98d377cb9 | 05f1db88e96ea9ff21ed5028dc8d5b7e9539bcee | refs/heads/master | 2020-04-30T02:17:05.125542 | 2019-03-19T16:28:13 | 2019-03-19T16:28:13 | 176,554,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,210 | py | import torch
class Gomoku:
"""
play1: 1,
play2: -1,
empty: 0,
"""
def __init__(
self, _size=5, _win_num=4, _player=1, _terminal=None, _history=None, _board=None
):
self.size = _size
self.win_num = _win_num
self.num_actions = _size * _size
self.play... | [
"hantian.pang@gmail.com"
] | hantian.pang@gmail.com |
d61d6a841af3adb181ad6568f445d6147da3ef3d | 657f0a463bb47799db522ac18c720699f34206aa | /main.py | 7e01829b0633c66dd5af8a20bcb22784ca17f79d | [] | no_license | nakamura9/isocal_android | 1f93d61acb1ca47151d468831daee98370e75666 | 28b42a4da327e028cab467fab339de5deb50cd9c | refs/heads/master | 2022-12-13T01:21:18.803343 | 2019-09-02T08:43:25 | 2019-09-02T08:43:25 | 78,008,496 | 0 | 0 | null | 2022-12-08T06:06:12 | 2017-01-04T11:08:04 | Python | UTF-8 | Python | false | false | 60,219 | py | '''
Created on Apr 5, 2016
@author: caleb kandoro
'''
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.screenmanager import (ScreenManager, Screen,
FadeTransition, SlideTransition)
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import ... | [
"kandoroc@hotmail.com"
] | kandoroc@hotmail.com |
ffc9fc900066f664b262a92696f5f78d760e79d9 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/webauthrange_a43b34eee0d1687120752f9efeb0dda9.py | d6a0be1f3a150e2248dcceac6cd6040d9837c28c | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,293 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 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, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
ac7915d8eed8d2af3351c944f396a9b36e5c868f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/exercises/_algorithms_challenges/pybites/beginner/55_v4/steam.py | ce898477f47f532beed65efb932bddd9d2a0b3e6 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 316 | py | # ____ c.. _______ n..
#
# _______ f..
#
# # cached version to have predictable results for testing
# FEED_URL = "http://bit.ly/2IkFe9B"
#
# Game = n..('Game', 'title link')
#
#
# ___ get_games
# """Parses Steam's RSS feed and returns a list of Game namedtuples"""
# r.. ? f.t.. f.l.. ___ ? __ f__.p.. ?.e..
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.