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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b17b8e3305edf0cbe18bf4b4d78b3d900585ede | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=47/sched.py | e6a2c6abac886be1fcb10318fc37ffb3a85fec04 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | -X FMLP -Q 0 -L 3 128 400
-X FMLP -Q 0 -L 3 122 400
-X FMLP -Q 0 -L 3 104 400
-X FMLP -Q 0 -L 3 99 400
-X FMLP -Q 0 -L 3 83 300
-X FMLP -Q 1 -L 1 58 400
-X FMLP -Q 1 -L 1 51 200
-X FMLP -Q 1 -L 1 43 150
-X FMLP -Q 1 -L 1 41 150
-X FMLP -Q 2 -L 1 37 400
-X FMLP -Q 2 -L 1 36 400
-X FMLP ... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
514f55ecba22afba3cf177b695f1e1125d818956 | 85ef8e7f9858250b8876ac390def4d6b0a0f7be7 | /elastic/system.py | 1e3185a385b6ac7d24f44f8641e1390913fde438 | [] | no_license | tbenthompson/elastic | 429aaa032b9539bc372b871ed586ebfd05be5c06 | d04ec8b087f90e0f685c477130bafe12552dff5a | refs/heads/master | 2021-03-27T20:40:15.721144 | 2015-12-09T20:33:03 | 2015-12-09T20:33:03 | 28,436,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | from compute import BIE
import bie_spec
import numpy as np
def form_linear_systems(bies, dispatcher):
systems = []
for spec in bies:
integrals = []
for term in spec['terms']:
integrals.append(dispatcher.compute_boundary(term))
integrals.append(dispatcher.compute_mass(spec['m... | [
"t.ben.thompson@gmail.com"
] | t.ben.thompson@gmail.com |
9425fe59ad37ac18ef0bc19471d276e0ea3b0084 | 2d6fd2fff23a78f38dce1f1c50a122413abb4f65 | /unicorn/apps/config/__init__.py | bfd5ab0babead892c7a3e7da03e2fdeb8331c72c | [
"MIT"
] | permissive | mkoistinen/homebridge-pi-lamp | a7112c4896bb0f3c159dcc315ab7999856b914c4 | e618e7d8073636532d87d0cffb39eda212bfca2c | refs/heads/master | 2022-05-05T09:25:54.383110 | 2019-10-25T03:43:54 | 2019-10-25T03:43:54 | 216,444,449 | 0 | 0 | null | 2022-04-22T22:31:02 | 2019-10-21T00:04:52 | Python | UTF-8 | Python | false | false | 60 | py | default_app_config = 'unicorn.apps.config.apps.ConfigConfig' | [
"mkoistinen@gmail.com"
] | mkoistinen@gmail.com |
76f9d22442239d50e23178281319d0d20100cc51 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyserv/pyserv-011/pycli_uadd.py | e10f9f9d22ba83deb0ad22529e9d57f096c876de | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | #!/usr/bin/env python
# ------------------------------------------------------------------------
# Test client for the pyserv project. User add.
import os, sys, getopt, signal, select, socket, time, struct
import random, stat
import pyserv.pydata, pyserv.pyservsup
from pyserv.pyclisup import *
# -------------------... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
041bef78b5bb94c6014103d5f646a004b42d02ed | 10bea3bb308cf956df747797a2e4c50806c74c29 | /es_stats/classes.py | 21835372c9608431c3a58f05751b467799442c6f | [
"Apache-2.0"
] | permissive | untergeek/es_stats | ba9c5016d340ce5e0f58d248631a3bd7d0cbac7d | 107754b703d3f618b849303048af570698ff70b5 | refs/heads/master | 2021-01-18T02:24:35.606051 | 2018-06-18T23:11:36 | 2018-06-18T23:11:36 | 43,716,643 | 1 | 2 | Apache-2.0 | 2018-06-18T23:11:37 | 2015-10-05T22:09:48 | Python | UTF-8 | Python | false | false | 4,201 | py | import logging
from datetime import timedelta, datetime, date
from dotmap import DotMap
from es_stats.exceptions import MissingArgument, NotFound
from es_stats.utils import fix_key, get_value, status_map
class Stats():
"""Stats Parent Class"""
def __init__(self, client, cache_timeout=60):
self.logger ... | [
"aaron@mildensteins.com"
] | aaron@mildensteins.com |
76ef8217576805c45051dd6d27a9aab29e5856f1 | 86877e58469ceede1d7cb9e604d40bf78db03cab | /CosaNostra/CosaNostra/caixa/views.py | a00f03a6b821953238ca272bb547a450ec6cbf98 | [] | no_license | redcliver/CosaNostra1 | ee8f223702de269e3d2819ef318d1749f046f01f | 8105163d33e81bea8cd9ee0384fe0dcb5ffc6fe4 | refs/heads/master | 2022-12-20T20:42:50.721543 | 2017-07-06T21:23:18 | 2017-07-06T21:23:18 | 96,122,898 | 0 | 1 | null | 2022-12-16T17:14:49 | 2017-07-03T15:03:05 | JavaScript | UTF-8 | Python | false | false | 242 | py | from django.shortcuts import render
from caixa.models import Caixa, caixaForm
# Create your views here.
def caixa(request):
total = Caixa.objects.latest('id')
return render(request, 'caixa.html',{'total':total, 'title':'Caixa'})
| [
"igor-peres@hotmail.com"
] | igor-peres@hotmail.com |
6ac8405bc910e476044aa88c3ce8b8a65d1b03c9 | e6f1137903b9658e5e3c1ee51201a931894303b9 | /deepiu/image_caption/evaluate/flickr/evaluate-sim.py | 8a9dc7e2ac72f01c2e9b7a1da2b2f13758e5db83 | [] | no_license | fword/hasky | 8ed69ef85bb34823d9ade27bb3b19aac02872440 | d3c680ffa04f7487b931a5575977798157b42b7e | refs/heads/master | 2021-01-23T01:18:49.275631 | 2017-03-18T13:01:27 | 2017-03-18T13:01:27 | 85,898,744 | 1 | 1 | null | 2017-03-23T02:39:06 | 2017-03-23T02:39:06 | null | UTF-8 | Python | false | false | 1,920 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file evaluate-sim-score.py
# \author chenghuige
# \date 2016-09-25 00:46:53.890615
# \Description
# =====================================================... | [
"29109317@qq.com"
] | 29109317@qq.com |
acf01c4ce1cff679356098ce7196eddb1fc98377 | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartA/py二叉树的右视图的值.py | 15013ae978fb5e5a06c178e722ac525717737886 | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py |
# 二叉树的右视图,从右面观察自上而下得到的数字。
from typing import List
import collections
class TreeNode():
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def rightSideView(self, root: TreeNode) -> List[int]:
if not root:
return []
d ... | [
"2901429479@qq.com"
] | 2901429479@qq.com |
73d2b49fef64f068a0bf549d70c8e8853eefbf7c | 7e9c0243c48bbf0ddca9779ef03fc13bb9ac0496 | /t7.py | c021b58cb55800b8d11651d1ea53d3e04e9963ee | [] | no_license | suchismitarout/tt | c47f1f59659d2678392e2f0c3aaee8cfaa147ff4 | 54a5b625a82dab854b679050d67e340e74d71edd | refs/heads/master | 2020-09-16T20:25:34.146741 | 2019-11-25T06:52:07 | 2019-11-25T06:52:07 | 223,880,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | import random
print(random.randrange(1,50,2)) | [
"suchismitarout47@gmail.com"
] | suchismitarout47@gmail.com |
b188bb08059b220c0b02e7fb4a69c87c27808ee0 | 0e78b2df0fb93afc62684dece8ac05b700570248 | /Programmers/level 1/하샤드 수.py | 44c027309ee56c8e8296de090ba1885b51795c88 | [] | no_license | ajy720/Algorithm | f1e2301327db09667ba011bc317c8f380707c25c | b141538802e9056f154ab91c816ad29500505f34 | refs/heads/master | 2022-05-06T21:37:05.780170 | 2022-04-23T09:25:52 | 2022-04-23T09:25:52 | 200,335,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | def solution(x):
return x % sum([int(i) for i in str(x)]) == 0
if __name__ == "__main__":
print(solution(10))
print(solution(12))
print(solution(11))
print(solution(13))
| [
"ajy720@gmail.com"
] | ajy720@gmail.com |
62750e5346e73d046d690b1f23f4087f379c5cb3 | 659d41f0c737dffc2a6ebd5e773a6513da32e5ba | /scripts_OLD/experiments/Experiments729/excitation_blue_heat_rabi.py | 6fbaba7658e659d9fed96158129b0833dc9c237f | [] | no_license | HaeffnerLab/sqip | b3d4d570becb1022083ea01fea9472115a183ace | 5d18f167bd9a5344dcae3c13cc5a84213fb7c199 | refs/heads/master | 2020-05-21T23:11:10.448549 | 2019-11-21T02:00:58 | 2019-11-21T02:00:58 | 19,164,232 | 0 | 0 | null | 2019-11-04T04:39:37 | 2014-04-25T23:54:47 | Python | UTF-8 | Python | false | false | 2,875 | py | from sqip.scripts.PulseSequences.blue_heat_rabi import blue_heat_rabi
from excitation_729 import excitation_729
class excitation_blue_heat_rabi(excitation_729):
name = 'ExcitationBlueHeatRabi'
required_parameters = [('OpticalPumping','frequency_selection'),
('OpticalPumping... | [
"haeffnerlab@gmail.com"
] | haeffnerlab@gmail.com |
736d63238510a228c5f27556a260fb7591b26b07 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /load_balancer_fuzzer_mcs/interreplay_80_l_5/openflow_replay_config.py | d63147365fe93a114655f0f9a5257f72a6979bf3 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import OpenFlowReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd... | [
"jefflai2@gmail.com"
] | jefflai2@gmail.com |
6d42049c3fa220a9f96eef07c07024ac64b34b17 | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /51nod/1402.py | 9442d55aaa3e23f7611e59eb1b3e142bffcfa71a | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | INF = 0xdeadbeef
def solve():
(n, m) = map(int, raw_input().split())
stubs = [{'pos': 1, 'value': 0}]
for i in xrange(m):
(a, b) = map(int, raw_input().split())
stubs.append({
'pos': a,
'value': b,
})
stubs.append({
'pos': n,
'value': n -... | [
"mail.kuuy@gmail.com"
] | mail.kuuy@gmail.com |
a4ff759375f9c5cb6c013ff41796ee243f6b6732 | 44011148de4b90de98ebfa91e0ef4ad4cbae9f54 | /test/test_render_gan.py | ecda76320e97f4d2489f9b5d568570051dfc725c | [] | no_license | Kraitos93/deepdecoder | 47710104d5c99da8f01697cd51f3a171b4f3dc4b | 94aac6a556ce9ab6c958064fcefc79f4a61b8a2e | refs/heads/master | 2020-08-04T09:00:22.074857 | 2019-10-05T11:51:04 | 2019-10-05T11:51:04 | 212,081,980 | 0 | 0 | null | 2019-10-01T11:44:06 | 2019-10-01T11:44:06 | null | UTF-8 | Python | false | false | 6,186 | py | # Copyright 2016 Leon Sixt
#
# 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, sof... | [
"github@leon-sixt.de"
] | github@leon-sixt.de |
08565dc68305575ca594c05f96095da058655446 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190117213221.py | e2c08605c7a1fc9b9f6ff93f6be10e679da85023 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
9eebf839d15805965841e8a5f404ea3e929d0da6 | 79e19819aec49b500825f82a7de149eb6a0ba81d | /BJ/13164.py | fcae6dd7324cfbce73e566283a5ab494071ddc21 | [] | no_license | seoyeonhwng/algorithm | 635e5dc4a2e9e1c50dc0c75d9a2a334110bb8e26 | 90406ee75de69996e666ea505ff5d9045c2ad941 | refs/heads/master | 2023-05-03T16:51:48.454619 | 2021-05-26T00:54:40 | 2021-05-26T00:54:40 | 297,548,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # N명을 K개의 조로 나눈다 (비용이 적게 들도록)
N, K = map(int, input().split(' '))
nums = list(map(int, input().split(' ')))
nums.sort()
diff = []
for i in range(N-1):
diff.append(nums[i+1] - nums[i])
diff.sort()
for _ in range(K-1):
if diff:
diff.pop()
print(sum(diff)) | [
"seoyeon@nowbusking.com"
] | seoyeon@nowbusking.com |
8c8464a28bcd0621e5dbe2efab1cbe12417fe718 | 90444841d552165c39fd45aa123ff6eb80998e14 | /python/paddle/distributed/fleet/meta_optimizers/graph_execution_optimizer.py | 0ad9e5680eab4a1beb340359e1af44fce9217097 | [
"Apache-2.0"
] | permissive | wozna/Paddle | a64649758f0e0398e584d8030cf7f237e06205f9 | 0ecf441af14d554c85f69a206e3e3a9bdd86fb13 | refs/heads/develop | 2023-04-08T10:21:26.973852 | 2020-09-28T13:50:20 | 2020-09-28T13:50:20 | 197,387,613 | 1 | 0 | Apache-2.0 | 2020-11-03T14:21:18 | 2019-07-17T12:43:39 | Python | UTF-8 | Python | false | false | 9,057 | py | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | wozna.noreply@github.com |
a62d20425d709a32a06188ceefc141645920bd90 | c9f67529e10eb85195126cfa9ada2e80a834d373 | /lib/python3.5/site-packages/torch/nn/utils/rnn.py | fb21026695477ecde026e1594aa1c343c2d930f0 | [
"Apache-2.0"
] | permissive | chilung/dllab-5-1-ngraph | 10d6df73ea421bfaf998e73e514972d0cbe5be13 | 2af28db42d9dc2586396b6f38d02977cac0902a6 | refs/heads/master | 2022-12-17T19:14:46.848661 | 2019-01-14T12:27:07 | 2019-01-14T12:27:07 | 165,513,937 | 0 | 1 | Apache-2.0 | 2022-12-08T04:59:31 | 2019-01-13T14:19:16 | Python | UTF-8 | Python | false | false | 13,172 | py | from collections import namedtuple
import torch
import torch.onnx
from .._functions.packing import PackPadded
PackedSequence_ = namedtuple('PackedSequence', ['data', 'batch_sizes'])
class PackedSequence(PackedSequence_):
r"""Holds the data and list of :attr:`batch_sizes` of a packed sequence.
All RNN mod... | [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw |
4befac21ec6da43ffa31ef455e8d5ad735a8e321 | d5b1f89bd363308ae2eb3664d7325e2955f001c6 | /apps/rss_feeds/views.py | 6a757994a9fbf6ccac64407b06a6820ee79e9410 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mrcrabby/NewsBlur | abc63ae566645f02618ceba4ea878e4c518404c1 | 5578d47383a740686480e6e95b4367fa5f5bb46a | refs/heads/master | 2021-01-18T05:29:46.819569 | 2011-11-01T07:20:06 | 2011-11-01T07:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,585 | py | import datetime
from utils import log as logging
from django.shortcuts import get_object_or_404, render_to_response
from django.http import HttpResponseForbidden
from django.db.models import Q
from django.contrib.auth.decorators import login_required
from django.template import RequestContext
# from django.db import In... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
a7f0b44f3730d3af42371f9e1a61da93407cfb1e | 8195e6ea99ee441ba2c23dd9dba7ceecfece37b7 | /rev1/isic_acid/isic_utils.py | 63445af82d223b81a5d3edc5f0ad9d7b157bb6c0 | [] | no_license | msglbqbqb/adv2 | f2693576dd15c73c1b0322a0bf75972a75e97f70 | e3472df42197fe6dbe035412d43a9205ede880c2 | refs/heads/main | 2023-06-03T05:31:02.820935 | 2021-06-17T16:06:59 | 2021-06-17T16:06:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | import os
import csv
import numpy as np
from PIL import Image
from torch.utils.data import Dataset, DataLoader
from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor, RandomCrop
ISIC_EVAL_TRANSFORMS = Compose([
CenterCrop(224),
ToTenso... | [
"ting@tings-imac.lan"
] | ting@tings-imac.lan |
43bf62a1409bfc2c634d19aca55f9e313d842cc3 | 66d36f30d03710ea2914e53ff1b1f3fc2bd398be | /models.py | 410823084cc0609d8ad8226cc4196b1ec06a3e41 | [] | no_license | volodymyrhusak/Stack-Overflow-Telegram-Bot | 742fcb40ab257ebf4f4223025cf8c8f5f443cc97 | 8f9d1f80a993f97aca93987f7ca74ba821e9dd32 | refs/heads/master | 2020-03-19T14:48:56.726128 | 2018-06-08T16:07:26 | 2018-06-08T16:07:26 | 136,640,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | # -*- coding: utf-8 -*-
import logging
import re
from datetime import datetime, timedelta
from sqlalchemy import Column, Integer, String, ForeignKey, Table, DateTime
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship, scope... | [
"vovatrap@gmail.com"
] | vovatrap@gmail.com |
19e187edf0231370aa1f7dc150520f2b38d559a8 | 3bbcda4d74d9aa65e5c705352a4a60d9db0c6a42 | /third_party/github.com/ansible/awx/awx_collection/plugins/modules/tower_meta.py | 9455bdf0f4fbbf074ff09cfa6edd75c1df1f8304 | [
"Apache-2.0",
"GPL-3.0-or-later",
"JSON",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only"
] | permissive | mzachariasz/sap-deployment-automation | 82ecccb5a438eaee66f14b4448d4abb15313d989 | cb4710f07bb01248de4255a0dc5e48eda24e2d63 | refs/heads/master | 2023-06-25T15:09:53.505167 | 2021-07-23T18:47:21 | 2021-07-23T18:47:21 | 388,017,328 | 1 | 0 | Apache-2.0 | 2021-07-23T18:47:22 | 2021-07-21T06:29:55 | HCL | UTF-8 | Python | false | false | 2,010 | py | #!/usr/bin/python
# coding: utf-8 -*-
# (c) 2020, Ansible by Red Hat, Inc
# 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',
... | [
"joseph.wright@googlecloud.corp-partner.google.com"
] | joseph.wright@googlecloud.corp-partner.google.com |
a986e3f223770e13e97a1035517977e508620767 | 8d0323316b0ef0b16666259335b6e823e05c555c | /snippets/serializers.py | a11392cfb39b2f9ab1204281ed8d32fe93d07a9c | [] | no_license | kremerben/restframe | 74a2de6fc84d205f14494ffb0e631fdf859b9f35 | 5f787e1670f8e7b76e6c2d6c37fb3315e3bf7cf6 | refs/heads/master | 2020-03-28T19:22:24.025779 | 2019-03-12T06:15:47 | 2019-03-12T06:15:47 | 27,579,918 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | from django.forms import widgets
from rest_framework import serializers
from rest_framework.response import Response
from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
from django.contrib.auth.models import User
class SnippetSerializer(serializers.HyperlinkedModelSerializer):
owner = serializers... | [
"kremerdesign@gmail.com"
] | kremerdesign@gmail.com |
1e6bf7810c6d15c79a8bbab0443c62e75fe99139 | 6841787dc208198535c90ee76d035d8837f8b973 | /alipay/aop/api/domain/EcomSellerDTO.py | e9cd853bffc65184964b2962b32ce656e0549ca1 | [
"Apache-2.0"
] | permissive | demlution/alipay-sdk-python-all | e56ea12651717476f940212c281b6c2199dd3fa6 | c3cb81aa5980913e7cd51edcf754a804495a9a30 | refs/heads/master | 2022-10-09T02:08:28.789764 | 2022-09-20T04:32:03 | 2022-09-20T04:32:03 | 263,779,638 | 0 | 1 | null | 2020-05-14T00:58:51 | 2020-05-14T00:58:51 | null | UTF-8 | Python | false | false | 9,088 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class EcomSellerDTO(object):
def __init__(self):
self._alipay_id = None
self._attributes = None
self._bank_card_holder_name = None
self._bank_card_no = None
self... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
3f45c5413bf1253e02662e34eb7e873891cd6ce2 | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/shade/tests/unit/test_create_server.py | 799c76e356967302321d653101367b39ef69fb8c | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 13,737 | 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, softw... | [
"admin@example.com"
] | admin@example.com |
9051f1e79e62c211cbe7db02392385020c0829aa | 62974b03a14008f950db0c68d5962311a3401d3b | /others/modules/iterator_practice/p3_findfiles.py | a21046c1b2f769e9712b0438912432673fa0b2fd | [] | no_license | wuxu1019/leetcode_sophia | 818f39e8324aaf2b588150b1f7edbc2897f64935 | 0e99f9a5226507706b3ee66fd04bae813755ef40 | refs/heads/master | 2018-10-13T13:58:29.762836 | 2018-07-24T04:20:23 | 2018-07-24T04:20:23 | 111,624,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | """
Problem 3: Write a function findfiles that recursively descends the directory tree for the specified directory and generates paths of all the files in the tree.
"""
import os
from os.path import isfile, join
def readfolder(mydir):
allitems = (i for i in os.listdir(mydir))
for item in allitems:
ite... | [
"wuxu1019@hotmail.com"
] | wuxu1019@hotmail.com |
2c2556bec50d3a18d8358da5f2a87c1adf7e565e | 311e9f909ec8c63c40a6b09d70006da4f2e0a7d5 | /tfx/components/infra_validator/model_server_runners/kubernetes_runner.py | 02084b0b601c5a6ff4d6d797678295aeed4f7894 | [
"Apache-2.0"
] | permissive | 18jeffreyma/tfx | 793fbc6c0597d88d16ac551bae9eddfd18ff1542 | ff6917997340401570d05a4d3ebd6e8ab5760495 | refs/heads/master | 2022-12-15T16:18:15.578839 | 2020-08-31T20:34:05 | 2020-08-31T20:34:56 | 274,276,728 | 3 | 0 | Apache-2.0 | 2020-09-16T18:58:02 | 2020-06-23T01:08:19 | Python | UTF-8 | Python | false | false | 12,474 | py | # Lint as: python2, python3
# Copyright 2020 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 req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
db59d7781b706c4784322b16b59bc6e5d93f1f86 | 79b42f0d7a8099ec3ccdc5391db03b0e86e219d4 | /apps/first_app/views.py | 2ed56737a4c14ca4f15ec64a8134ace3b78ab008 | [] | no_license | philmccormick23/Books-and-Authors | d8cb426cf727856f0209b57f45b038fe573ec5d1 | cc8dc254522880a6a2bdc8e95280f5218d58818c | refs/heads/master | 2020-04-02T15:16:38.919286 | 2018-10-24T19:56:46 | 2018-10-24T19:56:46 | 154,561,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from django.shortcuts import render, HttpResponse, redirect
from time import gmtime, strftime
from django.contrib import messages
from django.utils.crypto import get_random_string
import random
# the index function is called when root is visited
def index(request):
request='Hello Worldasdgsdfgsd'
return HttpR... | [
"phillipmccormick@Phillips-MacBook-Pro.local"
] | phillipmccormick@Phillips-MacBook-Pro.local |
884bce5520b84b8235ee39c071f14837f0ee5823 | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1alpha1_runtime_class_list.py | 9beee41b3f06b9f4b8be451de956596d685cdc6b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,881 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
301d77c7626a9d3f7523c79984d5911f1d1495a8 | 65ca89b39c61368e6930d3b576177f8765bbce7e | /backend/vendor_manager_27385/urls.py | dca1965f79bbd0723719e7230abf6bf5cfe2c4ef | [] | no_license | crowdbotics-apps/vendor-manager-27385 | c1ee71fee6fd36a0da0422e4570766870cb57fba | 90e1e495a860c2285695bf4fbf9814a61e744acf | refs/heads/master | 2023-05-02T19:36:15.514274 | 2021-05-25T17:50:24 | 2021-05-25T17:50:24 | 370,780,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | """vendor_manager_27385 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home'... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6535e62767756289b864ed609e571336ac927658 | f83926753d6af8f793624876e159c2efe0426d4e | /github3/__init__.py | 4504dce57c4c117e9140e9e3a38ce69dd5bf3fd2 | [
"BSD-3-Clause"
] | permissive | dwpachura/github3.py | 16f76b96983fb3be357d610f6fc41225abc8c278 | aeb6bd9b6ea5f1582c62d6c409ad967575b46d9d | refs/heads/master | 2021-01-18T09:46:45.460097 | 2013-03-19T04:02:00 | 2013-03-19T04:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | """
github3
=======
See http://github3py.rtfd.org/ for documentation.
:copyright: (c) 2012-2013 by Ian Cordasco
:license: Modified BSD, see LICENSE for more details
"""
__title__ = 'github3'
__author__ = 'Ian Cordasco'
__license__ = 'Modified BSD'
__copyright__ = 'Copyright 2012-2013 Ian Cordasco'
__version__ = '0.... | [
"graffatcolmingov@gmail.com"
] | graffatcolmingov@gmail.com |
5da29cd84a121fdd7f920983a2b0f5c3db5827df | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0914-X-of-a-Kind-in-a-Deck-of-Cards/soln-1.py | 61dba461a8afbcefe713cff31c3c272066ae8555 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 170 | py | import functools
class Solution:
def hasGroupsSizeX(self, deck: List[int]) -> bool:
return functools.reduce(math.gcd, collections.Counter(deck).values()) > 1
| [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
137bde6096b3d1d5c02b464c0529b3069a1b1cca | a3926c09872e1f74b57431fbb3e711918a11dc0a | /python/two_pointers/0838_push_dominoes.py | 7bbd7b71e68948d9023778ccd0e056db2eda7b9d | [
"MIT"
] | permissive | linshaoyong/leetcode | e64297dc6afcebcee0614a153a566323bf223779 | 57080da5fbe5d62cbc0b8a34e362a8b0978d5b59 | refs/heads/main | 2022-09-15T00:05:36.476268 | 2022-08-16T14:09:11 | 2022-08-16T14:09:11 | 196,914,051 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | class Solution(object):
def pushDominoes(self, dominoes):
"""
:type dominoes: str
:rtype: str
"""
def test_push_dominoes():
s = Solution()
assert "LL.RR.LLRRLL.." == s.pushDominoes(".L.R...LR..L..")
assert "RR.L" == s.pushDominoes("RR.L")
| [
"linshaoyong@gmail.com"
] | linshaoyong@gmail.com |
8aa8616796029bf073bb83c64aac8df65e741e2b | 313203cd01705e08bc8967246bfeacb7fa5cd6c9 | /Untitled Folder 2/newpython/while.py | fadab28fe0047c56921119021d4e837134b8da08 | [] | no_license | Nitesh101/Nitesh_old_backup | 17d9c8e8f9694c0ef4d995de7cbb694080523b22 | a0b0263e204f2f46c51e6f20990024396eb0ccb7 | refs/heads/master | 2020-03-19T20:51:51.587343 | 2018-09-21T09:42:11 | 2018-09-21T09:42:11 | 136,919,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #!/usr/bin/python
number = [6,5,5,4,3,8]
val = 0
count = 0
while(count<len(number)):
val = val+number[count]
count +=1
print val
number = input("please enter a number: ")
val = 0
count = 0
while(number>0):
val = val+number
number = input("please enter a number: ")
else:
print val
| [
"m.veeranitesh@gmail.com"
] | m.veeranitesh@gmail.com |
f7be98114576d19667f2162d0d63ae8a0a97aa65 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/copp/arpallowhist1d.py | 0a09e98b553aaee8960dd4f5f8a952997a1b16ca | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 31,542 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
1bb7bb000cfdc469e8de76488ffbcd5a6586b09d | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-258.py | 28105ca757381b5f04da3841c4cc71979190abc2 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,289 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
92d30441bd6bbf57baff548e421acda9c12af07b | 836ff767d624700ae789343f80ccee0e6e8e7195 | /backend/facebook_24425/settings.py | 1619fa7a15753df56c30671bb9f7975b758cb812 | [] | no_license | crowdbotics-apps/facebook-24425 | 4beae45900a6c964a2c3f83e3fc0c68e680acd4f | 7a8250e80829b4551910dcc10f34feacfb389144 | refs/heads/master | 2023-03-01T05:47:59.301424 | 2021-02-10T02:29:37 | 2021-02-10T02:29:37 | 337,595,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,029 | py | """
Django settings for facebook_24425 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0468ce48a4648520dccdfd14dcd5339b30f0430e | 8e907b84175c08397b7ea0eea3c7aa5f90a58f28 | /aligulac/faq/admin.py | 9dbce924f5741a83664c28d08239026acfe9a560 | [] | no_license | TheBB/aligulac | 7e5c081b608278368563650307a521691211ef05 | 4b18637a6efb898821f15beac9947551aca2a424 | refs/heads/master | 2022-12-12T05:16:10.186091 | 2022-02-17T06:29:31 | 2022-04-20T11:24:29 | 7,734,890 | 212 | 31 | null | 2022-12-08T05:19:48 | 2013-01-21T15:38:48 | Python | UTF-8 | Python | false | false | 173 | py | from faq.models import Post
from django.contrib import admin
class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'index')
admin.site.register(Post, PostAdmin)
| [
"evfonn@gmail.com"
] | evfonn@gmail.com |
aa54f8ec015e88bd69455fada79e487a4a192559 | 30161800cc6bf7cf5df079a053ea7cfdaab72eb3 | /project_info.py | 0298850784c90a53da6f52f0ce87004bdb05087d | [] | no_license | GiantMolecularCloud/NGC253-imaging | 42cba6eedf6550a49930550074a5ce27fd59ac2f | 7b403109fb7a43965089bb83b16c9df31a9d9e1d | refs/heads/main | 2023-02-28T08:34:27.004525 | 2021-02-05T16:40:24 | 2021-02-05T16:40:24 | 336,315,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,953 | py | ####################################################################################################
# NGC 253 PROJECT INFO
####################################################################################################
# data setup
global projectdir; projectdir = 'XXXXX'
global logdir; logdir = os.path.j... | [
"26749617+GiantMolecularCloud@users.noreply.github.com"
] | 26749617+GiantMolecularCloud@users.noreply.github.com |
05ddaa6cd1eb60a502a20f78f4090c4783f44c90 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_minima_trajectory1.py | 80c3d35403c790a7e1ed8e1fdef980f3fed7eac6 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from xcp2k.inputsection import InputSection
from _each427 import _each427
class _minima_trajectory1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Filename = None
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b8f96a69c5ab7f811d502efcc049b0ae3412d633 | c991da8bae5a74dec3e6400ca780206758b9840a | /old/Session002/Trees/ImplementMagicDictionary.py | 349c2cd4dfd8c2a5420f6cd075a9455fb1fabe35 | [] | no_license | MaxIakovliev/algorithms | 0503baca3d35c8ad89eca8821c5b2928d805064b | 54d3d9530b25272d4a2e5dc33e7035c44f506dc5 | refs/heads/master | 2021-07-23T02:21:18.443979 | 2021-07-18T08:05:37 | 2021-07-18T08:05:37 | 45,613,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | class MagicDictionary:
def __init__(self):
"""
Initialize your data structure here.
"""
self.root=self.TrieNode()
def buildDict(self, dict: 'List[str]') -> None:
"""
Build a dictionary through a list of words
"""
for item in dict:
... | [
"max.iakovliev@gmail.com"
] | max.iakovliev@gmail.com |
4c0499f89614ce9b6e4ec6db2f06e92eff1361d5 | e8dba002d8916a468e559a52f254c0d92532d6b2 | /tests/components/sensor/test_recorder.py | 65b0a0b94856761d35ce70676ff9ef42acca2c02 | [
"Apache-2.0"
] | permissive | thomasgermain/home-assistant | 32b0f4d888220f4ce49dc85e506d0db39445c6c0 | 9673b93842ddcecc7e6a6d65e6d4f5b8a1089c43 | refs/heads/vaillant | 2023-08-21T23:50:24.679456 | 2020-05-20T21:01:18 | 2023-08-03T07:11:35 | 197,781,893 | 8 | 4 | Apache-2.0 | 2023-02-10T06:56:47 | 2019-07-19T13:57:53 | Python | UTF-8 | Python | false | false | 178,636 | py | """The tests for sensor recorder platform."""
from collections.abc import Callable
# pylint: disable=invalid-name
from datetime import datetime, timedelta
import math
from statistics import mean
from unittest.mock import patch
from freezegun import freeze_time
from freezegun.api import FrozenDateTimeFactory
import py... | [
"noreply@github.com"
] | thomasgermain.noreply@github.com |
a7781db1cff3316975a8834a29b93fa2fd00607f | 5d5cf951f1df36b9ab196e21b60dc87a100350d8 | /site-packages/jedi/parser/fast.py | adbcddabc792e412ebb0e8b9f1c063f124fd18e0 | [
"MIT"
] | permissive | Ulysses3/Pyto | 70cfdb635f15cdf61feaf046e7ad30708486c2dc | 60a49c9ea12ceac5d04a17d77984d8866e698200 | refs/heads/master | 2020-08-27T07:20:50.663719 | 2019-10-24T00:31:26 | 2019-10-24T00:31:26 | 217,282,196 | 1 | 0 | MIT | 2019-10-24T11:25:19 | 2019-10-24T11:25:19 | null | UTF-8 | Python | false | false | 21,607 | py | #\input texinfo
"""
Basically a parser that is faster, because it tries to parse only parts and if
anything changes, it only reparses the changed parts. But because it's not
finished (and still not working as I want), I won't document it any further.
"""
import re
from itertools import chain
from jedi._compatibility ... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
4d045a86258d8222eb2e66ce64cd97b7875813ea | 13c2639490aa8cc3ecf891ae3422f0e105dd886e | /order/migrations/0003_employeeprofile.py | 88e2fd94f8d8b535380f1bc24b5e07ec98f4ccf3 | [] | no_license | maratovision/rest_api | d32fdfc8d5d8968d2c8ef77aaed05b25d6fa26a0 | b734f3cf1c626f4043dbaa0fa7a6f41ebf9cdcae | refs/heads/main | 2023-04-08T12:54:40.736337 | 2021-04-08T20:24:15 | 2021-04-08T20:24:15 | 356,038,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | # Generated by Django 3.1.7 on 2021-03-16 18:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('order', '0002_auto_20210... | [
"maratovision@gmail.com"
] | maratovision@gmail.com |
985db3675959d57c4993cff7da2e6b70fc4b0f48 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/INTERVIEW-PREP-COMPLETE/notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/dynamic_programming/integer_partition.py | 1b6c6859dac22bb29eea677420a8d1373794901c | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,263 | py | from __future__ import print_function
try:
xrange # Python 2
except NameError:
xrange = range # Python 3
try:
raw_input # Python 2
except NameError:
raw_input = input # Python 3
"""
The number of partitions of a number n into at least k parts equals the number of partitions into exactly k parts
p... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
48768faef946f49ddc4d746686fc343ac9c53bf9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_surprisings.py | 2c4d71f82f2b245c8b21d867e16f54a817d1b211 | [
"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 | 256 | py |
from xai.brain.wordbase.verbs._surprise import _SURPRISE
#calss header
class _SURPRISINGS(_SURPRISE, ):
def __init__(self,):
_SURPRISE.__init__(self)
self.name = "SURPRISINGS"
self.specie = 'verbs'
self.basic = "surprise"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a238b18b33944c7adef77cc7d12dcaa958350fb8 | b785b30ea8e8321ecadd9c11ad324ebb9e6e9704 | /ds/2darray.py | a035d5896981391edb03c74fa4910289564fd533 | [] | no_license | santoshgawande/PythonPractices | 8d01e7274906c5c4c8df71d59fddda4b22aa20db | 35e220304fb00cb3f9c53ad1de8e6ed4b190d1b7 | refs/heads/master | 2022-08-10T21:37:40.072826 | 2022-07-27T15:25:57 | 2022-07-27T15:25:57 | 209,746,642 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | #write program which takes two digits m(row) and n(col) as an input and generate 2 dimensional array.
m = int(input('Number of row '))
n = int(input('Number of column '))
arr = []
row = []
for i in range(0, m):
for j in range(0, n):
row.append(i*j)
arr.append(row)
row = []
print(arr)
| [
"gawandesantos@gmail.com"
] | gawandesantos@gmail.com |
ac8260409526b495fa882e9cb18b060531867ba4 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_intone.py | 195142c3a66bc87399ab3b51194c2eb8ad724f5a | [
"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 | 361 | py |
#calss header
class _INTONE():
def __init__(self,):
self.name = "INTONE"
self.definitions = [u'to say something slowly and seriously in a voice that does not rise or fall much: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1f7cb034cc49997d1343d6e730d86a0d93a9cfe3 | a982d8f9fd99c4af077dcafc1092a0f3779d9b39 | /web_pjt/web_pjt/articles/migrations/0003_genre_movie.py | 9cfd93860c5b8299e453ac42ad48a9172b9c5f33 | [] | no_license | do-park/DDDJ | cbe4586a583618b616eaab19014ba16e69b38f06 | 22b53bb4822d7e0b61f5a8226bbadb9b9cb20ea0 | refs/heads/master | 2023-01-12T14:30:16.303107 | 2020-11-07T16:09:11 | 2020-11-07T16:09:11 | 273,131,598 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | # Generated by Django 2.1.15 on 2020-06-11 14:30
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('articles', '0002_auto_20200611_1446'),
]
operat... | [
"dohee.pa@gmail.com"
] | dohee.pa@gmail.com |
4ee6a32ecfe2d512d3213de050c7ee46eb75e0b3 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-batchai/tests/test_mgmt_batchai_quota_and_usage.py | 9b5b949585e5bb3a6274f6e0eabac4f2b6f9c5b0 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 930 | 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.
# ---------------------------------------------------------------------... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
8ffaf571e15e255d54a897742cc531728174cf1e | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /FEM_Python_Heat_Stress_Krysl/IntegrEffectQ4.py | b66036d60dd2b4ee5e227b1a48e41cd9d6a6895f | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 6,354 | py | # Finite Element Modeling with Abaqus and Python for Thermal and
# Stress Analysis
# (C) 2017, Petr Krysl
#
"""
Square domain with partial temperature boundary condition
and partial insulated boundary condition. Finite element mesh
that consists of four-node quadrilaterals.
"""
import math
from numpy imp... | [
"me@yomama.com"
] | me@yomama.com |
fe8afa11cf9a3ecba7a10c4c1b266c0867df1b52 | 95dc06956c89e301f19da7dafb7238afc2988f94 | /com/chen/data_analysis/numpy/part05_less_basic/mandelbrot_set.py | cb4c26edc2c9b108d5400c1aecc645a9ed90a69c | [] | no_license | giraffe-tree/PythonDemo | a87d41b0b4c671b99f99460a508ac33b9954c427 | 387c50bad4b21b5c10cf79b8dfc3cdae1e95ef15 | refs/heads/master | 2021-08-20T07:23:04.348856 | 2017-11-28T14:28:14 | 2017-11-28T14:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import numpy as np
import matplotlib.pyplot as plt
def mandelbrot(h, w, maxit=20):
"""Returns an image of the Mandelbrot fractal of size (h,w)."""
y, x = np.ogrid[-1.4:1.4:h * 1j, -2:0.8:w * 1j]
c = x + y * 1j
z = c
divtime = maxit + np.zeros(z.shape, dtype=int)
for i in range(maxit):
... | [
"15355498770@163.com"
] | 15355498770@163.com |
b0f8c9af2d08bf87463ca04dead760df272b91f6 | 0e281bf6521ef97fd3fddf66fa9e0f44ee75f7b8 | /ZDY/Jan_all/pythonheigher/January0118/morning/mul_inh.py | eda7c854bf8b239ddb57eac1b3808817137597d3 | [] | no_license | suprviserpy632157/zdy | a0e2de17504f2c9259089f47707d06f4cd23c4ca | 66711df7822000e3dbaad9642959289aee0ec039 | refs/heads/master | 2020-04-27T16:26:31.924180 | 2019-03-11T02:40:44 | 2019-03-11T02:40:44 | 174,483,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | # 多重继承实例
# 超人类继承自战士,飞行者,喷火者
# 三个类
class Fighter:
def fight(self):
print("我能打")
def roar(self):
print("战士吼叫:打死你个龟孙!!!")
class Flyer:
def fly(self):
print("我能上天")
def roar(self):
print("飞行者吼叫:好尴尬呀!")
class Firer:
def fire(self):
print("我能吐火")
# 超人类继承自战士,飞行者,喷火... | [
"1114265266@qq.com"
] | 1114265266@qq.com |
25135a20c638f7b71fb2ae7f6c88fe3af112eca1 | 7533acbcf36b196e5513fad2b3c9623411500f0f | /0x0C-python-almost_a_circle/tests/test_models/test_Base.py | 731d7ca9f8ec2d16bbe0fd0fabf8c3e0b55a2d1a | [] | no_license | AndrewKalil/holbertonschool-higher_level_programming | 97ce8af5ad7e8e9f0b1a25d7fa7dcb1a2b40810e | 9bef1f7c8ff9d8e90ec2aed7a29f37cec3a5e590 | refs/heads/master | 2022-12-17T19:02:12.096913 | 2020-09-23T00:00:44 | 2020-09-23T00:00:44 | 259,439,815 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,266 | py | #!/usr/bin/python3
"""Base unitests"""
from models.base import Base
from models.rectangle import Rectangle
from models.square import Square
import unittest
import json
class BaseTest(unittest.TestCase):
"""tests for base class"""
def test_init(self):
"""tests for instantiation"""
test1 = Base... | [
"1541@holbertonschool.com"
] | 1541@holbertonschool.com |
326c6769218c1fbbdcab952cef66298900eaf323 | caaf56727714f8c03be38710bc7d0434c3ec5b11 | /homeassistant/components/google_travel_time/__init__.py | 9d9a7cffe1ddd4d08ef7e2686d6f33f86f846f63 | [
"Apache-2.0"
] | permissive | tchellomello/home-assistant | c8db86880619d7467901fd145f27e0f2f1a79acc | ed4ab403deaed9e8c95e0db728477fcb012bf4fa | refs/heads/dev | 2023-01-27T23:48:17.550374 | 2020-09-18T01:18:55 | 2020-09-18T01:18:55 | 62,690,461 | 8 | 1 | Apache-2.0 | 2023-01-13T06:02:03 | 2016-07-06T04:13:49 | Python | UTF-8 | Python | false | false | 40 | py | """The google_travel_time component."""
| [
"noreply@github.com"
] | tchellomello.noreply@github.com |
a7876ed184362fc5da676658a3c7a9fa0f987de3 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /chart_studio/api/v2/__init__.py | c248f72543de00a9af9a64a23be275d90d006154 | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 245 | py | from __future__ import absolute_import
from chart_studio.api.v2 import (dash_apps, dashboards, files, folders, grids,
images, plot_schema, plots,
spectacle_presentations, users)
| [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
eb54f6eec1733edcca5a72e050c3a319351b8b74 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/bgpipv4adl2vpn.py | 00999456900d6a42bb7ef01ea44d1a209c0c4ec8 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 24,717 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
9b7d2a15acbf60ca0a565cb6d01301367663978a | 494b1a4bba8129f8292e9e7aced7080c891d004c | /newsletter_signup/admin.py | b4b7d449b2c21d6264178542dc934c4dbb5df8d3 | [
"MIT"
] | permissive | reason-systems/django-newsletter-signup | dc45c95268cc9c38eb4c0b378f0c2f14ef6e8307 | 82d6e5c79098e9c7a6aba7dbdd08855abe97feb4 | refs/heads/master | 2021-01-18T13:32:02.978087 | 2014-10-31T06:23:43 | 2014-10-31T06:23:43 | 45,921,683 | 0 | 0 | null | 2015-11-13T15:56:50 | 2015-11-10T15:39:13 | Python | UTF-8 | Python | false | false | 399 | py | """Admin classes for the newsletter_signup app."""
from django.contrib import admin
from . import models
class NewsletterSignupAdmin(admin.ModelAdmin):
"""Custom admin for the ``NewsletterSignup`` model."""
list_display = ['email', 'user', 'signup_date', 'verification_date',
'verification... | [
"daniel.kaufhold@bitmazk.com"
] | daniel.kaufhold@bitmazk.com |
943d05a6ecdaa8f9493fd8be33ad166e0a61ae82 | 6c3c2be9f0be83ec2e0ed3cdde256da7903c6b11 | /untitled3.py | b9d70aace77ff1fe06460023c82c1c77c525a99f | [] | no_license | iishchenko/PythonCoursesExercises | a7da57f35ea4244ed4e931fcac589889f5d11bbd | 9fceba00cc4cf4c2ff32c0f77e46d7b774b7cdf1 | refs/heads/master | 2020-05-26T23:37:40.102110 | 2019-05-24T11:52:31 | 2019-05-24T11:52:31 | 188,412,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | hot = True
cold = False
rainy = True
windy = False
snowy = False
if cold or windy or rainy:
print("Jacket: True")
else:
print("Jacket: False")
if cold or snowy or rainy:
print("Boots: True")
else:
print("Boots: False")
if hot and not rainy:
print("Flip-Flops: True")
else:
print("Flip-Flops: ... | [
"irynaira@gmail.com"
] | irynaira@gmail.com |
7da63703ec84f78c20eb32087b799a1a2d0a573c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_announcement.py | 7ec62d0610e968f66572c33b3ff7222a335c3032 | [
"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 | 406 | py |
#calss header
class _ANNOUNCEMENT():
def __init__(self,):
self.name = "ANNOUNCEMENT"
self.definitions = [u'something that someone says officially, giving information about something: ', u'the act of announcing something: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5885d8551f602d0ab481efab6899ba22ffb8ee6d | 55b0abb5494d831b26d771213a37d446a086ca3e | /ch02/variable.py | c61ccc6525f7e0ecd3bd970e8f36455682bb689a | [] | no_license | dondon17/PYTHON | 33e2fdfa6c5937d10f39b99272834fe5c24f85f2 | 573abde7be7b201cd92f0855c5a89ca2e24fbb00 | refs/heads/master | 2022-12-08T05:37:14.005302 | 2020-09-08T02:37:42 | 2020-09-08T02:37:42 | 260,384,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | # c, java에서는 변수의 자료형을 직접 지정해야하지만
# python에서는 변수에 저장된 값을 스스로 판단하여 자료형을 지정한다!
# 1. 변수 복사
print("(1) 주소값 까지 복사: var1 = var2")
a = [1,2,3]
print("list a = {}".format(a))
print("address of a = {}".format(id(a))) # a의 주소값 출력 : id() 함수
b = a # list copy
print("list b = {}".format(b))
print("address of b = {}".for... | [
"qwerqw889@ajou.ac.kr"
] | qwerqw889@ajou.ac.kr |
22716c23ad6cbe22ae569bd580b09308dd4abe6e | 1894100670fd18c509d6316a45845af9e56ee2e0 | /oscar/apps/payment/tests/datacash_responses.py | b6fe5b00bb5867004d55972cd7f04199a169a5d9 | [
"BSD-2-Clause"
] | permissive | AndrewIngram/django-oscar | a22bb7e185e9dc84ae0fe24d7bd2e1150bd87a9a | 5f3f586bdf4f45de87667b88c3cf0836ed34d393 | refs/heads/master | 2021-01-18T06:32:15.776815 | 2011-11-18T18:26:39 | 2011-11-18T18:26:39 | 1,665,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,345 | py | import mock
from decimal import Decimal as D
from xml.dom.minidom import parseString
from django.test import TestCase
from oscar.apps.payment.datacash.utils import Gateway
class AuthResponseHandlingTests(TestCase):
success_response_xml = """<?xml version="1.0" encoding="UTF-8" ?>
<Response>
<CardTxn>
... | [
"david.winterbottom@gmail.com"
] | david.winterbottom@gmail.com |
bb89e799f0a52be338a0844b5ece2f113faf715c | 2bdb128188c40c670fd0a26ca8a447cae58a8848 | /chat_thief/routers/base_router.py | ca321fc5a14b6442a2cc3b120d3a858fb9b524e8 | [] | no_license | cl33per/chat_thief | 3de834cbb722a36f37c5e033e3f8c7672c325ec4 | afb7660eacb3b5f476367eb388b4e6981a49e54a | refs/heads/master | 2022-11-14T13:07:49.213617 | 2020-07-01T16:27:45 | 2020-07-01T16:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from abc import ABC
import abc
from chat_thief.chat_parsers.command_parser import CommandParser
# Routers are for Pairing a Parser Class
class BaseRouter(ABC):
def __init__(self, user, command, args=[], parser=None):
self.user = user
self.command = command
self.args = args
if par... | [
"davidmichaelbe@gmail.com"
] | davidmichaelbe@gmail.com |
10d9131949b04e5c99962ccd5dfe3c52c953c55b | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/restriction.py | a1f74b9fd025f53b91b1bec6dbb2fcfbbc640363 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 4,602 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
b0786dc09dea392e55aafef039b1958c54666590 | 9fb7df549d33b3b3d854d60873b8047c885eedf4 | /lib/maxTables.py | f98baca658c8dd0cfd51304282f25eb6f9e7d283 | [] | no_license | strbean/pubMunch-BRCA | 3a24199440b71469d3fb0135e1d3a9d3823d39b5 | b7eb1270a2f69a262747d1366e0cd16e5b222b5d | refs/heads/master | 2020-03-22T22:57:41.558632 | 2018-09-25T04:59:47 | 2018-09-25T04:59:47 | 140,781,441 | 0 | 0 | null | 2018-07-13T01:29:13 | 2018-07-13T01:29:12 | null | UTF-8 | Python | false | false | 26,100 | py | # Routines for reading/writing tables from/to textfiles or databases
import sys, textwrap, operator, types, logging, re, os, collections, codecs, time, gzip, shutil
# jython doesn't have sqlite3
try:
import sqlite3
except ImportError:
pass
from types import *
import maxCommon, pubGeneric
# Routines for han... | [
"max@soe.ucsc.edu"
] | max@soe.ucsc.edu |
d85d76285afed646438d24f043336d8fbd910667 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D11B/MEQPOSD11BUN.py | e01f8cc24d6268883597eb7eef98861c3ea111f2 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 920 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD11BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 9},
{ID: 'QTY', MIN: 0, MAX: 1},
{ID: 'LOC'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
4296f338dd96f602f99609a53e2a3f614a79f3d9 | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode/1-200/000107/000107_algo2.py | 221fc2769852029e45b3138ad74e0d1c84449662 | [] | no_license | BIAOXYZ/variousCodes | 6c04f3e257dbf87cbe73c98c72aaa384fc033690 | ee59b82125f100970c842d5e1245287c484d6649 | refs/heads/master | 2023-09-04T10:01:31.998311 | 2023-08-26T19:44:39 | 2023-08-26T19:44:39 | 152,967,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | 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 levelOrderBottom(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
... | [
"noreply@github.com"
] | BIAOXYZ.noreply@github.com |
36512dc331fd728885f078ca806e87f8ed309d44 | f0df081af8a46ab5d8f1d6b529347b214f50a308 | /p11_container_most_water.py | 83a4eb1338d1c4dbfa967c57d7602ab8e0c771f7 | [] | no_license | ymwondimu/LeetCode | 81198e468bf87530d1cc894be8e02c929773cae7 | 049fd6dea5557299f921faeadfe5c1c84bf50a2f | refs/heads/master | 2020-03-20T16:54:28.563714 | 2018-11-01T01:18:05 | 2018-11-01T01:18:05 | 137,548,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | class Solution(object):
def maxArea(self, height):
"""
:type height: List[int]
:rtype: int
"""
left_index = 0
right_index = len(height) - 1
max_area = -1
while (left_index < right_index):
new_area = min(height[left_index], height[right_in... | [
"ywondimu6@gatech.edu"
] | ywondimu6@gatech.edu |
5646ea68fb8e0568c5b9e03955d5d251cbd276c6 | 361adca9f871ae8ca03f1d4bedff99b3de5fd0a4 | /cameras/3d_reprojection/scripts/gessand1_corrected_camera_to_eye_task_targets.py | e082f980740b3b13e93a96766874d3532b684c5b | [] | no_license | Berkeley-BORIS/NDS-Code | 123fb76eb7c339a2dd8dd17fd8110520839e4a50 | aca912e22d62980ae78729355ad2b3b761186da3 | refs/heads/master | 2016-09-06T10:30:00.075969 | 2015-03-24T18:44:33 | 2015-03-24T18:44:33 | 39,850,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | from camera_image_to_eye_image_parallel import *
subj = 'gessand1'
fixed_fixations = 'corrected'
if fixed_fixations: # if fixed_fixations isn't empty, we might need to add an underscore
if not fixed_fixations.startswith('_'): # so if it doesn't start with an underscore...
fixed_fixations = '_' + fixed_fixations ... | [
"bill.sprague@berkeley.edu"
] | bill.sprague@berkeley.edu |
68ef52c909226a687002e63d70258fe14682a7eb | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/paulbradshaw/lloydstsb_branches.py | bc449bb28cce8ce48b43efb60fbeed782448ffdd | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132,715 | py | import scraperwiki
import lxml.html
# <meta property="og:latitude" content="51.706070" />
# <meta property="og:longitude" content="-0.417008" />
# <meta property="og:street-address" content="63 High Street " />
# <meta property="og:locality" content="Abbots Langley" />
#<meta property="og:postal-code"... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
82a18b36f13a7bed9c0e501f0813a1d08fcfa72a | 3ad236abe85199688250f20502466ffde3ecd921 | /tkreadonly.py | 3634c1b4aedc6ff4b323bea1a1a5dac5695c6afd | [
"BSD-3-Clause"
] | permissive | pib/tkreadonly | 80f48a38f1fc6987505811ec7f11089cc84fb3c4 | 4af655b594c6e19c41e44fc668326ef26289d225 | refs/heads/master | 2020-12-25T03:11:42.997226 | 2013-08-21T02:17:14 | 2013-08-21T02:17:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,043 | py | try:
from idlelib.WidgetRedirector import WidgetRedirector
except ImportError:
import platform
import sys
if platform.linux_distribution()[0] == 'Ubuntu':
raise Exception("idlelib could not be found. " +
"You may need to install IDLE - try running " +
... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
922d896db6d33ae3ff89e86d924225eb899f00cc | afa0d5a97925273f7fb0befef697d36020df5787 | /packages/google-maps-addressvalidation/setup.py | 5ef7016ab5b7f708ee71bd3ac0206aa73a6c67dc | [
"Apache-2.0"
] | permissive | scooter4j/google-cloud-python | dc7ae1ba6a33a62a40b617b806ec8ed723046b8b | 36b1cf08092d5c07c5971bb46edda7a9928166b1 | refs/heads/master | 2023-04-14T18:36:48.643436 | 2023-04-06T13:19:26 | 2023-04-06T13:19:26 | 188,338,673 | 0 | 0 | null | 2019-05-24T02:27:15 | 2019-05-24T02:27:14 | null | UTF-8 | Python | false | false | 3,001 | py | # -*- coding: utf-8 -*-
# Copyright 2022 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"
] | scooter4j.noreply@github.com |
44194b838f9917516fc2bb94690ec0d372b79d95 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/websms/testcase/firstcases/testcase1_026.py | ef17ab973faa1e6e7ebaa3d75c98ea1ceeeb7111 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,585 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
eb3f55795bb845af9d8bcf5009687d9270234769 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03777/s268916519.py | f3a664eb22c473a614cfc3729c47437ff942bc14 | [] | 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 | 304 | py | #入力
lst = input().split()
a = lst[0]
b = lst[1]
#出力
if a == 'H': #Aは正直
if b == 'H': #Tは正直:真
print('H')
elif b == 'D': #Tは嘘:真
print('D')
elif a == 'D': #Aは嘘
if b == 'H': #Tは正直:偽
print('D')
elif b == 'D': #Tは嘘:偽
print('H') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3d1f19c36c3f5cb07ab6f78f5bd67230de18b286 | c9803fb67b885214f138a805990d77cf4d714818 | /proof_of_work/multiagent/turn_based/v8/matchsm1simulationv8.py | c387b75f8dddc7018cb13e3238baf40ccc79593e | [
"MIT"
] | permissive | michaelneuder/parkes_lab_fa19 | e68247ad5253d54f4d6074593a0e63fe61fcfc18 | 18d9f564e0df9c17ac5d54619ed869d778d4f6a4 | refs/heads/master | 2020-07-12T10:32:15.585380 | 2020-01-26T21:45:05 | 2020-01-26T21:45:05 | 204,792,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from environmentv8 import Environment
from selfishagentv8 import SelfishAgent
import numpy as np
import progressbar as pb
alpha = 0.4
gamma = 0.5
T = 8
selfish_agent = SelfishAgent(T=T)
results = []
for mining_cost in np.arange(0,1.1, 0.1):
env = Environment(alpha=alpha, gamma=gamma, T=T, mining_cost=mining_cost... | [
"michael.neuder@gmail.com"
] | michael.neuder@gmail.com |
f2b6df0b6054a53203b944d9c667b28c06819cda | 5830e2e169d48671e96bb8ee16b10459bccdf72b | /exercism/python/crypto-square/crypto_square.py | ccb5b424d8cd5dfc60297d5242766ebac84822ef | [] | no_license | amymhaddad/solve_it | 9f5372c2efb5dbc032e3650ae0bad170c5f4d559 | fc293023ebc23f74090b9d47d76874224a5549a5 | refs/heads/master | 2023-03-11T16:41:01.645028 | 2020-12-17T16:55:10 | 2020-12-18T17:19:39 | 238,718,845 | 1 | 0 | null | 2023-03-05T13:40:30 | 2020-02-06T15:22:24 | Python | UTF-8 | Python | false | false | 888 | py | import itertools as it
def cipher_text(plain_text):
letters = [char.lower() for char in plain_text if char.isalnum()]
cols, rows = _create_rectangle(letters)
spaces_needed = cols * rows - len(letters)
if spaces_needed:
letters.append(" ")
rectangle = []
start = 0
stop = cols
... | [
"amy.m.haddad@gmail.com"
] | amy.m.haddad@gmail.com |
02c7a17e1e836aa0ad8c2a860d609f4d1d773fdf | 4731f08d4a56ea33d7031d1b2aeed11859c5d722 | /think-python/ch12.Tuples/ex3_most_freq.py | cdec13dd9e3768fe2f57eede1a1f153bd219ec27 | [] | no_license | cshintov/python | 720bdecf30712e472b05a33efa08374e3b7baac9 | 995d07d15e3a709d771b4b1a38356c1f186c13e9 | refs/heads/master | 2021-01-23T06:54:45.302136 | 2015-09-23T16:59:31 | 2015-09-23T16:59:31 | 31,851,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | '''exercise 12.3 Computes the frequency of letters in a string'''
import string as s
def filestring(filename):
return open(filename).read()
#sorts on length (break ties in random order)
def frequency(string):
freq = []
length = float(len(string))
for char in s.lowercase:
fr = string.count(char) / length *... | [
"cshintov@gmail.com"
] | cshintov@gmail.com |
5c508a315cbfa81f327b43b7c3d6caef254e4545 | 51f43f1901d5aad2bce2b5ccd82bd9d5a0b397d1 | /TranskribusDU/graph/FeatureDefinition_PageXml_std_noText_v3.py | 7a6f1daa55991069c06e443bff3b4f9fbd01914b | [
"BSD-3-Clause"
] | permissive | kapitsa2811/TranskribusDU | e1fd32b656ed8e3dcddc62e149647398cc48030e | 9e680b0bf14ea52678f7c4dccad465d5a9d9ee9d | refs/heads/master | 2020-08-09T12:52:52.832320 | 2019-10-01T15:04:38 | 2019-10-01T15:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,854 | py | # -*- coding: utf-8 -*-
"""
Standard PageXml features, but using a QuantileTransformer for numerical features instead of a StandardScaler
Copyright Xerox(C) 2016 JL. Meunier
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... | [
"jean-luc.meunier@naverlabs.com"
] | jean-luc.meunier@naverlabs.com |
1091b74e80087305bce7bfd135c7d0f70dfa56a3 | 262372174ed892d9b69daccb68885aa51e40925f | /cars/migrations/0001_initial.py | 01a5d4f9207b747b36552774d9dd548229012105 | [] | no_license | ingafter60/django_carzone | 375cb1f2a15a598b6a2ce01628d8c8cb75b8c1b9 | c2ad1a3fb5462723d17cc66a3ab9c6427f9febd4 | refs/heads/master | 2022-12-25T22:34:41.165186 | 2020-09-05T23:00:36 | 2020-09-05T23:00:36 | 288,529,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,305 | py | # Generated by Django 3.1 on 2020-08-19 07:01
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Car',
fields=[
('id', models.... | [
"inyoman_gurnitha@yahoo.com"
] | inyoman_gurnitha@yahoo.com |
f84036b39d16ab6d4589cce4e2a0cf025edc846f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/1199.py | dbcebc000b24c84b59858f254bea39a4f4ffe8d7 | [] | 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 | 451 | py | from __future__ import division
if __name__ == '__main__':
t = int(raw_input())
for i in xrange(1, t+1):
D,N = [int(ele) for ele in raw_input().split(' ')]
times = []
for j in xrange(N):
k_j, s_j = [int(ele) for ele in raw_input().split(' ')]
t_j = (D-k_j)/s_j
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2e03ddea608fda73992b067347e9716b623ae94c | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_5434.py | 8d3a2b324cac6ca703561c676786e710832a2214 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | # Installing Python eggs under PyPy
$ /opt/pypy-1.5/bin/pypy distribute_setup.py
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4421ae917ba533bf46ffece95cd7dde817ecb81f | 8a5b9ca6dbb493fff136ec0063f30a9991af24ca | /old/qruntime/scripts/install.py | 6f0263b43595e204a235cbc4aa5d2381d3fc941a | [] | no_license | warner/q-runtime | d6776fe8cac9f74c35dd93df348514542d5a60e1 | 2805b65093f38e41dde1286b867b6a295f773fde | refs/heads/master | 2020-05-27T19:32:31.081538 | 2015-06-29T04:40:56 | 2015-06-29T04:40:56 | 4,588,913 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 933 | py |
import os
from .. import memory, urbject, util
from .object_commands import get_db
def install(so, out, err):
db = get_db(so, err)
if not db:
return 1
c = db.cursor()
c.execute("SELECT `pubkey` FROM `node`")
(vatid,) = c.fetchone()
codedir = so["codedir"]
memory_file = os.path.join... | [
"warner@lothar.com"
] | warner@lothar.com |
5671723bd47bdb035b5dc12025da0a9e44761d57 | 09e63e204cf3f70b0f878fe237f231af0786611e | /CV/One-Shot Learning/network.py | 10d6068de262fa563ede183304c704e0bc1597eb | [
"MIT"
] | permissive | shubham14/Machine_learning_research | 8f00788366abf2d330afe8914e48d4279fcd8aea | b134e4e6b1e6c110fad8cb38b033c92c34d3c8ce | refs/heads/master | 2022-11-08T13:24:58.722027 | 2019-11-10T09:21:28 | 2019-11-10T09:21:28 | 132,386,307 | 3 | 2 | null | 2022-10-17T15:36:25 | 2018-05-07T00:16:38 | Python | UTF-8 | Python | false | false | 3,817 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 31 16:00:57 2018
@author: Shubham
"""
# import keras utility libraries
import keras
import tensorflow as tf
from keras.models import Model, Sequential
from keras.layers.convolutional import Conv2D, Conv2DTranspose
from keras.layers import Input, Dense, Dropout, Reshape,... | [
"shubham.ddash@gmail.com"
] | shubham.ddash@gmail.com |
a915b5300e2b909ef293103efe6001a70b08bec8 | 2f1afef8c3a593d8d1b80ce3a77fa28e79392e75 | /coast/DISTRIBUTION.py | 0edc513a8fa151ce419f3c4dab36243f6a008f47 | [
"MIT"
] | permissive | gorsol/COAsT | 99fe3327bd5b98d26149d6b643d0637b64d6df3c | d4dcba47c56b688d5ec2f3cbb08fd2e3d3bcb60c | refs/heads/master | 2023-07-18T03:18:54.468387 | 2021-03-30T14:59:14 | 2021-03-30T14:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,643 | py | import numpy as np
import matplotlib.pyplot as plt
from . import stats_util
from .logging_util import get_slug, debug, error
import scipy.stats
import xarray as xr
class DISTRIBUTION:
'''
An object for storing Cumulative Distribution Function information.
Used primarily for calculating the Continuous Ranke... | [
"your@example.com"
] | your@example.com |
a4dac6315569f0d4bbeb455e7e4166e7e23a0ffa | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_138/ch19_2020_03_04_19_57_51_206603.py | b2625d0402aec7c109df9bf07e5344b2d7157212 | [] | 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 | 221 | py | def classifica_triangulo (x,y,z):
if x=y and x=z and y=z:
classificacao="equilátero"
elif x=y and x=z and y!=z:
classificacao="isóceles"
else:
classificacao="escaleno"
return classificacao | [
"you@example.com"
] | you@example.com |
d8daad3e7ab640b57890c01dd9fcbeb04e995ef6 | f02dbe3367ec8ecaf7165f97664cf2090a2e0bac | /hajipy/chapter29/exiter.py | 0342b064d0915cb4ff00e5a5d9224f3b4d5a10ad | [] | no_license | kimihito/hajipy | f37e596231d5b1ca009a9e5ac001870a381021de | e72e41b83f76ff07b775f65c68f93b85b694b23c | refs/heads/master | 2021-01-23T11:40:16.353059 | 2012-07-05T16:03:23 | 2012-07-05T16:03:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #!/usr/bin/env python
# coding: utf-8
import sys
def bye():
sys.exit(40)
try:
bye()
except:
print 'go it'
print 'continuing...'
| [
"tatsurotamashiro@gmail.com"
] | tatsurotamashiro@gmail.com |
8dfe777d1af51360d570c7f90b2a68772fcbdf0b | 07604219235be913dc4deccfdba454a4a2e12456 | /tf_learn/simple_rnn.py | 5eecb9a7879e6a90c1780d81721a96a592d8c23d | [] | no_license | Alex-zhai/learn_practise | e5a9fc1f9d2791d450f76c4087a74713a5359251 | 994630abd67c1403893f9a027855abca736dfcd1 | refs/heads/master | 2020-12-01T17:01:46.128171 | 2019-12-29T05:15:00 | 2019-12-29T05:15:00 | 230,705,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | # coding = utf-8
# -*- coding:utf-8 -*-
import tensorflow as tf
from tensorflow.contrib import rnn
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
# set hyper-parameters
input_size = 28
time_step = 28
batch_size = 64
num_hidden = 128
... | [
"zhaijianwei@jd.com"
] | zhaijianwei@jd.com |
7c22c48b87af5113b7520a82daa7e897ece7eb58 | 62b8ad2d98e2b8ba9eb9d3f6d6c28e8066af1bf6 | /pypykatz/crypto/unified/pkcs7.py | 1a7a6e1bff22aec0c85ae06162b8ed29b03d026e | [
"MIT"
] | permissive | s1ntaxe770r/pypykatz | 560698425ddeda2906c54f100e11bf5613c62e61 | 15f4cde7c9ac41a56202147d16d5bff3581649ae | refs/heads/master | 2023-03-22T16:29:11.538561 | 2021-03-14T23:55:19 | 2021-03-14T23:55:19 | 347,998,355 | 1 | 0 | MIT | 2021-03-15T14:19:12 | 2021-03-15T14:19:11 | null | UTF-8 | Python | false | false | 637 | py |
# https://gist.github.com/adoc/8550490
def unpad(bytestring, k=16):
"""
Remove the PKCS#7 padding from a text bytestring.
"""
val = bytestring[-1]
if val > k:
raise ValueError('Input is not padded or padding is corrupt')
l = len(bytestring) - val
return bytestring[:l]
## @param ... | [
"info@skelsec.com"
] | info@skelsec.com |
6ee39069263aac3dcc46a1c5a6cf8e7631ada1a7 | 0fd49b4779351c68bbe51ee978939f39c8e57d7c | /300-400/309-Best Time to Buy and Sell Stock with Cooldown.py | 62e304a867047c71b1370d6a8c1a2e78b84fff99 | [] | no_license | jia0713/leetcode | 8f632b96d0bc900cf4357ab1b8affd6068964dec | 13565941f16c74d32124020285ce887a4cb31b27 | refs/heads/master | 2023-06-17T20:41:47.185832 | 2021-07-16T09:42:39 | 2021-07-16T09:42:39 | 247,866,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # 这道题的关键就是定义状态和状态之间的转移
# 状态是hold, sold, rest 三种
# 这三种状态是如何相互转移的
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
rest, sold, hold = 0, 0, -float("inf")
for price in prices:
pre_rest = rest
rest = ... | [
"pkuljn@gmail.com"
] | pkuljn@gmail.com |
3c400078bcf0cf5c2f6e4e3f584f34d4cdbc9168 | ebd24e400986c57b4bb1b9578ebd8807a6db62e8 | /InstaGrade-FormBuilder/xlsxwriter/test/workbook/test_workbook03.py | 328cf16333ed977ef42dea8d78ce80223952ac29 | [] | no_license | nate-parrott/ig | 6abed952bf32119a536a524422037ede9b431926 | 6e0b6ac0fb4b59846680567150ce69a620e7f15d | refs/heads/master | 2021-01-12T10:15:15.825004 | 2016-12-13T21:23:17 | 2016-12-13T21:23:17 | 76,399,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list
from ...workbook import Workbook
class TestAssem... | [
"nateparro2t@gmail.com"
] | nateparro2t@gmail.com |
473c7535c61b42213e330d1bca0e0a8690d01af5 | f5fa77d99d31d4e8fef2648b83e9d988123be118 | /hanser/datasets/detection/cocoval.py | 0b6fecf46002945f5f5c97d0de8e2cc6dc7d200b | [] | no_license | sbl1996/hanser | 6ff5362f6909c4ba717c10b5f7baf31a41b70531 | 21c6f9470dd21a5b2e7a18318f40314a34053822 | refs/heads/master | 2022-06-04T03:46:39.034645 | 2022-05-21T03:34:08 | 2022-05-21T03:34:08 | 197,355,428 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | import math
import tensorflow_datasets as tfds
from hanser.datasets import prepare
import hanser.datasets.tfds.detection.cocoval
from hanser.datasets.detection.coco import label_map, decode
NUM_EXAMPLES = {
'validation': 5000,
}
def make_dataset_sub(
n_train, n_val, batch_size, eval_batch_size, transform, d... | [
"sbl1996@126.com"
] | sbl1996@126.com |
23c55fc26d81fcecbf553fac6d69b5079522584a | 9b14a207517fe100b625eafde7020b17072b74f2 | /cm4/common/dotdict.py | 60db3e40553f850f256fcc668db899c3e0eb24af | [
"Apache-2.0"
] | permissive | kimballXD/cm | a9af3ca969f056a302c90d5e9923993a0c8bf020 | f5ce7660446de09bbb45bb4dd9a6f660bc1dfcf4 | refs/heads/master | 2020-03-28T14:55:17.637813 | 2018-12-07T16:22:10 | 2018-12-07T16:22:10 | 148,536,071 | 0 | 0 | Apache-2.0 | 2018-10-07T18:48:24 | 2018-09-12T20:10:54 | Python | UTF-8 | Python | false | false | 330 | py | """
A convenient dot dict class
a = dotdict({"argument": "value"})
print (a.argument)
"""
# noinspection PyPep8Naming
class dotdict(dict):
"""dot.notation access to dictionary attributes"""
def __getattr__(self, attr):
return self.get(attr)
__setattr__ = dict.__setitem__
__delattr__ = dict._... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
e9ab2b29766c720190e0c4f1903fde3ccc4a0db1 | 0319cf358118101879a723910213a8cf8d4d1a0d | /caffe/core/solver.py | cbc08653307ea24c98984af61486588a55f7f2f0 | [
"BSD-2-Clause"
] | permissive | ORG-MARS/dragon | d1e42afe1a5e0ba6191fab2c2518af14571c7911 | 6bfe3e73ecb9d95030d12df2efed046551a396e1 | refs/heads/master | 2023-02-28T05:45:12.172455 | 2021-02-04T16:06:31 | 2021-02-04T16:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,528 | py | # ------------------------------------------------------------
# Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
#
# Licensed under the BSD 2-Clause License.
# You should have received a copy of the BSD 2-Clause License
# along with the software. If not, See,
#
# <https://opensource.org/licenses/BSD-2-Clause>
#
# -... | [
"ting.pan@seetatech.com"
] | ting.pan@seetatech.com |
34e5121c1482931a4d97397d7b189ab102012481 | 26b1a39d7e30ca3a41eced7343369c75b0ef90db | /the_project.py | 67e34fb434b9b1369300082622690788de15d502 | [] | no_license | shahafonty/project-best-order | 0f2b77098b3f530fd78db9d937f1119e700825cb | b088d0bd76620eb0058aacdcfb53fd105667f7db | refs/heads/master | 2021-02-27T09:10:00.618085 | 2020-04-13T09:03:02 | 2020-04-13T09:03:02 | 245,596,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,743 | py | from flask import Flask, render_template, request
import mysql.connector
from calsses import Classes
app = Flask(__name__)
db = mysql.connector.connect(host="localhost", user="root", password="toor", database="bestorder")
cursor = db.cursor()
#cursor.execute("show databases")
#cursor.execute("show tables")
@app.ro... | [
"you@example.com"
] | you@example.com |
a8891fa9a8fd100f7ef951dff21d2d593985a1c8 | 44c9747c5b3111ec1175179873a4f96ec695762b | /aries_cloudagent/messaging/actionmenu/routes.py | f335ee8d83105081594f85f0316803fcc86081ad | [
"Apache-2.0"
] | permissive | Patrik-Stas/aries-cloudagent-python | 3d25ecf87183d16955141c79fc71a784f78de440 | 28f4b59b11db72568084070e4e6c1576c298f03d | refs/heads/master | 2020-06-14T05:21:13.649184 | 2019-07-02T17:14:04 | 2019-07-02T17:14:04 | 194,915,553 | 0 | 0 | Apache-2.0 | 2019-07-02T18:29:42 | 2019-07-02T18:29:41 | null | UTF-8 | Python | false | false | 5,658 | py | """Action menu admin routes."""
import logging
from aiohttp import web
from aiohttp_apispec import docs, request_schema
from marshmallow import fields, Schema
from ..connections.models.connection_record import ConnectionRecord
from .messages.menu import Menu
from .messages.menu_request import MenuRequest
from .mess... | [
"cywolf@gmail.com"
] | cywolf@gmail.com |
2116797d06a8efce8d3e7b5f569bd0ffd5b767ad | 7e98a3fc246547cc93ce2a93f39410aac38f8dd3 | /hunt_interiors/asgi.py | 3ca0bb540327fecfdddd40f4aaad05b57aed1f08 | [] | no_license | kydzoster/huntinteriors | 53b5d064f05010c71c70d72a6148494226980287 | 4439c652d74d9b5553abc67d4bbac73b33b42336 | refs/heads/main | 2023-02-04T03:14:50.250492 | 2020-12-16T13:22:31 | 2020-12-16T13:22:31 | 301,401,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for hunt_interiors project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"kydzoster@gmail.com"
] | kydzoster@gmail.com |
c788f51b14b5786dd1ac30608d5d5cc11f18f5e4 | 7bbe90453431dce0c007bb9baa25e9edae3cdc20 | /realizations/apps.py | 797f91b1cd418761f3c9f3a11ecb9dba5ce343b0 | [] | no_license | RKJO/WoodYou_app | 7fefeb6a1bebdb82b6f1045b9788932bd6531dee | c36f35084a65a736e9bc590113bac1d5c983234f | refs/heads/master | 2020-04-12T11:20:34.107875 | 2019-02-08T11:38:17 | 2019-02-08T11:38:17 | 162,456,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.apps import AppConfig
class RealizationsConfig(AppConfig):
name = 'realizations'
verbose_name = 'Realizacje'
| [
"rkjozwiak@gmail.com"
] | rkjozwiak@gmail.com |
b08f44b66c026dbc71cab5d8cac8658b04f9f693 | 8f265edd1c8dd292b7d5163b14d8bb59087cd221 | /.history/concert/ticketSales/admin_20210723021505.py | 849012fbbbfdbbf38c7d9d28fe8dd01db54295af | [] | no_license | marabpour/ConcertReservation | 8d81b89806db4838a5f833109c4a15e1303133cf | c8726c8186c392c2aa68bd08d43df20aada2727b | refs/heads/main | 2023-07-12T01:15:49.610834 | 2021-08-02T10:08:41 | 2021-08-02T10:08:41 | 391,527,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from django.contrib import admin
from .models import concertModel,locationModel,timeModel,ProfileModel,ticketModel
# Register your models here.
admin.site.register(concertModel)
admin.site.register(locationModel)
admin.site.register(timeModel)
admin.site.register(ProfileModel)
admin.site.register(ticketModel)
| [
"baran.arabpour@gmail.com"
] | baran.arabpour@gmail.com |
e9f47b26923994231b4c84bbc474acab1bb065aa | 04c824bb23b3c0ee378a5e915ab9467d5a4d4de7 | /metasub_utils/wasabi/metasub_utils/wasabi/public_files.py | 7ce54364dd362afbb65e2b1c5367522ee080b995 | [
"MIT"
] | permissive | MetaSUB/metasub_utils | a37a8eb79fabd4a922617744e91c9e3e6df2b2f8 | c52c5dde816d710db5ac8dc6f8804bb795a992e4 | refs/heads/master | 2023-01-06T11:14:20.095512 | 2020-02-24T14:23:08 | 2020-02-24T14:23:08 | 143,024,096 | 9 | 2 | MIT | 2022-12-26T20:44:28 | 2018-07-31T14:16:42 | Python | UTF-8 | Python | false | false | 1,557 | py |
from os.path import basename, dirname, join
from metasub_utils.metadata import get_samples_from_city
def list_public_files():
"""Return a list of all public files."""
public_file_filename = join(dirname(__file__), 'metasub_public_files.txt')
out = []
with open(public_file_filename, 'r') as f:
... | [
"dcdanko@gmail.com"
] | dcdanko@gmail.com |
153ac37a69f8a5c0e10f629f762343a9516b0b26 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /atcoder/abc/abc030/a.py | d435c28231e89749825d8f86c62ac157c5fab5be | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
a, b, c, d = map(float, raw_input().split())
x, y = b/a, d/c
if x == y:
print "DRAW"
elif x < y:
print "AOKI"
else:
print "TAKAHASHI"
| [
"roiti46@gmail.com"
] | roiti46@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.