blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f4542a4e4f0a9e311363d52eef284888bfcc9aa | 7198ba93f84d088fe744fa022620d42f0f69f19a | /Chapter_7_code/build/hector_compressed_map_transport/catkin_generated/pkg.develspace.context.pc.py | 8984fe3f1f18d90316a728771d7cc0fa6f28e39e | [
"MIT"
] | permissive | crepuscularlight/ROSbyExample | 114ae726f48cfef1b8e6443593c1204654453096 | fa7b1a60cacca9b1034e318a2ac16ce4c8530d7c | refs/heads/main | 2023-04-04T16:26:36.933566 | 2021-04-23T11:16:50 | 2021-04-23T11:16:50 | 359,818,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "hector_compressed_map_transport"
PROJ... | [
"18003316366@163.com"
] | 18003316366@163.com |
80ba698612aabf6b70d17d5e369c35a56a3f7da3 | 5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04 | /google/ads/googleads/v5/resources/types/mobile_device_constant.py | 11bc9bf5be30bc6cd5ee95a9e40ed5e990ac35bc | [
"Apache-2.0"
] | permissive | pdsing/google-ads-python | 0ce70227cd6bb13a25cd13de0ca05c2636279ecd | ee2c059498d5679a0d1d9011f3795324439fad7c | refs/heads/master | 2023-05-04T18:39:57.412453 | 2021-05-21T16:38:17 | 2021-05-21T16:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | pdsing.noreply@github.com |
c6414d51211591f81639bd9aa9f5a37b26689638 | 26e2345f89e2e134794cc704a44666154383510e | /apps/__init__.py | 6215f06a0b30276a22661fd613704c007fede26a | [] | no_license | yimiqisan/vision | 2448c7cd54e89afde20085c7ee1118b149bcaa8c | 35e2343f921eac9568b62f0e9d9649d73afcb37f | refs/heads/master | 2020-08-25T06:54:03.052801 | 2013-01-06T09:16:46 | 2013-01-06T09:16:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/env python
# encoding: utf-8
"""
__init__.py
Created by 刘 智勇 on 2012-06-13.
Copyright (c) 2012 __MyCompanyName__. All rights reserved.
"""
| [
"yimiqisan@gmail.com"
] | yimiqisan@gmail.com |
07618a6c272315803626e09371751d93c4e4697e | 6be747fc7fd83401977bcaeb92805873c26bede1 | /kotti_multilingual/__init__.py | b32739a3550ca0e12c527acd394d36bf405234ad | [] | no_license | jcerjak/kotti_multilingual | d4f4c52711a3807bb2d6d34e1a10c8b4004fc4b5 | a1d9b1084cb61142e9eda9e9db9b08721d1c46b4 | refs/heads/master | 2021-01-18T07:00:20.707662 | 2013-05-08T10:03:35 | 2013-05-08T10:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | # -*- coding: utf-8 -*-
"""
Created on 2013-05-05
:author: Andreas Kaiser (disko)
"""
from kotti.resources import Document
from kotti.resources import File
from kotti.resources import Image
from pyramid.i18n import TranslationStringFactory
_ = TranslationStringFactory('kotti_multilingual')
def kotti_configure(sett... | [
"disko@binary-punks.com"
] | disko@binary-punks.com |
6270eb006a81ca4c0b00c084d40bfc20494f42b3 | c4fef3126c59d22384b249c1ad4032550fff95a1 | /Game/Level.py | d5a401032c80689af0f54507b8d315556afa233d | [
"MIT"
] | permissive | NoNotCar/SpaceX | 93b44ba7a1db2262a8202e9e68da92ab0afb3d36 | 803390fdf0ed3deee18d8f0d101ae575cf9b55e1 | refs/heads/master | 2020-03-21T20:18:28.735380 | 2018-08-28T08:47:55 | 2018-08-28T08:47:55 | 138,999,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,690 | py | from Layers import Layer, EntityLayer
import Things
from Lib import Gen,Vector
import itertools
from random import sample
V=Vector.Vector2
exghosts=[Things.Lazy,Things.Clyde,Things.Crazy]
class Level(object):
backcol=(0,0,0)
scale=1
cpairs=[("Enemies","Players"),("Dots","Players")]
jscores=None
def ... | [
"13haslat@gmail.com"
] | 13haslat@gmail.com |
ee093ec4c5cd8f8217f36d940a9b589c159ba69b | ffadf5825840d07a47a037cf01d4fa260bc6a48f | /BaekJoon_Online_Judge/11723.py | 55ac57c004dc6e3e81b30cae9ffade9f1630cb19 | [] | no_license | Heeseok-Jeong/Algorithm_Coding_Practice | 8ea2559824a90428f42c9390c7e814da6a4c3366 | 1b320b16ab50a7e8f9926a6909966c4398a703cc | refs/heads/master | 2023-08-12T23:58:21.339709 | 2021-10-09T03:19:06 | 2021-10-09T03:19:06 | 262,222,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import sys
input = sys.stdin.readline
M = int(input())
m_set = set()
for _ in range(M):
op, num = 0, 0
user_input = input().rstrip()
if user_input not in ["all", "empty"]:
op, num = user_input.split()
else:
op = user_input
num = int(num)
if op == "add":
m_set.add(nu... | [
"dldydldy@naver.com"
] | dldydldy@naver.com |
d62180a25da97eb8153efef8e75684d5a057e844 | a693a697d2fb72511498d801e2705e33b4bace36 | /web_app/backend/api/server/settings.py | f4f3fc014e5af777fc31e59aa0cf504c31961054 | [] | no_license | 17shashank17/CottonHub | fb49f9fae24af20e7fe86245620a691d3f487aea | 1b74ffeb269ccc20210e994c28836482173c48f0 | refs/heads/master | 2022-11-26T04:19:19.252935 | 2020-08-08T17:43:31 | 2020-08-08T17:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,570 | py | """
Django settings for server project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"saur.agarwala@gmail.com"
] | saur.agarwala@gmail.com |
b766bb36817a33d17cc27f6aaa28f402ad3fd023 | 60f470b26cc7bb60401d883d919b8096c70b7db3 | /Scrapy/csv_intro/csv_intro/spiders/csv_intro.py | 3ee3f234324f66e20e1b680d78db85af98a00c4d | [] | no_license | Gautam3994/WebScraping | 5b4e13b14938cef441058b326793908f80aab6ed | 44566e801750ded1303d4aad3b701e3544724673 | refs/heads/master | 2021-02-14T14:17:59.068386 | 2020-03-31T21:06:13 | 2020-03-31T21:06:13 | 244,810,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | from scrapy.spiders import CSVFeedSpider
class CsvSpider(CSVFeedSpider):
name = "csv_spider"
start_urls = ['https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-white.csv']
# WE GET BELOW DETAILS BY FOLLOWING THE LINK
delimiter = ';'
quotechar = '"'
headers = ["... | [
"gautam3994@gmail.com"
] | gautam3994@gmail.com |
f710c653fcc79f60ad86cf58675aff11538478b7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2934/48102/253608.py | 5b76cbc5e282cc9279e7f9e45f4bfe7250c9d902 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | def decode(string: str) -> str:
stack = []
for i in string:
if i != ']':
stack.append(i)
else:
temp = ''
j = stack.pop()
while j != '[':
temp = j + temp
j = stack.pop()
num = ''
for j in temp:... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b7654d096f6beb5a925e16623be549f3a13dddd2 | 906fd88953664fec9095540784dd43120211521a | /Code/setup.py | c28667fb8757080b03aeb8ee690e447739fb598a | [] | no_license | mindis/MCTML_Light | fbd7eb28069d522dffa9af96c453a472c4531562 | 0bdf70171159baec07e97ead7732146ff794b898 | refs/heads/master | 2020-07-27T13:48:23.483888 | 2019-09-03T20:50:10 | 2019-09-03T20:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
from sklearn.preprocessing import MinMaxScaler,StandardScaler,RobustScaler,PolynomialFeatures
from sklearn.ensemble import AdaBoostClassifier
from sklearn.svm import SVC
from sklearn.tree import DecisionTreeClassifier
from sklearn.decomposition import PCA,FastICA,KernelPCA
data_preprocesso... | [
"chen.shaohang2046@gmail.com"
] | chen.shaohang2046@gmail.com |
cf9b1b60102545d99b2702565c04177978a9979a | e705de3a44a7cc922e93c76c3aa6e6108222e538 | /problems/0074_search_a_2d_matrix.py | 0483c6b76729d3701f884c22304c25d909637777 | [] | no_license | sokazaki/leetcode_solutions | 34d4877dc7d13dc80ef067211a316c48c6269eca | 42cf52eeef537806c9e3ec7a6e5113c53d0f18a3 | refs/heads/master | 2021-06-21T22:23:25.403545 | 2021-02-21T16:47:19 | 2021-02-21T16:47:19 | 193,951,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | # O(logNM) Solution with Binary Search
import unittest
import bisect
def searchMatrix(matrix, target):
if not matrix:
return False
i = bisect.bisect_left(matrix, [target])
if i < len(matrix) and matrix[i][0] == target:
return True
j = bisect.bisect_left(matrix[i-1], target)
retu... | [
"noreply@github.com"
] | sokazaki.noreply@github.com |
10b751e081eb5883325009ab6ad522521fc01bfa | 567ecf4ea5afbd7eb3003f7e14e00c7b9289b9c6 | /ax/models/numpy_base.py | 11b7a2e4eb044f247b4ead349c59f6137aaf4147 | [
"MIT"
] | permissive | danielrjiang/Ax | f55ef168a59381b5a03c6d51bc394f6c72ed0f39 | 43014b28683b3037b5c7307869cb9b75ca31ffb6 | refs/heads/master | 2023-03-31T12:19:47.118558 | 2019-12-02T16:47:39 | 2019-12-02T16:49:36 | 225,493,047 | 0 | 0 | MIT | 2019-12-03T00:09:52 | 2019-12-03T00:09:51 | null | UTF-8 | Python | false | false | 7,215 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from typing import Callable, Dict, List, Optional, Tuple
import numpy as np
from ax.core.types import TConfig
from ax.models.base import Model
class NumpyModel(Model):
"""This class specifies the interface for a numpy... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
51daceebf1a5cea63d5aca5332e4ff01a45c5c4f | 87934817185afcea62bf92979e912e3665c58858 | /core/helpers/common_functions.py | 2db1f6a4cea1e50b330c26ba3dde8b9effdeb5df | [] | no_license | omago/cost_tracking | 6cb02fae6f58e7662e964878d676c3e8e96ee0bc | a70985278109a8f74778359ea786525ccb6b0a8b | refs/heads/master | 2020-05-20T02:06:39.376511 | 2017-06-01T17:29:27 | 2017-06-01T17:29:27 | 30,844,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | __author__ = 'domagoj'
class CommonFunctions:
@staticmethod
def trunc(num, digits):
sp = str(num).split('.')
# return "" '.'.join(sp[0], sp[:digits])
return str(sp[0]) + "." + str(sp[1][:digits]) | [
"doctorkovac@gmail.com"
] | doctorkovac@gmail.com |
f528e134b7fc26687d8e705b9f0fe8fd27e5924b | a6e2bef6184f57a94ebb205526004156df7cdbb4 | /CS5330 Randomized Algorithms/code/plot.py | 575ef42d6332e75d1a1f38b7c858db671173aca8 | [] | no_license | manosm2/Awsome-Project | 7e2d8446a8ace0e1fecfad92f765bd64465c8ba0 | 595780abd1407c8f0835ff05ddf2bf617ba53c59 | refs/heads/master | 2022-12-14T22:53:29.107924 | 2020-09-17T09:56:28 | 2020-09-17T09:56:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | import os,sys
import shelve
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
def restore_shelve(filename):
''' restore the workspace '''
f_shelf = shelve.open(filename)
for key in f_shelf:
try:
globals()[key] = f_shelf[key]
... | [
"weizhiliu2009@gmail.com"
] | weizhiliu2009@gmail.com |
56f5995fc7f439a2a4d9e8bcee6d9880b6981f45 | 53eee7eb899cb518983008532257037fb89def13 | /2535.difference-between-element-sum-and-digit-sum-of-an-array.py | 7b4b83de351723bb5c2e34633a12778ff0974914 | [] | no_license | chenxu0602/LeetCode | 0deb3041a66cb15e12ed4585bbe0fefce5dc6b26 | 3dc5af2bc870fcc8f2142130fcd2b7cab8733151 | refs/heads/master | 2023-07-05T19:26:21.608123 | 2023-07-02T08:35:35 | 2023-07-02T08:35:35 | 233,351,978 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #
# @lc app=leetcode id=2535 lang=python3
#
# [2535] Difference Between Element Sum and Digit Sum of an Array
#
# @lc code=start
class Solution:
def differenceOfSum(self, nums: List[int]) -> int:
digitSum = sum(map(int, list(''.join(map(str, nums)))))
return sum(nums) - digitSum
# @lc cod... | [
"chenxu@MacBook-Pro.local"
] | chenxu@MacBook-Pro.local |
a2079f88598d3b6d9ec2d69186c4d14ed5fa10f9 | d589c8637283150d5117d56814801c1605061067 | /examples/006_impedance_instability/004_some_checks.py | c5a07b975c7595b2998514c78f15525ae4de0ebd | [] | no_license | PyCOMPLETE/PyPARIS_sim_class | 484c7469798c9aa71e12486a2880f9aecda43f88 | e300c078e58dba4a22309141745d14911b7a7f79 | refs/heads/master | 2021-07-17T19:46:40.666332 | 2020-05-14T17:11:06 | 2020-05-14T17:11:06 | 156,742,764 | 1 | 4 | null | 2020-03-25T14:56:37 | 2018-11-08T17:19:23 | Python | UTF-8 | Python | false | false | 2,596 | py | import sys, os
sys.path.append('../../../')
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
import PyPARIS.myfilemanager as mfm
import PyECLOUD.mystyle as ms
tag = 'noecloud'
flag_check_damp_time = False
tau_damp_x = 50.
tau_damp_y = 100.
flag_check_Qs = True
Q_s = np... | [
"giovanni.iadarola@cern.ch"
] | giovanni.iadarola@cern.ch |
39c7bafbb6743431fa610ea9de9063854e3147de | e714dfd95cb74f4e357af8d085e4dcaf8b7ecdf3 | /0x01-python-if_else_loops_functions/6-print_comb3.py | 1815d869e8ec3d5dd857f74b7f295677696776a9 | [] | no_license | MCavigli/holbertonschool-higher_level_programming_classic | 2cea769dc1fd39e90f6ef74cdb3191e2472b0282 | 870548f964a3deac4a41918e9c3d0bad6cd732b4 | refs/heads/master | 2022-03-06T09:33:56.839118 | 2019-09-27T06:04:34 | 2019-09-27T06:04:34 | 184,122,977 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | #!/usr/bin/python3
for i in range(0, 10):
for j in range(0, 10):
if i >= j:
continue
elif i == 8 and j == 9:
print("{}{}".format(i, j))
else:
print("{}{}, ".format(i, j), end='')
| [
"mcavigli@gmail.com"
] | mcavigli@gmail.com |
a5952c581fa236d4cd1f5fb2e1e6cd98142209f6 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binary_20200524134301.py | 2d712945a0d96095a964b068fcf13480893e5dec | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | def solution(N):
print(N)
maximumCount = 0
binaryNumber = []
while( N > 0):
N = int(N / 2)
if N % 2 == 0 :
binaryNumber.append(0)
else:
binaryNumber.append(1)
# then reverse the number
number = list(reversed(binaryNumber))
s = [str(i) for i i... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
a353a354e1b4924959ca3db69a2b85cfd874a4bb | 21dfcc44840cb94058bcd014946f2a38fbf30c54 | /scripts/EmuContextShare.py | c2759000ab9876c303ef2abeae06c00a43226fed | [
"SGI-B-2.0",
"MIT",
"Libpng",
"BSD-3-Clause",
"LicenseRef-scancode-glut",
"Zlib",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Unlicense"
] | permissive | nigels-com/regal | 819a74deeeac00860bcb6f21c3e59ccad1b78448 | 3f1a06d5c098339d30221c9e999640e4c5437a0b | refs/heads/master | 2020-12-14T16:19:29.701418 | 2015-10-18T08:57:48 | 2015-10-18T08:58:56 | 9,986,650 | 2 | 3 | null | 2014-07-12T07:28:49 | 2013-05-10T17:35:20 | C++ | UTF-8 | Python | false | false | 983 | py | #!/usr/bin/python -B
formulae = {
# GLX
'glXCreateNewContext' : {
'entries' : [ 'glXCreateNewContext' ],
'suffix' : [
'if (ret && share_list)',
' Init::shareContext(ret,share_list);'
]
},
'glXCreateContext' : {
'entries' : [ 'glXCreateContext' ],
'suffix' : [
'if (ret... | [
"nigels@users.sourceforge.net"
] | nigels@users.sourceforge.net |
1655b29b5809d7256dc06dcf3576c3cf9947e5af | c5be6a92f216957d340474b58507606a38c10f5f | /course-files/projects/project_02/option2_data_display/samples/spotify/01_spotify.py | 1b53cccb5096b78277b930598227c782d53af67f | [] | no_license | eecs110/winter2019 | 0b314c35e886b8099368ed7dfd51b707ab73c0c2 | f4107207ca1c9c10b78bdbb74fd82410b00ee363 | refs/heads/master | 2020-04-11T10:09:28.100445 | 2019-03-21T18:00:25 | 2019-03-21T18:00:25 | 161,705,160 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from helpers import spotify
import helpers
import pprint
import json
def write_to_file(results):
file_path = helpers.get_file_path('spotify_tracks.json', subdirectory='results')
f = open(file_path, 'w')
f.write(json.dumps(results))
f.close()
urls = []
search_term = input('\nSearch songs for which ar... | [
"vanwars@gmail.com"
] | vanwars@gmail.com |
90f019fddd3cf3d20ba4015a56a9a1b8281be748 | fc845e6b5fde3d7f8defd705db013578e039486f | /spark/twitter_api.py | 1b4c407e31abc8018e4e492dd70dd5c01ec1740b | [
"MIT"
] | permissive | epu-ntua/PSYMBIOSYS-Influencial | 8eef5bbe0bc31db974ffe11e54fa36566d0d4fb5 | 25b23ca22ff54f97410ad007df2faad1fe2b89ff | refs/heads/master | 2016-08-11T07:57:07.389625 | 2016-03-22T11:05:22 | 2016-03-22T11:05:22 | 52,870,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import twitter
import time
api = twitter.Api(consumer_key='GDWyb1WBb0yJwYBwQ9g3m2nFx',
consumer_secret='BK78W93LakpOwPL84otIl2dVZQ0gNjAYPiFWQbCfdFO6UiF0lF',
access_token_key='95257276-aptBPzbJCDqJWKKZ65RwgtJehNiOTEgoyASzaIPqQ',
access_token_secret='0qHt... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
d64339cf2bdbebdebe845c719e52eb4545106b01 | d45e3f01fe74d34fcbeb53d1aa88546621c1f21a | /src/orders/forms.py | 7c6868b1181a59f19d129eb8d7360ee1ef482106 | [] | no_license | SheraramPrajapat1998/hospital_management | d0ff66f6f3bfaab1e24f8ac032a68761557ef3f6 | 5119f37136837428d03d095f861edec7320a2006 | refs/heads/master | 2023-04-15T03:16:12.125089 | 2021-04-30T11:24:34 | 2021-04-30T11:24:34 | 340,707,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | from django import forms
from django.forms.models import inlineformset_factory
from .models import Bill, BillItem
class BillCreateForm(forms.ModelForm):
first_name = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'First name...'}))
last_name = forms.CharField(widget=forms.TextInput(attrs={'pla... | [
"sheraramprajapat1998@gmail.com"
] | sheraramprajapat1998@gmail.com |
54802271b7a398dc6e291f875046a51771bf14e5 | ad357cfbec64afb8f4cc4043b212996768f9755c | /api/history/factories/core.py | 997d6ac50438478694c8e2904ff076d8d1c267a0 | [
"MIT"
] | permissive | uktrade/market-access-api | 6b4680e6455eb5c25480ccd3e3d9445654269f36 | 4da26d1be53843d22411577409d9489010bdda09 | refs/heads/master | 2023-08-30T14:47:10.373148 | 2023-08-29T13:58:08 | 2023-08-29T13:58:08 | 131,856,014 | 2 | 3 | MIT | 2023-09-14T08:04:42 | 2018-05-02T13:38:37 | Python | UTF-8 | Python | false | false | 2,338 | py | from ..exceptions import HistoryFactoryNotFound
from ..utils import get_model_name
from .assessments.economic import EconomicAssessmentHistoryFactory
from .assessments.economic_impact import EconomicImpactAssessmentHistoryFactory
from .assessments.resolvability import ResolvabilityAssessmentHistoryFactory
from .assessm... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
5235bffbec7ad019aa0e14a5b162e814a7f81200 | 2c398c071f28d95c6b6a7ea9e61c05f0208450c4 | /build/c_module_toc.py | 5d16f8fc850084cf7eeddc0c1cd677e4f2166ffc | [
"Apache-2.0"
] | permissive | techscientist/oil | 930c1d8f121b0ef5fb0dde3ba0409d0ecc8e58e4 | 8fd4a6669092719c413cb9ebb30e7cec42b0443c | refs/heads/master | 2021-01-23T00:39:33.108192 | 2017-05-29T03:23:34 | 2017-05-29T03:23:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | #!/usr/bin/python
"""
c_module_toc.py
"""
import glob
import re
import sys
PURE_C_RE = re.compile(r'.*/(.*)module\.c$')
HELPER_C_RE = re.compile(r'.*/(.*)\.c$')
def main(argv):
# module name -> list of paths to include
c_module_srcs = {}
for c_path in glob.glob('Modules/*.c') + glob.glob('Modules/_io/*.c'):... | [
"andy@oilshell.org"
] | andy@oilshell.org |
bddcf9f7eae372bee83a9fff3fd22e44e5f06f2a | 1670dca534ef4fd7e8d9ca9e6d55b5885e4071f9 | /CodeChef/CodeChef44.py | b6b54019c4cc021602d87ac810de66f55b516148 | [] | no_license | Tejas1510/Pythonary | 24512a6c5abfee17457397aa37849f3a5a739002 | 55c11f74d9f540bf696acecaa78febecd14d8422 | refs/heads/master | 2022-11-23T23:27:32.219513 | 2020-08-02T17:22:17 | 2020-08-02T17:22:17 | 264,151,076 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """"""""""""""""""""""""""""""""""""""
Name of Question:Count Subaray
Link of Question:https://www.codechef.com/problems/SUBINC
"""""""""""""""""""""""""""""""""""""""
t=int(input())
for i in range(t):
n=int(input())
a=list(map(int,input().split()))
t=[0]*n
for i in range(1,len(a)):
if... | [
"noreply@github.com"
] | Tejas1510.noreply@github.com |
e82b2ff19f8e174dc294a49d016f1b785736b22d | 14d8418ca5990217be67aee89fdaa310db03fbba | /test_interf_bandwidth_report.py | d3e6d9d4871659fae26aee1b6f46dcd49f70f573 | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
c3121ab122474b2cd10efef8e78cc8f09b637b74 | 611939aa96af11f5774e9bbcf257eb9949829318 | /selfdrive/manager/test/test_manager.py | e19311f0b77afa8f4c134c3730ea2a4d7924b3f5 | [
"MIT"
] | permissive | Tundergit/tunderpilot | bee3a84160abbe1579d6bd8cbf3761d7a8f1ae16 | 4cba9af9aa225d4c5e5bac46470f1c043c09dd7c | refs/heads/main | 2023-07-18T20:51:23.112780 | 2021-04-02T21:24:21 | 2021-04-02T21:24:21 | 353,823,981 | 3 | 1 | MIT | 2021-09-11T00:29:40 | 2021-04-01T20:52:52 | C | UTF-8 | Python | false | false | 1,824 | py | #!/usr/bin/env python3
import os
import signal
import time
import unittest
import selfdrive.manager.manager as manager
from selfdrive.hardware import EON
from selfdrive.manager.process import DaemonProcess
from selfdrive.manager.process_config import managed_processes
os.environ['FAKEUPLOAD'] = "1"
# TODO: make eon ... | [
"user@comma.ai"
] | user@comma.ai |
db6f588cc416c133fc25807cd2e9a8d1672a4d5f | 49af46c092ee0ed160656ca56cd5f1ce037c6bc6 | /django_maker/migrations/0002_remove_play_project_port_id.py | fe0580c7bdb779892efeb9a12fbc5c47dc728742 | [] | no_license | tomaccosheep/django_restricted_play_001 | b08fe31f014f604acf776f50b3c740a51340759d | 5f84c8b5dbbaca40afd12bb67f3a1ad2976b3aad | refs/heads/master | 2021-05-13T19:04:56.228947 | 2018-01-24T09:21:14 | 2018-01-24T09:21:14 | 116,882,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # Generated by Django 2.0.1 on 2018-01-24 07:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('django_maker', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='play_project',
name='port_id',
... | [
"al.burns.email@gmail.com"
] | al.burns.email@gmail.com |
5f79485ae12823204f5df48879e04b18821b5f0a | 93684882400d0249ad733249f5b2c8dbd230110f | /ClassExercise & studio/Turtle/Visualizing Recursion.py | 87227258b8789357a8991b16a982b69d8fe179a3 | [] | no_license | SmileShmily/LaunchCode-summerofcode-Unit1 | c492bbed966547cc8c1be7f15d7a23cb989d407b | 03474cf77b0dae2bcfaf8513711d3fec72bd4166 | refs/heads/master | 2021-01-16T23:19:23.413010 | 2017-06-29T02:49:19 | 2017-06-29T02:49:19 | 95,730,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py |
'''At the end of ActiveCode 1 you will notice that we call the function myWin.exitonclick(),
this is a handy little method of the window that puts the turtle into a wait mode until you click inside the window,
after which the program cleans up and exits.'''
import turtle
myTurtle = turtle.Turtle()
myWin = turtle.Scre... | [
"zyxjyaya@gmail.com"
] | zyxjyaya@gmail.com |
12a69b16b2b1e1db5f36da1800b1da75fc264c63 | ab79f8297105a7d412303a8b33eaa25038f38c0b | /vit_print_shipment/__openerp__.py | 8dc8a27746765cb58397b70df9782503a0f5da2c | [] | no_license | adahra/addons | 41a23cbea1e35079f7a9864ade3c32851ee2fb09 | c5a5678379649ccdf57a9d55b09b30436428b430 | refs/heads/master | 2022-06-17T21:22:22.306787 | 2020-05-15T10:51:14 | 2020-05-15T10:51:14 | 264,167,002 | 1 | 0 | null | 2020-05-15T10:39:26 | 2020-05-15T10:39:26 | null | UTF-8 | Python | false | false | 309 | py | {
'name': 'Print Out Incoming Shipment with Signature',
'version':'0.1',
'depends': ['stock'],
'author' :'vitraining.com',
'category': 'Purchase',
'description': """
Print Out Incoming Shipment With Signature
""",
'installable':True,
'data': ['report/incoming_shipment.xml'],
}
| [
"prog1@381544ba-743e-41a5-bf0d-221725b9d5af"
] | prog1@381544ba-743e-41a5-bf0d-221725b9d5af |
f091de8c959d3b19a5487f22e935e22398a36a13 | 1b845de8123c750e8735ccf4297bf1e5861cbb4b | /katas/7kyu/kata2.py | c12c369f6e168837aaf54e68a7797da73c2f0397 | [] | no_license | jorgemira/codewars | 3ef2b05fa90722cdd48bb8afb0f7536627bcfec9 | 701a756f3d466dbfe93f228b2e294cf49a7af2ae | refs/heads/master | 2020-12-19T19:07:51.485286 | 2020-01-23T15:54:52 | 2020-01-23T15:54:52 | 235,824,468 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | """
Codewars 7 kyu kata: Find the odd int
URL: https://www.codewars.com/kata/54da5a58ea159efa38000836/python
"""
from collections import Counter
def find_it(seq):
return [k for k, v in Counter(seq).items() if v % 2][0]
| [
"jorge.mira.yague@gmail.com"
] | jorge.mira.yague@gmail.com |
2ac488dd5c40a042e72c7a8952e8b5ca81325ae3 | 83e18f5d4fcd7084defb32981337a8f9b646c4c7 | /python/792.number-of-matching-subsequences.py | 0cad7f67348c54d7058121a251dbcdfcd82302b7 | [
"MIT"
] | permissive | Zhenye-Na/leetcode | 709037a318e1be7e6ab92751f8695d888900591a | 18d91a6ba813f91531b04632563212dfde2cceb9 | refs/heads/master | 2023-04-10T07:06:06.502224 | 2023-04-01T00:18:44 | 2023-04-01T00:18:44 | 145,656,854 | 19 | 9 | MIT | 2022-05-16T03:14:02 | 2018-08-22T04:39:25 | Python | UTF-8 | Python | false | false | 2,257 | py | #
# @lc app=leetcode id=792 lang=python3
#
# [792] Number of Matching Subsequences
#
# https://leetcode.com/problems/number-of-matching-subsequences/description/
#
# algorithms
# Medium (48.70%)
# Likes: 1848
# Dislikes: 106
# Total Accepted: 81K
# Total Submissions: 166K
# Testcase Example: '"abcde"\n["a","bb",... | [
"nazhenye@gmail.com"
] | nazhenye@gmail.com |
d99a4ecb7d9b1271f6887372359d7097c836ce69 | ba3f170332f5ebc1b289df197dc7efeef6ae1329 | /scripts/translate.py | e5254eb80ff1b5fca9fd9f8ec14b85ff29ff5f6d | [
"MIT"
] | permissive | covid2019memories/covid2019-pipeline | c6820f8ffb5ca11250c6778e1aa5dbd5eeec001c | 2fc743a3d2ec482632e44b9e5153ce441101187f | refs/heads/master | 2021-05-19T11:51:49.105943 | 2020-04-05T17:11:01 | 2020-04-05T17:11:01 | 251,684,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,198 | py | # -*- coding: utf-8 -*-
import requests
import json
import codecs
import os
import os.path as path
import re
import glob
import time
import sys
import spacy
from pathlib import Path
from hanziconv import HanziConv
from pypinyin import slug
SOURCE = '../covid2019-sources'
TARGET = '../covid2019-memories'
nlp = spa... | [
"mingli.yuan@gmail.com"
] | mingli.yuan@gmail.com |
e9beabdf8586914d469a2e6a5ef7e80c54e3efe9 | ff5cf96a9a6b57c2d5636345b1478db4cb61e046 | /MeasureDetector/create_joint_dataset_annotations.py | c5c562691cb4b41d505d582346b1de0f8a274de9 | [
"MIT",
"Apache-2.0"
] | permissive | OMR-Research/MeasureDetector | 6b6676ea537166f04e9b7282a6576abbe9ef4dc4 | 5058df0eeccc2608db106464e8a70df9702cd775 | refs/heads/master | 2023-07-19T18:36:21.352828 | 2022-06-21T21:54:05 | 2022-07-14T20:18:54 | 155,849,310 | 31 | 11 | NOASSERTION | 2023-07-06T21:55:00 | 2018-11-02T10:15:17 | Python | UTF-8 | Python | false | false | 7,452 | py | import argparse
import json
import os
import random
from glob import glob
from tqdm import tqdm
from typing import Dict, List
from MeasureDetector.create_dataset_statistics import compute_number_of_system_on_page
engraving_type_mapping = {"print": "typeset",
"printed": "typeset",
... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
f316d833d97faa9154e4d2e54b205ab2d2252ac9 | 3fef91a7856105428a04c26e70434039c5d74ded | /83.删除排序链表中的重复元素.py | a3d393ad66cbc8e2634a8ff6fb6e70f68b7989cf | [] | no_license | vivid-k/Leetcode | 77b1a13795cc1a337b680e43ca29660edcbd1688 | 5d666b55f65368a2458742da70de429498dbb16c | refs/heads/master | 2022-11-16T02:03:17.178858 | 2020-07-14T01:49:35 | 2020-07-14T01:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | #
# @lc app=leetcode.cn id=83 lang=python3
#
# [83] 删除排序链表中的重复元素
#
# @lc code=start
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def deleteDuplicates(self, head: ListNode) -> ListNode:
if not head or n... | [
"luzhangxd@outlook.com"
] | luzhangxd@outlook.com |
4b1a29d2aa94f0dc0c16097092dc199015ece95d | ac2b3f97b4f2423a3724fbf9af69e362183f7f3a | /crimtech_final_project/crimsononline/admin_cust/pipeline.py | f3ee17789c7ce6b518f893329fc539d378f84a2f | [] | no_license | cindyz8735/crimtechcomp | e4109855dd9a87fc11dd29fdf6bb81400c9ce97b | a9045ea79c73c7b864a391039799c2f22234fed3 | refs/heads/master | 2021-01-24T10:06:03.386553 | 2018-04-14T04:24:57 | 2018-04-14T04:24:57 | 123,037,281 | 0 | 0 | null | 2018-02-26T22:08:57 | 2018-02-26T22:08:56 | null | UTF-8 | Python | false | false | 801 | py | from django.conf import settings
from django.contrib.auth.models import Group
from social.exceptions import AuthFailed
def force_new_user(backend, user=None, *args, **kwargs):
"""
Prevent social auth from associating multiple social accounts with
the same crimsononline account.
"""
if user:
... | [
"cindyz8735@gmail.com"
] | cindyz8735@gmail.com |
5fbaa1a3eba6da4299a4f0d3eb1f213cf33231d4 | eb4b1a3e88f40e6cfa86be7baa10881664a7e8a3 | /python/lsst/obs/base/gen3/__init__.py | f2dcd2792162564f3f04e0e98d87d1fc70ca5a6b | [] | no_license | provingground-moe/obs_base | 5b43f8f1285676852e2ef4ea6aaf6b354c2e136b | bbf99654e597feffc34574a78f8c4403ee2f9513 | refs/heads/master | 2020-06-10T20:44:25.460957 | 2019-06-21T20:02:33 | 2019-06-21T20:02:33 | 136,348,756 | 0 | 0 | null | 2018-06-06T15:28:02 | 2018-06-06T15:28:01 | null | UTF-8 | Python | false | false | 1,061 | py | # This file is part of obs_base.
#
# Developed for the LSST Data Management System.
# This product includes software developed by the LSST Project
# (http://www.lsst.org).
# See the COPYRIGHT file at the top-level directory of this distribution
# for details of code ownership.
#
# This program is free software: you can... | [
"jbosch@astro.princeton.edu"
] | jbosch@astro.princeton.edu |
4b9d956bc5e55407179e100d4a258353a7c9de29 | 8bab205ba2df43d71d5dc042722d95b5f7360584 | /oops/polymorphism/studentprog.py | 7c19ea3ddb98c2a7b3d1c533916b79f3b72c8689 | [] | no_license | arunthankachan07/PythonFiles | 740c2e050051053f7c7762b324229d83ede5988d | 4b329893e0a07944ec628dd4d02587265fe79f6b | refs/heads/master | 2023-03-18T11:02:44.709754 | 2021-03-05T12:41:18 | 2021-03-05T12:41:18 | 333,663,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | class Student:
def __init__(self,rol,name,course,total):
self.rol=rol
self.name=name
self.course=course
self.marks=total
def __str__(self):
return self.name
st=Student(100,"arun","mca",400)
st1=Student(101,"aby","bca",340)
st2=Student(102,"joel","bca",300)
st3=Student(103... | [
"arunkaripuzha07@gmail.com"
] | arunkaripuzha07@gmail.com |
c1227245b1fd8dca10e440895563f6a729419f9a | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/inbound_nat_pool.py | a9e3f8c32c331b481d130e6244b6cf829b1853f7 | [
"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 | 4,745 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
529aabf335da4e2dbfa7ba80f2178beb8270052b | c2316db483bcc73b7643f90d27cdab47ae7d73fa | /python/tink/secret_key_access_test.py | 06386d72cf6b9c713ac8b908cda8e4856c29355e | [
"Apache-2.0"
] | permissive | EricBioInf/tink | 360534a4effcd7b731ac66171559235ab82edd91 | 9753ffddd4d04aa56e0605ff4a0db46f2fb80529 | refs/heads/master | 2023-09-05T06:26:18.342483 | 2021-11-09T16:14:43 | 2021-11-09T16:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | # Copyright 2021 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 agreed to in writing,... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
16671b417f48dcc76f8dcaee110f24cb09751b07 | 55c552b03a07dcfa2d621b198aa8664d6ba76b9a | /Algorithm/BOJ/1978_소수 찾기_s4/1978.py | a9a8690a4c0cf62722c03a5c4d7fcfb327f20dd9 | [] | no_license | LastCow9000/Algorithms | 5874f1523202c10864bdd8bb26960953e80bb5c0 | 738d7e1b37f95c6a1b88c99eaf2bc663b5f1cf71 | refs/heads/master | 2023-08-31T12:18:45.533380 | 2021-11-07T13:24:32 | 2021-11-07T13:24:32 | 338,107,899 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # boj 1978 소수 찾기 s4
# noj.am/1978
_ = int(input())
nums = set(map(int, input().split()))
prime = set()
maxVal = max(nums)
flag = [False, False] + [True] * (maxVal - 1)
# 에라토스테네스의 체
for num in range(2, maxVal + 1):
if flag[num]:
prime.add(num)
for i in range(num, maxVal + 1, num):
flag[... | [
"sys19912002@hanmail.net"
] | sys19912002@hanmail.net |
491a2a156e31ae326ae3e56612137972ec502256 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sets_20200609191827.py | 999f76752823847d747af9fec5c9e12b60e5d271 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | import json
def Strings(str):
# dictionary--> key value pairs
values = {}
newArray = []
keys = []
for i in str:
newArray.append(i.split(":"))
for j in range(0,len(newArray)):
key = newArray[j][0]
if newArray[j][0] in values:
values[j][0] += in... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
c75d86d4ec348f6c5abab2b1a1dfdd452c313c09 | b378782e071d09f7da943879ef9e9b907c177fcc | /apps/leads/views.py | 368e92a77497b7d29a65a5b07f730ced99cfd3b0 | [] | no_license | alex1the1great/dj-crm | e9d19c98c6c3c180b831968857410b3f790bf33a | 0f61b13e38f311e4f18a972fbff5aad73858b91a | refs/heads/main | 2023-05-31T07:39:08.926608 | 2021-06-22T05:59:41 | 2021-06-22T05:59:41 | 378,391,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | from django.core.mail import send_mail
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views import generic
from django.urls import reverse
from .models import Lead
from .forms import LeadForm
class LeadListView(LoginRequiredMixin, generic.ListView):
template_name = 'leads/lead_list.html'
... | [
"asimshrestha608@gmail.com"
] | asimshrestha608@gmail.com |
3c6636b0b14c75715f3f74ddc51134a0ce93fc5d | 5a1e1756025bacae88b619d388ebf61b330001ab | /1.Class/Language_Python-master/Language_Python-master/LC29_4_FunctionClosureExample.py | 3dc74e55c9d83ccf3befbb6cada9b564e7e64b3b | [] | no_license | reshmaladi/Python | d1953497703aa15e163cd8ac27be23e3e5c3e947 | 8e9092af63476fef35d221e20acf418983957e53 | refs/heads/master | 2021-10-15T00:55:08.136039 | 2021-10-01T14:32:16 | 2021-10-01T14:32:16 | 165,836,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def addout(num):
def addin(numb):
return num+numb
return addin
def main():
add10 = addout(10)
add100 = addout(100)
print(type(add10))
print(type(add100))
print(add10(90))
print(add100(90))
if __name__=="__main__":
main() | [
"reshma.ladi@gmail.com"
] | reshma.ladi@gmail.com |
a252a4091fab3bca399f8bf5f86f89c582e8118f | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /scramble_string.py | 4a63ec6eb09bab4365ae51f5c003f00c392167c1 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 1,585 | py | '''
We can scramble a string s to get a string t using the following algorithm:
If the length of the string is 1, stop.
If the length of the string is > 1, do the following:
Split the string into two non-empty substrings at a random index, i.e., if the string is s, divide it to x and y where s = x + y.
Randomly decide... | [
"noreply@github.com"
] | erjan.noreply@github.com |
457c5f3a5f3af73288ab6631bf4d8a5df6e80e9a | 69096ca0d67b3d6809a2fe05af51341df62ebc60 | /tibiapy/builders/__init__.py | f020245c850533ae98f703cafbe30149b6b7e612 | [
"Apache-2.0"
] | permissive | Galarzaa90/tibia.py | 6f648aff8b6fbac7be4886435711f7ff08420402 | f8c145dd597c558398bac50e035711e34863b571 | refs/heads/main | 2023-08-17T15:50:31.354488 | 2023-08-17T14:00:07 | 2023-08-17T14:00:07 | 143,892,750 | 30 | 12 | Apache-2.0 | 2023-08-24T17:24:19 | 2018-08-07T15:25:23 | Python | UTF-8 | Python | false | false | 509 | py | from tibiapy.builders.bazaar import *
from tibiapy.builders.character import *
from tibiapy.builders.creature import *
from tibiapy.builders.event import *
from tibiapy.builders.forum import *
from tibiapy.builders.guild import *
from tibiapy.builders.highscores import *
from tibiapy.builders.house import *
from tibiap... | [
"allan.galarza@gmail.com"
] | allan.galarza@gmail.com |
836d62c59a86f5bb42594db62ed3ced82942e2e2 | c65b9c78142c8497a3bd8b450e36519261f5ee97 | /10-17/1182.py | 133c0b845800066abb7a26ae12241e6eb646dc6f | [] | no_license | yonghyun98/yonghyun_backjoon | 4291fe39e573cbdc415a6c77ca8a6f8696f844c7 | 376d9da734f967e56191086f46635cd4dedb89b9 | refs/heads/master | 2022-12-29T18:24:37.902835 | 2020-10-24T02:26:48 | 2020-10-24T02:26:48 | 306,790,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import sys
count = 0
def calc(sum, i):
global count
if N == i:
return
if sum + data[i] == S:
count += 1
calc(sum+data[i],[i+1])
calc(sum, i+1)
f = sys.stdin # 코딩데스트 용도
#f = open('data.txt', 'r') #PC용 테스트용도
N, S = map(int, f.readline().split())
data = list(map(int, f.readline().spli... | [
"you@example.com"
] | you@example.com |
e2f76438821b2b5c87eb19631de8e6ceb0d506c7 | 5928747f4c4f848d959d4daf61a3f1f3078ff0c0 | /text26.py | fcb0e14cd26d7668fc963d652c0078f5fd67606e | [] | no_license | wangzeming666/Class-Exercise-For-Learning | 3227a1231325f21ca195315cccfb5d8f022d5e2d | d7b69774fe94c73b604c154d057432e3f02fe12e | refs/heads/master | 2021-01-22T00:51:34.274101 | 2017-09-02T12:27:35 | 2017-09-02T12:27:35 | 102,194,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | list1 = []
num = input("Please enter a number of list:")
while num:
list1.append(num)
num = input("Please enter a number of list(enter a Enter to quit):")
list2 = set()
numSet = set()
for i in list1:
if i in list2:
pass
else:
list2.add(i)
print(list2)
| [
"wangzeming666@icloud.com"
] | wangzeming666@icloud.com |
16878e4a944f66047ad93b4d67a8aedb0c28e901 | 8450d62c7f98a67ce347c198bad2a2754c3fcf53 | /src/top_sites_check/backend.py | 7d6bd98a7b93f7d66ba3f64513dcc6f5cc08fca3 | [
"Apache-2.0"
] | permissive | deeso/top-sites-check | 27933db74982d564bf362a2cb9acce5fb094b673 | f128c68476a6366f4155a05140fda04ec60e0204 | refs/heads/master | 2021-05-13T20:14:03.777833 | 2018-01-13T00:09:13 | 2018-01-13T00:09:17 | 116,907,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,376 | py | from werkzeug.serving import make_server
from flask import Flask
from threading import Thread
import os
import toml
import json
from .interface import ServiceInterface
from .logger import debug
from .consts import DATA_SOURCES, NAME
HOST = '127.0.0.1'
PORT = 9006
class FlaskServer(object):
def __init__(self, ... | [
"adam.pridgen@thecoverofnight.com"
] | adam.pridgen@thecoverofnight.com |
7d6158bfcbb4fb5ef3ed3852ba575488d1243446 | 356922f38a460a929ed71b5a8081025dffadfdb0 | /A. Presents.py | f614e49f2d088b1605393d927d29732349986a70 | [] | no_license | AdamBures/CODEFORCES-PYTHON | 45b309f87c559a5309db74aed89dad609e9b5b44 | f615e6c39dc0d98367c63cb46dff56efbe9e247d | refs/heads/master | 2022-04-26T01:39:10.423169 | 2020-04-27T16:55:36 | 2020-04-27T16:55:36 | 259,395,392 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | n = int(input())
l = list(map(int,input().split()))
lt = [0]*n
for i in range(n):
lt[l[i]-1] = i+1
for i in lt:
print(i)
| [
"noreply@github.com"
] | AdamBures.noreply@github.com |
c2c1e41d0fb5144ff4039f48f23091fa1f04f13b | d0d3697b723e11c33837b8de2d572a44b84a26db | /get_positions_for_times_in_file.py | 33a252483bf50938c4ca4a3293f430ca76fd2bc0 | [
"MIT"
] | permissive | Swiss-Polar-Institute/science-data-utils | dc77e86a1cca0d7642daf97fa3e9045919efd867 | 6a85570ee586fa1ba1644ba2b1c9dea3a5257eae | refs/heads/master | 2022-08-09T10:02:13.678635 | 2021-11-29T20:03:47 | 2021-12-02T07:39:29 | 145,117,181 | 0 | 0 | MIT | 2022-06-21T21:37:22 | 2018-08-17T12:20:58 | Python | UTF-8 | Python | false | false | 2,167 | py | import argparse
import csv
from datetime_to_position import DatetimeToPosition
from datetime import datetime
def text_to_datetime(dt):
"""Convert text date and time to datetime format then put in ISO8601 format."""
converted = datetime.strptime(dt, "%Y-%m-%d %H:%M:%S")
reformat_iso = datetime.strftime(c... | [
"jenny_t152@yahoo.co.uk"
] | jenny_t152@yahoo.co.uk |
e52507bfc288559510e5e82882ef86a108ba7716 | 26013c9c591e14882dc2e6fea5425d1072ad185e | /library_management_system/app/common/observer.py | 759859dd98ad7fa28542654e93988ed70cf3ec35 | [] | no_license | EricMontague/Object-Oriented-Design-in-Python | 9c7c97af244b6608eb4f7b5e2812179d9063fc4a | 3f1fd1df118903b7abce5e7a338233512a4b542f | refs/heads/master | 2023-06-19T05:36:19.325261 | 2021-07-20T02:28:31 | 2021-07-20T02:28:31 | 298,938,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from abc import ABC, abstractmethod
class IObserver(ABC):
@abstractmethod
def receive_notification(self, notification):
pass
| [
"eric.g.montague@gmail.com"
] | eric.g.montague@gmail.com |
43fae631b77adcfbd35e0544b12571ae46fc976f | 889a421b5def64bc4da81d2feea66e48b6644ca3 | /3. Python_course/H.Following_car/1.Tracking/Tracking.py | 5848d63894f1166588816ecd72ece156c1c5e83b | [] | no_license | YahboomTechnology/Building-bit-starter-kit | ce466a944f2667393b75f33b2cbbcd3d95268fe9 | bb9588cfa15f261b56580266267ab8b05231f6c2 | refs/heads/master | 2021-08-03T19:38:35.761745 | 2021-07-19T10:20:32 | 2021-07-19T10:20:32 | 206,061,346 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # -*- coding: utf-8-*-# Encoding cookie added by Mu Editor
from microbit import display, Image
import buildingbit
display.show(Image.HAPPY)
while True:
sensorL = buildingbit.traking_sensor_L()
sensorR = buildingbit.traking_sensor_R()
if sensorL is False and sensorR is False:
buildingbit.car_run(10... | [
"2448532184@qq.com"
] | 2448532184@qq.com |
5ce0680a227c3211baf3d3b08ccbed50b7dec2c2 | 0c61ad063424ffd3d507c44a82db3ef74598f10f | /trunk/facebook.py | f4bab437b4f6ee4ec69614f6ca6a194d4a8faa90 | [] | no_license | BGCX067/facebook-tray-client-svn-to-git | 87dfaf8b77a1d4245ea0ee83162bbdeb892d8e8f | bdfcc03dfff4a78bd0f62a16275c9ca2f494483e | refs/heads/master | 2016-09-01T08:54:16.616984 | 2015-12-28T14:06:20 | 2015-12-28T14:06:20 | 48,834,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,815 | py | #!/usr/bin/env python
#Facebook Tray Application - A simple gnome applet for displaying/accessing facebook notifications
#Copyright (C) 2009 Matt Katzenberger (mattkatzen+facebook@gmail.com)
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as ... | [
"you@example.com"
] | you@example.com |
832cf7d4d8ef00b4dcc98cece448354f387821a0 | 0a0205b391ab04cbb921fbfa08db27d289fc9bf4 | /trm/subs/deriv/__init__.py | 28619d19b7315a040c54db52d88e9c8c28c1866b | [] | no_license | trmrsh/trm-subs | 12870c2fcccf586cf59860b0a86b7f93e5947635 | 3efc7fec6e47cd8491781cfd1200ef19f149ac0d | refs/heads/master | 2022-05-05T16:22:00.257501 | 2022-03-03T19:53:33 | 2022-03-03T19:53:33 | 11,351,275 | 0 | 1 | null | 2015-10-04T17:43:12 | 2013-07-11T19:41:16 | Python | UTF-8 | Python | false | false | 1,511 | py | """
Pure Python module to parse formulae
Needs much more work.
"""
class Formula(object):
def __init__(self, form):
"""
Initialises a formula from an input string.
"""
pass
class Fnode(object):
"""
Defines a node used to represent formulae.
opvarnum -- operator... | [
"t.r.marsh@warwick.ac.uk"
] | t.r.marsh@warwick.ac.uk |
fb1062d5d998a406064ae1b3dd2030e7b660a1f3 | fcc3597b373ab790f18b142d004f131555744bec | /py/hash_list.py | 8b96bcf62fa067b603d79e7922c8d42933a636e4 | [] | no_license | brittainhard/exp | 8a7049c7472634bbf04ee2cc2adf01f29fe57dae | f81cfc3ddd35bc3f1f41708fed3ef0f110d978d7 | refs/heads/master | 2020-04-16T05:05:52.300975 | 2019-01-30T22:05:26 | 2019-01-30T22:05:26 | 165,292,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import pytest
class HashList(list):
def __hash__(self):
return 1
@pytest.fixture
def hash_list():
return HashList([1, 2, 3])
def test_hash(hash_list):
assert hash(hash_list) == 1
| [
"brittainhard@gmail.com"
] | brittainhard@gmail.com |
1637059e92799c65f00512d7fc2bf63f669012e6 | 518d911a66485947c5d336e96a842f162ef9caf1 | /res/scripts/client/messenger/storage/usersstorage.py | 365b2d328f61300bdd9892db17e6d847ea3c72c7 | [] | no_license | wotmods/WOTDecompiled | 84b8e5d32ee73e1356b4d57318eb76dfac6b5220 | 45fd599666c55cb871f6b84b0ec977b9d4baf469 | refs/heads/master | 2020-12-25T21:34:26.096544 | 2014-11-05T13:58:39 | 2014-11-05T13:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,762 | py | # 2014.10.18 14:44:23 Central European Daylight Time
#Embedded file name: scripts/client/messenger/storage/UsersStorage.py
from collections import deque
from debug_utils import LOG_ERROR
from messenger.m_constants import USER_GUI_TYPE, BREAKERS_MAX_LENGTH
class UsersStorage(object):
__slots__ = ('__contacts... | [
"chodakk@RWAMWCOE31488.emea.roche.com"
] | chodakk@RWAMWCOE31488.emea.roche.com |
6a46f3a0b3a4976c80adcc7191f5fed82e62c5a1 | cd21f2f57d994a5bc5c947f3c433baa1033f8cb5 | /malabarsite/urls.py | fb196e23ac12beab28c96a07897349f5f37ba4e6 | [] | no_license | AshwiniChandran/Malabarsite | b0e3588069a50d368738747e8aa168c8be3313d8 | 83d58457653aa29790efe6eb7acdb9faf6fd1088 | refs/heads/master | 2021-01-20T19:09:17.416203 | 2016-07-10T12:34:07 | 2016-07-10T12:34:07 | 62,986,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from cart.views import HomePageView
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'malabarsite.views.home', name='home'),
# url(r'^malaba... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
66776f6883444d40194a0aaf323c872a648cc556 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/집합_20200628161533.py | dc69cb54593a6e59691ccb616bf4a5be8c6e6679 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # 집합 (set)
# 중복 안됨, 순서 없음
my_set = {1, 2, 3, 3, 3}
print(my_set)
java = {"유재석", "김태호", "양세형"}
python = set(["유재석", "박명수"])
# 교집합 (java 와 python 을 모두 할 수 있는 개발자)
print(java & python)
print(java.in) | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
34b1d94febb46a6fdafb2a3c458b2b3645d5f72c | 92b3ef25a80ba58d0fcfa288001a7455106089a1 | /tests/time_out_assert.py | 33ea1c267545e2d6f43c69d0dfa563adbabe303e | [
"Apache-2.0"
] | permissive | mikando/salvia-blockchain | bb97b7b52277c683c48fcad9a4697ea89e514c47 | 02181d0b5a063374f01eea951570dbc661bddc34 | refs/heads/main | 2023-08-26T15:50:48.931823 | 2021-11-07T21:57:27 | 2021-11-07T21:57:27 | 408,143,294 | 0 | 0 | Apache-2.0 | 2021-09-19T14:32:22 | 2021-09-19T14:04:37 | Python | UTF-8 | Python | false | false | 1,767 | py | import asyncio
import logging
import time
from typing import Callable
from salvia.protocols.protocol_message_types import ProtocolMessageTypes
log = logging.getLogger(__name__)
async def time_out_assert_custom_interval(timeout: int, interval, function, value=True, *args, **kwargs):
start = time.time()
while... | [
"contact@salvianetwork.net"
] | contact@salvianetwork.net |
93049ba1b3be519d51f36d71a2644c5111302d06 | f3c6fa14f0b385c46da5bef88057e6eaa3c35723 | /turbulenz_local/models/apiv1/userdata.py | 15aa47c9a757bdf53a98ad82c0c441d5b035a2de | [
"MIT"
] | permissive | mcanthony/turbulenz_local | 09f476ef95d5e6e4afcc21a7419ae515808b3274 | 3c96c1229514dcd4893b7055599f55ed185db95a | refs/heads/master | 2021-01-21T17:16:54.671904 | 2015-08-26T13:27:35 | 2015-08-26T13:27:35 | 44,890,800 | 1 | 0 | null | 2015-10-25T00:42:19 | 2015-10-25T00:42:18 | null | UTF-8 | Python | false | false | 4,057 | py | # Copyright (c) 2011-2014 Turbulenz Limited
import logging
import os
# pylint: disable=F0401
from pylons import config
# pylint: enable=F0401
from os.path import join as join_path
from turbulenz_local.tools import get_absolute_path, create_dir
LOG = logging.getLogger(__name__)
class UserDataPathError(Exception):... | [
"blakemaltby@turbulenz.biz"
] | blakemaltby@turbulenz.biz |
92d50ad915d4a101a7bfceac732790c79f8b8804 | 2a171178942a19afe9891c2425dce208ae04348b | /kubernetes/test/test_unversioned_api_group_list.py | 9ba6831b1e47429e2a7640f9c53b011d8ff664ce | [
"Apache-2.0"
] | permissive | ouccema/client-python | ac3f1dee1c5ad8d82f15aeecb87a2f5f219ca4f4 | d7f33ec53e302e66674df581904a3c5b1fcf3945 | refs/heads/master | 2021-01-12T03:17:54.274888 | 2017-01-03T22:13:14 | 2017-01-03T22:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.0-snapshot
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Li... | [
"mehdy@google.com"
] | mehdy@google.com |
84390a02b0717c484d369623822ee6a89ff77c2e | 80bd3d43e99f842587be42dcfad999782a1142b3 | /blogapp/migrations/0001_initial.py | 735cc3ee20d24fd92ae95f030823f5e96ad0b880 | [] | no_license | grydinywka/simple_blog | e2733949147caac37634bf3f2850ef3569874b90 | b620be04df3057bfbfe3456ef48fdd0909fb4ffe | refs/heads/master | 2020-09-14T19:22:51.325508 | 2016-09-11T20:15:39 | 2016-09-11T20:15:39 | 67,857,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,954 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-10 07:22
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"grydinywka@gmail.com"
] | grydinywka@gmail.com |
a89cb9a0fbc87b66014b440a5f617838247f1086 | 52b2e3470cd4b91975b2e1caed8d1c93c20e5d05 | /examples/pyqt4/toggle.py | 4a8cec07a54e9e5c67e89da5982e4496c999dd7a | [] | 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 | 1,705 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
ZetCode PyQt4 tutorial
In this example, we create three toggle buttons.
They will control the background color of a
QtGui.QFrame.
author: Jan Bodnar
website: zetcode.com
last edited: September 2011
"""
import sys
from PyQt4 import QtGui
class Example(QtGui.QWidget):
... | [
"mi.davis@sap.com"
] | mi.davis@sap.com |
8b7a53359bf0cab65ba4325509767f63e5b55ee8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03436/s264871013.py | a3d6eb1b053d22ace4055c14bad944af1a8b5693 | [] | 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 | 651 | py | from collections import deque
n,m = map(int,input().split())
white = 0
maze = []
for _ in range(n):
row = list(input())
white += row.count(".")
maze.append(row)
steps = [ [-1]*m for _ in range(n) ]
steps[0][0] = 0
q = deque([(0,0)])
while q:
r,c = q.popleft()
for x,y in [(1,0), (0,1), (-1,0), (0,-1)]:
n... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b672ceda6454e4a425deb26523c8fbe8de4297c0 | 1845f0d71f3ed4063bbb5417ca6ae1555a16dd0a | /rb_analyzers/rbdowngems.py | 7fb2f646b027c113561fedb5d0c6da7967f10263 | [
"MIT"
] | permissive | pombredanne/packagedna | d45ef0b012d6dd43adf2265c36a9c040c0efae2d | 3b3a18c95d651d85095438de5e9084cc21567865 | refs/heads/master | 2023-08-03T00:07:49.564481 | 2021-08-06T20:09:03 | 2021-08-06T20:09:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | #!/usr/bin/env python3
# Download Gems Library
# %%%%%%%%%%% Libraries %%%%%%%%%%%#
import os
import json
import hashlib
import urllib.request
from tqdm import tqdm
from auxiliar_functions.globals import ruby_pkgs
from auxiliar_functions.messages import hashes_differences
# %%%%%%%%%%% Functions %%%%%%%%%%%#
def... | [
"jose.torres@11paths.com"
] | jose.torres@11paths.com |
b42c7ed06c67aad806fb867e934bf6e38e488e51 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v6/proto/enums/criterion_category_locale_availability_mode_pb2.py | 77c6ac8b0e7a9347edf580a62c6c2f94600d75ed | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 5,580 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v6/proto/enums/criterion_category_locale_availability_mode.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
fb113871bd69bac4a1e4c54c3eee175c67fb89f7 | a9c759baa5e815f3db10008f0c6214a642735f37 | /src/greenmine/tests/wiki.py | 54cfe72501f71159655a12f5ccd856b57e4a06dc | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | jespino/Green-Mine | 0892e25363c664195a5d5c2c136b04bb819f4a73 | 448c8f865eca626a658f5a28a8d78d001033f3d3 | refs/heads/master | 2020-04-07T12:48:42.691293 | 2012-06-29T11:38:55 | 2012-06-29T11:38:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,290 | py | # -*- coding: utf-8 -*-
from django.test import TestCase
from django.core import mail
from django.core.urlresolvers import reverse
import json
from django.contrib.auth.models import User
from ..models import *
class WikiRelatedTests(TestCase):
def setUp(self):
self.user1 = User.objects.create(
... | [
"niwi@niwi.be"
] | niwi@niwi.be |
b5526d250f7b8673b7c3aeec8268216f4255a7bb | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/surface/topic/configurations.py | 07cd057f8c1dda930e38bfe2fcfd8c811d08f2d6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 3,633 | py | # Copyright 2015 Google Inc. All Rights Reserved.
"""Gcloud named configuration files supplementary help."""
from googlecloudsdk.calliope import base
class TestingArgFiles(base.Command):
"""Supplementary help for named configurations."""
def Run(self, args):
self.cli.Execute(args.command_path[1:] + ['--doc... | [
"joe@longreen.io"
] | joe@longreen.io |
8807cc268252dc9c47b641671faec4511ed33961 | 9a3e0236fbcc8a61f0d2146adb2d7596a1eec884 | /rescate2.py | 4aca5142bbd6fef54bcfa9583d1138282b3d1cb5 | [] | no_license | stefifm/Guia11 | a0b42a033ee579bca8ea3f8f9a7a2c8c64f58ff9 | e18ae76db5918b023ccfe657b75d923b8c46c6f5 | refs/heads/master | 2022-07-29T13:42:28.923127 | 2020-06-30T16:04:06 | 2020-06-30T16:04:06 | 276,147,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | # 6. Parcial 2 [1k03] 2018
# Se pide desarrollar un programa en Python que permita cargar por teclado
# un texto completo en una variable de tipo cadena de caracteres.
#
# El texto finaliza con ‘.’ y se supone que el usuario cargará el punto para
# indicar el final del texto, y que cada palabra de ese texto está separ... | [
"bruerastefania@gmail.com"
] | bruerastefania@gmail.com |
971424377f3642411ab064d16dafa60653781672 | 73b3cf353c78ebae711620890ef60de36fc2e1e3 | /torchtrainer/meters/loss.py | 70d4ff387b0dc75cfdc441be74b1bffdf953f402 | [
"MIT"
] | permissive | nirvguy/torchtrainer | b7beef610814421145f6b75d8272ded868a0e521 | e0be2e2f9264836dc98ccedee9528b01b3597997 | refs/heads/master | 2021-07-09T02:47:57.211925 | 2020-07-02T03:38:59 | 2020-07-02T03:38:59 | 128,957,193 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | import torch
from torch.autograd import Variable
from .averager import Averager
class LossMeter(Averager):
DEFAULT_MODE = 'min'
def __init__(self, criterion):
super(Averager, self).__init__()
self.criterion = criterion
def measure(self, x, y):
val = self.criterion(Variable(x), Vari... | [
"nirvguy@gmail.com"
] | nirvguy@gmail.com |
e37851ad35505862a887d93718cac5dd6a650975 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /man_and_next_day/public_life_or_way/look_early_thing/life.py | 5119f6c7e9dd049a5515ddb844588d59a9774398 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py |
#! /usr/bin/env python
def long_child_and_important_point(str_arg):
part(str_arg)
print('man')
def part(str_arg):
print(str_arg)
if __name__ == '__main__':
long_child_and_important_point('high_woman_and_government')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
7abaf6c95bb640d4af8194c5316630384f2fb359 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/jhlbhi001/question1.py | 67f151880b2217294f5a3b43014e18134b8b28f5 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py |
#create an empty list
strings=[]
#get a list of names
string=input("Enter strings (end with DONE):\n")
while string !="DONE":
strings.append(string)
string=input("")
x=0
#arrange names to be right-aligned
for string in strings:
y=len(string)
if y>x:
x=y
#print out string ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
0d1c69d274982607919791678042f90998623e16 | 9ce3385fb9829b70f191ea9478ebfe2dd4971c80 | /render/glsl/__init__.py | 91ad4f7d0d2dbb125a6b261a59fba11fda2260f5 | [] | no_license | zalavariandris/editor | f3ffce9ae2bbd70fd9e9ce1b9ce8fc7bb23468a3 | 35b8941af12da58bb190967c28a78c91d5bb43dc | refs/heads/master | 2022-12-18T10:53:24.274321 | 2020-10-01T16:58:17 | 2020-10-01T16:58:17 | 283,721,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | from pathlib import Path
import logging
import functools
@functools.lru_cache(maxsize=128)
def read(*args):
logging.debug("read {}".format(args))
glsl_folder = Path(__file__).parent
if len(args) == 1:
shader = args[0]
vertex = Path(glsl_folder, shader+'.vs').read_text()
fragment = Path(glsl_folder, shader+'.f... | [
"zalavariandris@gmail.com"
] | zalavariandris@gmail.com |
e1459812290340f8f1c4a4a2e508b29b25bf6c36 | 5c4a6130f7b09a652f4cd8feb2132b174cf00f25 | /example1.py | d18994c5c373b3c6fdbff36091fd7c8efad6ce08 | [] | no_license | xiaogaogaoxiao/Machine-Learning-Algorithm-for-Vehicular-Communication-Networks | 3ebbb023e6b25dafbbd2cdf4f412c83c0c6ac0b6 | c9b8b0f5f4f57ae6506c80956e48bad3ac9457ad | refs/heads/main | 2023-06-02T19:58:17.197528 | 2021-06-21T00:33:44 | 2021-06-21T00:33:44 | 445,976,561 | 1 | 0 | null | 2022-01-09T02:38:07 | 2022-01-09T02:38:07 | null | UTF-8 | Python | false | false | 2,099 | py | '''This is a simple example to show how a simualtion can be created within 50 lines.
'''
from sim.simulation import World
from sim.loc import XY
from sim.scenario import BaseScenario
from node.node import BaseNode
from node.mobility import Stationary, StaticPath
from comm.transceiver import Transceiver
from comm.channe... | [
"noreply@github.com"
] | xiaogaogaoxiao.noreply@github.com |
0c36fc385e84541789df7ea51075cd5734a42a2d | 949d35e30f0e027a5b9324330d65989524c8bdc3 | /61_EmployeeImportance(BFS).py | 9d9843cf5f1a27b9c7b6cb9248aa80aef2196e53 | [] | no_license | PrathushaKoouri/BFS-2 | 27b9765a3b32c2c55fbd6a11a769e990f40491dc | 74ff99d1f360c66f42606144afbd53afa198f651 | refs/heads/master | 2020-09-05T05:36:15.286474 | 2019-11-08T17:58:14 | 2019-11-08T17:58:14 | 219,999,388 | 0 | 0 | null | 2019-11-06T13:09:02 | 2019-11-06T13:09:01 | null | UTF-8 | Python | false | false | 1,322 | py | # Passed on leetcode(690)
# Time - O(N), space - O(N)
# BFS Approach, add the root to queue first and remove root and add its subordinates level by level.
"""
# Employee info
class Employee:
def __init__(self, id, importance, subordinates):
# It's the unique id of each node.
# unique id of t... | [
"noreply@github.com"
] | PrathushaKoouri.noreply@github.com |
89dd572936db553605bf7b30f4184a49ac97b7e3 | 34d88082307281333ef4aeeec012a3ff5f8ec06e | /w3resource/List_/Q046.py | eecf239b99b9f57376753446bf728214f088c294 | [] | no_license | JKChang2015/Python | a6f8b56fa3f9943682470ae57e5ad3266feb47a7 | adf3173263418aee5d32f96b9ea3bf416c43cc7b | refs/heads/master | 2022-12-12T12:24:48.682712 | 2021-07-30T22:27:41 | 2021-07-30T22:27:41 | 80,747,432 | 1 | 8 | null | 2022-12-08T04:32:06 | 2017-02-02T17:05:19 | HTML | UTF-8 | Python | false | false | 166 | py | # -*- coding: UTF-8 -*-
# Q046
# Created by JKChang
# Thu, 31/08/2017, 16:35
# Tag:
# Description: 46. Write a Python program to select the odd items of a list.
| [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
1f4ed269cc8223acf6a905895a6a5e12b995375d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_53/627.py | b14cc76cdb61bc07b9ba174b32f3f14353bb8a2d | [] | 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 | 654 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
def open_fi(fi):
fi = open(fi)
T = int(fi.readline()[:-1])
newfi = open("A-large.out", "w")
for k in xrange(T):
N, K = map(int, fi.readline().split())
# a = bin(K)[2:]
# b = a[-N:]
# if "0" in b:
# sol = "OFF"
# else:
# sol = "ON"
#
## que du binair... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6d43a8348386e0de9a77aad4b3712e1d8929c0c1 | c50cf19707ecf44c8e15acf0e994d288fe4f01a7 | /server/migrations/0100_driver_ssn.py | 4c88162457b9cfd31232b654480e05061f73dc8a | [
"MIT"
] | permissive | JeremyParker/idlecars-backend | ee5981356c60161dee05c22e01e5c913e73083c0 | 819cce48e4679d61164b238b81dab0e4d51b8afa | refs/heads/master | 2021-03-16T04:29:43.287760 | 2018-03-03T23:16:02 | 2018-03-03T23:16:02 | 31,734,223 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('server', '0099_auto_20160420_1058'),
]
operations = [
migrations.AddField(
model_name='driver',
name... | [
"github@jeremyparker.org"
] | github@jeremyparker.org |
36b718b48840c5a4609c7f95858667a1f2d7f114 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D11B/PROINQD11BUN.py | 911e7af2d8002998253bf6c05694ce28f2ee0c3a | [] | 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 | 1,195 | 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: 1, MAX: 9},
{ID: 'CUX', MIN: 0, MAX: 1},
{ID: 'NAD'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
7c2bfe743dedc502b7a9989b2083f35ddf4f4139 | d7cd51a7aaa9bd5a7c39409a39d1be1944ecb9c4 | /practice/amadon-master/poorly_coded_store/views.py | d9e132a377e65043f7241cc2bbd35e445e0961a3 | [] | no_license | Geneveroth/Coding_Dojo_Assignments | ae525e6d95e0f3fcf10b44a6734e8996b53ec7e1 | 9643845e237d5029de03dfe1ae2d43a49350ba22 | refs/heads/master | 2022-12-23T18:46:08.971696 | 2020-07-21T20:44:17 | 2020-07-21T20:44:17 | 251,153,510 | 0 | 0 | null | 2021-01-06T03:08:14 | 2020-03-29T23:10:09 | Python | UTF-8 | Python | false | false | 1,213 | py | from django.shortcuts import render
from .models import Order, Product
def index(request):
context = {
"all_products": Product.objects.all()
}
return render(request, "store/index.html", context)
def checkout(request):
quantity_from_form = int(request.POST["quantity"])
price_from_form = flo... | [
"black.samlh@gmail.com"
] | black.samlh@gmail.com |
36e90fd848b78ee1aec034462131c2f0b1e97aa4 | f28591fab50d9b7a539c66b5a81fc91d1bc2ce64 | /py3/def/test/fs_move.py | 1ccb276de16a641045fe279a7bcb94be746097cf | [] | no_license | tnzw/tnzw.github.io | b8a5fe1f8479736bbf2b3594d511a1282939a3b3 | 6d95968db793cebcfa77cb49eecd987f821350db | refs/heads/master | 2023-04-21T14:22:49.849859 | 2023-03-31T15:55:01 | 2023-03-31T15:55:01 | 176,712,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | def fs_move_stat_to_str(s, props=None):
if props is None: props = ("mode","uid","gid","size","mtime")
s = {k:getattr(s, "st_"+k) for k in props}
s = {k:(oct(v) if k in ("mode",) else v) for k,v in s.items()}
s = {k:(int(v) if k in ("mtime","atime","ctime") else v) for k,v in s.items()}
return s
def fs_move_so... | [
"tzw56702@outlook.com"
] | tzw56702@outlook.com |
d897cdc34bff4430fcfec70a8a8785d5ae477e39 | 2a91a64f5464c48fb56bd2f0e01668737d4eafa9 | /google-cloud-sdk/lib/googlecloudsdk/command_lib/recommender/flags.py | 02b64b20a945fd702d455c6bf1c0cbc2525d3cb4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | salewski/google-cloud-sdk | 8513faf8c2f5b9180361efb567c4cfb9986d1e21 | 060174026ac068b6442b6c58bedf5adc7bc549cb | refs/heads/master | 2023-08-16T09:44:57.948620 | 2021-10-05T00:00:00 | 2021-10-05T16:15:40 | 417,465,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | # -*- coding: utf-8 -*- #
# 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 requir... | [
"gcloud@google.com"
] | gcloud@google.com |
6417045d60d012ae07a123a540ffeff3f621d3d8 | 3d7061bfda8b8cabb2993adfa24895737e3e0908 | /Python/Advanced_python/oops-part-3/inheritance6.py | d920de7886abb3e760bd73134cc6a1f3ce3f9461 | [] | no_license | anilreddy2896/hard | 2c0b8f324e4fea25d330f366bb813346d4ca559a | 5873cf72506945092f44e842e2bd9204ea062451 | refs/heads/main | 2023-04-10T09:00:11.335810 | 2021-04-13T21:29:14 | 2021-04-13T21:29:14 | 337,316,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py |
# has-a and is-a relation
class Car:
def __init__(self,name,model,color):
self.name=name
self.model=model
self.color=color
def getinfo(self):
print("Name of car:",self.name)
print("Model of the car: ",self.model)
print("Color of the car: ",self.color)
cl... | [
"reddy@gmail.com"
] | reddy@gmail.com |
71908d7a6bfdeb403f8431ac87b0716ff20a0a93 | 48832d27da16256ee62c364add45f21b968ee669 | /res_bw/scripts/client/postprocessing/rendertargets/__init__.py | 315aef65e70d5acbfe117e685790846feaf030dd | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,036 | py | # 2016.08.04 19:56:21 Střední Evropa (letní čas)
# Embedded file name: scripts/client/PostProcessing/RenderTargets/__init__.py
"""RenderTargets python module
This module manages the render targets used by the post-processing chain.
"""
import BigWorld
import traceback
__all__ = ['calcMemoryUsage',
'reportMemoryUsage',... | [
"info@webium.sk"
] | info@webium.sk |
64e2db9179bd10879a76df6467b865d49233105b | 9e42315d4d28d1628da489ecd3f23151fa9186c8 | /aoc_2017/solutions2017/day18/part2.py | faaf88921d027c825cd6c5e04dd85964bd7f8a60 | [] | no_license | SGenheden/advent_of_code | ee3fc7ad038520d978dfab5180adb8b17de1627a | bdb028f14a709e315bf5bb84691e5c066b02998a | refs/heads/master | 2021-12-14T22:54:21.323932 | 2021-12-06T18:10:06 | 2021-12-06T18:10:06 | 163,210,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | from solutions2017.utils.assembly import AssemblyBase
class CommAssembly(AssemblyBase):
def __init__(self, program_id):
super(CommAssembly, self).__init__()
self.registers["p"] = program_id
self.partner = None
self.messages = []
self.sent = 0
def execute(self, instruct... | [
"samuel.genheden@gmail.com"
] | samuel.genheden@gmail.com |
783e18ca469dcf4d270cd1328833f94440b028d3 | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/test/python/common-services/HAWQ/test_alert_segment_registration_status.py | 9c5dc59322c431452ec543306b5dc12984a31466 | [
"MIT",
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 8,049 | py | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
19ab581b397fe2ac3a8f6dae8bb2742eafd6d8f9 | 6250be4dcf519d0f0b152b10a641b2d12a35c53f | /모두의 파이썬/06B-circle.py | c6f54cc5c567bf0f0685027c7527b56b574f586f | [] | no_license | heechul90/study-python-basic-2 | babd01f6a7c2b1fbed4aa31030bb40128960a989 | 94780478e59dfc998baa6e3069ab2473c5df74db | refs/heads/master | 2022-10-27T14:44:00.688509 | 2022-10-24T10:55:33 | 2022-10-24T10:55:33 | 196,142,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # 원을 반복해서 그리는 프로그램
import turtle as t
n = 50 # 50개의 원을 그립니다.
t.bgcolor("black") # 배경색을 검은색으로 지정합니다.
t.color("green") # 펜의 색을 녹색으로 지정합니다.
t.speed(0) # 거북이 속도를 가장 빠르게 지정합니다.
for x in range(n): # n번 반복합니다.
t.circle(80) # 현재 위치에서 반지름이 80인 원을 그립니다.
t.left(360/n) ... | [
"heechul4296@gmail.com"
] | heechul4296@gmail.com |
b72afa8a93fe74a697c3c1133d30617b8e7eb2dd | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/database_migration/conversion_workspaces/seed.py | c6648e46f8f1f4e6d3d2200082aff5c21225f7d4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 4,269 | py | # -*- coding: utf-8 -*- #
# Copyright 2022 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
aca095988d834b229c6a5bb3cc79be930419e38e | f686a24638c2db0a74b4de5ee09823c432e2dffb | /build/catkin_generated/generate_cached_setup.py | bc75d519d8c35c24d9eaac10f0e004efee956b8a | [] | no_license | crescent-igor/ROS | 2bc9ac2e2b866dc2c8e0578ba3434e813d3d0341 | cf8211bbf94a14f1de7a94799e41759ca5d51462 | refs/heads/master | 2021-01-02T11:00:57.212261 | 2020-02-10T19:13:43 | 2020-02-10T19:13:43 | 239,591,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"you@example.com"
] | you@example.com |
853aa2cbde81cdffdfe2b77c12fb974721306692 | 99be92b56bc6f21ef4809989a92228668755cb5e | /data_generators/all_problems.py | 313d56df37cd85706c2bd4173328ede6db5d147b | [] | no_license | spacegoing/t2t_sg | 33e4e1096f9261ac0abfd0b83432466c6f0596fb | 3830d730d0591c0897b0327be41521474f59f9ce | refs/heads/master | 2022-11-15T08:34:36.886209 | 2018-06-08T12:09:26 | 2018-06-08T12:09:26 | 129,492,484 | 0 | 1 | null | 2022-10-11T07:23:32 | 2018-04-14T07:22:58 | Python | UTF-8 | Python | false | false | 2,702 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"spacegoing@gmail.com"
] | spacegoing@gmail.com |
fd408408d2b09cddf79a3de21ae44cc0fde72463 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/semantic_segmentation/BiseNetV1_for_PyTorch/configs/deeplabv3plus/deeplabv3plus_r50-d8_480x480_40k_pascal_context.py | 36b57346fc82bd1f901ebabc4ca0c60f60108044 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 1,122 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
4c6af234dd939e5c53f992d246e9f35ac9fad897 | 0e50497e14e2002fa2f40a181a92d010bcb8ca83 | /ecom/models.py.330e15ab17c791d5f8b0099010130a51.tmp | 0d33e8506bfe5f66111887a79c5f1e013dbda04e | [] | no_license | ChetanKoranga/ecommerce | 00e14d103d81908632b0cd00dff7053d20f204e4 | 3a8fbd1fb56767c88ec04ce6748ad33cfbad4ce9 | refs/heads/master | 2023-04-30T15:53:50.625754 | 2020-07-20T15:01:41 | 2020-07-20T15:01:41 | 263,393,645 | 0 | 1 | null | 2023-04-21T20:59:13 | 2020-05-12T16:38:02 | CSS | UTF-8 | Python | false | false | 807 | tmp | from django.db import models
class Category(models.Model):
category_name = models.CharField(max_length=50)
def __str__(self):
return self.category_name
class SubCategory(models.Model):
subcategory_name = models.CharField(max_length=50)
category_name = models.ForeignKey(
Category, on... | [
"chetankoranga3@gmail.com"
] | chetankoranga3@gmail.com |
ea6ce416fa9d249afa3492eb1c916f9f40396336 | caceb60f71165772b6d6155f619e79189e7c80a9 | /第二期/成都-MFC/selfpractice/backupdemo/bakcup_ver5.py | 9dd64f4a71baa8db911348dabc142c3ad88afe96 | [
"Apache-2.0"
] | permissive | beidou9313/deeptest | ff41999bb3eb5081cdc8d7523587d7bc11be5fea | e046cdd35bd63e9430416ea6954b1aaef4bc50d5 | refs/heads/master | 2021-04-26T23:06:08.890071 | 2019-04-03T02:18:44 | 2019-04-03T02:18:44 | 123,931,080 | 0 | 0 | Apache-2.0 | 2018-03-05T14:25:54 | 2018-03-05T14:25:53 | null | UTF-8 | Python | false | false | 726 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'MFC'
__time__ = '18/2/25 20:54'
"""
A-Byte-of-Python P97
继续改进
需求:
1.支持参数设置
在程序中添加-v显示详尽程序
在程序中添加-q使程序能静默运行
在程序中添加-V显示程序版本号
2.在命令行中允许额外的文件与目录传递到脚本中
从sys.argv获得名称
通过list类的extend方法把名称添加到source列表中
3.不使用os.system创建备份
使用zipfile和tarfile来归档文件
软件开发流程中的阶段... | [
"moneyfromcat@foxmail.com"
] | moneyfromcat@foxmail.com |
e8aa999f782421da240912e644ceac12de7e8a44 | 24a9c8f2fac4e2b20f731387336ec4e22d5fd2c7 | /AdministrativePenalty/宁夏/石嘴山市数据/24.16石嘴山市地方税务局直属征收管理局 .py | da896f01a4655ce3855d1e803963dc5d5f81de29 | [] | no_license | yunli45/pycharmProjectHome | 94833822e3036bf2baf8700c4493132e63177d4c | 9a382c060963eb801a3da07423e84a4132257b02 | refs/heads/master | 2020-05-23T23:35:20.476973 | 2019-05-16T09:45:58 | 2019-05-16T09:49:16 | 186,986,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,879 | py | # -*- coding:utf-8 -*-
import requests
import re
import time
from bs4 import BeautifulSoup
from 宁夏.工具包 import 链接数据库, 替换标签, 附件下载程序, 只有行政处罚信息公开表,判断全文的类型返回表中需要的字段,表格加全文的形式8行19格10行23格,_24左右结构的表格
class Utils(object):
def __init__(self):
self.header = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_1... | [
"yunli_45@163.com"
] | yunli_45@163.com |
00fc34eedfa09a150e799622761b5fe526023d21 | fa4a3379cf9cc388f31cfc82a1f2e680dffdfbf4 | /demo/lightshow/lightshow-eng.py | 580d5fefb87258b086dc2b22d66ac9077422ed2d | [] | no_license | vswraith/pycyborg | 2665d0787f7afc8c530544ee14ea0f11dc6a28bf | 7b91bdbe1e0360a9386a6deec9bc58f806f12fa7 | refs/heads/master | 2021-01-17T05:19:21.051109 | 2016-03-09T05:38:40 | 2016-03-09T05:38:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,946 | py | #!/usr/bin/python
"""The emperors new groove"""
from lightshow import LightShow
from colors import *
import sys
import random
import os
show=LightShow()
show.audiodelay_offset=0
for _ in range(6):
show.add_light()
show.soundfile=os.path.expanduser('~/perfectworld.ogg')
# --- ALIAS SETUP --- #
#lights
L1=0
L2=... | [
"oli@fuglu.org"
] | oli@fuglu.org |
466a2336524ed1eb2ac82d053d09b508b501fc53 | 5e8d99f4c0ac8e562d6f5ac1501b63725ae47265 | /scripts/Button/ButtonBase.py | e9bed3e7b8f849dd20b0e14492adea986c6d14d0 | [] | no_license | nickhuang1996/format-tools | f4e8ef36c6e5a1db15f50487514de9ed24717c79 | 79ad212a8ea0bfbbb47b237097bd918e6925e7e1 | refs/heads/master | 2023-01-14T14:19:59.084337 | 2020-11-12T12:21:07 | 2020-11-12T12:21:07 | 305,701,122 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from abc import ABCMeta, abstractmethod
from PyQt5.QtWidgets import *
class ButtonBase(metaclass=ABCMeta):
def __init__(self, MainForm):
self.btn = QPushButton(MainForm)
@abstractmethod
def get_btn(self):
pass
| [
"nickhuang1996@126.com"
] | nickhuang1996@126.com |
dbff59c0ee9fbe8a85524e2c073c071454f6eb04 | dc5e51d1b5623dbd6325444d4b93cc9b6306f423 | /lenstronomy_extensions/Scripts/monch_array_script.py | 6b03670c30401f8ef8f0a0d28ba6deb15f02b4b2 | [
"MIT"
] | permissive | Thomas-01/lenstronomy_extensions | dee4c6d845da5140f2806a00db4b04a8dd2206bd | fbbfe24dcfd71eae9e7c2dd60865a9b94db67fe8 | refs/heads/master | 2020-06-03T04:21:14.620032 | 2019-07-17T21:09:44 | 2019-07-17T21:09:44 | 191,435,829 | 0 | 0 | MIT | 2019-07-17T21:09:45 | 2019-06-11T19:20:20 | Jupyter Notebook | UTF-8 | Python | false | false | 3,103 | py | __author__ = 'sibirrer'
#this file is ment to be a shell script to be run with Monch cluster
# set up the scene
import pickle
import sys
import time
import numpy as np
from lenstronomy.Extensions.Substructure.clump_detection import ClumpDetect
from lenstronomy.Extensions.Substructure.sensitivity_map import Sensiti... | [
"simon.birrer@pyhs.ethz.ch"
] | simon.birrer@pyhs.ethz.ch |
06d48cfb04af806e139f917dd179c82c7ea779d2 | 7d122748fb075ffe16e82e3616cf5e5b60dee5bb | /custom/l10n_tw/__init__.py | 1de5820ea2685f1cc0fe76ad8853cc9a15d99c95 | [] | no_license | kulius/odoo11_uw | 95cd3b9cfdb18676e61d3565901f8ded0ee537d3 | a6f950a4c05c90ac5f53c1602ac2cda33faf41ee | refs/heads/master | 2021-08-07T07:53:15.585825 | 2018-07-23T03:33:20 | 2018-07-23T03:33:20 | 131,130,935 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (C) 2014-now Jason Wu (jaronemo@msn.com)
| [
"kulius@gmail.com"
] | kulius@gmail.com |
039789010ff2b6fd5db2fe6af245837a73c31d10 | b03131e692be3f84617cc5a9073397407489725c | /CtCI/chap2_linked_list.py | 652a7da2f29ecda3bbffff316a89d7abcd163ba4 | [] | no_license | RW21/CS | 1ad20c534d864150c76441011735878a4bccef67 | 3dc4cee33b219e66c77f18a7d7d98fd9abd9746d | refs/heads/master | 2022-12-09T06:18:31.234442 | 2020-09-08T03:56:27 | 2020-09-08T03:56:27 | 198,140,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from data_structures.linked_list import Node
def remove_duplicate(head: Node):
checked = set()
new: Node = Node(None)
new_ = new
while True:
if head.val not in checked:
new.val = head.val
checked.add(head.val)
else:
new.next = Node(No... | [
"rinze.watanabe.translation@gmail.com"
] | rinze.watanabe.translation@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.