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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64d3ee1b2b63bf47956a16eb239dd218474a9fad | 1a55572a16c3e34c72630043af7ab3d05bafae8c | /Celery/celery_with_django/mysite/core/tasks.py | 877830411a479b583d31addcbbe10ff041244a19 | [] | no_license | Wald-K/Technologies | 1e2720a05083ba24da3d1761088d0cab4a6e9658 | 8cc2b27fbe5e6c860342fd46b251680899d111bb | refs/heads/master | 2023-01-12T14:11:29.204133 | 2021-01-25T21:54:45 | 2021-01-25T21:54:45 | 196,719,173 | 0 | 0 | null | 2023-01-07T20:03:47 | 2019-07-13T12:28:18 | Python | UTF-8 | Python | false | false | 581 | py | import string
import time
from django.contrib.auth.models import User
from django.utils.crypto import get_random_string
from celery import shared_task
@shared_task
def create_random_user_accounts(total):
for i in range(total):
username = 'user_{}'.format(get_random_string(10, string.ascii_letters))
... | [
"1000druid@gmail.com"
] | 1000druid@gmail.com |
0e8291c913d42d6d47aa129d4403133d044afa4f | ac216a2cc36f91625e440247986ead2cd8cce350 | /go/src/infra/tools/vpython/testdata/test_requests_get.py | f36999bde734744de8ae72fa434816c8ed2cfa45 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 544 | py | # Copyright 2017 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 cryptography
import requests
SITE = 'https://www.google.com'
print 'Using requests version:', requests.__version__
print 'Using cryptography version... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
e0190ff61f2aabbb5624403696f355f6c20c9987 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_unifies.py | 6a571fbebcd0b1f1afa793ee61d08959b4764e46 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py |
from xai.brain.wordbase.verbs._unify import _UNIFY
#calss header
class _UNIFIES(_UNIFY, ):
def __init__(self,):
_UNIFY.__init__(self)
self.name = "UNIFIES"
self.specie = 'verbs'
self.basic = "unify"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
80c9278d853e0dae42d1405cbe2fdc3c938b0df3 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcemulticastmacrange_cc6bbd6d9c9c0e88f6e630afd3a84823.py | 09fd8e288e4cbb7a1e6c8a322287c74d41fefd37 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,198 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
5227f9d6b5eb4371104a5de1424d2bec42568366 | 59beef06efb305f1b39e85cfdfb69221241ff9df | /pororo/tasks/paraphrase_generation.py | 2225891c0cd3ddef948906807b8e8bda4a265419 | [
"Apache-2.0",
"BSD-3-Clause",
"HPND",
"MIT",
"ISC",
"Python-2.0",
"Unlicense",
"LicenseRef-scancode-secret-labs-2011",
"BSD-2-Clause"
] | permissive | saimishra/pororo | 747bb506f92b35a9da7e18f43e20d4954db5d985 | 1f61b331d07c22fb9e8ee051a5f6c0c91ae67062 | refs/heads/master | 2023-02-28T09:06:24.492863 | 2021-02-03T08:19:25 | 2021-02-03T08:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,253 | py | """Paraphrase Generation modeling class"""
from typing import Optional
from pororo.tasks.utils.base import PororoFactoryBase, PororoGenerationBase
from pororo.tasks.utils.download_utils import download_or_load
class PororoParaphraseFactory(PororoFactoryBase):
"""
paraphrase generation using Transformer Seq2... | [
"huffonism@gmail.com"
] | huffonism@gmail.com |
1b3221ba8ff6401dc3e95db960e66b8d4d2943ec | 17ca4c286c70277c626735bb7959e0fc08a8be1f | /start/editor/ActivityScriptExporter.py | 095c1f94a0c806a8992183245073dbbc2e0a3880 | [] | no_license | huazhicai/kidney | 6edae18eee63a8f71cb6cde3a070526192ecdcf1 | 87ec2bcc5929e641870ec89e08fbe1177748434e | refs/heads/master | 2022-11-10T20:59:42.970794 | 2020-04-29T01:39:09 | 2020-04-29T01:39:09 | 200,326,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,143 | py | # coding: utf-8
import os
import math
import csv
import re
import traceback
"""
NOTE: 预存数据的runTimeData仅支持以下几种类型
1. String -> string
2. Float -> float
3. Int -> int
4. None -> None
5. Vec3 -> (a, b, c) -> math3d.vector
这里使用tuple表示Vec3, 故tuple数据类型被占用
"""
# TODO: 数据校验
# TODO: const function 内敛
# TODO: Vec3
C... | [
"936844218@qq.com"
] | 936844218@qq.com |
6a75e330e912ea0b671c833906e68358aec70daf | 1cc54e191b9d6e4ea2a469b92da0f3ac8ccd84b0 | /tasks/post_session_check_sync_pulses.py | 435b760d75571b766963aac6ffca53126fef9006 | [
"MIT"
] | permissive | alejandropan/iblrig | 027c090dbe54b6ef2cbbf22c16ad60eb040ee949 | d8e746ccc52c2ad325404077ad2403e165e94d0c | refs/heads/master | 2020-04-28T11:45:36.182150 | 2019-06-12T01:38:06 | 2019-06-12T01:38:06 | 175,253,494 | 0 | 0 | MIT | 2019-05-28T01:34:28 | 2019-03-12T16:25:04 | Python | UTF-8 | Python | false | false | 2,085 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author: Niccolò Bonacchi
# @Date: Thursday, February 21st 2019, 7:13:37 pm
from pathlib import Path
import ibllib.io.raw_data_loaders as raw
import matplotlib.pyplot as plt
import numpy as np
import sys
def get_port_events(events: dict, name: str = '') -> list:
out:... | [
"nbonacchi@gmail.com"
] | nbonacchi@gmail.com |
7e7e0400ffe2834140e94109ce4329b16205fa98 | 3034e86347c71bf7e7af9e5f7aa44ab5ad61e14b | /pbase/day18/classMyList.py | 814391481cac5af7082c88e154e183db16732870 | [] | no_license | jason12360/AID1803 | bda039b82f43d6609aa8028b0d9598f2037c23d5 | f0c54a3a2f06881b3523fba7501ab085cceae75d | refs/heads/master | 2020-03-17T00:43:42.541761 | 2018-06-29T10:07:44 | 2018-06-29T10:07:44 | 133,127,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | class Mylist(list):
def insert_head(self,element):
self[0:0] = [element]
L = Mylist(range(5))
L.insert_head(-1)
print(L)
| [
"370828117@qq.com"
] | 370828117@qq.com |
ae28b288e8588b7a164a13119aebe56843af8a10 | 89a90707983bdd1ae253f7c59cd4b7543c9eda7e | /programming_python/Dstruct/OldIntro/stack3.py | e1a2711fb805383ddc41021d2bab73940be3a07f | [] | no_license | timothyshull/python_reference_code | 692a7c29608cadfd46a6cc409a000023e95b9458 | f3e2205dd070fd3210316f5f470d371950945028 | refs/heads/master | 2021-01-22T20:44:07.018811 | 2017-03-17T19:17:22 | 2017-03-17T19:17:22 | 85,346,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | class Stack:
def __init__(self):
self.stack = [] # initialize list
def push(self, object):
self.stack.append(object) # change in-place
def pop(self):
top = self.stack[-1] # top = end
del self.stack[-1] # delete in-place
return top
def empty(self... | [
"timothyshull@gmail.com"
] | timothyshull@gmail.com |
af15bb2708ac33286e3cd7ea1907e886af99d6d6 | 127fa3dd454434b4c7526afe161177af2e10226e | /2018校招真题/网易 操作序列.py | bfda124710b7fbdb1440fc50027fa803d3ac8b78 | [] | no_license | lunar-r/sword-to-offer-python | 966c46a8ddcff8ce5c95697638c988d83da3beab | fab4c341486e872fb2926d1b6d50499d55e76a4a | refs/heads/master | 2023-04-18T18:57:12.126441 | 2020-11-29T09:51:23 | 2020-11-29T09:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | # -*- coding: utf-8 -*-
"""
File Name: 网易 操作序列
Description :
Author : simon
date: 19-4-9
"""
def helper(nums):
if nums == [1]:
return [1]
return [nums[-1]] + helper(nums[:-1])[::-1]
"""
找规律 [nums[-1], nums[-3], ...., nums[-4],nums[-2]]
"""
def helper2(nums):
nums = nu... | [
"2711772037@qq.com"
] | 2711772037@qq.com |
a41a3904dfdcdee0e727b00a0ec2e8dfc1657f97 | 173e0aed80b0d0c01252dd2891be6967f60ce008 | /healthcare/api-client/v1/hl7v2/hl7v2_messages_test.py | 06ae20b41a350c427386f1d25cb88cd42f6f9ec2 | [
"Apache-2.0"
] | permissive | yuriatgoogle/python-docs-samples | a59298504c73d7f272637b033662d920dfcc314b | 9fb1bf82b447e920fe9b80564cc110d1e50f43ab | refs/heads/master | 2023-04-08T03:36:18.691386 | 2021-02-28T17:17:57 | 2021-02-28T17:17:57 | 337,138,011 | 1 | 0 | Apache-2.0 | 2021-02-28T17:17:58 | 2021-02-08T16:30:52 | Python | UTF-8 | Python | false | false | 7,415 | py | # Copyright 2018 Google LLC 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... | [
"noreply@github.com"
] | yuriatgoogle.noreply@github.com |
156fd1f615108a6a975110457e3f01ee5b5a7ca9 | c858d9511cdb6a6ca723cd2dd05827d281fa764d | /MFTU/lesson 2/practice_robot/robot-tasks-master/task_25.py | ed88ac2f39e4be1dd10bd7d1af830ef72db2fa21 | [] | no_license | DontTouchMyMind/education | 0c904aa929cb5349d7af7e06d9b1bbaab972ef95 | 32a53eb4086b730cc116e633f68cf01f3d4ec1d1 | refs/heads/master | 2021-03-12T11:15:02.479779 | 2020-09-17T08:19:50 | 2020-09-17T08:19:50 | 246,616,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/python3
from pyrob.api import *
@task
def task_2_2():
def chest():
fill_cell()
move_right()
fill_cell()
move_right()
fill_cell()
move_down()
move_left()
fill_cell()
move_up()
move_up()
fill_cell()
move_down(2)... | [
"tobigface@gmail.com"
] | tobigface@gmail.com |
5d9db594141e523299b132bb63b29929f1a35ebe | aeb2f0bb7b01f87a1b6c65b88b216bed47025fe5 | /experiment/model225_3.py | 89d3aacb28fc16f8f206203bc05a981c353f8a0e | [] | no_license | kurupical/riiid | 7e68239cd50243fbb734bf433d60ebd7469cb180 | 7bab580ce03d03873748a6afc91092c11871465f | refs/heads/master | 2023-03-30T04:15:54.109815 | 2021-04-04T01:20:33 | 2021-04-04T01:20:33 | 302,828,112 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 27,225 | py | import numpy as np
import pandas as pd
import gc
import random
from tqdm import tqdm
from sklearn.metrics import roc_auc_score
from sklearn.model_selection import train_test_split
import seaborn as sns
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torch.nn.utils.rnn as rnn_utils
from torc... | [
"kurupical@gmail.com"
] | kurupical@gmail.com |
17c14221dd22255ed751dc3f60dafc64a8e62399 | 01857ef455ea60eccaf03b5a9059ec83e9803c2e | /nicegui/tailwind_types/text_align.py | 476e196f84b46e2c187f30f1984c510e8a9430c5 | [
"MIT"
] | permissive | zauberzeug/nicegui | f08312cc1f393deca79e0e84a2506d3a35efff16 | c61b1315f29d51e26cc1168207f5616b302f8df0 | refs/heads/main | 2023-08-18T18:09:30.937322 | 2023-08-18T15:04:00 | 2023-08-18T15:04:00 | 365,250,183 | 5,128 | 271 | MIT | 2023-09-14T01:50:56 | 2021-05-07T13:55:05 | Python | UTF-8 | Python | false | false | 129 | py | from typing import Literal
TextAlign = Literal[
'left',
'center',
'right',
'justify',
'start',
'end',
]
| [
"falko@zauberzeug.com"
] | falko@zauberzeug.com |
462611dfa57951daafc012909847ccf8fa2f644e | 60c84d8dc4b30731193745bf0580584087efe337 | /examples/hello/hello.py | 53bd3f56564ec3d0888b59c23c85a01ffe0e0ee1 | [] | no_license | danse-inelastic/pyregui | f321917f6c0c955356d8b87f6466c3acddd5b194 | 3d7f90352361cbdbaa553002be6e810e84b3f44d | refs/heads/master | 2020-04-05T18:57:14.422685 | 2013-06-14T00:30:44 | 2013-06-14T00:30:44 | 34,145,791 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
from pyre.components.Component import Component
class hello(Component):
'A greeter that says "hello"'... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
95f1540887394030c26f2f55d4910567d0642e49 | 6dfa271fb41c9d4a1a74ce34c4bee252a2d86291 | /sympy/thirdparty/pyglet/pyglet/window/xlib/cursorfont.py | 16c5e740ecd81ff97be40c31104783842b690ad0 | [
"BSD-3-Clause"
] | permissive | gnulinooks/sympy | 7e4776cd1ea24bde56dbc17207611a9bc7523e50 | 46f63841f96cd025289b91ba9db3e261138d720a | refs/heads/master | 2016-09-10T18:56:49.556138 | 2009-04-05T14:10:49 | 2009-04-05T14:10:49 | 169,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2007 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
"ondrej@certik.cz"
] | ondrej@certik.cz |
733f9358c73617a8542ae58b5af6e60c4fd3b6da | 831fc9a25077345226874a103a46724a3906ddbe | /b_list/urls.py | 5b00c938cb3bbe4efe019852ead1926ef5a8a777 | [
"BSD-3-Clause"
] | permissive | softwareprojectPHD/b_list | a2f6c0890b0dbd348c77d62cdac81db69ea2e2c3 | 7efc5d15750b0fd366a40eef4794a0356f309327 | refs/heads/master | 2020-12-25T09:27:44.477238 | 2016-04-16T03:54:13 | 2016-04-17T03:58:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | """
Root URLconf.
"""
from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from blog.views import EntryArchiveIndex
from flashpolicies.views import no_access
# Redirect views which prevent an older URL scheme from 404'ing.
from . import views
urls = [
url(r'^... | [
"james@b-list.org"
] | james@b-list.org |
9c079ffee4a8446340856d6c9a3f18c21f3f77a0 | a81c1492783e7cafcaf7da5f0402d2d283b7ce37 | /google/ads/google_ads/v6/proto/errors/account_link_error_pb2.py | bcb4b476f4b191721a76ed542da5e88fb13651ea | [
"Apache-2.0"
] | permissive | VincentFritzsche/google-ads-python | 6650cf426b34392d1f58fb912cb3fc25b848e766 | 969eff5b6c3cec59d21191fa178cffb6270074c3 | refs/heads/master | 2023-03-19T17:23:26.959021 | 2021-03-18T18:18:38 | 2021-03-18T18:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,974 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v6/errors/account_link_error.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import ref... | [
"noreply@github.com"
] | VincentFritzsche.noreply@github.com |
03b546b952137e54723329d1559c8288fabd29d9 | 765189a475513378ae80c97faf38b99e3ce1dc28 | /algorithms/401-500/476.number-complement.py | 2a0252d82de04ee699e259e24f88bb2856487172 | [] | no_license | huilizhou/kemu_shuati | c8afc979f57634e066f6ce98da879cf1ed4e6b95 | 55b52cfff699aa71d92dd09d150ce71628b21890 | refs/heads/master | 2020-04-29T01:13:53.784665 | 2019-03-15T01:16:06 | 2019-03-15T01:16:06 | 175,723,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | class Solution(object):
def findComplement(self, num):
"""
:type num: int
:rtype: int
"""
# 人家的解法
# return 2 ** (len(bin(num)) - 2) - 1 - num
# # 我的解法
# z = bin(num)[2:]
# z1 = ''
# for i in z:
# if i == '1':
# ... | [
"2540278344@qq.com"
] | 2540278344@qq.com |
e2daf2c10b89897b95813eb9b9aa8cb2a7c61e8b | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_textbox04.py | 486daa245958fcdc1dee5ed14a655faaee774af2 | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,369 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
9c9914865de3c1df41c80e63a0c11656069a6471 | 0455bd20bfc0fdd9b8553d033891e5b31e2e9384 | /CrunchbaseInitial/CrunchbaseDataExtraction/AsianGendersNonEntrepreneurs.py | e278a5d1b35335d8f68f2f83f007fc2ada86f1e0 | [] | no_license | kyriacosar/LInC-Eclipse-Repository | a0419305b824d8adcab0d31ab71ce9e4e2307f22 | c480e071f9e571224e55983c3e9c6d0f70d0e511 | refs/heads/master | 2020-12-02T21:25:36.537787 | 2017-07-27T09:25:00 | 2017-07-27T09:25:00 | 96,314,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | '''
Created on Jul 11, 2017
@author: kyriacos
'''
import json
import math
if __name__ == '__main__':
e_file_in = open("../../../../Documents/Crunchbase Project Data/Microsoft/Crunchbase Results/Data Dictionaries/Crunchbase_Non_Entrepreneurs_FaceAttributes_Dictionaries.json", "r")
e_file_out = open("../../../... | [
"Kyriacos"
] | Kyriacos |
3468a788789a89e21d9f7bca64d58226d88bd41f | f329f3061e3a72b2562bb242dfe1a2ed07fe65f0 | /plugins/yongyou_zhiyuan_a6_app.py | b860deb6797eb3a2707688c9c7b7c34d87871b9e | [
"MIT"
] | permissive | ver007/getcms | 58263174355eb16bae95b74f6efaff5069b4ce56 | da03c07457abc266cacddc3ccd67126f0b03da3d | refs/heads/master | 2021-01-19T07:01:51.453626 | 2016-04-13T08:28:14 | 2016-04-13T08:28:14 | 56,134,430 | 0 | 0 | null | 2016-04-13T08:27:38 | 2016-04-13T08:27:38 | null | UTF-8 | Python | false | false | 164 | py | #!/usr/bin/env python
# encoding: utf-8
def run(whatweb, pluginname):
whatweb.recog_from_file(pluginname, "yyoa/common/js/javaSeesion.js", "f_showallCookie")
| [
"hackerlq@gmail.com"
] | hackerlq@gmail.com |
088f5a935085713d1f20c82d2f95e0ba31e9fc85 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/difference-of-squares/6bb2f99092244bb48dce2c00c19a804f.py | bad5f033d6a46058afa17473abbfba5fefc147e7 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,191 | py | # -*- coding: utf-8 -*-
from __future__ import division
def difference(n):
"""
differences(int) -> int
Return the difference between the square of the sums and the sums of the
squares up to n.
"""
return square_of_sum(n) - sum_of_squares(n)
def square_of_sum(n):
"""
square_of_sum(... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
87c0bb86ab7e49b7da4231abad6364ea302f122e | b5b1be6063901bd0bc97c3fbc2c26be1d02ce79e | /output/__init__.py | e9b0cb52d8081c4e39506efa55060fb586d86b77 | [] | no_license | dssg/rcra | ff566ff388596a733757e4de27631cbabdc7f15c | fcdd8f95c25902e46c55d85cbc4fe54196163f3d | refs/heads/master | 2021-06-11T13:09:01.686456 | 2017-02-24T05:19:51 | 2017-02-24T05:19:51 | 61,817,642 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from drain.data import FromSQL
facilities = FromSQL("""
select rcra_id, zip_code, dedupe_id as entity_id
from output.facilities
join dedupe.unique_map using (rcra_id)
""", tables=['output.facilities', 'output.handler_names'])
facilities.target=True
| [
"eric@k2co3.net"
] | eric@k2co3.net |
d14fb1d43dc3d360f35e8f8cf30463263d7b729e | 6944866ffa5b6899c812cbd06929cd29896f557d | /oauth_dropins/mastodon.py | 567dea787adeec4c951c61cbd9db7e18b92723d2 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | stedn/oauth-dropins | f7b329c69f79297dfc6f8060c10d2b069c5cb0a8 | afe5cc946e2d969a37d83e2a093195c1d5cf27db | refs/heads/master | 2021-05-23T15:56:22.354077 | 2020-03-27T17:40:51 | 2020-03-27T17:40:51 | 253,368,311 | 2 | 0 | Unlicense | 2020-04-06T01:31:32 | 2020-04-06T01:31:32 | null | UTF-8 | Python | false | false | 12,423 | py | """Mastodon OAuth drop-in.
Mastodon is an ActivityPub implementation, but it also has a REST + OAuth 2 API
independent of AP. Uh, ok, sure.
API docs: https://docs.joinmastodon.org/api/
Interestingly: as usual w/OAuth, they require registering apps beforehand...but
since AP and Mastodon are decentralized, there's no ... | [
"git@ryanb.org"
] | git@ryanb.org |
4a9e8aa14c6caaa64e388c73cf1955139791697f | 3a771b72dae1aae406b94726bcbcf73915577b18 | /q11.py | 7957ae29604c51312fee4b0a13e0a5bfe42decff | [] | no_license | SHANK885/Python-Basic-Programs | 4fcb29280412baa63ffd33efba56d9f59770c9dc | 157f0f871b31c4523b6873ce5dfe0d6e26a6dc61 | refs/heads/master | 2021-07-18T18:24:10.455282 | 2018-11-19T07:02:27 | 2018-11-19T07:02:27 | 138,009,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | '''
Question:
Write a program which accepts a sequence of comma separated 4 digit binary numbers as its input and then check whether they are divisible by 5 or not. The numbers that are divisible by 5 are to be printed in a comma separated sequence.
Example:
0100,0011,1010,1001
Then the output should be:
1010
Notes: As... | [
"shashankshekhar885@gmail.com"
] | shashankshekhar885@gmail.com |
4b817c90da1a1bf413b75b098e4e7aced20b4cdb | 8034442a9778043b1d886220a3c928327b6297d4 | /Case_rbm/vlan_bond/index.py | 2225ed51c99d287e815f12237d49525615f04bb8 | [] | no_license | wangqian0818/auto_test | 5efe6d7b41ff01e6a9f10211674f55e195484a1c | 803a485d9720f090f7fa5d4482092cc4e7d9aa73 | refs/heads/master | 2023-08-24T01:27:40.956398 | 2021-11-02T02:12:14 | 2021-11-02T02:12:14 | 367,355,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #coding:utf-8
from common import baseinfo
vlanCardid = str(baseinfo.gwVlanCardid)
vlanA = str(baseinfo.vlanA)
vlanB = str(baseinfo.vlanB)
#配置下发
#列表里面的顺序依次为:查询命令,预期结果
case1_step1={
"step1":[f"export cardid={vlanCardid}&&switch-jsac --set --module 12 --switch on",f"export cardid={vlanCardid}&&switch-jsac --get | grep ... | [
"wangqianjob0818@163.com"
] | wangqianjob0818@163.com |
beb8b556b8292e3e60a49a4dd5625d013750d1d7 | aa480d8b09dd7ad92c37c816ebcace24a35eb34c | /third-round/43.字符串相乘.py | cf3fd3f45529613e3a133392c58f55c8d88caa5a | [] | no_license | SR2k/leetcode | 7e701a0e99f9f05b21216f36d2f5ac07a079b97f | de131226159865dcb7b67e49a58d2ddc3f0a82c7 | refs/heads/master | 2023-03-18T03:37:02.916453 | 2022-09-16T01:28:13 | 2022-09-16T01:28:13 | 182,083,445 | 0 | 0 | null | 2023-03-08T05:44:26 | 2019-04-18T12:27:12 | Python | UTF-8 | Python | false | false | 1,634 | py | #
# @lc app=leetcode.cn id=43 lang=python3
#
# [43] 字符串相乘
#
# https://leetcode-cn.com/problems/multiply-strings/description/
#
# algorithms
# Medium (44.96%)
# Likes: 862
# Dislikes: 0
# Total Accepted: 205.5K
# Total Submissions: 457.8K
# Testcase Example: '"2"\n"3"'
#
# 给定两个以字符串形式表示的非负整数 num1 和 num2,返回 num1 和 ... | [
"luozhou.csy@alibaba-inc.com"
] | luozhou.csy@alibaba-inc.com |
1edb79a9fc5cdd76785d4f5fbdf777056346feff | 2bcc421ee345b00cf805c543b37d18b5d019dc04 | /adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/adafruit_io_simpletest.py | 13f48ce77609ae495c9aae8bea5cbbb6b5a5fc34 | [] | no_license | saewoonam/sc-current-source-titano | 5a1ad46889c1b09c168424901fd71cb4eab5c61b | 1c136aa8b61268d9ac0b5a682b30ece70ab87663 | refs/heads/main | 2023-03-02T22:12:26.685537 | 2021-02-09T03:28:01 | 2021-02-09T03:28:01 | 317,299,900 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,684 | py | # Example of using the Adafruit IO CircuitPython MQTT client
# to subscribe to an Adafruit IO feed and publish random data
# to be received by the feed.
#
# Example by Tony DiCola for Adafruit Industries
# Modified by Brent Rubell for Adafruit Industries, 2019
import time
from random import randint
import b... | [
"nams@nist.gov"
] | nams@nist.gov |
26903997659e0a6ffeafaf3ae4e966b68f912e5f | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/cms/djangoapps/contentstore/management/commands/update_course_outline.py | b3ba3bd289199b663c7d1951a01790bf3d31bc50 | [
"MIT",
"AGPL-3.0-only",
"AGPL-3.0-or-later"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 867 | py | """
Management command to create the course outline for a course. This is done
automatically when Studio publishes a course, but this command can be used to
do it manually for debugging, error recovery, or backfilling purposes.
Should be invoked from the Studio process.
"""
from django.core.management.base import Base... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
112fe187347b14db8e486b104480e002a756dd8c | 7ae32748fb910d2542e35c57543fc89f98cd2b1d | /tests/test_lib.py | e9e421020e8b554caa7f433988afc2ac71c66236 | [
"Apache-2.0"
] | permissive | sanjaymsh/dtfabric | 451c87d987f438fccfbb999079d2f55d01650b68 | 9e216f90b70d8a3074b2125033e0773e3e482355 | refs/heads/master | 2022-12-19T09:13:02.370724 | 2020-09-27T05:11:25 | 2020-09-27T05:11:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | # -*- coding: utf-8 -*-
"""Shared test case."""
from __future__ import unicode_literals
import os
import sys
import unittest
from dtfabric import reader
from dtfabric import registry
def skipUnlessHasTestFile(path_segments): # pylint: disable=invalid-name
"""Decorator to skip a test if the test file does not ex... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
51c55ec4d3adb87bc769bf5e76a5abfeeda74e4f | 9e567b8241ce00e9d53843f5aba11c4a119b079f | /tags/v0_5_2/toolkits/basemap/lib/matplotlib/toolkits/basemap/greatcircle.py | 2e205689bff14ecd1a2a0c9c1f4120bfd5ffb277 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-us-govt-public-domain",
"MIT"
] | permissive | neilpanchal/matplotlib | 3d2a7133e858c4eefbb6c2939eb3f7a328b18118 | 7565d1f2943e0e7b4a3f11ce692dfb9b548d0b83 | refs/heads/master | 2020-06-11T09:20:43.941323 | 2011-01-21T21:50:16 | 2011-01-21T21:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,660 | py | import numarray as N
import math
__version__ = '1.0'
class GreatCircle:
"""
formula for perfect sphere from Ed Williams' 'Aviation Formulary'
(http://williams.best.vwh.net/avform.htm)
code for ellipsoid posted to GMT mailing list by Jim Leven in Dec 1999
Version: %s
Contact: Jeff Whitak... | [
"(no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed"
] | (no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed |
7ff5ace33b7b5f94bd27e78e54a51bb4adfe7e97 | e58fcc1467ad81084b016d2a48d672d75da2c058 | /rdkit/Code/DataStructs/Wrap/testSparseIntVect.py | 3cc02547f6b0be4e87ec009699478e2eb5f412f7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ali1810/sol_heroku | 294375d70c656452749e959bfb851a50defc0e01 | 97b548ce7d864e6fed936c53b790c1dc8038cff2 | refs/heads/main | 2023-08-15T06:18:26.933254 | 2021-09-14T10:20:19 | 2021-09-14T10:20:19 | 405,223,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,585 | py | # $Id$
#
# Copyright (C) 2007,2008 Greg Landrum
#
# @@ All Rights Reserved @@
#
import os, sys
import io
import unittest
import pickle
from rdkit import RDConfig
from rdkit import DataStructs as ds
import random
def feq(v1, v2, tol=1e-4):
return abs(v1 - v2) < tol
class TestCase(unittest.TestCas... | [
"noreply@github.com"
] | ali1810.noreply@github.com |
f37b4202698b801244e4f37eb349143a2286421f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /070_oop/007_exceptions/_exercises/templates/GoCongr/035_warnings.py | 64f70487a6f6966148382366c83ea4f50b5aa248 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 682 | py | # # w____
# ________ w____
#
#
# ___ input_body_parameter name unit supposed_maximum
# parameter _ fl.. inp.. 'Enter your @ (in @): '.f.... n.. u...
# __ ? < _ 0:
# r____ V... n.. + ' cannot be negative')
# __ ? > s...
# w____.w... 'suspiciously large value of ' + n..
# r_ ?
#
#
# __... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
f6373c989bd22ce2c8959f9b63d9482b3dba981a | 271dbb5f0c23ae40f19a8df7dd3f15a44fbe5ae1 | /it-king/day01/while.py | 5c0bdb341ea377ada180d290ccf004639cd7d5df | [] | no_license | obligate/python3-king | a4d1c5c145c3b1c42efe059cf2bbd797d0b3c528 | 2b31400468c7a2621f29f24f82e682eb07c0e17d | refs/heads/master | 2020-05-02T11:45:16.218771 | 2019-03-27T08:05:39 | 2019-03-27T08:05:39 | 177,938,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | # Author: Peter
count = 0
while True:
print('count:', count)
count = count + 1
| [
"peter@tidebuy.net"
] | peter@tidebuy.net |
b0084b0539780db5582ce0d7f2cdd843f26384e9 | 6defeaa9e3eff61cd861c855ed2f65db2a457564 | /onmt/keyphrase/shrink_pred_files.py | b0f94a88ab0e0f5a110485f683a9c904dd885b63 | [
"MIT"
] | permissive | memray/OpenNMT-kpg-release | 50439d2a58d4499b3a4b1d1fdb586d266c4367e7 | d16bf09e21521a6854ff3c7fe6eb271412914960 | refs/heads/master | 2023-08-17T14:32:04.442881 | 2023-01-31T03:24:46 | 2023-01-31T03:24:46 | 213,238,221 | 222 | 34 | MIT | 2023-07-22T18:03:01 | 2019-10-06T20:23:17 | Jupyter Notebook | UTF-8 | Python | false | false | 6,961 | py | # -*- coding: utf-8 -*-
"""
Some pred files use up too much space, e.g. /zfs1/pbrusilovsky/rum20/kp/OpenNMT-kpg/output/keyphrase/meng17-one2seq/meng17-one2seq-kp20k-topmodels/meng17-one2seq-fullbeam/meng17-one2seq-beam50-maxlen40/pred/kp20k-meng17-verbatim_prepend-rnn-BS64-LR0.05-Layer1-Dim150-Emb100-Dropout0.0-Copytru... | [
"memray0@gmail.com"
] | memray0@gmail.com |
d4a331fd126d3de9e4c2126c8127d132a767d784 | 501176c17ecfda9fc2641c407b044b51364afa8e | /BootCamp/python/example/example.py | c4a02a67d17d6beae597df85db0c307a24e907bd | [] | no_license | melissa-koi/betterbuys | fcc6d6bfc1f37a644258d7bcf52eb93597674fd6 | edc40636c14ee341835bd8f77fd9ae91767b220a | refs/heads/main | 2023-05-26T13:59:59.503289 | 2021-06-10T05:35:43 | 2021-06-10T05:35:43 | 375,577,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | # import sys
#
# name = sys.argv[1]
# print("How old are you?")
# age = int(input())
#
# print(name)
# print(age)
# height = 69
# if height > 70:
# print("You are really tall")
# elif height > 60:
# print("You are of average height")
# else:
# print("You are really short")
# name = ""
# list_a = []
#
# if... | [
"melissawangui3@gmail.com"
] | melissawangui3@gmail.com |
2102df986d73ba8bded087840712c105503e1d9e | 1e660c91d0ae300ad6907a97941441fc8e73d5dc | /api/models/mixins.py | aa77a920c2b5911c3ee17653ec4e9346cb85c4ce | [] | no_license | SEUNAGBEYE/Stocky | 55d65e8ba7e7ff5228863e3c242c6499b2078ca7 | b2129b0a166a08d14c809cf4e0d711a7c469c91c | refs/heads/develop | 2023-02-23T11:26:46.160005 | 2019-04-01T04:11:06 | 2019-04-01T04:11:06 | 178,017,757 | 0 | 0 | null | 2023-02-07T22:21:11 | 2019-03-27T15:00:34 | Python | UTF-8 | Python | false | false | 2,735 | py | """Module for generic model operations mixin."""
from .config import db
class ModelMixin:
"""Mixin class with generic model operations."""
def save(self):
"""
Save a model instance
"""
db.session.add(self)
db.session.commit()
return self
def update_(self, ... | [
"agbeyeseun1@gmail.com"
] | agbeyeseun1@gmail.com |
aa0da87f9190e8296e72752194ba5b8957bb36fa | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/meetup/2b4a2462e86149f3a94264f7c35aef7a.py | ac0930b773da25cb6f1e91324fa9ea02ed62294a | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 614 | py | from calendar import monthrange
from datetime import date
def meetup_day(year, month, day_of_the_week, which):
month_length = monthrange(year, month)[1]
days_in_month = (date(year, month, day)
for day in range(1, month_length + 1))
candidates = [date_
for daye_ in days_in_month... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
5a3533fe380107f7a518cfd59cc2bc0bf7a77c6a | 7556542c8c6ae157542300ce45388a8cb0213edb | /cocitation/co-citation-finding.py | 7e0a03491b4cf421e14f206531faccb9b8550960 | [
"Apache-2.0"
] | permissive | hyyc116/Therapies_finding | 2229f567c157d17a7ed947d62a78d3487151540c | 1ee36190e5b85ac89d2836c67ab60c1168c3b1b0 | refs/heads/master | 2021-01-17T12:46:32.491077 | 2017-04-06T20:28:45 | 2017-04-06T20:28:45 | 84,074,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | #coding:utf-8
import sys
sys.path.append(".")
sys.path.append("..")
from tools.xml_parser import *
reload(sys)
sys.setdefaultencoding('utf-8')
import re
from collections import defaultdict
import json
#Get references
def parse_references_with_index(indexpath):
count =0
for path in open(indexpath):
coun... | [
"hyyc116@gmail.com"
] | hyyc116@gmail.com |
804d141858f3dc22514a6b54505eebf25a0e5c38 | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/pypi__tensorboard_1_12_1/tensorboard/plugins/image/images_plugin.py | 0f7921e81efab27bdfd237ae85d1b4f5e13351ae | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorboard_1_12_1/tensorboard/plugins/image/images_plugin.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
1487f463b36ac15949892d9d13ee5fa6dc48ad37 | c573cac75d4e34263fa29d3efccb76199be0af98 | /4/A.py | c3fa91a5b7637c8e587fb001b43db17bffc6807c | [] | no_license | se2313se/Ya.algorithms_training | b197a0d1f786b0a250de9420965f48436b92ca6a | c52a0ca53f8a807abc943fa60b5b178754118141 | refs/heads/main | 2023-06-08T23:03:40.853383 | 2021-06-24T17:21:07 | 2021-06-24T17:21:07 | 380,001,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | with open('input.txt', 'r', encoding='utf8') as f:
synonyms = dict()
n = int(f.readline())
for i in range(n):
tempWord, tempSynonyms = f.readline().split()
synonyms[tempWord] = tempSynonyms
synonyms[tempSynonyms] = tempWord
print(synonyms[f.readline().strip()])
| [
"71695356+se2313se@users.noreply.github.com"
] | 71695356+se2313se@users.noreply.github.com |
5f3b77b8ea7b33ecee62dff19499387e3da1e40e | 63f85ffae77a564ca296777b294ab3e4d2957ce9 | /tfSeq2SeqModels/decoders/transformer_decoder.py | 78583e920e9c7fd481e1b006c929fe6d30e9bc45 | [] | no_license | chenxinglili/eastonCode | 0c89789e2656b9236d773424973d933ac9045697 | 0334a41f6df7bb38a18a6918dfebd189c64395e8 | refs/heads/master | 2020-06-26T10:11:02.112948 | 2019-07-02T13:42:36 | 2019-07-02T13:42:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,892 | py | '''@file rnn_decoder.py
the while_loop implementation'''
import tensorflow as tf
import logging
from .rna_decoder import RNADecoder
from tfSeq2SeqModels.tools.utils import dense
from tfModels.tensor2tensor import common_attention
from ..tools.utils import residual, multihead_attention, ff_hidden
inf = 1e10
class T... | [
"yicheng1994@outlook.com"
] | yicheng1994@outlook.com |
15ebe1a3991b7c2926af485aac68c164facd7718 | adbf09a31415e6cf692ff349bd908ea25ded42a8 | /widgets/hello.py | 1f431dbfab5106918d3f455f654bdbbf17576618 | [] | no_license | cmulliss/gui_python | 53a569f301cc82b58880c3c0b2b415fad1ecc3f8 | 6c83d8c2e834464b99024ffd8cf46ac4e734e7a4 | refs/heads/main | 2023-08-12T22:33:01.596005 | 2021-10-11T12:35:41 | 2021-10-11T12:35:41 | 408,176,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import tkinter as tk
from tkinter import ttk
# main window is going to be called root
# Tk is creating an object, the main window
# .pack() puts the text into the window
root = tk.Tk()
root.title("hello World")
ttk.Label(root, text="Hello World", padding=(30, 10)).pack()
# tells it to start running and continues until... | [
"cmulliss@gmail.com"
] | cmulliss@gmail.com |
79060db8148d189e49d71a2fcde2a58110cad683 | d4f05d51568bfda9fb964deba92d9fd599a3dcde | /desing_pattern/factory_method/idcard.py | d696179da0e2206fdb2814b3f87a9e6356415882 | [] | no_license | Fullmoon8507/PythonPracticeProject | 44beba7ce783e5e22429516d39ee96adc1ead785 | 57454099ad67bfe4431ee997fada640fde6ccecc | refs/heads/master | 2020-04-16T23:29:58.907552 | 2017-05-06T07:27:35 | 2017-05-06T07:27:35 | 53,178,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from product import Product
class IDCard(Product):
def __init__(self, owner):
self.__owner = owner
print(self.__owner + 'のカードを作成します')
def use(self):
print(self.__owner + 'のカードを使います')
def get_owner(self):
return self.__owner
| [
"you@example.com"
] | you@example.com |
8a4d5bed883776ebcd3fcc904288d9add338fef0 | 584f7b51d7cd529448e2fc0147557e26931ab17e | /test_Begin_dtype.py | 94c25b201a1b4bb74e965f1d89a9301ac63f4647 | [
"BSD-3-Clause"
] | permissive | opticspy/lightpipes | 8ca0d2221a1b893de5e51fec9061e90b9145f5f8 | f4ffdedb3ab2f9b5ae5a9a8e37985d2a7f8bb2ef | refs/heads/master | 2023-09-04T19:07:11.376631 | 2023-09-04T15:24:55 | 2023-09-04T15:24:55 | 80,127,706 | 191 | 55 | BSD-3-Clause | 2023-08-23T00:45:33 | 2017-01-26T15:39:28 | Python | UTF-8 | Python | false | false | 572 | py | #! /usr/bin/env python
"""
Script to test the Begin command with dtype option.
"""
from LightPipes import *
import numpy as np
import sys
wavelength = 500*nm
size = 25*mm
N = 3000
N2=int(N/2)
w0=2*mm
print("LightPipes version = ", LPversion)
print("without dtype option:")
F=Begin(size,wavelength,N)
print("type of F:"... | [
"fred511949@gmail.com"
] | fred511949@gmail.com |
dd7bda05324df1c30a70004bdcf169a29b9a972f | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-SpriteKit/PyObjCTest/test_skview.py | 96b626096078794678e9693ea10f2b0c41775b58 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | import sys
from PyObjCTools.TestSupport import *
import objc
if sys.maxsize > 2 ** 32:
import SpriteKit
class TestSKViewHelper(SpriteKit.NSObject):
def view_shouldRenderAtTime_(self, v, t):
return 1
class TestSKView(TestCase):
@min_os_level("10.9")
def testMethods10_9... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
87df33662bfa4926caa32f3b3fb0907ed1ddbc37 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /experiments/state_distance/optimal_control_with_q.py | e6785e1a4453bcf63958d1b547ffd1074ec35676 | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,763 | py | """
Choose action according to
a = argmax_{a, s'} r(s, a, s') s.t. Q(s, a, s') = 0
where r is defined specifically for the reacher env.
"""
import argparse
import joblib
import numpy as np
from railrl.state_distance.policies import (
SoftOcOneStepRewardPolicy,
TerminalRewardSampleOCPolicy,
ArgmaxQFPoli... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
7539f89d65e13d8d08aa52f5ad2cb95edad6e77c | 572dd7f851ff2f6b39fea8f99199c22260f113df | /user/messages/success.py | b4e779b05fd4003a8e96f5153edf170b46c1ee00 | [] | no_license | SEUNAGBEYE/Flighty | f869f3fb1c1c74bddff9102b11a02411f502dc52 | 46247f93e7f9c83441c3f50eaca2f0d3eaeca96f | refs/heads/develop | 2022-12-13T12:17:58.760670 | 2019-07-29T15:51:36 | 2019-07-29T15:51:36 | 165,585,170 | 0 | 0 | null | 2022-12-08T01:36:58 | 2019-01-14T02:52:46 | Python | UTF-8 | Python | false | false | 172 | py | USER_CREATED = 'User successfully created'
LOGIN_SUCCESSFULL = 'User sucessfully logged in'
PROFILE_UPDATED = 'Profile updated'
USER_RETRIEVED = 'User successfully fetched' | [
"agbeyeseun1@gmail.com"
] | agbeyeseun1@gmail.com |
82332f085a0ce0530c27abb8493eb16799f8861a | 44e8334e1b17fda7f60d9760f59868a9227e2ab0 | /python-tf/tf2/tf2-10-0-mnist.py | 1510bd8a4542793f25cbb4c7648fb41506d3382a | [] | no_license | MysteriousSonOfGod/python-3 | 47c2aa69a84ba78876c74bc6f2e7e6f3093df1e2 | a303a5284c40f3cb96a8082a1f5ed80773b66336 | refs/heads/master | 2023-02-16T18:21:46.153388 | 2021-01-13T10:55:14 | 2021-01-13T10:55:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | # Lab 7 Learning rate and Evaluation
import tensorflow as tf
import matplotlib as mpl
import matplotlib.pyplot as plt
import sys, os
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
import images.image
learning_rate = 0.001
training_epochs = 15 # total training data을 한 번 train = 1 epoch
ba... | [
"cbaeck1@gmail.com"
] | cbaeck1@gmail.com |
d7d9397514f924e2e3c51219055782d39055529b | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/scaleform/daapi/view/lobby/lobbyview.py | ccca6333bda22faa53d118768576e781414e63cf | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,690 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/LobbyView.py
import BigWorld
import VOIP
import constants
import CommandMapping
from PlayerEvents import g_playerEvents
from gui import game_control, SystemMessages
import gui
from gui.LobbyContext import g_lobbyContext
from gui.battle_control import g... | [
"info@webium.sk"
] | info@webium.sk |
11dfb9beb211a5842f05475135524472e63b0052 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/compute/azure-mgmt-avs/generated_samples/workload_networks_get.py | 60db6d3b5326e38bb0efaea0f5d34f54b45f667d | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,556 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
aed27d9f42e5ddf4ac6f352e7d7d2b88f8f3a672 | 4eb3ff3e56043bc20162a59039af37533432feb1 | /项目所用模块.py | 1205da794e0b83ed65e541fe40c0fafae5ead37b | [] | no_license | luofang0212/flask_test | 99787a43ba117b0e5684f811ad9f83442c6e95cb | e9ea8644f7bbae94c0b689b79235913f73da7124 | refs/heads/master | 2023-07-26T00:49:53.681815 | 2021-09-06T16:15:11 | 2021-09-06T16:15:11 | 403,010,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 本项目所用到的模块
''''''
'''
python 自带包
'''
'''
python 第三方库
'''
from flask import Flask
from flask import render_template
from flask import request
import jieba # 分词
from matplotlib import pyplot as plt #绘图,数据可视化
from PIL import Image #图片处理
import numpy as np #矩阵运算
... | [
"warm_homel@163.com"
] | warm_homel@163.com |
1c84e7fe3a830af4777b1d5b5bd68515f665e933 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210204134044.py | 4c6d13f47417082167dcfd1e70c90cb3da6b4adc | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,693 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : easy-money.py
@Time : 2021/02/04 09:03:02
@Author : Jiajun Chen
@Version : 1.0
@Contact : 554001000@qq.com
@License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
'''
# 东方财富网 首发申报及上会信息
import re
import pickle
from datetime import datetime... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
9f66513cbf1b5dd410e4e8fa89518981ebb1faa4 | 7f2e3f56f0eda8bfa1c55d8d173456fad04a05bd | /app/static/ionicons/builder/scripts/eotlitetool.py | 1643bea1df87fa8c96c85bbdb1d1f941a115e8b7 | [
"MIT"
] | permissive | pipoted/movie | 91e40a3184884dc3e1db61eac7a5d6c7b7cfdb33 | be13cc1845c377dc1145267fbf799c004f170793 | refs/heads/master | 2020-03-28T13:18:06.166066 | 2018-09-11T21:14:48 | 2018-09-11T21:14:48 | 148,381,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,986 | py | #!/usr/bin/env python
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (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.mozil... | [
"32660879+pipoted@users.noreply.github.com"
] | 32660879+pipoted@users.noreply.github.com |
6f4f8fbbcb0e5c348c98918c383284323a004ea4 | e7a2670b983ae37b4a73ec9db4ce1c7967ae635c | /benchexec/cgroups.py | 5ca4adef56608a870834b68bf6bdf2aaaeb73312 | [
"Apache-2.0"
] | permissive | zmanchun/benchexec | 89bba7b908b1782ad8c771c61ce529ced1c6bce6 | 92427e52840184d51bb88af79e2c10ee5c5fb145 | refs/heads/master | 2021-01-17T17:22:27.917477 | 2017-01-07T16:47:44 | 2017-01-07T16:47:44 | 43,826,931 | 0 | 0 | null | 2015-10-07T15:49:57 | 2015-10-07T15:49:57 | null | UTF-8 | Python | false | false | 15,618 | py | # BenchExec is a framework for reliable benchmarking.
# This file is part of BenchExec.
#
# Copyright (C) 2007-2015 Dirk Beyer
# 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 Lic... | [
"uni@philippwendler.de"
] | uni@philippwendler.de |
654f21379131c530e86ac551da8784b4feab6062 | 7e2d802a17e42d50974af29e4c9b658d5da6471b | /HiredInTech/08-cover-the-border.py | e684983873eb1f32812cae3542721e131940be47 | [] | no_license | siddharthadtt1/Leet | a46290bacdf569f69d523413c0129676727cb20e | 1d8b96257f94e16d0c1ccf8d8e8cd3cbd9bdabce | refs/heads/master | 2020-06-20T16:21:15.915761 | 2017-05-15T22:35:42 | 2017-05-15T22:35:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | ''' HiredInTech solution '''
def cover_the_border(l, radars):
# Example arguments:
# l = 100
# radars = [ [5, 10], [3, 25], [46, 99], [39, 40], [45, 50] ]
if len(radars) < 1:
return 0
endpoints = []
for end in radars:
endpoints.append([end[0], 0])
endpoints.append([end[1... | [
"me@example.com"
] | me@example.com |
a181287ab47a20cb7149b2e78d496ed95272cafb | 399dae0b5ad9ca27cde175d25b5435958674eb50 | /Reports/Generate Disk Space Report for Endpoints/generate-disk-space-report-for-endpoints.py | a016efdf31e2323d017285a0679d67edcd5a712e | [] | no_license | kannanch/pythonscripts | 61e3ea9e8ebf6a6b0ec2a4a829664e4507b803ba | 843a522236f9c2cc2aadc68d504c71bb72600bd9 | refs/heads/master | 2020-06-12T11:18:00.404673 | 2019-06-28T11:24:37 | 2019-06-28T11:24:37 | 194,282,297 | 1 | 0 | null | 2019-06-28T13:55:56 | 2019-06-28T13:55:56 | null | UTF-8 | Python | false | false | 15,017 | py | no=xx #Edit the xx parameter as Device Timeout. Eg if you have 500 enrolled endpoints then that xx must "100".
Head_computer=r'CHANGE_ME' # Head computer to send the email
emailto=r'CHANGE_ME' # Email address to send the report
Head_computer=Head_computer.upper()
KI=list(Head_computer)
KI.insert(0,str(no))
im... | [
"noreply@github.com"
] | kannanch.noreply@github.com |
171eaf38d54a5fe7dcf2a23a97cf6c845c890e8d | cff5ac961d717059caf25dc4247ddcc958f27d24 | /WRAPPERS/corrmat_from_regionalmeasures.py | 1be8e37d8ef4eb4850aaa0156d84101d217d6c98 | [
"MIT"
] | permissive | repropaper/NSPN_WhitakerVertes_PNAS2016 | fac4a9bb72e92db2d38b5c41e431e998c8114030 | 5c9c46caf91768d4cadec2b24078b640f05d3d76 | refs/heads/reprobranch | 2020-03-19T00:17:24.346727 | 2017-02-23T08:24:50 | 2017-02-23T08:24:50 | 135,469,739 | 0 | 1 | MIT | 2018-05-30T17:08:00 | 2018-05-30T16:26:32 | OpenEdge ABL | UTF-8 | Python | false | false | 6,687 | py | #!/usr/bin/env python
#=============================================================================
# Created by Kirstie Whitaker
# at Hot Numbers coffee shop on Trumpington Road in Cambridge, September 2016
# Contact: kw401@cam.ac.uk
#=============================================================================
#==... | [
"kw401@cam.ac.uk"
] | kw401@cam.ac.uk |
a0264de9f564b1eddb8d60d387ccf898539bcc2f | c544a5c24b4adedd2c1602894acf5dcafe64ed6f | /astropy_helpers/tests/test_utils.py | ad76e4f5b54a24cc076aaa835620bb1827d6aac3 | [] | permissive | astropy/astropy-helpers | b6053f673f517e11ccf243d1ffe1e685b9b8ebe7 | 3b45ed3191ceb45c574db304ec0f33282d2e4a98 | refs/heads/master | 2023-08-20T04:51:42.767065 | 2022-05-25T16:38:43 | 2022-05-25T16:38:43 | 14,448,779 | 30 | 40 | BSD-3-Clause | 2022-05-25T16:36:17 | 2013-11-16T15:01:42 | Python | UTF-8 | Python | false | false | 751 | py | import os
from ..utils import find_data_files
def test_find_data_files(tmpdir):
data = tmpdir.mkdir('data')
sub1 = data.mkdir('sub1')
sub2 = data.mkdir('sub2')
sub3 = sub1.mkdir('sub3')
for directory in (data, sub1, sub2, sub3):
filename = directory.join('data.dat').strpath
with ... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
228b3233ec8da4230a696814daf44cbb9a316673 | 6657a43ee360177e578f67cf966e6aef5debda3c | /varsom_avalanche_client/configuration.py | 4f8c074c8e547f5533c6988b72af1a1db6d5d8c1 | [
"MIT"
] | permissive | NVE/python-varsom-avalanche-client | 3cc8b9c366f566a99c6f309ccdfb477f73256659 | c7787bf070d8ea91efd3a2a9e7782eedd4961528 | refs/heads/master | 2022-04-20T09:32:24.499284 | 2020-04-16T20:12:01 | 2020-04-16T20:12:01 | 256,318,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,046 | py | # coding: utf-8
"""
Snøskredvarsel API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v5.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
im... | [
"jorgen.kvalberg@gmail.com"
] | jorgen.kvalberg@gmail.com |
7d5314a98029672f01fe722b58e29b81bd0a8f69 | 9dc5c9dd8bff75a17eb27c75a85f85f1515efbe1 | /examples/competitive/sofm_compare_grid_types.py | 4f33caf37872c3184f5a4581bd45137fb39d3099 | [
"MIT"
] | permissive | BickyMz/neupy | 667a688a3f1f3c9c515376eb2fc32446185230a9 | 3ceb25d3b9f6c00c0b25ef65a25434126006098d | refs/heads/master | 2020-05-24T16:25:03.803826 | 2019-05-05T12:55:46 | 2019-05-05T12:55:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | import matplotlib.pyplot as plt
from neupy import algorithms, utils
from helpers import plot_2d_grid, make_circle
plt.style.use('ggplot')
utils.reproducible()
if __name__ == '__main__':
GRID_WIDTH = 10
GRID_HEIGHT = 10
configurations = [{
'grid_type': 'hexagon',
'use_hexagon_grid': Tru... | [
"mail@itdxer.com"
] | mail@itdxer.com |
0e28eda07956ac5acd87b7c0d705815ef5658849 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/config/cs/csvserver_feopolicy_binding.py | acb178fbe6eab499c4161045696cebc885acad74 | [
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 11,337 | py | #
# Copyright (c) 2008-2016 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
277892508b145e197f2e8e451e059b45ae7d1432 | 0b64e696083d567ed18e6366d8bd8e99733e1485 | /node_modules/socket.io/node_modules/redis/node_modules/hiredis/build/c4che/Release.cache.py | 760ac556fb84b9aa1a219e95c3e78caf69dbbc15 | [
"MIT"
] | permissive | iambibhas/myn3 | 340286d56edcde4ad024b63f0b12e1ecb7c6b15f | 994c2850ac76920289004dc67f46bcedf7e652dc | refs/heads/master | 2021-01-01T05:53:35.376823 | 2012-09-24T20:20:16 | 2012-09-24T20:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | AR = '/usr/bin/ar'
ARFLAGS = 'rcs'
CCFLAGS = ['-g']
CCFLAGS_MACBUNDLE = ['-fPIC']
CCFLAGS_NODE = ['-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']
CC_VERSION = ('4', '6', '3')
COMPILER_CXX = 'g++'
CPP = '/usr/bin/cpp'
CPPFLAGS_NODE = ['-D_GNU_SOURCE']
CPPPATH_NODE = '/usr/include/nodejs'
CPPPATH_ST = '-I%s'
CXX = ['/us... | [
"iambibhas@gmail.com"
] | iambibhas@gmail.com |
47c4dfc1e15fb0f15d11f9e64213a4ad1ec7b299 | f4f19a0b856ba36100f67272b05dad90c76b7457 | /pre_processing/pre_process.py | d798aafcbd20c54aaac01bdeef281b7092d8d104 | [] | no_license | JamesBrace/kaggle | b9d8130aa1b5d17a2d89f3fa64b1142eb7167f7e | 2069a5a3afa236bf57b25526439b5d5950e4b136 | refs/heads/master | 2021-04-26T22:28:18.676810 | 2018-03-06T18:25:43 | 2018-03-06T18:25:43 | 124,097,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | import numpy as np
from skimage.feature import canny
from scipy import ndimage as ndi
import matplotlib.pyplot as plt
from skimage import morphology
from skimage import util
class PreProcessedData:
def __init__(self):
self.x = []
self.y = []
self.cannied_images = []
self.filled_i... | [
"james.brace@mail.mcgill.ca"
] | james.brace@mail.mcgill.ca |
09360acd5784b7d43b7da742def5c650aacf37dc | 38a972a3cd1fc303b5f877e24d65118912d85d1c | /path/to/virtualenv/project/Lib/site-packages/tensorflow/python/ops/accumulate_n_benchmark.py | 9fb5b537c24e331fe9de5436d162df1024bcb89b | [] | no_license | ZulfikarAkbar/YOLO_ObjectDetection | 0c1015aa987d03329eae48a2053a07dda05d96c0 | 3517d0592a269f79df9afd82e0b1b0123bbe0473 | refs/heads/master | 2022-10-27T05:08:26.734173 | 2019-02-07T17:35:22 | 2019-02-07T17:35:22 | 169,613,306 | 0 | 1 | null | 2022-10-18T02:18:17 | 2019-02-07T17:35:03 | Python | UTF-8 | Python | false | false | 5,606 | py | # Copyright 2016 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... | [
"zulfikar.78.akbar@gmail.com"
] | zulfikar.78.akbar@gmail.com |
d68d032e544410088da51547b06a4ca3e587f2b2 | f78e7917536b5ce8630fcab47428254fe6814591 | /RIK_simulator/src/lbd_playback/bin/playbackUtils.py | 12677392f8e812bce5f673014702e0941273b105 | [] | no_license | xuezhizeng/hwang_robot_works | da507993dbfb278e6981304d988d44e263a8b981 | 211f6aede9e5929ca4d174e8d1c28b3b3082752c | refs/heads/master | 2020-03-07T14:31:44.041890 | 2017-09-05T15:25:23 | 2017-09-05T15:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,276 | py | import numpy as np
import IK.transformations as T
from usingRosBag_linear import *
from IK.tongsCenter import *
class PlaybackUtils:
def __init__(self, vars):
# Global variables
self.positionDisplacement = np.array([0,0,-0.22])
self.vars = vars
# self.positionDisplacement = np.arra... | [
"hongyiwang@cs.wisc.edu"
] | hongyiwang@cs.wisc.edu |
2793bf43cb383c357d70e567eeb97526b4f54f97 | ba0e07b34def26c37ee22b9dac1714867f001fa5 | /azure-mgmt-web/azure/mgmt/web/models/network_access_control_entry.py | c63dd1cc8d4c8aec142f71ba8f7c5dea394ffc61 | [
"MIT"
] | permissive | CharaD7/azure-sdk-for-python | b11a08ac7d24a22a808a18203072b4c7bd264dfa | 9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c | refs/heads/master | 2023-05-12T12:34:26.172873 | 2016-10-26T21:35:20 | 2016-10-26T21:35:20 | 72,448,760 | 1 | 0 | MIT | 2023-05-04T17:15:01 | 2016-10-31T15:14:09 | Python | UTF-8 | Python | false | false | 1,424 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
8fcbfa32a3cb2aab4ae34e37e6ff4a569f55b5ae | 41c0cbfbe922f09df9c6a4237c06a28ef458761c | /1278 B hyper set .py | 293d5e43a6792d28080181b20ec02d965484ab1d | [] | no_license | adityachaudhary147/py-codes | 8d45bfe3d3b67e4e802a2c1e01199551ef226aaa | 6a8918b5c6fca19ff74cef0dcd676c04b28ee8c4 | refs/heads/master | 2023-04-12T09:52:09.622458 | 2021-05-17T07:44:29 | 2021-05-17T07:44:29 | 244,203,716 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | #jai mata di#
import sys
sys.stdin = open('input.in', 'r')
sys.stdout = open('output.out', 'w')
#start the code from here
n,k2=map(int,input().split())
l=set()
for i in range(n):
e=input()
l.add(e)
r=set(l)
l=list(l)
an=0
for j in range(n-1):
for k in range(j+1,n):
we=[0]*k2
ty=0
while ty<k2:
if l[... | [
"chaudharyaditya.in@gmail.com"
] | chaudharyaditya.in@gmail.com |
13e604425bfe67eacff60bf986160796280d1f75 | c9fe27dd429741f2fd6d567e0aa157871fa89bed | /fork/introducer/introducer_api.py | efb7a706c223b3bdead2640e2d913a38101611bd | [
"Apache-2.0"
] | permissive | Fork-Network/fork-blockchain | 858d3aefe359a3fff547cf4464f45216b3718fa3 | 4e7c55b5787376dabacc8049eac49c0bb0bfd855 | refs/heads/main | 2023-06-23T00:28:14.607265 | 2021-07-24T02:23:22 | 2021-07-24T02:23:22 | 388,574,519 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | from typing import Callable, Optional
from fork.introducer.introducer import Introducer
from fork.protocols.introducer_protocol import RequestPeersIntroducer, RespondPeersIntroducer
from fork.protocols.protocol_message_types import ProtocolMessageTypes
from fork.server.outbound_message import Message, make_msg
from fo... | [
"bekbol17281923@outlook.com"
] | bekbol17281923@outlook.com |
fb384863ec5d9329a46985b438244bc624df9626 | c24212464eb84588edc7903a8905f2a881d578c4 | /migrations/versions/46e80c86a0fb_.py | 044aab1785b0ec919d392c0f49889f32428e6dcb | [] | no_license | the-akira/Flask-Library | c533dc2fd1ac2d3d9e2732e7c7bed5b8cc7ca4bd | 833e77660053b1e95975ccdf8bf41a035722975c | refs/heads/master | 2023-05-25T12:08:15.898134 | 2023-02-07T23:36:50 | 2023-02-07T23:36:50 | 205,951,022 | 5 | 2 | null | 2023-02-15T22:08:36 | 2019-09-02T23:26:50 | HTML | UTF-8 | Python | false | false | 1,041 | py | """empty message
Revision ID: 46e80c86a0fb
Revises: 5ef733a72780
Create Date: 2022-05-14 05:28:36.082684
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '46e80c86a0fb'
down_revision = '5ef733a72780'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"gabrielfelippe90@gmail.com"
] | gabrielfelippe90@gmail.com |
0af7ed5c92a7008afe7dce8d65ae9ad39ac90809 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/greynoise/icon_greynoise/actions/get_tag_details/action.py | 891477fb89da35b5e6cce9779412d9d97fdeb6ce | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 1,087 | py | import insightconnect_plugin_runtime
from .schema import GetTagDetailsInput, GetTagDetailsOutput, Input, Component
# Custom imports below
from icon_greynoise.util.util import GNRequestFailure
from greynoise.exceptions import RequestFailure
class GetTagDetails(insightconnect_plugin_runtime.Action):
def __init__(s... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
314851d86273e01bceb3c684924368522f40ba2e | 9a3b9de5eba5585cff302dde267920269ab338ae | /zeus/networks/quant.py | eea5ce5ab0b4276fa82f0bbd22fd4222941b3d2e | [
"MIT"
] | permissive | Jizhongpeng/xingtian | 835f5b8d997d5dcdd13a77ad10bc658704892b18 | a9bdde734f14111854ed666dfdc780d5fe5311b1 | refs/heads/master | 2023-01-09T13:07:41.498246 | 2020-11-10T01:24:42 | 2020-11-10T01:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"hustqj@126.com"
] | hustqj@126.com |
2db06d443b7fadfd5bf1b848b96ecd5dfcfcd003 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /linear_dynamical_systems/iterated_regression.py | 86e5d1169c94d3a0da489858d906ac228f583206 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 5,392 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
59fc04f65d00227209003ea2836478c904403fdb | 34f365117eb1d846fa922c24f3fc650188ce9746 | /bin/bed2countString.py | a029e30899b4529ca74ab313a5ed6655280c54f6 | [
"MIT"
] | permissive | PinarSiyah/NGStoolkit | 53ac6d87a572c498414a246ae051785b40fbc80d | b360da965c763de88c9453c4fd3d3eb7a61c935d | refs/heads/master | 2021-10-22T04:49:51.153970 | 2019-03-08T08:03:28 | 2019-03-08T08:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #!/usr/bin/env python
import os
import sys
import bed
import generalUtils
import argparse
import random
parser = argparse.ArgumentParser(description='count strings')
parser.add_argument('-i', required= True, help='input')
parser.add_argument('-o', required= True, help='output')
parser.add_argument('-fasta', required= ... | [
"adebali@users.noreply.github.com"
] | adebali@users.noreply.github.com |
a570bfa4558c82748471c60e1e492652bbd4c4b6 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/aci/aci_domain_to_vlan_pool.py | 41bc3c7d07d911e29c5a39ab423b1aaf06d43a9d | [
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 10,592 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Dag Wieers <dag@wieers.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1'... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
ffa90cad695dc1a89745ab2dd5a57a1006b45f38 | 3716e91c0a18a2cf0b5807cc673d95a7539b008c | /Forest/BackwoodsFork.py | f295233eb6d3ecd0680e498a956ebd483a4ff8fb | [] | no_license | kiwiapple87/CodeCombat-1 | 47f0fa6d75d6d3e9fb9c28feeb6fe2648664c1aa | ce0201e5ed099193ca40afd3b7abeee5a3732387 | refs/heads/master | 2021-05-01T16:38:03.575842 | 2016-08-25T11:13:26 | 2016-08-25T11:13:26 | 66,552,813 | 1 | 0 | null | 2016-08-25T11:39:20 | 2016-08-25T11:39:18 | null | UTF-8 | Python | false | false | 818 | py | # https://codecombat.com/play/level/backwoods-fork
# Incoming ogres!
# Use the checkAndAttack function to make your code easy to read.
# This function has a parameter.
# An parameter is a way of passing information into a function.
def checkAndAttack(target):
# The 'target' parameter is just a variable!
# It c... | [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
e1dc4656c4add693f2dbb8e3c9a87990852101c8 | dccdb71dd75560ffeb076cedbd78b36e33b3adf2 | /EstruturaSequencial/ex02_numero.py | 5a2f85ce99f95f27163e7a478296cece3c9b0762 | [] | no_license | IngridFCosta/exerciciosPythonBrasil | 6fa669896cae135142101c522be7a919bda583b7 | 5c84d70f720b45a260320b08a5103bad5ce78339 | refs/heads/master | 2023-04-22T02:34:40.206350 | 2021-05-06T17:14:50 | 2021-05-06T17:14:50 | 291,265,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | """2-Faça um Programa que peça um número e então mostre a mensagem O número informado foi [número]."""
numero=int(input('Escreva um número: '))
print(f'O número informado foi {numero}') | [
"49729290+IngridFCosta@users.noreply.github.com"
] | 49729290+IngridFCosta@users.noreply.github.com |
a4d90d95aa7d47485090ac92009ccbef391cdfec | 5dfb9ca5e0c8cb4cb7a7a92d6f6a34b34a841869 | /LeetCodeSolutions/python/513_Find_Bottom_Left_Tree_Value.py | 808427669e6aa627ab9f1b0b0ec2c32986e01b6e | [
"MIT"
] | permissive | ChuanleiGuo/AlgorithmsPlayground | 2f71d29e697a656562e3d2a2de783d964dc6a325 | 90b6287b742c8bfd3797540c408d679be2821a40 | refs/heads/master | 2021-01-11T18:30:43.218959 | 2018-11-19T02:20:31 | 2018-11-19T02:20:31 | 79,550,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def findBottomLeftValue(self, root):
"""
:type root: TreeNode
:rtype: int
"""
queue = [root... | [
"chuanleiguo@gmail.com"
] | chuanleiguo@gmail.com |
77ff1c2b53c17c875b84bb4f6b5a2944e786527e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_207/ch136_2020_04_01_11_57_23_991207.py | d8760caf5639fb9f950467abccac43d652a78617 | [] | 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 | 1,282 | py | import random
dinheiros = 10
d1 = random.randint(1,6)
d2 = random.randint(1,6)
d3 = random.randint(1,6)
soma = d1+d2+d3
print (soma)
JOGO = False
#fase de DICAS
print ("DICAS: \n Você possui {0} dinheiros." .format(dinheiros))
if dinheiros <=0:
print ("Você perdeu!")
pergunta1 = input("Você quer uma dica? ")... | [
"you@example.com"
] | you@example.com |
e3feca8063a41c8988af243eef5ea642b26fe9c5 | 4a74875c7366a19b7189fcb89fa0fa27abc4309e | /data_pipeline/processor/oracle_where_parser.py | 60562db03590c59c92acd5b85aa9bc775183f86c | [
"Apache-2.0"
] | permissive | saubury-iag/data_pipeline | d865d66d25eeb4ea6c6a655ae934bfe83c0efa06 | 4ad04198ed48c643045113c6e2c3e0848adbdec6 | refs/heads/master | 2021-07-23T08:43:46.754162 | 2017-11-01T05:05:23 | 2017-11-01T05:05:23 | 108,808,749 | 0 | 0 | null | 2017-10-30T06:06:41 | 2017-10-30T06:06:41 | null | UTF-8 | Python | false | false | 5,101 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"simon.aubury@iag.com.au"
] | simon.aubury@iag.com.au |
b15f2abae8cd733f498374b1a2d0c477cd073e9a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/482/usersdata/309/110136/submittedfiles/Av2_Parte4.py | 4caf25849b6aea491973c78fc097c44d88370f19 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # -*- coding: utf-8 -*-
mt=[]
lin=int(input("Digite a quantidade de linhas da matriz:"))
colu=int(input("Digite a quantidade de colunas da matriz:"))
for i in range (lin,0,-1):
lista=[]
for j in range (colu,0,-1):
lista[j]=(int(input("Digite um elemento para sua matriz:")))
mt[i]=lista
print(mt)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3a3a2bda3c9dc71fb5f213b93e4215892c92b19a | 354e2dede869a32e57c66c2e1b71bbd61d2cc36d | /widgets/pad.py | 17d2e11a21f2a29919b0d0f7268c7bfef1cc107d | [
"MIT"
] | permissive | hiddenvs/micropython_ra8875 | 5abf906d95c0c997ceb9638b8785c4cc2f803cf6 | a61314d62d6add831f6618c857b01d1a5b7ce388 | refs/heads/master | 2023-04-09T22:37:23.097440 | 2021-04-16T13:13:34 | 2021-04-16T13:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | # pad.py Extension to lcd160gui providing the invisible touchpad class
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2020 Peter Hinch
# Usage: import classes as required:
# from gui.widgets.pad import Pad
import uasyncio as asyncio
from micropython_ra8875.py.ugui import Touchable
from micropy... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
b938e7c532cfe60e760b8a0b87abee91e54e4942 | 549f6aeee12b66189d6e30b448a656fe55bc3eca | /tensorflow/python/distribute/strategy_combinations.py | d66c7acba7776ce0478f7d6e7076a2bf5ddace66 | [
"Apache-2.0"
] | permissive | thomkallor/tensorflow | 2f6973b95a3fbaa41b6a4d03edb7ae665398865b | fb03bc60fe90d332e357aafa8359a44369ff8caf | refs/heads/master | 2022-11-10T20:25:03.224037 | 2020-06-26T23:39:44 | 2020-06-26T23:49:42 | 275,148,424 | 0 | 0 | Apache-2.0 | 2020-06-26T12:15:14 | 2020-06-26T12:15:13 | null | UTF-8 | Python | false | false | 16,830 | py | # Copyright 2018 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 |
0c9daec6558d9de88338199192f4e5d1dad32639 | 8dca64dd11b23a7d59413ac8e28e92a0ab80c49c | /832. Flipping an Image/solution.py | 25b69e5fc050245a58bc16a757d3ea451316a7c4 | [] | no_license | huangruihaocst/leetcode-python | f854498c0a1d257698e10889531c526299d47e39 | 8f88cae7cc982ab8495e185914b1baeceb294060 | refs/heads/master | 2020-03-21T20:52:17.668477 | 2018-10-08T20:29:35 | 2018-10-08T20:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | class Solution:
def flipAndInvertImage(self, A):
"""
:type A: List[List[int]]
:rtype: List[List[int]]
"""
return self.invert(self.reverse(A))
@staticmethod
def reverse(A):
"""
:type A: List[List[int]]
:rtype: List[List[int]]
"""
... | [
"huangruihaocst@126.com"
] | huangruihaocst@126.com |
d95fb552556fe37b61378dbfef21dcd4b15356dd | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/Vue.js/juejin_2910.py | 433d99a184537f0048d01e9b65145675a9d3cc65 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,851 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6919726191666528263", "article_info": {"article_id": "6919726191666528263", "user_id": "2400989127905352", "category_id": "6809637767543259144", "tag_ids": [6809640369764958215], "visible_level": 0, "link_url": "", "cover_image": "", "is_gfw": 0, "title": "vu... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
8655a86f4d99e4dc3d21d0a740e200eda1cd4269 | 66643f48950453dd1cc408a763360db2be9942f6 | /tests/validation/test_executable_definitions.py | 4a21c63b65e4397cb38e995fa01b69400852109f | [
"MIT"
] | permissive | khasbilegt/graphql-core | ac958b5a68c27acd0c7f96429deeca7f7f8736b3 | fc76d01a2a134ba2cebd863bf48773fd44c2645b | refs/heads/main | 2023-08-05T06:03:56.299244 | 2021-09-19T10:31:30 | 2021-09-19T10:31:30 | 408,735,141 | 1 | 0 | MIT | 2021-09-21T08:00:36 | 2021-09-21T08:00:35 | null | UTF-8 | Python | false | false | 2,234 | py | from functools import partial
from graphql.validation import ExecutableDefinitionsRule
from .harness import assert_validation_errors
assert_errors = partial(assert_validation_errors, ExecutableDefinitionsRule)
assert_valid = partial(assert_errors, errors=[])
def describe_validate_executable_definitions():
def... | [
"cito@online.de"
] | cito@online.de |
6d8b0b5732d62a9cf3767687b8e8763bebd74f0c | 0c154919a427bad71598bae69a8b5b6b94bc2627 | /Posts/migrations/0008_post_vote.py | 1f9c7557cad3250dbbcd9af07789b7d0075280aa | [] | no_license | MichalDrosio/blog | b7b56ffd35ef82d2a5c3c791eff8d326644f5627 | ebb7c07f29ea9de1f872bfeea79ae6d0c4822766 | refs/heads/master | 2020-12-22T13:02:54.573249 | 2020-07-27T11:25:16 | 2020-07-27T11:25:16 | 236,775,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Generated by Django 3.0.8 on 2020-07-24 10:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Posts', '0007_auto_20200723_1357'),
]
operations = [
migrations.AddField(
model_name='post',
name='vote',
... | [
"drosio.michal@gmail.com"
] | drosio.michal@gmail.com |
629bb2ace85054f0e0e1bf16e25f739810db624e | 0e834094f5e4274b279939b81caedec7d8ef2c73 | /m3/django_/mysite3/book/migrations/0003_auto_20200115_1745.py | e90a76a3af2a4b4753b0bf2a493db5ffb36cf7a9 | [] | no_license | SpringSnowB/All-file | b74eaebe1d54e1410945eaca62c70277a01ef0bf | 03485c60e7c07352aee621df94455da3d466b872 | refs/heads/master | 2020-11-27T23:54:36.984555 | 2020-01-21T08:42:21 | 2020-01-21T08:42:21 | 229,651,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2020-01-15 09:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book', '0002_auto_20200115_1603'),
]
operations = [
migrations.CreateModel(... | [
"tszxwsb@163.com"
] | tszxwsb@163.com |
6267d925f4ba5879b734a6dcba1640ccedeb8b48 | a2eaa3decc385dea227da8a99203f767f32cf941 | /electronic_station/ascending_list.py | 98a5261f1acf37986d291eb1cd62bca1a61480d4 | [] | no_license | vlad-bezden/py.checkio | 94db32111eeeb2cd90c7b3c4606ea72cf2bb6678 | 6cd870ca3056cc9dcdce0ad520c27e92311719b3 | refs/heads/master | 2021-07-01T18:39:35.955671 | 2020-10-05T00:56:38 | 2020-10-05T00:56:38 | 93,111,389 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | """Ascending List
https://py.checkio.org/en/mission/ascending-list/
Determine whether the sequence of elements items is ascending so that its
each element is strictly larger than (and not merely equal to) the
element that precedes it.
Input: Iterable with ints.
Output: bool
Output:
i... | [
"vlad.bezden@gmail.com"
] | vlad.bezden@gmail.com |
b03c20c06b007718fdc3396885410fb6db0e19f2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /hQRuQguN4bKyM2gik_21.py | d59885f89bac86c7d6d3eae679f0d6dbfb33395c | [] | 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 | 195 | py |
def simple_check(a, b):
lo, hi = min(a,b), max(a,b)
cnt = 0
for i in range(lo):
if hi % lo == 0:
cnt += 1
hi = hi - 1
lo = lo - 1
return cnt
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
021e27b295aa1e58939d5d8842368e01465b03e1 | 746cd1d11eb24e7a987f2dd4db72b68a8e0a5b99 | /android/external/adt-infra/build/scripts/slave/recipes/skia/skia.py | c27eafe8ca462660a9cd4d803724a7fb4193b04d | [] | no_license | binsys/BPI-A64-Android7 | c49b0d3a785811b7f0376c92100c6ac102bb858c | 751fadaacec8493a10461661d80fce4b775dd5de | refs/heads/master | 2023-05-11T18:31:41.505222 | 2020-07-13T04:27:40 | 2020-07-13T12:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,098 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Recipe module for Skia builders.
DEPS = [
'json',
'path',
'platform',
'properties',
'raw_io',
'skia',
]
TEST_BUILDERS = {
'client.skia':... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
3fc2dbb3e16a2861f18b339ee15022a85d67550f | 6b7bdeff133c37245698e450a01f75bb6a97c2a4 | /28.colordialog.py | 4a47f37fbfa2e3611337d803621896fb32a462cf | [] | no_license | HardPlant/PyQT | 9bb4f8e53417ede638bddd63571ade506785d2fb | fae0315620b3005ead451a170214c1334bac7fab | refs/heads/master | 2020-03-24T23:49:47.248763 | 2018-08-05T07:59:17 | 2018-08-05T07:59:17 | 143,155,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | from PyQt5.QtWidgets import (QWidget, QPushButton, QFrame,
QColorDialog, QApplication)
from PyQt5.QtGui import QColor
import sys
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
col = QColor(0, 0, ... | [
"abc7988se@naver.com"
] | abc7988se@naver.com |
c9f7d93330c888d19c537cb39e06fdd586f5682a | 3411ad233c411c06765f4b07f8670c12025178b6 | /LCOF/31-40/32-1/32-1.py | 478ca7b4eff8a95655fa61b25fb586420bfccdd7 | [
"MIT"
] | permissive | xuychen/Leetcode | 7d9d31fed898ce58440f5ae6665d2ccaf1a4b256 | c8bf33af30569177c5276ffcd72a8d93ba4c402a | refs/heads/master | 2021-11-19T20:39:43.741589 | 2021-10-24T16:26:52 | 2021-10-24T16:26:52 | 140,212,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | import Queue
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def levelOrder(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
... | [
"xuychen@ucdavis.edu"
] | xuychen@ucdavis.edu |
4e1cd719cfa46c689fd0b63ee03bf2f1c80310ca | 75a179e8ddba54442697de87a3846f1711a30bae | /crudoperation/crudoperation/wsgi.py | 5d9ef489b1f5198e5c28ae26457fc488c0ac661e | [] | no_license | amanlalwani007/drftutorial | 2b5a5338b3146b1feb88c4d815fbf996dd49cb9d | 4f5c651f4dee98a359b7a6e34d0ae9a8f8630e68 | refs/heads/master | 2023-07-09T01:28:04.921042 | 2021-08-21T10:59:06 | 2021-08-21T10:59:06 | 392,457,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for crudoperation project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"amanlalwani0807@gmail.com"
] | amanlalwani0807@gmail.com |
3cdf409b425746438571d689e6c72da67e98299d | bc441bb06b8948288f110af63feda4e798f30225 | /idcmanager_sdk/model/easy_command/task_spec_pb2.py | ec6575adc9e75b93acae8423644206c9fe3269cc | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 9,559 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: task_spec.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | [
"service@easyops.cn"
] | service@easyops.cn |
2aeb0cb802cd448cc40eb31633927bc1dec209e9 | 6288f56016e0a1dc9e4a4eceb18425d4ae27f4a3 | /tests/test_shared_bandwidth_switch.py | a56dcf16eb26e6f748983a354187ef70850c7256 | [] | no_license | brettviren/ersatz | ec547fe347bfcc9ccafce7b159cc6378f3f4ab7d | 187df8096d5dadae2a115a7796cafd6d59c4f6af | refs/heads/master | 2021-01-17T22:14:06.475993 | 2018-01-21T18:31:31 | 2018-01-21T18:31:31 | 60,030,033 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | #!/usr/bin/env python3
import simpy
from ersatz.switch import Switch, LinkedSwitch
from ersatz.datum import Datum
from ersatz.monitoring import trace
def test_balance():
sw = Switch(None, 100)
for ip in range(5):
for op in range(max(0,ip-2),min(5,ip+2)):
sw.stage(Datum(ip, op, 10, None))
... | [
"brett.viren@gmail.com"
] | brett.viren@gmail.com |
918a5618d56e51317a4a67dafb2975bf2f9b5e58 | 15531adf1e9b66db6259a52d16d0b0ddd672f4e9 | /backend-project/small_eod/institutions/migrations/0009_auto_20200618_2320.py | f79ca4d496e41841d8d2f2d73ddddb1de08763ad | [
"MIT"
] | permissive | watchdogpolska/small_eod | 2c81b0bb67113a4fd9f5c9c0f8b07daa2399e243 | 509f532e10c20e700cb9b37c73f4a695b53b42a8 | refs/heads/dev | 2023-09-01T01:30:44.681105 | 2022-03-31T19:36:39 | 2022-03-31T22:20:42 | 136,141,184 | 66 | 75 | MIT | 2023-09-04T14:33:37 | 2018-06-05T07:56:33 | Python | UTF-8 | Python | false | false | 739 | py | # Generated by Django 3.0.7 on 2020-06-18 23:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tags', '0005_merge_multiple_leaf_nodes'),
('institutions', '0008_auto_20200528_1330'),
]
operations = [
migrations.AddField(
... | [
"noreply@github.com"
] | watchdogpolska.noreply@github.com |
f761f157069a51fef2dade3ebdadd11611dbe111 | a18fba3eeb79b51faa55fcb1c45804ae57bb0aa4 | /wall_erd/Wall/settings.py | 7b1d1b9a14c56ad892d1bab1b6d1ec353c721c7b | [] | no_license | Catrinici/Python_Django | a850f732734f799c923035d4b28a9553e288194f | 9415b40a49fc9aa0a685937a62e259bd8103e208 | refs/heads/master | 2023-04-28T13:22:16.987969 | 2019-10-15T15:41:38 | 2019-10-15T15:41:38 | 206,885,302 | 1 | 0 | null | 2023-04-21T20:37:48 | 2019-09-06T22:52:27 | Python | UTF-8 | Python | false | false | 3,111 | py | """
Django settings for Wall project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"catrinici.antonina@gmail.com"
] | catrinici.antonina@gmail.com |
1582894d4bea212dea2a8089c8abb504a9236e37 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/mozilla-zamboni/allPythonContent.py | a29dff3dd225280fe065aaccbef6790300d3de5c | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,045,082 | py | __FILENAME__ = models
import logging
from django.conf import settings
from django.db import models
from django.utils.translation import gettext
import amo.models
import amo.utils
from addons.models import Addon
from users.models import UserProfile
log = logging.getLogger('z.abuse')
class AbuseRepo... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.