blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f75f2fa41423788a5642e7b498beb646c096f34a | eef659a707d87e979741cc11ad59344c911790f5 | /cc3/rules/migrations/0001_initial.py | 31a6bb660c67cf36a33595c6a36d7bfd85cde79a | [] | no_license | qoin-open-source/samen-doen-cc3 | 1e5e40a9b677886aa78f980670df130cbbb95629 | 8b7806177e1e245af33b5112c551438b8c0af5d2 | refs/heads/master | 2020-05-04T02:26:07.039872 | 2019-04-02T21:19:54 | 2019-04-02T21:19:54 | 178,926,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,110 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
]
operations = [
migrations.CreateModel(
name='ActionStatus',
... | [
"stephen.wolff@qoin.com"
] | stephen.wolff@qoin.com |
564bf1210eb6fed846bfaec9f7411d65251e2fbb | 9e335834e7be81068f001d5451781d5c1530ebbf | /python_lxf/20151013/BMI2.py | bc7b34e90fce186744773af6ba182711d43ffe89 | [] | no_license | jtr109/SelfLearning | c1dbffa5485d0cd2f444ea510da62a8e3d269dbc | cc920ed507647762b9855385be76869adac89e7c | refs/heads/master | 2020-04-06T04:11:31.143688 | 2016-07-22T02:19:39 | 2016-07-22T02:19:39 | 58,049,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
h = input('请输入您的身高(米):')
w = input('请输入您的体重(千克):')
height = float(h)
weight = float(w)
bmi = weight / (height ** 2)
if bmi < 18.5:
print('过轻')
elif bmi < 25:
print('正常')
elif bmi < 28:
print('过重')
elif bmi < 32:
print('肥胖')
else:
print('严重肥胖')
| [
"lyp_login@outlook.com"
] | lyp_login@outlook.com |
a405913e9b1934afadaf8c347e41153c946f033e | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit238.py | 2f98d4110f6710b2fa7c4e284c1409c0065a845a | [
"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 | 6,455 | py | # qubit number=3
# total number=45
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
997f02e6559b4e90b8fe5769bbda3cf138b8bfcb | d7016f69993570a1c55974582cda899ff70907ec | /sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_01/operations/_operations.py | 88aeae1f2c96dcb662d71e9fdd57fe09951740e9 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 6,706 | 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"
] | kurtzeborn.noreply@github.com |
4ed4ff0299695f10ce9f869a060b8d95d932daeb | fd84c4c97bf33b99b063ec9d41fc00752ad45b86 | /tests/ut/cpp/python_input/gtest_input/pre_activate/confusion_softmax_grad_rule.py | 2727ef641d89ae379cba9ec87d5e63e2bdd43a9a | [
"Apache-2.0",
"AGPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"MPL-1.1",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"MPL-2.0",
"LGPL-2.1-only",
"GPL-2.0-only",
"Libpng",
"BSL-1.0",
"MIT",
"MPL-2.0-no-copyleft-exception",
"IJG",
"Z... | permissive | zjd1988/mindspore | d9c283416bee6e18b6ca2b04ff0d9fd8f1473c2e | 10481470df2dd0c9713ce45e41b7c37a4050f643 | refs/heads/master | 2021-05-23T00:19:47.869207 | 2020-04-04T09:31:23 | 2020-04-04T09:31:23 | 253,152,063 | 1 | 0 | Apache-2.0 | 2020-04-05T04:01:54 | 2020-04-05T04:01:53 | null | UTF-8 | Python | false | false | 1,639 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [
"leon.wanghui@huawei.com"
] | leon.wanghui@huawei.com |
05c9c6a9568fb9710d016411fc2ee17d7974abfc | 6bb433db849f55913d8be6b5aa6527951788090f | /c4-iter_gen/it_on_items_sep_containers.py | ff4281a10b89e900db0421991f72b139a11cd748 | [] | no_license | pranavchandran/redtheme_v13b | 7fe7404cd6f8e5b832824c4b2db7ff23db69b7d8 | e4927e296c24b4861a5e8b8ebe26e13c66c2ece4 | refs/heads/main | 2023-04-03T10:12:46.750224 | 2021-04-09T09:16:01 | 2021-04-09T09:16:01 | 344,432,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | from itertools import chain
a = [1,2,3,4]
b = ['x','y','z']
for x in chain(a,b):
print(x)
active_items = set()
inactive_items = set()
# Iterate over all items
for item in chain(active_items, inactive_items):
print(item)
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
0f40b0fc2046c023f44323b588a6dbb9b763c267 | e10fe03d808fc46e09e010653f3fa6a1fa7f0559 | /api/serializers/basic.py | 598971069123027bb37deda16afa2fad82f93b66 | [] | no_license | erics1996/pythoneers-api | 57259f9817ea36f47a556e681630b41c1c7bc37f | f188cbfb79b0774472b3f88213f87081ccb49c3b | refs/heads/master | 2023-01-24T15:58:29.081045 | 2020-10-30T08:12:33 | 2020-10-30T08:12:33 | 297,828,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | from rest_framework import serializers
from .. import models
class NoticeSerializer(serializers.ModelSerializer):
# 对时间格式化
add_time = serializers.DateTimeField(format='%Y-%m-%d %X')
class Meta:
model = models.Notice
fields = '__all__'
class BannerSerializer(serializers.ModelSerializer):... | [
"erics1996@yeah.net"
] | erics1996@yeah.net |
21d7e5fb8ef2b6210a97afa76f050d8f28564c78 | 6351221d588668804e2df01936732eede4d96ed0 | /leetcode-cn/Python/61.旋转链表.py | 2d7e6a911832422910418fb0ac8c3fb7c844beab | [] | no_license | LogicJake/code-for-interview | 8e4ec9e24ec661a443ad42aa2496d78a1fbc8a3f | 5990b09866696c2f3e845047c755fa72553dd421 | refs/heads/master | 2021-09-20T20:19:17.118333 | 2021-09-14T13:46:30 | 2021-09-14T13:46:30 | 102,202,212 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | #
# @lc app=leetcode.cn id=61 lang=python3
#
# [61] 旋转链表
#
# @lc code=start
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def rotateRight(self, head: ListNode, k: int) -> ListNode:
if head is None:
... | [
"835410808@qq.com"
] | 835410808@qq.com |
0f31d691c1dad98f960558e830452740485963a8 | 97cd0270b1490fe296a12ffa224bb14aa2af6f2d | /voter/tests.py | dd5c27ad3158f29beadd046e3ba2f137fa2e9a2c | [] | no_license | Brian23-eng/Project-voter | 685b0b41e6480b2e7b7460b21776a86d43bd4807 | 4e8b935d960a8c2f36142c0066b3514947825f0c | refs/heads/master | 2022-12-15T06:03:08.989626 | 2019-11-25T13:21:15 | 2019-11-25T13:21:15 | 223,181,923 | 0 | 0 | null | 2022-12-08T06:58:14 | 2019-11-21T13:35:53 | Python | UTF-8 | Python | false | false | 2,264 | py | from django.test import TestCase
from . models import *
class TestProfile(TestCase):
def setUp(self):
self.user = User(id = 1, username = 'Brian', password = 'beta')
self.user.save()
def test_instance(self):
self.assertTrue(isinstance(self.user, User))
def... | [
"b.odhiambo.bo@gmail.com"
] | b.odhiambo.bo@gmail.com |
b541d1cba0235891290f9afc47211cb2eee93e5c | cb4cfcece4bc14f591b038adbc7fadccaf447a1d | /ZUBREACH.py | 3caf3538e4052bcb757be41819f42f11a02bdce4 | [] | no_license | psycho-pomp/CodeChef | ba88cc8e15b3e87d39ad0c4665c6892620c09d22 | 881edddded0bc8820d22f42b94b9959fd6912c88 | refs/heads/master | 2023-03-21T06:46:14.455055 | 2021-03-11T12:07:48 | 2021-03-11T12:07:48 | 275,214,989 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # cook your dish here
from sys import stdin,stdout
def get_ints():return map(int,stdin.readline().strip().split())
def get_array():return list(map(int,stdin.readline().strip().split()))
def get_string():return stdin.readline().strip()
def get_int():return int(stdin.readline().strip()+"\n")
def op(c):return stdout.write... | [
"noreply@github.com"
] | psycho-pomp.noreply@github.com |
b4a33e3b653670da6ff412ebfd66a2319ad74ef6 | 27965822587ca914e65f097f334da1a7d54293bb | /codeChef/test.py | a0e63a454e210effde06b6cfce59f95595ac8620 | [] | no_license | paras1810/Competitive-Programming | 89a772106edad9765a0141042816431b75a33011 | 01a66213dd481cbc9fb160d83024e0e6a9cf165f | refs/heads/master | 2020-04-02T10:08:10.496142 | 2018-10-21T06:08:24 | 2018-10-21T06:08:24 | 154,325,876 | 0 | 0 | null | 2018-10-23T12:40:42 | 2018-10-23T12:40:42 | null | UTF-8 | Python | false | false | 1,024 | py | import random
def getArray(array_length,element_lower_bound,element_upper_bound):
arr = []
for i in range(array_length):
arr.append(random.randint(element_lower_bound,element_upper_bound))
return arr
def writeArray(array, file):
for i in array:
file.write(str(i)+" " )
file.write('\n'... | [
"mahajan.ayush2306@gmail.com"
] | mahajan.ayush2306@gmail.com |
2979dcdca3788c252aa0c674c8bab6254dea1e50 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/client_common/shared_utils__init__.py | dfd2e8db242d42f2588610a3ef1e2b018cf761f0 | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,436 | py | # Embedded file name: scripts/client_common/shared_utils/__init__.py
import weakref
import itertools
import types
import BigWorld
from debug_utils import LOG_ERROR, LOG_WARNING
ScalarTypes = (types.IntType,
types.LongType,
types.FloatType,
types.BooleanType) + types.StringTypes
IntegralTypes = (types.IntType, types.... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
1eb1c4279ddd2ed7031dd62e0e077306308bacf3 | 0d16155ef6288829e3e36177580845e2fdac7d3a | /tutorial/snippets/urls_viewSet_router.py | a5ac3f254fadd4b7768dade6ff4e6c3b65116928 | [
"MIT"
] | permissive | BennyJane/django-demo | 71681cfadedff13ffa9631f3ddc6f9c45f77b031 | 7d697bd959e94f89cf3ea1b782143d0794efc1fb | refs/heads/main | 2023-02-10T00:24:35.299176 | 2021-01-14T14:06:43 | 2021-01-14T14:06:43 | 324,715,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # !/usr/bin/env python
# -*-coding:utf-8 -*-
# PROJECT : tutorial
# Time :2020/12/27 12:33
# Warning :The Hard Way Is Easier
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from snippets import views
"""
因为我们使用的是ViewSet类而不是View类,所以实际上我们不需要自己设计URL conf。
使用Router类可以自动处理... | [
"3355817143@qq.com"
] | 3355817143@qq.com |
94da85797138607175d013b490d479267ed174cb | 24cffa6c6c6145958bfc527b202261cf59b9462c | /detection_algorithms/ipython_profile.py | f1af5dd4233ccd1b7b6d7e687b99b521db403dc2 | [
"MIT"
] | permissive | hanahs-deepfake-detection/detection-algorithms | 015aeed20de418e9be4cbe60197bb7633a86bd8c | 6d7ec53eaf333adb10a1aba448f80fceaf7722be | refs/heads/master | 2023-01-29T07:41:51.939768 | 2020-12-13T23:55:56 | 2020-12-13T23:55:56 | 284,211,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from tensorflow import keras
from sys import path
import cv2 as cv
import matplotlib.pyplot as plt
import numpy as np
import os
import tensorflow as tf
project_root = os.path.dirname(os.path.realpath(__file__))
path.append(project_root)
path.append(os.path.join(project_root, 'jitter-detection'))
path.append(os.path.j... | [
"loop.infinitely@gmail.com"
] | loop.infinitely@gmail.com |
96af681b63de66aaa9a753340fbfe7e4b071794c | 1a1a36fb99cf25d2522d5dadc9b5d816bb81ffff | /objects/tags/Layer.py | 6649cf63ba14b4f40e004b90e763b0f34f1407f6 | [] | no_license | arkimede/pysynfig | cae74eeca153f7c412cf6642a2092a9ee6948692 | 3bc46a34c275d44a69521afd63af2884e2187c51 | refs/heads/master | 2021-05-04T11:03:03.412344 | 2018-07-29T14:00:12 | 2018-07-29T14:00:12 | 52,307,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,030 | py | from treedict import TreeDict
class Layer:
def __init__(self):
self.type = None
self.active = None
self.exclude_from_rendering = None
self.version = None
self.desc = None
self.HashParam = {} #hash di tutti i param del layer
self.treeObj = TreeDict()
... | [
"a.caristia@gmail.com"
] | a.caristia@gmail.com |
d9ed52014372234569a2fdb6826d8be2dd77e58c | ac34cad5e20b8f46c0b0aa67df829f55ed90dcb6 | /tests/test_scene_v1/test_imports.py | 62072bc9b8c08ebf0cb9ec4e281a01b5d7abe925 | [
"MIT"
] | permissive | sudo-logic/ballistica | fd3bf54a043717f874b71f4b2ccd551d61c65008 | 9aa73cd20941655e96b0e626017a7395ccb40062 | refs/heads/master | 2023-07-26T19:52:06.113981 | 2023-07-12T21:32:56 | 2023-07-12T21:37:46 | 262,056,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | # Released under the MIT License. See LICENSE for details.
#
"""Testing asset manager functionality."""
from __future__ import annotations
import pytest
from batools import apprun
@pytest.mark.skipif(
apprun.test_runs_disabled(), reason=apprun.test_runs_disabled_reason()
)
def test_imports() -> None:
"""Te... | [
"ericfroemling@gmail.com"
] | ericfroemling@gmail.com |
ccaf7a8803c329684dc72d1d27bf2e6afda30f13 | 08441713096d3c0b68b96294e43278c04a086a96 | /models/__init__.py | 3139cc74fb630c167749d7eaf33cdf1e31cf6702 | [] | no_license | mir-of/oneflow-cifar | 15e7946650f2dd8cc6d9c2112cf0fadad851c3e8 | c50993f85e984daee25418e09bbd5eee832e39a1 | refs/heads/main | 2023-08-05T04:45:33.448384 | 2021-09-26T06:47:50 | 2021-09-26T06:47:50 | 410,485,038 | 0 | 0 | null | 2021-09-26T07:46:58 | 2021-09-26T07:43:14 | null | UTF-8 | Python | false | false | 450 | py | from .vgg import *
from .dpn import *
from .lenet import *
from .senet import *
from .pnasnet import *
from .densenet import *
from .googlenet import *
from .shufflenet import *
from .shufflenetv2 import *
from .resnet import *
from .resnext import *
from .preact_resnet import *
from .mobilenet import *
from .mobilenet... | [
"1182563586@qq.com"
] | 1182563586@qq.com |
97fa5d4f14e9cdd298538a01c0c98d394fbc04dc | f56e4bb2d3a91b068292d698388ac5e82a40f078 | /inkshop/apps/website/migrations/0004_auto_20190506_1537.py | 2cb4eada120719587c7220cde82dba6bf8baa9c9 | [] | no_license | inkandfeet/inkshop | 979064eb902c86dc95a6399e79ac753efbe547d1 | 691187b3eb4435782f8054e6404f1203e7d0c383 | refs/heads/master | 2022-12-13T01:26:02.361970 | 2021-11-18T23:01:50 | 2021-11-18T23:01:50 | 175,481,726 | 1 | 1 | null | 2022-12-08T04:59:16 | 2019-03-13T18:59:17 | Python | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.2 on 2019-05-06 15:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0003_auto_20190506_1533'),
]
operations = [
migrations.AlterField(
model_name='template',
name='name',
... | [
"steven@quantumimagery.com"
] | steven@quantumimagery.com |
73c5d38830af8b2e003b8c6697313eacca30557d | 95761ba9ca92c9bf68f3fb88524ee01ddba9b314 | /admin-web/src/www/notasquare/urad_web/page_contexts/standard.py | 7fc6a3293fbb3dfc5d0d78499a8c1e9250bf93c3 | [] | no_license | duytran92-cse/nas-workboard | 918adf4b976f04a13dc756f8dc32aecf397c6258 | bebe7674a7c6e8a3776264f18a3b7ca6b417dc7e | refs/heads/master | 2022-10-23T01:02:39.583449 | 2020-06-14T19:25:01 | 2020-06-14T19:25:01 | 272,268,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | from notasquare.urad_web.page_contexts import BasePageContext
class FullPageContext(BasePageContext):
class Breadcrumb(object):
def __init__(self):
self.entries = []
def build(self):
self.entries = []
def add_entry(self, name, title, url = ''):
self.entri... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
b3c27b4fb74b537090e0267cc2f1fb764bcf44fd | 51d0377511a5da902033fb9d80184db0e096fe2c | /06-importing-data-in-python-2/1-importing-data-from-the-internet/01-importing-flat-files-from-the-web.py | 1d8dcfe7ec9099bec27b509004633b3c95c02f18 | [] | no_license | sashakrasnov/datacamp | c28c6bda178163337baed646220b2f7dcc36047d | 759f4cec297883907e21118f24a3449d84c80761 | refs/heads/master | 2021-12-07T02:54:51.190672 | 2021-09-17T21:05:29 | 2021-09-17T21:05:29 | 157,093,632 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | '''
Importing flat files from the web: your turn!
You are about to import your first file from the web! The flat file you will import will be 'winequality-red.csv' from the University of California, Irvine's Machine Learning repository. The flat file contains tabular data of physiochemical properties of red wine, such... | [
"a@skrasnov.com"
] | a@skrasnov.com |
4619ac7fea2889de98c92414a462e16a3068f021 | d21071464bef4f3fd51e554f280418d06975a77e | /leetcode/120 Triangle.py | 0c97ed50a118a07318564f5524b5511fecabc64a | [] | no_license | DeshErBojhaa/sports_programming | ec106dcc24e96231d447cdcac494d76a94868b2d | 96e086d4ee6169c0f83fff3819f38f32b8f17c98 | refs/heads/master | 2021-06-13T19:43:40.782021 | 2021-03-27T14:21:49 | 2021-03-27T14:21:49 | 164,201,394 | 1 | 0 | null | 2019-08-27T22:21:26 | 2019-01-05T09:39:41 | C++ | UTF-8 | Python | false | false | 493 | py | # 120. Triangle
class Solution:
def minimumTotal(self, triangle: List[List[int]]) -> int:
for i in range(1, len(triangle)):
for j in range(i+1):
cur_min = float('inf')
if j < i:
cur_min = min(cur_min, triangle[i-1][j])
if j - 1 ... | [
"noreply@github.com"
] | DeshErBojhaa.noreply@github.com |
0f1869a302c439f98e592e8158873b627110019a | 7491ceb405287660538e876317d3f69328757651 | /aydin/util/fast_uniform_filter/numba_cpu_uf.py | a6d5d1922fdb5f790dd69ce97387143a7f4ca625 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | royerlab/aydin | 4d0bd5cb1a3786cf32f1d8661d3a3aa13ec7cab1 | 9312f227605be26fce960373c1f29a71323da914 | refs/heads/master | 2023-04-29T20:45:42.515226 | 2023-02-16T22:21:07 | 2023-02-16T22:21:07 | 188,953,977 | 125 | 14 | BSD-3-Clause | 2023-03-15T01:04:16 | 2019-05-28T04:30:19 | Python | UTF-8 | Python | false | false | 7,380 | py | from math import ceil
import numba
import numpy
from numba import jit, prange
__fastmath = {'contract', 'afn', 'reassoc'}
__error_model = 'numpy'
def numba_cpu_uniform_filter(
image, size=3, output=None, mode="nearest", cval=0.0, origin=0
):
# Save original image dtype:
original_dtype = image.dtype
... | [
"noreply@github.com"
] | royerlab.noreply@github.com |
c3b80b4b8e6a8031d6fa9c18d7ecbfeb391996f9 | c22e52875567db55ee0e589a2720f4270e4c8d8b | /lsystem/Tree3psy.py | a5e921d9d56af8f2ba4e20453435ea096e905472 | [
"MIT"
] | permissive | Hiestaa/3D-Lsystem | fd42693921d25c14945a445a7555ab7c66fe3669 | f5ea9e7bb5b979a4b324c2b1794e99ebad82e117 | refs/heads/master | 2021-01-25T08:54:52.132486 | 2019-05-28T01:01:49 | 2019-05-28T01:01:49 | 14,755,648 | 8 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | from lsystem.LSystem import LSystem
from Conf import Conf
import math
import time
class Tree3psy(LSystem):
"""Fractale en forme d'arbre, v3, psyche version"""
def defineParams(self):
self.LSName = "Tree 3"
self.LSAngle = math.pi / 8
self.LSSegment = 1
self.LSSteps = 6
self.LSStartingString = "F"
self.LS... | [
"rom1guyot@gmail.com"
] | rom1guyot@gmail.com |
11b169f08af0908228373a5cdd8fdf3f2f22155b | a550aece79bda789826b463280b91abffbf2d372 | /books/python-3-oop-packt/Chapter9/9_06_for_loop_converter.py | ea4e69ec09f61a3e205acc2d8977f8e1db44f4e8 | [
"MIT"
] | permissive | phiratio/learn_python | 20376470eaa292c157fd01f52b3077e3a983cd5a | a32240d4355fb331805d515f96e1d009914e5c47 | refs/heads/master | 2022-11-27T07:07:45.712373 | 2020-12-03T22:04:31 | 2020-12-03T22:04:31 | 189,397,679 | 1 | 0 | MIT | 2022-11-22T04:40:27 | 2019-05-30T10:56:10 | Python | UTF-8 | Python | false | false | 130 | py | input_strings = ['1', '5', '28', '131', '3']
output_integers = []
for num in input_strings:
output_integers.append(int(num))
| [
"phiratio161@gmail.com"
] | phiratio161@gmail.com |
54e5cbb62f96000c6538f0a466271ab6364f22da | 0da9d2a15305421e224795cdf078838bd97eccc8 | /Algorithms/Implementation/ServiceLane.py | 43aba35eaec78d9f1fcda2e309591df45ad54718 | [] | no_license | LysanderGG/HackerRank | ac1300eea2f4e00f7d4e5084b5d570aa6fae0cfb | 039ec4414612cff84a941a7e7538fb36e10d427f | refs/heads/master | 2021-01-21T16:09:59.174131 | 2017-07-09T12:33:32 | 2017-07-09T12:33:32 | 91,877,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #!/bin/python3
import sys
n,t = input().strip().split(' ')
n,t = [int(n),int(t)]
width = [int(width_temp) for width_temp in input().strip().split(' ')]
for a0 in range(t):
i,j = input().strip().split(' ')
i,j = [int(i),int(j)]
ans = min(width[i:j+1])
print(ans) | [
"lysandergc@gmail.com"
] | lysandergc@gmail.com |
ccb7910d0fc54211cda5bc1ceef754dd2cbff7a5 | 9099ed0407521ac40b88f3b92872307f66c57bf9 | /codes/contest/leetcode/nth-digit.py | f8a29836185512d9cf8730c8195521c4ace2bb80 | [] | no_license | jiluhu/dirtysalt.github.io | 0cea3f52d2c4adf2bbf5c23b74f4cb1070025816 | c026f2969c784827fac702b34b07a9268b70b62a | refs/heads/master | 2020-08-31T09:32:05.273168 | 2019-10-29T01:53:45 | 2019-10-29T01:53:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | #!/usr/bin/env python
# coding:utf-8
# Copyright (C) dirlt
class Solution:
"""
@param n: a positive integer
@return: the nth digit of the infinite integer sequence
"""
def findNthDigit(self, n):
# write your code here
d = 1
base = 9
acc = 9
prev_acc = 0
... | [
"dirtysalt1987@gmail.com"
] | dirtysalt1987@gmail.com |
3c1eaa647307e482b6bac6a4dc2d4355e10fef59 | dac6227800cb7bbcc934ac94a158cc76535c76e2 | /day9/samochod2.py | 46cc0370d3fdcf9009e42b770d4ad830d8ecd84c | [] | no_license | marcinpgit/Python_days | b11fd5322d47f06e3292189fe8d1578171fc293c | 052993759cf6c79de237b9d391ee7bb5ec202ffc | refs/heads/master | 2021-01-24T02:39:29.058793 | 2018-02-28T20:16:56 | 2018-02-28T20:16:56 | 87,470,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | class Samochod(object):
def __init__(self, marka, model, kolor):
self.marka = marka
self.model = model
self.kolor = kolor
self.czy_jedzie = None
self.silnik = None
def jedz(self):
print(self.marka, ": Jadę")
self.czy_jedzie = True
def z... | [
"marcinp2012@gmail.com"
] | marcinp2012@gmail.com |
8c6542ffe63e9431b97397a55b0fb74c081b825d | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/bar/_hoverinfo.py | db2a85fac06d1c15a1d5436cb0b08b73f46cefc0 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 523 | py | import _plotly_utils.basevalidators
class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator):
def __init__(self, plotly_name='hoverinfo', parent_name='bar', **kwargs):
super(HoverinfoValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
8ec8c3845ea91a7c5096d3fa8666cfb38d67e4db | a3eccc652f83815318bdb033a33573c5b1e073e9 | /nac/caravans/migrations/0011_auto_20210315_1936.py | 18519a7391d65e423a74c982692365f5b16234f9 | [] | 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 | 5,768 | py | # Generated by Django 2.2.7 on 2021-03-15 08:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('caravans', '0010_auto_20210315_1911'),
]
operations = [
# migrations.CreateModel(
# name='SKUPr... | [
"velu@qrsolutions.in"
] | velu@qrsolutions.in |
feaffe36d86cd27a0ee01c95ab7eafe90316f53b | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/components/cronet/tools/cr_cronet.py | 229154bf340936ba576a2d1dcb8a00f17714cd03 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 5,329 | py | #!/usr/bin/python
# 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.
"""
cr_cronet.py - cr - like helper tool for cronet developers
"""
import argparse
import os
import sys
def run(command, extra_options=''... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
241f55cb247440e532daf878ca9d599a1ecdb4ca | ea5b4fdf353e76c44a8de71fa16aa8bae88c726a | /array/138.maxSubarray.py | 7d20115e2af66e43048eef92bf4c273fa530bca0 | [] | no_license | umnstao/lintcode-practice | dd61c66950ae89abec000063fe0d1a33f13ce6ec | e73b495e23c4dcb0421ab09133e573aaba23c431 | refs/heads/master | 2021-01-23T02:48:26.294160 | 2018-03-27T21:54:26 | 2018-03-27T21:54:26 | 86,024,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | class Solution:
"""
@param nums: A list of integers
@return: An integer denote the sum of maximum subarray
"""
def maxSubArray(self, nums):
# write your code here
if nums is None or len(nums) == 0:
return None
sum = 0
maxVal = -float('inf')
for i i... | [
"umnstao@gmail.com"
] | umnstao@gmail.com |
e89da4771364c8b06503c64cdd3b8a833395b2eb | bb7712c8fab2380ffd37e53136097d8d322a73e7 | /accounts/views.py | f755f090239a0ce3783c5338cfb0221261aefc51 | [] | no_license | nitin1011/Daily-Kart | 5dfaad06c4ab7ea236a8f1b0e29aaea4baba0b81 | 59859bd2dc66563ff1ab0649591e4b19b6b4a85b | refs/heads/master | 2020-08-15T09:52:22.826037 | 2019-10-15T14:56:28 | 2019-10-15T14:56:28 | 215,320,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,552 | py | from django.contrib import messages, auth
from django.contrib.auth.forms import PasswordChangeForm
from django.shortcuts import render, redirect
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from .models import Account
# Create your views here.
def register(requ... | [
"nitinjethwani10@gmail.com"
] | nitinjethwani10@gmail.com |
d34c7fbf8bdddb35c1186c63218255db184aa210 | 375a278d49f346695b15761bfa81783c619c08cb | /hope/settings.py | 56302193290ae45be91d6d1b59314e476e97e31a | [
"MIT"
] | permissive | totalgood/hope | 03b4388e430d704a1766fdae9ba5cbb7d0a73789 | fa898f286c62d6ff39263a51a8fff2267cd16779 | refs/heads/master | 2021-01-18T02:49:13.045272 | 2016-10-20T05:36:42 | 2016-10-20T05:36:42 | 63,300,461 | 1 | 0 | null | 2016-07-14T03:53:13 | 2016-07-14T03:53:13 | null | UTF-8 | Python | false | false | 5,679 | py | """
Django settings for hope project.
Generated by 'django-admin startproject' using Django 1.9.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
from ... | [
"github@totalgood.com"
] | github@totalgood.com |
93d617436c5e5dc0c175b9a98b88b208e4b47e12 | a3a741f27db3a8669bc49a6eb928d8b34d1ea872 | /api/accounts/admin.py | 5a66a4c4555970ff2031b2bfe70511bf34e5a1e3 | [
"MIT"
] | permissive | ectvalenz/virtual-queue | 2f77a007d4a925e9db1a1f27fbe68c5f514ed250 | b49d4bfb6f45b177b5744273316716effe306161 | refs/heads/main | 2023-06-18T17:26:14.922319 | 2021-07-05T08:55:14 | 2021-07-05T08:55:14 | 370,253,647 | 0 | 0 | MIT | 2021-05-24T06:41:43 | 2021-05-24T06:41:42 | null | UTF-8 | Python | false | false | 1,484 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import Account, AccountBarcode
PERSONAL_INFO_FIELDS = (
'Personal info', {
'fields': (
'first_name',
'last_name',
'preferred_name',
'secondary_email',
'r... | [
"jayragaile@gmail.com"
] | jayragaile@gmail.com |
982e419da1ff1dff2d79c91530aea1e32e474040 | e4bc9d7f2e177bcd9850ffa12e5b2ddabb3f98ab | /03. AI/03. Deep Learning/2. Tensorflow/1. perception/3_variable_initialize.py | bc899875d85558ad556152f7ec990b90b56d43e3 | [] | no_license | yameenjavaid/bigdata2019 | 94b80b570b76cb174fcacddf8c8c1711a72e77b4 | 3565a1f10162d0ad147a9f189536b858ebe04ffa | refs/heads/master | 2022-01-13T15:39:09.793982 | 2019-04-29T00:14:07 | 2019-04-29T00:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import tensorflow as tf
# 상수 텐서, 모든 요소값이 0인 3*3 행렬
W1 = tf.zeros((3,3))
# 변수 텐서, 모든 요소 값이 0인 2*2 행렬
W2 = tf.Variable(tf.zeros((2,2)), name='weights')
session = tf.InteractiveSession()
session.run(tf.global_variables_initializer())
print(W1.eval())
print(W2.eval())
session.close() | [
"bgd0706@hanmail.net"
] | bgd0706@hanmail.net |
f98a5bab80293aea31b98ba8f01b2fadc74d4950 | 9f7b78421cb2eb84ce438bfe50e8c613591616d2 | /solutions/helper/getInput/getInput.py | 2fa9a353935aeb193d8d3ed01cbf716d72cd0803 | [] | no_license | iCodeIN/aoc2020-2 | 7074c8c2ad20c077fa615f78fecf5fa25177a70d | c441865ecf44d29dbde734d5bd933412a4b67757 | refs/heads/master | 2023-04-02T07:18:54.475024 | 2020-12-18T05:38:59 | 2020-12-18T05:38:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | import os
import sys
from dotenv import load_dotenv
from requests import get
YEAR = 2020
def get_cookie():
load_dotenv()
return os.getenv("COOKIE")
def download(url: str, file_name: str):
cookies = {
"session": get_cookie()
}
with open(file_name, "wb") as file:
response = get(u... | [
"10962267+arora-aditya@users.noreply.github.com"
] | 10962267+arora-aditya@users.noreply.github.com |
6fc5add1f3c19ca1e8d343dff0a13cdb8d66f219 | 2293c76c3d18e2fcd44ded90bd40113d26285663 | /pyeccodes/defs/grib2/tables/0/3_15_table.py | 78202cfa9827d549542f8f260d35fba8f0c0f7dc | [
"Apache-2.0"
] | permissive | ecmwf/pyeccodes | b1f121dbddf68d176a03805ed5144ba0b37ac211 | dce2c72d3adcc0cb801731366be53327ce13a00b | refs/heads/master | 2022-04-23T10:37:40.524078 | 2020-04-18T06:30:29 | 2020-04-18T06:30:29 | 255,554,540 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | def load(h):
return ({'abbr': 20, 'code': 20, 'title': 'Temperature K'},
{'abbr': 100, 'code': 100, 'title': 'Pressure Pa'},
{'abbr': 101,
'code': 101,
'title': 'Pressure deviation from mean sea level Pa'},
{'abbr': 102, 'code': 102, 'title': 'Altitude a... | [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
19b56d589b90c261f7c606e1b5c1df2d93de92fd | 5e45ba79976ba805f6744f0bcb4ddfbde3e0a7a4 | /alibi_detect/saving/_typing.py | 22d9327b1352959d5832a30b371ffc0d217e1699 | [
"Apache-2.0"
] | permissive | SeldonIO/alibi-detect | e3293baa0603acace6f79bfb14953cf953943b10 | 4a1b4f74a8590117965421e86c2295bff0f33e89 | refs/heads/master | 2023-08-25T05:47:14.038826 | 2023-08-08T14:12:47 | 2023-08-08T14:12:47 | 213,390,927 | 1,922 | 195 | Apache-2.0 | 2023-09-12T07:07:13 | 2019-10-07T13:29:13 | Python | UTF-8 | Python | false | false | 951 | py | """Typing constructs for saving and loading functionality
List of detectors that are valid for saving and loading either via the legacy methods or the new config driven
functionality"""
VALID_DETECTORS = [
'AdversarialAE',
'ChiSquareDrift',
'ClassifierDrift',
'IForest',
'KSDrift',
'LLR',
'... | [
"noreply@github.com"
] | SeldonIO.noreply@github.com |
a50193d599aa612de4358266cf2f2032f4896bb7 | 1882ba2b04e2230692e7da0b963f20ccf859ce34 | /Collect/SoilGrids/Nitrogen.py | dd14149c2a26cc50b2dda34dab315f69bbc67466 | [
"Apache-2.0"
] | permissive | TimHessels/watertools | 908230ae0f45de5379e6808fec827c55245c1cc2 | 2fc3680bfc6ad34bd2a11fba4cf302c5b84e5d78 | refs/heads/master | 2023-08-16T16:18:47.003632 | 2023-08-06T15:35:49 | 2023-08-06T15:35:49 | 158,684,796 | 4 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | # -*- coding: utf-8 -*-
"""
WaterSat
author: Tim Martijn Hessels
Created on Sat Sep 28 14:15:13 2019
"""
import os
from watertools.Collect.SoilGrids.DataAccess import DownloadData
import sys
def main(Dir, latlim, lonlim, level = 'sl1', Waitbar = 1):
"""
Downloads data from SoilGrids (www.soilgrids.org)
... | [
"timhessels@hotmail.com"
] | timhessels@hotmail.com |
d75203b1f812059549ddd3811d42d6df16adc7cb | 31014bf4464a5fae77ff86241ae15cfdd71ccb9e | /gnomics/objects/disease_files/disgenet.py | 35d80aeb2915826df69c255ac9d3eacb5bea239a | [
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | izhangcd/Gnomics | 14de8f90960f88d3eb2f2a49c94fa3a0f8048a2d | bd0fb4e7be009b2afe1c2667f2890c712ae0ad9d | refs/heads/master | 2021-09-09T03:42:40.953105 | 2018-03-13T16:05:17 | 2018-03-13T16:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,463 | py | #!/usr/bin/env python
#
#
#
#
#
#
# IMPORT SOURCES:
# PYMEDTERMINO
# http://pythonhosted.org/PyMedTermino/
#
#
# DisGeNET functions.
#
# PRE-CODE
import faulthandler
faulthandler.enable()
# IMPORTS
# Imports for recognizing modules.
import os
import sys
sys.path.append(os.path.join(os.pa... | [
"charles.kronk@gmail.com"
] | charles.kronk@gmail.com |
10f55c23b2bf6884d05412fd17885057fb1b2143 | 20b2cbc7ea90285a9ba9347684057f5735728338 | /shopapp/migrations/0020_auto_20180718_1330.py | 1c10bd9b28e5ee964328401a8898d668e751562e | [] | no_license | gruzdevasch/shop-django | 0f4ab6a8cf2fc655daf9629f486cfb24c7d7b4c1 | 35365b0e17ecfefc6e71875f77d7904d05cf824d | refs/heads/master | 2020-03-23T10:16:37.089690 | 2018-07-19T10:43:12 | 2018-07-19T10:43:12 | 141,434,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # Generated by Django 2.0.7 on 2018-07-18 06:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shopapp', '0019_auto_20180718_1157'),
]
operations = [
migrations.AlterField(
model_name='produ... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
bc69e3ed150b2098d6c22b3b5f4e7d982f7f9389 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-ci/connectors/metadata_service/lib/tests/test_transform.py | 8222e5e12e892f1c914634e65d4e291db54015fc | [
"LicenseRef-scancode-free-unknown",
"MIT",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 1,993 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
import pathlib
import yaml
from metadata_service.models.generated.ConnectorMetadataDefinitionV0 import ConnectorMetadataDefinitionV0
from metadata_service.models import transform
def get_all_dict_key_paths(dict_to_traverse, key_path=""):
"""Get all pat... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
8c2db9d26313acda0eaf0d6feda5c3cadb41e6eb | dc60fbae177523b1c1d6c6317388f18a96aa9c6e | /code/switchblade_users/urls.py | 274bba5c2ce3924479600443d372f9c5ee6b5d5d | [] | no_license | lucheol/prjwn_example | b611298995d13adc42ee6c7185eb47ba9fdad468 | 5154e8f12df7a2c4dd0f1f552829c8df67e6ef3d | refs/heads/main | 2023-07-10T02:46:53.646317 | 2021-08-20T23:48:56 | 2021-08-20T23:48:56 | 398,425,150 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,741 | py | from django.contrib.auth.decorators import login_required
from django.urls import path, include, reverse_lazy
from django.contrib.auth import views as auth_views
from django.views.generic import TemplateView
from django.utils.translation import gettext as _
from switchblade_dashboard.forms import FormSetHelper
from s... | [
"lucheol@gmail.com"
] | lucheol@gmail.com |
46486da752e52f31380a9777fba5704140c77aa0 | f71f44d5ddc17e3c30e2bfd7988e5111a55a8b9a | /diplom/source/src/app/endpoints_api.py | 987f920ca901c0280006fc62121f864c72c58f48 | [] | no_license | Yashchuk/diplom | 5ed1998d4b3d1fe568599973ec134f7ca13e8417 | 4029ed91ce93a41af44f03bcce365fdaecb64a37 | refs/heads/master | 2021-01-15T17:02:03.723007 | 2014-01-21T13:42:48 | 2014-01-21T13:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # -*- coding: utf8 -*-
import sys
sys.path.insert(0, 'lib/')
import endpoints
from protorpc import messages
from protorpc import message_types
from protorpc import remote
from utils.utils import SolutionRenderer, get_translation
an_api = endpoints.api(
name='libvertix',
version='v1.0',
descr... | [
"andrew.freelance@i.ua"
] | andrew.freelance@i.ua |
28d78821e117ac0e77d7e7441cc80593e183d017 | c8ef7ec1df13c60daea0172a608e6cec6af6ab11 | /examples/spinning-cube2.py | 4b32eda9332d2e8a29fa2a33f58358ef79cdb852 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | joe311/vispy | 0356354ca04fd3e121cd292af5abfbc2c8cf5c66 | 89cffb5da27715c0267651db811792cf3b3c9cb7 | refs/heads/master | 2021-01-18T21:04:30.513517 | 2013-09-09T18:05:45 | 2013-09-09T18:05:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,039 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Show spinning cube using VBO's, and transforms, and texturing.
"""
import numpy as np
from vispy import app, gl, oogl, io
from vispy.util.transforms import perspective, translate, rotate
VERT_CODE = """
uniform mat4 u_model;
uniform mat4 u_view;
uniform mat4 u_... | [
"almar.klein@gmail.com"
] | almar.klein@gmail.com |
ca6c346c4461e562d4bddaade2d654e6530ed503 | 7afa5820b809b8c8cf5443bf53d048cc7abc867a | /accounts/passwords/urls.py | cfa71a13545b8b24a3fc6c844a4a96caebb55410 | [] | no_license | Brucehaha/ecommerce | 037fb25608e848f5c0fd4ed78f42028d21872e39 | 8f873c7557e2554977dd0a23349c4d51063e2ed3 | refs/heads/master | 2023-01-03T19:35:13.894572 | 2018-09-05T07:14:40 | 2018-09-05T07:14:40 | 124,492,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | from django.urls import path, re_path
from django.contrib.auth import views as auth_views
urlpatterns = [
path('password/change/', auth_views.PasswordChangeView.as_view() ,name='change'),
path('password/change/done/', auth_views.PasswordChangeDoneView.as_view() ,name='password_change_done'),
path('password/... | [
"henninglee2013@gmail.com"
] | henninglee2013@gmail.com |
487ccd619eb605da561903ecb9fd098c6b8e72b2 | ed0dd577f03a804cdc274f6c7558fafaac574dff | /python/pyre/db/Time.py | b4c602876d7b8874044e981b09d74cb8b6f19038 | [
"Apache-2.0"
] | permissive | leandromoreira/vmaf | fd26e2859136126ecc8e9feeebe38a51d14db3de | a4cf599444701ea168f966162194f608b4e68697 | refs/heads/master | 2021-01-19T03:43:15.677322 | 2016-10-08T18:02:22 | 2016-10-08T18:02:22 | 70,248,500 | 3 | 0 | null | 2016-10-07T13:21:28 | 2016-10-07T13:21:27 | null | UTF-8 | Python | false | false | 1,472 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~... | [
"zli@netflix.com"
] | zli@netflix.com |
dbaaa53331f0a0f026ad26980051621b2c7b9a22 | 9e3e8f1befeeb31150b27650ce5f6460b9c17445 | /quest/inference.py | d5707e8dce57159c0fc8bc51a94658cfb69ad9b7 | [
"MIT"
] | permissive | ceshine/kaggle-quest | d5ee108e0b7a7c2daa5469abad0c443f31e00029 | a25b9d964c28d97769bc040da05f2e39987433c4 | refs/heads/master | 2023-06-23T07:18:52.293776 | 2020-03-31T07:09:17 | 2020-03-31T07:09:17 | 240,172,051 | 8 | 0 | MIT | 2023-06-12T21:27:41 | 2020-02-13T03:53:23 | Python | UTF-8 | Python | false | false | 4,571 | py | import glob
import logging
from pathlib import Path
import fire
import joblib
import numpy as np
import pandas as pd
from tqdm import tqdm
import tensorflow as tf
from scipy.special import expit
from transformers import AutoTokenizer
from transformers import RobertaConfig
from .models import DualRobertaModel
from .pr... | [
"shuanck@gmail.com"
] | shuanck@gmail.com |
6ebce452a9616c0da47d9d865a6cd5f02ae0ad96 | 0eeeb78637ada50becb64ee73eeb6e872300818d | /tests/core/tags_manager_test.py | b2e94ada28b6e30309fa6b2084f273477fc7a39a | [
"MIT",
"CC-BY-4.0"
] | permissive | data-mermaid/golem | 4eabed7181a22220d09c4bc1b7fd0f4197e9dace | 06bbb33275a9f79cd7cc30a0e264b9bafdad3073 | refs/heads/master | 2022-11-20T11:28:57.891744 | 2020-07-21T18:12:18 | 2020-07-21T18:12:18 | 281,468,772 | 0 | 0 | MIT | 2020-07-21T18:02:12 | 2020-07-21T18:02:11 | null | UTF-8 | Python | false | false | 7,567 | py | import os
import json
import time
from types import SimpleNamespace
import pytest
from golem.core import tags_manager
class TestFilterTestsByTags:
@pytest.fixture(scope="class")
def _project_with_tags(self, project_class, test_utils):
"""A fixture of a project with tests that contain tags"""
... | [
"luciano@lucianorenzi.com"
] | luciano@lucianorenzi.com |
fdc4d85a1747b9528ab39eab9c261b0b2f9f2959 | 1ab5c39319564d20babedfb823307829cf489695 | /example_site/users/migrations/0004_update_uuid.py | cb907a7e3fcab135de1ccdad118b32dfc45ab678 | [
"MIT"
] | permissive | bihealth/sodar-core | 1c64368544d20b0934688a81d9cff7b27135a5ac | 6156b6409af01828fca506796a736b4f4669f33e | refs/heads/main | 2023-08-16T22:52:43.749729 | 2023-06-01T12:15:30 | 2023-06-01T12:15:30 | 165,220,058 | 7 | 0 | MIT | 2021-05-03T13:11:57 | 2019-01-11T09:50:04 | Python | UTF-8 | Python | false | false | 504 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-20 15:29
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('users', '0003_rename_uuid'),
]
operations = [
migrations.Alter... | [
"mikko.nieminen@bihealth.de"
] | mikko.nieminen@bihealth.de |
e71dbdeb83246f2c32513b1e07b6a33041c643de | 208560a564cc79822d5c6258ddd16e0e0e26362e | /Chapter-04-Strings-AssociativeArrays/Invert-Hash/Invert-Hash.py | 28a18f05d8e63e2ebd93f9ed364740506873b0f4 | [] | no_license | vishnuap/Algorithms | c778984e1afd6b8d160ce868f6ad4408da84855f | fa6c3022616a958bce86f0b1218372d47fe8bf7e | refs/heads/master | 2020-09-15T19:00:11.552634 | 2017-06-25T19:32:11 | 2017-06-25T19:32:11 | 67,612,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # Given an object, write a function to convert the keys to values and values to keys. given {"name": "Zaphod", "charm": "high", "morals": "dicey"} return {"Zaphod": "name", "high": "charm", "dicey": "morals"}
def invert(hash):
result = {}
for key in hash:
result[hash[key]] = key
return result
my... | [
"vishnusak@gmail.com"
] | vishnusak@gmail.com |
3cb5ea47932b8fd2beba13c91b4b21f445c3f635 | 747755833862b8e9d0f58ebc62879d6ef47c23c8 | /python-master (4)/python-master/content/ex52/gothonweb/tests/app_tests.py | 242115a3a71d5b981e8fb0f11bc9f85167654cb6 | [] | no_license | tangsong41/stu_py | 98a06730dbca6e158cf81c18d98fe1317c1ae512 | d41507cd8dd9e8a54084872dfa15c36da443c02b | refs/heads/master | 2022-12-11T23:53:57.530946 | 2019-01-15T18:29:19 | 2019-01-15T18:29:19 | 163,953,100 | 3 | 0 | null | 2022-12-07T23:24:01 | 2019-01-03T09:41:29 | Jupyter Notebook | UTF-8 | Python | false | false | 1,009 | py | from nose.tools import *
from bin.app import app
from tests.tools import assert_response
def test_index():
# 这个是原来的test,有问题
#test Get request to /hello
resp = app.request("/hello")
assert_response(resp)
#make sure default values work for the form
resp = app.request("/hello", method="PO... | [
"369223985@qq.com"
] | 369223985@qq.com |
efb64bee0ef472dc2f267101c73e037d18856bb7 | 6e68584f2819351abe628b659c01184f51fec976 | /Centre_College/CSC_339_SP2015/vindiniumAI/pybrain/tests/unittests/_test_equivalence_to_ctypes.py | 1ceb6722362bc62f6f93ecd2a4f3ddcc841fac3f | [
"WTFPL"
] | permissive | DanSGraham/code | 0a16a2bfe51cebb62819cd510c7717ae24b12d1b | fc54b6d50360ae12f207385b5d25adf72bfa8121 | refs/heads/master | 2020-03-29T21:09:18.974467 | 2017-06-14T04:04:48 | 2017-06-14T04:04:48 | 36,774,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,076 | py | """
>>> from pybrain.tools.shortcuts import buildNetwork
>>> from test_recurrent_network import buildRecurrentNetwork
>>> from test_peephole_lstm import buildMinimalLSTMNetwork
>>> from test_peephole_mdlstm import buildMinimalMDLSTMNetwork
>>> from test_nested_network import buildNestedNetwor... | [
"dan.s.graham@gmail.com"
] | dan.s.graham@gmail.com |
6e6fc45fe50c57f123aaf85bdfdd9e9b69a2a0d7 | e827e848562c990570cd105183087173073f10e3 | /chapters.py | e79fb0f3fa38035b114d2fb8bc9b072a56cb3aa9 | [] | no_license | srobo/sr2021-comp | 5e24d1964dc59a8a31a66d57009285121decfe03 | 44810406083f58d9cfa92f5f4839f93f3e2dbe78 | refs/heads/master | 2023-04-18T19:47:52.874826 | 2021-05-01T18:49:37 | 2021-05-01T18:49:37 | 322,952,147 | 0 | 3 | null | 2021-04-30T23:04:36 | 2020-12-19T22:50:12 | Python | UTF-8 | Python | false | false | 2,310 | py | #!/usr/bin/env python3
import argparse
import datetime
import sys
from pathlib import Path
from sr.comp.comp import SRComp
def format_time(delta: datetime.timedelta) -> str:
seconds = int(delta.total_seconds() // 1 % 60)
minutes = int((delta.total_seconds() // 60) % 60)
hours = int(delta.total_seconds()... | [
"PeterJCLaw@gmail.com"
] | PeterJCLaw@gmail.com |
af6c67df1202840f3eeb4de69bb270e3a39ad3ae | be6853182634afda24c1bef9247d0d99442e980d | /ml_project/prediction_process.py | e8cc4560e14bb4c3519a7ff45bdacdbfc61c4505 | [] | no_license | wavelike/speech_commands | 84c98f69d467537cd23101378f46f75609686ecd | 60ef48fd295abcb58194a3a180f53cd992921422 | refs/heads/main | 2023-05-31T15:23:17.781113 | 2021-07-06T14:01:02 | 2021-07-06T14:06:22 | 383,488,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | from typing import Any, Tuple, Dict
import pandas as pd
import requests
from ml_project.config import Config
from ml_project.data_validation import ProductionData
import numpy as np
def get_predictions(config: Config, model: Any, data: np.array) -> np.array:
predictions = np.argmax(model.predict(data), axis=1)... | [
"you@example.com"
] | you@example.com |
08280c22792c5e7f7332e300c80ac664b807c56b | df690ac0484ff04cb63f71f528a9d0a0e557d6a3 | /.history/ws_20210608160434.py | 2c43fa2782d678290a5e26e91d8e86df4c39eea6 | [] | no_license | khanhdk0000/Mqtt-Web-Socket | 437777c740c68d4197353e334f6fe6a629094afd | 4f9e49a3817baa9ebc4e4f8dcffc21b6ea9d0134 | refs/heads/master | 2023-06-20T17:08:09.447381 | 2021-06-08T17:42:37 | 2021-06-08T17:42:37 | 375,090,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,864 | py | from flask import Flask, jsonify, request
from flask_sock import Sock
import time
import random
app = Flask(__name__)
sock = Sock(app)
import threading
BROKER = 'io.adafruit.com'
USER = 'khanhdk0000'
PASSWORD = 'aio_FfID10QWNVSKUC2j15nLtOSeckin'
TOPIC = 'khanhdk0000/feeds/'
LIGHT = 'light'
SOUND = 'sound'
TEMP = ... | [
"khanhtran28092000@gmail.com"
] | khanhtran28092000@gmail.com |
58801548e31e001b4c9be47337fc8e7db69b516e | 8ed80561e1b3c0bcdb6201cae8af845d5da23edc | /guppe/funcoes_com_parametro.py | 28aac69c5647374a936b29cb5b6358a8088bf445 | [] | no_license | Fulvio7/curso-python-guppe | 42d5a1ecd80c1f3b27dc3f5dad074a51c9b774eb | 98966963f698eb33e65ed58a84f96e28f675848a | refs/heads/main | 2023-08-28T13:31:12.916407 | 2021-10-09T19:03:17 | 2021-10-09T19:03:17 | 415,393,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | """
Funções com parâmetro (de entrada)
São aquelas que recebem dados para serem processadas dentro da mesma.
entrada -> processamento -> saída
# Exemplo 1
def quadrado(numero):
return numero**2
print(quadrado(7))
print(quadrado(2))
ret = quadrado(3)
print(ret)
# Exemplo 2
def cantar_parabens(aniversariant... | [
"fulvio.barichello@gmail.com"
] | fulvio.barichello@gmail.com |
84289ad87a468bb3e5f22dcc94e76cda81645a68 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03578/s809546981.py | 11d6988c2dbdb25345af027c05f9f76b7b316ced | [] | 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 | 459 | py | import sys
readline = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
#mod = 998244353
INF = 10**18
eps = 10**-7
N = int(readline())
D = list(map(int,readline().split()))
M = int(readline())
T = list(map(int,readline().split()))
from collections import defaultdict
d_dict = defaultdict(int)
for t in T:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f0cf34ac61beb77be7bc230cfd5e12f6e2f7152d | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/logic/v20190501/list_integration_account_schema_content_callback_url.py | 40987ac55a9920e16d68be4a4ec402f29b3a0ec9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,817 | 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... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
a21a66bd24462f6e156cb4d444aadf2677ff1aaf | e01c5d1ee81cc4104b248be375e93ae29c4b3572 | /CLRS/Heapsort/priorityqueue.py | 653094269a47725b5d54ae867519f23870b97913 | [] | no_license | lalitzz/DS | 7de54281a34814601f26ee826c722d123ee8bd99 | 66272a7a8c20c0c3e85aa5f9d19f29e0a3e11db1 | refs/heads/master | 2021-10-14T09:47:08.754570 | 2018-12-29T11:00:25 | 2018-12-29T11:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from heapsort import MaxHeap
from ctypes import py_object
import sys
class PriorityQueue(MaxHeap):
def __init__(self, size = 16):
self.size = size
self.heap_size = -1
self.heap = (size * py_object)()
def heap_maximum(self):
return self.heap[0]
def extract_max(self):
if self.heap_size < 0:... | [
"lalit.slg007@gmail.com"
] | lalit.slg007@gmail.com |
b1a75529371c00a2e917344ea7d00bc767b0a4c3 | 78db4e6170ba9325e6f601e62b583f01e7fa3940 | /Array/t-s-II.py | c6b67d664829a96686d0a237be20fd703b5afdc8 | [] | no_license | parambole/LeetCode | 3d3061f6240939085633441bf2e173f0d335975f | 1cfcf8da6983fffebe6d037ee134aeff3ca96320 | refs/heads/master | 2023-05-01T19:45:14.279187 | 2021-05-22T16:04:07 | 2021-05-22T16:04:07 | 244,571,425 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | class Solution:
def twoSum(self, numbers: List[int], target: int) -> List[int]:
low = 0
high = len(numbers) - 1
while low <= high:
a = numbers[low]
b = numbers[high]
two_sum = a + b
if two_sum > target:
... | [
"noreply@github.com"
] | parambole.noreply@github.com |
b4b0eaabd5679d22dd8673390a43fe92367d60b5 | d2876c5d80f03336418a243c36a080fc3a65d629 | /build/learning_ros/Part_2/xform_utils/catkin_generated/pkg.installspace.context.pc.py | 229397ae9364950fdee98bc49179c6d638ab7d13 | [] | no_license | brucemingxinliu/ARIAC_Inventory_control | 302b8648451c38a461d07a57e8c12702538abd23 | 8084b095822d7ad8ccab6dbf98d85348c8a9fb8c | refs/heads/master | 2021-01-19T18:39:13.649891 | 2017-04-18T15:22:13 | 2017-04-18T15:22:13 | 88,370,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/brucemingxinliu/ros_ws/install/include".split(';') if "/home/brucemingxinliu/ros_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;tf;geometry_msgs".replace(';', ' ')
PK... | [
"mxl592@case.edu"
] | mxl592@case.edu |
b1599ccb7b5e3984fd561f3a47cfbb17b7b469d0 | de392462a549be77e5b3372fbd9ea6d7556f0282 | /accounts/migrations/0023_auto_20200806_1620.py | ec72bee9248b1b318199b9ff696b441de57f5366 | [] | no_license | amutebe/AMMS_General | 2830770b276e995eca97e37f50a7c51f482b2405 | 57b9b85ea2bdd272b44c59f222da8202d3173382 | refs/heads/main | 2023-07-17T02:06:36.862081 | 2021-08-28T19:07:17 | 2021-08-28T19:07:17 | 400,064,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # Generated by Django 3.0.2 on 2020-08-06 13:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0022_auto_20200806_1620'),
]
operations = [
migrations.AlterField(
model_name='car',
name='car_number',
... | [
"mutebe2@gmail.com"
] | mutebe2@gmail.com |
be15b63fc2f58d92b6c66e5cb35c2e73a94d2a0d | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py/libcloud/common/cloudstack.py | 771c04d41d58e120c1538c9a44e23d75dd009111 | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:afe55538b95a252958994246ec811790d8191877ce3448932aefbca47915e43e
size 4540
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
2950e14f12615a7207ba565bf3a5717afda0d752 | 1b2609f093eed8e893593b75621c7b8495caa2ef | /PythonCode/custom_class1.py | 7f06196ead22f81bcc4d0f3aba4af1a82d8ad039 | [] | no_license | Frostmoune/My-Note | 06a2f0bd268bbdf07a68f1bc8408bceffb2ab927 | 7896a06e0531c0720d02850babe59155c7d5e51f | refs/heads/master | 2021-09-06T12:43:32.427911 | 2018-02-06T15:52:46 | 2018-02-06T15:52:46 | 107,769,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | class Student(object):
__slots__=('_score','__name','__age','grade','className')
def __init__(self,name="",score=60,age=17):
self._score=score
self.__name=name
self.__age=age
@property
def age(self):
return self.__age
@age.setter
def age(self,age):
if not ... | [
"810343087@qq.com"
] | 810343087@qq.com |
a0cb46cb66cc8241e6fba18549b2bce75fde32c9 | 69bf012ca88897cd87535701369f2b87c6522d57 | /modules/templates/historic/RLP/tools/poolsplit.py | da9345cf9ea10146a69e6ccb9490c1b82a80b0e8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sahana/eden | e2cc73f6b34a2ab6579094da09367a9f0be10fd1 | 1cb5a76f36fb45fa636577e2ee5a9aa39f35b391 | refs/heads/master | 2023-08-20T20:56:57.404752 | 2023-02-24T17:16:47 | 2023-02-24T17:16:47 | 3,021,325 | 227 | 253 | NOASSERTION | 2023-01-10T10:32:33 | 2011-12-20T17:49:16 | Python | UTF-8 | Python | false | false | 2,507 | py | # -*- coding: utf-8 -*-
#
# Helper Script to split a pool retaining POOLREADER assignments
#
# RLP Template Version 1.5.0
#
# - Adjust POOLNAME and ADDPOOL below, then
# - Execute in web2py folder like:
# python web2py.py -S eden -M -R applications/eden/modules/templates/RLP/tools/poolsplit.py
#
# The name of the po... | [
"dominic@nursix.org"
] | dominic@nursix.org |
9ca6f9c9e78298ac662b69254bbd3621a2801e6d | 92754bb891a128687f3fbc48a312aded752b6bcd | /Algorithms/Python3.x/1028-Recover_a_Tree_From_Preorder_Traversal.py | ee9f4273b0813042aa8e53d9b4946cc541af0d3c | [] | no_license | daidai21/Leetcode | ddecaf0ffbc66604a464c3c9751f35f3abe5e7e5 | eb726b3411ed11e2bd00fee02dc41b77f35f2632 | refs/heads/master | 2023-03-24T21:13:31.128127 | 2023-03-08T16:11:43 | 2023-03-08T16:11:43 | 167,968,602 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | # Runtime: 56 ms, faster than 99.45% of Python3 online submissions for Recover a Tree From Preorder Traversal.
# Memory Usage: 14.5 MB, less than 25.00% of Python3 online submissions for Recover a Tree From Preorder Traversal.
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# ... | [
"daidai4269@aliyun.com"
] | daidai4269@aliyun.com |
dec09ad760f0ee1f0e968dfe985298c3edece58a | f473f44ef230ecd8a3f8ececf613f06a6e4bc82b | /Array/medium-Find Peak Element.py | 4cab604540cb87acf4bfcd798061079bfb60c822 | [] | no_license | Wdiii/LeetCode-exercise-start-from-easy | 878e3e5789906803e02dee47429bcbe2fdfa0ada | d6e87c40445adafc297cbc22815e2f1882681596 | refs/heads/master | 2023-01-01T14:14:24.301141 | 2020-10-20T06:02:38 | 2020-10-20T06:02:38 | 254,024,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
class Solution:
def findPeakElement(self, nums):
#nums: List[int]) -> int:
left,right=0,len(nums)-1
while left<right:
mid=(left+right)//2
if nums[mid]>nums[mid+1]:
... | [
"noreply@github.com"
] | Wdiii.noreply@github.com |
2c59b22ae05193dc6806df4b6d50e18c1f426821 | 732c0303ecfe8e915548846144e2a257d0ba0bd0 | /prob433.py | 49c4b49b51cd3fa8e7b11d6dd5d2c27b3ff62be4 | [] | no_license | mercurium/proj_euler | e2c041d833b80369f0e7b7aa493a9ff5c1e22d91 | a8326af80cac040fa515350cf9972dca6f116f82 | refs/heads/master | 2020-04-06T05:24:31.185785 | 2017-05-06T23:50:56 | 2017-05-06T23:50:56 | 9,540,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | #NOTE TODO need to solve it
import time
start = time.time()
count = 0
size = 100
vals = dict()
def euclid(a, b): #returns c,d such that ac+bd =1
if b == 0:
return 0
count = 0
while b != 0:
count, a,b = count+1,b, a%b
return count
ext_gcd = euclid
for i in xrange(1,size+ 1):
for j... | [
"jerrychen434@gmail.com"
] | jerrychen434@gmail.com |
06b8cfbd8e4db0312b13cb701fb8e3d3e4d2f5fe | e3cb14336e3199a6313ca4dc146faa23e537c139 | /apps/ice2o/migrations/0006_auto_20170413_2208.py | 5de72b245e6ef6adf7b4f55dae7c6a53744b3566 | [] | no_license | Ice2Ocean/ice2oceansDjango | c9456b01db0defc710d4a45b401cb5e10b3de4cb | fe3b06ce76fb0a4a9432944b79e532ebcbebeb46 | refs/heads/master | 2021-01-20T03:09:24.468150 | 2017-05-05T20:56:48 | 2017-05-05T20:56:48 | 89,504,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-13 22:08
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ice2o', '0005_delete_arendtregions'),
]
operations = [
migrations.DeleteModel(
... | [
"landungs@uw.edu"
] | landungs@uw.edu |
3cfefd58945efdda1147317172355d4153234dee | af4eb8204923b5848fce3158c6f8a89a480ea1d8 | /script_config/CEP/BF_FieldTest_Car_0001.py | 052278808a159c4d2ac7ac929a7cb525106f9668 | [] | no_license | wanghaoplus/gatog | 4ab0c77d4f9eb93da136ad3933a68cbf0b5c5bca | 8935e20a426638462cd1cc7bc048a16751287a2f | refs/heads/master | 2022-04-10T21:36:20.395304 | 2020-03-26T10:09:28 | 2020-03-26T10:09:28 | 248,264,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | # -*- coding: utf-8 -*-
class BF_FieldTest_Car_0001(object):
LoopTimes = 1
sceneId = 'Car_BeiJing_HaiDian_Park_20191219143930'
class BF_FieldTest_Car_0001():
LoopTimes = 1 | [
"418816179@qq.com"
] | 418816179@qq.com |
00266d059d05c03c752b995e61d513c6057b08fe | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02715/s393667996.py | 407a3c9c7183463400b25788523525c49a568b6d | [] | 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 | 436 | py | MOD = 10 ** 9 + 7
N, K = map(int, input().split())
# cnt(n): gcd = n となる数列の個数
cnt = [0] * (K + 1)
# A1,...,ANのすべてがxの倍数である数列の個数 = floor(k/x)^N個
for n in range(1, K + 1):
cnt[n] = pow(K // n, N, MOD)
res = 0
for k in range(K, 0, -1):
p = 2
while p * k <= K:
cnt[k] -= cnt[p * k]
cnt[k] %= MO... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
040384d45f45d4820d0204220d039ccc0248148e | 50106d3b4996c56cd625ae5cebbd9e8175d76e4f | /jobadvisor/urls.py | 0310a61b3fcabdceeee7897d809699968f1883d9 | [] | no_license | ewgen19892/jobadvisor | 07231a6245024468a33cc6ff734a6276f9b6ec95 | 713b9d84ac70d964d46f189ab1f9c7b944b9684b | refs/heads/master | 2023-05-27T00:15:35.170865 | 2021-06-20T16:31:32 | 2021-06-20T16:31:32 | 378,689,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | """JobAdvisor URL Configuration."""
from django.contrib import admin
from django.urls import include, path
from django_prometheus.exports import ExportToDjangoView
from .views import index, schema_view
urlpatterns: list = [
path("admin/", admin.site.urls),
path("metrics/", ExportToDjangoView, name="metrics")... | [
"e.bohovchuk@admitad.com"
] | e.bohovchuk@admitad.com |
6d26362466675d24c200997d89a9da62ba5bcd1d | 0a11a15cf64e25585d28f484bb2118e8f858cfeb | /programmers/0803_다리를 지나는 트럭.py | 16b2b3cd64d94336381fd955952083b0da2e50d8 | [] | no_license | seoul-ssafy-class-2-studyclub/GaYoung_SSAFY | 7d9a44afd0dff13fe2ba21f76d0d99c082972116 | 23e0b491d95ffd9c7a74b7f3f74436fe71ed987d | refs/heads/master | 2021-06-30T09:09:00.646827 | 2020-11-30T14:09:03 | 2020-11-30T14:09:03 | 197,476,649 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | from collections import deque
def solution(bridge_length, weight, truck_weights):
answer = 0
check = deque()
for j in range(bridge_length):
check.append(0)
trucks = deque()
for i in range(len(truck_weights)):
trucks.append(truck_weights[i])
now_weight = 0
while trucks:
... | [
"gyyoon4u@naver.com"
] | gyyoon4u@naver.com |
1dcd64782b91ebecc3d591d3acd36c37b77e79be | 1483486fae7cc9adf9493dadb1e60c087e2d6af9 | /env/bin/dynamodb_dump | 4a3e5b487927eb479a9001c976a1f299c80ec854 | [] | no_license | e-TPO/server | a8cf711ddef443ccb1008fe2fbcc6ac45369f189 | bf735321a4d3e52ea0b65cee8a9533a8250e5985 | refs/heads/master | 2022-12-14T22:49:30.776005 | 2018-01-27T21:33:53 | 2018-01-27T21:33:53 | 119,088,886 | 1 | 1 | null | 2022-12-08T00:36:21 | 2018-01-26T18:37:09 | CSS | UTF-8 | Python | false | false | 2,171 | #!/home/kuldeep/Projects/etpo/e-tpo-server/env/bin/python3
import argparse
import errno
import os
import boto
from boto.compat import json
from boto.compat import six
DESCRIPTION = """Dump the contents of one or more DynamoDB tables to the local filesystem.
Each table is dumped into two files:
- {table_name}.met... | [
"pisdak79@gmail.com"
] | pisdak79@gmail.com | |
c7ea5cb5391ba09bec694be21d86fb43d7632139 | 403d6edb643431a4e2b1fc5d1d47f3ecc1cd4766 | /parse.py | f7178c17b3ea57784029df6b797bbff38c29c6ce | [] | no_license | elaineo/clscrapper | d49b965414322a3fa8e516eed37e5158ab7b7f77 | dc63a6cb5579830d41346b0e0b91882fd07def8e | refs/heads/master | 2020-12-24T20:43:14.449097 | 2015-03-09T05:14:38 | 2015-03-09T05:14:38 | 59,610,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import csv
m=[]
with open("rideshare_new.tsv") as tsv:
for line in csv.reader(tsv, dialect="excel-tab", quoting=csv.QUOTE_NONE):
m.append(line)
f = open('./cldata.js', 'w+')
print >> f, 'cldata = '
print >> f, m
print >> f, ';'
m=[]
with open("zimride_new.tsv") as tsv:
l... | [
"elaine.ou@gmail.com"
] | elaine.ou@gmail.com |
0857f9280e719896dcaa06a9cad718bb8e6b73b5 | d5fea299b1cc8b917a5da1f8bc6288c1ee4f87a5 | /django/practice/modelvideo/exemple/migrations/0001_initial.py | 24709f5cc9181929411b0d67f579bae3325e99e5 | [] | no_license | sashavinocurov/python-practice | 57bcadbaa24ceb5c41bf2fa9f6bc143e503a0cbd | f292cf39cc41fa40fbbc3b290b8d2974a179b9b4 | refs/heads/master | 2022-11-26T12:27:18.368684 | 2020-08-04T19:04:17 | 2020-08-04T19:04:17 | 268,667,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # Generated by Django 2.2.6 on 2019-10-25 00:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoField(... | [
"vinocurovxandr@gmail.com"
] | vinocurovxandr@gmail.com |
89cc0a00d255af430b9ad537aeb098671caddcab | dfc86f29ca0f80b182acbd8e9cf5df57c695ebe2 | /app/tests/test_models.py | ef25ee59c8f2a7c2a589293f998e273708b4dcda | [
"MIT"
] | permissive | badmark/memegen | c17daa2ea4e115b3a482118f5b370d9488bb8ac2 | bef48c5d07a8cf1822fb3f5090e911f0af350ef5 | refs/heads/main | 2022-12-12T09:17:27.327806 | 2020-09-07T21:32:13 | 2020-09-07T21:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | from pathlib import Path
import log
import pytest
from .. import settings
from ..models import Template, Text
def describe_text():
def describe_stylize():
@pytest.mark.parametrize(
("style", "before", "after"),
[
("none", "Hello, world!", "Hello, world!"),
... | [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com |
efb6911552a1abbddf0e7b85e16c5978556d0a55 | 7aecab27c231c5207f26a1682543b0d6c5093c06 | /server/dancedeets/nlp/styles/vogue.py | d295bd8e46c06f6f087f15a4c19e5c6e2d0da041 | [] | no_license | mikelambert/dancedeets-monorepo | 685ed9a0258ea2f9439ae4ed47ebf68bb5f89256 | 4eff1034b9afd3417d168750ea3acfaecd20adc6 | refs/heads/master | 2022-08-10T07:16:32.427913 | 2018-04-15T22:05:58 | 2018-04-15T22:05:58 | 75,126,334 | 24 | 2 | null | 2022-07-29T22:28:45 | 2016-11-29T22:04:44 | Python | UTF-8 | Python | false | false | 1,925 | py | # -*-*- encoding: utf-8 -*-*-
from dancedeets.nlp import base_auto_classifier
from dancedeets.nlp import event_types
from dancedeets.nlp import grammar
from dancedeets.nlp import style_base
from dancedeets.nlp.street import keywords
Any = grammar.Any
Name = grammar.Name
connected = grammar.connected
commutative_conne... | [
"mlambert@gmail.com"
] | mlambert@gmail.com |
d02db149919936f9a7568a6abefb7a3cbf9c93d5 | d2845579ea6aa51a2e150f0ffe6ccfda85d035ce | /common/python/utils/store_type.py | cc86ffe8b266b5710d17012d06aaf53f0a9326fd | [
"Apache-2.0"
] | permissive | as23187/WeFe | d8de9ff626f9f3e5d98e0850b0b717a80fd73e72 | ba92871d4b1d2eef6c606c34795f4575e84703bd | refs/heads/main | 2023-08-22T12:01:06.718246 | 2021-10-28T01:54:05 | 2021-10-28T01:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # Copyright 2021 Tianmian Tech. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"winter.zou@welab-inc.com"
] | winter.zou@welab-inc.com |
1761ffff31d2444dc73980c649d50c88e4d096aa | e3adbec6cd8d0b50880b3b606352a1c751d4ac79 | /Code/105.py | 2896a9fcb7a11b6d6c6309904569945a030cc858 | [] | no_license | ZiyaoGeng/LeetCode | 3cc5b553df5eac2e5bbb3ccd0f0ed4229574fa2f | c4c60b289c0bd9d9f228d04abe948d6287e70ea8 | refs/heads/master | 2022-04-07T08:19:58.647408 | 2020-03-12T08:56:13 | 2020-03-12T08:56:13 | 218,981,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
sys.path.append('../functions/')
from tree import TreeNode
from typing import List
class Solution:
def buildTree(self, preorder: List[int], inorder: List[int]) -> TreeNode:
i = 0
while i < len(inorder) and preorder[0] != inorder[i]:
i += 1
if i < len(inorder):
p = TreeNode(ino... | [
"593947521@qq.com"
] | 593947521@qq.com |
e0f54357b44e0c7f73bce3d2ac8d0d07b031ff62 | 6550cc368f029b3955261085eebbddcfee0547e1 | /第9部分-flask+智能玩具(火龙果)/day129/今日代码/TuXingSun/ws_serv.py | 6cd381d5dc52943efb15f990584883c4baacfd99 | [] | no_license | vividyellow/oldboyeduPython14qi | d00c8f45326e16464c3d4e8df200d93779f68bd3 | de1e9f6efafa2846c068b3fe5ad6e1ca19f74a11 | refs/heads/master | 2022-09-17T21:03:17.898472 | 2020-01-31T10:55:01 | 2020-01-31T10:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | from flask import Flask,request
from geventwebsocket.handler import WebSocketHandler
from gevent.pywsgi import WSGIServer
from geventwebsocket.websocket import WebSocket
from baidu_aip import speech
import json
ws = Flask(__name__)
user_socket_dict = {}
@ws.route("/toy/<toy_id>")
def toy(toy_id):
user_socket = r... | [
"524991368@qq.com"
] | 524991368@qq.com |
c81627bb65c4bed639b9cef6d34f184227b3b1e2 | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/parser/template/node_tests/test_select.py | 52aef102d9fcfb14ee0fe79167d86ff8f461482a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,921 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
279495290df39e9f9c8b707c65247810ddb1af5b | f791bd4e916d7531bf26d2064e9699118ba788a8 | /src/cldfbench/commands/readme.py | 089ce4504f52604f28b200108215c16d82dd5635 | [
"Apache-2.0"
] | permissive | cldf/cldfbench | 7732b0c59ad417fd195a0c460bd4bc55d047f2fa | f78799decd24b27704dca69e88ba84821191599d | refs/heads/master | 2023-08-17T21:20:17.893901 | 2023-08-02T10:32:48 | 2023-08-02T10:32:48 | 181,492,879 | 8 | 5 | Apache-2.0 | 2023-01-21T15:42:44 | 2019-04-15T13:30:04 | Python | UTF-8 | Python | false | false | 256 | py | """
Write dataset metadata to a README.md in the dataset's directory.
"""
from cldfbench.cli_util import add_dataset_spec, with_datasets
def register(parser):
add_dataset_spec(parser, multiple=True)
def run(args):
with_datasets(args, 'readme')
| [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
da3f296ef2402fb29412fb1923133007eb85463c | c7d7dfa5ac23b940e852a67155364439d9069486 | /pos_create_purchase_order/__manifest__.py | 3e94e76ff3d8fbabd844ed0253cb05b1fd2b9fac | [] | no_license | shurshilov/odoo | d163f6c939bcbfb36bdf83eeeeffca368f0a4722 | 8099e62254b7f1e113be7b522585dbc352aea5a8 | refs/heads/16.0 | 2023-09-04T03:02:31.427240 | 2023-09-03T16:25:28 | 2023-09-03T16:25:28 | 89,852,559 | 20 | 43 | null | 2023-09-03T06:30:22 | 2017-04-30T13:32:08 | JavaScript | UTF-8 | Python | false | false | 1,032 | py | # Copyright (C) 2021 Artem Shurshilov <shurshilov.a@yandex.ru>
# License OPL-1.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "POS create purchase order",
"summary": """Pos create purchase order quick create sales order in POS point of sale""",
"author": "Shurshilov Artem",
"website": "https:/... | [
"shurshilov.a@yandex.ru"
] | shurshilov.a@yandex.ru |
6fe8a7cf0ab384b9423e44b5ea41632843e24eda | e8df354a756710f6af4f7e747b762136c016bb56 | /src/sentry/relay/query.py | 329f1c3e67c81dc3616715ded5f7b47f69858461 | [
"BSD-2-Clause"
] | permissive | thomas-mcdonald/sentry | 65ca34b87616b293d9055a7090b1ca2a41a8e971 | 81df3fd1ce2326314eb19abb8560bf1f7a48f045 | refs/heads/master | 2020-05-29T21:56:03.052651 | 2019-05-30T01:07:58 | 2019-05-30T01:07:58 | 189,395,177 | 1 | 0 | BSD-3-Clause | 2019-05-30T10:37:25 | 2019-05-30T10:37:25 | null | UTF-8 | Python | false | false | 1,247 | py | from __future__ import absolute_import
import six
from sentry.relay.queries.base import InvalidQuery
from sentry.relay.utils import type_to_class_name
def execute_queries(relay, queries):
from django.utils.importlib import import_module
query_results = {}
for query_id, query in six.iteritems(queries):
... | [
"armin.ronacher@active-4.com"
] | armin.ronacher@active-4.com |
8f8fb39d461e48b2b511b608e9ea13755c0c1b9a | 16003e4ba3b5ce007c6582887030758acc102ba9 | /MoneyTracker/userpreferences/migrations/0003_auto_20210128_1647.py | e35a9fb632e5bca0baf95f09dc2a3fcb85fc05ff | [] | no_license | coderj001/MoneyTracker | ea9d66673b778aa45d94b7fb04b5b5517b70240e | ea89068bf79d4459b26716204e54187ffd31a8f0 | refs/heads/master | 2023-04-16T17:34:54.960018 | 2021-04-14T04:17:33 | 2021-04-14T04:17:33 | 332,488,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # Generated by Django 3.1.5 on 2021-01-28 16:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('userpreferences', '0002_... | [
"amirajubolchi001@gmail.com"
] | amirajubolchi001@gmail.com |
c7aa8be640357b2f744e51fa3a6aadc22e03efc5 | 698e8f5b85e82392c68472291aa774ab65e86ccd | /tests/mysite/myapp/migrations/0001_initial.py | 376c9b5401636a98afadbeb019a5a2df59a8257d | [
"MIT"
] | permissive | alexmojaki/friendly_states | 6b7880ed0e3c730b6714c836fc592c7ae8abf003 | 22fc338e8b56e25635e456f0370cd216022db304 | refs/heads/master | 2020-07-27T22:05:26.490777 | 2019-10-05T12:59:34 | 2019-10-05T12:59:34 | 209,228,885 | 20 | 3 | MIT | 2019-10-02T05:40:49 | 2019-09-18T05:55:16 | Python | UTF-8 | Python | false | false | 831 | py | # Generated by Django 2.2.5 on 2019-10-01 17:52
from django.db import migrations, models
import friendly_states.django
import myapp.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MyModel',
... | [
"alex.mojaki@gmail.com"
] | alex.mojaki@gmail.com |
a452b4a13e1ad462a06f93f0ee0803bae74faef0 | 67d70b30abf1a64c53997dc4e43d5593d411bfc2 | /feather/rad_onewire.py | c748c8be88ad2f31807f9974e403889e5718a2ee | [] | no_license | edgecollective/knuth-soil-remote | 4d095ba5e3f8381c06ad25b77e0c42e076f25649 | 4b8df9136d63e95794c98c54a8f4fb090eb29afd | refs/heads/master | 2020-06-11T13:44:22.572872 | 2019-08-11T22:45:24 | 2019-08-11T22:45:24 | 193,985,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | import board
import busio
import digitalio
import time
import adafruit_rfm9x
import gc
from adafruit_onewire.bus import OneWireBus
from adafruit_ds18x20 import DS18X20
SLEEP_TIME=120
# Initialize one-wire bus on board pin D5.
ow_bus = OneWireBus(board.D5)
# Scan for sensors and grab the first one found.
ds18_bus=ow... | [
"donblair@gmail.com"
] | donblair@gmail.com |
6a9eb927017cca25592e6d0b797e82897ef6449f | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/aristotle-mdr/aristotle-metadata-registry/aristotle_mdr/contrib/help/templatetags/aristotle_help.py | 405a0ae05dd3862b40bce20141b41f78398956e7 | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 2,077 | py | from django import template
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse, resolve
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext_lazy as _
from aristotle_mdr import perms
import aristotle_mdr.models as MDR
from... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
4fdb2fc60ffe8db86858e3930323151bb0b1032b | 61ef3a8928caa88e874aa79d46203871d0e5bbfb | /p/dist-packages/kitchen/versioning/__init__.py | 69bc21ca04bb80149763f9e6a7da628fcf4f5d79 | [] | no_license | joshg111/craigslist_kbb | cd941f237821fa7d2a9a8140b2744294948ba56c | a473d0d389612e53a2ad6fe8a18d984474c44623 | refs/heads/master | 2021-01-10T09:35:04.334601 | 2018-05-26T16:05:20 | 2018-05-26T16:05:20 | 44,120,875 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,447 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2011 Red Hat, Inc
#
# kitchen is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# ki... | [
"jagreenf111@gmail.com"
] | jagreenf111@gmail.com |
6976c67ae9bc1f5fff7808159fd2f0e8512ea6db | e00186e71a1f52b394315a0cbc27162254cfffb9 | /machine_learning_practice/test.py | 3511448c275c80959b0b5d9798e240cf52d11b51 | [] | no_license | anilkumar0470/git_practice | cf132eb7970c40d0d032520d43e6d4a1aca90742 | 588e7f654f158e974f9893e5018d3367a0d88eeb | refs/heads/master | 2023-04-27T04:50:14.688534 | 2023-04-22T05:54:21 | 2023-04-22T05:54:21 | 100,364,712 | 0 | 1 | null | 2021-12-08T19:44:58 | 2017-08-15T10:02:33 | Python | UTF-8 | Python | false | false | 250 | py | # import settings
# settings.l.append("junk")
# print(settings.l)
import logging
# def sample():
# return True, "sdfdsd"
#
# a,b = sample()
# print(a,b)
import logging
# logger = logging.getLogger("test")
logging.debug("sddrtrfsdf", "gfh") | [
"anilkumar.0466@gmail.com"
] | anilkumar.0466@gmail.com |
a47d6a561e569660c9bd139b61ac64236dbca507 | d9fb6c246965cbf290186268298859ddb913ee6e | /190820/반복문자 지우기.py | af4ab695f6bdb1d1e5f1b506c15e12da2022ddf3 | [] | no_license | 91hongppie/algorithm | 1ca6d54de6eab252c708bf83835ace8a109d73fc | 4c2fa8178e0ef7afbf0b736387f05cbada72f95d | refs/heads/master | 2020-07-20T22:17:40.700366 | 2020-06-29T00:06:11 | 2020-06-29T00:06:11 | 206,717,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | import sys
sys.stdin = open('sample_input_04.txt', 'r')
N = int(input())
for i in range(1, N+1):
words = input()
word_list = []
for idx, word in enumerate(words):
if idx == 0 or len(word_list) == 0:
word_list.append(word)
elif word_list[-1] == word:
word_list.pop()
... | [
"91hongppie@gmail.com"
] | 91hongppie@gmail.com |
156a3482b2252e4ea5d3065636b5d7e8c3f1a5a3 | b4c740714b29ea325562377e117c9e0a181c6d5e | /env/bin/pyrsa-keygen | 253e283e8d9846e1d625b8385ff27067321d1a14 | [] | no_license | mazharoddin/keyword-pos-SEO-updated | b232d304e22dfa0a9076d7892a035d0407bba4b3 | e322e31b0db0d9bd9d79574fcfdaf4946b203ec4 | refs/heads/master | 2023-03-02T10:26:27.299213 | 2021-02-11T10:55:55 | 2021-02-11T10:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | #!/home/anand/Desktop/seotool/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import keygen
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(keygen())
| [
"anand98.ar@gmail.com"
] | anand98.ar@gmail.com | |
65ba85aa2a39a33e07ec80b6f5b898df37322d3a | f4882a337b5513555719755a008ced6efc7d8605 | /api/serializers.py | 4eafd9eddf4be886e258b4b1b9d534ef4fd07d73 | [] | no_license | SamirIngley/shopping-website | b7577970c995fbb91023828f1b327005692a8dd1 | 1aa9930efd575288195e75857750779a1f8335f3 | refs/heads/master | 2021-02-06T11:43:12.722733 | 2020-03-08T06:54:15 | 2020-03-08T06:54:15 | 243,911,445 | 1 | 0 | null | 2020-06-05T21:24:16 | 2020-02-29T05:37:28 | Python | UTF-8 | Python | false | false | 189 | py | from rest_framework.serializers import ModelSerializer
from post.models import Post
class PostSerializer(ModelSerializer):
class Meta:
model = Post
fields = '__all__'
| [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
9f9077620a8201390d7229d56699c1dd504e5426 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658282861527040_0/Python/caethan/new_lottery_game_small.py | 98a932ba11cf3a3fb10667447b87778ca9bcf0f2 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | #Template code developed by Brett Olsen (brett.olsen@gmail.com), 2013
#for the Google Code Jam programming contest
###############################################################################
# Imports go here
###############################################################################
#Do proper division
from ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
fa9190bdb85cff19f7737a8efaaf6c2f20035450 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /chrome/browser/resources/unpack_pak_test.py | ca5b87a33cf7c88c770696f293dbfbe8894813ee | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 594 | py | #!/usr/bin/env python
# Copyright 2018 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.
import unpack_pak
import unittest
class UnpackPakTest(unittest.TestCase):
def testMapFileLine(self):
self.assertTrue(unpack_pak... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
f0392c185c2f8547adf9ac1709b72fc4515a181b | e8b5fde61cda3752507c3d8309c9d7075047a8d0 | /desihub/desisim/py/desisim/scripts/py/qa_zfind.py | 3985b5edc84006bf58d7302b934b7dd6294818a0 | [
"BSD-3-Clause"
] | permissive | michaelJwilson/LBGCMB | f83af41d80d1991644607d473cd00246432fe601 | fca7d0cd515b756233dfd530e9f779c637730bc4 | refs/heads/master | 2021-08-15T19:40:43.151033 | 2020-04-22T17:42:11 | 2020-04-22T17:42:11 | 163,872,551 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,662 | py | #!/usr/bin/env python
#
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
Read fibermaps and zbest files to generate QA related to redshifts
and compare against the 'true' values
"""
import argparse
def parse(options=None):
parser = argparse.ArgumentParser(description="Ge... | [
"mjw@roe.ac.uk"
] | mjw@roe.ac.uk |
22579972a40c1b60cdc54eb3ebb4de4cac0531d8 | be02a1c01b3372c76b82e706b2b5c28ec9a22a9a | /guillotina_cms/interfaces/versioning.py | 052c2103411595330144e5b081a7a9405537041c | [
"BSD-2-Clause"
] | permissive | twaapo/guillotina_cms | b5399a69207cae81ad713c9269e11f63c576b937 | b42b3b91e0b1bd6807c3dd53277b3418d066e382 | refs/heads/master | 2020-04-09T08:22:39.063907 | 2018-11-21T18:36:39 | 2018-11-21T18:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from zope.interface import Interface
from guillotina.fields.annotation import BucketListField
class IVersioning(Interface):
diffs = BucketListField(
readonly=True,
annotation_prefix='diffs-',
bucket_len=5
)
class IVersioningMarker(Interface):
"""Marker interface an object is Versi... | [
"ramon.nb@gmail.com"
] | ramon.nb@gmail.com |
bc9f20100d01d4d02d8243509f5296b2c18bc191 | 21dda956404fa5e19a42f031c34b64367281ebee | /024.py | b95d401c458d5d4e8251f7be26e39730c1dbb62f | [] | no_license | caudate-julie/ProjectEuler | e9bb7b6ab503a7a622be8f5599402ce07bc68121 | 80cd002ac8c452faac4da6f251275e4f90309e79 | refs/heads/master | 2020-12-30T00:16:50.961389 | 2020-02-06T21:50:10 | 2020-02-06T21:50:10 | 238,792,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # What is the millionth lexicographic permutation
# of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9?
from math import factorial
from time import time
def Permutations(a, ordnum):
seq = list(range(a))
n = len(seq)
pnum = [0]*(n-1)
seq.sort()
for i in range(1, n):
pnum[i-1] = factorial(n-i)
... | [
"kyra-mensk@yandex.ru"
] | kyra-mensk@yandex.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.