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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bbb837d0aac28477a37baa05d3dd3c36167bc5b7 | 8b59108f621e94935b3b72aae3c441e10cb64a1c | /create_uneeded_icons.py | cdb3dda6906313546c12ebd032e4aa2accfd9755 | [] | no_license | CyberSys/CE_Python | 97a373b1fe2d214ae854d454dc5e7d79bc150d8e | 721ac005e215f1225fb3c99491b55dc48b19ab30 | refs/heads/master | 2022-01-13T08:04:08.558594 | 2019-07-22T17:05:46 | 2019-07-22T17:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | from shutil import copyfile
import os
if __name__ == "__main__":
uneeded_icons = [
"AssaultScope_48.png",
"ATButtstockTS_48.png",
"ATFrontsightTS_48.png",
"ATHandguardARS_48.png",
"ExtendedClip_48.png",
"FlashlightAcc_48.png",
"Ironsight_48.png",... | [
"chrissprance@gmail.com"
] | chrissprance@gmail.com |
634db64fad5672d244b9dde45ed05c57dca1210d | a1b21aa9b4c3b99b9b16fd47686bcc76e6fafd18 | /unit_test/function_test/test_name_function.py | 9852039917d53af0689e6cada925c25852cced60 | [] | no_license | irfan87/python_tutorial | 986c5dae98a5ad928c3820bf0355f544c091caf0 | 71bbf8b8aba2d5a1fafc56b8cb15d471c428a0cf | refs/heads/master | 2020-06-05T00:52:07.619489 | 2019-08-19T02:56:41 | 2019-08-19T02:56:41 | 192,257,432 | 0 | 0 | null | 2019-08-19T02:56:42 | 2019-06-17T01:53:46 | Python | UTF-8 | Python | false | false | 643 | py | import unittest
from name_function import get_formatted_name
class NamesTestCase(unittest.TestCase):
"""Tests for 'name_function.py"""
def test_first_last_name(self):
"""Do names like 'Janis Joplin' work?"""
formatted_name = get_formatted_name('janis', 'joplin')
self.assertEqual(format... | [
"nerve2009@yahoo.com"
] | nerve2009@yahoo.com |
ed7aeccf50b61c1ede46b34c971ecbf6fac49f40 | 90baf1f6abb0dcba147f46105347a7d81f0ed617 | /472-concatenated-words/472-concatenated-words.py | 1541cd05cdd590100ef56d987a207bccb9cf9176 | [] | no_license | vinija/LeetCode | c2bfbd78711b2ebedcfd4f834d12fde56a15b460 | de2727f1cc52ce08a06d63cff77b6ef6bb9d2528 | refs/heads/master | 2022-09-29T06:16:44.465457 | 2022-08-21T05:20:45 | 2022-08-21T05:20:45 | 97,401,204 | 116 | 32 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # ORIGINAL POST WITH EXPLANATION: https://leetcode.com/problems/concatenated-words/discuss/871866/Easyway-Explanation-every-step
class Solution(object):
def findAllConcatenatedWordsInADict(self, words):
"""
:type words: List[str]
:rtype: List[str]
"""
d = set(words)
... | [
"vinija@gmail.com"
] | vinija@gmail.com |
b1c6ea574c79b9969846989153c8237e1508baf1 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-622.py | e0c3373dd20ce956070551e9031ef9fac32135c3 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,286 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
f170105dd4df1fcc7753415af3c4715d042cf732 | 9c38f3a354844f5080632005630d249d6487ebb3 | /python_compiler/lexer/submitted/test.512.py | ba4d1189a78cf314b7ee04b45c551fcd673df06e | [] | no_license | keithroe/keithscode | ee7247ad6bdd844279f29a56718992cb886f9215 | 470c6b833b9b8bc2c78d1b43aac896b0ce9c9a7c | refs/heads/master | 2021-01-10T08:48:12.729594 | 2018-10-16T17:48:31 | 2018-10-16T17:48:31 | 51,531,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12 | py | r = 5 \
+ 4 | [
"keithroe@cba41313-dcc7-113d-0d3d-2a2d30939b49"
] | keithroe@cba41313-dcc7-113d-0d3d-2a2d30939b49 |
09350b78ae65b299217cbd7c1567d5543b66ea37 | 37a119f116431ef91f1257370a5cd4a992b018db | /tests/sql/test_expressions.py | 123319ebd94792d6d470655ae8be31eb2e22416f | [
"ISC"
] | permissive | uranusjr/sqlian | 660e66d4c5c01b1112961f4097e95143c15cf72a | 8f029e91af032e23ebb95cb599aa7267ebe75e05 | refs/heads/master | 2021-01-19T18:59:19.349318 | 2017-09-12T13:12:10 | 2017-09-12T13:12:10 | 101,176,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | from sqlian import Sql
from sqlian.standard import expressions as e
def test_identifier(engine):
sql = e.Identifier('foo')
assert sql.__sql__(engine) == Sql('"foo"'), sql
def test_identifier_qualified(engine):
sql = e.Identifier('foo', 'bar')
assert sql.__sql__(engine) == Sql('"foo"."bar"'), sql
d... | [
"uranusjr@gmail.com"
] | uranusjr@gmail.com |
dd773633d85d0d1d73c0a0a758c4bdebd3107be2 | 6f7ba68d9e2ba6cfc7f07367bcd34a643f863044 | /cms/siteserver/siteserver_background_keywordsFilting_sqli.py | 24feed6f2a0c31d35687f1091c3bcc6d3214f82b | [] | no_license | deepwebhacker/Dxscan | 2e803ee01005a1d0a7802290bfb553f99e8fcf2e | eace0872e1deb66d53ec7cfc62f4c793f9421901 | refs/heads/main | 2023-03-06T10:26:23.371926 | 2021-02-22T14:03:51 | 2021-02-22T14:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: siteserver3.6.4 background_keywordsFilting.aspx注入
referer: http://www.wooyun.org/bugs/wooyun-2013-043641
author: Lucifer
description: 文件/siteserver/bbs/background_keywordsFilting.aspx中,参数Keyword存在SQL注入。
'''
import sys
import requests
import warnings
from termcolor... | [
"noreply@github.com"
] | deepwebhacker.noreply@github.com |
98a9f68c969ed0299834aeafe3f5422274954ce7 | 8a3401fcc24fb398e7cac0f8a67e132ed5b3fa8f | /src/pycrunchbase/resource/news.py | 67242ca520fe227c4dc5b1285fa4919f577e6495 | [
"MIT"
] | permissive | ngzhian/pycrunchbase | 58cf96ed20b5b3f4861bb884bcf0d9ffcf4df808 | ead7c93a51907141d687da02864a3803d1876499 | refs/heads/master | 2023-07-08T06:18:59.314695 | 2023-07-03T13:27:06 | 2023-07-03T13:27:06 | 30,629,033 | 69 | 45 | MIT | 2020-12-02T02:26:40 | 2015-02-11T03:39:14 | Python | UTF-8 | Python | false | false | 734 | py | import six
from .node import Node
from .utils import parse_date
@six.python_2_unicode_compatible
class News(Node):
"""Represents a News on CrunchBase"""
KNOWN_PROPERTIES = [
"title",
"author",
"posted_on",
"url",
"created_at",
"updated_at",
]
def _coe... | [
"ngzhian@gmail.com"
] | ngzhian@gmail.com |
9102954aee63aa1de8128785de2d2f9e90d976f9 | a79cccacfa422012caac481b5eff80f6e911d0af | /jax/experimental/gda_serialization/serialization_test.py | cef36c9f56c1553a70bcf8e80935396e0bf0d8b0 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | jblespiau/jax | f932fe6df23942756957db61655f6cc9c6d67d64 | 46a666c4489b9e04d2777cf2156453bc48a8e432 | refs/heads/main | 2022-04-17T01:50:55.041057 | 2022-04-15T08:49:52 | 2022-04-15T08:49:52 | 481,888,965 | 0 | 0 | Apache-2.0 | 2022-04-15T08:20:44 | 2022-04-15T08:20:43 | null | UTF-8 | Python | false | false | 6,163 | 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"no-reply@google.com"
] | no-reply@google.com |
1958e4fd3cd5234c86f6dd7f259d43da2a520bd3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03032/s283156387.py | 473d0ed84ab4c0f25eab299ea36e78724919eff4 | [] | 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 | 400 | py | n,k = map(int,input().split())
lis = list(map(int,input().split()))
ans = 0
for i in range(n):
for j in range(n-i+1):
num = lis[:i]
if j > 0:
num += lis[-j:]
if len(num) <= k:
cnt = min(len(num),k-len(num))
num.sort()
for h in range(cnt):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
582302c3619958b67faf74202cdf4418340616c1 | b2f8c41358f6c6f4ce78328695a7b4f96adf806b | /staff_crm/apps.py | c4f1bce309a4b15bd048c1a4cfc2964dc43f754b | [] | no_license | funsojoba/staff_management_api | 6f472ea0a53095b6860969cf88f87b50fea69729 | 792bc652ec61e3f0d16bab1ff36cf72643161dbe | refs/heads/main | 2023-05-24T04:45:20.895495 | 2021-06-13T19:45:07 | 2021-06-13T19:45:07 | 373,336,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.apps import AppConfig
class StaffCrmConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'staff_crm'
| [
"42432746+funsojoba@users.noreply.github.com"
] | 42432746+funsojoba@users.noreply.github.com |
2b1c888ed19da3073b1fcc9a4ad2599f84ed38f0 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cisco/ios/plugins/module_utils/network/ios/providers/cli/config/bgp/address_family.py | 0e0ce1ab78fecbd074f6c23d7f5f4d6866007720 | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 5,305 | py | #
# (c) 2019, Ansible by Red Hat, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import re
from ansible.module_utils.six import iteritems
from ansible_collections.ansible.netcommon... | [
"sifang@cisco.com"
] | sifang@cisco.com |
be4034b96252307d6e130988d30401bb65314765 | d7f4596491b47d74689d8731c9d0f10b51b5693f | /fastcampus/코딩테스트_면접/02. 알고리즘 이론/graph.py | 6b593b8ff449f75e4ad3cf2229502620e69e8a70 | [] | no_license | wonjongah/DataStructure_CodingTest | 797b62d48321abf065f1507f14a3ed0902f48399 | 9d28c2aefbba2486f6158c066fd249fca3904346 | refs/heads/main | 2023-06-04T15:54:30.048106 | 2021-06-30T14:09:41 | 2021-06-30T14:09:41 | 327,008,361 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | graph = dict()
graph['A'] = ['B', 'C']
graph['B'] = ['A', 'D']
graph['C'] = ['A', 'G', 'H', 'I']
graph['D'] = ['B', 'E', 'F']
graph['E'] = ['D']
graph['F'] = ['D']
graph['G'] = ['C']
graph['H'] = ['C']
graph['I'] = ['C', 'J']
graph['J'] = ['I']
print(graph) | [
"wonjongah@gmail.com"
] | wonjongah@gmail.com |
59fedb17f8722439c3814f478d134f626b0a4c4a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/48/usersdata/82/15966/submittedfiles/estatistica.py | 31ad4a0026cf93a6236f0ea7646c0afd92d24f53 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # -*- coding: utf-8 -*-
from __future__ import division
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
media = soma/len(lista)
return media
a=[]
b=[]
n= input ('Digite a quantidade de elementos:')
for i in range (0,n,1):
a.append(input('Digite um elemento:... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5941ae15de8d50faefafcad8fed4e9d17d948e27 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/gtk/_gtk/MountOperation.py | d327e51af64f413a5022e8715f458a73a8e61d5b | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | # encoding: utf-8
# module gtk._gtk
# from /usr/lib64/python2.6/site-packages/gtk-2.0/gtk/_gtk.so
# by generator 1.136
# no doc
# imports
import atk as __atk
import gio as __gio
import gobject as __gobject
import gobject._gobject as __gobject__gobject
class MountOperation(__gio.MountOperation):
"""
Object Gt... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
e260d0d50c7d74e84cf1062a5c25ccbe38c4e375 | 90360a1de1c19ab217ff0fceaaa3140cad4ddaa5 | /plugin.video.salts/scrapers/icefilms_scraper.py | 9fffbf94a63ac44d5c3ce8d39de54d0ed860f31e | [] | no_license | trickaz/tknorris-beta-repo | 934cbbf089e12607fe991d13977f0d8a61354f01 | c4b82ef1b402514ef661bcc669852c44578fcaa0 | refs/heads/master | 2021-01-22T14:25:19.271493 | 2014-10-17T06:19:39 | 2014-10-17T06:19:39 | 25,358,146 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,462 | py | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... | [
"tknorris@gmail.com"
] | tknorris@gmail.com |
1c9798c3ad320b1268eb7c05f3413c11de8cc2c4 | 74d6b36ae48a2153fa35c56d2448c05b64c72bf8 | /contests/550/A-two-substrings.py | 1cd1bdb89a05efe3c401c3f0559cc701f7386b67 | [] | no_license | hariharanragothaman/codeforces-solutions | 205ec8b717e8eb3e4d700fc413159c49a582cff6 | 1566a9187cc16e1461ddb55dbcc393493604dfcd | refs/heads/master | 2023-06-24T11:33:52.255437 | 2021-07-25T14:33:52 | 2021-07-25T14:33:52 | 282,783,158 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | """
Given a string, we need to find , if it contains AB, and BA seperately and they are non-overlapping
The strings can be in any order.
"""
from typing import List
p = 31
m = 10 ** 9 + 9
def compute_hash(s):
n = len(s)
power_mod = [1]
for i in range(n):
power_mod.append((power_mod[-1] * p) % m)... | [
"hariharanragothaman@gmail.com"
] | hariharanragothaman@gmail.com |
fc6ec366cc16a9f609e3910d19770d58645a59b8 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /stypy/invokation/type_rules/modules/numpy/lib/ufunclike/ufunclike__type_modifiers.py | 8a0fa8e78c44a7d76c174b17b2107251eb822674 | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy
from stypy.invokation.handlers import call_utilities
class TypeModifiers:
@staticmethod
def fix(localization, proxy_obj, arguments):
if call_utilities.is_numpy_array(arguments[0]):
return arguments[0]
else:
re... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
dbf30296d71e7bf60831a0c340e730a93a7d7a5c | c78d25a2ea56f012da3381d7245c3e08556129e1 | /coherence/backends/radiotime_storage.py | 1f2c5d69ba48ac3beee20a08759cb96b1a85c6c1 | [
"MIT"
] | permissive | Python3pkg/Cohen | 556ad3952136fc2eafda99202a7280c2ece2477e | 14e1e9f5b4a5460033692b30fa90352320bb7a4e | refs/heads/master | 2021-01-21T17:13:58.602576 | 2017-05-21T08:33:16 | 2017-05-21T08:33:16 | 91,943,281 | 1 | 0 | null | 2017-05-21T08:32:55 | 2017-05-21T08:32:55 | null | UTF-8 | Python | false | false | 7,113 | py | # Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php
# an internet radio media server for the Coherence UPnP Framework
# based on the radiotime (http://radiotime.com) catalog service
# Copyright 2007, Frank Scholz <coherence@beebits.net>
# Copyright 2009-2010, Jean-Michel Sizun <jmDOTsizu... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
8c929fb80c63833f2b9b8f7f3d79ea501d32a8c2 | 845e3c428e18232777f17b701212dcbb1b72acc1 | /psdbCrop/psdbCropVal1PsdbFourPartsFullDRoiAlignXRoc2.py | 6c8fab7837b147654694a4a4715f353926dee333 | [
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | chuanxinlan/ohem-1 | dd10b2f5ff15e81ab9e42e936bb44d98e01c6795 | b7552ceb8ed1e9768e0d522258caa64b79834b54 | refs/heads/master | 2021-09-16T18:31:25.651432 | 2018-06-23T10:09:24 | 2018-06-23T10:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,010 | py | #!/usr/bin/python
import os
import numpy as np
import matplotlib.pyplot as plt
import tools._init_paths
import cPickle
from datasets.factory import get_imdb
import cv2
class EvalConfig(object):
iou_thresh = 0.5
min_width = 20
min_height = 20
# a list of type IDs
eval_type = None
# (x1, y1, x... | [
"cg@example.com"
] | cg@example.com |
630bdd5c13f4ec241b016ee6636bfe70af9b1448 | 01822d2ae38a95edcd188a51c377bb07b0a0c57d | /Assignments/Sprint3/FindAllPaths.py | faf38a0af57c11891b1ec51c5c26b3865f784c23 | [
"MIT"
] | permissive | mark-morelos/CS_Notes | bc298137971295023e5e3caf964fe7d3f8cf1af9 | 339c47ae5d7e678b7ac98d6d78857d016c611e38 | refs/heads/main | 2023-03-10T11:56:52.691282 | 2021-03-02T15:09:31 | 2021-03-02T15:09:31 | 338,211,631 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | """
Understand
Note: For some reason, it's failing one of the tests. I
think it's because the test case didn't sort their output.
In that case, the test is wrong :)
Drawing graphs via text are a pain, so I'm just gonna use the example given
Plan
1. Translate the problem into graph terminology
- Each index in the lis... | [
"makoimorelos@gmail.com"
] | makoimorelos@gmail.com |
d99058ae8efde20b0b9a94917310bf9294bf3d79 | 3d4094d6eca69329d4c6ba08e0c8ce79eedeb6b6 | /starter/While.py | af86daef2ae3d6572815e944274601b1454dd277 | [] | no_license | agkozik/Python_Course | c9f3c8b68e60b452e57f43da7554c13daf386a0c | 4b095bbc86f33999efe95127528b3e1d8bfded9f | refs/heads/master | 2022-04-27T06:04:15.276472 | 2020-04-22T11:49:06 | 2020-04-22T11:49:06 | 255,082,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | # # ---------------------- while true ----------------------------
#
# message = ""
# while message != "exit":
# message = input("Type exit to exit: ")
#
# # ---------------------- while int true ----------------------------
# n = 1
# while n <= 3:
# print("n = ", n)
# n += 1
#
# # ---------------------- wh... | [
"agkozik@gmail.com"
] | agkozik@gmail.com |
6c7d9885d0519d18a161ee398e1f83753b821006 | 65a32b8a8a97c126843d2cfe79c43193ac2abc23 | /chapter9/local_var.py | 1816492d4b38b735cc5262f0aabbb32c1c380b9e | [] | no_license | zhuyuedlut/advanced_programming | 9af2d6144e247168e492ddfb9af5d4a5667227c4 | a6e0456dd0b216b96829b5c3cef11df706525867 | refs/heads/master | 2023-03-19T09:21:31.234000 | 2020-10-09T13:09:38 | 2020-10-09T13:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | a = 20
exec('b = a + 1')
print(f'b = {b}')
# def test():
# a = 20
# exec('b = a + 1')
# print(f'b = {b}')
#
# test()
def test():
a = 20
loc = locals()
exec('b = a + 1')
b = loc['b']
print(f't: b = {b}')
test()
def test_1():
x = 0
exec('x += 1')
print(f't1: x = {x}')
t... | [
"root@lyzdeMacBook.local"
] | root@lyzdeMacBook.local |
0512aa9369f8d18ed59f628853a123ff95d586bc | 74912c10f66e90195bf87fd71e9a78fa09f017ec | /execroot/syntaxnet/bazel-out/local-opt/bin/dragnn/python/graph_builder_test.runfiles/org_tensorflow/tensorflow/contrib/learn/python/learn/tests/dataframe/__init__.py | 31d718df713532da6c36386b67220f0d1e6e878f | [] | no_license | koorukuroo/821bda42e7dedbfae9d936785dd2d125- | 1f0b8f496da8380c6e811ed294dc39a357a5a8b8 | 237fcc152ff436f32b2b5a3752a4181d279b3a57 | refs/heads/master | 2020-03-17T03:39:31.972750 | 2018-05-13T14:35:24 | 2018-05-13T14:35:24 | 133,244,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | /root/.cache/bazel/_bazel_root/821bda42e7dedbfae9d936785dd2d125/external/org_tensorflow/tensorflow/contrib/learn/python/learn/tests/dataframe/__init__.py | [
"k"
] | k |
46bb827c374c723df2920b4765f45cafad5d8454 | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /demo/testPyQt/test3.py | 6c42882d89fc51c0eae08cdf2e7c23b542794f04 | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | '''
Created on Apr 22, 2014
@author: walter
'''
import sys
from PyQt4 import QtGui
class Example(QtGui.QMainWindow):
def __init__(self):
super(Example, self).__init__()
self.initUI()
def initUI(self):
exitAction = QtGui.QAction(QtGui.QIco... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
c9ca634b1cfd0a70676f197430bc0680ce1077d0 | 8928c4745515ffecfc581da36df47b0789fb463f | /Chapter_9/formsub.py | 51ea5e0fe04bad40167a6fc40016825b997f0e1d | [] | no_license | iluxonchik/webscraping-with-python-book | 72da36ba8fae016ccc20d44753ec4c46bc933dee | ffc5a1459778649d081c62812c8d3edbb2f120a9 | refs/heads/master | 2021-01-10T10:19:12.443341 | 2016-01-21T21:50:11 | 2016-01-21T21:50:11 | 48,058,040 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | import requests
params = {'firstname':'hello', 'lastname':'there'}
r = requests.post("http://pythonscraping.com/files/processing.php", data=params)
print(r.text)
files = {'uploadFile': open('1.png', 'rb')}
r = requests.post("http://pythonscraping.com/files/processing2.php", files=files)
print(r.text) | [
"iluxon4ik@hotmail.com"
] | iluxon4ik@hotmail.com |
e7df1ffbd062f8f616fff956e0482311a709c86a | e4d4149a717d08979953983fa78fea46df63d13d | /Week6/Day5/DailyChallenge.py | 68788690cf6a298238eff2f8a5648c48d64c3f7a | [] | no_license | fayblash/DI_Bootcamp | 72fd75497a2484d19c779775c49e4306e602d10f | a4e8f62e338df5d5671fd088afa575ea2e290837 | refs/heads/main | 2023-05-05T20:55:31.513558 | 2021-05-27T06:48:40 | 2021-05-27T06:48:40 | 354,818,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import sqlite3 as sl
from time import time
import requests
import json
connection=sl.connect("countries.db")
cursor=connection.cursor()
start=time()
for i in range(10,21):
data=requests.get("https://restcountries.eu/rest/v2/all")
country=data.json()
print (country[i]['name'])
query=f"INSERT INTO cou... | [
"fayblash@gmail.com"
] | fayblash@gmail.com |
277ca5faf223fee0254b99c950487e402e63cb75 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_untruth.py | f82b360189c64e1e50c3124e3fe683bea2162f45 | [
"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 | 354 | py |
#calss header
class _UNTRUTH():
def __init__(self,):
self.name = "UNTRUTH"
self.definitions = [u'a statement that is not true: ', u'the fact that something is not true: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], o... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
97698fdcf4861c65a25ec9893aa57e5b52a06063 | b6b2be9866fd16699ad5c30a21bbcb70755f1e57 | /Experiments/_Legacy/Chicago/PartitionByDocThenClusterUsingLsa.py | 6e174934f81ca58b1b992fbc3c3f4391ac23815f | [] | no_license | simonhughes22/PythonNlpResearch | 24a482c7036c568b063ec099176b393d45a0a86b | 2bc2914ce93fcef6dbd26f8097eec20b7d0e476d | refs/heads/master | 2022-12-08T17:39:18.332177 | 2019-10-26T12:48:33 | 2019-10-26T12:48:33 | 16,458,105 | 17 | 7 | null | 2022-12-07T23:38:17 | 2014-02-02T16:36:39 | Jupyter Notebook | UTF-8 | Python | false | false | 4,135 | py | import Clusterer
import ClustersToFile
import SentenceData
import ListHelper
import Lsa
import MatrixHelper
import TfIdf
import WordTokenizer
import logging
import PartitionByCode
import CosineSimilarity
import collections
def find_closest_document(txtMatrixByCode, row):
""" Takes a dictionary of cod... | [
"simon.hughes@dice.com"
] | simon.hughes@dice.com |
2408590522753e9cd86637c0677554589f285d76 | c9d4d4c78703d009da11999e4e59b6a168a454a2 | /examples/Learning Python The Hard Way/ex11_AskingQuestions.py | be33a059dc6c1cfcccb68bbc63af5f196c02ccc2 | [
"MIT"
] | permissive | AkiraKane/Python | 23df49d7f7ae0f375e0b4ccfe4e1b6a077b1a52b | 12e2dcb9a61e9ab0fc5706e4a902c48e6aeada30 | refs/heads/master | 2020-12-11T07:20:01.524438 | 2015-11-07T12:42:22 | 2015-11-07T12:42:22 | 47,440,128 | 1 | 0 | null | 2015-12-05T03:15:52 | 2015-12-05T03:15:51 | null | UTF-8 | Python | false | false | 335 | py | '''
Created on 2013-8-14
@author: Kelly Chan
Python Version: V3.3
Book: Learn Python The Hard Way
Ex11: Asking Questions
'''
print("How old are you?")
age = input()
print("How tall are you?")
height = input()
print("How much do you weigh?")
weight = input()
print("So, you're %r old, %r tall and %r heavy." % (age, h... | [
"kwailamchan@hotmail.com"
] | kwailamchan@hotmail.com |
238ec91f069f7201b85bb750838f5ebd9b18ecd9 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/pytest-labs/.venv/lib/python3.6/site-packages/facebook_business/adobjects/productdaeventsamplesbatch.py | 6155974b1405f7c8bc729960a751f6b815d8bc6d | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 2,489 | py | # Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Fa... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
4637ad8e57ec88e45fda29f4a08e4b0144d0f669 | f0e11aeb7b5bd96c828cf39728eb2fa523f320df | /snapflow/migrations/versions/7d5638b5d74d_initial_migration.py | 8b85094b11b08e55368d3320bb0b4bdb56eecc13 | [
"BSD-3-Clause"
] | permissive | sathya-reddy-m/snapflow | 7bc1fa7de7fd93b81e5b0538ba73ca68e9e109db | 9e9e73f0d5a3d6b92f528ef1e2840ad92582502e | refs/heads/master | 2023-05-01T05:14:08.479073 | 2021-05-21T00:14:56 | 2021-05-21T00:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,528 | py | """Initial migration
Revision ID: 7d5638b5d74d
Revises:
Create Date: 2021-05-17 20:55:42.613348
"""
import snapflow
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "7d5638b5d74d"
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### ... | [
"kenvanharen@gmail.com"
] | kenvanharen@gmail.com |
867c39b81f0bd2f14694cd585a733a351b7c50fa | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_spinier.py | 0482c9921fbb9ca2d0ffe46b31b1181f2f50e5f1 | [
"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 | 243 | py |
from xai.brain.wordbase.adjectives._spiny import _SPINY
#calss header
class _SPINIER(_SPINY, ):
def __init__(self,):
_SPINY.__init__(self)
self.name = "SPINIER"
self.specie = 'adjectives'
self.basic = "spiny"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
00a109d7ceb3af65458a2708817bd3fcbd90c405 | 38f19ae4963df9be7a851458e63ffb94d824eb03 | /stellar_sdk/__version__.py | 328854e119791d65c471bc64c026b784c86512b9 | [
"Apache-2.0"
] | permissive | brunodabo/py-stellar-base | e033da687e3a2a76076cfed88e82c7951ae4e57e | 7897a23bc426324cb389a7cdeb695dfce10a673f | refs/heads/master | 2022-11-05T12:35:37.140735 | 2020-06-03T13:41:30 | 2020-06-03T13:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | """
_____ _______ ______ _ _ _____ _____ _____ _ __
/ ____|__ __| ____| | | | /\ | __ \ / ____| __ \| |/ /
| (___ | | | |__ | | | | / \ | |__) |____| (___ | | | | ' /
\___ \ | | | __| | | | | / /\ \ | _ /______\___ \| | | | <
_... | [
"4catcode@gmail.com"
] | 4catcode@gmail.com |
5440c399fc472d9aec6c0adc203267a050e8c7d0 | 747febe786dd6b7fd6c63cfe73dbe3023354daa8 | /src/the_tale/the_tale/game/quests/logic.py | 69a11b9a515ce9d1b4452b825829a94900ea8fa3 | [
"BSD-3-Clause"
] | permissive | the-tale/the-tale | 4e4b8d91dc873a5fb935fe58e9721a877baa6d3f | e8450bd2332344da805b1851e728da5a3e5bf0ef | refs/heads/develop | 2023-08-01T13:53:46.835667 | 2022-12-25T18:04:56 | 2022-12-25T18:04:56 | 1,949,167 | 98 | 52 | BSD-3-Clause | 2023-02-15T18:57:33 | 2011-06-24T18:49:48 | Python | UTF-8 | Python | false | false | 27,529 | py |
import smart_imports
smart_imports.all()
WORLD_RESTRICTIONS = [questgen_restrictions.SingleLocationForObject(),
questgen_restrictions.ReferencesIntegrity()]
QUEST_RESTRICTIONS = [questgen_restrictions.SingleStartStateWithNoEnters(),
questgen_restrictions.FinishStateExists... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
ceb03e78d5da369eaa15cfadb539d06f2ad3979b | c3e2f56672e01590dc7dc7e184f30c2884ce5d3a | /Programs/MyPythonXII/Unit1/PyChap03/summatrix.py | a00722d07d1ce3b80baa6858b737eb411c6ad68e | [] | no_license | mridulrb/Basic-Python-Examples-for-Beginners | ef47e830f3cc21cee203de2a7720c7b34690e3e1 | 86b0c488de4b23b34f7424f25097afe1874222bd | refs/heads/main | 2023-01-04T09:38:35.444130 | 2020-10-18T15:59:29 | 2020-10-18T15:59:29 | 305,129,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | # File name: ...\\MyPythonXII\Unit1\PyChap03\summatrix.py
# Program to add two matrices
# Declaration of three 10 x 10 matrices
A = [[0 for x in range(10)] for x in range(10)]
B = [[0 for x in range(10)] for x in range(10)]
C = [[0 for x in range(10)] for x in range(10)]
print("Enter the number of Rows of ... | [
"mridurb@gmail.com"
] | mridurb@gmail.com |
97b8958344299980760e8949312f7387d6e8b9ae | 49eba6a6d52b46171d88adc87cd2f761c0eb90d4 | /crypten/mpc/provider/ttp_provider.py | e3a09ac97d52be242b3c1ecc03184acbe8da7d7b | [
"MIT"
] | permissive | tnpe/CrypTen | 8bfc07556df2b497214a4b32c11eb180f62e45dd | 6a06dc8cd52200f40a9fc520be0066bd0dea6b14 | refs/heads/master | 2023-02-26T10:15:39.729336 | 2021-01-20T14:54:29 | 2021-01-20T14:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,063 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
from functools import reduce
import crypten
import crypten.communicator as comm
import torch
import to... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6761e8fe9dbbdf0919c1045ac3ee86a999c1cea5 | bc6492a9a30ac7228caad91643d58653b49ab9e3 | /sympy/integrals/rubi/rules/exponential.py | 90b28d15cf3a1c0f5509ed7a20ff2220e061a60f | [] | no_license | cosmosZhou/sagemath | 2c54ea04868882340c7ef981b7f499fb205095c9 | 0608b946174e86182c6d35d126cd89d819d1d0b8 | refs/heads/master | 2023-01-06T07:31:37.546716 | 2020-11-12T06:39:22 | 2020-11-12T06:39:22 | 311,177,322 | 1 | 0 | null | 2020-11-12T06:09:11 | 2020-11-08T23:42:40 | Python | UTF-8 | Python | false | false | 67,083 | py | '''
This code is automatically generated. Never edit it manually.
For details of generating the code see `rubi_parsing_guide.md` in `parsetools`.
'''
from sympy.external import import_module
matchpy = import_module("matchpy")
from sympy.utilities.decorator import doctest_depends_on
if matchpy:
from matc... | [
"74498494@qq.com"
] | 74498494@qq.com |
08abe221a6e2af6878de699a1d34b050881e8401 | 2b19f22b47dfd8c01ed2acf335a88ef3271de873 | /IOI/difference.py | 5b3c5f89ee7d33064fe73fa1fd734200918f80c5 | [] | no_license | Aminehassou/spaghetti-code | 0e319bd4712d57bbea8e3714fd64698aa70719fd | f63c0596d5691bf2b2b3d622e8271983e10c0cfe | refs/heads/master | 2023-01-04T11:59:43.668791 | 2019-12-17T22:28:04 | 2019-12-17T22:28:04 | 306,032,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | try:
while True:
a, b = (map(int, input().split()))
print (abs(a - b))
except EOFError:
pass
| [
"japnoo@gmail.com"
] | japnoo@gmail.com |
5581f1877e0859073d8bad360dbf8d6e6b5ed449 | 43949d3f05bf1d1212cc25fd5766a47940723f7b | /generators/gen.py | 5202bb3d33b604cfc3856de4de253eacca2d802f | [] | no_license | asing177/python_programs | f6aa5b53b6f0b2d8c824c8b796ca77d8a1121110 | dfa18f7ec6bd0eb29311a393e011d89dac1a7e26 | refs/heads/master | 2020-12-21T14:39:27.761117 | 2020-02-06T08:12:32 | 2020-02-06T08:12:32 | 236,462,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | def my_gen():
n = 1
print('This is printed first')
# Generator function contains yield statements
yield n
n += 1
print('This is printed second')
yield n
n += 1
print('This is printed at last')
yield n
a = my_gen()
next(a)
next(a)
next(a)
next(a) | [
"adityasingh27@hotmail.com"
] | adityasingh27@hotmail.com |
1b58373ac66d0ddb7dc9aeda27c62602f8569f74 | de707c94c91f554d549e604737b72e6c86eb0755 | /math/0x01-plotting/2-change_scale.py | 480bf1b1af07c3d6f3b678dbbd1083ba7969a535 | [] | no_license | ejonakodra/holbertonschool-machine_learning-1 | 885cf89c1737573228071e4dc8e26304f393bc30 | 8834b201ca84937365e4dcc0fac978656cdf5293 | refs/heads/main | 2023-07-10T09:11:01.298863 | 2021-08-11T03:43:59 | 2021-08-11T03:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!/usr/bin/env python3
""" plots x, y as a line graph where y-axis is scaled logarithmically """
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0, 28651, 5730)
r = np.log(0.5)
t = 5730
y = np.exp((r / t) * x)
plt.plot(x, y)
plt.xlabel('Time (years)')
plt.ylabel('Fraction Remaining')
plt.title("Expon... | [
"eislek02@gmail.com"
] | eislek02@gmail.com |
1c3fe0cc2873b5858a438ae7dbeaf43f1ace5c25 | 8c6466e12bb3351031c25677127dc86d13bd9b19 | /Project data Modelling with Postgress/sql_queries.py | 09f272907dc0ece9579ce135decdb08810006f0f | [] | no_license | andreodendaal/udacity_data_engineering | ac8eb889db002014b3ccf1fe15b16f77361b8d55 | 03524ffbd1830d168761fcc996cab329dd064977 | refs/heads/master | 2020-05-05T09:24:02.921194 | 2020-01-15T20:22:14 | 2020-01-15T20:22:14 | 179,902,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP TABLE IF EXISTS users;"
song_table_drop = "DROP TABLE IF EXISTS songs;"
artist_table_drop = "DROP TABLE IF EXISTS artists;"
time_table_drop = "DROP TABLE IF EXISTS songplays;"
# CREATE TABLES
songplay_table_create = ("""CRE... | [
"aodendaal.direct@gmail.com"
] | aodendaal.direct@gmail.com |
d485cc88de5469d66c7dbc503dbb0e3206144138 | b1ffcbd977595bccf15dd56e965bda62867d1e10 | /omrdatasettools/downloaders/PrintedMusicSymbolsDatasetDownloader.py | 818cb93eca0478aa48e520f084374eba04cbd048 | [
"CC-BY-NC-SA-4.0",
"GPL-2.0-only",
"CC-BY-SA-3.0",
"MIT",
"GPL-1.0-or-later",
"CC-BY-SA-4.0",
"LicenseRef-scancode-public-domain",
"AGPL-3.0-only"
] | permissive | fzalkow/OMR-Datasets | 7ded5bb9278e47c84a16de01081876d6bb2e6dbe | c9e7a986199998d6a735875503e6dcce5fdf1193 | refs/heads/master | 2020-09-14T15:30:45.824800 | 2020-01-06T12:07:52 | 2020-01-06T12:07:52 | 223,169,792 | 0 | 0 | MIT | 2019-11-21T12:32:31 | 2019-11-21T12:32:30 | null | UTF-8 | Python | false | false | 1,896 | py | import argparse
import os
from omrdatasettools.downloaders.DatasetDownloader import DatasetDownloader
class PrintedMusicSymbolsDatasetDownloader(DatasetDownloader):
""" Loads the Printed Music Symbols dataset
https://github.com/apacha/PrintedMusicSymbolsDataset
Copyright 2017 by Alexander Pacha u... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
333c48d27ec8d5b0ea5633bffadd6e27638c0522 | 315450354c6ddeda9269ffa4c96750783963d629 | /CMSSW_7_0_4/src/Configuration/TotemCommon/python/__init__.py | 6cf341a440a2c973942ba5aad7ebac154203e274 | [] | no_license | elizamelo/CMSTOTEMSim | e5928d49edb32cbfeae0aedfcf7bd3131211627e | b415e0ff0dad101be5e5de1def59c5894d7ca3e8 | refs/heads/master | 2021-05-01T01:31:38.139992 | 2017-09-12T17:07:12 | 2017-09-12T17:07:12 | 76,041,270 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/Configuration/TotemCommon/',1)[0])+'/cfipython/slc6_amd64_gcc481/Configuration/TotemCommon')
| [
"eliza@cern.ch"
] | eliza@cern.ch |
5ddfb724efcc821a79c4e342fe9315c9e87c4d99 | 038e6e41d117431869edad4952a5b1463d5131bc | /donations/urls.py | f1cd42016e4516213c853992d4476f9cab832f42 | [
"MIT"
] | permissive | MikaelSantilio/aprepi-django | c49290855b7c83ecaf08de82ee9eedf8e8baa15a | 5e2b5ecffb287eab929c0759ea35ab073cc19d96 | refs/heads/master | 2023-06-19T00:18:15.986920 | 2021-06-15T20:15:59 | 2021-06-15T20:15:59 | 329,428,268 | 0 | 1 | MIT | 2021-02-05T16:21:45 | 2021-01-13T20:50:18 | Python | UTF-8 | Python | false | false | 1,043 | py | from django.urls import path
from donations import views
app_name = "donations"
urlpatterns = [
path('', views.MakeDonation.as_view(), name='unique-donation'),
path('historico/', views.DonationListView.as_view(), name='list'),
# path('checkout/<str:value>', views.MPCheckout.as_view(), name='mp-checkout'),... | [
"mikael.santilio@gmail.com"
] | mikael.santilio@gmail.com |
427ad4d206db8a5e4f376c716b47b039b82fba5a | 033da72a51c76e5510a06be93229a547a538cf28 | /Data Engineer with Python Track/03. Streamlined Data Ingestion with Pandas/Chapter/03. Importing Data from Databases/03-Selecting columns with SQL.py | 9ce77ea8c2536cbf0133ba6d5c5008e87273de10 | [] | no_license | ikhwan1366/Datacamp | d5dcd40c1bfeb04248977014260936b1fb1d3065 | 7738614eaebec446842d89177ae2bc30ab0f2551 | refs/heads/master | 2023-03-06T13:41:06.522721 | 2021-02-17T22:41:54 | 2021-02-17T22:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | '''
Selecting columns with SQL
Datasets can contain columns that are not required for an analysis, like the weather table in data.db does. Some, such as elevation, are redundant, since all observations occurred at the same place, while others contain variables we are not interested in. After making a database engine,... | [
"surel.chandrapratama@gmail.com"
] | surel.chandrapratama@gmail.com |
27c0b921e96a11906286be5d2fb8bac1c678ad1c | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc152/abc152_f/9661160.py | 040bdabbffd7805e7f362fb6eff11285789dc375 | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | import collections
from itertools import combinations
N = int(input())
ab = [tuple(map(int, input().split())) for i in range(N-1)]
M = int(input())
uv = [tuple(map(int, input().split())) for i in range(M)]
def popcount(x):
x = x - ((x >> 1) & 0x5555555555555555)
x = (x & 0x3333333333333333) + ((x >> 2) & 0x33... | [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
f37bf6d7e69087bad285023e03ef4723bb8ba36b | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/145/B.py | c96cb419eb5372858a0ff144fa21e734a83f0e9e | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | def main():
N = int(input())
S = input()
if N % 2 != 0:
print('No')
else:
A = S[:N//2]
B = S[N//2:N]
if A == B:
print('Yes')
else:
print('No')
if __name__ == "__main__":
main() | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
9900fb23966c7170f49463766fb9144b67096696 | 6323bd983f6304d95e62909bfc4883d2f9ef1a14 | /Leetcode/Medium/Range Sum query.py | 4e7d5a0537c1ad2d9022d5981e76015b68d98328 | [] | no_license | akshay-sahu-dev/PySolutions | 4c2d67d5f66fe83a6e302e1742a5bf17dafe2b99 | 83552962805768914034a284bf39197f52ca5017 | refs/heads/master | 2023-06-17T06:36:50.252943 | 2021-07-09T17:28:53 | 2021-07-09T17:28:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | ## https://leetcode.com/problems/range-sum-query-immutable
class NumArray:
def __init__(self, nums: List[int]):
self.nums = nums
def sumRange(self, i: int, j: int) -> int:
return sum(self.nums[i:j+1])
# Your NumArray object will be instantiated and called as such:
# obj = NumArray(... | [
"akki5233@gmail.com"
] | akki5233@gmail.com |
d81bf82845c2f8e12980533f9d59d8e047901438 | e07da133c4efa517e716af2bdf67a46f88a65b42 | /hub20/apps/blockchain/management/commands/sync_blockchain.py | b28399a2a20dc1fa41b00b74038c1e23e9e449e6 | [
"MIT"
] | permissive | cryptobuks1/hub20 | be1da5f77a884f70068fd41edaa45d5e65b7c35e | 3a4d9cf16ed9d91495ac1a28c464ffb05e9f837b | refs/heads/master | 2022-04-19T21:26:15.386567 | 2020-04-19T07:17:47 | 2020-04-19T07:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | import asyncio
import logging
from django.core.management.base import BaseCommand
from hub20.apps.blockchain.app_settings import START_BLOCK_NUMBER
from hub20.apps.blockchain.models import Block, make_web3
logger = logging.getLogger(__name__)
def split_block_lists(block_numbers, group_size=25):
for n in range(... | [
"raphael@lullis.net"
] | raphael@lullis.net |
ade677f8e988685507a1c948ac73be652ce39b49 | f0d3b759d9b0d2000cea2c291a4974e157651216 | /apps/goods/migrations/0001_initial.py | 303ea309f8cf6f7ee582bdc2901bd642b7490841 | [] | no_license | PYBPYB/Fresh-every-day | 526265ae0a9b1fe8e8f8944e0320ea8a47b8571c | 5b62fda9effe327a5da9ce45644bf44ee9d7108f | refs/heads/master | 2020-04-12T14:39:31.325736 | 2019-05-31T02:31:54 | 2019-05-31T02:31:54 | 162,558,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,310 | py | # Generated by Django 2.1.3 on 2018-11-26 09:10
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Goods',
... | [
"you@example.com"
] | you@example.com |
17886f2c49f51a24b121c87812d0111097c21985 | f47755f746c316cfdac8afaefe6d149aa77bc4e5 | /cloudmesh/rest/shell/shell.py | 052d890a4c3d2c4cb6cea1c4671b1c59ab97593b | [
"Apache-2.0"
] | permissive | karthik-anba/rest | a3705b9349ebf7e6e1b4f21036301529adfd3dc8 | b575a5bc16a5352f87c107fadb435935d5b66746 | refs/heads/master | 2021-01-21T10:46:23.433663 | 2017-02-23T01:20:23 | 2017-02-23T01:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,358 | py | #
# in our rest architecture we want to interface to the backend systems while
# using a secure rest service. I
# Internally we will use the many fnctions that cloudmesh_client provides.
# Before we use them we need to implement some elementary functions
# lets first do administrative functions in an admin commond
# p... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
e3656c3a8b753864e8154ec4f8a46ac7e789e3b0 | 9decd5901a491d08e9235abc7fb8dade362d215e | /pastepwn/database/__init__.py | d67e426275658725e14ea82b809b9e95828cb0b9 | [
"MIT"
] | permissive | jonahrosenblum/pastepwn | b4e7644fefd289d8ffb2a1cc6e77224dd1545c46 | 26c9e426a195d403894f00638eca6c5687cbd959 | refs/heads/master | 2021-01-02T22:03:26.922322 | 2020-02-04T23:36:08 | 2020-02-04T23:36:08 | 239,809,524 | 0 | 0 | MIT | 2020-02-11T16:27:06 | 2020-02-11T16:27:05 | null | UTF-8 | Python | false | false | 209 | py | # -*- coding: utf-8 -*-
from .abstractdb import AbstractDB
from .mongodb import MongoDB
from .mysqldb import MysqlDB
from .sqlitedb import SQLiteDB
__all__ = ('AbstractDB', 'MongoDB', 'SQLiteDB', 'MysqlDB')
| [
"d-Rickyy-b@users.noreply.github.com"
] | d-Rickyy-b@users.noreply.github.com |
be0d795ee4a482be60cebd7782452cdb1ec3243e | 5593b35f326748f18053e7ea042c98fe6b70a850 | /tqt/function/_utils.py | fcfe437056c27c6c9f5efbfe6e9d8517486bdff4 | [
"BSD-3-Clause"
] | permissive | sicdl/TQT | 7dfe3bce2bb5dace9a467945512e65525a0c3be9 | 27b73fcf27ddfb67cd28f6ed27e49341f27c9f16 | refs/heads/main | 2023-04-14T18:28:23.224689 | 2021-04-22T14:46:46 | 2021-04-22T14:46:46 | 362,503,682 | 0 | 0 | BSD-3-Clause | 2021-04-28T14:45:14 | 2021-04-28T14:45:13 | null | UTF-8 | Python | false | false | 153 | py | import torch
def number_to_tensor(x, t):
r'''
Turn x in to a tensor with data type like tensor t.
'''
return torch.tensor(x).type_as(t) | [
"you@example.com"
] | you@example.com |
f7322bfe24f366e1da7e22987d6cb7ed70e9b213 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-SecurityInterface/PyObjCTest/test_sfchooseidentitypanel.py | 128a8fe463da4b1756ea2b16a7730993712ab6e7 | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from PyObjCTools.TestSupport import *
import SecurityInterface
class TestSFChooseIdentityPanelHelper (SecurityInterface.NSObject):
def chooseIdentityPanelShowHelp_(self, v): return 1
class TestSFChooseIdentityPanel (TestCase):
def test_classes(self):
SecurityInterface.SFChooseIdentityPanel
def t... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
d3159cc0e9ff7137a95d0711e6f9b502070a0fda | 0667af1539008f9c6c0dcde2d3f50e8bbccf97f3 | /source/rttov_test/profile-datasets-py/div52_zen50deg/036.py | a78064452fb7611b980d7bf251e9df26e12cb8da | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bucricket/projectMAScorrection | bc6b90f07c34bf3e922225b2c7bd680955f901ed | 89489026c8e247ec7c364e537798e766331fe569 | refs/heads/master | 2021-01-22T03:54:21.557485 | 2019-03-10T01:47:32 | 2019-03-10T01:47:32 | 81,468,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,625 | py | """
Profile ../profile-datasets-py/div52_zen50deg/036.py
file automaticaly created by prof_gen.py script
"""
self["ID"] = "../profile-datasets-py/div52_zen50deg/036.py"
self["Q"] = numpy.array([ 1.60776800e+00, 4.99817300e+00, 4.07414300e+00,
6.67667600e+00, 8.13295200e+00, 7.49870800e+0... | [
"bucricket@gmail.com"
] | bucricket@gmail.com |
307afce7174d1f60914d4a08060660c34b82e628 | 794be26e4ab7bdd9af017ce1d0c6ce1f087d968d | /functional_tests/test_create.py | b0b5e0c8678060723a0834273615afdbe0ad3866 | [
"Apache-2.0",
"LGPL-3.0-only"
] | permissive | jasinner/elliott | 02fcc2f67b56d4e16eef28f0323d276fbd954593 | 67d77913517d0f7954dc02d918eb96ba78ec1ea8 | refs/heads/master | 2021-06-18T19:59:45.878716 | 2021-04-29T21:33:51 | 2021-04-29T21:33:51 | 215,217,286 | 0 | 0 | Apache-2.0 | 2019-10-15T05:52:13 | 2019-10-15T05:52:13 | null | UTF-8 | Python | false | false | 662 | py | from __future__ import absolute_import, print_function, unicode_literals
import unittest
import subprocess
from functional_tests import constants
class GreateTestCase(unittest.TestCase):
def test_create_rhba(self):
out = subprocess.check_output(
constants.ELLIOTT_CMD
+ [
... | [
"yuxzhu@redhat.com"
] | yuxzhu@redhat.com |
38f612204aaf7a5bb92d2ddfc8514649d07bdcad | a73cc710aa370be94b70248f2268d9c3b14059d0 | /server/src/weblab/core/web/quickadmin.py | 1fba2f6ba62d2380539e03e37e0669230626b289 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | weblabdeusto/weblabdeusto | 05692d4cc0a36287191544551d4a1113b3d95164 | 62e488afac04242a68efa4eb09fd91d7e999d4dd | refs/heads/master | 2023-05-10T23:14:05.407266 | 2022-08-31T14:16:23 | 2022-08-31T14:16:23 | 5,719,299 | 19 | 23 | BSD-2-Clause | 2023-05-01T20:18:53 | 2012-09-07T16:24:03 | Python | UTF-8 | Python | false | false | 7,417 | py | from __future__ import print_function, unicode_literals
import datetime
import calendar
from flask import render_template, request, send_file, Response, url_for
from functools import wraps, partial
from weblab.core.web import weblab_api
from weblab.core.db import UsesQueryParams
def check_credentials(func):
@wraps... | [
"pablo.orduna@deusto.es"
] | pablo.orduna@deusto.es |
a463d23256ed3b7f0178434ea5256ff915ef0430 | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /work/abc034_d2.py | 4afb3860d7f983c4de267f774fec7425d98c023d | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | n,k = map(int, input().split())
wpl = [list(map(int, input().split())) for _ in range(n)]
def f(w,p,x):
p = p/100
return p*w - w*x
def check(x):
l = [f(wpl[i][0], wpl[i][1], x) for i in range(n)]
l.sort(reverse=True)
return sum(l[:k])>=0
ok = 0
ng = 1
while abs(ng-ok)>10**-7:
mid = (ok+ng)/2
... | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
061e1a704629d8949be1743454ac0c89316349fb | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc025/C/2618079.py | c2927f9e67892662b56299b7a9fff478e70376c2 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | n = int(input())
l = []
r = []
for i in range(n):
lt, rt = map(int,input().split())
l.append(lt)
r.append(rt)
l.append(0)
r.append(0)
l.sort()
r.sort()
l.reverse()
ans = 0
i = 0
while r[i]<l[i]:
ans += 2*(l[i] - r[i])
i+=1
print(ans) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
594eaa6cce6464e3ce1165188820b67175525a11 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /opsworks_write_f/rds-db-instance_update.py | 3257b4557a10fe6a781cb6c9086bdfa3b85a8b86 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
766973ba9748fa74c5378e42398721badd887cf3 | 2612f336d667a087823234daf946f09b40d8ca3d | /python/lib/Lib/site-packages/django/utils/decorators.py | 17f2ea30b337f624c0f984698e31aebbb19f6d37 | [
"Apache-2.0"
] | permissive | tnorbye/intellij-community | df7f181861fc5c551c02c73df3b00b70ab2dd589 | f01cf262fc196bf4dbb99e20cd937dee3705a7b6 | refs/heads/master | 2021-04-06T06:57:57.974599 | 2018-03-13T17:37:00 | 2018-03-13T17:37:00 | 125,079,130 | 2 | 0 | Apache-2.0 | 2018-03-13T16:09:41 | 2018-03-13T16:09:41 | null | UTF-8 | Python | false | false | 4,290 | py | "Functions that help with dynamically creating decorators for views."
try:
from functools import wraps, update_wrapper, WRAPPER_ASSIGNMENTS
except ImportError:
from django.utils.functional import wraps, update_wrapper, WRAPPER_ASSIGNMENTS # Python 2.4 fallback.
class classonlymethod(classmethod):
def __g... | [
"dmitry.trofimov@jetbrains.com"
] | dmitry.trofimov@jetbrains.com |
e1a24bee538f55419b12446f7f37bc4f25bc8e38 | 03c8d75d11dd34a253d265ce5b44bf7984311bab | /root2yoda | ddf417c19d865e0e7c684d83a4ebafd3e9738188 | [] | no_license | raggleton/QGAnalysisRIVET | e8a57fbfa1380e1c67365b0d5a944119f715813b | 0703bdf81bf27f5fc91d8eedb6e44651d978749a | refs/heads/master | 2021-06-08T19:29:53.683282 | 2021-04-06T07:22:56 | 2021-04-06T07:22:56 | 142,179,672 | 0 | 1 | null | 2020-11-03T17:19:58 | 2018-07-24T15:40:48 | Gnuplot | UTF-8 | Python | false | false | 1,656 | #! /usr/bin/env python
"""\
%prog rootfile [yodafile]
Convert a ROOT data file to the YODA data format.
"""
import yoda, os, sys, optparse
from yoda.script_helpers import parse_x2y_args, filter_aos
parser = optparse.OptionParser(usage=__doc__)
parser.add_option("-m", "--match", dest="MATCH", metavar="PATT", default... | [
"robin.aggleton@cern.ch"
] | robin.aggleton@cern.ch | |
e0b51af08de583fc6d2449bff3c69e61e59ce414 | 3f3f2b3eaab992d3cc8f49fcd03e4824a11fddab | /diamond.releng.jenkins/job.scripts/email_owners_of_submittable_changes.py | 7bfd821419fa2722938f0131ed624a2ce5f2ba3e | [] | no_license | DiamondLightSource/diamond-releng | 7bff1926e3fd2f9df3c056d8af5521b4e74aaf41 | ba15336e7f7d3c160d3c3bc28316817cb4585305 | refs/heads/master | 2021-01-25T03:19:25.403769 | 2019-01-02T16:05:28 | 2019-01-02T16:05:28 | 19,986,689 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,159 | py | #!/usr/bin/env python3
###
### Requires Python 3
###
'''
Identify Gerrit changes that are ready to submit, and email the owners
'''
from email.message import EmailMessage
from email.headerregistry import Address
import datetime
import itertools
import json
import logging
import operator
import os
import os.path
impor... | [
"matthew.webber@diamond.ac.uk"
] | matthew.webber@diamond.ac.uk |
44a16f28b318d131dbeefaf200012cfa5e1bd8de | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/typeshed/tests/pytype_test.py | ee7ac0bb9cb9d9175b955f913e9188cc8bbc75a2 | [
"MIT",
"Apache-2.0"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 7,915 | py | #!/usr/bin/env python3
"""Test runner for typeshed.
Depends on pytype being installed.
If pytype is installed:
1. For every pyi, do nothing if it is in pytype_blacklist.txt.
2. Otherwise, call 'pytype.io.parse_pyi'.
Option two will load the file and all the builtins, typeshed dependencies. This
will also disc... | [
"srusskih@users.noreply.github.com"
] | srusskih@users.noreply.github.com |
3092c08a731b61558189665e7d2e63d08603ab03 | d9eafd325ab775b7b32af2dd0b63afc7310be53d | /pfwra/home/migrations/0004_auto_20210323_0728.py | 3678a7c488fe83d6dd909f1c2f80b1f809a9fe79 | [
"MIT"
] | permissive | johnkellehernz/pfwra | 54b0db7debaed629d6003e0826a15bde2fd4a197 | 5b8c718bb2f1aaa34e9a718e07baf270294f7ba6 | refs/heads/main | 2023-05-01T14:39:42.419993 | 2021-05-13T11:00:07 | 2021-05-13T11:00:07 | 353,514,688 | 0 | 0 | MIT | 2021-03-31T23:15:32 | 2021-03-31T23:15:31 | null | UTF-8 | Python | false | false | 1,670 | py | # Generated by Django 3.0.11 on 2021-03-23 07:28
from django.db import migrations, models
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0003_auto_20210219_0827'),
]
operations = [
migr... | [
"jordi.joan@gmail.com"
] | jordi.joan@gmail.com |
43b9efcb67283c12ab78d41bf4a139edda32f6a5 | 8101c599bdf68e0fcc2dbc8188640abfebc4a790 | /test/test.py | f651e500372ecdf139f269049f79c37f139d61d8 | [
"BSD-3-Clause"
] | permissive | symbooglix/boogie-runner | 2a39ddc86d1fee8e3750db6c07f3d20363195390 | 01e1fe993d5eacf7055f1d950a209583c0405fd6 | refs/heads/master | 2021-01-21T04:37:04.636241 | 2016-04-05T16:28:27 | 2016-04-05T16:28:27 | 28,610,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,484 | py | #!/usr/bin/env python
# vim: set sw=2 ts=2 softtabstop=2 expandtab:
import argparse
import logging
import os
import pprint
import re
import shutil
import subprocess
import sys
import yaml
testDir = os.path.dirname(os.path.abspath(__file__))
repoDir = os.path.dirname(testDir)
# Hack
sys.path.insert(0, repoDir)
from Bo... | [
"daniel.liew@imperial.ac.uk"
] | daniel.liew@imperial.ac.uk |
814bbf98eeee530f21372492d0a0d9f8a9ce62d1 | d8f7b9943049bd483189fe58fd4abf37163866dd | /GUI Code/search.py | 9d83c91ad738a58d3a07107996a978d96e19663f | [] | no_license | NagahShinawy/python-data-structures-algorithms | d14ecd478caa13e36c4f2dcdf942e5f9e9f351e5 | c254f12dca78444e3b2bbd667d4508a699b9fb89 | refs/heads/main | 2023-05-12T17:26:23.477742 | 2021-05-10T07:08:30 | 2021-05-10T07:08:30 | 365,436,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,940 | py | """
Python Data Structures - A Game-Based Approach
Robin Andrews - https://compucademy.net/
Search Algorithms for use in GUI.
"""
import config
import heapq
import helper_functions as helpers
from collections import deque
class PriorityQueue:
def __init__(self):
self.elements = []
def is_empty(self):... | [
"E-n.Shinawy@lean.sa"
] | E-n.Shinawy@lean.sa |
4dee0daf77fa48f37448dd8cf7d857f94c9426d5 | e91ba13a71dc8757e4c6f483d300bb32db8947d4 | /kubernetes-mastery/slides/markmaker.py | d7ef7a0356e368ba4cf696f9414f7f69f63ba6cc | [
"Apache-2.0"
] | permissive | sijoonlee/kubernetes_study | 752788d4ecf542072436e13ad98b9c67c3b3db2c | 668abacf4f855b55f23562486e420d29397bbe6d | refs/heads/master | 2022-12-22T06:52:51.224364 | 2020-09-30T17:38:18 | 2020-09-30T17:38:18 | 276,719,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,687 | py | #!/usr/bin/env python
# transforms a YAML manifest into a HTML workshop file
import glob
import logging
import os
import re
import string
import subprocess
import sys
import yaml
logging.basicConfig(level=os.environ.get("LOG_LEVEL", "INFO"))
class InvalidChapter(ValueError):
def __init__(self, chapter):
... | [
"shijoonlee@gmail.com"
] | shijoonlee@gmail.com |
0c78396cacf3dcb777ca52b8bb646c14114b8fd8 | b323fe5968aea700322428ba6bd239b45bc88c00 | /sohpen/website/migrations/0004_auto_20170518_0707.py | 9cbdfebe44d099d22afdb59741aada8fb2fc3ec3 | [] | no_license | aakashres/sophen | a1862be0fe4aaac51a03f111c1943c1e44f517cb | d84b8e8640f10eef22a79b8afba3e226405f9e5d | refs/heads/master | 2022-11-08T01:46:05.697691 | 2017-11-06T11:10:22 | 2017-11-06T11:10:22 | 273,651,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-18 07:07
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('website', '0003_auto_20170518_0544'),
]
operations... | [
"aakash.shres@gmail.com"
] | aakash.shres@gmail.com |
582d8df350455a0ac4ead2662303513df51bc4e8 | 9dfc5bf5d286c7b7f13ce4c17a8def1eb829d2b4 | /engine/fut/engine/fut_strategyAberration_1.py | 148503356e2de5a64ce79e517a46464f60ac4fbf | [] | no_license | chenzhenhu-yeah/nature | a463058fb4cc600fbcbd6a41edb7df485008aad6 | 368f52181f1ac7c0c8b06623c15faf77b7fc5e36 | refs/heads/master | 2021-06-24T10:20:03.796435 | 2021-01-16T06:40:31 | 2021-01-16T06:40:31 | 193,628,719 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,747 | py | # encoding: UTF-8
import os
import pandas as pd
from csv import DictReader
from collections import OrderedDict, defaultdict
from nature import to_log, get_dss, get_contract
from nature import DIRECTION_LONG,DIRECTION_SHORT,OFFSET_OPEN,OFFSET_CLOSE,OFFSET_CLOSETODAY,OFFSET_CLOSEYESTERDAY
from nature import ArrayManage... | [
"chenzhenhu@yeah.net"
] | chenzhenhu@yeah.net |
50faf2e04d91afe1be4128df90c192dd546b38fe | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/application_gateway_probe.py | d04d03bf97211b720086089e3307cafdb95580c8 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 4,616 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
30aec9891a46dbbe643a92b765ac61393ad4a416 | 56bd9b3518f21080a0493f5330249bf5e85289fd | /engineering/common/econstants.py | 6c98788eeb4a4ac58e6294df9a553babe863a6f2 | [
"Apache-2.0"
] | permissive | kevin-zhangsen/badam | da680bf8669722b5bc922381537bc4762fa5c228 | 6823f7dcd7c1b54c3b38edeffe59c16317598a2c | refs/heads/master | 2020-04-01T13:43:03.300155 | 2015-10-29T01:07:46 | 2015-10-29T01:07:46 | 45,371,347 | 2 | 0 | null | 2015-11-02T04:02:50 | 2015-11-02T04:02:47 | null | UTF-8 | Python | false | false | 7,858 | py | __author__ = 'nash.xiejun'
import os
class OperationType(object):
CFG_ALL_IN_ONE = 'cfg-all-in-one'
CFG_HOST_NAME = 'cfg-hostname'
DEPLOY_CASCADING = 'deploy-cascade-openstack'
DEPLOY_HYBRID_CLOUD = 'deploy-hybrid-cloud'
class EndpointType(object):
COMPUTE = 'compute'
VOLUME = 'volume'
VOL... | [
"nash.xiejun@gmail.com"
] | nash.xiejun@gmail.com |
200a81f58579323116fcf06d8ac860193ba85b33 | c954904d3a3259f0bee4bc3942998c30f4714e68 | /shortener/shorturl/__init__.py | 841083c46d1e89eca6a52cddcb079e6658197c16 | [] | no_license | Alodhaib/django-shortener-example | 9443e51191086fa1321468eb3fdefa137c25e330 | d037c913ed18e0a7b24865b7f4f5aaf68df2cca3 | refs/heads/master | 2021-01-24T10:06:40.965556 | 2013-05-11T16:01:13 | 2013-05-11T16:01:13 | 69,673,280 | 0 | 0 | null | 2016-09-30T14:22:22 | 2016-09-30T14:22:22 | null | UTF-8 | Python | false | false | 2,822 | py | #!/usr/bin/env python
#
# Converts any integer into a base [BASE] number. I have chosen 62
# as it is meant to represent the integers using all the alphanumeric
# characters, [no special characters] = {0..9}, {A..Z}, {a..z}
#
# I plan on using this to shorten the representation of possibly long ids,
# a la url shorte... | [
"allisson@gmail.com"
] | allisson@gmail.com |
6b8e063df39d1bc4647cc63b5d37bbb741026f94 | 84856442c382b0b670246636d378beb095effa0a | /dev_cloud/cc1/pkg/node/usr/sbin/cc1_node_update_config | e017f54f299318ea27deee56590d47e9bbbd9034 | [
"Apache-2.0",
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | Dev-Cloud-Platform/Dev-Cloud | f50cc3292245156c4cf55942e4426fda22443fd6 | b2fb9f4318aeb6dde1e8babca32da527943f1fb4 | refs/heads/master | 2020-12-29T02:43:14.022401 | 2017-05-05T07:18:21 | 2017-05-05T07:18:21 | 28,969,864 | 1 | 1 | null | 2015-01-14T16:46:57 | 2015-01-08T14:36:52 | Python | UTF-8 | Python | false | false | 1,615 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# @cond LICENSE
#
# Copyright [2010-2013] Institute of Nuclear Physics PAN, Krakow, Poland
#
# 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
#
# ... | [
"michal.szczygiel@wp.pl"
] | michal.szczygiel@wp.pl | |
9ebffdc2c7a97a1fcd82205153e8ae6ff5acd96a | 4dbdcdd777897567ede8343299b5dacf59580479 | /translations/views.py | 9cffdce4a4af841a082619776557b448ebeada5a | [
"BSD-3-Clause"
] | permissive | OpenTTD-Ladder/yawd-translations | 88cae158d561034ca6e69311fb8be9acc2b73627 | 913025f4361883408ca480a8e7c9ea90add0a9db | refs/heads/master | 2021-01-15T20:12:59.548959 | 2013-07-19T09:06:07 | 2013-07-19T09:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,508 | py | import os, shutil
from django.conf import settings
from django.contrib import messages
from django.core.exceptions import PermissionDenied
from django.core.management.commands.compilemessages import has_bom
from django.core.management.commands.makemessages import make_messages, handle_extensions
from django.http import... | [
"ppetrid@yawd.eu"
] | ppetrid@yawd.eu |
71bc398215f05023c66de7b67055c6c4452211b3 | 71dfa5d568d408fd8464a1313f87c1133e3d061c | /ATS/urls.py | b3d6e11901bbb899f6983c3d21e1d181763c2df1 | [] | no_license | harshdonga/Alumni-Tracking-System | 3819e26e82145ca2cf277c1f260494cb6a6fbd4c | f0c836d5fb405f8b61fb73d78acc4c47802a9c11 | refs/heads/master | 2020-12-29T17:48:13.989148 | 2020-02-07T04:27:59 | 2020-02-07T04:27:59 | 238,687,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('alumni.urls')),
]
| [
"harshdonga99@gmail.com"
] | harshdonga99@gmail.com |
5c107d3057995ffc314bc3eebe9f4fdb39227a36 | 321e58ab3e6b2385bb3549aaaefd56a58c2a51e7 | /python/atpic/atcookies.py | 1d2ea4668a4d530a17d2d2233e73e24b0279454c | [] | no_license | alexmadon/atpic_photosharing | 7829118d032344bd9a67818cd50e2c27a228d028 | 9fdddeb78548dadf946b1951aea0d0632e979156 | refs/heads/master | 2020-06-02T15:00:29.282979 | 2017-06-12T17:09:52 | 2017-06-12T17:09:52 | 94,095,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # cookies libary to process
# lang, format, resolution, wiki
# file:///home/madon/doc/python-3.3a0-docs-html/library/http.cookies.html
from http import cookies
C = cookies.SimpleCookie()
C["fig"] = "newton"
C["sugar"] = "wafer"
print(C)
C = cookies.SimpleCookie()
C["rocky"] = "road"
C["rocky"]["path"] = "/cookie"
pri... | [
"alex.madon@gmail.com"
] | alex.madon@gmail.com |
ff3179806be417683f17da0629967ff753f5acd1 | c06d18ac5b87b3b82fc486454c422b119d6c1ee9 | /src/demo/NLPBook/chapter5/stanford.py | e7a74651d98ea5d99c3a6e7fc528c3f3e51716fd | [] | no_license | tangermi/nlp | b3a4c9612e6049463bf12bc9abb7aff06a084ace | aa36b8b20e8c91807be73a252ff7799789514302 | refs/heads/master | 2022-12-09T12:33:15.009413 | 2020-04-03T04:03:24 | 2020-04-03T04:03:24 | 252,056,010 | 0 | 0 | null | 2022-12-08T07:26:55 | 2020-04-01T02:55:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,411 | py | # -*- coding: utf-8 -*-
import sys
import os
# CoreNLP 3.6 jar包和中文模型包
# ejml-0.23.jar
# javax.json.jar
# jollyday.jar
# joda-time.jar
# jollyday.jar
# protobuf.jar
# slf4j-api.jar
# slf4j-simple.jar
# stanford-corenlp-3.6.0.jar
# xom.jar
class StanfordCoreNLP(object):
def __init__(self,jarpath):
self.root = jarpat... | [
"n10057862@qut.edu.au"
] | n10057862@qut.edu.au |
8a16091fafc3f2319884a057c8e434ab0e79a775 | 7759c0ad152fe9c369b074a24601e54806b0afa8 | /backend/event/api/v1/viewsets.py | 4cba77ae5ad9f884a97fa17647488092f6c46aa1 | [] | no_license | crowdbotics-apps/covidcheck-15163 | be59f495e31b50948725fb332429751749f9b611 | a2f80fc2541bbc069cf3ec6a7f4d740aa665c77b | refs/heads/master | 2023-02-08T22:01:35.813215 | 2020-03-29T16:50:54 | 2020-03-29T16:50:54 | 250,877,575 | 0 | 0 | null | 2023-01-24T01:47:09 | 2020-03-28T19:33:39 | JavaScript | UTF-8 | Python | false | false | 3,066 | py | from rest_framework import authentication
from event.models import (
Category,
Faq,
Favorites,
Location,
MySchedule,
Presenter,
Schedule,
Sponsor,
Vendor,
VendorDetail,
)
from .serializers import (
CategorySerializer,
FaqSerializer,
FavoritesSerializer,
LocationSe... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9b3e528238dee10f5bdee6ca543158322d95ff6a | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/scattergl/_xsrc.py | 2c107c6b510e42d803ee235a58aa1eabf4f21690 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 386 | py | import _plotly_utils.basevalidators
class XsrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(self, plotly_name="xsrc", parent_name="scattergl", **kwargs):
super(XsrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_typ... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
4aa11ff5954703255ef2662ebc7538a8a164e33c | 0eb6c70503c680ebec415016ff1b0cfac92486ca | /lincdm/views/sitemap.py | f33aa93f833be7422fb0e7b0f58bb61365b8d717 | [] | no_license | alexliyu/lincdm | c8b473946f59aca9145b3291890635474f144583 | eab93285f0b03217ea041a7910edae7e00095cd8 | refs/heads/master | 2020-12-30T10:50:05.248988 | 2011-08-09T15:52:38 | 2011-08-09T15:52:38 | 1,464,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | """Views for entry sitemap"""
from django.views.generic.simple import direct_to_template
from lincdm.entry.models import Entry
from lincdm.entry.models import Category
def sitemap(*ka, **kw):
"""Wrapper around the direct to template generic view to
force the update of the extra context"""
kw['extra_conte... | [
"alexliyu2012@gmail.com"
] | alexliyu2012@gmail.com |
e7102e8a75f1b70c301e29ea4054d292404bf23c | 709bd5f2ecc69a340da85f6aed67af4d0603177e | /tests/test_analytics.py | d6818e163a670b22b8bcf46edc578302d57d81ae | [
"BSD-3-Clause"
] | permissive | Kenstogram/opensale | 41c869ee004d195bd191a1a28bf582cc6fbb3c00 | 5102f461fa90f2eeb13b9a0a94ef9cb86bd3a3ba | refs/heads/master | 2022-12-15T02:48:48.810025 | 2020-03-10T02:55:10 | 2020-03-10T02:55:10 | 163,656,395 | 8 | 0 | BSD-3-Clause | 2022-12-08T01:31:09 | 2018-12-31T09:30:41 | Python | UTF-8 | Python | false | false | 1,647 | py | from decimal import Decimal
from saleor.core.analytics import (
get_order_payloads, get_view_payloads, report_order, report_view)
def test_get_order_payloads(order_with_lines):
order = order_with_lines
generator = get_order_payloads(order)
data = list(generator)
assert len(data) == order.lines.c... | [
"Kenstogram@gmail.com"
] | Kenstogram@gmail.com |
51a44f03eb696ececa3a9e650a63d3177d62f625 | 976a21364b7c54e7bccddf1c9deec74577ce8bb8 | /build/rob_control/catkin_generated/pkg.develspace.context.pc.py | ae505c4d62a69cc0f460001a4541d25f31f1d6e7 | [] | no_license | jinweikim/catkin_ws | f0168b17c04863a6e5472f6199a4a9c525e0f3aa | 268ce7e348a162019e90d0e4527de4c9140ac0f8 | refs/heads/master | 2023-01-02T17:23:06.834527 | 2020-10-23T12:03:49 | 2020-10-23T12:03:49 | 262,527,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "actionlib_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rob_control"
PROJECT_SP... | [
"jinweikim@gmail.com"
] | jinweikim@gmail.com |
fbca50ebf0262d7c137ebc41118f7bd0b71c47de | 674649dc02390c4a60b9c62b586b81d405969047 | /network/__init__.py | 19f1226938b882bcbc77dc6b13f7782a531efc6f | [] | no_license | weijiawu/Pytorch_Classification | 709513be3e019a896ef11a1739829a97bb99c9db | 7609a1d809590c1423f4ed0ee1f0d918954355a9 | refs/heads/master | 2022-12-06T00:51:26.716590 | 2020-09-01T07:38:22 | 2020-09-01T07:38:22 | 285,811,133 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | from __future__ import absolute_import
"""The models subpackage contains definitions for the following model for CIFAR10/CIFAR100
architectures:
- `AlexNet`_
- `VGG`_
- `ResNet`_
- `SqueezeNet`_
- `DenseNet`_
You can construct a model with random weights by calling its constructor:
.. code:: python
import tor... | [
"wwj123@zju.edu.cn"
] | wwj123@zju.edu.cn |
2b6b9fdb0f744756e2cee975230f11c0238b45ea | 31a928cff4960236923b6bc3b68e34bb2f46f470 | /sparse-evolutionary-artificial-neural-networks/SET-MLP-Keras-Weights-Mask/set_mlp_keras_cifar10.py | 1a61f24283ff805b0be5792da50162cb6b2a6831 | [
"BSD-3-Clause",
"MIT"
] | permissive | webclinic017/ml_monorepo | 707df2afd2f986eb0721d26430e6135c917817c6 | 945f0a83d6b94282c547bb6f4805f3381ad9c16a | refs/heads/master | 2021-10-19T21:02:53.322944 | 2019-02-19T20:58:51 | 2019-02-23T20:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,286 | py | # Author: Decebal Constantin Mocanu et al.;
# Proof of concept implementation of Sparse Evolutionary Training (SET) of Multi Layer Perceptron (MLP) on CIFAR10 using Keras and a mask over weights.
# This implementation can be used to test SET in varying conditions, using the Keras framework versatility, e.g. various opt... | [
"tmichael.yu@gmail.com"
] | tmichael.yu@gmail.com |
38c685e5b3daa3c48549492e8305d7c6ec9b4a63 | 12b41c3bddc48a6df5e55bd16f7b2792ed6e4848 | /k8_vmware/vsphere/VM.py | 7d14aa69fb7f78566e20968c659a9f980499f6e4 | [
"Apache-2.0"
] | permissive | NourEddineX/k8-vmware | b128b03b988f8a94d6029458c5415cdd68e12b0a | 80f2a6d56021a1298919487c8372a88aff3f1fb9 | refs/heads/main | 2023-01-23T22:59:41.767216 | 2020-12-11T12:33:11 | 2020-12-11T12:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,321 | py | import pyVmomi
from osbot_utils.utils.Misc import wait
from k8_vmware.vsphere.VM_Keystroke import VM_Keystroke
class VM:
def __init__(self, vm):
self.vm = vm
def config(self):
return self.summary().config
def controller_scsi(self):
controllers = self.devices_SCSI_Controllers()
... | [
"dinis.cruz@owasp.org"
] | dinis.cruz@owasp.org |
0584747d8f65280307db8e8f7a973bf9d702eb19 | 39f1ae1e3b95d717f6d103b3ac534b468090c36f | /py_blackbox_backend/py_blackbox_backend/settings.py | 52046da510da0ace923632f0a9d29badf4aa06f4 | [] | no_license | arron1993/blackbox.arron.id | 5d532af4e9557986f8af5c9018d9d789bbd03470 | 4da60f3dd524bd0afbdc3613767a818bcab1cd8d | refs/heads/master | 2023-05-04T05:19:15.792063 | 2021-05-20T20:34:28 | 2021-05-20T20:34:28 | 346,052,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,974 | py | """
Django settings for py_blackbox_backend project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
i... | [
"arron.moore93@gmail.com"
] | arron.moore93@gmail.com |
b0a4fdf7a72979e444fdfa623f69a8f29cd809db | 13a179f6251d8354b058ff02b3101d904b606f0b | /src/shepherd_simu/src/sailboat_sim.py | 55da970d98847cf36e6b2ca0d542b0e025b062a6 | [
"MIT"
] | permissive | ENSTA-Bretagne-Shepherd/Shepherd-Ros-Structure | 4bb2ecb146e9fbc0897a780980634a711dc1788b | 6ce33426911fc50dfd61f165d73efe9702c2009b | refs/heads/master | 2021-01-12T08:36:38.511501 | 2017-02-22T13:20:17 | 2017-02-22T13:20:17 | 76,635,278 | 1 | 0 | null | 2017-02-10T16:13:33 | 2016-12-16T08:16:52 | CMake | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/env python
import rospy
from models.sailboat import Sailboat
from shepherd_reg.msg import SailboatCmd
from shepherd_disp.msg import SailboatPose
from std_msgs.msg import Float64
def update_cmd(msg):
global cmd
print 'Updated cmd:', msg.rudder_angle, msg.sail_angle
cmd = [msg.rudder_angle, msg.s... | [
"ejalaa12@gmail.com"
] | ejalaa12@gmail.com |
3b5faf029aed4be7d85694ac734b8aed784d187a | b156aad4624ec6dbc2efcca93181bbb948d16cc6 | /utils/utils.py | c128221bb9fdc076717f2e26e232be3b58d048cc | [] | no_license | itang85/bookshop-django | d191e2af002db94073ee8c59eeb768002443958f | b136629b4e5b1dc7f0661e4b06618f31c95d7ede | refs/heads/master | 2023-03-28T02:59:06.729909 | 2021-03-05T15:41:49 | 2021-03-05T15:41:49 | 332,227,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | import base64, json, re, jwt, datetime, time, hashlib, random
from calendar import timegm
# 导入谷歌验证码相关模块
# import pyotp
# 导入使用缓存的模块
# from django.core.cache import cache
from rest_framework.throttling import BaseThrottle
from django.conf import settings
from conf.area.area_list import area_dict
from utils.settings im... | [
"1094252227@qq.com"
] | 1094252227@qq.com |
55058d7c8d58c89e603d4127debeb4b8df5bd25a | 70730512e2643833e546e68761ee6cd3d7b95e1d | /01-python基础/code/day03/day02_exercise/exercise03.py | fadfaaf9e18f4ab6a6bc3a1b8aadc81dd9936e0a | [] | no_license | Yuchen1995-0315/review | 7f0b0403aea2da62566642c6797a98a0485811d1 | 502859fe11686cc59d2a6d5cc77193469997fe6a | refs/heads/master | 2020-08-26T23:16:33.193952 | 2019-10-24T00:30:32 | 2019-10-24T00:30:32 | 217,177,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
(扩展)在控制台中录入一个秒,计算是几小时零几分钟零几秒钟.
"""
# 10:40
total_second = int(input("请输入总秒数:"))
second = total_second % 60
hour = total_second // 60 // 60
minute = total_second // 60 % 60
# 在字符串中插入变量:
# “...x...” “..."+变量+"...”
print(str(hour) + "小时零" + str(minute) + "分钟零" + str(second) + "秒钟")
| [
"2456830920@qq.com"
] | 2456830920@qq.com |
4fe27b358e04b2dd76cba83b1b138fdd6e369026 | 29fd3daff8c31764c00777e67d2cc9b3e94ba761 | /examples/ch05_examples/mandelbrot/mandelbrot/cython_pure_python/setup.py | 440f9ca05742dda490c59ab9d203bd5d6f221906 | [] | no_license | mwoinoski/crs1906 | 06a70a91fc99e2d80e2ed3cea5724afa22dce97d | 202f7cc4cae684461f1ec2c2c497ef20211b3e5e | refs/heads/master | 2023-06-23T17:13:08.163430 | 2023-06-12T21:44:39 | 2023-06-12T21:44:39 | 39,789,380 | 1 | 2 | null | 2022-01-26T20:43:18 | 2015-07-27T17:54:56 | Python | UTF-8 | Python | false | false | 424 | py | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# for notes on compiler flags e.g. using
# export CFLAGS=-O2
# so gcc has -O2 passed (even though it doesn't make the code faster!)
# http://docs.python.org/install/index.html
setup(
cmdclass = {'... | [
"michaelw@articulatedesign.us.com"
] | michaelw@articulatedesign.us.com |
951e54a1ed72d5527bcb0dd1b534c6ef1079a65b | 2cc84af3d2a146b4dbb04bed3cfd542fa0622489 | /image-tools/image_clustering/tile_clustering.py | 1047091f0afa7d8cb8376a27b8df124a3fda22b4 | [
"MIT"
] | permissive | flegac/deep-experiments | e6a05b1a58eadf4c39580e95bb56d311e3dfa0ac | e1b12e724f2c8340cbe9c51396cf3f42e3b4e934 | refs/heads/master | 2020-04-09T00:20:15.132255 | 2019-10-11T16:39:47 | 2019-10-11T16:39:47 | 159,862,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,458 | py | import glob
import os
from typing import List, Callable
import cv2
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.colors import to_rgb
from scipy.stats import wasserstein_distance
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from sklearn.pipeline import Pipeline
from im... | [
"florent.legac@gmail.com"
] | florent.legac@gmail.com |
4f0ef26fe165b0b46815ad51b62f6a0c0f470256 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v5/proto/services/remarketing_action_service_pb2.py | 0495a4d9e848a5eed492faca8b8aa2397a32544c | [
"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 | 20,741 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v5/proto/services/remarketing_action_service.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflectio... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
d6ce1c57d5d48ad3fcd540884b07b83997ecc399 | 4c3e992678341ccaa1d4d14e97dac2e0682026d1 | /addons/mass_mailing/tests/test_mail.py | 09822f1c111822ef55b13830edbcad40590accf1 | [] | no_license | gahan-corporation/wyatt | 3a6add8f8f815bd26643e1e7c81aea024945130d | 77e56da362bec56f13bf0abc9f8cf13e98461111 | refs/heads/master | 2021-09-03T18:56:15.726392 | 2018-01-08T02:54:47 | 2018-01-08T02:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from gerp.addons.mail.tests.common import TestMail
class test_message_compose(TestMail):
def test_OO_mail_mail_tracking(self):
""" Tests designed for mail_mail tracking (opened, replied, bounced) """
... | [
"duchess@gahan-corporation.com"
] | duchess@gahan-corporation.com |
c3814fd79b1a1d8c165a84db0088b1cace467d56 | 417e6eb589d3441c3c8b9901e2d35873dd35f097 | /src/structural/observer.py | 0ea844bf4d99f8480fb048987da3a1e944975507 | [] | no_license | vmgabriel/pattern-python | 4fc6127ebdb521d0a4a7b10b4b68880f691ee630 | 74f1cd1314a79060d1df1a6df018c39572bc2b4c | refs/heads/master | 2023-04-24T06:45:16.773415 | 2021-05-10T21:14:51 | 2021-05-10T21:14:51 | 365,394,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | """Observer Pattern"""
# Libraries
from abc import ABCMeta, abstractmethod
class Publisher(metaclass=ABCMeta):
def add_observer(self, observer):
pass
def remove_observer(self, observer):
pass
def notify_all(self):
pass
def write_post(self, text):
pass
class Platzi... | [
"vmgabriel96@gmail.com"
] | vmgabriel96@gmail.com |
be868d1d34aa3dad1df6b4c850a30a4565685c4c | e22390ec9aa1a842626075113472f81076e1bf5f | /pullenti/semantic/SemFragment.py | 3954b163c1693d239274475b64e5e3f1cd4930fb | [] | no_license | pullenti/PullentiPython | ba9f450f3f49786732e80f34d0506d4a6d41afc3 | 815d550b99f113034c27f60d97493ce2f8e4cfcc | refs/heads/master | 2021-06-22T17:12:36.771479 | 2020-12-11T06:10:23 | 2020-12-11T06:10:23 | 161,268,453 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | # Copyright (c) 2013, Pullenti. All rights reserved.
# Non-Commercial Freeware and Commercial Software.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project.
# The latest version of the code is available on the site www.pullenti.ru
import typing
from pullen... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
a39f0bac82f84873a6dbf8cfd3f6a437ad45d06c | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/stock_account/wizard/stock_picking_return.py | 5d54d201e6b6a357cd694038a75f20b33ff45cc4 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | # -*- coding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from harpiya import api, fields, models
class StockReturnPicking(models.TransientModel):
_inherit = "stock.return.picking"
@api.model
def default_get(self, default_fields):
res = super(StockRetu... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
f9ae3dfa9e5cae2982f31a833e426773e239ed40 | e77732bce61e7e97bad5cee1b07d1b5f9b6fa590 | /cat/utils/data/exclude_corpus.py | 08cc3af28cfc90a11efade2a6bdf4941e1369fb7 | [
"Apache-2.0"
] | permissive | entn-at/CAT | 9f28f5ff75b37ac90baf63609226deb99d73dbe2 | fc74841e8f6b7eb2f2f88bb7c09b30ad5a8c16f4 | refs/heads/master | 2023-04-10T13:32:31.333889 | 2023-02-27T16:50:43 | 2023-02-27T17:29:07 | 236,718,892 | 0 | 0 | null | 2020-01-28T11:24:01 | 2020-01-28T11:24:00 | null | UTF-8 | Python | false | false | 2,432 | py | # Author: Huahuan Zheng (maxwellzh@outlook.com)
#
# Fetch n lines from source corpus and exclude part of the source if needed.
#
import sys
import os
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("corpus", type=str,
help="Path to the ... | [
"maxwellzh@outlook.com"
] | maxwellzh@outlook.com |
6c249c704fb9dcad286b896aac14b4023e741304 | 98dbb9cd9523809b4ee0e6b92334fa6a2a6af2a3 | /bingads/v13/bulk/entities/audiences/bulk_campaign_negative_product_audience_association.py | 80d8c4fc61c6babc61466c3ac50597c9c0a847f1 | [
"MIT"
] | permissive | BingAds/BingAds-Python-SDK | a2f9b0c099b574a4495d0052218f263af55cdb32 | 373a586402bf24af7137b7c49321dbc70c859fce | refs/heads/main | 2023-07-27T15:31:41.354708 | 2023-07-10T03:21:03 | 2023-07-10T03:21:03 | 31,927,550 | 105 | 182 | NOASSERTION | 2023-09-04T06:51:20 | 2015-03-09T23:09:01 | Python | UTF-8 | Python | false | false | 586 | py | from bingads.v13.bulk.entities.audiences.bulk_campaign_negative_audience_association import *
class BulkCampaignNegativeProductAudienceAssociation(BulkCampaignNegativeAudienceAssociation):
""" Represents an Campaign Negative Product Audience Association that can be read or written in a bulk file.
For more in... | [
"qitia@microsoft.com"
] | qitia@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.