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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
236cf4532f3fdde162ba6752e286002ebdff0b32 | 039c2e60b859d88bb686c0e66bc6dab2ab723b8e | /环境控制系统/wsgi.py | 507ea5c297691da4776aee67c4084fe4aea07c47 | [] | no_license | ccc-0/ECS | 850613971e4c6fd9cbb6ddcbe2c51b5285d622ac | ef4d69cb4c6fd1b1bbd40ba9c754c8e50c56d8ee | refs/heads/master | 2020-09-13T21:50:42.033517 | 2020-02-13T03:47:10 | 2020-02-13T03:47:10 | 222,913,137 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for 环境控制系统 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"1056179315@qq.com"
] | 1056179315@qq.com |
9fd3a856cee9a4a7617e5f48b2ee83857fea54f9 | 34f3cfeac7fd5a7bbbc5e362bef8bc316f81c1d0 | /asn1tools/source/rust/utils.py | d0de494f331cace95b3a0f8f06fbabb9633d7889 | [
"MIT"
] | permissive | eerimoq/asn1tools | 860b3623955c12dfb9763ff4e20a805beb7436ba | de25657f7c79100d1ba5312dd7474ff3e0d0ad2e | refs/heads/master | 2023-03-16T09:28:11.924274 | 2023-03-10T20:24:34 | 2023-03-10T20:24:34 | 99,156,277 | 272 | 98 | MIT | 2023-01-03T13:40:36 | 2017-08-02T20:05:05 | Python | UTF-8 | Python | false | false | 18,890 | py | import re
from ...errors import Error
TYPE_DECLARATION_FMT = '''\
/// Type {type_name} in module {module_name}.
{members}
'''
DEFINITION_FMT = '''
impl {module_name}{type_name} {{
pub fn encode(&mut self, mut dst: &mut [u8]) -> Result<usize, Error> {{
let mut encoder = Encoder::new(&mut dst);
s... | [
"erik.moqvist@gmail.com"
] | erik.moqvist@gmail.com |
8910012782c16a46416210e118ba3994642a3c27 | 480a05a61cc2708e0f6eacb7024333a076009201 | /identYwaf.py | 707a3647fb5a59b3be8f4175c36cac796b0da4f5 | [
"MIT"
] | permissive | ver007/identYwaf | a9e494ff7a1735184c4926fdd7618852b4f9b3e5 | 52f47dfcd932329326e5d535d62e931e6b9b7d65 | refs/heads/master | 2020-06-04T16:31:41.268847 | 2019-01-15T08:34:17 | 2019-01-15T08:34:17 | 192,104,963 | 1 | 0 | null | 2019-06-15T17:17:29 | 2019-06-15T17:17:29 | null | UTF-8 | Python | false | false | 15,688 | py | #!/usr/bin/env python
"""
Copyright (c) 2019 Miroslav Stampar (@stamparm), MIT
See the file 'LICENSE' for copying permission
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
"""
import base64
import cookielib
import httplib
import json
imp... | [
"miroslav.stampar@gmail.com"
] | miroslav.stampar@gmail.com |
a302291624c13fd9a1f6808e9c8885774baf1374 | 8b4ca76a9c1e9aba74ce9ca3008f78b0293a8df2 | /algorithms/policy.py | b391e7e85011ff0e3975adf670d34f866c3670ab | [] | no_license | sebastiengilbert73/ReinforcementLearning | 4d2eb94327ee56568216d673b1a90a928e79be55 | b45578ec7603be37968d95c216d4169c276c0ab4 | refs/heads/master | 2021-06-18T06:57:04.815045 | 2021-02-21T18:08:31 | 2021-02-21T18:08:31 | 164,341,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,676 | py | import abc
import random
import copy
class LegalActionsAuthority(abc.ABC):
"""
Abstract class that filters the legal actions in a state, among the actions set
"""
def __init__(self):
super().__init__()
@abc.abstractmethod
def LegalActions(self, state):
pass # return legal_acti... | [
"sebastiengilbert73@yahoo.ca"
] | sebastiengilbert73@yahoo.ca |
efba4b2d600c69a51bb39a34812f080182f4990d | 8b301e17d5f42e1050bb15cde9b28a2db33d0662 | /mysite/myAPI/checkcode.py | f92f73c41b11dab9987fad65e488cce789056e4d | [
"Apache-2.0"
] | permissive | wuchunlong0/blog_uk_vue_mylogin | 413bd482b649f2bf0e45cdfe5dc964ac0f75e72b | eece41870822a38c130318c10e6dc348a088a864 | refs/heads/master | 2020-05-09T18:04:45.718255 | 2019-04-14T15:13:01 | 2019-04-14T15:13:01 | 181,323,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,418 | py | # -*- coding: utf-8 -*-
import os,sys
from io import BytesIO as StringIO
from django.shortcuts import render
import random
from django.http.response import HttpResponseRedirect, HttpResponse
from PIL import Image, ImageDraw, ImageFont, ImageFilter
FONT_TYPE = "static_common/home/fonts/DroidSans.ttf"
_letter_cases = ... | [
"wcl6005@163.com"
] | wcl6005@163.com |
b786a8bf22bcc9fa6769a2bdd445c84df32550ce | c2c8915d745411a0268ee5ce18d8bf7532a09e1a | /cybox-2.1.0.5/cybox/bindings/domain_name_object.py | a65065255c04bcb38b3bf5ca7c47ea1efa9b991a | [
"BSD-3-Clause"
] | permissive | asealey/crits_dependencies | 581d44e77f297af7edb78d08f0bf11ad6712b3ab | a8049c214c4570188f6101cedbacf669168f5e52 | refs/heads/master | 2021-01-17T11:50:10.020346 | 2014-12-28T06:53:01 | 2014-12-28T06:53:01 | 28,555,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,281 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Wed Jan 15 13:08:03 2014 by generateDS.py version 2.9a.
#
import sys
import getopt
import re as re_
import cybox_common
import base64
from datetime import datetime, tzinfo, timedelta
etree_ = None
Verbose_import_ = False
( XMLParser_import_none, XMLParse... | [
"ssnow@mitre.org"
] | ssnow@mitre.org |
ca405a4f780ebbfd858f71371a55f11a09f0d47c | 0022918e83e63026846e7bd508098e21752bb924 | /test.py | 40b8c2ecc438ca89d099be2fa88201c521df6ab9 | [] | no_license | sebbacon/formexperiment | 5089c144d9159e889283d15ae200827507bf3e63 | 98450091ff72e4f08748076bc905fdd0f97c04ad | refs/heads/master | 2020-06-05T07:13:21.661566 | 2011-01-26T18:55:25 | 2011-01-26T18:55:25 | 1,282,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | import doctest
from test_with_peppercorn import *
import unittest
doctest.testfile("test_simple_data.txt")
unittest.main()
| [
"seb.bacon@gmail.com"
] | seb.bacon@gmail.com |
86c4579e69639f21cd77bf45cfc84b101d9ccfff | cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1 | /xlsxwriter/test/drawing/test_drawing_chart01.py | 5c7893a9c2c67067496a261dfe31cb992bb3ae86 | [
"BSD-2-Clause"
] | permissive | glasah/XlsxWriter | bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec | 1e8aaeb03000dc2f294ccb89b33806ac40dabc13 | refs/heads/main | 2023-09-05T03:03:53.857387 | 2021-11-01T07:35:46 | 2021-11-01T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ..helperfunctions import _xml_to_list
from ...drawing import D... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
7cd58dcae29db07ef376b8e7374e440ee9d0f5cf | a5597d74049fcbe1e1e3afca1f4196243f2e7c90 | /glyce/utils/crazy_finetune.py | 1e496882105744af27eb0a6cb408eb0daa8357e7 | [
"Apache-2.0"
] | permissive | YuChen17Heaven/glyce | 72759d8699bbe37ecd2221e90b8ec06a8844fd29 | 62369e3cc37442ed191862b77d87d0c17c8454f8 | refs/heads/master | 2020-06-14T01:52:41.111642 | 2019-06-30T10:52:10 | 2019-06-30T10:52:10 | 194,857,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | # encoding: utf-8
"""
@author: wuwei
@contact: wu.wei@pku.edu.cn
@version: 1.0
@license: Apache Licence
@file: crazy_finetune.py
@time: 19-1-2 下午9:50
写for循环疯狂调参
python main.py --highway --nfeat 128 --use_wubi --gpu_id 3
"""
import os
import sys
root_path = "/".join(os.path.realpath(__file__).split("/")[:-3])
if... | [
"xiaoyli@outlook.com"
] | xiaoyli@outlook.com |
6777ff2e763c0748a5200c9729d79c3fecf1cc50 | 503d2f8f5f5f547acb82f7299d86886691966ca5 | /atcoder/hhkb2020_b.py | c8dd560750da5c973e42132f7c0e4108860b8814 | [] | no_license | Hironobu-Kawaguchi/atcoder | 3fcb649cb920dd837a1ced6713bbb939ecc090a9 | df4b55cc7d557bf61607ffde8bda8655cf129017 | refs/heads/master | 2023-08-21T14:13:13.856604 | 2023-08-12T14:53:03 | 2023-08-12T14:53:03 | 197,216,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | # https://atcoder.jp/contests/hhkb2020/tasks/hhkb2020_b
# import sys
# # def input(): return sys.stdin.readline().rstrip()
# # input = sys.stdin.readline
# input = sys.stdin.buffer.readline
# from numba import njit
# from functools import lru_cache
# sys.setrecursionlimit(10 ** 7)
# @njit('(i8,i8[::1],i4[::1]... | [
"hironobukawaguchi3@gmail.com"
] | hironobukawaguchi3@gmail.com |
c17f88aad274adc6efb8f07f2e1f91def04c6283 | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/es2019/Array.prototype.toString.spec | 85d911ac433e5e0bb58bf5affb55278c27760195 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 256 | spec | 1. Let _array_ be ? ToObject(*this* value).
1. Let _func_ be ? Get(_array_, `"join"`).
1. If IsCallable(_func_) is *false*, set _func_ to the intrinsic function %ObjProto_toString%.
1. Return ? Call(_func_, _array_). | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
b0f03d06d9223ce7f593796a991af26bc1c4bfd1 | 01a45aa09bd266e25dae4d2ba9fceddea2441844 | /todo_back/todos/serializer.py | e89a5ee7e7d956df2ee97ace0e468bd6dc0a0c8b | [] | no_license | gusk94/Vue-Django | 1959e75ffee39f3839fc9bafaf79eead724023fa | 82213a96e8d5bc684beb7cf3fcf212bbfcaf8019 | refs/heads/master | 2023-01-10T15:20:08.635383 | 2021-01-06T15:12:59 | 2021-01-06T15:12:59 | 222,366,577 | 0 | 0 | null | 2023-01-05T01:06:52 | 2019-11-18T04:55:18 | Python | UTF-8 | Python | false | false | 467 | py | from rest_framework import serializers
from django.contrib.auth import get_user_model
from .models import Todo
User = get_user_model()
class TodoSerializer(serializers.ModelSerializer):
class Meta:
model = Todo
fields = ('id', 'user', 'title', 'completed', )
class UserDetailSerializer(serializers... | [
"h3652k@gmail.com"
] | h3652k@gmail.com |
823f39203dec17fdc778ad33dcc6296c31fcf5a4 | 86cd22354f2431087c9b3ff06188f071afb3eb72 | /113. Path Sum II.py | 702d8007e664f27151d6db9cd322c6f685000c06 | [] | no_license | tlxxzj/leetcode | 0c072a74d7e61ef4700388122f2270e46c4ac22e | 06dbf4f5b505a6a41e0d93367eedd231b611a84b | refs/heads/master | 2023-08-31T11:04:34.585532 | 2023-08-31T08:25:51 | 2023-08-31T08:25:51 | 94,386,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def pathSum(self, root: TreeNode, targetSum: int) -> List[List[int]]:
ret = []
q = []
... | [
"tlxxzj@qq.com"
] | tlxxzj@qq.com |
f8f7ce5994c6a5c8be5690040c6ae3e271794bd7 | 20cda6f6b14d9b91e64d43b8261f7832572be85f | /pyschema/f143_structure/ArrayULong.py | 4954b9b5940f5c8444c0ab0ad08e5b807c97ded1 | [] | no_license | ess-dmsc/lauschangriff | f9f2bacb7a5483423919fbfc8948e8a56a070800 | 3735c5f84798efc280e0931bc48129339658f400 | refs/heads/master | 2021-08-19T13:22:41.702602 | 2020-04-21T15:13:18 | 2020-04-21T15:13:18 | 168,178,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: f143_structure
import flatbuffers
class ArrayULong(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsArrayULong(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x... | [
"mark.koennecke@psi.ch"
] | mark.koennecke@psi.ch |
d984996776b3ea153d203518e3b9b95d6a4ce351 | fc2fa418295e015f867b26b6ab91133f26eff0bb | /ExampleCode/gathering.py | 5d31cc8d1e1f5136712e91fdadabfb3a873d7c1e | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | land-boards/PiCluster | 893b0809d5ceeaba2425cd3cfd79598911a65989 | e7a508ab1be25e50b79c585ea861118e37ba9bb3 | refs/heads/master | 2022-04-28T13:02:10.307315 | 2022-04-20T09:55:52 | 2022-04-20T09:55:52 | 62,474,727 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from mpi4py import MPI
import numpy as np
comm = MPI.COMM_WORLD
size = comm.Get_size()
rank = comm.Get_rank()
numDataPerRank = 10
sendbuf = [rank, size]
print('Rank: ',rank, ', sendbuf: ',sendbuf)
recvbuf = None
if rank == 0:
recvbuf = []
comm.Gather(sendbuf, recvbuf, root=0)
if rank == 0:
print('Ra... | [
"doug@douglasgilliland.com"
] | doug@douglasgilliland.com |
0d4b5ab246bcd2e91a31ac44a798d0bed067d702 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/models/ad_analytics_contains_filter.py | 354ab8dfcae40bdd9aa2cf0bd8e53fb1c6d34042 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 3,799 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
from bitmovin_api_sdk.models.ad_analytics_abstract_filter import AdAnalyticsAbstractFilter
from bitmovin_api_sdk.models.ad_analytics_attribute import AdAnalyticsAttribute
import ppr... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
ed6cc8e324e0e9d722dcff91f07aa8abc8df16f3 | a606893da1e354c7c617d0c9247b23118be2813a | /模拟考试/7_20/t8.py | 178465ca3405c74f23f6334c46828faea35f0af3 | [] | no_license | lindo-zy/leetcode | 4ce6cb9ded7eeea0a6953b6d8152b5a9657965da | f4277c11e620ddd748c2a2f3d9f5f05ee58e5716 | refs/heads/master | 2023-07-22T06:19:00.589026 | 2023-07-16T12:35:14 | 2023-07-16T12:35:14 | 229,958,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
from itertools import product
from typing import List
class Solution:
def letterCombinations(self, digits: str) -> List[str]:
ds = {2: 'abc', 3: 'def', 4: "ghi",
5: 'jkl', 6: 'mno', 7: 'pqrs',
8: 'tuv', 9: 'wxyz'}
words = [ds[in... | [
"492201845@qq.com"
] | 492201845@qq.com |
58031043f16f68a8aeec4dd903bd58ef62d5e307 | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /OpenStack-Mitaka-src/designate/designate/mdns/notify.py | 8f3de6c53a97c1fedd4eb1bf6bb8a1af254f72a6 | [
"Apache-2.0"
] | permissive | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 13,514 | py | # Copyright (c) 2014 Rackspace Hosting
# 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... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
185916b8c6ed4dfc3a2880a20b9cdaf3fd075629 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/sV-.py | dbd279c3dd10a5a0e31f79253387b280f6d56b03 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
88de90beb87dc98e7b6cecbef0885d4eb331071d | b01eee55884e21412a1812593996a0d9156e20bc | /cipp/parser.py | a61415f56a03d5a2ccf442dd729ad537e1406db5 | [] | no_license | JacquesLucke/cipp | 46bdb7eebaeb863f424c92542ea56b49b5f0fe2e | d4f38fd1fc84aed9cbf49b85bf6c4b96f2561f71 | refs/heads/master | 2021-10-27T18:29:23.288884 | 2019-04-18T15:36:52 | 2019-04-18T15:36:52 | 123,611,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,498 | py | from . import ast
from . lexer import Lexer
from . token_stream import TokenStream
from . tokens import (
createSingleCharToken,
IdentifierToken, IntegerToken,
CommentToken, WhitespaceToken
)
SingleCharToken = createSingleCharToken("(){}[],=+-*/@;<>!")
cippLexer = Lexer(
[IdentifierToken, IntegerToken... | [
"mail@jlucke.com"
] | mail@jlucke.com |
594cdad708a08bfdabee9afb17a6462235d503d6 | 8600ea155f279e5a8dfe5a1926038511f6b6a7ea | /base_module_quality/pep8_test/pep8_test.py | 395520a63f88c32bd97b8c0358546252a2444e06 | [] | no_license | MarkNorgate/addons-EAD | c2fff89ab16fce3ba19fbe433ee5863705a6f4e5 | 840f28642b5d328e4b86839c413e5164622295a5 | refs/heads/master | 2020-04-23T22:11:00.164438 | 2015-07-22T12:24:53 | 2015-07-22T12:24:53 | 39,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,797 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# ... | [
"mark.norgate@affinity-digital.com"
] | mark.norgate@affinity-digital.com |
f7c8f1c12a5b644fe553ebfdbf5c391252a507cd | 1f4852225cec8d9f954190bb36a2a5d586b3e8bd | /ITBooks/con/config.py | 9e37f40a5cefca8a3dae60173977ac91a5116492 | [] | no_license | crono/ITBooks | d8924d54e474b035a2cc54f69cf4f67a5004344a | 61648d3ab71a06f9754ebdc75e37d6d84d100605 | refs/heads/master | 2020-06-05T00:46:34.725762 | 2017-05-22T14:09:45 | 2017-05-22T14:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Add ITBooks to path
sys.path.append(os.path.dirname(BASE_DIR))
# DATABASE
DATABASE_DIR = os.path.join(BASE_DIR, 'database')
SQLITE_FILE = os.path.join(os.path.join(DATABASE_DIR, 'sqlite'), 'books.db')
# The value is the equal of spider's n... | [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
725ea7b6637e2b0187e91054b6dc387a7ab7141a | 594f60b6a536b831d0df38abea7f0ffc0a2fd3cb | /utils_xml/change_comments.py | 7cf6b3dfb4c62a9e7680dc1f63740306c8c9dee9 | [] | no_license | mh70cz/py | 1478439fe939076cca3a30be2f2d29fb4e8a3cd9 | 7fc23f2133624c787e1dd4856322d48251cc6f0e | refs/heads/master | 2022-08-12T06:08:30.720164 | 2022-08-08T23:16:19 | 2022-08-08T23:16:19 | 95,386,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | """ konvertuje obsah elemntů xs:documentation bez xml:lang do komentářů """
from lxml import etree
f_name_in = "TradeRegisterListRequest_orig.xsd"
f_name_out = "TradeRegisterListRequest.xsd"
def main():
tree = etree.parse(f_name_in)
root = tree.getroot()
namespaces = {'xs': 'http://www.w3.org/2001/XMLSch... | [
"mh70@mh70.cz"
] | mh70@mh70.cz |
d605004a43e9c6bfffeb41b5a4af64b8f0c32c86 | f2d7e8d536d77e786dc519fc54e13cb496663f51 | /t2t_bert/distributed_single_sentence_classification/model_interface.py | d76ef1883cd7001f4cf830209683115dcb9f99b0 | [
"Apache-2.0"
] | permissive | CBHell/BERT | a8ecfb36e3ddf1741f1e523dbab8b5ea350c0850 | 049ba2dc1cffe8eb3dbecf13ba3aaf17f4c3293f | refs/heads/master | 2020-09-08T09:37:22.421778 | 2019-11-11T11:54:01 | 2019-11-11T11:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,616 | py | from distributed_encoder.bert_encoder import bert_encoder
from distributed_encoder.bert_encoder import bert_rule_encoder
from distributed_encoder.gpt_encoder import gpt_encoder
from distributed_encoder.bert_encoder import albert_encoder
from distributed_encoder.classifynet_encoder import textcnn_encoder
from distribut... | [
"albert.xht@alibaba-inc.com"
] | albert.xht@alibaba-inc.com |
f802fd58fcee700b831bdb8136bc7f82023758d1 | a9b322a0d941825df73a71ad3de605978c9e778d | /virtual/bin/mailmail | 87be1a4b9000543ec5890a1ddb7f1d4876036be7 | [] | no_license | Elianehbmna/chaty-final | 172562d9d7399dc9230cc434d3c29be66a70f094 | 0b459168414da09566ea5b079a922dc1fa8694d0 | refs/heads/master | 2022-12-15T15:03:31.584467 | 2019-12-05T15:29:26 | 2019-12-05T15:29:26 | 223,245,043 | 0 | 0 | null | 2022-12-08T06:55:21 | 2019-11-21T19:07:55 | Python | UTF-8 | Python | false | false | 256 | #!/home/wecode/Documents/chat/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twisted.mail.scripts.mailmail import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"elianehabimana3@gmail.com"
] | elianehabimana3@gmail.com | |
a818f026d27f1f4910ccaef03767ee79b55b13be | b4afd14e3b4e9cff0a99906a69587e348b243aeb | /website/《简明教程》/数据结构/ds_reference.py | ad8d28d89f29f5b7de173ab94ebdd97be12402cf | [] | no_license | zhankq/pythonlearn | d694df23826cda6ba662e852e531e96a10ab2092 | cb714fbb8257193029f958e73e0f9bd6a68d77f1 | refs/heads/master | 2021-12-16T13:51:23.381206 | 2021-12-03T01:13:36 | 2021-12-03T01:13:36 | 205,632,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | print('Simple Assignment')
shoplist = ['apple', 'mango', 'carrot', 'banana']
# mylist 只是指向同一对象的另一种名称
mylist = shoplist
# 我购买了第一项项目,所以我将其从列表中删除
del shoplist[0]
print('shoplist is', shoplist)
print('mylist is', mylist)
print('Copy by making a full slice')
# 通过生成一份完整的切片制作一份列表的副本
mylist = shoplist[:]
# 删除第一个项目
del mylist... | [
"zhankq@163.com"
] | zhankq@163.com |
d572a6814773a8b7f6c85a0e354e12f8655e0a35 | c4ee4a9d28425aa334038ad174c7b1d757ff45db | /py/trawl/ProcessCatch.py | c12d30c7ce3a588dd4ade0e94526c4bea1bcaaf5 | [
"MIT"
] | permissive | nwfsc-fram/pyFieldSoftware | 32b3b9deb06dba4a168083a77336613704c7c262 | 477ba162b66ede2263693cda8c5a51d27eaa3b89 | refs/heads/master | 2023-08-03T07:38:24.117376 | 2021-10-20T22:49:51 | 2021-10-20T22:49:51 | 221,750,910 | 1 | 1 | MIT | 2023-07-20T13:13:25 | 2019-11-14T17:23:47 | Python | UTF-8 | Python | false | false | 56,327 | py | __author__ = 'Todd.Hay'
# -------------------------------------------------------------------------------
# Name: ProcessCatch.py
# Purpose:
#
# Author: Todd.Hay
# Email: Todd.Hay@noaa.gov
#
# Created: Jan 10, 2016
# License: MIT
#--------------------------------------------------------------... | [
"will.smith@noaa.gov"
] | will.smith@noaa.gov |
5bbd81b6220271c40f2bc0df4af86e81a6f67d38 | a8fa49c3a6c6d6a66a89089fdd013343f48b436e | /count.py | c58715b8be547e0c27acc75056cc92fa42edd5b9 | [] | no_license | avi527/Tuple | 007ec5b6e832c8fd94a418e7e28001d1d3347553 | 1fa58417a5a86bc541ae62bdcdacddc7f6592e1f | refs/heads/master | 2020-07-08T09:17:53.483953 | 2019-08-21T17:18:53 | 2019-08-21T17:18:53 | 203,630,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | # NOTE :- the count() method is used to return the number of elements with
#a specific value in a tuple
#programm to count the number of times letter 'x' appears in specified string
tub='asasasnbcsdjbhjhfaaaaaaabjsdbfdhvfdjhb'
print(tub.count('a'))
| [
"noreply@github.com"
] | avi527.noreply@github.com |
2a5148f46a6509ada6a2311abb815eaa87a49e5a | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/tlm/data_gen/robust_gen/gen_runner2/pairwise_desc_neg_major.py | 5e2915d046f6499f00a526baceaf2ea5ad156de6 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 678 | py | from functools import partial
from data_generator.job_runner import JobRunner
from epath import job_man_dir
from tlm.data_gen.adhoc_datagen import LeadingN
from tlm.data_gen.robust_gen.robust_generators import RobustPairwiseTrainGen2
from tlm.data_gen.run_robust_gen import RobustWorker
def main():
max_seq_length... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
bcfcfae6effa7e2b3cfddb5ad1e2af7d4f40caa6 | 09d564aaab98f72dce6585e78a0642c9fe3539f4 | /日常练习/python_exercise_20181124.py | 77a1eb50c86981a2e63439c1aafb739e42afc032 | [] | no_license | everydayxy/xy_py | 4b983b4bccc843602f1ea0b1d5ea9576119604bf | 08b314e7ecb10e13394aa93b92084c53596834f3 | refs/heads/master | 2020-04-03T08:52:44.729729 | 2019-09-20T15:05:35 | 2019-09-20T15:05:35 | 134,683,779 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # def aaa(n):
# count = len(str(n))
# w = 10 ** (count-1)
# for _ in range(count):
# print(n // w)
# n %= w
# w //= 10
#
# num = int(input('输入一个数字: '))
# aaa(num)
# #输入一个数字,打印最大值
# max1 = -100000000000000000000
# while True:
# try:
# num = int(input('请输入一个数字:'))
# ... | [
"everydayx@163.com"
] | everydayx@163.com |
f13d5c9080a5c0a35528af52c3526818137fe27e | 47386073517c1d5bd0d6e96ded48e0bbb9cdd7a4 | /src/study_cookbook/10模块和包/运行目录或压缩文件.py | 15c8839b803b0f8f296146c8eb820a6d8421bab1 | [] | no_license | halysl/python_module_study_code | f733eba00de75ebd1cdc9c1e9e36f3a7eee03c93 | 189fd3878b0abe68fd56e11357e88facdb4a186f | refs/heads/master | 2022-07-21T06:51:32.129654 | 2021-08-05T09:14:15 | 2021-08-05T09:14:15 | 148,780,484 | 1 | 0 | null | 2022-07-06T20:26:28 | 2018-09-14T11:39:21 | HTML | UTF-8 | Python | false | false | 277 | py | # -*- coding: utf-8 -*-
"""
myapplication/
spam.py
bar.py
grok.py
__main__.py
"""
"""
bash % python3 myapplication
"""
"""
bash % ls
spam.py bar.py grok.py __main__.py
bash % zip -r myapp.zip *.py
bash % python3 myapp.zip
... output from __main__.py ...
"""
| [
"halysl0817@gmail.com"
] | halysl0817@gmail.com |
32af9934c3684fece98b2a567b106cb16cc30b4c | 605d63d23bc2e07eb054979a14557d469787877e | /atest/testdata/variables/same_variable_file_names/different_variable_files/suite3/subsuite1/variable.py | 54f1c9224cb5c5536b9cbabadb8493758f6a6413 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | robotframework/robotframework | 407b0cdbe0d3bb088f9bfcf9ea7d16e22eee1ddf | cf896995f822f571c33dc5651d51365778b1cf40 | refs/heads/master | 2023-08-29T03:19:00.734810 | 2023-08-27T18:14:48 | 2023-08-28T18:14:11 | 21,273,155 | 8,635 | 2,623 | Apache-2.0 | 2023-09-05T04:58:08 | 2014-06-27T11:10:38 | Python | UTF-8 | Python | false | false | 38 | py | SUITE = SUITE_31 = "suite3.subsuite1"
| [
"peke@iki.fi"
] | peke@iki.fi |
b8b2d770fa56dc2737b20940196ba21100eeede9 | 85eff920f0f285abad84c2f6bcfd4f236f3976ab | /webservices/views/product/Discount.py | 2addd7a58ad5beee740e07d16fa28b10c0c2115c | [] | no_license | obxlifco/Web-Picking-App-GoGrocery | 8cf5f7924005a19764e5c4722a47bfd963965f2e | 6b084547bed2af43a67bada313d68e56f4228f96 | refs/heads/main | 2023-05-26T08:32:30.297317 | 2021-06-12T10:05:01 | 2021-06-12T10:05:01 | 315,206,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,390 | py | from webservices.models import *
from django.http import Http404
from webservices.serializers import *
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from django.views.decorators.csrf import csrf_exempt
from django.http import JsonResponse
from re... | [
"mjamal@lifcoshop.net"
] | mjamal@lifcoshop.net |
10a39d56ddb328c6d322c5856d31a5d373aa2ed8 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_RelativeDifference/model_control_one_enabled_RelativeDifference_ConstantTrend_Seasonal_DayOfWeek_LSTM.py | d3d6f857ae0191e4610ab1abbda44e021c1aa868 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 175 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['RelativeDifference'] , ['ConstantTrend'] , ['Seasonal_DayOfWeek'] , ['LSTM'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
263bdb79183e6a8852db732e9fe310df072166bd | b2301365d220ff0295b8beddbed38b0581f9610d | /Django/fs_books_prj/apps/books/migrations/0001_initial.py | 1850bb0485a27325ab15bd0c528dafe99ff4abef | [] | no_license | JoA-MoS/Python | db246a5ff2201c6ef1dfb9d9b0fd8a37e1d7c46d | 4547c2667f3eaf0a001532bb2b103aab3c344fbe | refs/heads/master | 2021-08-16T11:18:20.420868 | 2017-07-21T05:52:18 | 2017-07-21T05:52:18 | 96,125,892 | 0 | 0 | null | 2021-06-10T18:40:09 | 2017-07-03T15:34:52 | Python | UTF-8 | Python | false | false | 676 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-19 19:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Book',... | [
"justin.r.dietz@gmail.com"
] | justin.r.dietz@gmail.com |
9346e299b29cdb9fc9e6cd49bfae383ada7dd18e | 957ab2916bb75edc78b9d7598b4f890b80687ea8 | /core_library/game/file_processing.py | 54792eabf69578013dbe142f86df137299ab7598 | [] | no_license | doug3230/Slayer | 9e91f5db01702c206c3d52460bfb880691d3eb6a | 1dd7e72779e060c397f1e68b829004e147e15f84 | refs/heads/master | 2016-09-06T03:32:53.914322 | 2014-11-01T07:27:12 | 2014-11-01T07:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py | '''
Created on Oct 25, 2014
@author: Richard
'''
import pygame, customization
from pygame.freetype import Font, SysFont
def path_to_file(dir_name, file_name):
if dir_name:
return "{0}/{1}".format(dir_name, file_name)
else:
return file_name
def path_to_image(file_name):
retu... | [
"doug3230@mylaurier.ca"
] | doug3230@mylaurier.ca |
683c8168877dd2b6b8a0c8527e1f7de813a4bdfd | 4c6e0771833c087876b91962ca0f7c2ef821daa4 | /numscrypt/random.py | 1eecb29cb5e905085a0f3250913c2166291b3135 | [
"Apache-2.0"
] | permissive | fangbei/Numscrypt | fb8a57d57ee1fad39ed9789f4e6241ae152ca563 | cf92b8b8edc57b08d24e8db482b5ea9ee8f494cd | refs/heads/master | 2021-01-17T05:18:43.257510 | 2016-03-30T10:27:13 | 2016-03-30T10:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import numscrypt as ns
def rand (*dims):
result = ns.empty (dims, 'float64')
for i in range (result.data.length):
result.data [i] = Math.random ()
return result
| [
"info@qquick.org"
] | info@qquick.org |
e63f9b6c0744c053c48c90909cbf38b01602bcd6 | fadff32aecd82fb9a0925895b437b4c6d994f50b | /microcollections/collections.py | 74946405d62be4c5ee41479296eb1c1de8cbf2dd | [] | no_license | zbyte64/micromodels-collections | 638e6551d7c7dc9092818a65695023eaa8c51bd5 | a7e7a0715f18ade96745321892a0dbafd9e04dac | refs/heads/master | 2021-01-13T02:18:44.343841 | 2014-02-20T00:57:03 | 2014-02-20T00:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,149 | py | # -*- coding: utf-8 -*-
import micromodels
class NotSet:
pass
class CollectionQuery(object):
def __init__(self, collection, params):
self.collection = collection
self.params = params
self._cache = dict()
@property
def model(self):
return self.collection.model
@... | [
"zbyte64@gmail.com"
] | zbyte64@gmail.com |
dca261af830e2fc00b8bbeb22fa8e92af90f3b9d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_oppressors.py | 794179fbab874c62e6c90e5f1fc1331b1f5c3cc8 | [
"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 | 234 | py |
#calss header
class _OPPRESSORS():
def __init__(self,):
self.name = "OPPRESSORS"
self.definitions = oppressor
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['oppressor']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3bf1dfaa5339532ee42b32558cc1c9e8bb8157b2 | 9142f290c2ca89e53ced306804fece05043c3aa0 | /py/trash/bk0/908_predict_1026-1.py | fc46045263cfc0793b058c3a73dbecb9567b93fc | [
"MIT"
] | permissive | norihitoishida/PLAsTiCC-2018 | aea5ecff5c06c46e3097673228054726fb1cc972 | f7f3e86fd3b01145de6f96ebe9a7bdad49439956 | refs/heads/master | 2021-10-09T00:19:27.389096 | 2018-12-19T06:29:55 | 2018-12-19T06:29:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,969 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 26 15:46:49 2018
@author: kazuki.onodera
"""
import numpy as np
import pandas as pd
import os, gc
from glob import glob
from tqdm import tqdm
import sys
sys.path.append(f'/home/{os.environ.get("USER")}/PythonLibrary')
import lgbextension as ex
imp... | [
"kazuki.onodera@dena.com"
] | kazuki.onodera@dena.com |
00d487751a336a68638c30b21a13815a2a96c309 | 07ecc53b5be6b1a34914a0e02265e847f3ac1a65 | /Python/Greedy Algorithm/984_Medium_不含AAA或BBB的字符串.py | 22600af30df05dac1d9060917965bf75ff165bad | [] | no_license | JasmineRain/Algorithm | 764473109ad12c051f5337ed6f22b517ed9bff30 | 84d7e11c1a01b1994e04a3ab446f0a35eb3d362a | refs/heads/master | 2023-03-14T00:39:51.767074 | 2021-03-09T12:41:44 | 2021-03-09T12:41:44 | 289,603,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | class Solution:
def strWithout3a3b(self, a: int, b: int) -> str:
ans = [""] * (a + b)
index = 0
round = 1
ca = a
cb = b
if a >= b:
while ca > 0:
ans[index] = "a"
ca -= 1
index += 3
if index >... | [
"530781348@qq.com"
] | 530781348@qq.com |
c3f8c9326a98788d32a1dd6f6cb2abac77136527 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /1301-1400/1342-Number of Steps to Reduce a Number to Zero/1342-Number of Steps to Reduce a Number to Zero.py | ff2024f01916125f617a9207453ff82c87002008 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 239 | py | class Solution:
def numberOfSteps (self, num: int) -> int:
step = 0
while num != 0:
if num & 1:
num -= 1
else:
num >>= 1
step += 1
return step
| [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
6a1b9b2699b5d40ab586304e0361f170ab18ac56 | ed8cdcce521b8cab33c66f716c0886e17f035d21 | /.history/public/publicfunction_20191221202740.py | 99378bfc5a5a438a74f015f442e55bdf06ce5ce6 | [] | no_license | deancsdfy/AndroidPerformanceTool_windows | 8ac35729bc651c3af551f090d6788b6ee3f17eb5 | c4906aa9347e8e5eca68dbb7cf2d66a327c70d1f | refs/heads/master | 2020-11-27T20:38:55.014228 | 2020-01-09T15:55:52 | 2020-01-09T15:55:52 | 229,593,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,646 | py | #coding=utf-8
import os,platform
import subprocess
import re
serialno_num=''
#判断系统类型,windows使用findstr,linux使用grep
system = platform.system()
if system is "Windows":
find_util = "findstr"
else:
find_util = "grep"
#判断是否设置环境变量ANDROID_HOME
# if "ANDROID_HOME" in os.environ:
# if system == "Windows":
# ... | [
"denacsdfy@gmail.com"
] | denacsdfy@gmail.com |
3abf4e446f31266763a2fe710d62337e05dd91a8 | c21faf85627b1cfd96494aac73cc40e5f11ebb46 | /results/test_330.py | 8be1918b363f41265b49b7e3247f2554e04979da | [] | no_license | ekkya/Cyclomatic-Complexity | d02c61e009087e7d51738e60605875741532b878 | 172db2efdd974f5abad964e335552aec974b47cb | refs/heads/master | 2021-08-28T17:13:14.718314 | 2017-12-12T22:04:13 | 2017-12-12T22:04:13 | 112,042,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 73,382 | py | """Get the number of each character in any given text.
Inputs:
A txt file -- You will be asked for an input file. Simply input the name
of the txt file in which you have the desired text.
"""
import pprint
import collections
def main():
file_input = input('File Name: ')
with open(file_input, 'r') as info... | [
"ekkya@tcd.ie"
] | ekkya@tcd.ie |
288b5306f323b0024d8bdacbb104e4fef3aef131 | f31fda8014ecadf6af7d4e3392fb917c49e0352a | /HeavyIonsAnalysis/VertexAnalysis/python/__init__.py | 33e53c5f468fb19b01b06f042239cab6d2875ca9 | [] | no_license | jniedzie/lightbylight | acea5051f053c49824a49a0b78bac3a2247ee75f | f5a4661fcf3fd3c0e9ccd8893a46a238e30c2aa8 | refs/heads/master | 2020-03-18T12:24:31.970468 | 2018-02-09T15:50:00 | 2018-02-09T15:50:00 | 134,724,759 | 0 | 1 | null | 2018-05-24T14:11:12 | 2018-05-24T14:11:12 | null | UTF-8 | Python | false | false | 216 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/HeavyIonsAnalysis/VertexAnalysis/',1)[0])+'/cfipython/slc6_amd64_gcc491/HeavyIonsAnalysis/VertexAnalysis')
| [
"rchudasa@cern.ch"
] | rchudasa@cern.ch |
4a196cd4f4e92e6b42f9a4e0df6489a41ad1cdfe | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/c8n.py | a152200db7ea0c68b8daebb0c4d24d5fe2909fef | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
0d7612855c30e129d873683d5f7f339e5fd16d61 | aad164e4efe1d55cc189c35956bfd435b14a0f52 | /eve-8.21.494548/eve/client/script/parklife/autopilot.py | 633cb52208bb534d30fdf32b77f2d3a6d17944d3 | [] | no_license | Pluckyduck/eve | 61cc41fe8fd4dca4fbdcc4761a37bcfeb27ed84f | 9a277707ab1f162c6bd9618faf722c0be3ea93ad | refs/heads/master | 2020-12-28T23:35:29.992875 | 2013-05-06T14:24:33 | 2013-05-06T14:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,327 | py | #Embedded file name: c:/depot/games/branches/release/EVE-TRANQUILITY/eve/client/script/parklife/autopilot.py
import util
import destiny
import base
import service
import sys
import uthread
import blue
import log
import localization
import uiconst
from collections import defaultdict
AUTO_NAVIGATION_LOOP_INTERVAL_MS = 20... | [
"ferox2552@gmail.com"
] | ferox2552@gmail.com |
312796ff98fadf97216ff3c7db06d5b89af9ed2e | cfb01066c08fc4f4b0ab481dc0ff7c6ce2fb9981 | /tests/aggregation/tests.py | e81744df29bd81e34a3ccbb0ab02cadb210194f6 | [
"MIT"
] | permissive | pombredanne/django-aggregate-if | 21a8dc460f73d629b79be0c54356c70d92048780 | 02f43633c620de53aa7b9479523bbba8013a3900 | refs/heads/master | 2021-01-23T01:30:13.182765 | 2013-01-02T23:47:45 | 2013-01-02T23:47:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,983 | py | from __future__ import absolute_import
import datetime
from decimal import Decimal
from django.db.models import Q, F
from django.test import TestCase, Approximate
from aggregate_if import Sum, Count, Avg, Max, Min
from .models import Author, Publisher, Book, Store
class BaseAggregateTestCase(TestCase):
fixtur... | [
"henrique@bastos.net"
] | henrique@bastos.net |
45ffaf4426419e33898e073ea47511d7dd5e942c | 632d417159013940d612f7364c2a7c5c88b52a56 | /esign/esign_app/migrations/0011_auto_20180119_1323.py | 1a72ae50f09c5a75f3a94acd9845c1324ab2f88a | [] | no_license | cityking/esign | e553d6197f383fab0435dec5805f140592e2fdfc | f88279e3b7f5800bd5ad3a0bd95ebf494078da4c | refs/heads/master | 2022-11-02T20:12:54.927931 | 2018-02-09T03:02:37 | 2018-02-09T03:02:37 | 120,849,522 | 0 | 0 | null | 2022-10-20T20:28:59 | 2018-02-09T03:07:20 | Python | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-01-19 05:23
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('esign_app', '0010_auto_20180119_1322'),
]
operations = [
mi... | [
"cityking@citykingdeMacBook-Air.local"
] | cityking@citykingdeMacBook-Air.local |
e6cb1c6ae8c2f5f50118d4848598853900007fbf | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/l3remoteusageper1year.py | 9f5ceefbfc23a4350dd913a6766bce7204c280e9 | [] | 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 | 19,817 | 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 |
7edd65620a859a56b61c8982fe8c8e7e7b8822cf | e8274f167fd219ef78241ba8ea89e5d5875ed794 | /cloud/quantum/quantum/api/v2/resource.py | 757d20061e74194d59943d327de57d095cd418a3 | [
"Apache-2.0"
] | permissive | virt2x/folsomCloud | 02db0147f7e0f2ab0375faf4f36ca08272084152 | e6fd612dd77f35a72739cf4d4750e9795c0fa508 | refs/heads/master | 2021-01-01T17:26:28.405651 | 2013-10-17T12:36:04 | 2013-10-17T12:36:04 | 13,647,787 | 0 | 1 | null | 2020-07-24T08:25:22 | 2013-10-17T12:10:24 | Python | UTF-8 | Python | false | false | 4,991 | py | # Copyright 2012 OpenStack 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 b... | [
"quan.xu@intel.com"
] | quan.xu@intel.com |
f01a21e3061792d927357110f3970d7c03ba9050 | 8ed86b8e9c451abcb2ce0ddf2f2067c11f3993d8 | /tests/test_osmnx.py | 33ec027e2986a7c620183d88cd5c271556bd3600 | [
"MIT"
] | permissive | surfcao/osmnx | 65830096c21b8353a536f776dfedba7de20eac4c | 51c9addb42425657fa6b11c7442f79f10b9e3e22 | refs/heads/master | 2021-01-19T23:32:40.068378 | 2017-04-19T20:22:01 | 2017-04-19T20:22:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,082 | py | """
OSMnx tests
-----------
"""
import matplotlib as mpl
mpl.use('Agg') #use agg backend so you don't need a display on travis-ci
import os, shutil
if os.path.exists('.temp'):
shutil.rmtree('.temp')
import osmnx as ox, logging as lg
ox.config(log_console=True, log_file=True, use_cache=True,
data_folde... | [
"gboeing@berkeley.edu"
] | gboeing@berkeley.edu |
b93919749d0ffe49d019f0a0385ed8d83d3592da | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /v8/tools/testrunner/local/testsuite.py | f7fa19b20a0b5ce18abe0cd934fbbe12145291b8 | [
"BSD-3-Clause",
"SunPro",
"bzip2-1.0.6"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 12,313 | py | # Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
47f0c143537b99ffb3e3284dfa05d57756f3b79d | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_1_1_neat/16_1_1_DanielBraithwaite_last_word.py | f312da31370a6413f77cbed11a1a43de2b88ee5d | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 554 | py | def last_word(s):
w = s[0]
for i in range(1,len(s)):
si = ord(w[0])
ei = ord(w[len(w)-1])
ci = ord(s[i])
if ci >= si:
w = s[i] + w
else:
w = w + s[i]
return w
o = open('output.txt', 'w+')
f = open('A-large.in', 'r+')
##f ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b100512b577573496e2a4b06b4ecba61f76b9160 | 0cb8f0f422c790e75da3d3e4d277390039a72637 | /assignment1/question.py | f461ff4af675756623bb5336d0721daddea9cf3d | [] | no_license | curow/CS231N | aa62812bb5698e5b10856dd8f700f56bca2e980a | feafeee3081e22cfc23f5643d71f45e0e6e636f4 | refs/heads/master | 2021-09-04T17:44:25.291119 | 2018-01-20T16:57:51 | 2018-01-20T16:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | def svm_loss_vectorized(W, X, y, reg):
"""
Structured SVM loss function, vectorized implementation.
Inputs and outputs are the same as svm_loss_naive.
"""
loss = 0.0
dW = np.zeros(W.shape) # initialize the gradient as zero
# transpose X and W
# X.sh... | [
"TiwazBiu@gmail.com"
] | TiwazBiu@gmail.com |
0331c7d64d9c4561496104cd1e73f30ef345945b | 403a8c7d9ba2956c3f5873d0721921e0d8ae7c65 | /tests/test_cli.py | 13cee7104e6617fae0738f12d22c77060adeb91a | [
"MIT"
] | permissive | kazhala/fzf.aws | b0c83f0ac47f1b2da0d0b064d6a688ba2e69028c | 4abefb2301f7b489b11ed3f0b303faafa5941d5b | refs/heads/master | 2021-07-05T00:50:12.632284 | 2021-05-25T23:09:51 | 2021-05-25T23:09:51 | 242,327,229 | 68 | 3 | MIT | 2021-03-25T23:42:00 | 2020-02-22T11:09:11 | Python | UTF-8 | Python | false | false | 3,065 | py | from botocore.exceptions import ClientError
from fzfaws.utils.exceptions import InvalidFileType
import os
from fzfaws.utils.fileloader import FileLoader
import unittest
from unittest.mock import patch
from fzfaws.cli import main, copy_config
import sys
import io
from pathlib import Path
import tempfile
class TestCLI(... | [
"kevin7441@gmail.com"
] | kevin7441@gmail.com |
40d60b41be552dcfd2df4f67bf167172d1075756 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/coral-cnn_ID1064_for_PyTorch/model-code/cacd-coral.py | 45795ac09a7b420de8ae37d8e096ba753a70016d | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 16,909 | py | # coding: utf-8
#
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source c... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
536610ba716a9b8715ef45dffd40ac555213c201 | 1dcea2a511f14a43701994f6a7785afd21a20d74 | /Algorithm/61_RotateList.py | ad33302d777bb10f3daee4eb21b7a5bd9a4a46c7 | [] | no_license | lingtianwan/Leetcode2 | 66031e256a2928c6197516f83f14748c52e91b8c | 80a604cc09d5d2d62dd05157d8b829de675e4404 | refs/heads/master | 2021-01-13T11:17:18.238465 | 2017-02-09T01:43:38 | 2017-02-09T01:43:38 | 81,395,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # Given a list, rotate the list to the right by k places, where k is non-negative.
#
# For example:
# Given 1->2->3->4->5->NULL and k = 2,
# return 4->5->1->2->3->NULL.
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class ... | [
"lingtian.wan@gmail.com"
] | lingtian.wan@gmail.com |
278269ce0336906a35c4a57f21cb02693fa64334 | 28b098b11832f1f0d06afe498cf76a64a9a90750 | /backend/thejacobblog_24666/settings.py | 53c464969db683b34de86ff561e4bcb4b06f15ed | [] | no_license | crowdbotics-apps/thejacobblog-24666 | 4fa5ca6c37a47bfcfd325a2a421a6ca0f53ad9f6 | d53ba1565a19577f391422d90f41e8ab6a7f9eb0 | refs/heads/master | 2023-03-18T22:33:56.488920 | 2021-02-22T23:34:51 | 2021-02-22T23:34:51 | 341,368,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | """
Django settings for thejacobblog_24666 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/
"""
i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7f0416307b8c694260d09aa9e48f3b5b5eef0c40 | 71460476c5f5ebdca719def124f1a0650861fdab | /mint_work/custom/pos_order_history_type/models/pos_sales_multi_report.py | af374a7c0fa77f540ef7d46732c590d9499bb3eb | [] | no_license | merdhah/dubai_work | fc3a70dc0b1db6df19c825a3bf1eef2a373d79c0 | e24eb12b276a4cd5b47a4bd5470d915179872a4f | refs/heads/master | 2022-01-07T11:22:07.628435 | 2018-10-17T13:37:24 | 2018-10-17T13:37:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,051 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Bista Solutions Pvt. Ltd
# Copyright (C) 2018 (http://www.bistasolutions.com)
#
##############################################################################
from odoo import models, fields, api, _
from odo... | [
"asghar0517@gmail.com"
] | asghar0517@gmail.com |
3d60ed7e99f218433773775f5e56aec334e9fb8d | 52b2e3470cd4b91975b2e1caed8d1c93c20e5d05 | /tools/parsertools/testbuffer.py | f8f8dd1bfbe81182baf42dae60fe879de314da4a | [] | no_license | xprime480/projects | c2f9a82bbe91e00859568dc27ae17c3b5dd873e3 | 3c5eb2d53bd7fa198edbe27d842ee5b5ff56e226 | refs/heads/master | 2020-04-27T03:51:29.456979 | 2019-04-12T14:34:39 | 2019-04-12T14:34:39 | 174,037,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py |
class TestBuffer(object) :
def __init__(self, tokens) :
self.tokens = tokens[:]
self.size = len(self.tokens)
self.index = 0
def get(self) :
rv = self.peek()
if rv :
self.index += 1
return rv
def peek(self) :
if self.index >= self.size... | [
"mi.davis@sap.com"
] | mi.davis@sap.com |
df6bb199aa33221b02a071eebb1a06018e2600d3 | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /Chapter 3 - Stacks and Queues/linkedlist.py | b949d5439e2e9c0378f1d78a0e7ded42d00de4ba | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | from random import randint
class Node():
"""implementation of a simple Node object"""
def __init__(self,data=None,next=None):
self.next = next
self.data = data
def __str__(self):
return str(self.data)
class LinkedList():
"""linked list implementation"""
def __init__(self,l... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
6e18893137c3c85ef8e273ad56b8170fbe604a00 | e2b9873da7723ef8ae505c4286e4eccbf7416315 | /leagueofclass/cadastros/migrations/0013_remove_atividadesprofessor_teste.py | aca869bbd971ba5dda0a5981a69d7e9f85b5439c | [] | no_license | lucaasaragao/LOC_PAS | 94fc50dd429ce2e9ec71cebdd748f3ff9df1ceac | 22939ab9f7b54ddc6355dce11e55e801e9501327 | refs/heads/master | 2020-03-27T17:57:57.824525 | 2018-11-01T05:22:20 | 2018-11-01T05:22:20 | 146,888,554 | 0 | 1 | null | 2018-10-31T21:37:59 | 2018-08-31T12:23:48 | CSS | UTF-8 | Python | false | false | 349 | py | # Generated by Django 2.0.7 on 2018-09-28 04:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cadastros', '0012_atividadesprofessor_teste'),
]
operations = [
migrations.RemoveField(
model_name='atividadesprofessor',
na... | [
"osvaldo_cavalcanti_filho@hotmail.com"
] | osvaldo_cavalcanti_filho@hotmail.com |
38a73f29cb633dc9396633c72607a3415fa7ed7e | 0640c53cd62def556a098f1e732deee8c1348c9e | /IIITSERC-ssad_2015_a3_group1-88a823ccd2d0/Abhishek Vinjamoori/DonkeyKongFinal/src/player.py | c284e27402935cc64dd01b598004dd4b0546ffa9 | [] | no_license | anirudhdahiya9/Open-data-projecy | 579867fe8716076819734cebdbc6e15bb471bb39 | 26d629f8348f0110fa84b02009e787a238aff441 | refs/heads/master | 2021-01-10T13:50:19.855983 | 2016-03-23T22:46:03 | 2016-03-23T22:46:03 | 54,598,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | import pygame
size=16
class player(person):
def __init__(self,name,initX,initY):
person.__init__(name,initX,initY)
self.marioright =pygame.image.load('../images/m1.png')
self.marioright=pygame.transform.scale(self.marioright,(size,size))
self.mariowalkright=pygame.image.load('../images/m2.png')
se... | [
"anirudhdahiya9@gmail.com"
] | anirudhdahiya9@gmail.com |
dc70e874342123a38005f05ad3a80c1ee0045ec1 | 2c69245fa6b65affaa40755785504df4c12dd3b5 | /phraser/tools/fix_header_guards.py | c4547145f126923db909ff79524774271c76e916 | [
"MIT"
] | permissive | knighton/phraser | 1b711a20193e4722e50d41e0ea11c69dca7bfcef | a4b213260cd9b24fb3052973a1268c021f965ce8 | refs/heads/master | 2021-01-17T09:04:22.561009 | 2016-04-01T21:32:10 | 2016-04-01T21:32:10 | 34,379,599 | 1 | 2 | null | 2016-04-04T21:12:41 | 2015-04-22T08:51:15 | C++ | UTF-8 | Python | false | false | 1,193 | py | #!/usr/bin/python
#
# Fix each .h header guard (useful after moving files around).
import os
DOIT = True
def each_header(root_dir):
for root, dirs, files in os.walk(root_dir):
for name in files:
if name.endswith('.h'):
f = os.path.join(root, name)
yield f
d... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
64bdac7133fc0b26f17c3e74ef60a624dea2bf9a | f4b79529109fbb4055f334d0d9c7c96cb0710447 | /colour/utilities/tests/test_deprecated.py | bfbb70c00812c9381bc5e3c93242eec9a75ef368 | [
"BSD-3-Clause"
] | permissive | trevorandersen/colour | 167381b3d03e506a270a8d2a519a164808995437 | 02b595b26313c4b4f55adc41d599f90c4c9edbcd | refs/heads/develop | 2021-07-15T04:48:19.585586 | 2021-01-23T23:51:44 | 2021-01-23T23:51:44 | 230,421,054 | 0 | 0 | BSD-3-Clause | 2019-12-28T12:54:20 | 2019-12-27T10:10:30 | null | UTF-8 | Python | false | false | 962 | py | # -*- coding: utf-8 -*-
import sys
from colour.utilities.deprecation import (ModuleAPI, ObjectRenamed,
ObjectRemoved)
class deprecated(ModuleAPI):
def __getattr__(self, attribute):
return super(deprecated, self).__getattr__(attribute)
NAME = None
"""
An non-dep... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
6fd9f967435ec0b4885b32a2c99175b9c69f4247 | c2849586a8f376cf96fcbdc1c7e5bce6522398ca | /ch28/ex28-25.py | d6a7549a80d0c5a59f5e9b81527f0036703e34dc | [] | no_license | freebz/Learning-Python | 0559d7691517b4acb0228d1cc76de3e93915fb27 | 7f577edb6249f4bbcac4f590908b385192dbf308 | refs/heads/master | 2020-09-23T01:48:24.009383 | 2019-12-02T12:26:40 | 2019-12-02T12:26:40 | 225,371,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | # 셸브에서 객체 업데이트하기
# updatedb.py 파일: 데이터베이스의 Person 객체를 업데이트
import shelve
db = shelve.open('persondb') # 동일한 파일명으로 셸브를 다시 염
for key in sorted(db): # 데이터베이스 객체들을 보여 주기 위해 반복
print(key, '\t=>', db[key]) # 커스터마이즈 포맷으로 출력
sue = db['Sue Jones'] # 가져오기 위해 키에 의해 인덱싱
sue.giveRaise(.10) ... | [
"freebz@hananet.net"
] | freebz@hananet.net |
3e0a856177c0d402b98ed229c8529ec154be6332 | 8419c3c826dd41630e57c6523fe6de79eca2facb | /workshop of python/samples/ex02Main.py | 7176c022b4c56ea5e02bb7f818bec18b4d7d882a | [] | no_license | thomasernste/python | 4d009f5a891fd7c4a3432a42ea94f94379f6d0de | 7a59d2e37626d4de3a3b7e6942363c424798ad46 | refs/heads/master | 2016-09-05T23:17:18.093787 | 2012-04-29T14:38:28 | 2012-04-29T14:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""docstring
"""
__revision__ = '0.1'
import sys,os
def usage():
#定义函数usage
print "inputFile"
pass
def error():
usage()
sys.exit(-1)
#强制该脚本马上结束,并返回-1作为error code
def readLines(inf):
for line in open(inf):
#打开文件inf,并按行读入
print line... | [
"wangchj04@gmail.com"
] | wangchj04@gmail.com |
54390514accfef3d5b46666a5f12457557475660 | b75918b2ac1dfaf2c1219f40d63004900c9338b1 | /app/main.py | bb88fce0c41afd8a113ef6dc5777bfc4d1d5a774 | [] | no_license | solashirai/ExplainableCourseRecommender | e0f036da9814a0187daa5635da0ff2f86386026d | 6a2795cfc4536548ac3679b3d23b953e55a50a37 | refs/heads/main | 2023-04-14T14:27:36.054830 | 2021-04-19T02:29:48 | 2021-04-19T02:29:48 | 302,346,189 | 1 | 0 | null | 2021-04-18T16:13:48 | 2020-10-08T13:17:44 | Python | UTF-8 | Python | false | false | 4,531 | py | from flask import Flask, request, abort
import rdflib
from escore.pipeline import RecommendCoursesPipeline
from escore.services.course import GraphCourseQueryService
from escore.services import PlanOfStudyRecommenderService
from escore.utils.path import DATA_DIR
from escore.models import StudentPOSRequirementContext, C... | [
"solashakashirai@gmail.com"
] | solashakashirai@gmail.com |
337555e92f42e1fa73ca39f8a52b53366558da88 | bc8f02c870e939359c32d04016f989f0c7526226 | /constraint_adder.py | be8ac25b95b5f8d031b9f6af0994cabbceb480ea | [] | no_license | iamgroot42/gpu_image_segmentation | c53a85267cd373a391c27297ac1befb944067550 | ca97a78a28bf5b76659dcb990a3a312d6d2c6fe3 | refs/heads/master | 2021-01-18T23:46:45.615098 | 2017-10-01T11:35:17 | 2017-10-01T11:35:17 | 80,756,196 | 1 | 0 | null | 2017-10-01T11:35:18 | 2017-02-02T18:37:35 | Cuda | UTF-8 | Python | false | false | 952 | py | import cv2
import sys
object_points = []
background_points = []
counter = 0
data = None
def mouse_callback(event, x, y, flags, params):
global object_points
global background_points
global counter
global data
if event == cv2.EVENT_LBUTTONDOWN:
object_points.append((x, y))
elif event == cv2.EVENT_RBUTTONDOWN:
... | [
"anshuman14021@iiitd.ac.in"
] | anshuman14021@iiitd.ac.in |
bce2bf6200fd54e982429be07bc78ceb941aa813 | e0d9844e123fa0706388814b9f29758258589487 | /version_info.py | 0e3295c8309a411c0cfb18f664f84b223ed0a2ca | [] | no_license | pigpigman8686/seg | b5cf5261a5744e89ed5e5b145f60b0ccc3ba2c0c | 61c3816f7ba76243a872fe5c5fc0dede17026987 | refs/heads/master | 2023-04-10T22:22:35.035542 | 2021-04-22T06:24:36 | 2021-04-22T06:24:36 | 360,398,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | # UTF-8
#
# For more details about fixed file info 'ffi' see:
# http://msdn.microsoft.com/en-us/library/ms646997.aspx
VSVersionInfo(
ffi=FixedFileInfo(
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
# Set not needed items to zero 0. Must always contain 4 elements.
filevers... | [
"952361195@qq.com"
] | 952361195@qq.com |
55e40b3bf8071fca05b6467d0f35479817d7a0dd | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_11546.py | 1fc582462bd10e1e682a285ef7047c01e969c822 | [] | 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 | 20 | py | # export PYTHONPATH
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
729ffe87975dbbc443c0865d023fd89fd57f7aa9 | 99e57f00fcaf4469c1c1b79f2d17176aaef9a790 | /sales_forecast/models/sale_allocation.py | cdce00e85495ffde7e478e89044f78b1410f3649 | [] | no_license | detian08/mcl | d007ffd0e869f3bd9a8c74bc8473119901f0de2a | 32d61148326c931aca0107c3894061773f287e33 | refs/heads/master | 2022-03-23T19:36:29.608645 | 2019-12-11T10:15:50 | 2019-12-11T10:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import uuid
from itertools import groupby
from datetime import datetime, timedelta
from werkzeug.urls import url_encode
from odoo import api, fields, models, _,exceptions
from odoo.exceptions import UserError, AccessError... | [
"adarsh@prixgen.com"
] | adarsh@prixgen.com |
93d874fcb0503c0266f53ab533313773a94261c8 | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/nbclient/util.py | 9b672357b05be0de493e5f59054ae05e0086f448 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 3,205 | py | """General utility methods"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import asyncio
import sys
import inspect
from typing import Callable, Awaitable, Any, Union
def check_ipython() -> None:
# original from vaex/asyncio.py
IPython = sys.modules.ge... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
16f08340f13e5ef8e599df67e8d5494e198b58e8 | cb8c63aea91220a9272498d5ea6cca0a0738b16a | /numberfun.py | 1215b93e182f08eb2efaf9e5f70760eb790eb933 | [] | no_license | akantuni/Kattis | 1265de95bfe507ce7b50451a16f19720b86bef44 | 12f31bb31747096bf157fcf6b1f9242d91654533 | refs/heads/master | 2021-12-14T11:18:27.723045 | 2021-12-11T05:43:37 | 2021-12-11T05:43:37 | 111,472,667 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | n = int(input())
for i in range(n):
nums = input().split()
nums = [int(num) for num in nums]
a, b, c = nums
if a + b == c:
print("Possible")
elif a * b == c:
print("Possible")
elif a - b == c or b - a == c:
print("Possible")
elif a == c * b or b == c * a:
pr... | [
"akantuni@gmail.com"
] | akantuni@gmail.com |
fbd79e2ea249c672bce152386465c6b69ec3b0fa | c67d38c1417c6579175ab4716ac0d84441b5aaa6 | /format_check.py | d7e2d8fa0bdca686a461112932e8dd8839d4259f | [] | no_license | huangy10/AutoUpdateArtworks | 348ff549f40b1c895e186a8a6753c071592e70d0 | eae91f486213624619ad9481351bac22af6df0d1 | refs/heads/master | 2021-01-20T06:22:30.394478 | 2017-03-07T04:51:21 | 2017-03-07T04:51:21 | 83,503,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # check the format of file names to guarantee the integrity
def check_folder_structure(root_path):
pass
def check_data_integrity(root_path):
"""
Check the integrity of image set
:param root_path: the root path where images are stored
:return: Boolean
"""
pass
| [
"woody1573@163.com"
] | woody1573@163.com |
62ef51945e8fd4e850c7446372a0058b0ce54a21 | 33f2f4ed5242f256e2a31145125dad91699c1ead | /Leetcode/Contests/weekly_200_find_winner.py | 4d5aff5422154a9770e74affeafcf60927731bf5 | [] | no_license | Zahidsqldba07/competitive-programming-1 | b04b2962ce7bc4454008a3cbb7bee88c0e02251d | e35b3a1c95c559b7754d4fabf8d2c4f09b0c42b2 | refs/heads/master | 2023-07-11T01:39:38.188489 | 2021-08-29T19:29:47 | 2021-08-29T19:29:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | # 5476. Find the Winner of an Array Game
'''
Given an integer array arr of distinct integers and an integer k.
A game will be played between the first two elements of the array (i.e. arr[0] and arr[1]). In each round of the game, we compare arr[0] with arr[1], the larger integer wins and remains at position 0 and the... | [
"shinghos@mit.edu"
] | shinghos@mit.edu |
d6133e030913d6f52d6462bdb35d3f36d7348abf | dd861ad8a33e1ec43a969746ec58efbbd877ca58 | /telusko/urls.py | 607c4907b6abde60fe968f17fa05fe98bf638a5c | [] | no_license | sajibuzzaman/telusko-DjangoProject | 54c74b1136f4d69dda092fe4ab03958214bc4e60 | c4a8cadfa18544bbfe4c359c730cbc4e2ef318e8 | refs/heads/master | 2023-03-05T22:10:58.583721 | 2021-02-14T20:39:09 | 2021-02-14T20:39:09 | 338,895,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | """telusko URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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')
Class-based... | [
"muhammadsajibuzzaman1998@gmail.com"
] | muhammadsajibuzzaman1998@gmail.com |
07fccbff6dc36b6923a3339363c214e6ebc79309 | ecce8a10aabb24019296cebaa46503f91876796f | /football_app/football_app/referee/urls.py | da7d9c7f2911a0055d6de80c5285c7b36bb0e0b1 | [] | no_license | Yeldarmt/DJangoFootballApp | 28450d60fbd0ec98bdf6d223545e17062442f970 | d9568cd48089c0be55217d8aecadf65053b72420 | refs/heads/master | 2022-11-26T16:19:34.252927 | 2020-04-26T18:09:52 | 2020-04-26T18:09:52 | 237,893,654 | 0 | 0 | null | 2022-11-22T05:28:37 | 2020-02-03T05:42:24 | Python | UTF-8 | Python | false | false | 216 | py | from django.urls import path
from football_app.referee.views import RefereesListView, RefereeDetailView
urlpatterns = [
path('', RefereesListView.as_view()),
path('<int:pk>/', RefereeDetailView.as_view())
]
| [
"eldarmukhametkazin@gmail.com"
] | eldarmukhametkazin@gmail.com |
31d025fb82a70ab3eec3800b715a265d2df76bf7 | 5301656114df4d80c3353536d85e1d15829b9839 | /Frontales/.metadata/.plugins/org.eclipse.core.resources/.history/4b/3004f7adcb4500111f76ccb337b0ec7c | 6cadea6b43bd7bbc821b8e36d65d68fbe7346c30 | [] | no_license | Ducatel/TeXloud | 5f383c3fa2c27b01555574fd513d6f551e302b81 | 38f8be8857e1c6de2e103bbbe39707b49e1375aa | refs/heads/master | 2021-01-01T19:34:51.563829 | 2012-03-01T12:05:13 | 2012-03-01T12:05:13 | 2,885,054 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,575 | #!/usr/bin/python
# -*-coding:utf-8 -*
'''
Created on 10 dec. 2011
@author: Davis Ducatel
'''
import socket
from re import match
import threading
import json
import Ordonnanceur
class Frontal(object):
'''
Classe qui gere le serveur de la frontale de compilation grace à
Son adresse IP
Son port d'ecoute... | [
"hannibal@hannibal-laptop.(none)"
] | hannibal@hannibal-laptop.(none) | |
7972415cb517ef3bfc66323af6cb5649b2c53fb7 | c705252e5368efab6324f2c1716d50002ad22e80 | /1-2 first_exam_2.py | 7898110c7f46dc85665e8b2452fb488bb3fa3e84 | [] | no_license | younkyounghwan/python-exam | dd93124b91bc1d4f2690e9e3e9cb58ff8ef5623d | c0ed718d5dfcde65320da7c30f9a014b00e35151 | refs/heads/master | 2020-04-05T03:48:50.878125 | 2018-11-07T10:20:38 | 2018-11-07T10:20:38 | 156,528,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | """
day 2
"""
print("day 2")
"""
"""
#
f = 3.4
print(f)
i = 1
print(i)
b = True
print(b)
s ="1"
print(i+f)
#print(s+i)
print(int(s)+i)
print(s+int(s))
i = 57
j = 28
| [
"youn7117@naver.com"
] | youn7117@naver.com |
e0a494ce4ad4d72e812f2860cf7f862e5d9881f4 | bfce201a7971b05b2fbe0af4819081d71c3850db | /fermi/Pass7Validation/compare_flight_mc_psf/v1/plot.py | 8b5dbc36066c171de57395421b6155e1fcbbbf1a | [] | no_license | joshualande/PhD-Work | 2fe52f82f726ad6166937a3daed342c8cd9aee2f | 1d834a19b5a9347ccad75bd5a76126d5fd840c64 | refs/heads/master | 2020-04-18T15:14:19.127171 | 2014-01-26T22:58:10 | 2014-01-26T22:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | from matplotlib import rc
rc('ps',usedistiller='xpdf')
rc('text', usetex=True)
rc('font', family='serif', serif="Computer Modern Roman")
from mpl_toolkits.axes_grid.anchored_artists import AnchoredText
from matplotlib.patheffects import withStroke
import matplotlib
import h5py
import pylab as P
import numpy as np
fro... | [
"lande@37a9682d-6443-41a2-8582-b44379b6e86f"
] | lande@37a9682d-6443-41a2-8582-b44379b6e86f |
5ad042bd73c818fb6e254df6b4cf72c179ab9b10 | 87b904ebf11d416567a7e49b91b8e9934f67c6f3 | /insert_row_simple.py | e642a918cd16c4942e211712d5181e4c9c09765b | [
"MIT"
] | permissive | NathanKr/pandas-playground | a701f524aa48f22f6680e48c597206e10f8222e5 | a5355c59cb61ca3a7dcce590ed42d56a6b943783 | refs/heads/main | 2023-06-05T11:07:52.061327 | 2021-07-02T02:35:15 | 2021-07-02T02:35:15 | 328,917,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import pandas as pd
df = pd.DataFrame([])
# most simple insert row
df = df.append(pd.Series([1,2,3]) , ignore_index=True) # insert at the end
df = df.append(pd.Series([4,5,6]) , ignore_index=True) # insert at the end
print(df) | [
"natankrasney@gmail.com"
] | natankrasney@gmail.com |
c116c570c2a56abc674c9fb63d86381c90576e47 | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /leetcode/1484.linked-list-in-binary-tree/1484.linked-list-in-binary-tree.py | 9077aff3937204041003e1371d38f9ce9273451b | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# ... | [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
7e8bd342fc0bb96f6ba727e866bcc18731ac5afa | d5735851b605e8960ca321c0e332c7ed810f3e6d | /Python/files/eatenApples.py | 213e017a02f984a27f4332e28fc80d8f3097ee15 | [] | no_license | pyj4104/LeetCode-Practice | 6ed0cffd3605be6e187bedeb99e3b4b430604913 | 6a7d033bfd687ad2a0d79ac6a7f50ace1625f631 | refs/heads/master | 2023-03-12T00:23:50.913239 | 2021-02-25T03:38:11 | 2021-02-25T03:38:11 | 306,699,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import heapq as h
class Solution:
def eatenApples(self, apples: [int], days: [int]) -> int:
pQueue = []
dateToday = 0
numEaten = 0
for i in range(len(days)):
h.heappush(pQueue, [days[dateToday]+dateToday, apples[dateToday]])
foundStoredApple = False
while pQueue and not foundStoredApple:
thingsTo... | [
"pyj4104@hotmail.com"
] | pyj4104@hotmail.com |
d16ae67b41b1528bb0116d6a8e0870f587fefd41 | 89e4c3dd91ceb3a4a5e74cfaedbb795152ebd1f9 | /lc105_bt.py | dd379a2e68cceb2a57826262c2634dc06cff9c75 | [] | no_license | Mela2014/lc_punch | a230af2c9d40b1af4932c800e72698de5b77d61a | 498308e6a065af444a1d5570341231e4c51dfa3f | refs/heads/main | 2023-07-13T03:44:56.963033 | 2021-08-25T05:44:40 | 2021-08-25T05:44:40 | 313,742,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def buildTree(self, preorder: List[int], inorder: List[int]) -> TreeNode:
if not preorder: return No... | [
"noreply@github.com"
] | Mela2014.noreply@github.com |
43ba18e1ca65424bedf81bd23bc6740a4005af6f | 70876e11e6a102c34c9d7a626a33bda26fcfbf58 | /gino/schema.py | 192cbe80271c90ff2ee13d025cc0c85d70923146 | [
"BSD-3-Clause"
] | permissive | Urielable/gino | c275ad52b108d9ff3cd24a532d348a32cf3b3cb2 | 226d6df131ee32534fd37849a83e2513df5b5f37 | refs/heads/master | 2020-03-25T03:42:23.093065 | 2018-08-02T08:45:37 | 2018-08-02T08:45:37 | 143,355,539 | 1 | 0 | null | 2018-08-02T23:48:54 | 2018-08-02T23:48:54 | null | UTF-8 | Python | false | false | 14,910 | py | # noinspection PyProtectedMember
from sqlalchemy import exc, util
from sqlalchemy.sql.base import _bind_or_error
from sqlalchemy.sql.ddl import (
AddConstraint,
CreateIndex,
CreateSequence,
CreateTable,
DropConstraint,
DropIndex,
DropSequence,
DropTable,
SchemaDropper,
SchemaGene... | [
"fantix.king@gmail.com"
] | fantix.king@gmail.com |
5cd707b6becf1983598806138c1b602763026b7a | 1f5f8f95530003c6c66419519d78cb52d21f65c0 | /projects/golem_api/tests/users/edit_user.py | 8ede3ba2a8db79addec2b7d17f38ee7b733cf6f1 | [] | no_license | golemhq/golem-tests | c5d3ab04b1ea3755d8b812229feb60f513d039ac | dff8fd3a606c3d1ef8667aece6fddef8ac441230 | refs/heads/master | 2023-08-17T23:05:26.286718 | 2021-10-04T20:34:17 | 2021-10-04T20:34:17 | 105,579,436 | 4 | 1 | null | 2018-11-19T00:14:24 | 2017-10-02T20:05:55 | Python | UTF-8 | Python | false | false | 3,058 | py | from golem import actions
from projects.golem_api.pages import users
def test_edit_user(data):
username = actions.random_str()
users.create_new_user(username, '123456', 'test@test.com')
new_username = actions.random_str()
new_email = 'test2@test.com'
new_project_permissions = [{'project': "projec... | [
"luciano@lucianorenzi.com"
] | luciano@lucianorenzi.com |
6c942b2bf53f2c5dd3278b4989aed9c2f3790bae | c6ec292a52ea54499a35a7ec7bc042a9fd56b1aa | /Python/1396.py | 42df2b39f50cb44cdc466e7f32d62dd8cd8ccc59 | [] | no_license | arnabs542/Leetcode-38 | ad585353d569d863613e90edb82ea80097e9ca6c | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | refs/heads/master | 2023-02-01T01:18:45.851097 | 2020-12-19T03:46:26 | 2020-12-19T03:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | class UndergroundSystem:
def __init__(self):
self.history = collections.defaultdict(dict)
self.idToStation = dict()
self.stationTostation = collections.defaultdict(dict)
def checkIn(self, id: int, stationName: str, t: int) -> None:
self.history[stationName][id] = t
... | [
"lo_vegood@126.com"
] | lo_vegood@126.com |
ff685150be501c205b1a25081fb6692c47358299 | 2a86db4e93cfb66a10242438c41660b6555cc8f6 | /Day10/college/college/settings.py | f59a76f3a4f1bb5da72ccae53585e8be043aff5d | [] | no_license | Srinivasareddymediboina/Djano-Batch4 | 97c8b5c192c82c155bd8c95d1b1bff58b1b372aa | 9a8a3df4001ff4cc4c7e31aac194e99c87670482 | refs/heads/master | 2023-01-31T11:54:01.186971 | 2020-12-18T06:00:18 | 2020-12-18T06:00:18 | 284,895,371 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | """
Django settings for college project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"sireeshareyyi@gmail.com"
] | sireeshareyyi@gmail.com |
41f66d5f189dd3871733de89a22fb69901999860 | de8b832a3c804837300b9974dc0151d9294fa573 | /code/experiment/GenderSoundNet/ex16_1_1_1_1_1_1_1_1_1_1_1_1_1/expUtil.py | 71ae408bd5de7553b28a9f4472613859dad14ddd | [] | no_license | YuanGongND/Deep_Speech_Visualization | fcff2ac93e5adffd707b98eb7591f50fe77c1274 | 73a79e3596d9a5ee338eafb9a87b227696de25d1 | refs/heads/master | 2021-07-19T23:00:36.294817 | 2017-10-28T01:04:59 | 2017-10-28T01:04:59 | 105,332,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,429 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 7 00:40:02 2017
@author: Kyle
"""
import numpy as np
import tensorflow as tf
from keras.utils import np_utils
from imblearn.under_sampling import NearMiss, AllKNN, RandomUnderSampler
from imblearn.over_sampling import ADASYN, SMOTE, RandomOverSampler
import sys
sys.path... | [
"ygong1@nd.edu"
] | ygong1@nd.edu |
af8b45eb284b3530ad3e6119002d939b6b2c6eed | d87243c4f3bdd058115846b267964a8b513457a5 | /shortstories/migrations/0001_initial.py | cda48a52ee47a215154c75720299e5dfa2e06f0f | [
"MIT"
] | permissive | evenset/ketabdan-project | 33678b1afafe3cd0f969f624e4aabac10fae718b | ea56ad18f64b35714c6c3a0d85e59a3f8514057a | refs/heads/develop | 2021-07-26T16:29:24.011024 | 2018-09-24T23:20:10 | 2018-09-24T23:20:10 | 125,778,476 | 4 | 0 | MIT | 2018-09-28T04:00:46 | 2018-03-18T23:49:39 | Python | UTF-8 | Python | false | false | 946 | py | # Generated by Django 2.0.3 on 2018-07-13 01:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"you@example.com"
] | you@example.com |
82a1d4a6d1260f47e4cd6b966110c9fd65ca757c | 1fa6c2650c791e35feaf57b87e832613e98797dd | /LeetCode/DS - Heap/M K Closest Points to Origin.py | 2659259e57c56c802f5c7355b47c50a2a063b30e | [] | no_license | hz336/Algorithm | 415a37313a068478225ca9dd1f6d85656630f09a | 0d2d956d498742820ab39e1afe965425bfc8188f | refs/heads/master | 2021-06-17T05:24:17.030402 | 2021-04-18T20:42:37 | 2021-04-18T20:42:37 | 194,006,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | """
We have a list of points on the plane. Find the K closest points to the origin (0, 0).
(Here, the distance between two points on a plane is the Euclidean distance.)
You may return the answer in any order. The answer is guaranteed to be unique (except for the order that it is in.)
Example 1:
Input: points = ... | [
"hz336@cornell.edu"
] | hz336@cornell.edu |
63f331aa35178b96b3b7a5bff53d76affbd12d84 | 687a57837c2ce1ec366ce05d1a3a3a113552137e | /src/neurounits/unit_term_parsing/__init__.py | a794123e054901c0ba4e9d7778810a3f939fb2b4 | [] | no_license | mikehulluk/NeuroUnits | ba9974897b2a1807010fdcd141eac7503ba09766 | ee59a8f7dcce382cb28a0f87b56952e0b7c59f17 | refs/heads/master | 2020-04-05T08:07:13.422241 | 2013-07-29T09:06:06 | 2013-07-29T09:06:06 | 2,848,923 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions... | [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
43c114108be58675f3315ffc4f23538067730145 | 15581a76b36eab6062e71d4e5641cdfaf768b697 | /LeetCode_30days_challenge/2021/August/Set Matrix Zeroes.py | 51c881a0fe2ad8b202fa896fd86dffc76c4635b2 | [] | no_license | MarianDanaila/Competitive-Programming | dd61298cc02ca3556ebc3394e8d635b57f58b4d2 | 3c5a662e931a5aa1934fba74b249bce65a5d75e2 | refs/heads/master | 2023-05-25T20:03:18.468713 | 2023-05-16T21:45:08 | 2023-05-16T21:45:08 | 254,296,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | from typing import List
# Approach 1 with O(M + N) extra memory
class Solution:
def setZeroes(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
rows = set()
cols = set()
n = len(matrix)
m = len(matrix[0... | [
"mariandanaila01@gmail.com"
] | mariandanaila01@gmail.com |
2ec4138b6920016a1f4c5a330d3efbf33d001b78 | aa7eca0eeccc7c71678a90fc04c02dce9f47ec46 | /Codes_13TeV/LimitTool_HiggsCombine/ExcitedQuarksShapeInterpolator/inputs/PhMID_JetTID_Pt200_170_DEta1p5_NoDPhi_CSVL_Summer16_35866pb/input_shapes_Bstar_1bTag_f1p0_13TeV_PhMID-JetTID-Pt200_170-DEta1p5-noDPhi-CSVL_mass700_80X_Summer16_BSFUP.py | 6ea3f07571854d8fbfed47972e78c70de2ef12ec | [] | no_license | rockybala/Analyses_codes | 86c055ebe45b8ec96ed7bcddc5dd9c559d643523 | cc727a3414bef37d2e2110b66a4cbab8ba2bacf2 | refs/heads/master | 2021-09-15T10:25:33.040778 | 2018-05-30T11:50:42 | 2018-05-30T11:50:42 | 133,632,693 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 164,354 | py | shapes = {
500 : [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,... | [
"rgarg@cern.ch"
] | rgarg@cern.ch |
c6672d7dd3e2446b3f16cf09954a42762c8fceef | 88b7c57a0d9a7a3b28ebd9d6c12ecbbebc50e8a5 | /config/settings/dev.py | fb7a3dc769830e8f5120adf3b2bf7efddccd22d8 | [] | no_license | largerbigsuper/beep | 71438a4c2feae1afd6ecd25899e95f441bf2165b | a5d84437d79f065cec168f68210c4344a60d08d1 | refs/heads/master | 2022-09-23T02:09:37.117676 | 2020-01-03T06:21:57 | 2020-01-03T06:21:57 | 209,052,138 | 0 | 0 | null | 2022-09-13T23:03:25 | 2019-09-17T12:47:26 | Python | UTF-8 | Python | false | false | 4,456 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KE... | [
"zaihuazhao@163.com"
] | zaihuazhao@163.com |
62acac9f1ebfd24d7c48ad282623209de9fb6711 | 2626f6e6803c8c4341d01f57228a0fe117e3680b | /students/MikeShand/Lesson 04/json_save/test/test_savables.py | 3121cade9de7f296765a3f5f547a6ab833befd8f | [] | no_license | kmsnyde/SP_Online_Course2_2018 | 9e59362da253cdec558e1c2f39221c174d6216f3 | 7fe8635b47d4792a8575e589797260ad0a2b027e | refs/heads/master | 2020-03-19T17:15:03.945523 | 2018-09-05T22:28:55 | 2018-09-05T22:28:55 | 136,750,231 | 0 | 0 | null | 2018-06-09T19:01:52 | 2018-06-09T19:01:51 | null | UTF-8 | Python | false | false | 2,565 | py | #!/usr/bin/env python
"""
tests for the savable objects
"""
import pytest
import json
from json_save.saveables import *
# The simple, almost json <-> python ones:
# Type, default, example
basics = [(String, "This is a string"),
(Int, 23),
(Float, 3.1458),
(Bool,... | [
"kmsnyder2@verizon.net"
] | kmsnyder2@verizon.net |
591897413cfedd971e1f5fd6e91cc59b6dcc9383 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/cast/helpers.py | c6a92c21fb462790c9a937b728dc7784cd8ac5ec | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 12,912 | py | """Helpers to deal with Cast devices."""
from __future__ import annotations
import asyncio
import configparser
from dataclasses import dataclass
import logging
from typing import TYPE_CHECKING
from urllib.parse import urlparse
import aiohttp
import attr
import pychromecast
from pychromecast import dial
from pychromec... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
2d670cf46ab518d12618a5c7cd214f15721b1946 | 1afec7d1d3099138b5afe5fd73dfd3d24ff4eb15 | /test/functional/feature_minchainwork.py | bf9177d0a7c94fd1dfa263477971b818dbe15ed0 | [
"MIT"
] | permissive | republic-productions/finalcoin | 5c7c6b0734178fe22db63f0946ec555f59e8d0eb | 7c0f335ded1e5c662034c822ca2c474b8e62778f | refs/heads/main | 2023-09-04T17:04:32.683667 | 2021-10-14T17:45:22 | 2021-10-14T17:45:22 | 417,209,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,109 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2020 The Finalcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test logic for setting nMinimumChainWork on command line.
Nodes don't consider themselves out of "in... | [
"republicproductions@protonmail.com"
] | republicproductions@protonmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.