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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7fe354c98d8d01ba22505c5e5c51b733782f34d6 | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/googlecloudsdk/api_lib/ml/vision/util.py | d48320c61c682ef73501c2c44fe8ff497a756db5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 2,070 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
14dfa0a6647e1c79cd33c076529270c16b054056 | 09933dafbbc12fe20c405362850ffbf315b01a58 | /src-tag-ent/gen_data.py | fbddab6277c97047553db17485a2206acc0a6875 | [] | no_license | johndpope/advrelation | 1ce1fd4ffc0b7abbea2762c3a8941b469c4f7cf5 | bc77dcfa8669d612aded6a053fff6766798bed14 | refs/heads/master | 2020-03-22T22:55:48.664711 | 2018-03-03T04:43:11 | 2018-03-03T04:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import tensorflow as tf
import config as config_lib
from inputs import dataset, semeval_v2
tf.logging.set_verbosity(tf.logging.INFO)
config = config_lib.get_config()
semeval_text = semeval_v2.SemEvalCleanedTextData(
config.semeval_dir, config.semeval_train_file, config.semeval_test_file)
# length statistics
s... | [
"lzh00776@163.com"
] | lzh00776@163.com |
c4fd4774aaf0e10c3720251b62ae4f7fd5eca3ae | 437428a48278b4e9bc04e1b8acbb33199f409376 | /modules/exploit/unix/cctv/goahead_password_disclosure.py | ae2a949fa5f2033187282244644b19db5808d163 | [
"MIT"
] | permissive | happylaodu/HatSploit | 06d18ba2590456241ba61273d9f3d662a8bb26ec | 9d53f3db85ce38483c6e7d16570ac233c5dd93cf | refs/heads/main | 2023-04-30T20:18:37.090185 | 2021-06-02T20:23:08 | 2021-06-02T20:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,399 | py | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# 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... | [
"enty8080@gmail.com"
] | enty8080@gmail.com |
ec20e0f130c9b07be9f40df8385ecc71d1678676 | 1b3fc35ada474601a76de3c2908524336d6ca420 | /day07/作业/tencent/tencent/settings.py | d96bd9dfc78cc95ce6fafa6d33a2745ee7a9c4af | [] | no_license | dqsdatalabs/Internet-worm | db3677e65d11542887adcde7719b7652757a3e32 | 62f38f58b4fa7643c482077f5ae18fff6fd81915 | refs/heads/master | 2022-01-16T14:29:52.184528 | 2018-12-25T08:46:08 | 2018-12-25T08:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | # -*- coding: utf-8 -*-
# Scrapy settings for tencent project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topic... | [
"aaa1058169464@126.com"
] | aaa1058169464@126.com |
b120a89e2d2dd9e418954d016dc61f794cb03dc7 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/domainregistration/v20201001/domain_ownership_identifier.py | 0686f0d099df8d96bf3e28acd50d6042d8b40850 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,342 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
d5d74faabbe533b0b669c36f2c141f32fc8b63aa | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/arrays/categorical/test_analytics.py | 6aa36525fd6980d29cb1249c01c9b0434bf179be | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 14,794 | py | import re
import sys
import numpy as np
import pytest
from pandas.compat import PYPY
from pandas import Categorical, Index, NaT, Series, date_range
import pandas._testing as tm
from pandas.api.types import is_scalar
class TestCategoricalAnalytics:
@pytest.mark.parametrize("aggregation", ["min", "... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
a7eaaf704b1ca43d729d3db96987a74947dc2a7e | ac42f1d918bdbd229968cea0954ed75250acd55c | /admin/dashboard/openstack_dashboard/dashboards/admin/networks/urls.py | 4cd1b60079c3d722609128d7ad46956075f117f1 | [
"Apache-2.0"
] | permissive | naanal/product | 016e18fd2f35608a0d8b8e5d2f75b653bac7111a | bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7 | refs/heads/master | 2020-04-03T22:40:48.712243 | 2016-11-15T11:22:00 | 2016-11-15T11:22:00 | 57,004,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | # Copyright 2012 NEC Corporation
#
# 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 ag... | [
"rajagopalx@gmail.com"
] | rajagopalx@gmail.com |
3ca35f3537a824472f63b7833626c34abcf1e3e6 | befafdde28c285c049b924fa58ce6240a4ae8d3c | /python_solution/Backtracking/40_CombinationSumII.py | 3c2f5d5b703d0d38f2bbe30c891c104f20adad1e | [] | no_license | Dimen61/leetcode | 3364369bda2255b993581c71e2b0b84928e817cc | 052bd7915257679877dbe55b60ed1abb7528eaa2 | refs/heads/master | 2020-12-24T11:11:10.663415 | 2017-08-15T14:54:41 | 2017-08-15T14:54:41 | 73,179,221 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | class Solution(object):
def combinationSum2(self, candidates, target):
"""
:type candidates: List[int]
:type target: int
:rtype: List[List[int]]
"""
enable_lst = [False for i in range(target+1)]
enable_lst[0] = True
candidates.sort()
f... | [
"dimen61@gmail.com"
] | dimen61@gmail.com |
8c951a4ff5799e9f19a66c7679c2cbb6760522b1 | 593ecc21a7164ec293f23d75423e71ab3d9f3c54 | /LC29.py | 4851f8eb59c6ba7f464b3e832b78b17bb3b30c3a | [] | no_license | luckmimi/leetcode | e297c11960f0c72370523e5594d789bc4d55cf7c | 2257c6202e823a5cd71b630441c430f1bd08a896 | refs/heads/master | 2022-07-11T22:36:02.634148 | 2022-06-30T22:57:20 | 2022-06-30T22:57:20 | 214,880,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | class Solution:
def divide(self, dividend: int, divisor: int) -> int:
sign = -1 if (dividend < 0) ^ (divisor < 0) else 1
a = abs(dividend)
b = abs(divisor)
res = 0
while b<= a:
mul = 1
tmp = b
while a >= (tmp <<1):
... | [
"noreply@github.com"
] | luckmimi.noreply@github.com |
5fd1184dce2377d92e2ff473b987d718c97bf42f | 5bd3122d230471b048429f5e9c49a0b39c8a54fc | /Atcoder_contests/ARC/R102A.py | 5e0b5a9bf32372b1adfd5381f0b6c1bc75432986 | [] | no_license | nao1412/Competitive_Programing_Codes | e230e2fa85027e41c5ee062083801bb299effe9b | 98c29b5ba75e75502cf27fcf365a7aedcd6c273c | refs/heads/main | 2023-06-05T18:45:59.733301 | 2021-06-23T15:02:25 | 2021-06-23T15:02:25 | 374,061,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | import sys
sys.setrecursionlimit(10**7) # 再帰回数を増やす
import math
def I(): return int(input())
def LI(): return list(map(int, input().split()))
def MI(): return map(int, input().split())
def S(): return input()
def LS(): return list(map(str, input().split()))
def H(n): return [input() for i in range(n)]
mod = 10**9 + 7
d... | [
"naoya_greeeen_0720@icloud.com"
] | naoya_greeeen_0720@icloud.com |
b78816d355385165c2d46725802b6c6001eae314 | b1c99061474c4e2f2653f6f3d83931c949c58b13 | /Basic/chapter3/ReplaceTest.py | 1f7aca0428b31758f691b5eb62156031c05dd93f | [] | no_license | hyperaeon/python | df75346040a5ccc588e21b0d761493c59e1a4fe3 | 21d10ef7af3227d29092a6720666c0db8e418ec4 | refs/heads/master | 2016-09-14T08:58:53.794960 | 2016-04-26T05:34:56 | 2016-04-26T05:34:56 | 57,100,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | __author__ = 'hzliyong'
cookie = '_da_ntes_uid=3LhpAfObU48aiOR0b28yZYXv;'
cookie = cookie.replace(';','')
print(cookie)
list
type = 'a'
if type == 'a':
list = 'type a'
if type == 'b':
list = 'type b'
print(list) | [
"hzliyong@corp.netease.com"
] | hzliyong@corp.netease.com |
b7b297c84c0c3d1db89a06f2929ee93d987e0691 | eab1abf41e3e1bd276258be7aedfb4f2dfcc1b1e | /web/mydjango/geoapp/admin.py | 3d75606cf3e3ff9b2630865dc8782c03b65cc335 | [] | no_license | javiermaly/docker-python3-django2-postgres-postgis-geodjango-nginx | 1732e0df8d1bd4624b3385ac6757b48060814814 | 8ea5f2c9ed90013bab76b468d44e7cbabf8122f6 | refs/heads/master | 2021-11-25T14:47:09.901801 | 2018-03-26T01:03:39 | 2018-03-26T01:03:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from django.contrib import admin
from .models import GeoAlgo
@admin.register(GeoAlgo)
class GeoAlgoAdmin(admin.ModelAdmin):
list_display = ['nombre']
search_fields = ['nombre'] | [
"andres@data99.com.ar"
] | andres@data99.com.ar |
3c0948318554ab6edf9a4f53a5192b3d04e696dd | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/vnet_gateway/_list_learned_routes.py | 789b238597180231c9dcdc90049d592a0ae04769 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 6,877 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e7d33cb382cca997ef56c3849ba3489bc73be785 | fd90b8efa1daaec44b54797e549e0f738f4a5897 | /jianzhioffer/16. 数值的整数次方.py | b6c886f4358eab1f50ae4aa820f45932b011e28a | [] | no_license | ddz-mark/LeetCode | 2a622eeb655398ca9ebd9feee93a52cd114a77c4 | d557faf87374ad8c65634ee9d9e572b88a54913a | refs/heads/master | 2021-07-12T06:58:57.162657 | 2021-04-18T13:25:03 | 2021-04-18T13:25:03 | 244,403,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | # 实现函数double Power(double base, int exponent),求base的exponent次方。不得使用库函数,同时不需要考虑大数问题。
#
# 示例 1:
#
# 输入: 2.00000, 10
# 输出: 1024.00000
# 示例 2:
#
# 输入: 2.10000, 3
# 输出: 9.26100
# 示例 3:
#
# 输入: 2.00000, -2
# 输出: 0.25000
# 解释: 2-2 = 1/22 = 1/4 = 0.25
# 思路一:优化方法,将指数分为奇数和偶数,偶数的话可以 x=x*x
# 判断奇偶的方法:对于(m+n) & 1,若结果为0,则(m+n)是偶数;若结... | [
"dudaizhong@126.com"
] | dudaizhong@126.com |
a30be694eca63a88eff2b727822bab6367cf71fe | d0dfd680e92e9b32f24e6e034571ad4323a58103 | /src/yeahml/information/write_info.py | e25421e67c2746d55a8337851f10397129d59851 | [
"Apache-2.0"
] | permissive | yeahml/yeahml | 6d1523d01300532f19c54d8e9c320420df66ee5c | b51faff6625db5980151a4a5fac7bb49313df5c1 | refs/heads/master | 2023-08-11T16:49:41.181953 | 2020-11-14T20:33:58 | 2020-11-14T20:33:58 | 137,613,449 | 4 | 1 | Apache-2.0 | 2023-06-02T18:45:48 | 2018-06-16T22:11:19 | Python | UTF-8 | Python | false | false | 1,138 | py | import json
import pathlib
from typing import Any, Dict
def write_build_information(
model_cdict: Dict[str, Any], meta_cdict: Dict[str, Any]
) -> bool:
full_exp_path = (
pathlib.Path(meta_cdict["yeahml_dir"])
.joinpath(meta_cdict["data_name"])
.joinpath(meta_cdict["experiment_name"])
... | [
"jackbburdick@gmail.com"
] | jackbburdick@gmail.com |
f60472dc9f2c47ee9077d7de07554b3dae6f0215 | 5c72f7709e501bd0ca3c5dc1e1f21cfffda13582 | /rebench/model/measurement.py | 40af4d69df6564115af83afce35a6769e7585c55 | [] | no_license | lhoste-bell/ReBench | 74ccb400aa5f262b56659afac3b7db873bd6a8d2 | 0f5c678b045b5208e9a2bed01629c780bef52da5 | refs/heads/master | 2021-01-17T07:57:14.440676 | 2016-05-23T19:25:58 | 2016-05-23T19:25:58 | 60,706,933 | 0 | 0 | null | 2016-06-08T15:06:26 | 2016-06-08T15:06:25 | null | UTF-8 | Python | false | false | 2,563 | py | # Copyright (c) 2009-2014 Stefan Marr <http://www.stefan-marr.de/>
#
# 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, cop... | [
"git@stefan-marr.de"
] | git@stefan-marr.de |
ce4e263dde23b1fdcc64494a2f9403ddfdfb1d07 | f5f40cee05de885ee059bcf4760e16f3f01ed23c | /ims/exceptions.py | c359b0a8626603fd8084e35af12b1dcce84a8c5e | [] | no_license | MarsWizard/imagebank | 68693207d71024bd0cdc608984d80fc0c7b6f751 | 916a9f087194052e77751fd8d52c930e77a7b04d | refs/heads/master | 2021-04-17T16:57:55.356760 | 2020-10-20T05:34:23 | 2020-10-20T05:34:23 | 249,460,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | ERROR_OBJECT_NOT_FOUND = 10001
PARAMETER_REQUIRED = 10002
INVALID_IMAGE_FILE = 10003
class ImsException(BaseException):
def __init__(self, error_code, error_msg):
self.error_code = error_code
self.error_msg = error_msg
class InvalidImageFile(ImsException):
def __init__(self):
... | [
"pbleester@gmail.com"
] | pbleester@gmail.com |
477f89560ab67fce9dddcc436863915129dc25bd | 707bd0e873ae25146f1341b40d8efbf5134025af | /unifypage/migrations/0004_auto_20161021_0933.py | 781e95f7baa886a438135233d4469070f9415423 | [] | no_license | yosmangel/djangoLn2x | 76acd748adfddb5b21ad3e0342e3d7eb19b81bc9 | 24d068458e8271aacfa98d762c0dc117e65d41cf | refs/heads/master | 2021-04-27T07:55:36.488176 | 2017-06-01T17:48:26 | 2017-06-01T17:48:26 | 122,641,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-21 08:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('unifypage', '0003_auto_20161020_1746'),
]
operations = [
migrations.RemoveF... | [
"yosmangel_yk@hotmail.com"
] | yosmangel_yk@hotmail.com |
f2b7180d176b4eec46c3794ea9526f5ec48beb91 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform_v1beta1/services/migration_service/transports/base.py | 3405e5f21603a2bae9a6b0b1b8a675b832545a71 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 7,763 | 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... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
369763c0f219753bd8c6a490f0df5b72badcc7f3 | 4f730232e528083d868d92640443e0c327329ec6 | /scripts/rhinoscript/userinterface.py | ea6bb5de00e2c23f0600cd085af2986ca73deabc | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | matpapava/rhinopython | ad5aed71bba4c5554b8654f48a8c8054feb80c31 | 05a425c9df6f88ba857f68bb757daf698f0843c6 | refs/heads/master | 2021-05-29T12:34:34.788458 | 2015-06-08T11:58:43 | 2015-06-08T11:58:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,341 | py | import Rhino
import utility as rhutil
import scriptcontext
import System.Drawing.Color
import System.Enum
import System.Array
import System.Windows.Forms
import math
from view import __viewhelper
def BrowseForFolder(folder=None, message=None, title=None):
"""Display browse-for-folder dialog allowing the user to s... | [
"steve@mcneel.com"
] | steve@mcneel.com |
6f2277101164e2fd6dac195e12949d3dca920dbe | 8fe9b8de265a1cf408dba15605e0e0c33a6931ee | /exceptions/define_exception.py | 1d94201250896bf695a200143de0ae758dc6c69c | [] | no_license | clivejan/python_object_oriented | d07346a2589fb630b2fd65d23ff2997c7e194b5d | 8f1ef1925630962c474b143607c056e8c2a1d7af | refs/heads/master | 2020-12-10T02:46:42.815508 | 2020-01-19T18:53:26 | 2020-01-19T18:53:26 | 233,484,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | class InvalidWithdrawal(Exception):
pass
raise InvalidWithdrawal("Wake up! You don't have $50 in your account.")
| [
"clive.jan@gmail.com"
] | clive.jan@gmail.com |
2f320639bf0c7b231d588ce8050002ed8d7f888e | eb52ecd946dc6c2e4d7bd63a27bbfbc587ccbe79 | /doc/source/conf.py | 7da23a679516396f631dd434f1640595a4a9aab4 | [
"Apache-2.0"
] | permissive | dtroyer/osc-choochoo | 5ee7b124b7c53c44aac5651dde950e11778e1653 | 57119ab84528933da9cbcd57dcd4f5b842a58186 | refs/heads/master | 2021-09-08T00:06:58.580823 | 2018-03-03T19:20:07 | 2018-03-03T19:36:37 | 103,709,841 | 1 | 1 | Apache-2.0 | 2018-03-03T13:28:05 | 2017-09-15T23:34:08 | Python | UTF-8 | Python | false | false | 2,903 | py | # -*- coding: utf-8 -*-
# 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, software... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
eeca7667162158e4c128fc7a5beedc8e432f8d53 | 4882e66d296cb0e5dab21de1170e13f8c54a6c9c | /Exercicios/2-ex7.py | 0e2b488de4c6e268228bb55c516ec4f10b0faca2 | [] | no_license | felipemanfrin/NLP | d6eac822fc919f93a1146c004540f62fe9c83086 | 45424ca49504d5f11e13f8d97829a0d5a9926bc2 | refs/heads/master | 2023-01-21T12:16:56.081979 | 2020-12-02T21:20:30 | 2020-12-02T21:20:30 | 268,633,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | import spacy
from spacy.matcher import Matcher
from spacy.matcher import PhraseMatcher
nlp = spacy.load('en_core_web_sm')
matcher = PhraseMatcher(nlp.vocab)
pattern = ['swimming vigorously']
phrase_patterns = [nlp(text) for text in pattern]
matcher.add('SwimmingVigorously', None, *phrase_patterns)
with open('../UPDATE... | [
"felipemanfrin@gmail.com"
] | felipemanfrin@gmail.com |
57af349162a6ec2e90c73196d07d293ccd657ef7 | e97c5e5beb22444b7eabd743a35493ab6fd4cb2f | /nbs/15_gsa_gls/20-null_simulations/20_gls_phenoplier/profiling/py/01_03-gls-profiling-new_code.py | 419a1aae91420228e40cf2683fc7fa6979628e86 | [
"BSD-2-Clause-Patent"
] | permissive | greenelab/phenoplier | bea7f62949a00564e41f73b361f20a08e2e77903 | b0e753415e098e93a1f206bb90b103a97456a96f | refs/heads/main | 2023-08-23T20:57:49.525441 | 2023-06-15T06:00:32 | 2023-06-22T16:12:37 | 273,271,013 | 5 | 2 | NOASSERTION | 2023-06-20T20:35:45 | 2020-06-18T15:13:58 | Jupyter Notebook | UTF-8 | Python | false | false | 1,943 | py | # ---
# jupyter:
# jupytext:
# cell_metadata_filter: all,-execution,-papermill,-trusted
# formats: ipynb,py//py:percent
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.13.8
# kernelspec:
# display_name: Python 3 (ip... | [
"miltondp@gmail.com"
] | miltondp@gmail.com |
09b56da17b552a715728664e0d4b355d51787a27 | 179140ef3ac111af7645636b5408894a3b61094f | /camera_trap_classifier/data/tfr_encoder_decoder.py | 2cf32feeda4cd2d78f8897e135b88d0269e7e2f9 | [
"MIT"
] | permissive | YunyiShen/camera-trap-classifier | 1d9bc3431ed31a00edfcd8fa4323fcf110ecc514 | 95f5f2db1c61f401e2408b8a9bfb6c069fa1a98e | refs/heads/master | 2020-12-04T06:42:24.552725 | 2020-01-03T23:01:44 | 2020-01-03T23:01:44 | 231,662,686 | 0 | 0 | MIT | 2020-01-03T20:47:03 | 2020-01-03T20:47:02 | null | UTF-8 | Python | false | false | 7,590 | py | """ Class To Encode and Decode TFRecords"""
import logging
import tensorflow as tf
from camera_trap_classifier.data.utils import (
wrap_int64, wrap_bytes, wrap_dict_bytes_list, wrap_dict_int64_list,
_bytes_feature_list,
_bytes_feature_list_str)
from camera_trap_classifier.data.image import dec... | [
"will5448@umn.edu"
] | will5448@umn.edu |
93ee6822569c5b7e9169ffac1e02ef95e6d5c928 | 412b0612cf13e9e28b9ea2e625975f3d9a2f52b6 | /2017/18/double_computer.py | 15e82c468b7a8a9ed25058bcadfb08c381a40aa1 | [] | no_license | AlexClowes/advent_of_code | 2cf6c54a5f58db8482d1692a7753b96cd84b6279 | d2158e3a4edae89071e6a88c9e874a9a71d4d0ec | refs/heads/master | 2022-12-24T19:02:07.815437 | 2022-12-23T17:35:53 | 2022-12-23T17:35:53 | 225,618,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | from collections import defaultdict
import operator
from queue import Queue
def prog(program, program_id, snd_queue, rcv_queue):
registers = defaultdict(int)
registers["p"] = program_id
value = lambda x: registers[x] if x.isalpha() else int(x)
instruction_pointer = 0
while 0 <= instruction_pointer... | [
"alexclowes@gmail.com"
] | alexclowes@gmail.com |
eb27a95802962717549a291267adf4019d33615d | 5fdace6ee07fe9db58f026a4764629261203a173 | /tensorflow/python/data/kernel_tests/shuffle_test.py | ceca3e8d61f1fbf65c81ba3762f5e6d8fc7ad1cf | [
"Apache-2.0"
] | permissive | davidstone/tensorflow | 5ed20bb54659a1cb4320f777790a3e14551703d7 | 6044759779a564b3ecffe4cb60f28f20b8034add | refs/heads/master | 2022-04-28T02:19:53.694250 | 2020-04-24T17:41:08 | 2020-04-24T17:41:08 | 258,335,682 | 0 | 0 | Apache-2.0 | 2020-04-23T21:32:14 | 2020-04-23T21:32:13 | null | UTF-8 | Python | false | false | 14,239 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
08f3bcef3f8cd09135340a9e0b5b59eba23f21d6 | a6cba5b8b36f3f4ef80d7351725da0bc8ddbfad4 | /NM/cp/main.py | e362e92e7130e9ddfb28811f5a86ec2d6613187c | [] | no_license | tutkarma/mai_study | 7de61a406c7c5701ea9bbea7da687cc147653e53 | 39359eb8b5701c752d1f4e8e0b26911e50df12ab | refs/heads/master | 2023-03-15T18:28:05.814809 | 2022-01-18T08:40:39 | 2022-01-18T08:40:39 | 103,191,526 | 38 | 99 | null | 2023-03-04T02:20:21 | 2017-09-11T21:46:56 | Jupyter Notebook | UTF-8 | Python | false | false | 5,366 | py | import argparse
import json
from utils import save_to_file
from mpi4py import MPI
import numpy as np
def read_data(filename, need_args):
init_dict = {}
with open(filename, 'r') as json_data:
data = json.load(json_data)[0] # !
for arg in need_args:
if arg not in data:
... | [
"tutkarma@gmail.com"
] | tutkarma@gmail.com |
575d02aa9fb79160437e642f6d8501b4b1d3b89c | 0f556b9d4e250df73bf1e0929dbd4afad51e82fe | /person/3/person.py | 18a8f9d43f414810584c840c8d787016b5ca9207 | [] | no_license | unabl4/PythonCodeClub | 0ef1cb4d145860a4fda528c2eea513d0ba6b8327 | 72d5887342c1e0b304307a0e0ac9eb78f0202c35 | refs/heads/master | 2021-04-30T04:42:03.266029 | 2019-02-18T22:09:12 | 2019-02-18T22:09:12 | 121,541,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | from datetime import date
class Person:
def __init__(self, first_name, last_name, birth_date):
self.first_name = first_name
self.last_name = last_name
self.birth_date = birth_date
def age(self):
return int((date.today()-self.birth_date).days // 365.25)
def full_name(self):
... | [
"unabl4@gmail.com"
] | unabl4@gmail.com |
97e989546fc1cd3b939a0e6230c20cd0361c5a99 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/Juniper-SONET-CONF.py | c3b8be3cccc5ea7d781b518f90c1487395270edc | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 11,118 | py | #
# PySNMP MIB module Juniper-SONET-CONF (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-SONET-CONF
# Produced by pysmi-0.3.4 at Wed May 1 14:04:23 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
ec1a2c058317b511d0867d6fd68a928832eda934 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fv/rsctxtoospfctxpol.py | 24471250b333be80cb7836f09ea259df48c17457 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 9,042 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
3705d6628ca7f9c0175c12c5e79138b0bc3be4c0 | 1eee2c9c105148904d0fb47cee227cfd20241b76 | /alpha/alpha_beats_28.py | 5bfdccc7f1e53b5628dc5209c82fea3bfca59b63 | [] | no_license | fred-hz/zeta | be9f6f466b75767cc1a45a4004d1c84e5d559b6b | e7b631447fff6e58928d6ac15702338b7cc8e3e7 | refs/heads/master | 2021-09-05T01:03:31.387379 | 2018-01-23T04:15:58 | 2018-01-23T04:15:58 | 118,187,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | from alpha.alpha_base import AlphaBase
import numpy as np
import util
class AlphaBeats_28(AlphaBase):
def initialize(self):
self.delay = int(self.params['delay'])
self.is_valid = self.context.is_valid
self.alpha = self.context.alpha
self.cps = self.context.fetch_data('adj... | [
"zibo_zhao@berkeley.edu"
] | zibo_zhao@berkeley.edu |
5f042357ce4755b0b73969f346665bf0304b6569 | 7d8a4d58fc4c5a73ce8c85e513253a86d6290d3b | /script.module.eggscrapers/lib/eggscrapers/modules/workers.py | 0699f6d316130d4fa9ee280485fcae4f73959dcd | [] | no_license | bopopescu/icon | cda26d4463d264b7e2080da51f29d84cc48dfb81 | e385a6225dd11b7fea5a11215d655cf5006bb018 | refs/heads/master | 2022-01-12T19:00:04.951604 | 2019-07-10T05:35:44 | 2019-07-10T05:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | # -*- coding: utf-8 -*-
'''
Eggman Add-on
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This progra... | [
"kodi15887@gmail.com"
] | kodi15887@gmail.com |
9500aa334d1daba13d7d173c5f462b375f143dd5 | d063684dd03293eb0f980568af088d26ab087dbe | /debadmin/migrations/0075_auto_20191108_1225.py | dd5f3b44bf87cdc1a4bd8999b7965e71e5bee1f2 | [] | no_license | abhaysantra/debscientific | ce88e5ef44da8d6771c3652ed0ad02900ccd8ed2 | 88ec65616fd24052bbdbba8b00beba85493f5aea | refs/heads/master | 2020-11-26T22:09:33.820247 | 2019-12-20T07:58:43 | 2019-12-20T07:58:43 | 229,213,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | # Generated by Django 2.2.6 on 2019-11-08 06:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('debadmin', '0074_auto_20191107_1914'),
]
operations = [
migrations.AddField(
model_name='order_details',
... | [
"abhay.santra@gmail.com"
] | abhay.santra@gmail.com |
3aa97b853fd98ddf44122b5bcd60123d34d92249 | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /mrex/neighbors/tests/test_nca.py | aae03f4cc2ab2f30e92c437813adba3fbbd1ac11 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,758 | py | # coding: utf-8
"""
Testing for Neighborhood Component Analysis module (mrex.neighbors.nca)
"""
# Authors: William de Vazelhes <wdevazelhes@gmail.com>
# John Chiotellis <ioannis.chiotellis@in.tum.de>
# License: BSD 3 clause
import pytest
import re
import numpy as np
from numpy.testing import assert_array_equ... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
8f06edb067427872d40d29ef97e33cffafcc5c31 | 56b36ddf920b5f43e922cb84e8f420f1ad91a889 | /Leetcode/Leetcode-Minimum Area Rectangle.py | bac5a430a77fc7b720b63b147c68a99ab884d1bd | [] | no_license | chithien0909/Competitive-Programming | 9ede2072e85d696ccf143118b17638bef9fdc07c | 1262024a99b34547a3556c54427b86b243594e3c | refs/heads/master | 2022-07-23T16:47:16.566430 | 2020-05-12T08:44:30 | 2020-05-12T08:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from collections import defaultdict
class Solution:
def minAreaRect(self, points) -> int:
if len(points) <= 3: return 0
x= defaultdict(set)
for xC, yC in points:
x[xC].add(yC)
m = float('inf')
for p1 in points:
for p2 in points:
if p1[0... | [
"ntle1@pipeline.sbcc.edu"
] | ntle1@pipeline.sbcc.edu |
7a5f37ad2f3ff8cf53a9b3b4ca81d5f74320aa45 | 649078315f93e2d76fad95c59f234701ef055cb8 | /test/test_baseSubscriber.py | 820a50160e7e984fa738df7e2c5d59094e7878bd | [
"MIT"
] | permissive | jaebradley/nba_player_news | 207f4555f662c9187e9ab931774a0863556529f8 | 35ac64c369c33f1232fa76bd5bcc1c0704d868bb | refs/heads/master | 2022-11-22T08:25:08.993567 | 2017-06-14T00:36:52 | 2017-06-14T00:36:52 | 89,762,719 | 2 | 0 | MIT | 2022-11-11T17:00:18 | 2017-04-29T04:06:01 | Python | UTF-8 | Python | false | false | 353 | py | from unittest import TestCase
from nba_player_news.data.subscribers import BaseSubscriber
class TestBaseSubscriber(TestCase):
subscriber = BaseSubscriber(subscription_channel_name="foo")
def expect_process_message_to_not_be_implemented(self):
self.assertRaises(NotImplementedError, self.subscriber.p... | [
"jae.b.bradley@gmail.com"
] | jae.b.bradley@gmail.com |
793073e51592d4314f06fcc0fcbb400e1d8cd9dd | 6872caaa6c3bb59995627064ed1ab63df403bdf6 | /eyantra_provider/venv/Lib/site-packages/authlib/specs/rfc7523/auth.py | 6d737c5ac49b7c82dd49f815df2b3a207dff03bc | [
"MIT"
] | permissive | Andreaf2395/OpenID-Provider | 3189780631d9057140e233930ace72e9bfc76e58 | cdedd42cc49e6f03e3b2570c03fb1f4a2c83be34 | refs/heads/Sameeksha_Final_Provider | 2023-08-21T16:05:42.864159 | 2020-06-18T18:47:16 | 2020-06-18T18:47:16 | 273,314,708 | 0 | 0 | MIT | 2020-06-18T18:48:34 | 2020-06-18T18:44:29 | Python | UTF-8 | Python | false | false | 71 | py | from authlib.oauth2.rfc7523 import register_session_client_auth_method
| [
"sameekshabhatia6@gmail.com"
] | sameekshabhatia6@gmail.com |
07985a4f579fa355a9a7fce78a2516fbf7521d8c | 9b367d3f0930a4dfd5f097273a12265fbb706b31 | /textProjectByAli/manage.py | 6fa59a0390d5eea0b49bb3e98b00ee2c3a0a568b | [] | no_license | AliHassanUOS/Remove-Punctuation-Project | a4988f07c685d5e385a279bd67c8c12df4af5c4d | 652cd09668b3ce61904333feb3a624b1b2c1ed42 | refs/heads/master | 2022-12-18T05:29:52.972379 | 2020-09-21T08:00:13 | 2020-09-21T08:00:13 | 297,268,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'textProjectByAli.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"alihasanuos@gmail.com"
] | alihasanuos@gmail.com |
46dfde8b2041244d6ae133d01572576d6944bc71 | 98f7bb1314330138f0cb9901e764f6da8cd5605b | /5_python基础/3_字典.py | 15720e3b4ac0d7bcd22295c0e97684183fa0bb02 | [] | no_license | 1071183139/biji | c964e197ea0845dbfdd98213743130668770f929 | 02c2e6f69ceb557448b959c44723b4bf498e90c9 | refs/heads/master | 2022-12-17T06:46:27.920479 | 2019-10-26T12:02:54 | 2019-10-26T12:02:54 | 217,701,979 | 0 | 0 | null | 2022-12-07T23:55:02 | 2019-10-26T11:57:28 | Python | UTF-8 | Python | false | false | 2,053 | py | # 根据键访问值
info = {'name': '班长', 'id': 100, 'sex': 'f', 'address': '地球亚洲中国北京'}
# print(info['name'])
# print(info['names']) # 键不存在会报错
# get 获取 设置默认值 不存在不会报错
# print(info.get('id'))
# print(info.get('ids','没有这个键'))
# 常见的操作 (修改,增减,删除)
# 修改元素
# new_id=input('请输入元素')
# info['id']=new_id
# print(info1)
# ... | [
"1071183139@qq.com"
] | 1071183139@qq.com |
fa14b434145cd963ca27a6eef951a8dff89d13d1 | 62bbfb6c50bba16304202aea96d1de4990f95e04 | /dependencies/pulumi_aws/secretsmanager/secret_policy.py | 81618991d5edb3f606dbf67e2ea3567c4dac6497 | [] | no_license | adriell/lambda-autoservico-storagegateway | b40b8717c8de076e61bbd422461c7d624a0d2273 | f6e3dea61b004b73943a5438c658d3f019f106f7 | refs/heads/main | 2023-03-16T14:41:16.821675 | 2021-03-11T03:30:33 | 2021-03-11T03:30:33 | 345,865,704 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,885 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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 _utilitie... | [
"adriel@infoway-pi.com.br"
] | adriel@infoway-pi.com.br |
553f3d89c11483b36ae1a20c082db45382ae9e15 | 3b786d3854e830a4b46ee55851ca186becbfa650 | /SystemTesting/pylib/nsx/vsm/edge/edge_sslvpnconfig_schema/edge_sslvpnconfig_layout_configuration_schema.py | 68a4bace81fb3982ea88b3dfde93326a01c98ec6 | [] | no_license | Cloudxtreme/MyProject | d81f8d38684333c22084b88141b712c78b140777 | 5b55817c050b637e2747084290f6206d2e622938 | refs/heads/master | 2021-05-31T10:26:42.951835 | 2015-12-10T09:57:04 | 2015-12-10T09:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | import base_schema
class SSLVPNConfigLayoutConfigurationSchema(base_schema.BaseSchema):
_schema_name = "layoutConfiguration"
def __init__(self, py_dict=None):
""" Constructor to create
SSLVPNConfigLayoutConfigurationSchema object
@param py_dict : python dictionary to construct this obj... | [
"bpei@vmware.com"
] | bpei@vmware.com |
c47ab8e7d986152e8f436c75f1e649796e2231bb | 054bc8696bdd429e2b3ba706feb72c0fb604047f | /python/utils/CheckInRange/CheckInRange.py | b984a85c12b190cb26df2a3aebfbf2bf794a9fde | [] | no_license | wavefancy/WallaceBroad | 076ea9257cec8a3e1c8f53151ccfc7c5c0d7200f | fbd00e6f60e54140ed5b4e470a8bdd5edeffae21 | refs/heads/master | 2022-02-22T04:56:49.943595 | 2022-02-05T12:15:23 | 2022-02-05T12:15:23 | 116,978,485 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | #!/usr/bin/env python3
"""
Keep/Remove records in range.
@Author: wavefancy@gmail.com
Usage:
CheckInRange.py -r file -c int [-e]
CheckInRange.py -h | --help | -v | --version | -f | --format
Notes:
1. Read content from stdin, and output result to stdout.
2. Column inde... | [
"wavefancy@gmail.com"
] | wavefancy@gmail.com |
607be8af08490cdeb3c8bebdd88c48c0eb7029a9 | d1ad7bfeb3f9e3724f91458277284f7d0fbe4b2d | /react/003-react-django-justdjango/backend/env/lib/python3.6/operator.py | fd9d9c6e64c46a252a453b8f263544655f85d35c | [] | no_license | qu4ku/tutorials | 01d2d5a3e8740477d896476d02497d729a833a2b | ced479c5f81c8aff0c4c89d2a572227824445a38 | refs/heads/master | 2023-03-10T20:21:50.590017 | 2023-03-04T21:57:08 | 2023-03-04T21:57:08 | 94,262,493 | 0 | 0 | null | 2023-01-04T21:37:16 | 2017-06-13T22:07:54 | PHP | UTF-8 | Python | false | false | 58 | py | /Users/kamilwroniewicz/anaconda3/lib/python3.6/operator.py | [
"qu4ku@hotmail.com"
] | qu4ku@hotmail.com |
82a535bcf1ac49a0530f8b1435d3329a2280a09b | 118124f2e903dab8a425c6d99e7ac8fa6f559aa4 | /devel/py-repoze.xmliter/files/patch-setup.py | ccbbb76a7d9156aabc0ee41314c870b7f15170f0 | [] | no_license | mneumann/DPorts | 30b3abfdf58b63698bc66c8614073e3366b5fd71 | d511cdf563ed8133ea75670bfa6e3e895495fefd | refs/heads/master | 2020-12-26T00:46:41.527700 | 2015-01-27T14:54:22 | 2015-01-27T14:54:22 | 28,131,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | --- setup.py.orig 2014-09-21 15:40:44 UTC
+++ setup.py
@@ -43,7 +43,7 @@ setup(name='repoze.xmliter',
author_email="repoze-dev@lists.repoze.org",
url="http://www.repoze.org",
license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
- packages=find_packages(),
+ packages = ['repoze', 're... | [
"nobody@home.ok"
] | nobody@home.ok |
024d663ec6247259c4849e881e211d74a27a846a | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/PowhegControl/examples/processes/MC15.101010.PowhegPythia8EvtGen_A14NNPDF23_VBF_W_example.py | 0eed1637cfa4f4c7d9a0b3470d317a5272088e7b | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
#--------------------------------------------------------------
# EVGEN configuration
#--------------------------------------------------------------
evgenConfig.description = "POWHEG+Pythia8 VBF W production with A14 NNPDF2.3 tune."
evgenConfig... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
7d77907d67969dbeb7a841f56e36294174ac81b0 | 2e2cb71a102c144427f3a3d4c3f2717472e1a2ac | /SPD.py | 6257cf5234470ceb1b82217a8de233f0b56533d4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pdhung3012/RegGNN | 740af76d90740c38f6be502ed6f9495b6d59a4a8 | a383562121d205f7bb86751242882b7e815eee3f | refs/heads/main | 2023-07-08T13:43:41.903844 | 2021-08-16T07:55:31 | 2021-08-16T07:55:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,128 | py | '''
Tools for computing topological features in Riemannian space.
Code taken from https://morphomatics.github.io/,
created by Felix Ambellan and Martin Hanik and Christoph von Tycowicz, 2021.
'''
import numpy as np
import numpy.random as rnd
import numpy.linalg as la
from scipy.linalg import logm, expm_frechet
from... | [
"islem.rekik@gmail.com"
] | islem.rekik@gmail.com |
5427bf1d7adba27512955184fcf4aba4b4460d85 | 877edb2612f11e86d77d500c6d141f54a0275c71 | /gdsctools/readers.py | 0c843db2da62217614efe446729027cae6b27793 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | shukwong/gdsctools | 7172cfc12efb1611efa3eb33c35616cb42af28d6 | 09c0e80cb755b09b8d92d01cb08679c880122d4c | refs/heads/master | 2021-01-21T10:04:36.069659 | 2017-02-01T09:53:06 | 2017-02-01T09:53:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,635 | py | # -*- python -*-
# -*- coding utf-8 -*-
# This file is part of GDSCTools software
#
# Copyright (c) 2015 - Wellcome Trust Sanger Institute
# All rights reserved
#
# File author(s): Thomas Cokelaer <cokelaer@gmail.com>
#
# Distributed under the BSD 3-Clause License.
# See accompanying file LICENSE.txt distributed... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
4d4bf41cfc6668556e18405c2b1da9e6f85f8787 | e0e96b8d26cd12c16a3e4a6265b6bceb11c4b1f0 | /17day/updtest.py | 2d6ca62c4a6dff1d92723fc2cea303250088b3cf | [] | no_license | superwenqistyle/2-2018python | 4419bc4ae4700e5b7839c4974106e03fc33e85f8 | 76e5ea72413abfa774ad61b3bdff76eba0c5e16c | refs/heads/master | 2020-03-13T11:08:50.860361 | 2018-05-22T11:17:39 | 2018-05-22T11:17:39 | 131,096,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from socket import *
from threading import Thread
from time import ctime
Id=""
port=0
updSocket=None
def send():
while True:
message=input("请输入内容:")
updSocket.sendto(message.encode("gb2312"),(Id,port))
def receive():
while True:
content=updSocket.recvfrom(1024)
print("%s-%s\n请输入内容:"%(content[0].decode("gb2... | [
"1623515120@qq.com"
] | 1623515120@qq.com |
1626df6646682430eb9d47c57614e0fc6c70476f | 194124b184101bbeb18c00482a1f60a6dd32eebf | /blog/migrations/0002_category.py | a811ab55f0b35be64c8208579dfff5eb7e36a19a | [] | no_license | fc-wsd/s4-instablog | 2fc758461f09fe124b28d86d29d4df429ef72040 | 8e38b07fe7dae0378fda228f2cfa7752f93254c9 | refs/heads/master | 2021-01-10T12:13:09.293036 | 2015-12-12T06:13:34 | 2015-12-12T06:13:34 | 45,733,935 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"kay@hannal.net"
] | kay@hannal.net |
abeeec02fe789c788714f86d5410f5b957b7b6c1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_276/ch49_2019_04_04_15_20_35_762666.py | 9d3cc6514e971164771488683d6fcc0b8efa07d7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | a = input('Digite um número inteiro positivo: )
lista = []
while a > 0:
lista.append(a)
print[ : :-1] | [
"you@example.com"
] | you@example.com |
01b828d2865b4a3207556680e892c62aa6f28e15 | 2b468b1d22ecc5668529255676a1d43936829074 | /codes/personal_backend/tuoen/abs/service/product/__init__.py | 43853f724363e33396251d2f10c21af53b191a1a | [] | no_license | MaseraTiGo/4U | 5ac31b4cccc1093ab9a07d18218c3d8c0157dc9c | f572830aa996cfe619fc4dd8279972a2f567c94c | refs/heads/master | 2023-07-26T09:44:21.014294 | 2023-07-13T03:43:34 | 2023-07-13T03:43:34 | 149,217,706 | 0 | 0 | null | 2020-06-05T20:38:16 | 2018-09-18T02:34:29 | Python | UTF-8 | Python | false | false | 3,304 | py | # coding=UTF-8
'''
Created on 2016年7月22日
@author: Administrator
'''
import hashlib
import datetime
import json
import random
from django.db.models import Q
from tuoen.sys.core.exception.business_error import BusinessError
from tuoen.sys.utils.common.split_page import Splitor
from model.models import ProductModel
f... | [
"344627181@qq.com"
] | 344627181@qq.com |
919890dfa27b2785488ab4ec815c2d7c9bf0faa7 | 9cac3bc1c61f4de32251072e49c50b0543450490 | /examples/find_available_seattlegeni_vessels.py | 412176990dffaec0800a9c6acb8ef925e3c14bd2 | [
"MIT"
] | permissive | SeattleTestbed/experimentmanager | 40b036028809fa77dcdec804d58853f679e326de | 31c52f35fba1e367b1177b3a95ae65b4dd0e1a1c | refs/heads/master | 2020-12-25T17:34:49.713296 | 2017-05-15T11:37:36 | 2017-05-15T11:37:36 | 20,136,879 | 0 | 5 | null | 2016-08-29T09:00:07 | 2014-05-24T18:43:36 | Python | UTF-8 | Python | false | false | 4,356 | py | """
This script will look up all active nodes that are part of a testbed managed
by SeattleGENI and determine which vessels on those nodes are available.
This information could be used in various ways, one of them being to gather
information about those node locations, such as latency from a certain
location, and decid... | [
"USER@DOMAIN"
] | USER@DOMAIN |
871588cf841884f7fc798cea219e466dad82e5ed | c123cb27fbb807acbc4a8bc6148e539dc8c3c3a3 | /view/Ui_CadastrePageReportDialog.py | bf2daf3ef71c709552d9ebe8c80c5b11dea33fb7 | [] | no_license | ankhbold/lm3_mgis | 0b1e5498adc3d556b7ea0656ae9fdc02c47fc0f7 | a2b4fbdcf163662c179922698537ea9150ba16e5 | refs/heads/master | 2020-08-06T20:17:49.049160 | 2019-10-08T05:35:05 | 2019-10-08T05:35:05 | 213,139,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,886 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\work\LAND_MANAGER\lm2\view\CadastrePageReportDialog.ui.'
#
# Created by: PyQt5 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf... | [
"aagii_csms@yahoo.com"
] | aagii_csms@yahoo.com |
4305a9232a81ce0a924a5bae10cd5e4b6444862a | 171a89102edf10901e18a2c0f41c3313608d2324 | /src/rogerthat/cron/send_unread_reminder.py | 2f76a5ae8ad60c5efdeacb4ee60c30ac0549458b | [
"Apache-2.0"
] | permissive | gitter-badger/rogerthat-backend | 7e9c12cdd236ef59c76a62ac644fcd0a7a712baf | ab92dc9334c24d1b166972b55f1c3a88abe2f00b | refs/heads/master | 2021-01-18T06:08:11.435313 | 2016-05-11T08:50:20 | 2016-05-11T08:50:20 | 58,615,985 | 0 | 0 | null | 2016-05-12T06:54:07 | 2016-05-12T06:54:07 | null | UTF-8 | Python | false | false | 834 | py | # -*- coding: utf-8 -*-
# Copyright 2016 Mobicage NV
#
# 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 o... | [
"bart@mobicage.com"
] | bart@mobicage.com |
25622946d4cc694e63901dc2980ec2fa9f1ae137 | 57c62abd33f8b508e357ca8631a160ce85a7f340 | /ggNtuplizer/test/crab_submit/jobs/FullXsection_GJets_HT-400To600_TuneCP5_13TeV-madgraphMLM-pythia8/crab_FullXsection_GJets_HT-400To600_TuneCP5_13TeV-madgraphMLM-pythia8.py | 4470aec7aea4019d8df76db06409c83c17dfeaf4 | [] | no_license | jainshilpi/aNTGC_ggNtuplizer | 8973ce3cdab293317fd928679b14038f03c10976 | 7153d73fbee35969dad0d85c6517e577a0546566 | refs/heads/master | 2022-09-18T07:39:40.246699 | 2020-04-20T13:03:20 | 2020-04-20T13:03:20 | 267,979,045 | 1 | 1 | null | 2020-05-30T00:09:36 | 2020-05-30T00:09:36 | null | UTF-8 | Python | false | false | 2,178 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
import sys
config = config()
#**************************submit function***********************
from CRABAPI.RawCommand import crabCommand
from CRABClient.ClientExceptions import ClientException
from httplib import HTTPException
def submit(config):
t... | [
"abrar.discloses@gmail.com"
] | abrar.discloses@gmail.com |
1cdc35d465e2d36f6b9dbcee0ccaa1c9a68fe7fd | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_24852.py | 0c27ea11820885c9563e4852cbe27378470e68f3 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,839 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
f806b32b55a9145c4c04c121ccedc5edfff7e060 | 632d7759536ed0726499c2d52c8eb13b5ab213ab | /Data/Packages/mdpopups/tests/validate_json_format.py | 0afbb2d170664281507ba611c0927e38799d1ae9 | [
"MIT"
] | permissive | Void2403/sublime_text_3_costomize | e660ad803eb12b20e9fa7f8eb7c6aad0f2b4d9bc | c19977e498bd948fd6d8f55bd48c8d82cbc317c3 | refs/heads/master | 2023-08-31T21:32:32.791574 | 2019-05-31T11:46:19 | 2019-05-31T11:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,661 | py | """
Validate JSON format.
Licensed under MIT
Copyright (c) 2012-2015 Isaac Muse <isaacmuse@gmail.com>
"""
import re
import codecs
import json
RE_LINE_PRESERVE = re.compile(r"\r?\n", re.MULTILINE)
RE_COMMENT = re.compile(
r'''(?x)
(?P<comments>
/\*[^*]*\*+(?:[^/*][^*]*\*+)*/ # mu... | [
"guan2296107714@126.com"
] | guan2296107714@126.com |
dede3dc0563b1336d20fdf7f164822132c1bf9be | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /homeassistant/components/zha/climate.py | 9f999bd52fa561f770e24b9319954d8356a8b231 | [
"Apache-2.0"
] | permissive | konnected-io/home-assistant | 037f12c87bb79e19220192eb918e49db1b1a8b3e | 2e65b77b2b5c17919939481f327963abdfdc53f0 | refs/heads/dev | 2023-05-11T08:57:41.891518 | 2023-05-07T20:03:37 | 2023-05-07T20:03:37 | 109,931,626 | 24 | 10 | Apache-2.0 | 2023-02-22T06:24:01 | 2017-11-08T05:27:21 | Python | UTF-8 | Python | false | false | 29,742 | py | """Climate on Zigbee Home Automation networks.
For more details on this platform, please refer to the documentation
at https://home-assistant.io/components/zha.climate/
"""
from __future__ import annotations
from datetime import datetime, timedelta
import functools
from random import randint
from typing import Any
f... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
e191dcd55943188856e0aa6d20abcb3ae22cd4d2 | c5698844e4c5cd6428d25f5a97a2f4ad069df251 | /twitter/publicar desde python/read.py | a394d4c896e493b5d9f689dc1751a7b77d468356 | [] | no_license | jrartd/Python-tools | 1ade026dcc9b3987bb7a6af130403895a8456d3c | 361031a2d108e048d267bf386a8a703359a81321 | refs/heads/master | 2022-12-21T23:38:53.038535 | 2018-02-09T18:18:10 | 2018-02-09T18:18:10 | 114,409,529 | 0 | 1 | null | 2022-12-12T09:18:07 | 2017-12-15T20:41:15 | HTML | UTF-8 | Python | false | false | 458 | py | from twitter import *
access_token = "712533602102284288-QGxqYcFiQlGZGTaoNIgHgq2KZxqZeeH"
access_token_secret = "rlH5ItRHtlguzChQbIvLDo1yYCu47liEtq8fdVgeOZpb9"
consumer_key = "VWe4b0p7vRcVS06gbJyS83dIS"
consumer_secret = "PjkoSJ4YxPXo4V9Uk7bazq4y507e6zBr96q7u2OlJeP1aVZd7w"
texto_tweet = input("Ingrese el texto a twitt... | [
"you@example.com"
] | you@example.com |
a1590dd5a7d854d633c6cc4a59cd757b06b26e95 | 84c4474a88a59da1e72d86b33b5326003f578271 | /saleor/graphql/app/mutations/app_retry_install.py | 64faee9ee45caa39c2e77961854e66c1815f20c1 | [
"BSD-3-Clause"
] | permissive | vineetb/saleor | 052bd416d067699db774f06453d942cb36c5a4b7 | b0d5ec1a55f2ceeba6f62cf15f53faea0adf93f9 | refs/heads/main | 2023-07-20T02:01:28.338748 | 2023-07-17T06:05:36 | 2023-07-17T06:05:36 | 309,911,573 | 0 | 0 | NOASSERTION | 2020-11-04T06:32:55 | 2020-11-04T06:32:55 | null | UTF-8 | Python | false | false | 2,274 | py | import graphene
from django.core.exceptions import ValidationError
from ....app import models
from ....app.error_codes import AppErrorCode
from ....app.tasks import install_app_task
from ....core import JobStatus
from ....permission.enums import AppPermission
from ....webhook.event_types import WebhookEventAsyncType
f... | [
"noreply@github.com"
] | vineetb.noreply@github.com |
0573b6563ad45c09808049f4fdd2f87ff082fce9 | ba157236151a65e3e1fde2db78b0c7db81b5d3f6 | /String/longest_group_positions.py | f01ef3284224992f2d915fed2ff79a7296bfda75 | [] | no_license | JaberKhanjk/LeetCode | 152488ccf385b449d2a97d20b33728483029f85b | 78368ea4c8dd8efc92e3db775b249a2f8758dd55 | refs/heads/master | 2023-02-08T20:03:34.704602 | 2020-12-26T06:24:33 | 2020-12-26T06:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | class Solution(object):
def largeGroupPositions(self, s):
ans = []
i = 0
for j in range(len(s)):
if j == len(s) - 1 or s[j] != s[j+1]:
if j-i+1 >= 3:
ans.append([i,j])
i = j+1
return ans
"""
:type s: str
... | [
"spondoncsebuet@gmail.com"
] | spondoncsebuet@gmail.com |
ed83b8b9465e7789fbdf5342d12e6863ef98a36d | ab79ca83f97aff1f5e00d46781e0355b8e26b4c7 | /LogTranslation/SurveyMode.py | 32758c98925e9a4ab2306d4f3422dfbebcbe5061 | [] | no_license | AngusGLChen/LearningTransfer | d966ece2b94b3287f7cf0468ae7afd9591c64d99 | 956c9a9e557deb959b26ae42fb46eba38fb417dd | refs/heads/master | 2021-01-19T06:42:47.967713 | 2016-06-20T19:18:09 | 2016-06-20T19:18:09 | 61,573,656 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,461 | py | '''
Created on Jul 27, 2015
@author: Angus
'''
import os,re
from sets import Set
def survey_mode(path):
files = os.listdir(path)
course_id = ""
id_map = {}
response_id_set = set()
# Output survey_description table
survey_description_path = os.path.dirname(os.path.dirname(o... | [
"angus.glchen@gmail.com"
] | angus.glchen@gmail.com |
2a947f6dde626fc5c7a608db41b0b51fbd6eafdb | 8d5ba6747531cbd43d63d32265fd608f9081c3b7 | /.venv/lib/python2.7/site-packages/indico/core/db/sqlalchemy/custom/unaccent.py | b4838177828f13481121fa0984a94d46e9307b19 | [] | no_license | Collinsnyamao/indico | 0e433b78803afae5b1ac90483db1f3d90ce2fddb | 32adf8123e266eb81439b654abc993b98e0cd7f2 | refs/heads/master | 2020-03-18T04:55:40.386595 | 2018-06-02T13:45:47 | 2018-06-02T13:45:47 | 134,314,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,436 | py | # This file is part of Indico.
# Copyright (C) 2002 - 2018 European Organization for Nuclear Research (CERN).
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (a... | [
"collins.nyamao@strathmore.edu"
] | collins.nyamao@strathmore.edu |
6371e03f7e86aed6d39e751ba81d7471c80155ef | 7d2f933ed3c54e128ecaec3a771817c4260a8458 | /venv/Lib/site-packages/requests/packages/urllib3/__init__.py | f669e1f517d93579a48a00c7ca81b40ac6d206c5 | [] | no_license | danielmoreira12/BAProject | c61dfb1d0521eb5a28eef9531a00e744bfb0e26a | 859f588305d826a35cc8f7d64c432f54a0a2e031 | refs/heads/master | 2021-01-02T07:17:39.267278 | 2020-02-25T22:27:43 | 2020-02-25T22:27:43 | 239,541,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | # urllib3/__init__.py
# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
#
# This module is part of urllib3 and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
urllib3 - Thread-safe connection pooling and re-using.
"""
__author__ = 'Andrey Petrov (a... | [
"danielmoreira12@github.com"
] | danielmoreira12@github.com |
f48b6acd7862cead47ba1fafc6a3ebd6557b73be | 303bac96502e5b1666c05afd6c2e85cf33f19d8c | /solutions/python3/993.py | d918d769447829914b6898f916ac2d314071b6a7 | [
"MIT"
] | permissive | jxhangithub/leetcode | 5e82f4aeee1bf201e93e889e5c4ded2fcda90437 | 0de1af607557d95856f0e4c2a12a56c8c57d731d | refs/heads/master | 2022-05-22T12:57:54.251281 | 2022-03-09T22:36:20 | 2022-03-09T22:36:20 | 370,508,127 | 1 | 0 | MIT | 2022-03-09T22:36:20 | 2021-05-24T23:16:10 | null | UTF-8 | Python | false | false | 430 | py | class Solution:
def isCousins(self, root: TreeNode, x: int, y: int) -> bool:
def dfs(node, parent, depth, mod):
if node:
if node.val == mod:
return depth, parent
return dfs(node.left, node, depth + 1, mod) or dfs(node.right, node, depth + 1, mo... | [
"cenkay.arapsagolu@gmail.com"
] | cenkay.arapsagolu@gmail.com |
869d4de40b4774adacf3db6705df1c3d7a5ab419 | cb2411c5e770bcdd07b170c2bc07f5e0cc72fc86 | /Greedy/55. Jump Game.py | 6ad22c17c7c535c3c1f269e0caf4426d60a13b2f | [] | no_license | roy355068/Algo | f79cf51662832e33664fc1d2479f79405d586e2e | 14febbb5d8504438ef143678dedc89d4b61b07c9 | refs/heads/master | 2021-05-11T04:32:11.434762 | 2018-01-30T00:01:26 | 2018-01-30T00:01:26 | 117,941,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | # Given an array of non-negative integers, you are initially positioned at the first index of the array.
# Each element in the array represents your maximum jump length at that position.
# Determine if you are able to reach the last index.
# For example:
# A = [2,3,1,1,4], return true.
# A = [3,2,1,0,4], return fal... | [
"bochengl@andrew.cmu.edu"
] | bochengl@andrew.cmu.edu |
add36c49f08156fa9f65d5e079441f0e3c7f56f7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03168/s086851558.py | 7143c7be26364089fb75fade50516b0a34c2696e | [] | 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 | 511 | py | import sys
def input(): return sys.stdin.readline().rstrip()
def main():
n=int(input())
P=list(map(float,input().split()))
dp=[[0]*(n+1) for _ in range(n)]#コインi(0-)までで,j枚が表
dp[0][0]=1-P[0]
dp[0][1]=P[0]
for i in range(1,n):
for j in range(i+2):
if j==0:
dp[i][... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7d442a07bfb8f720507da67a316b7bfbddefbabe | e29b450bf924b983023db41a0cdea97cde129880 | /reversible/sinkhorn.py | da994a5c781f3dbf5244c34a45a3d33e8ec14a12 | [] | no_license | afcarl/generative-reversible | b9efedad155d9c08f0f299f0b861ff6ff53607cf | e21b0846c654e0e041562f715bc5ddd90dde0e07 | refs/heads/master | 2020-03-21T03:29:34.655671 | 2018-05-26T18:53:54 | 2018-05-26T18:53:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py | import torch as th
from reversible.gaussian import get_gauss_samples
from reversible.util import log_sum_exp, ensure_on_same_device, var_to_np
def sinkhorn_to_gauss_dist(outs, mean, std, **kwargs):
gauss_samples = get_gauss_samples(len(outs), mean, std)
return sinkhorn_sample_loss(outs, gauss_samples, **kwar... | [
"robintibor@gmail.com"
] | robintibor@gmail.com |
89f7995781d60bb6ec3ed228079f873bf72f7ce1 | f47df27f960b3c5abebf16145026d20fc81f062b | /dheeranet/views/home.py | 9d2568894366f760bc5e482240240503dcf65e9a | [] | no_license | dheera/web-dheeranet | 34eec0591872d01afd441ce97a4853c95fde18a8 | 1faceb4d54d91ae1b7ee3f7e449ee3f224600b08 | refs/heads/master | 2021-01-22T06:32:12.403454 | 2017-04-10T20:55:33 | 2017-04-10T20:55:33 | 20,196,792 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | from flask import Blueprint, render_template, abort, request
from jinja2 import TemplateNotFound
from dheeranet import static_bucket
from dheeranet.cache import s3_get_cached
import json, datetime
home = Blueprint('home', __name__,template_folder='../template')
@home.route('/')
def show():
home_items = json.loads(s... | [
"dheera@dheera.net"
] | dheera@dheera.net |
c2ad9a49e4e23ffa98d960a2818b4175b1dece93 | b5029b5710f72010690c5e57fe5c045dcff2701c | /books_authors_app/migrations/0001_initial.py | 9f233b82732ee72e3c171a7a7c24c182c0d25b6d | [] | no_license | Jallnutt1/first_django_project | 2d059ed815227cf5c72af67e4e4074e95edf1508 | 200b98623292e806a407badf1cb9311e25bd561d | refs/heads/main | 2023-04-04T00:50:19.183891 | 2021-04-13T18:56:03 | 2021-04-13T18:56:03 | 357,659,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | # Generated by Django 2.2 on 2021-04-09 00:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
('id', models.AutoField(aut... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
4c9afb7f1a1c3156c3c0e419a9d664957618cf06 | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pygments/lexers/theorem.py | ec55a32ea39569297ed9647deaf213b073c5d5f6 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 19,507 | py | """
pygments.lexers.theorem
~~~~~~~~~~~~~~~~~~~~~~~
Lexers for theorem-proving languages.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, default, words
from pygments.token import Text... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
d0fa78d37064bf03251c9c6edf18a378195106d5 | 6196bd8f9226042b4c8e171313e273d1875c3ee4 | /up_down_chain/up_down_chain/app/Subseribe/migrations/0002_bidsusersetting_mid.py | d2f23630662918aa99b11057208f625ad32ce97c | [] | no_license | wang18722/Up_down_chain | 87230f057dadea95ab8b2760ca756afe00675b26 | 3c18d5d5727db1562438edea66ef15f54b378e33 | refs/heads/master | 2022-12-27T09:04:49.976753 | 2019-07-01T01:19:12 | 2019-07-01T01:19:12 | 225,579,284 | 0 | 0 | null | 2022-12-08T01:23:21 | 2019-12-03T09:22:22 | Python | UTF-8 | Python | false | false | 694 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-06-24 05:29
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrati... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
2770b1389482e8828867d97a6aa1bf0489db3e64 | 4fc86f5c444f52619f9f748c9bad5bf3e0e2c0b2 | /megatron/checkpointing.py | ddada534b7786ee8a8fd8062495fd8c81ab1ff93 | [
"MIT",
"Apache-2.0"
] | permissive | Xianchao-Wu/megatron2 | 95ea620b74c66e51f9e31075b1df6bb1b761678b | f793c37223b32051cb61d3b1d5661dddd57634bf | refs/heads/main | 2023-08-17T03:42:31.602515 | 2021-09-24T05:12:00 | 2021-09-24T05:12:00 | 330,527,561 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,103 | py | # coding=utf-8
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | [
"wuxianchao@gmail.com"
] | wuxianchao@gmail.com |
2ab9c6aae658796991d04ae8393361738813a7fb | b6233af6a39e7ab500743d6b2ac7d52f68ae3be2 | /15/00/2.py | b738c43f76091d7e37910b5e9ab030f6c459d903 | [
"CC0-1.0"
] | permissive | pylangstudy/201712 | 9754526e1d8f1c0519fcce98bc7df803f456cc4e | f18f1251074729c4a3865b113edc89ec06b54130 | refs/heads/master | 2021-09-02T06:08:08.278115 | 2017-12-30T23:04:55 | 2017-12-30T23:04:55 | 112,670,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import socket, array
def send_fds(sock, msg, fds):
return sock.sendmsg([msg], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, array.array("i", fds))])
| [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
2245d137d3c96c0d0184ca4ce3a2b2930945227a | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201124125236.py | 70a66f359a9f8e8b4fff11e3efb6146fd18c69f7 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.db import models
from wagtail.contrib.forms.models import AbstractEmailForm
# Create your models here.
class NewsPage(AbstractEmailForm):
te | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
fdf3d2f3fa34b5f31a1a475f8b88058eb6fae21b | bff20a295661ddf2900a2777165f9b4bdfb5656b | /caffe2/python/operator_test/sequence_ops_test.py | 7afca6bdc0524fae9ad0460ff8998981fda678f4 | [
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | wangxu823/caffe2 | cc8ba41abacb36dd5ebb1c4ed68aaae6d43dd91f | 0a68778916f3280b5292fce0d74b73b70fb0f7e8 | refs/heads/master | 2021-04-04T11:29:54.224522 | 2016-08-09T23:22:45 | 2016-08-09T23:22:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,548 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import hypothesis.strategies as st
import numpy as np
from func... | [
"jiayq84@gmail.com"
] | jiayq84@gmail.com |
c3e593a11fa780431165c332212fd8a39a54f02a | 0f968baea4554519043c3ed4d1464fe4c64d592f | /src/mesh/deep/__init__.py | 2d81c12b5a07d5cf15b92582b6caa017185c5111 | [] | no_license | seantyh/OntoDeepLex | a50911edea9b3ce9f5997ecab327b4bb54783a00 | 89148884ff09710877d18d0a63da00a304060079 | refs/heads/master | 2023-01-22T23:23:35.653260 | 2020-11-23T13:14:22 | 2020-11-23T13:14:22 | 257,922,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | from .tensor_utils import BertService
from .vocab import VocabZhTw | [
"seantyh@gmail.com"
] | seantyh@gmail.com |
d85e0b393ae8d8ee90e85e1f7704da446a52d993 | 5e9eba022385185a2c84d60fffe6cdf04421ed1b | /academicos/views.py | e44f4be6e8ae947cd6a615b5209a4e6d14064e29 | [] | no_license | lizceth/proyecto-eventos | 4a6de50ee7ae7705fb7a81cb4fdbdbe2c9ed9516 | b408149a463d130da72bb555237814cc5bb2dbfa | refs/heads/master | 2020-06-02T18:21:08.415503 | 2014-10-14T22:35:26 | 2014-10-14T22:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,361 | py | from django.contrib.auth.models import User
from django.shortcuts import render, render_to_response, get_object_or_404
from academicos.models import Coordinador, Escuela, Facultad
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from asistentes.models import Persona
... | [
"shanny.liz13@gmail.com"
] | shanny.liz13@gmail.com |
44325715254c5869560d81e2367ac008235b3da6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /r9y4yrSAGRaqTT7nM_21.py | 1ca7a31c9dbf3fb55b5622f3aa279dfb1fc15050 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py |
find_missing=lambda l:sum(range(len(min(l,key=len)),len(max(l,key=len))+1))-sum(len(x)for x in l)if l and all(l)else 0
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
25fba7312e0c89bdf77f6d597d2878f52fb8b372 | b7f1557e5a2ac164e59918efe3ac07f781699012 | /code/baseline/gen_result.py | 51d7c2fe3e27ce9a5fc0fe602528bc020e967593 | [] | no_license | aspnetcs/AT-CNN | 2dfeb1928df9521ac5a5c8f9bb8d082ad9237b2a | 46d1dfa599c186def93d48e1589b02f111a67599 | refs/heads/master | 2022-12-25T19:40:41.036715 | 2020-10-06T00:50:05 | 2020-10-06T00:50:05 | 299,809,649 | 0 | 0 | null | 2020-09-30T04:35:24 | 2020-09-30T04:35:24 | null | UTF-8 | Python | false | false | 11,444 | py | from utils import GetSmoothGrad, clip_and_save_single_img, clip_gradmap
import os
from cv2 import imwrite, imread
import argparse
import torch
import numpy as np
import torch
from utils import get_a_set
import torch.nn.functional as F
import torch.nn as nn
from dataset import create_test_dataset, create_train_dataset, ... | [
"1600012888@pku.edu.cn"
] | 1600012888@pku.edu.cn |
c5d9cf121b69761030d0050d73f56d251f3b3b8d | a57eb85856cc93a389b815276765a06019d6f8d4 | /manage.py | a187e1a5e09bc71ad51ec80483e4c11d9cced0d9 | [
"MIT"
] | permissive | astrofrog/multistatus | 205f6ad9a06995bc4b418f6d0de222c4dacfcb79 | f63042c9e85cb4e58e3768a65f4684be07e432d1 | refs/heads/master | 2021-01-10T21:05:40.370555 | 2014-12-09T10:24:48 | 2014-12-09T10:24:48 | 22,805,918 | 0 | 1 | null | 2014-12-09T10:23:13 | 2014-08-10T09:39:38 | Python | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python3.4
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "multistatus.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
10d541866288a328b07bc1a9602e1afcbb87583f | 994461efa08e71403b2a1c0598391fddf3b44b87 | /june-leetcoding-challenge/d5-random-pick-with-weight.py | 65d47a61d6766e106ff6b66178910de5a81e3489 | [] | no_license | pkdism/leetcode | 26f16f9211ddfdef8e0fe74c9268e6a48da64717 | 589652ae727331d1f962d22a020fc6ae09bfcea4 | refs/heads/master | 2020-12-11T15:48:01.116731 | 2020-08-16T18:31:03 | 2020-08-16T18:31:03 | 233,889,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | """
Given an array w of positive integers,
where w[i] describes the weight of index i,
write a function pickIndex which randomly picks an index in proportion to its weight.
"""
import random
class Solution:
def __init__(self, w: List[int]):
self.w = w
self.n = len(self.w)
self.arr = []
... | [
"pawan.dwivedi94@gmail.com"
] | pawan.dwivedi94@gmail.com |
488eedf2868298347e8fd761a86a7501687b5a22 | cc6e8b20a64940f2ad83be6a03134e8b105514e7 | /webviz/viz/migrations/0001_initial.py | 71fcb033e7e32232e310b0dfc022cfe73f08c521 | [
"MIT"
] | permissive | JagritiG/django-webviz | 50654c4fe76b1653f64e404c45d674d5d179e236 | 213489bb3a70019ca9cff5d127fd6d0c06bc61d6 | refs/heads/main | 2023-04-27T01:21:04.195996 | 2021-05-16T22:30:04 | 2021-05-16T22:30:04 | 353,126,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 3.1.7 on 2021-03-30 18:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Csv',
fields=[
('id', models.AutoField(auto... | [
"jagritigoswami84@gmail.com"
] | jagritigoswami84@gmail.com |
f197241de30622889b167ecb7dc068406820dbc8 | 6061ebee9fbce8eb5b48ed7ccd2aecb196156598 | /modulo07-funcoes/exercicios/exercicio04.py | 5ebbfcd3edf545e7ffdc636929ca0276708ef06c | [] | no_license | DarioCampagnaCoutinho/logica-programacao-python | fdc64871849bea5f5bbf2c342db5fda15778110b | b494bb6ef226c89f4bcfc66f964987046aba692d | refs/heads/master | 2023-02-24T11:45:29.551278 | 2021-01-26T22:02:49 | 2021-01-26T22:02:49 | 271,899,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | def aumento(numero, valor):
resultado = numero * valor / 100
return resultado + numero
resultado = aumento(100, 50)
print(resultado) | [
"campagnacoutinho67@gmail.com"
] | campagnacoutinho67@gmail.com |
b936c098695eb03ec4c9abb82e78537b33edc5f3 | b7a2a80843fa5141ffb9c7b4439f1d2ac713af30 | /UT2_Morsen.py | f0f71ad6765a17297467d402ad1566da64d52c4e | [] | no_license | wunnox/python_grundlagen | df1bc2b9b1b561bd6733ccc25305e799a48e714e | fa84d7aae7332a7acbb3ba7ff0fe2216cc345fc0 | refs/heads/master | 2023-05-01T12:19:23.208445 | 2023-04-16T11:29:01 | 2023-04-16T11:29:01 | 222,099,539 | 2 | 3 | null | 2019-12-19T10:56:43 | 2019-11-16T12:57:54 | Python | UTF-8 | Python | false | false | 450 | py | #!/usr/local/bin/python3
####################################################
#
# Uebung UT2_Morsen.py:
# Erstellen Sie ein Programm, welches anhand einer
# Morsetabelle einen Text in Morsecode ausgibt.
# Verwenden Sie hierzu das Modul UT2_Morsecodes.py
#
####################################################
import UT2... | [
"peter.christen@cssgmbh.ch"
] | peter.christen@cssgmbh.ch |
1c3ea9c37220f04f5ec059b8d964947f7d2508f6 | c31e69b763e1b52d3cefa4f5a49432ae966f22d0 | /day29/mySpider/mySpider/settings.py | 4e3e3faf4c4eeff43f7ccf6f99bfd3381a22506f | [] | no_license | lvah/201901python | cbda174a3c97bc5a2f732c8e16fc7cf8451522d2 | 7bffe04a846f2df6344141f576820730a7bbfa6a | refs/heads/master | 2022-12-13T09:49:29.631719 | 2019-04-06T09:48:33 | 2019-04-06T09:48:33 | 165,477,671 | 3 | 0 | null | 2022-12-08T04:57:01 | 2019-01-13T07:23:44 | HTML | UTF-8 | Python | false | false | 3,413 | py | # -*- coding: utf-8 -*-
# Scrapy settings for mySpider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"976131979@qq.com"
] | 976131979@qq.com |
f8bf11e12bc1581ed30ac99f941e2bf0f33f766b | 80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019 | /data/HackerRank-ProblemSolving/Counting Valleys.py | 8dd7bd82fe261f99bf7584a8856d457b1d55009b | [] | no_license | Ritvik19/CodeBook | ef7764d89b790e902ede5802f36d5ca910d8a50e | 2b4ed7938bbf156553d6ba5cba6216449528f0fc | refs/heads/master | 2021-07-04T08:25:52.478719 | 2020-08-08T06:54:14 | 2020-08-08T06:54:14 | 138,744,302 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | #!/bin/python3
import math
import os
import random
import re
import sys
def countingValleys(n, s):
count = 0
topography = 0
for _ in s:
if _ == 'D':
topography -= 1
else:
topography += 1
if topography == 0:
count += 1
return count
i... | [
"rastogiritvik99@gmail.com"
] | rastogiritvik99@gmail.com |
ffd754dfcd3f8ce81ed63d9d1957b3c012840687 | f63d8037abd95550bbf19820bbbf63fe004ea027 | /apps/auth/models.py | e887c3348f0f68c9ec65dc5781584c4c4638ab2f | [] | no_license | lsdlab/flask_socketio_celery | 6595e0fdc6534e4c3988b2e895194ba6f2302c53 | 84870110641feb8e49d9f45271894a66e202b7ec | refs/heads/master | 2020-03-24T20:54:47.793077 | 2018-08-01T04:33:54 | 2018-08-01T04:33:54 | 143,003,268 | 0 | 1 | null | 2018-08-24T01:54:32 | 2018-07-31T11:08:36 | Python | UTF-8 | Python | false | false | 2,521 | py | import datetime as dt
from flask_login import UserMixin
from apps.database import (Column, Model, SurrogatePK, db,
reference_col, relationship)
from apps.extensions import bcrypt
class Role(SurrogatePK, Model):
"""A role for a user."""
__tablename__ = 'auth_roles'
name = Colum... | [
"lsdlab@icloud.com"
] | lsdlab@icloud.com |
89588f1507285e3312add597434439152e7280fa | 7a3696072a511acc4974bb76004b315a35a106b7 | /SS-GCNs/SS-GMNN-GraphMix/GraphMix-clu/trainer.py | 0a339f94160ac998022247c886c38f0cec71a1bd | [
"MIT"
] | permissive | xyh97/graph_representation | 859e9f2ff911058db251fd6547098968960c6739 | e6967073a951cd029651389d4b76606f9cef7f6c | refs/heads/main | 2023-03-23T00:55:52.763740 | 2021-03-19T17:15:40 | 2021-03-19T17:15:40 | 343,223,074 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,909 | py | import math
import random
import numpy as np
import torch
from torch import nn
from torch.nn import init
from torch.autograd import Variable
import torch.nn.functional as F
from torch.optim import Optimizer
bce_loss = nn.BCELoss().cuda()
softmax = nn.Softmax(dim=1).cuda()
class_criterion = nn.CrossEntropyLoss().cuda()... | [
"xiangning@cs.ucla.edu"
] | xiangning@cs.ucla.edu |
fa3e535aaacaa3dafcb031f0333a8778da9d2e30 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/1531.py | 9246536e333923658ae3a6c8448940cb36f0d831 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | def check(x, mn, mx):
global pairs
pcheck = []
x = str(x)
if len(x) == 1:
pass
if len(x) == 2:
if x[0] != x[1]:
first = x[::-1]
if int(first) > int(x):
pcheck.append(int(first))
if len(x) == 3:
second = x[1:]+x[0]
third = x[-1]+x[0:-1]
if second != x and second[0] != '0' and in... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d44c38b442f4ea146ddaa3080d9f72ed2c617fa8 | 025c1cc826722d558d43854f3e319917e199d609 | /infra_macros/macro_lib/convert/container_image/compiler/compiler.py | 6cfddefcce8817aa2d14a9321c253ab846c2820a | [
"BSD-3-Clause"
] | permissive | martarozek/buckit | 73440be29a2ce64084016fc395a5a8cc9bc1e602 | 343cc5a5964c1d43902b6a77868652adaefa0caa | refs/heads/master | 2020-03-26T06:07:35.468491 | 2018-08-12T17:34:04 | 2018-08-12T17:45:46 | 144,590,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,345 | py | #!/usr/bin/env python3
'''
This is normally invoked by the `image_layer` Buck macro converter.
This compiler builds a btrfs subvolume in
<--subvolumes-dir>/<--subvolume-name>:<subvolume-version>
To do so, it parses `--child-feature-json` and the `--child-dependencies`
that referred therein, creates `ImageItems`, so... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3de5136de3696c4e49370d8ef3420a67e721f6b3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_149/82.py | 0c7ae5570829193e068ba4471f6d4bad7fb4b56a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #!/usr/bin/env python
import itertools
def solve(a):
ans=0
while a:
x=min(a)
i=a.index(x)
del a[i]
ans+=min(i,len(a)-i)
return ans
for t in xrange(1,1+int(raw_input())):
n=int(raw_input())
a=map(int,raw_input().split())
ans=solve(a)
print"Case #%d:"%t,
print ans
| [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8cfbe05b9aeb068e2eea79df986d823110f9c019 | 899bac17acf97252a33d91af076ff1f16b975210 | /eduiddashboard/scripts/decode_session.py | 787b570f274e635d56156b7461f3b6945ebfead4 | [] | no_license | isabella232/eduid-dashboard | 91a209f7833f26a7949cecec60df2e501a82f840 | 99cffaa90f41b13ec34f9d057f19630c644df6ee | refs/heads/master | 2023-03-16T05:19:36.184687 | 2018-07-27T12:27:53 | 2018-07-27T12:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # -*- coding: utf-8 -*-
import sys
import pprint
from pyramid.paster import bootstrap
from eduid_common.session.session import SessionManager
import logging
logger = logging.getLogger(__name__)
__author__ = 'ft'
"""
Read and decode a session from Redis. Supply the token (id starting with lower-case 'a')
from an ex... | [
"fredrik@thulin.net"
] | fredrik@thulin.net |
ea2f5c0278cf81ce6a961011b597677d80605caa | c6588d0e7d361dba019743cacfde83f65fbf26b8 | /x12/5030/240005030.py | e169346e38e95704c267b8fa6401b8abee37c150 | [] | no_license | djfurman/bots-grammars | 64d3b3a3cd3bd95d625a82204c3d89db6934947c | a88a02355aa4ca900a7b527b16a1b0f78fbc220c | refs/heads/master | 2021-01-12T06:59:53.488468 | 2016-12-19T18:37:57 | 2016-12-19T18:37:57 | 76,887,027 | 0 | 0 | null | 2016-12-19T18:30:43 | 2016-12-19T18:30:43 | null | UTF-8 | Python | false | false | 1,585 | py | from bots.botsconfig import *
from records005030 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'MZ',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 0, MAX: 99999, LE... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
c70a779cc10fd3ba3fe7aca2d9736f9bcb91c53f | d594f3926f6379ef7c382c608cb211f507240420 | /csunplugged/tests/utils/errors/test_ThumbnailPageNotFoundError.py | b73009b6a4421c213fecea7a8dec041baac543c4 | [
"LicenseRef-scancode-secret-labs-2011",
"MIT",
"OFL-1.1",
"LGPL-2.0-or-later",
"AGPL-3.0-only",
"CC-BY-4.0",
"Apache-2.0",
"BSD-3-Clause",
"CC-BY-SA-4.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | uccser/cs-unplugged | 0b9151f84dd490d5b90771a3706327a623d39edc | 363e281ff17cefdef0ec61078b1718eef2eaf71a | refs/heads/develop | 2023-08-25T08:45:29.833025 | 2023-08-22T02:58:35 | 2023-08-22T02:58:35 | 66,315,075 | 200 | 41 | MIT | 2023-09-14T02:15:40 | 2016-08-22T23:16:40 | Python | UTF-8 | Python | false | false | 958 | py | """Test class for ThumbnailPageNotFoundError error."""
from django.test import SimpleTestCase
from utils.errors.ThumbnailPageNotFoundError import ThumbnailPageNotFoundError
from unittest.mock import Mock
class ThumbnailPageNotFoundErrorTest(SimpleTestCase):
"""Test class for ThumbnailPageNotFoundError error.
... | [
"jackmorgannz@gmail.com"
] | jackmorgannz@gmail.com |
26a4deb38675a8c8a8ed12f89b75937b21c93aec | 62e240f67cd8f92ef41ce33dafdb38436f5a9c14 | /tests/parsers/bencode_parser.py | f012685073c77212fcc29cb216201a18d37e4779 | [
"Apache-2.0"
] | permissive | joshlemon/plaso | 5eb434772fa1037f22b10fa1bda3c3cc83183c3a | 9f8e05f21fa23793bfdade6af1d617e9dd092531 | refs/heads/master | 2022-10-14T18:29:57.211910 | 2020-06-08T13:08:31 | 2020-06-08T13:08:31 | 270,702,592 | 1 | 0 | Apache-2.0 | 2020-06-08T14:36:56 | 2020-06-08T14:36:56 | null | UTF-8 | Python | false | false | 839 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the Bencode file parser."""
from __future__ import unicode_literals
import unittest
from plaso.parsers import bencode_parser
# Register all plugins.
from plaso.parsers import bencode_plugins # pylint: disable=unused-import
from tests.parsers import test_l... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
3d82aea556022fc260397c29a753c5ffa68f69ad | 815f70b6a6e1c58676de2def893baf4f70b0f72c | /apps/restapi/twee/serializers/tip.py | 54ce2848966860f92faa422cc2ccd5e4a37a538b | [
"MIT"
] | permissive | adepeter/pythondailytip | ed6e25578f84c985eea048f4bc711b411cdc4eff | 8b114b68d417e7631d139f1ee2267f6f0e061cdf | refs/heads/main | 2023-05-30T11:07:57.452009 | 2021-06-11T13:42:19 | 2021-06-11T13:42:19 | 375,838,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from rest_framework import serializers
from ....twee.models import PythonTip
class TipSerializer(serializers.ModelSerializer):
class Meta:
model = PythonTip
fields = '__all__'
extra_kwargs = {
'tip': {
'max_length': 140
}
}
| [
"adepeter26@gmail.com"
] | adepeter26@gmail.com |
6f8c5602cdedb6aeec199294867b756d7b4aef58 | 372647ad5f8a40754116c2b79914708e46960aef | /ivi/agilent/agilentMSOX3024A.py | 612461f32a85d96ab8c7187f5deb332e6e19ab84 | [
"MIT"
] | permissive | edupo/python-ivi | 52392decb01bc89c6e1b42cbcbd1295a131e91f5 | 8105d8064503725dde781f0378d75db58defaecb | refs/heads/master | 2020-03-31T21:06:02.059885 | 2018-10-04T12:34:38 | 2018-10-04T12:34:38 | 152,567,486 | 0 | 0 | MIT | 2018-10-11T09:40:35 | 2018-10-11T09:40:32 | Python | UTF-8 | Python | false | false | 1,695 | py | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012-2016 Alex Forencich
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... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
ef082f9bb3bf1cae4397163bfce43ab59d77dfac | 90e6860b5370b742f01c0664ac84f14dc1272155 | /examples/helloZiggurat/src/ziggHello/models/zigguratTest/ZigguratTestBase.py | 6f82ebfb51611a2d85ce9a0b6f6c0667be506880 | [] | no_license | sernst/Ziggurat | e63f876b8f2cb3f78c7a7a4dcf79af810a540722 | 4ae09bbd9c467b2ad740e117ed00354c04951e22 | refs/heads/master | 2021-01-17T07:20:17.138440 | 2016-05-27T14:27:43 | 2016-05-27T14:27:43 | 9,278,283 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # ZigguratTestBase.py
# (C)2013
# Scott Ernst
from ziggurat.sqlalchemy.ZigguratModelsBase import ZigguratModelsBase
#___________________________________________________________________________________________________ ZigguratTestBase
class ZigguratTestBase(ZigguratModelsBase):
"""A class for..."""
#=============... | [
"swernst@gmail.com"
] | swernst@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.