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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa93ad03fc44012a2b48b86533a29102093f9c58 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_35/176.py | e46c645d92b8969ad48b9b94179d7069226800fc | [] | 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 | 3,876 | py | def main(filename):
f = open(filename)
lines = f.readlines()
f.close()
outlines = []
NORTH, WEST, EAST, SOUTH = 0, 1, 2, 3
T = int(lines.pop(0))
def get_neighbours(arr, row, col):
neighbours = []
if row > 0:
neighbours.append((NORTH, arr[row - 1][co... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6c72a45ff32d4962d15076f7ce9e9857f7f46759 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/22/usersdata/107/11706/submittedfiles/av1_2.py | 1ed072be432d68e735832fde03663c7d7ac9cb0d | [] | 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 | 297 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a=int(input('digite o valor de a:'))
b=int(input('digite o valor de b:'))
c=int(input('digite o valor de c':))
d=int(input('digite o valor de d:'))
if ABAD==5393 and CBCD==6268:
PRINT('VERDADEIRO')
ELSE:
print('FALSA') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4dece2cdb4af6765f620558479f12b10a049bb03 | 8e3bd35267f40341d7ca03646e10a2b92eace0c7 | /series.py | b7a4817a18ddf7d719d6458cd6f4a7a4f031f87b | [] | no_license | shirsho-12/mathScripts | 2eb762b64ec61ffe8f0182f478353fda121d8c3b | 0ada093050221a2f4d9b33c09783b052c17fbcb3 | refs/heads/master | 2023-04-01T06:29:55.308901 | 2021-04-17T13:54:10 | 2021-04-17T13:54:10 | 354,479,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | import numpy
from sympy import Symbol, pprint, simplify
import sympy as sp
def get_series(var, expr, num_terms=10):
series = sp.series(expr, var, n=num_terms)
pprint(simplify(series))
x = Symbol("x")
expr = sp.ln(1 - 8*x**2)
# expr = sp.cos(x)
# expr = sp.atan(x**3)
# expr = sp.ln(sp.sec(x))
get_series(x, e... | [
"shirshajit@gmail.com"
] | shirshajit@gmail.com |
2974a98e4d774482aebe15fe8fd2b5970e282ff3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /XsJLwhAddzbxdQqr4_4.py | 27672ae255be132627d23a9dd8c94ef3d9a364fa | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | """
Create a function that takes a list and returns the **difference** between the
biggest and smallest numbers.
### Examples
difference_max_min([10, 4, 1, 4, -10, -50, 32, 21]) ➞ 82
# Smallest number is -50, biggest is 32.
difference_max_min([44, 32, 86, 19]) ➞ 67
# Smallest number is 19, big... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2c09458e09ad39b4527ee72e2208c6e87689c8b0 | 2aec9c5e8c72b731d3abf22f2a407fe09c1cde09 | /TMviewList/TMview/main.py | 5786dc10738bd2553b7952ac9ba865b10b335595 | [] | no_license | jiangyg/ZWFproject | 8b24cc34970ae0a9c2a2b0039dc527c83a5862b5 | aa35bc59566d92721f23d2dd00b0febd268ac2dd | refs/heads/master | 2020-09-26T17:01:00.229380 | 2019-11-15T13:16:21 | 2019-11-15T13:16:21 | 226,297,631 | 0 | 1 | null | 2019-12-06T09:55:37 | 2019-12-06T09:55:36 | null | UTF-8 | Python | false | false | 103 | py | from scrapy import cmdline
cmdline.execute('scrapy runspider ./TMview/spiders/tm_view.py'.split())
| [
"34021500@qq.com"
] | 34021500@qq.com |
c8d933b28a46b474602a1ecd35e3973757ca6e7c | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/kenan/desktop/compiz/compizconfig-python/actions.py | 86771fd00f5ece6b0cc60cd32a33be547e5a41d2 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--disable-static")
def build()... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
a0f14bf59489e1820edcf0a4329a4155f3433160 | b55f7fe191a0ac499213505b297edffd2daab2ec | /DeepRLTrader/core/__init__.py | 31884eca75e1a3469faae7b5ec3c052da83623ad | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | chmbrs/DeepRLTrader | af77c33aee908d732fa760a1c48273f9b8ec6ae5 | 96ae2069a42e29838aa26165af0556835c1808dd | refs/heads/master | 2020-04-17T00:46:06.199575 | 2019-01-16T16:51:48 | 2019-01-16T16:51:48 | 166,061,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from .environnement import Local_env
from .environnement import Live_env
from .worker import Local_Worker
from .worker import Live_Worker
from .session import Local_session
from .session import Live_session
| [
"awakeproduction@hotmail.fr"
] | awakeproduction@hotmail.fr |
705172c4e9453f453bfc4b37feb291384cd02836 | 8ad8ee4e3a4e0e8ae0ed8e92c68cf122f5ba3723 | /web_JK_ENG00/webScript/UniversityofBolton.py | 66f48e84e92679e8358d92db44a79ac26398c9a7 | [] | no_license | yangyangyanga/automatic_update | 5b5065713853c4a1225142ece4ea39be1a05d011 | 53c1777cbb84e489b887f38e2745477d6b6f4604 | refs/heads/master | 2020-05-25T21:18:24.979779 | 2019-05-22T08:34:02 | 2019-05-22T08:34:02 | 187,996,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from middleware import *
makeThreading(urllist=getUrl(223),school='University of Bolton') | [
"1102213456@qq.com"
] | 1102213456@qq.com |
af49cccf78ba0cf24fdf317d6f5fb030c0a9d4a2 | b12aa1e2575a0d2b7345be676011afa174394b61 | /mengenalMysqlXampp/mengenalMysqlXampp/urls.py | ea5836ac0f652ce7828adad7dfb0ea3c2f209b72 | [] | no_license | frestea09/Latihan-django-to-data-scients | 52b5968685710cbb7c18525542576d42055b690b | 74b93d8daf2342feb69a4725143920eb299e20f8 | refs/heads/master | 2020-07-10T23:31:05.282827 | 2019-09-21T03:09:41 | 2019-09-21T03:09:41 | 204,396,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | """mengenalMysqlXampp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"ilmanfrasetya@gmail.com"
] | ilmanfrasetya@gmail.com |
d635a85034c10c4b59d607191010b1b0900e44c5 | 97062249c6eb04069c6fb01e71d06bc334c828e1 | /desktop/core/ext-py/Mako-0.8.1/mako/codegen.py | fc3469fce50aea72f8ab552c5df346d13597f5c7 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Albertsss/hue | 1c8b31c64cc420a029f5b5b80712fb3d0c6cbd6e | 454d320dd09b6f7946f3cc05bc97c3e2ca6cd485 | refs/heads/master | 2021-07-08T17:21:13.237871 | 2018-05-30T06:03:21 | 2018-05-30T06:03:21 | 135,386,450 | 0 | 1 | Apache-2.0 | 2020-07-25T13:36:58 | 2018-05-30T04:06:18 | Python | UTF-8 | Python | false | false | 49,252 | py | # mako/codegen.py
# Copyright (C) 2006-2012 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""provides functionality for rendering a parsetree constructing into module
source code."""
impo... | [
"540227148@qq.com"
] | 540227148@qq.com |
5e6b1e4f698c5c092aff75f1caa0e101fcacd01b | f0e8338762530bd6c2cc402cda64c43bcec329ae | /leetcode/35. 搜索插入位置.py | 2f9b313fad3d2a95b67f4af9fb389fa870e4f470 | [] | no_license | pengyuhou/git_test1 | bcd60554d2dadad972848047d00f888444462f05 | 5aa441f94a0aa713771bdd93b53a702032060f5d | refs/heads/master | 2022-11-22T08:52:52.767933 | 2020-07-18T03:50:22 | 2020-07-18T03:50:22 | 259,177,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | class Solution(object):
def searchInsert(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
import bisect
return bisect.bisect_left(nums, target)
if __name__ == '__main__':
# print(Solution().searchInsert([1, 3, 5, 6], 0))
... | [
"786490473@qq.com"
] | 786490473@qq.com |
d0377ce55de49112d96d6d73d6fdfc511bcc9219 | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/parser/template/graph_tests/test_authorise_usergroups.py | 070b6c41a40a3be42877c809d4c3b60fa8448c92 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,358 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
7b8a0f33c8c2cfce8e2214e673d7e23930159a0d | 1c762f8a085e851dcc38503008c3c997782c5c79 | /Data_Generator.py | 89fdbfcd546313b828a0742f5ac4328968277aa7 | [
"MIT"
] | permissive | Ajay2521/Face-Recognition-using-Siamese-Network | ca599ab2d05869a20accc22a3f3e17a77a193c18 | 0752e85b046599bf7ddb960cefeaf63b309e26c1 | refs/heads/main | 2023-05-13T21:14:56.740169 | 2021-06-11T03:37:41 | 2021-06-11T03:37:41 | 375,892,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,065 | py | # importing the neccessary libraries
# open cv for image processing
import cv2
# used to manipulate different parts
import sys
# used for manipulating array/matrics
import numpy as np
# used for accessing the file and folder in the machine
import os
# used for landmark's facial detector with pre-t... | [
"noreply@github.com"
] | Ajay2521.noreply@github.com |
2e8a3ba4e7038eac2ccc96263bdc2de8ad1ca6fe | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03761/s160390356.py | 6afd5b1b7f5508c82464c33c2033ab81a3670a86 | [] | 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 | 776 | py | import sys
from string import ascii_lowercase as alphabets
from collections import Counter
def main():
inf=100
alphd={x:0 for x in alphabets}
ansd={x:inf for x in alphabets}
n=int(input())
s=[input() for _ in range(n)]
for st in s:
for x in st:
alphd[x]+=1
for a in a... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1e4a3845791a36a5df31e7ae98bd5bd693739a52 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/compute/xpn/organizations/__init__.py | 72700f6654f058b41f4e7a2194a8e157ea46cb1b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 812 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
b9edd3e6f9ac2e63615f9388ce32ecd2ad05b7ff | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03659/s513043584.py | 3aa6b000e56fcb4dfa57e4fb72410c1623d07084 | [] | 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 | 190 | py | n = int(input())
a_lst = list(map(int, input().split()))
x = a_lst[0]
y = sum(a_lst[1:])
diff = abs(y - x)
for a in a_lst[1:-1]:
x += a
y -= a
diff = min(diff, abs(y - x))
print(diff) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
db708b0106ae135b1760c606ca3898726edcde4b | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad_BN/pyr_Tcrop256_pad20_jit15/pyr_2s/L5/step11_L2345678.py | 08c22bc3cddbff4ee3e973086092e77275248d2a | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,975 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
ca50bb1529182918b335ff225b5d425669d78e7e | 56997c84a331433225f89f168520ad8d709083c1 | /Programmers/기타문제/압축/ziping_ver1.py | 7a9ba5815d01771a1bcea7d53a147f1cf8df61e5 | [] | no_license | miseop25/Back_Jun_Code_Study | 51e080f8ecf74f7d1a8bb1da404d29c8ba52325c | 1d993e718c37c571aae1d407054ec284dc24c922 | refs/heads/master | 2022-11-06T01:05:05.028838 | 2022-10-23T13:11:22 | 2022-10-23T13:11:22 | 200,828,984 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | def solution(msg):
answer = []
lzw_dict = dict()
word = "A"
for i in range(1, 27) :
lzw_dict[word] = i
word = chr(ord("A") + i )
m_index = 0
w = msg[0]
while m_index < len(msg):
if m_index + 1 < len(msg) :
temp = w + msg[m_index + 1]
else :
... | [
"richard25@naver.com"
] | richard25@naver.com |
bc16ca07017d65d4491e9ab5faa7546a0003799e | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/pcode/memstate/UniqueMemoryBank.pyi | 851ac4589eaa0006c84ab4e084c511aae767f320 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | pyi | from typing import List
import ghidra.pcode.memstate
import ghidra.program.model.address
import java.lang
class UniqueMemoryBank(ghidra.pcode.memstate.MemoryBank):
"""
An subclass of MemoryBank intended for modeling the "unique" memory
space. The space is byte-addressable and paging is not supported.
... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
3cded22e233c71a389e5421e7c74cc2030579743 | 76b5be6d12c6885c8cb9ae458bf878a3dcf0401c | /DojoAssignments/Python2/PythonAssignments/Django/Django/Proj_DojoNingas/Proj_DojoNingas/urls.py | 9c840046f1d7b69577656ae64346e0b90eeb477b | [] | no_license | DaseinUXD/CodingDojo | ba1d532750d61a21feb401243c49e05623e9b8c2 | 19b2d0f0ce9f8c9d08747438412e5c988073f385 | refs/heads/master | 2020-03-11T16:36:51.312297 | 2018-09-19T22:32:09 | 2018-09-19T22:32:09 | 130,121,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | """Proj_DojoNingas URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"markmatthewsphd@gmail.com"
] | markmatthewsphd@gmail.com |
8162fbb5266f2f8bfa76526a9ece1c0475bacea3 | e959e0af4559447309f083e73010752e88f848c4 | /meta/DesignDataPackage/lib/python/avm/schematic/__init__.py | f02e48688f5ceee5e08cf64e9acd918a96373baa | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | lefevre-fraser/openmeta-mms | 5621e5bd2f14f63c5f44e5130678f93dae87e3d3 | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | refs/heads/master | 2022-04-21T13:39:07.209451 | 2020-04-14T19:56:34 | 2020-04-14T19:56:34 | 257,699,808 | 0 | 0 | NOASSERTION | 2020-04-21T19:48:04 | 2020-04-21T19:48:03 | null | UTF-8 | Python | false | false | 10,811 | py | # .\_schematic.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:2b86b09e6504617c4541a8a2f53a65ea784d5722
# Generated 2016-02-15 11:24:52.074000 by PyXB version 1.2.3
# Namespace schematic [xmlns:schematic]
import pyxb
import pyxb.binding
import pyxb.binding.saxer
import io
import pyxb.utils.utility
import ... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
dda51f8afb2664e55ffebcb38827068a86d57fc9 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/network/v20180201/get_virtual_network_gateway_bgp_peer_status.py | fde6e4b745e746cc3d66fd3df1e4a7b7d879a36e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 2,685 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
7e4eee384d51edf704de40157dbc2da7bef31188 | 9d9220ac3abc0aa316d1ce3653afe2c6d1a0593e | /sqlalchemy/ext/mutable.py | d3133b1f53df59fd86b5b3e4e6859ccf73b2b5e0 | [
"MIT"
] | permissive | sauloal/PiCastPy | 016733b597f8b15f2bc2fb6e6bc5f0f9aef95e70 | c907a5ba72ccd576b2c7ae78af25abb741327cee | refs/heads/master | 2020-06-04T21:34:45.015707 | 2013-08-09T17:18:29 | 2013-08-09T17:18:29 | 11,934,825 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,204 | py | # ext/mutable.py
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Provide support for tracking of in-place changes to scalar values,
which are propaga... | [
"sauloal@gmail.com"
] | sauloal@gmail.com |
ab931e5ccb6b71bc187e3317e6c7844a9b49c6ea | 5d32d0e65aa3bfa677fd1b8c92569e07e9b82af1 | /Section 1 - Getting Started/Breakouts/Breakout 1.2 - Turtle Graphics/Turtle Shapes v2 - block1.py | dfff63c79e6078cc283ec4b1983b196f82b5dbf7 | [
"CC0-1.0"
] | permissive | pdst-lccs/lccs-python | b74ef2a02ac8ad2637f713fff5559f4e56c9827d | 95cb7ece05716521e9951d7a40de8fb20a88021f | refs/heads/master | 2023-05-28T00:46:57.313972 | 2023-05-22T10:16:43 | 2023-05-22T10:16:43 | 240,501,524 | 21 | 18 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # Event: LCCS Python Fundamental Skills Workshop
# Date: May 2018
# Author: Joe English, PDST
# eMail: computerscience@pdst.ie
# Purpose: Turtle Graphics - Further Activities
# Match the code blocks below to the corresponding shape
from turtle import * # import the turtle graphics library
forward(100)
right... | [
"noreply@github.com"
] | pdst-lccs.noreply@github.com |
1d3245d9d48900c68394b1f5a8a746a3c42b03d0 | 0e6ce40f5a8e302698c2d0ddf945f7fa34dd190a | /mysite/polls/urls.py | 111b32d6b36b0bdc1ba4287fa9ac61db213f246c | [] | no_license | ricetak/django_tutorial | c89887a8153fb6901d3980217318c5137f7d3495 | 370ebade46a1aeade28b6626c4014cfea5db3a8b | refs/heads/master | 2020-05-26T09:12:34.024688 | 2019-05-23T07:10:55 | 2019-05-23T07:10:55 | 188,181,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | from django.urls import path
from . import views
'''
app_name = 'polls'
urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),
# ex: /polls/5/
path('<int:question_id>/', views.detail, name='detail'),
# ex: /polls/5/results/
path('<int:question_id>/results/', views.resul... | [
"you@example.com"
] | you@example.com |
2298f7d32ab7b27f31caad11a0c3d60da1efc78d | a1b649fcd0b6f6c51afb13f406f53d7d823847ca | /studies/migrations/0031_merge_20170828_1227.py | f58fb7d972f9061d9e93b85af8e2e50c1173197c | [
"MIT"
] | permissive | enrobyn/lookit-api | e79f0f5e7a4ef8d94e55b4be05bfacaccc246282 | 621fbb8b25100a21fd94721d39003b5d4f651dc5 | refs/heads/master | 2020-03-27T01:54:00.844971 | 2018-08-08T15:33:25 | 2018-08-08T15:33:25 | 145,752,095 | 0 | 0 | MIT | 2018-08-22T19:14:05 | 2018-08-22T19:14:04 | null | UTF-8 | Python | false | false | 340 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-28 16:27
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('studies', '0030_merge_20170827_1909'),
('studies', '0030_merge_20170827_1539'),
]
o... | [
"cwisecarver@cos.io"
] | cwisecarver@cos.io |
52836a63f5ed574bbefa5ef16a42d4feb1fddf38 | 9505e191cb287507c7df05212ab562bea1eda553 | /Data structures&Algorithms/bst.py | af404b2867e2e4e6c1e26a024acf1a2cfc23779b | [
"MIT"
] | permissive | iisdd/Courses | c7a662305f3efe7d61eb23f766381290b1107bb8 | a47d202e0d7e1ba85a38c6fe3dd9619eceb1045c | refs/heads/main | 2023-04-15T17:40:36.474322 | 2021-04-27T14:31:42 | 2021-04-27T14:31:42 | 316,904,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,154 | py | # 二叉搜索树,取个英文名字方便调包
class BiTreeNode:
def __init__(self, data):
self.data = data
self.lchild = None # 左孩子节点
self.rchild = None # 右孩子节点
self.parent = None
class BST:
def __init__(self, li=None):
self.r... | [
"noreply@github.com"
] | iisdd.noreply@github.com |
b40d9aae99b9bedfefe3e549932913b1fbbe044c | e01ab8185f34be16777e61aa7ce71f00e037dcf3 | /scripts/parallel_align_seqs_pynast.py | d4b23c42dd44163a509d00625ff5dedd70c4da5d | [] | no_license | zellett/qiime | caf6eae9e8346f7cdd2fed1f9c580a1777046709 | 395ae76e03ccf57272dc17a6d6555edb15ce4783 | refs/heads/master | 2020-05-20T06:03:22.867386 | 2012-12-09T19:08:07 | 2012-12-09T19:08:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,681 | py | #!/usr/bin/env python
# File created on 09 Feb 2010
from __future__ import division
__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME Project"
__credits__ = ["Greg Caporaso"]
__license__ = "GPL"
__version__ = "1.5.0-dev"
__maintainer__ = "Greg Caporaso"
__email__ = "gregcaporaso@gmail.com"
__stat... | [
"gregcaporaso@gmail.com"
] | gregcaporaso@gmail.com |
322e397c0f0c080a5c48552626e6c1dd530072c3 | a83bafc38b514a0339a5991be15870551ac49681 | /test/test_raw_material.py | 408000cb4e9c5d50a4d0ba805ba5188e82f5dea7 | [] | no_license | bimdata/python-api-client | 4ec2f81e404ef88d3a7e4d08e18965b598c567a2 | c9b6ea0fbb4729b2a1c10522bdddfe08d944739d | refs/heads/master | 2023-08-17T13:38:43.198097 | 2023-08-09T12:48:12 | 2023-08-09T12:48:12 | 131,603,315 | 0 | 4 | null | 2022-10-10T15:21:26 | 2018-04-30T14:06:15 | Python | UTF-8 | Python | false | false | 900 | py | """
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1 (v1)
Contact: support@bimdata.io... | [
"infra@bimdata.io"
] | infra@bimdata.io |
b93e64133180e5336b6485e8319d6a56dcd396ef | b01f1b9bafc9c45125fff4c90f0dc5bca8707fe8 | /tests/test_fonts3.py | 76488d42dfc73fa0bb2f46163c86c4af2123e66a | [
"MIT"
] | permissive | bunkahle/PILasOPENCV | a573d0b42b00a22822a85e2260e83ea6f5f642ed | 832bae926614a16a5a3ae882a25576862aff4125 | refs/heads/master | 2023-04-06T19:39:02.163531 | 2022-03-09T16:04:04 | 2022-03-09T16:04:04 | 176,177,923 | 27 | 10 | MIT | 2023-03-19T12:25:54 | 2019-03-18T00:33:31 | Python | UTF-8 | Python | false | false | 711 | py | from __future__ import print_function
import PILasOPENCV as Image
import PILasOPENCV as ImageDraw
import PILasOPENCV as ImageFont
import cv2
# font = ImageFont.truetype("arial.ttf", 30)
size = 20
font = ImageFont.truetype("msgothic.ttc", 22+int(size/50), index=0, encoding="unic")
print(font)
im = Image.new("... | [
"noreply@github.com"
] | bunkahle.noreply@github.com |
fe3ff6faf74a462febd26d25acda2a52115ffadf | 5ac348d455265b9733b8ae930e45998213f226ac | /AI/lab2/part2/PCA.py | 60def303b7c472146f5b655cbb87f5394aca32a9 | [] | no_license | jsw-zorro/USTC-Junior-Lab | e5eed0f2e1e9b1487d7554f8f8302f74cd4116d1 | 35c3f11b505de72b14e5ca9ea5188825302dcfd9 | refs/heads/master | 2020-04-10T22:42:11.432863 | 2018-07-04T06:09:13 | 2018-07-04T06:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # -*- coding: utf-8 -*
import numpy as np
import os
import math
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from scipy import misc
SAMPLE_NUM = 10
CLASS_NUM = 40
IMG_SHAPE = (112, 92)
scale = 0.5
k = 8
principal_percent = 0.8
def load_faceimg(path_dir, shrink_rate=0.5, train_... | [
"632679697@qq.com"
] | 632679697@qq.com |
139ef0f58f8798e9a04aff0ea852b8ecfd81d553 | 4fc11d739ce921ca2bd7fa4972c5bdaab620f714 | /backend/manage.py | 5cbe2d9cd42d0ea383489677a48668026adaae46 | [] | no_license | crowdbotics-apps/u-app-20291 | 4972a2d31a7d550821c1a677695839376f8fbd55 | 3b550f1374592938e75fe5f8f4a1b43d691a2055 | refs/heads/master | 2022-12-12T23:12:59.718116 | 2020-09-15T17:29:52 | 2020-09-15T17:29:52 | 295,799,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'u_app_20291.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9486c9afd91cf41d204a2a553a2d8a52d5904654 | 0b0d3246d39974cb8faff7d269da2d539415afab | /problem_python/p643.py | f23a17357f6d483556d9499124308313657f5eea | [] | no_license | xionghhcs/leetcode | 972e7ae4ca56b7100223630b294b5a97ba5dd7e8 | 8bd43dcd995a9de0270b8cea2d9a48df17ffc08b | refs/heads/master | 2020-03-07T17:18:08.465559 | 2019-09-29T11:11:26 | 2019-09-29T11:11:26 | 127,607,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | class Solution(object):
def findMaxAverage(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: float
"""
tmp_sum = sum(nums[:4])
i = 0
ans = tmp_sum
for j in range(k, len(nums)):
tmp_sum = tmp_sum - nums[i] + nums[j]
... | [
"xionghhcs@163.com"
] | xionghhcs@163.com |
8afd1ee4f786b09f6389370a832292037a5f5e00 | 7c0934affab1651d64114100c728aeff34853e73 | /tests/storage_adapter_tests/test_jsondb_adapter.py | 254d190c5e899b5f2bab47731d66df30c2112553 | [
"BSD-3-Clause"
] | permissive | kashyap32/ChatterBot | 04bc5839081851db7e0dd5d9fadb7b36718044a6 | a5486b66f25cfdfca3ed016cce4c1850e6f1cf07 | refs/heads/master | 2021-01-21T03:29:17.640369 | 2016-05-13T23:54:58 | 2016-05-14T00:13:35 | 58,814,919 | 1 | 0 | null | 2016-05-14T15:24:19 | 2016-05-14T15:24:19 | null | UTF-8 | Python | false | false | 11,101 | py | from unittest import TestCase
from chatterbot.adapters.storage import JsonDatabaseAdapter
from chatterbot.conversation import Statement, Response
class JsonAdapterTestCase(TestCase):
def setUp(self):
"""
Instantiate the adapter.
"""
from random import randint
# Generate a... | [
"gunthercx@gmail.com"
] | gunthercx@gmail.com |
55c34c0724af09f837aabbb9a2eccc295dfd9049 | 60b35d9219c3cafd5be4c176ceb9694cc7e3f0aa | /planner.py | f9e2b91526eaa6532fd6464c9d70361fca11a84d | [] | no_license | mikesuhan/canvas_automation | 3b201290e4df0401614ffd24ada7b6da2582818b | 8274352ce526a8c2c70e0e8a3428924f72c7797f | refs/heads/main | 2023-02-12T07:37:48.150138 | 2021-01-11T19:30:44 | 2021-01-11T19:30:44 | 326,797,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | import datetime
from dateutil.parser import parse
def date_range(first_day=datetime.datetime(2021, 1, 11, 8, 30), last_day=datetime.datetime(2021, 5, 7, 8, 30)):
delta = last_day - first_day
return list(reversed([last_day - datetime.timedelta(days=x) for x in range(delta.days + 1)]))
def session_range(dates, ... | [
"you@example.com"
] | you@example.com |
91cd2668c52a78e788bcdfe46bbb7e63ca3de71d | 395f93442d1d41ad228d62d4c15d197dbc1d1363 | /apps/user_operation/migrations/0004_auto_20181204_0942.py | fea67e4bcad34420f151c4ff625b83f50c1fd67b | [] | no_license | vevoly/ShopDjango | e0e310538eb4cdad0977f8ced1da6382a1441c67 | 8c25cf35797951c2a2d16933afedfa28689b597c | refs/heads/master | 2020-04-23T22:03:31.200141 | 2019-02-19T14:34:57 | 2019-02-19T14:34:57 | 171,489,038 | 0 | 0 | null | 2020-02-12T02:44:05 | 2019-02-19T14:33:04 | JavaScript | UTF-8 | Python | false | false | 1,108 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-12-04 09:42
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_operation', '0003_auto_20181117_1121'),
]
operations = [
... | [
"jevoly@163.com"
] | jevoly@163.com |
6f1155fa56134bb787b2fc17e62b2b06bf1c3850 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_blitzes.py | e5dac4a2227faeea262af941d833107c53afb89e | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py |
from xai.brain.wordbase.verbs._blitz import _BLITZ
#calss header
class _BLITZES(_BLITZ, ):
def __init__(self,):
_BLITZ.__init__(self)
self.name = "BLITZES"
self.specie = 'verbs'
self.basic = "blitz"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
63b1738112e6675083d3dacc3632b6ac68401436 | 7b556e8c35668a336e381ca30c61110408abf69e | /HSTB/kluster/gui/kluster_swathview.py | eb43c902d2381ecd9ff428217f97cdc828874b17 | [
"CC0-1.0"
] | permissive | OceanXplorer/kluster | 54775c3c4a93d9d51609248005271b1d7d7529c1 | bffddca5de7fd1a0eb8d5bf6b87252b84adc0636 | refs/heads/master | 2023-03-15T14:22:51.569255 | 2021-03-18T21:27:11 | 2021-03-18T21:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,447 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# vispy: testskip
# -----------------------------------------------------------------------------
# 2016, Scott Paine
# Distributed under the terms of the new BSD License.
# -----------------------------------------------------------------------------
"""
**********
Wiggl... | [
"eyou102@gmail.com"
] | eyou102@gmail.com |
319f8d28ab811b2e7eaf832c142ce5a9f1993d33 | 6766c01dee6c6330a62e14d5c036eedb60887228 | /book/admin.py | 04b64bbc505dc63b03a804135fa5da5558baf3c5 | [] | no_license | whu2017/easyreading | 5fbf299ab1d2e489e6dfd881a466852d646bbb52 | 71b2936345f9253648c046a68839c7164e506bfe | refs/heads/master | 2020-04-06T04:13:32.918077 | 2017-05-24T01:27:06 | 2017-05-24T01:27:06 | 83,019,406 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from book.models import Category, Book, Comment
class CategoryAdmin(admin.ModelAdmin):
list_display = ('name', )
class BookAdmin(admin.ModelAdmin):
list_display = ('category', 'title', 'author', 'price', 'sco... | [
"doraemonext@gmail.com"
] | doraemonext@gmail.com |
9fa7197b8a44396a777f1f416ab3e8488903a9b1 | 5a1a695829a2d1dbf4daa0736f0fbd6feffc7e63 | /swexpert/1859(백만 장자).py | 88fa455f52e94d8e73ed650c5a4527801d43a941 | [] | no_license | juyi212/Algorithm_study | f5d263c5329c994a457bbe897e5e1405d2b1d67a | f225cc593a50b74686111f654f7133707a1d1310 | refs/heads/master | 2023-03-21T20:02:36.138688 | 2021-03-16T14:16:40 | 2021-03-16T14:16:40 | 325,008,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | import sys
sys.stdin = open('input1.txt','r')
T=int(input())
for i in range(0, T):
day = int(input())
dayprice = list(map(int, input().split()))
maxprice = dayprice[len(dayprice)-1]
benefit = 0
buy = 0
for j in range(day-2, -1, -1):
if dayprice[j] < maxprice:
benefit += max... | [
"dea8307@naver.com"
] | dea8307@naver.com |
13ad959a6218c2871702b4ef16bfccf686044504 | e1d6de1fb5ce02907df8fa4d4e17e61d98e8727d | /intro/searching.py | 7d3678bf41cb22f6d1c32d55870e4744d264fc59 | [] | no_license | neuroph12/nlpy | 3f3d1a8653a832d6230cb565428ee0c77ef7451d | 095976d144dacf07414bf7ee42b811eaa67326c1 | refs/heads/master | 2020-09-16T08:24:37.381353 | 2016-09-10T19:24:05 | 2016-09-10T19:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # this line will show some book samples in NLTK.
from nltk.book import *
## concordance
# print('Sense and Sensibility by Jane Austen 1811')
# print(text2.concordance('affection'))
# print('text5: Chat Corpus')
print(text5.concordance('lol'))
## similarity
# print(text1.similar('monstrous'))
## common contexts
# pr... | [
"anderscui@gmail.com"
] | anderscui@gmail.com |
fd6feb2ed457231f5f56dceff0819d45e00509b8 | 343bdaddfc66c6316e2cee490e9cedf150e3a5b7 | /0001_0100/0094/0094.py | b366673455e6be0051362104cde337887818eb30 | [] | no_license | dm-alexi/acmp | af7f6b4484b78f5922f3b464406a0ba5dea0d738 | 3fa0016d132adfeab7937b3e8c9687a34642c93a | refs/heads/master | 2021-07-09T15:14:25.857086 | 2020-10-20T19:08:54 | 2020-10-20T19:08:54 | 201,908,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | with open("input.txt", "r") as f, open("output.txt", "w") as q:
n, m, k = (int(x) for x in f.read().split())
q.write("1" if n >= m else "NO" if n <= k else str((m - n - 1) // (n - k) + 2))
| [
"dm2.alexi@gmail.com"
] | dm2.alexi@gmail.com |
39d81f04162ffe643e220fbda57ad7cee54f091e | 873d9322f0d9296a0eda49bba65faba3a7ba62e3 | /kontrasto/templatetags/kontrasto_tags.py | 9918722e2f02363153ae4fafe2370029bd7c40a1 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | nimasmi/kontrasto | d9910ca015f7d4263b7d9b829f3282936cfbb0b9 | 08fc0279e2b3e1da1a5cec769874572455fd0527 | refs/heads/main | 2023-04-19T21:18:47.677839 | 2021-05-15T00:42:50 | 2021-05-15T00:42:50 | 370,022,377 | 0 | 0 | MIT | 2021-05-23T10:28:35 | 2021-05-23T10:28:34 | null | UTF-8 | Python | false | false | 1,881 | py | from django import template
from kontrasto import wcag_2, wcag_3
register = template.Library()
@register.filter(name="dominant_color")
def dominant_color(image):
return image.get_dominant_color()
@register.filter(name="wcag_2_contrast")
def wcag_2_contrast(image, text_color: str) -> str:
return wcag_2.wca... | [
"thibaudcolas@gmail.com"
] | thibaudcolas@gmail.com |
065cde2487f798bbdd3629817a89aac06a72872c | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/Scaleform/daapi/view/meta/PremiumWindowMeta.py | 938001af0b0a21975d24c7e234953c27e7860c41 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,076 | py | # 2016.11.19 19:51:28 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/PremiumWindowMeta.py
from gui.Scaleform.daapi.view.meta.SimpleWindowMeta import SimpleWindowMeta
class PremiumWindowMeta(SimpleWindowMeta):
"""
DO NOT MODIFY!
Generated with yaml.
__autho... | [
"info@webium.sk"
] | info@webium.sk |
1ab1c26e10ab8717734ea8ad5224365ae174f7e4 | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /google_or_tools/futoshiki_sat.py | 0eac27b21330dd3171807643a0076cc4144a12bc | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 4,036 | py | # Copyright 2021 Hakan Kjellerstrand hakank@gmail.com
#
# 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 ... | [
"hakank@gmail.com"
] | hakank@gmail.com |
58be27206cfb7d5fc2a4de4abf35d558fc019c02 | 483424524c70852cc043e0d77bf1b757a61d797a | /deepspeed/ops/sparse_attention/sparse_attention_utils.py | ccb0f940dff65839beac579f81c4dfb7e499e6bb | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/DeepSpeed | 810f1af320020718d0794f5a97cde6f1d17af122 | 55d9964c59c0c6e23158b5789a5c36c28939a7b0 | refs/heads/master | 2023-09-06T07:40:52.145692 | 2023-09-05T23:51:23 | 2023-09-05T23:51:23 | 235,860,204 | 27,557 | 3,347 | Apache-2.0 | 2023-09-14T21:38:46 | 2020-01-23T18:35:18 | Python | UTF-8 | Python | false | false | 12,300 | py | # Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0
# DeepSpeed Team
import torch
from torch.nn import functional as F
from deepspeed.ops.sparse_attention import BertSparseSelfAttention, SparsityConfig
'''
This file contains few utility functions to handle adapting pretrained model with spars... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
2fce7a68118cfb2a297a7f558fcf02e1990f725a | 882c2b3c410b838372d43e431d1ccd6e02ba45f6 | /AlMgSiMC/cylinder_khachaturyan.py | 7025b331326e9df285f6023052ba55b49b3f0ad5 | [] | no_license | davidkleiven/GPAWTutorial | d46f7b8750172ba5ff36ccc27f97089cac94fd95 | 0bffc300df1d048142559855d3ccb9d0d8074d2e | refs/heads/master | 2021-06-08T05:44:42.784850 | 2021-02-25T10:23:28 | 2021-02-25T10:23:28 | 98,557,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | import numpy as np
from apal import Khachaturyan
import matplotlib as mpl
mpl.rcParams.update({'font.size': 18, 'axes.unicode_minus': False, 'svg.fonttype': 'none'})
from matplotlib import pyplot as plt
C_al = np.array([[0.62639459, 0.41086487, 0.41086487, 0, 0, 0],
[0.41086487, 0.62639459, 0.41086487... | [
"davidkleiven446@gmail.com"
] | davidkleiven446@gmail.com |
9e338203a2a4f179a30804f2de90d78601d2e927 | 2d4af29250dca8c72b74e190e74d92f1467120a0 | /TaobaoSdk/Request/HanoiFunctionSearchRequest.py | af0a66a03944adcd825a8c566195dce3de1fdbe1 | [] | no_license | maimiaolmc/TaobaoOpenPythonSDK | 2c671be93c40cf487c0d7d644479ba7e1043004c | d349aa8ed6229ce6d76a09f279a0896a0f8075b3 | refs/heads/master | 2020-04-06T03:52:46.585927 | 2014-06-09T08:58:27 | 2014-06-09T08:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,356 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 根据条件检索function。current_page:最大100页 page_size:10-30
# @author wuliang@maimiaotech.com
# @date 2013-09-22 16:52:39
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.jo... | [
"chenke@maimiaotech.com"
] | chenke@maimiaotech.com |
829bd5aca7467be68cffeb2aa4981ff4b6482b94 | 06a045819cf99c7059afde40dca12cf9d3eb5f81 | /pandas/tests/io/parser/dtypes/test_dtypes_basic.py | 915cc9a9a1f95dd1fee943e1acd3b3e6fed63067 | [
"BSD-3-Clause"
] | permissive | MarcoGorelli/pandas | b9882c6ac1e4bc753819b7bc7c8b567964efd275 | 86a4ee01c7899ef454d35b95cde11e9593921c9d | refs/heads/main | 2023-08-22T12:35:45.122152 | 2023-05-04T22:11:07 | 2023-05-04T22:11:07 | 164,618,359 | 4 | 1 | BSD-3-Clause | 2023-05-05T09:02:23 | 2019-01-08T09:55:54 | Python | UTF-8 | Python | false | false | 14,980 | py | """
Tests dtype specification during parsing
for all of the parsers defined in parsers.py
"""
from collections import defaultdict
from io import StringIO
import numpy as np
import pytest
from pandas.errors import ParserWarning
import pandas as pd
from pandas import (
DataFrame,
Timestamp,
)
import pandas._te... | [
"noreply@github.com"
] | MarcoGorelli.noreply@github.com |
9872ed3d75f6b59b33b85328df1ac8e4c7ea2837 | 214942f8cf694227d32077accd8aa379c26b4830 | /ooi_instrument_agent/utils.py | 2b2a23ad7e8bce1df9cd47a0b66c4ece8d784abe | [
"Apache-2.0"
] | permissive | oceanobservatories/ooi-instrument-agent | 76084b2c554f195983550aa67d3c86e66a39f525 | e22e4300079468bb99c543cbbf1cb5c8b4a96897 | refs/heads/master | 2021-01-21T14:58:10.847453 | 2016-06-21T18:15:19 | 2016-06-21T18:18:24 | 58,216,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,896 | py | import json
import logging
from flask import request
from werkzeug.exceptions import abort
from ooi_instrument_agent.client import ZmqDriverClient
DEFAULT_TIMEOUT = 90000
log = logging.getLogger(__name__)
def get_client(consul, driver_id):
"""
Create a ZmqDriverClient for the specified driver_id
:param... | [
"petercable@gmail.com"
] | petercable@gmail.com |
1a3dcd0ed91952cbd51126d875f0e262109a6f94 | 6244c2efe590494e0870253269e269848f8debe4 | /BooleanNetworks/LEMScores/parseLEMscores_malaria_40hr.py | 272717bc1a9856b72ebf33574f87bff521033bb8 | [] | no_license | breecummins/BooleanNetworks | 53db4dc4e50d5d571344ed55b65efb66a1c4328d | 074409a6dd569b2f0ce3602e7dfda496db08cd01 | refs/heads/master | 2021-09-03T20:31:53.237492 | 2018-01-11T19:55:32 | 2018-01-11T19:55:32 | 117,146,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,021 | py | import parseLEMscores_yeast_mouse as PLS
import parseLEMscores_malaria_20hr as PLS20
from networkbuilder_yeast_mouse import createNetworkFile
import time
def parseLEMfile(bound=0,fname='/Users/bcummins/ProjectData/malaria/wrair2015_v2_fpkm-p1_s19_40hr_highest_ranked_genes/wrair2015_v2_fpkm-p1_s19_90tfs_top25_dljtk_le... | [
"breecummins@gmail.com"
] | breecummins@gmail.com |
9a670955cc54404b943dfc93a7b7692e7f24ee44 | 00b5ad360284adc06f7e7ca9b2d1c2d3a0edd6f9 | /recycle/CRF-C-LR.py | 5571d01c9c38fafa50e8533efab0bdcfe00946ba | [] | no_license | ShenDezhou/CBLSTM | e09d36f609df2b34ace2ae8085d2232039838675 | b5ac4714f8ea14cf2bfd6ce6033eb697ef078686 | refs/heads/master | 2021-04-16T19:47:44.758194 | 2020-07-20T06:21:08 | 2020-07-20T06:21:08 | 249,381,106 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 2019年5月17日
@author: Administrator
'''
from sklearn.feature_extraction.text import CountVectorizer
import os
import codecs
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train... | [
"bangtech@sina.com"
] | bangtech@sina.com |
f91f09dca1cd6719bb83aa81dbb34abf79e48761 | f0b75bd94f133a13f469f429a696f26be3be9862 | /week_4/.history/class_exercise1_20200217114534.py | 797ca5e3e1d3292edc31ea02837aa9efe73bbf2a | [] | no_license | dechavez4/Python_handin_assignments | 023350fabd212cdf2a4ee9cd301306dc5fd6bea0 | 82fd8c991e560c18ecb2152ea5a8fc35dfc3c608 | refs/heads/master | 2023-01-11T23:31:27.220757 | 2020-05-22T10:33:56 | 2020-05-22T10:33:56 | 237,179,899 | 0 | 0 | null | 2022-12-30T20:14:04 | 2020-01-30T09:30:16 | Python | UTF-8 | Python | false | false | 1,235 | py | import numpy as np
a = np.arange(10,30).reshape(4,5)
#exercise 1 table
yellow = a[0,0]
green = a[:3, 2]
teal = a[:, (1,3)]
blue = a[::2, 4]
red = a[0, 1:4]
#print('yellow= ', yellow, 'green= ', green, 'blue= ', blue, 'teal=', teal, 'red=', red)
#exercise 2 cube:
c = np.arange(0, 27).reshape((3, 3, 3)) # = (z, y, ... | [
"chavezgamingv2@hotmail.com"
] | chavezgamingv2@hotmail.com |
e976cba53c1c34192f3fe8310a36c701a6966fc2 | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /python/geometry/polygon/line_line_intersect.py | bb815c566278010dd4858fcbc86ec08f82250541 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | ../line_line_intersect.py | [
"info@akihikoy.net"
] | info@akihikoy.net |
bf6d916adf0631e19932c2e5f3d01cddfc18a72e | ee409ec2e421bdac5988fcbe6592b05824b51d58 | /google-datacatalog-qlik-connector/tests/google/datacatalog_connectors/qlik/scrape/engine_api_dimensions_helper_test.py | da581d76cc0bbe1954ca4808e0652eabc188a810 | [
"Apache-2.0",
"Python-2.0"
] | permissive | GoogleCloudPlatform/datacatalog-connectors-bi | 7b11ed25856e83c8bd4b701dd836e0d20815caf7 | 58cc57e12632cbd1e237b3d6930e519333c51f4e | refs/heads/master | 2023-04-01T14:27:24.548547 | 2022-02-12T09:55:56 | 2022-02-12T09:55:56 | 259,464,922 | 34 | 18 | Apache-2.0 | 2022-02-12T09:55:57 | 2020-04-27T21:51:45 | Python | UTF-8 | Python | false | false | 6,322 | py | #!/usr/bin/python
#
# 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 ag... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
6c7b94252cf23796c1c645176f35159465ceabce | 33cf73bf603ffe09ad763fca4103e979ed50a4bc | /service_api/cd/NightWorkSpider.py | 43e27efb13f5b1eaca5c928bbe078a11de05959a | [] | no_license | daddvted/excavat0r | f73d05670766d5f47ef5d7e443289851fc172906 | 8c2c56b6395bede4135fd859b1338831345054b6 | refs/heads/master | 2022-06-09T11:51:34.461893 | 2018-12-12T10:06:42 | 2018-12-12T10:06:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,876 | py | """
夜间施工查询
URL: http://www.cdcc.gov.cn/QualitySafeShow/NightWorkList.aspx
"""
import re
import time
import random
import requests
import lxml.html
import mysql.connector
from urllib.parse import urlencode
class NightWorkSpider(object):
USER_AGENTS = [
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20... | [
"ski2per@163.com"
] | ski2per@163.com |
b7a15ee772f12d767de80ae61a8dfe0147385d56 | 2e00398c4b77ab6e1996dbbefa167e13a8ad40a9 | /users/apps.py | f4ebd07740e02a9ffa3ee350068584103561efaf | [] | no_license | cleliofavoccia/PurBeurre | d754b83ed28b1240447243f149080058a60ccdfb | e2b5a51fbd91412e68ddb1c3c785713c7988cc41 | refs/heads/main | 2023-03-20T11:06:32.466520 | 2021-03-12T16:02:22 | 2021-03-12T16:02:22 | 331,650,830 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | """Manage users app"""
from django.apps import AppConfig
class UserConfig(AppConfig):
name = 'users'
| [
"favoccia.c@live.fr"
] | favoccia.c@live.fr |
fc3a3a852a14c61bf200443577da2911fd89726f | d954e2f74d1186c8e35be8ea579656513d8d3b98 | /rllib/utils/metrics/learner_info.py | c3d0672ed9b43cee73cde9f6bbcb3ab1634805d6 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vakker/ray | a865de214e60f9e62d61c03ae7ce55ad6030f84c | de238dd626a48a16c8b3cd006f3482db75f63a83 | refs/heads/master | 2023-01-23T22:30:44.839942 | 2022-10-23T01:05:48 | 2022-10-23T01:05:48 | 171,845,804 | 0 | 1 | Apache-2.0 | 2023-01-14T08:01:04 | 2019-02-21T09:54:36 | Python | UTF-8 | Python | false | false | 4,034 | py | from collections import defaultdict
import numpy as np
import tree # pip install dm_tree
from typing import Dict
from ray.rllib.utils.annotations import DeveloperAPI
from ray.rllib.policy.sample_batch import DEFAULT_POLICY_ID
from ray.rllib.utils.typing import PolicyID
# Instant metrics (keys for metrics.info).
LEAR... | [
"noreply@github.com"
] | vakker.noreply@github.com |
3e034c1f69961ac0240eb97d3fa99c041e1ea2e1 | c9803fb67b885214f138a805990d77cf4d714818 | /proof_of_work/deep_q/v0/deepqagentv0.py | 8b0e078ffc9d708f5a50856f8a53fc868448bd46 | [
"MIT"
] | permissive | michaelneuder/parkes_lab_fa19 | e68247ad5253d54f4d6074593a0e63fe61fcfc18 | 18d9f564e0df9c17ac5d54619ed869d778d4f6a4 | refs/heads/master | 2020-07-12T10:32:15.585380 | 2020-01-26T21:45:05 | 2020-01-26T21:45:05 | 204,792,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,374 | py | import copy
from environmentv0 import Environment
from keras.models import clone_model
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam
import matplotlib.pyplot as plt
plt.style.use('seaborn-muted')
import numpy as np
import progressbar
import time
import util
np.rand... | [
"michael.neuder@gmail.com"
] | michael.neuder@gmail.com |
553c8bdce9310f714de89a953254547790cb5798 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_14/23.py | d377a8e795b0b42d56e3300bc9c3260586116e75 | [] | 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 | 728 | py | #!/usr/bin/env python
import gmpy,math
import sys
f=sys.stdin
n=int(f.next())
class Case(object):
def __init__(self):
self.res = "IMPOSSIBLE"
N,M,A = map(int,f.next().split())
if N*M < A:
return
for xb in range(N+1):
for yb in range(M+1):
for... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f264b6aefd6e4f3b76d8adff5912a5ebfda45ef3 | 3d89ff4093d989940e7d0e535343a748adb0a87f | /5690-ClosestDessertCost.py | 8389d0bb9e6e364114ec8116c04b9239786fe5fc | [] | no_license | Scott-Larsen/LeetCode | 129585bb3017fbb59c07c22f74afe4309b46c15d | f644afb34f15cd4e310026a00ccf4149ba8daf10 | refs/heads/main | 2021-06-22T23:02:06.515527 | 2021-06-12T16:30:31 | 2021-06-12T16:30:31 | 204,087,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | # 5690. Closest Dessert Cost
# You would like to make dessert and are preparing to buy the ingredients. You have n ice cream base flavors and m types of toppings to choose from. You must follow these rules when making your dessert:
# There must be exactly one ice cream base.
# You can add one or more types of... | [
"scott@scottlarsen.com"
] | scott@scottlarsen.com |
ff848fbbf9d48acf972b91af78b1a7f35fba2c83 | 53f3eb1730f94f89d9d9d3d80a4182360d4e4420 | /13/utils/scanners.py | 4ed34abbdb482bd8e2e43cd02a596e078e284442 | [
"MIT"
] | permissive | Magnificent-Big-J/advent-of-code-2017 | 964b1da28b4e4f4398a3562baa130d5fdd701e9a | b83a849752c9a045978a0ea5eceb409adbfca0f4 | refs/heads/master | 2021-09-01T06:59:10.604222 | 2017-12-23T14:52:22 | 2017-12-23T14:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | def load_scanners():
layers = {}
layer = 0
with open('input.txt') as f:
for line in f:
data = [int(i) for i in line.split(': ')]
while layer != data[0]:
layers[layer] = {'s': -1, 'd': -1, 'dir': None}
layer += 1
layers[data[0]] = {'... | [
"chris@chrxs.net"
] | chris@chrxs.net |
0a6db6f5367369ae8bb4340f78ad9fdd04f78a82 | 6a1975a11de163ce0e6a5f001df41758bea3686b | /1047. Remove All Adjacent Duplicates In String/Solution_栈.py | 5bd255435f7a6ac7e19295dca77315666a0668f4 | [] | no_license | Inpurple/Leetcode | 7f08e0e500d37913e9244f08ea8f603b3fc1ce88 | df2bcca72fd303100dbcd73d1dfae44467abbb44 | refs/heads/master | 2020-05-20T02:17:08.430557 | 2019-09-22T07:51:28 | 2019-09-22T07:51:28 | 185,327,908 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | class Solution(object):
def removeDuplicates(self, S):
"""
:type S: str
:rtype: str
"""
sta=[]
for i in S:
if sta and sta[-1]==i:
sta.pop()
else:
sta.append(i)
return ''.join(sta)
| [
"noreply@github.com"
] | Inpurple.noreply@github.com |
dcd366a00afd84b0b4dc0d78f57f34f918a3028d | 0fea8a6421fe5f5967f2202910022c2bfd277b4d | /164.生成一个随机的8位密码,要求4个字母和4个数字.py | c4b132ec248696b2fb5da097f6336c9a28df8e14 | [] | no_license | maohaoyang369/Python_exercise | 4dc10ec061aa0de2bcfe59c86be115e135fb3fab | 8fbee8854db76d09e2b1f9365ff55198ddabd595 | refs/heads/master | 2020-04-09T23:04:02.327118 | 2019-09-05T14:49:07 | 2019-09-05T14:49:07 | 160,646,057 | 0 | 2 | null | 2019-03-21T14:44:13 | 2018-12-06T08:50:19 | Python | UTF-8 | Python | false | false | 411 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# 生成一个随机的8位密码,要求4个字母和4个数字
import random
import string
spam_num = random.choices("0123456789", k=4)
print(spam_num)
spam_letters = random.sample(string.ascii_letters, 4)
print(spam_letters)
spam = spam_num+spam_letters
print(spam)
spam_num_letters = random.shuffle(spam)
... | [
"372713573@qq.com"
] | 372713573@qq.com |
07ed60f2ac262214e2aa84b74db7f7fd479050c3 | 5cc204e2ecb9a756127e7c71633a1edcdb3e989b | /pylmp/InKim/BGF_mergeBgf.py | 4e3d973e087898e5159c36b8879389f57020e8c7 | [] | no_license | hopefulp/sandbox | 1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8 | 4d26767f287be6abc88dc74374003b04d509bebf | refs/heads/master | 2023-06-27T17:50:16.637851 | 2023-06-15T03:53:39 | 2023-06-15T03:53:39 | 218,209,112 | 1 | 0 | null | 2022-09-13T13:22:34 | 2019-10-29T05:14:02 | C++ | UTF-8 | Python | false | false | 3,415 | py | #!/opt/applic/epd/bin/python
import sys, re, string, getopt, optparse, math, time
from os import popen
option = ""; args = ""; bgf_file = ""; mod_file = ""; out_file = ""
usage = """
Usage: mergeBGF.py -b bgf1_file -c bgf2_file -o out_file
"""
options, args = getopt.getopt(sys.argv[1:], 'hb:c:o:', ['help','bgf1=','b... | [
"hopefulp@gmail.com"
] | hopefulp@gmail.com |
4b33c4af014c182b96c8f0f664c28eb3b5f7d2b0 | 50d6a01aac56215c166d5659196dbcbcbf48c5d2 | /mongo/src/conn.py | 6bbf8572d94f3e70610b34726d5e16f6696228d2 | [] | no_license | HackUPCCrew/MachineLearning | c66541709165382b3c1e15c5d51bc2b068f57948 | 7697dcdf73a8e0a24f8793118612cbbf25653153 | refs/heads/master | 2021-07-14T01:25:59.521438 | 2017-10-17T19:35:45 | 2017-10-17T19:35:45 | 106,882,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | #!/usr/bin/env python3
from pymongo import MongoClient
from pprint import pprint
client = MongoClient("mongodb://34.224.70.221:8080")
db=client.admin
serverStatusResult=db.command("serverStatus")
pprint(serverStatusResult)
| [
"krishnakalyan3@gmail.com"
] | krishnakalyan3@gmail.com |
5c9f74d4f9302e90ca39b1dd80dce303ed88f773 | aedd3aeadfb13eda4489d26ee3d9762598878936 | /leetcode/1281. 整数的各位积和之差.py | f67fa9eb3bba6026574b965d007dd6e0b0c201b1 | [] | no_license | AnJian2020/Leetcode | 657e8225c4d395e8764ef7c672d435bda40584c7 | cded97a52c422f98b55f2b3527a054d23541d5a4 | refs/heads/master | 2023-03-26T16:25:36.136647 | 2021-03-26T07:04:10 | 2021-03-26T07:04:10 | 283,940,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | class Solution:
def subtractProductAndSum(self, n: int) -> int:
numList=list(str(n))
sum=0
product=1
for item in range(len(numList)):
numList[item]=int(numList[item])
sum+=numList[item]
product*=numList[item]
result=product-sum
ret... | [
"xuhao2018@foxmail.com"
] | xuhao2018@foxmail.com |
9b4871a27d15086682164ca0e12198fdb16cab67 | a4344e89e7f467d8bfd3f000f8cced17e36bfd70 | /predict.py | 3a781070190775ab4d7ab85cabf0b6a3f4912cfa | [] | no_license | Schnei1811/InsectClassifier | 5b8d90e21dd23857af82aa26d048591bb70a2cf5 | b8c22a103b7f2099058f4994681a8b2babc147a2 | refs/heads/master | 2023-04-18T08:51:07.753666 | 2021-03-14T03:07:49 | 2021-03-14T03:07:49 | 347,531,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,363 | py | import argparse
import cv2
from glob import glob
from tqdm import tqdm
import numpy as np
import os
import torch, torchvision
import torch.nn as nn
from torchvision import models, transforms
import json
import csv
# Number of classes in the dataset
img_size = 224
class GlobalAvgPool2d(nn.Module):
def forward (sel... | [
"stefan871@gmail.com"
] | stefan871@gmail.com |
36bd450f476d6d992245f98f6ee62e8f0459c471 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 10082 - WERTYU/main.py | f4cf71c10e1e6bc76858ecb5779421a0e7b80c6f | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | '''
Created on Jun 18, 2013
@author: Yubin Bai
All rights reserved.
'''
import time
from multiprocessing.pool import Pool
parallelSolve = False
INF = 1 << 30
def solve(par):
r1 = '`1234567890-' + 'qwertyuiop[' + 'asdfghjhkl' + 'zxcvbnm,.'
r2 = '1234567890-=' + 'wertyuiop[]' + 'sdfghjhkl;' + 'xcvbnm,./'
... | [
"xenron@outlook.com"
] | xenron@outlook.com |
14da669856411f17a43c79936abfc07ed1dc2c1c | d9e0406c275417791024f97abc0600c96910633f | /question/migrations/0005_auto_20210510_1025.py | 549c6daf667227fa8927f506dd141be48c18de81 | [] | no_license | lesage20/vuejs | 46c75e7528ae6e9834f351ed4f814869fae417ac | da0522280dd1e6cf858c90758f38c4da963785a1 | refs/heads/main | 2023-04-19T12:20:54.672778 | 2021-05-12T08:42:34 | 2021-05-12T08:42:34 | 366,649,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 3.1.7 on 2021-05-10 10:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('question', '0004_question_titre'),
]
operations = [
migrations.AlterField(
model_name='question',
name='prop',
... | [
"angezanou00@gmail.com"
] | angezanou00@gmail.com |
b6b1f4eed9917b484d8c00356460fcc6a66f2a3b | 04e080a00f37a3501c5060380d65c5a6cd669d90 | /thonnycontrib/m5stack/esp8266_api_stubs/uhashlib.py | 02e34e1294866de8ac040af1dc3d2d19287c2acc | [
"MIT"
] | permissive | thonny/thonny-m5stack | 473a2876e72b88d283d8b9d64189028ef7fea111 | a502579ad5e264342ae0bc2c554c78527053693b | refs/heads/master | 2020-04-20T14:57:15.605699 | 2019-11-18T22:28:36 | 2019-11-18T22:28:36 | 168,914,658 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
class sha1:
''
def digest():
pass
def update():
pass
class sha256:
''
def digest():
pass
def update():
pass
| [
"aivar.annamaa@gmail.com"
] | aivar.annamaa@gmail.com |
199dc7283ca9dfcf42146c61abe183d9955ad52c | 84dbd7dfdc2c63433b2088dd3fe711a07cf8b3b8 | /week13/day1/daily/phonedir/views.py | e34357f2c7c7e8e170399766febe68bd94355371 | [] | no_license | jfrance00/di-exercises | 623bebeddd3ff3ed062e1ad5097f15f7ed002362 | bbc97714c26b41ed76dfed35df5780e3aa482b5e | refs/heads/master | 2022-11-27T23:31:59.742231 | 2020-07-29T12:20:01 | 2020-07-29T12:20:01 | 257,882,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import flask
import wtforms as wtf
from . import forms, models
from . import app, db
@app.route('/', methods=['GET', 'POST'])
def index():
form = forms.SearchNameOrNumber()
return flask.render_template('index.html', form=form)
@app.route('/add-input', methods=['GET', 'POST'])
def add_input():
form = for... | [
"jfrance00@gmail.com"
] | jfrance00@gmail.com |
f8eb219a525fd3d56b4f5fae1875cccf536032f1 | ee7ca0fed1620c3426fdfd22e5a82bba2a515983 | /dsn_purchase_order/models/purchase.py | 843a5a966c61fcaa6cf586e164ee2d06c78cc085 | [] | no_license | disna-sistemas/odoo | 318d0e38d9b43bea56978fe85fc72850d597f033 | 0826091462cc10c9edc3cc29ea59c417f8e66c33 | refs/heads/8.0 | 2022-03-08T19:01:21.162717 | 2022-02-15T13:06:26 | 2022-02-15T13:06:26 | 99,210,381 | 0 | 5 | null | 2019-07-24T08:49:58 | 2017-08-03T08:36:55 | Python | UTF-8 | Python | false | false | 5,912 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2012 OpenERP SA (<http://openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"sistemas@disna.com"
] | sistemas@disna.com |
b93664d963b69f1fac7d321eef6d9a3d5390debd | ad357cfbec64afb8f4cc4043b212996768f9755c | /api/barriers/migrations/0038_auto_20200224_1622.py | 4bd3709007de448df0b1ecfc265d0b5a0b6953ae | [
"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 | 968 | py | # Generated by Django 2.2.8 on 2020-02-24 16:22
from django.db import migrations
def populate_archived_reason(apps, schema_editor):
BarrierInstance = apps.get_model("barriers", "BarrierInstance")
BarrierInstance.objects.filter(
archived=True,
archived_reason__isnull=True,
).update(archive... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
d38479e4f3d5d36e535a5c308876ea91eff7adfb | aac11cb909c13b0f24e90e18bca098d0f52c048d | /makewiki/settings.py | e58696ce2984e1f9b308be7eea134585c125558a | [
"MIT"
] | permissive | LukazDane/makewiki_v2 | 7add2002bc9c9813a66461305b56b3b92ffe3c36 | d71790c99951ed47d202e5a00d1eb7480b8552bd | refs/heads/master | 2022-04-30T00:08:06.716424 | 2020-01-08T01:11:26 | 2020-01-08T01:11:26 | 221,078,482 | 0 | 0 | MIT | 2022-04-22T22:44:16 | 2019-11-11T22:04:27 | Python | UTF-8 | Python | false | false | 4,100 | py | """
Django settings for makewiki project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"deandrevidal@aol.com"
] | deandrevidal@aol.com |
51eb6471c303f10aa5f7d41241c0f542184c8c79 | 5d0e76e3c741adc120ce753bacda1e723550f7ac | /724. Find Pivot Index.py | d578d962c4b85d3f422ade4922f5502c890f4700 | [] | no_license | GoldF15h/LeetCode | d8d9d5dedca3cce59f068b94e2edf986424efdbf | 56fcbede20e12473eaf09c9d170c86fdfefe7f87 | refs/heads/main | 2023-08-25T12:31:08.436640 | 2021-10-20T04:36:23 | 2021-10-20T04:36:23 | 392,336,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | class Solution:
def pivotIndex(self, nums: List[int]) -> int:
right_sum = sum(nums)
left_sum = 0
prev = 0
for i in range(len(nums)) :
left_sum += prev
prev = nums[i]
right_sum -= nums[i]
if left_sum == right_sum :
return... | [
"todsapon.singsunjit@gmail.com"
] | todsapon.singsunjit@gmail.com |
e6361dfa82714822273013df5ab2d96aacb6a6a4 | f366c19ce822a3e8f3cd5f670b25c6fa54322d0b | /python_udemy/introducao-python/iterando-strings-while.py | 7f9c554e14042ea18c66b656f267db6dbad27279 | [] | no_license | marcelomatz/py-studiesRepo | b83875a366010c9a60bc15d853fcf81c31cee260 | ce99014228f00d8c73cc548dd6c4d5fedc3f1b68 | refs/heads/main | 2023-09-05T00:03:47.712289 | 2021-06-15T09:43:27 | 2021-06-15T09:43:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # iterar é passar por cada um dos elementos de uma string
# se tem índice é iterável
frase = 'o rato roeu a roupa do rei de roma'
tamanho_frase = len(frase)
contador = 0
nova_string = ''
while contador < tamanho_frase:
letra = frase[contador]
if letra == 'r':
nova_string += 'R'
else:
nova_... | [
"agenciahipster@gmail.com"
] | agenciahipster@gmail.com |
dc910c5e544db2555849a7d275f3d49ddc8c3178 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/nckkem001/question1.py | db30afcae4f531091f93b33fe973fe4a0f450d70 | [] | 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 | 1,440 | py | """Program to analyse student marks from source file and determine which students
are advised to consult an advisor.
Kemeshan Naicker
11 May 2014"""
#Prompt user for name of source file.
file = input("Enter the marks filename:\n")
#Open file for processing
txtfile = open(file, "r")
#Read file into a str... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
ddb61c4bdd3fe3a64465df7dd8e17bc6b3404d57 | 0a346b0601b32907902206a0e46ea55be64390b4 | /style_trans/neural_style.py | 8261b661b74a941d3560532e80ad4643e2310592 | [] | no_license | invoker4zoo/tensorflow_project | cf1f0fc2d7772a4da4004c1f0c14c5be8fcb909e | 847e511f8fa4634181b00055a01c75b9b46c5396 | refs/heads/master | 2020-03-11T18:06:43.514220 | 2018-04-19T08:53:42 | 2018-04-19T08:53:42 | 130,167,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,054 | py | # coding=utf-8
"""
@ license: Apache Licence
@ github: invoker4zoo
@ author: invoker/cc
@ wechat: whatshowlove
@ software: PyCharm
@ file: neural_style
@ time: 18-4-10
"""
import tensorflow as tf
import reader
import _reader
from preprocessing import preprocessing_factory
from nets import nets_factory
import losses
im... | [
"412214410@qq.com"
] | 412214410@qq.com |
70ddfb5469533e9612ff63f5df784bca6e0d927f | 27a31ec197f5603fe6fb438171a78bb381bf43b1 | /examples/cifar10_cnn.py | f296605e6cfb4b38459aefcfd189cdd36da0de7b | [
"MIT"
] | permissive | seba-1511/gsoc15-demo | 42152c335e6eb8e91479dee4ab0db5376ba55ec4 | 7fa542f33fdb39d73e2b11318c046ecf35fb9bcf | refs/heads/master | 2021-01-18T14:34:28.686048 | 2015-04-20T02:26:10 | 2015-04-20T02:26:10 | 33,458,769 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.optimizers import SGD, Adadelta, Adagrad
from ke... | [
"seba-1511@hotmail.com"
] | seba-1511@hotmail.com |
b0343599369edefd5045f582b653e85406f9da25 | 5ce2e7ac259fa4482a9b5cb668346cbf14bc9a2d | /src/plt_roc.py | 223fee4ae7c5666b1d79a3ea41deda5ae39b1a20 | [] | no_license | Sapphirine/Analysis-on-Children-Learning-Performance | 708e65d1a0330fec6c873a5b0a96b9198b9fe7a4 | da522fc9019238c8cc332045b40541578ffc6ba0 | refs/heads/master | 2020-11-26T17:44:55.074527 | 2019-12-20T00:55:30 | 2019-12-20T00:55:30 | 229,163,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | import os
from src.model import model
def clear_temp():
for i in range(1, 4):
folder_name = 'result_' + str(i)
file_list = [f for f in os.listdir("static/temp/" + folder_name + '/') if f.endswith(".png")]
for f in file_list:
os.remove("static/temp/" + folder_name + '/'... | [
"noreply@github.com"
] | Sapphirine.noreply@github.com |
ee58f494d5908b5a89eb8df1330e2d4deba9875d | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /gbd_2019/shared_code/central_comp/cod/codem/codem/data/query.py | 1475c6b410aa61cf609740f06c796d35e5881a06 | [] | no_license | Nermin-Ghith/ihme-modeling | 9c8ec56b249cb0c417361102724fef1e6e0bcebd | 746ea5fb76a9c049c37a8c15aa089c041a90a6d5 | refs/heads/main | 2023-04-13T00:26:55.363986 | 2020-10-28T19:51:51 | 2020-10-28T19:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,621 | py | """
Functions to query the causes of death database and format and process
all of the CODEm input data. Needs helper functions from the demographics, shared,
and covariates modules.
"""
import pandas as pd
import numpy as np
import sqlalchemy as sql
import logging
import pymysql
import re
import codem.data.queryStrin... | [
"cheth@uw.edu"
] | cheth@uw.edu |
75191d15b2725b2857af15a70d45006484ef4b0a | 8890ff61262ff98369464721c165d53aa9febe85 | /ironio/iron_worker.py | 95d9b6a3ab577d63f149cf7dd9502ca60702b892 | [
"Apache-2.0"
] | permissive | Mause/tumblr_conn | 09e91bb86e6310ac3f9b0be292967283990558ea | e0ac78947355e41a8432a2a3e12fb86fb28a4c72 | refs/heads/master | 2022-06-15T05:30:27.737676 | 2013-04-29T20:19:57 | 2013-04-29T20:19:57 | 9,258,639 | 0 | 0 | null | 2022-05-17T03:16:49 | 2013-04-06T10:52:39 | JavaScript | UTF-8 | Python | false | false | 16,518 | py | import os
import mimetypes
import zipfile
from dateutil.tz import *
from . import iron_core
try:
import json
except ImportError:
import simplejson as json
def file_exists(file):
"""Check if a file exists."""
if not os.path.exists(file):
return False
try:
open(file)
except IOErr... | [
"jack.thatch@gmail.com"
] | jack.thatch@gmail.com |
70184ab14338c2a28726a4e83e4412be6ed0cadb | 6df76f8a6fcdf444c3863e3788a2f4b2c539c22c | /django code/p41/p41/urls.py | 3a7f92a6e6a622c7d431852c4a84ab90185c7bcf | [] | no_license | basantbhandari/DjangoProjectsAsDocs | 068e4a704fade4a97e6c40353edb0a4299bd9678 | 594dbb560391eaf94bb6db6dc07702d127010b88 | refs/heads/master | 2022-12-18T22:33:23.902228 | 2020-09-22T13:11:01 | 2020-09-22T13:11:01 | 297,651,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """p41 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"36443209+basantbhandari@users.noreply.github.com"
] | 36443209+basantbhandari@users.noreply.github.com |
2435312c8826faf2062cab3201f18f92c06d0d66 | 1561c6b62982c33c2b9b028af1369832d7c190c3 | /synaptor/seg_utils/relabel.py | 91343bf2a92925a627505864733973550b225989 | [
"MIT"
] | permissive | nkemnitz/Synaptor | b60f33e51ed045e7cdaf18465af3d80edaca1cf3 | 40618786d5b762eb3877ecac49ff310f3e6f892d | refs/heads/master | 2020-05-06T15:43:38.584607 | 2019-04-07T17:31:57 | 2019-04-07T17:31:57 | 180,205,457 | 1 | 0 | NOASSERTION | 2019-04-08T18:05:03 | 2019-04-08T18:05:03 | null | UTF-8 | Python | false | false | 2,654 | py | import numpy as np
from . import describe
from . import _relabel
def relabel_data(d, mapping, copy=True):
"""
Relabel data according to a mapping dict.
Modify the entries of :param:d according to a :param:mapping dictionary.
If a value within :param:d doesn't match a key for :param:mapping,
leav... | [
"nturner.stanford@gmail.com"
] | nturner.stanford@gmail.com |
2f847646f43a261924fc84f50fb8e1f46ebf1b26 | 5b01236940cb3b1bb2e987797a0e07868133a85b | /app/error.py | bd23e12d9065af85513cc0e57d88c9b0ff65e2c4 | [] | no_license | dicksonkariuki/Watchlist | 47cf68c45d1ecd810c986a12cb8934ab8453e09c | 2089a577ff6b8bf07d14232658ce9671b6ebb899 | refs/heads/master | 2020-08-08T19:03:24.766702 | 2019-10-17T07:28:38 | 2019-10-17T07:28:38 | 213,634,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from flask import render_template
from app import app
@app.errorhandler(404)
def four_Ow_four(error):
"""
Function to render the 404 page
"""
return render_template ('fourOwfour.html'),404 | [
"dicksonkariuki4@gmail.com"
] | dicksonkariuki4@gmail.com |
d9b3012794241a6b430ddc7807eaaf0d74e8c56f | d8ea695288010f7496c8661bfc3a7675477dcba0 | /examples/raspberry_pi/relay.py | 01f0a68e794f40467c91592b842f2802038c96ef | [] | no_license | dabolau/demo | de9c593dabca26144ef8098c437369492797edd6 | 212f4c2ec6b49baef0ef5fcdee6f178fa21c5713 | refs/heads/master | 2021-01-17T16:09:48.381642 | 2018-10-08T10:12:45 | 2018-10-08T10:12:45 | 90,009,236 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import RPi.GPIO as GPIO
import time
def relay(i=0):
# 设置针脚模式为(BOARD)
GPIO.setmode(GPIO.BOARD)
# 禁用警告
GPIO.setwarnings(False)
# 设置针脚
PIN = 40
# 设置针脚为输出模式
GPIO.setup(PIN, GPIO.OUT)
# 设置开关(0/1),0表示关,1表示开。
INT = i
# 开(闭合)
if INT == 1:
GPIO.output(PIN, GPIO.HIGH) #... | [
"dabolau@qq.com"
] | dabolau@qq.com |
c6eb011206a6832c3dd908dc6cb075ac850cb450 | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/binary-tree-right-side-view.py | c8b32518fe78924faa153d9767c0efaaf96c2cc5 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 1,306 | py | # Time: O(n)
# Space: O(h)
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
# @param root, a tree node
# @return a list of integers
def rightSideView(self, root):
result = []
... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
f319c545c30418259e6008aa0ce2bf88c2d3a7bb | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nntyndal.py | bdbf9a039c90b7737706e72fb7e0f0869ab7c93f | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 43 | py | ii = [('CrokTPS.py', 1), ('WadeJEB.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
be894f7257499ff10f4f259ce795d3033f32e04e | b1f748d761751e89f62cf5b8a2b13adac5bf3a29 | /metermaster/urls.py | dcdb41d64262561d4761bce0daa60a73a5e3078d | [] | no_license | sangeeth-subramoniam/buildingmanagementheroku | 7b77be693fa73dbd2dff9c816bf50daf1e501029 | db26de549f7088d2ff80a303abeeaaa548d43e0b | refs/heads/master | 2023-07-08T13:46:06.384694 | 2021-08-10T06:50:14 | 2021-08-10T06:50:14 | 392,492,925 | 0 | 0 | null | 2021-08-04T02:46:57 | 2021-08-04T00:14:10 | Python | UTF-8 | Python | false | false | 409 | py | from django.urls import path,include
from . import views
app_name = 'metermaster'
urlpatterns = [
path('', views.home , name = "home"),
path('metermaster_update_form/<int:pk>', views.updatemeterForm , name = 'updateMeterForm'),
path('metermaster_delete_form/<int:pk>', views.deletemeterForm , name = 'delete... | [
"s-sangeeth-k@sicis.co.jp"
] | s-sangeeth-k@sicis.co.jp |
1999c84509f04a543cf1c61c698ae75b971dd835 | f3ed1631f5cfb10ec3c03974a04f73e1e8dd5829 | /handofcats/middlewares/__init__.py | 2a4c39ee259addb6db2d9c2c2ba965c6c9a45062 | [] | no_license | tell-k/handofcats | 9839e20eb3731890a16dcb6d864b7fc13ee80032 | 135e9abac83db318a7b07337191a1d4f699f7ef2 | refs/heads/master | 2020-12-25T22:29:35.495296 | 2016-01-10T00:29:30 | 2016-01-10T00:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | # -*- coding:utf-8 -*-
from functools import wraps
class MiddlewareApplicator(object):
def __init__(self, fns):
self.middlewares = [middlewarefy(fn) for fn in fns]
def register(self, fn):
self.middlewares.append(middlewarefy(fn))
def __call__(self, fn):
def call(*args, **kwargs):... | [
"podhmo+altair@beproud.jp"
] | podhmo+altair@beproud.jp |
3588b3df70f9fbd1b7167ef3bfa267d162441634 | a487691662edb19792007571fc084e68f180af0a | /2020/mapreduceInPython/mapper.py | d3bd22bddd279da6ca99da7d3585b8bd1619f2ba | [] | no_license | eiahb3838ya/PHBS_BigData_2019 | a74231817b1114079961c7d4dba8b7adc2794cad | 91b71d229188cf750e4acf093615bfba5e27ca96 | refs/heads/master | 2021-07-15T06:23:43.505842 | 2020-11-12T03:32:29 | 2020-11-12T03:32:29 | 225,119,161 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 4 19:31:24 2020
@author: eiahb
"""
import sys
from multiprocessing import Pool
import time
def main():
# 读入每行input
for line in sys.stdin:
aRecord = line.split(",")
stockTimeStamp = "{}_{}".format(aRecord[0], aRecord[1][:12])
... | [
"eiahb3838ya@gmail.com"
] | eiahb3838ya@gmail.com |
c4a51811da26e90ea2d38213de6bbed6a36e762f | fd60c2370bf5fb2355c4b30a30ad5ce9c62bc10d | /orc/arp.py | 6e98cd52efe755a4ea35da057dff2e7af733f3f8 | [] | no_license | hecanjog/hcj.py | 08e43edf62330e1b9e0448edf549c7d18e2e9699 | e42538cd48499bb9e9c11321b2f9db56f15486b4 | refs/heads/master | 2021-01-21T04:54:46.693980 | 2020-01-24T02:03:06 | 2020-01-24T02:03:06 | 19,010,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | from pippi import dsp
from pippi import tune
from hcj import fx
midi = {'pc': 3}
def play(ctl):
param = ctl.get('param')
lpd = ctl.get('midi').get('pc')
lpd.setOffset(111)
key = 'g'
#bd = dsp.read('/home/hecanjog/sounds/drums/Tinyrim2.wav').data
#bd = dsp.read('/home/hecanjog/sounds/drums/... | [
"erik@hecanjog.com"
] | erik@hecanjog.com |
ba436d0fe6e4b79670c1531daca1fcb18e165398 | 48fcd5b9203c5f34dcad9483259c0f3d46f5d48b | /codeacademy-python3/base_exponent.py | 17a5f5046f4816dd6ad60e798125ea7c861562f1 | [] | no_license | ssaulrj/codes-python | 438dd691815d0a688d264928eb07187ba30c2138 | 04b75b001de60a5e202ad373f3379864753ce203 | refs/heads/master | 2022-11-17T11:40:18.883096 | 2020-07-06T00:57:58 | 2020-07-06T00:57:58 | 234,440,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # Write your large_power function here:
def large_power(base, exponent):
if base**exponent > 5000:
return True
else:
return False
# Uncomment these function calls to test your large_power function:
print(large_power(2, 13))
# should print True
print(large_power(2, 12))
# should print False
| [
"noreply@github.com"
] | ssaulrj.noreply@github.com |
1032cddc93ebd229103c6e5a1e6c3da61571fa57 | 4c6cb7019d06a1c0c588bb98fb359a536c8ae8ea | /04-03/todolist/buy/models.py | 05fdbd3c8532d624dc018c762eb55337dd07c3ec | [] | no_license | hanifmisbah/tugas_bersama | 2be54f4b386a470b04ca29aa293246985b44707a | 4bd4e195b56090ca9256b9e319bb34b92a86d032 | refs/heads/master | 2022-12-19T03:15:33.085665 | 2020-09-10T09:07:56 | 2020-09-10T09:07:56 | 294,304,050 | 0 | 0 | null | 2020-09-10T04:37:28 | 2020-09-10T04:37:28 | null | UTF-8 | Python | false | false | 229 | py | from django.db import models
# Create your models here.
class Buy(models.Model):
name = models.TextField(default='')
brg = models.TextField(default='')
jmlh = models.TextField(default='')
price = models.TextField(default='') | [
"hanifmisbah97@gmail.com"
] | hanifmisbah97@gmail.com |
d066a7f11637683077d5744bdde78bc3b66d42c3 | 53ba0b6f172abcade631ae1f52852c400302559e | /python_developer_tools/cv/utils/opencv_utils/视频操作/__init__.py | 86f7689b1178eccfb5e86f3d6a67938bf93a95a2 | [
"Apache-2.0"
] | permissive | sssssshf/python_developer_tools | f97c64ee0aa0a7e9d31d173192805771c83abb7f | 44d2e67a2e2495a12d6b32da12c76cf0010ac7ea | refs/heads/main | 2023-08-19T02:44:53.536200 | 2021-10-13T02:10:19 | 2021-10-13T02:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | # !/usr/bin/env python
# -- coding: utf-8 --
# @Author zengxiaohui
# Datatime:9/14/2021 4:06 PM
# @File:__init__.py
| [
"zengxh@chint.com"
] | zengxh@chint.com |
d6a4beafdd972f88c046bce2fb861e95ccfb9b20 | ea767918d1391d950714d3fafabf65330bade863 | /odin/bay/distributions/quantized.py | bf60b13f432ab1ab8ac1ca5af1b42c52e44d16aa | [
"MIT"
] | permissive | tirkarthi/odin-ai | f5bb33d02047025029891e1282b9bd389eb4eb07 | 7900bef82ad8801d0c73880330d5b24d9ff7cd06 | refs/heads/master | 2023-06-02T20:15:11.233665 | 2020-09-25T09:57:28 | 2020-09-25T09:57:28 | 298,744,248 | 0 | 0 | MIT | 2020-09-26T05:29:11 | 2020-09-26T05:29:10 | null | UTF-8 | Python | false | false | 1,797 | py | from __future__ import absolute_import, division, print_function
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow_probability.python.bijectors import exp as exp_bijector
from tensorflow_probability.python.distributions import (
NegativeBinomial, Normal, QuantizedDistribution, TransformedDistrib... | [
"nickartin13@gmail.com"
] | nickartin13@gmail.com |
c6281301f2104fda3c8e84f6c963abd6f8f8925d | fb84fa89744e25a6842e5a22cc9aa35f17cb9c79 | /pyquant/marketdata/spot.py | 845f68291cb39b90413809921767447a73b176ad | [] | no_license | masa4u/pyquant-xmlrpc | dbcf92d257cb89d033f9c7811799126412bca9f8 | 54565f0e71fa819a69ba3e3b92a012dbf5a8046f | refs/heads/master | 2016-09-06T10:47:01.093006 | 2015-03-30T02:00:16 | 2015-03-30T02:00:16 | 30,795,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from pyquant.marketdata.marketdata import MarketDataType
from pyquant.marketdata.single import MarketDataSingle
class MarketDataSpot(MarketDataSingle):
def __init__(self):
super(MarketDataSpot, self).__init__()
print MarketDataSpot().data_type
print MarketDataSpot().value
if __name__ == '__main__':
... | [
"masa4u@gmail.com"
] | masa4u@gmail.com |
37919b373e29fe85008749e2a8c1d126d697b1f8 | 6c677098c78b3f410019ac26f116cd8539949d35 | /utils/money.py | b1e72ef7c897fae87de3c441e35f2689b539d670 | [
"MIT"
] | permissive | Pythonian/bsawf | eb05dcf7eeb3fab10dad269f9018fc3aa56c967e | 3e422a81cfb1b157119473c20b94a9a01f8b9672 | refs/heads/master | 2023-05-27T20:32:25.965703 | 2022-03-16T14:57:26 | 2022-03-16T14:57:26 | 253,907,876 | 0 | 0 | MIT | 2023-05-02T20:53:12 | 2020-04-07T20:44:53 | Python | UTF-8 | Python | false | false | 375 | py | def cents_to_dollars(cents):
"""
Convert cents to dollars.
:param cents: Amount in cents
:type cents: int
:return: float
"""
return round(cents / 100.0, 2)
def dollars_to_cents(dollars):
"""
Convert dollars to cents.
:param dollars: Amount in dollars
:type dollars: float
... | [
"prontomaster@gmail.com"
] | prontomaster@gmail.com |
9aaa01d7f2436c3f20c0bfbd0c9d297f697493b0 | 8f68d714d5ba6bd27e65238557c7daa17eb814a8 | /15-project/python_ipify/tests/__init__.py | 51fa4088f0abfa850215c3df3f51eb616df1292e | [
"MIT"
] | permissive | acckcc/python-training-course | 28834fe6ed8794f88a38f038fd64d9d224e685bb | 804e457a8e7ac9dee75a6adfe25b32edf7ba6024 | refs/heads/master | 2022-04-19T17:48:46.699806 | 2020-04-16T15:04:53 | 2020-04-16T15:04:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | # -*- coding: utf-8 -*-
"""Unit test package for python_ipify."""
| [
"zj0512@gmail.com"
] | zj0512@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.