blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc6de5849f5010258f2880ebe8fef769e96a8279 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2743/60761/301536.py | 7c89f428059979e160280d69c80bbd0ed223870d | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | def addcandies(result,start,end,loads):
temp=[]
result[start]+=1
if end in loads[start]:
return result
else:
pre=start
temp+=loads[start]
while(temp):
current=temp.pop(0)
if(end in loads[current]):
result[current]+=1
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9684c6bc594e5dd7038ed2639c9c98d81dba4bf4 | e762c4cca4f7452d8154583186cf05e86ae9e61b | /src/acc/commands.py | ee721474698c17bc279e25d05ed0c68b5a56c6a8 | [] | no_license | abilian/abilian-cloud-controller | 20032582a55e56076adf4ddefaa732d0d81f531b | f5459c6006e32c1824140c1868b3c58d7b358486 | refs/heads/main | 2023-02-25T06:00:07.969914 | 2021-02-04T17:40:05 | 2021-02-04T17:40:05 | 335,912,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,753 | py | from .config import HOME
from .model import Instance, session, all_instances, get_instance, Base, engine
from .model import RUNNING, READY, DESTROYED
from .util import system
from . import server
from .processes import supervisor
from .nginx import setup_nginx
#
# Commands
#
def cmd_clean():
"""Drop database and ... | [
"sf@fermigier.com"
] | sf@fermigier.com |
8a6facbbf03ddf4656e380bcbd177a24e6c985e0 | 1d2a303ba179e0e6f357ae8555e4f5706f3b0eba | /musterloesungen/blatt03/minitwitter/server/usermodel.py | 95a802b1130ad8819557550a28af76e86492b6dc | [] | no_license | tthelen/webtech18 | 74f10e8ac47cd9a543c89702fc4aaa893d7faf17 | 3a2437253dc117cf69e097e25034c4a61b7046b3 | refs/heads/master | 2020-04-02T07:29:46.959318 | 2019-01-30T08:59:40 | 2019-01-30T08:59:40 | 154,199,140 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | from server.log import log
import sqlite3 as sqlite
import re
class UserError(Exception):
"""Error handling user data."""
def __init__(self, msg=''):
self.msg = msg
class Users:
"""The User collection."""
def __init__(self, db_connection=None):
self.username_regex = r"^[^\s:]+$" ... | [
"tt@tobiasthelen.de"
] | tt@tobiasthelen.de |
ed4c71a5f760a5e294998bf770d97e70d3225cb3 | df2e16aaccc0c81c57f7174983e831ee683fbcd8 | /ebook/spiders/trash/ctext_booklist_spider.py | 62392f504395439a23e934a54df224e7874a4ab4 | [] | no_license | wikty/epub_old | 0117bd72cd4d45e4bd297bfed229ba481adf9caf | 82e78d62e2281cb1b58083e9df3a4ad48dbc7e88 | refs/heads/master | 2021-06-11T10:21:01.990550 | 2017-02-24T04:27:58 | 2017-02-24T04:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,345 | py | import codecs, json, re
import scrapy
from w3lib.html import remove_tags, remove_tags_with_content
from scrapy.spidermiddlewares.httperror import HttpError
from twisted.internet.error import DNSLookupError
from twisted.internet.error import TimeoutError, TCPTimedOutError
from ebook import items
from ebook.item_loaders... | [
"xiaowenbin_999@163.com"
] | xiaowenbin_999@163.com |
99d65195926ab88f85cb5708ef3b6c90f312fe8d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_precipitates.py | 807d8598f902630513326326e4090dedfff4eae1 | [
"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 | 283 | py |
from xai.brain.wordbase.adjectives._precipitate import _PRECIPITATE
#calss header
class _PRECIPITATES(_PRECIPITATE, ):
def __init__(self,):
_PRECIPITATE.__init__(self)
self.name = "PRECIPITATES"
self.specie = 'adjectives'
self.basic = "precipitate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f238adab543203db1ee5d41ab5a94b2f19919e25 | dfc0a257bdf04078fb3dc965e38f8e87a2f9d814 | /movie_api/api/admin.py | cf47339c24cf762b4dfeb1ce74816208d78a0915 | [] | no_license | PawlikMateusz/movie_rest_api | af666fe45f9786ef295d1f515098bdc99114b28c | 29fd7f4c466783368ccc0d673f326001a4d8f682 | refs/heads/master | 2022-12-13T14:57:41.596242 | 2019-03-06T09:19:41 | 2019-03-06T09:19:41 | 173,728,844 | 0 | 0 | null | 2022-12-08T01:40:17 | 2019-03-04T11:03:47 | Python | UTF-8 | Python | false | false | 155 | py | from django.contrib import admin
# Register your models here.
from .models import Movie, Comment
admin.site.register(Movie)
admin.site.register(Comment)
| [
"mateusz.pawlik@outlook.com"
] | mateusz.pawlik@outlook.com |
5a1c2deb29b4fe97e7a3f9877bf2e8245ca1d124 | 7367c04c0914a5db630aaf111e836fc3796a4354 | /setup.py | ea419f37f10a7e1099d8848842408d56d6166e14 | [] | no_license | mitar/pyjsparser | bf49a38edab6b8e0237550ae7bb3394aff38e403 | 39b468e9838818b5719cb3d961ce4b0017a227e3 | refs/heads/master | 2021-01-25T07:54:36.380233 | 2017-05-05T11:57:05 | 2017-05-05T11:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from distutils.core import setup
setup(
name='pyjsparser',
version='2.4.5',
packages=['pyjsparser'],
url='https://github.com/PiotrDabkowski/pyjsparser',
install_requires = [],
license='MIT',
author='Piotr Dabkowski',
author_email='piodrus@gmail.com',
description='Fast javascript par... | [
"piodrus@gmail.com"
] | piodrus@gmail.com |
07fdcb1ae755989e6fa2c908b227cf1a9cca89ae | 024b3ea3747442d7c5da870a646c31ac5284b321 | /portfolio_backend_project/wsgi.py | 11563f2643e2bae00aede8580b8bc80ed7fa5d3d | [] | no_license | corey-marchand/coreys-portfolio-backend | 4e719a4ae015f134163b40ad84bfd9928fdb1e46 | 32aa7aa99cec350767bbc779e4333a98ca2f2e04 | refs/heads/master | 2022-12-26T02:04:57.697671 | 2020-10-09T02:52:39 | 2020-10-09T02:52:39 | 299,845,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for portfolio_backend_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"corey.marchand@me.com"
] | corey.marchand@me.com |
e7e8dc813aa6985a737eef14f1e997ecf83cb9c6 | d429444c80a64e79cfa28ba80c60604f31b55929 | /data_analysis_dummy_coding.py | 43e27481382483cc737780a96407f4d29059d270 | [] | no_license | hevalenc/Pandas-with-Python-for-Data-Science | 195d2b36bd02a463c51ab69e0e238d19f7959991 | 0ff8f11334a6bb3f7d6f4bbe2cd4c2aae975ad46 | refs/heads/main | 2023-07-15T00:02:25.409236 | 2021-08-30T23:36:52 | 2021-08-30T23:36:52 | 401,514,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import pandas as pd
data = pd.read_csv('https://raw.githubusercontent.com/justmarkham/pandas-videos/master/data/titanic_train.csv')
print(data.head())
print('\nNome das colunas')
print(data.columns)
print('\nMapeando uma coluna')
print(data.Sex.map({'male':1, 'female':0}))
data['isMale'] = data.Sex.map({'male':1, '... | [
"heitorvalenca7@gmail.com"
] | heitorvalenca7@gmail.com |
2dd000bf654b7d16b3bfd8528e0a86fc7dd9b4c6 | 4efd4fe7e848dc5973e350516ebfb57be015f5b6 | /inline_media/tests/settings.py | c24b061b40b1f0c27202c0d6a3a40195b443a105 | [
"BSD-2-Clause",
"CC-BY-2.5"
] | permissive | MechanisM/django-inline-media | 468648eb7a8b909a4204fc3c05788a73988a7855 | e3ef3def173bcc9ac540123afe467894b635db85 | refs/heads/master | 2021-01-19T08:23:07.228198 | 2012-02-22T18:09:10 | 2012-02-22T18:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | #-*- coding: utf-8 -*-
import os
import tempfile
from django.core.files.storage import FileSystemStorage
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME'... | [
"danirus@eml.cc"
] | danirus@eml.cc |
afb27d447e342ea7a8f701d0feb2f8b7658bba1d | 6bae32e5ad8f198e31d6da864b0a9f44d54c5ec6 | /src/monteur/setuptools/interpreted_loader.py | 9ea3f2691a7c4e71601abf39a252341976c666e3 | [] | no_license | thefunny42/Zeam-Setup | 42dcce867a947fb82e6b17cebd47f92285187a9e | 0c27945b87b0150ee462b493cf646111822e8867 | refs/heads/master | 2020-04-15T15:37:40.153075 | 2013-03-15T10:42:36 | 2013-03-15T10:42:36 | 445,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,362 | py |
import os
import logging
from monteur.configuration import Configuration
from monteur.python import PythonInterpreter
from monteur.setuptools.autotools import create_autotools
from monteur.setuptools import unsetuptoolize
from monteur.version import Version, Requirements
logger = logging.getLogger('monteur')
class... | [
"thefunny@gmail.com"
] | thefunny@gmail.com |
f6b030db80387a4a9051418bd8331e26cbac2940 | 268568ff2d483f39de78a5b29d941ce499cace33 | /spyder/plugins/explorer/__init__.py | 94415a2fda60499c49286fb1d1db7b99d3a0ad95 | [
"MIT"
] | permissive | MarkMoretto/spyder-master | 61e7f8007144562978da9c6adecaa3022758c56f | 5f8c64edc0bbd203a97607950b53a9fcec9d2f0b | refs/heads/master | 2023-01-10T16:34:37.825886 | 2020-08-07T19:07:56 | 2020-08-07T19:07:56 | 285,901,914 | 2 | 1 | MIT | 2022-12-20T13:46:41 | 2020-08-07T19:03:37 | Python | UTF-8 | Python | false | false | 251 | py | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""
spyder.plugins.explorer
=======================
Files and Directories Explorer Plugin.
"""
| [
"mark.moretto@forcepoint.com"
] | mark.moretto@forcepoint.com |
d59ca270ee74a4d7fb45b97c972642a3e61588f0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04031/s952299381.py | fd1c91ffaa7f4345851e333dd2dcfc9b9e6b9d35 | [] | 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 | 217 | py | N=int(input())
*A,=map(int,input().split())
mx=max(A)
mn=min(A)
if len(set(A))==1:
print(0)
else:
ans=float('inf')
for i in range(mn,mx):
ans=min(ans, sum([(k-i)**2 for k in A]))
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eb2436eeb86925e98aef7b4e5fe55d4648506913 | 2a89520f16fe8ce772f0a2edeae9840b2ec6da28 | /src/pathways/flatten_emplid_course_csv.py | 9b1ee772e7a5140ce51bfec87aa73b31cb3a50d8 | [] | no_license | paepcke/pathways | 54c0bba369d15888bcc978f053b513db5197ebd9 | 822c6ba8ab709e742a254bf34c5c4b8e79daa15e | refs/heads/master | 2020-03-25T22:01:26.330014 | 2019-09-14T22:18:21 | 2019-09-14T22:18:21 | 144,201,584 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | #!/usr/bin/env python
'''
Created on Aug 9, 2018
@author: paepcke
'''
import csv
import os
import sys
class EmplidCourseFlattener(object):
def __init__(self, infile, outfile):
with open(outfile, 'w') as outFd:
with open(infile, 'r') as inFd:
reader = csv.reader(inFd)
... | [
"paepcke@cs.stanford.edu"
] | paepcke@cs.stanford.edu |
e40379a5c31cf1b1e9e0fd86988815559e960381 | 221b92fb9d5d2ba0c62f8df3d3799737ac938fdd | /asimplecrudproject/settings.py | 07128e104065d537e0872500dcc179b2b8213c02 | [] | no_license | johnbangla/asimplecrudforlearning | 59d5f877b65d83002a34ec309d3b588262765949 | 99c0e85e98f919672702d2af3e43be0abcb25fae | refs/heads/master | 2022-12-29T03:31:04.861298 | 2020-09-28T20:10:47 | 2020-09-28T20:10:47 | 299,417,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | """
Django settings for asimplecrudproject project.
Generated by 'django-admin startproject' using Django 3.1.1.
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/
"""
f... | [
"johnbangla@gmail.com"
] | johnbangla@gmail.com |
50bbcc4a25a76937037886fed2eba3ea1add98a2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04000/s475509387.py | 85ceece866d44b5b3406e2531a210cac36562ae5 | [] | 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 | 597 | py | H, W, N = input().split(" ")
H, W, N = int(H), int(W), int(N)
A = []
for i in range(N):
A.append([int(j) for j in input().split(" ")])
import itertools
from collections import defaultdict, Counter
c = defaultdict(int)
for a, b in A:
# そのセルを含む正方形の中心を記録
for dx,dy in itertools.product([-1,0,1],repeat = 2):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c2db6be5c96fbf693762ba09ddbe350c3fbe67c3 | ba8f5d23d9878a25b30a32cf16e8833f93b25853 | /source_py2/test_python_toolbox/test_nifty_collections/test_lazy_tuple/test_lazy_tuple.py | 25494071c2d0dd5ac32c1cc08ac31f1733154520 | [
"MIT"
] | permissive | nastako/python_toolbox | af520cbec1468c8e0aae0b3b1c467ca5623af45b | 9713fd728608818630ee409ac6a6fdaf863af31b | refs/heads/master | 2020-12-11T09:07:19.681161 | 2015-01-16T21:26:37 | 2015-01-16T21:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,880 | py | # Copyright 2009-2015 Ram Rachum.
# This program is distributed under the MIT license.
'''Testing module for `python_toolbox.nifty_collections.LazyTuple`.'''
import uuid
import itertools
import collections
from python_toolbox import cute_iter_tools
from python_toolbox import sequence_tools
from python_toolbox import... | [
"ram@rachum.com"
] | ram@rachum.com |
377add99646aff003db4dcc22fe3df9a0af00b35 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /LinkedList/Q138_Copy List with Random Pointer.py | 24cd3edd7fd76010b3755a2f50f18c6529287d06 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py |
# 思路1: 用HashTable存每个节点的copy,构造新LinkedList时,直接取用next和random O(2n)
# 相当于建立起了原链表和新链表的一一对应的copy关系,注意用copy.get,因为到链表尾部会get(null)
# 思路2: 一边建立LinkedList一边赋值,如果dic中没有暂时置为0, 当访问到该节点时,修改对应的val,此时需手动添加None
import collections
class Solution:
# Solution 1 O(2n)
# def copyRandomList(self, head):
# copy={}
# ... | [
"564258080@qq.com"
] | 564258080@qq.com |
477bf92a6ab78bc9f86b5cd8d19d5d144d8ca380 | b2e6002674f7866a653842eb2afad5ad02e86a6b | /vote/migrations/0001_initial.py | 26c2f958ca3036a82a23ea6dd98c3bf6f707e1de | [] | no_license | fredkheisa/Awards | a467dd9ded521995ce9a080d4dc3b337cd993902 | b593b7f97df13b628e93478af0e98546167b7717 | refs/heads/master | 2020-04-12T19:17:17.754824 | 2019-01-09T08:00:46 | 2019-01-09T08:00:46 | 162,705,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-01-05 11:35
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '... | [
"you@example.com"
] | you@example.com |
b8040e9b33c2c6ada4d0a17b545da6bfaf5cb2ff | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/explosion_spaCy/spaCy-master/spacy/hu/punctuation.py | 945cc170eaae9c5799255367c135ecdd1466efc1 | [
"MIT"
] | permissive | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,277 | py | # encoding: utf8
from __future__ import unicode_literals
from ..language_data.punctuation import ALPHA_LOWER, LIST_ELLIPSES, QUOTES, ALPHA_UPPER, LIST_QUOTES, UNITS, \
CURRENCY, LIST_PUNCT, ALPHA, _QUOTES
CURRENCY_SYMBOLS = r"\$ ¢ £ € ¥ ฿"
TOKENIZER_PREFIXES = (
[r'\+'] +
LIST_PUNCT +
LIST_ELLIPSES +... | [
"659338505@qq.com"
] | 659338505@qq.com |
812d5654f384ee53f1aa05083e2382e721b5e272 | 8cac67c84228a8fa2dbae3536a28ff0255d64de1 | /0x0B-python-input_output/13-student.py | 41568661ac918416a47c88c33bc080b07cd09f12 | [] | no_license | dgquintero/holbertonschool-higher_level_programming | 8ee78ee61890eb532dc3f7b0a73db903f4627c88 | 3d0f431d76a8436461cb5602b97bbdf4f5774f56 | refs/heads/master | 2020-09-29T00:32:20.623148 | 2020-05-14T18:59:38 | 2020-05-14T18:59:38 | 226,902,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | #!/usr/bin/python3
class Student:
def __init__(self, first_name, last_name, age):
self.first_name = first_name
self.last_name = last_name
self.age = age
def to_json(self, attrs=None):
if attrs is None:
return self.__dict__
_dict = {}
for i in attrs... | [
"dgquintero02@hotmail.com"
] | dgquintero02@hotmail.com |
44338ee96ae473c56b4a3e7be463714f21574a85 | ca31c40d3c4a75f747c183870b4f39966991ead0 | /9_keys/arithmetic_interface_to_kewen.py | b7193dba0bec1a0aaffa30289dd6611a49f1af7e | [] | no_license | mmt0997/ngram_engineArighmetic | 7ce0acfac743aacf131608967fa363ce2bc22c15 | 18e2401164bb9936e460c1f25bd55785579eef1e | refs/heads/master | 2021-01-20T11:35:21.689200 | 2014-10-27T09:08:20 | 2014-10-27T09:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,555 | py | #coding:utf-8
import os
import codecs
import itertools
class EngineArithmetic(object):
def __init__(self):
self.src_data_path = r'E:\SVN\linguistic_model\N_gram\bigram'
self.ngram_weight_dic = {}
self._load_ngram_weight()
def _load_ngram_weight(self):
ngram_item_filenam... | [
"wachfx@163.com"
] | wachfx@163.com |
f99faf8e6819d199d2fdac5ff2174e73cbaac848 | 2fc1d40081764c9b1d3ba5b9681e6d6491f56d17 | /manage.py | ed59960bbb2e52335a5d58060a41717d22d46819 | [] | no_license | hakimkal/primegate | 9907818dca4f1a09e426be01b7124a02641c32af | 4df640f710d824bb54970b5d03dde01214771ba0 | refs/heads/master | 2021-01-22T23:34:22.201608 | 2014-12-02T12:32:35 | 2014-12-02T12:32:35 | 26,557,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "primegate.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"hakimkal@gmail.com"
] | hakimkal@gmail.com |
929b71eeb227abf33bb981ffbd6682b8dcc1196c | 6376c0e15c4883036f733c99c56212b82aab55f2 | /kedro/framework/cli/catalog.py | 5fd64fdd43258d56eed905500394eb2f3723e26e | [
"Apache-2.0"
] | permissive | sbrugman/kedro | 3e48bcc56cc61fbe575d1a52c4f5bf3e84b6f974 | 123d5bde3010fd62d7a1f7ee4fd7e131af8581c8 | refs/heads/main | 2023-07-20T11:24:07.242114 | 2022-09-16T12:15:11 | 2022-09-16T12:15:11 | 404,517,683 | 1 | 2 | NOASSERTION | 2021-09-08T22:53:09 | 2021-09-08T22:53:09 | null | UTF-8 | Python | false | false | 5,713 | py | """A collection of CLI commands for working with Kedro catalog."""
from collections import defaultdict
import click
import yaml
from click import secho
from kedro.framework.cli.utils import KedroCliError, env_option, split_string
from kedro.framework.project import pipelines, settings
from kedro.framework.session imp... | [
"noreply@github.com"
] | sbrugman.noreply@github.com |
016db5caa31d39a235ed6c208fdf53bb8193ed15 | 7239d389894613ef132edb1198a4f47cb2b65f92 | /packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py | c2b54e71256f9a1c1def3e69258eb93411c4545a | [
"MIT"
] | permissive | fast3dd13sa/plotly.py | 2169417b72481ff2937b5a9ce90d426cd1cccd80 | e778c6b5e6ae9665d7a5e2ddb666f43806df3959 | refs/heads/master | 2022-04-26T01:11:46.345181 | 2020-04-27T19:49:56 | 2020-04-27T19:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,482 | py | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class YAxis(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.xaxis.rangeslider"
_path_str = "layout.xaxis.rangeslider.yaxis"
_valid_props = {"ra... | [
"noreply@github.com"
] | fast3dd13sa.noreply@github.com |
ba3e0d2540c96183503f3979d58b14a52819ab06 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/leader_20200827123908.py | 9b7f22ff1ee6247b8cb153ff5cade3aa9fe87972 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | def leader(A):
# A leader occurs more than n //2 times in the array
# meaning it makes up more than half of the array
n = len(A)
size = 0
for i in range(len(A)):
if size == 0:
size +=1
value = A[i]
leader([4,6,6,6,6,8,8]) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
cc4d112bb01b4d5a69787032a66f580d3dd2eae2 | 1cc8604dff9713d3879599f1876a6ea313ebe1fb | /setup.py | 2cadd12a2a3be9462744d9698f4a3edf2a73d5e9 | [
"Apache-2.0"
] | permissive | SoyGema/pysc2 | c363ec768ebf94e7b0fa08e136b36b7432ae1b44 | e5de62023ec45ac212016b5404dd73272109d9d4 | refs/heads/master | 2022-02-08T21:41:46.530129 | 2022-01-29T13:11:15 | 2022-01-29T13:11:15 | 143,897,552 | 1 | 0 | Apache-2.0 | 2018-08-07T16:06:23 | 2018-08-07T16:06:22 | null | UTF-8 | Python | false | false | 3,517 | py | # Copyright 2017 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 ... | [
"tewalds@google.com"
] | tewalds@google.com |
62ba08850cf535da54975c468123c34823c21db9 | df0ff991368b84af7eff5f84858c4590c247e4a4 | /conditionals.py | a4ca363d4497f4e5ece54bf77f794c541696e3d7 | [] | no_license | katuhito/python_math | 62d74f9e8b7dc756c544f6578bcb60ed106c741b | 2f6577be1ebb422e7a85bbc839408fa1585e1f39 | refs/heads/master | 2023-04-02T09:07:41.053707 | 2021-03-27T10:37:16 | 2021-03-27T10:37:16 | 334,314,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | age = 50
if age < 10:
print("どこの学校に通っているのかな?")
elif 10 <= age < 20:
print("若いね!")
elif 20 <= age < 30:
print("職業は何ですか?")
elif 30 <= age < 40:
print("結婚されてます?")
else:
print("おお、ご年配の方ですね!")
| [
"katuhitohara@gmail.com"
] | katuhitohara@gmail.com |
af20d75c8e996481abfffb504493b723f24d49a3 | 2e07f6b94fc0f7a5cf55002040151b8745fd843d | /privious_learning_code/OS_Handling/os.fdopen() Method.py | 3e853bf5a928fd8bb44dd38f979f652fa16d79e7 | [] | no_license | LalithK90/LearningPython | a7e6404e900b7d66c663acc72cde3e3655d54ac7 | ece38fdac88da66c8b76fe710b3df7d8635a3590 | refs/heads/master | 2023-06-09T22:32:16.674821 | 2021-06-27T18:55:00 | 2021-06-27T18:55:00 | 169,513,150 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | # Description
#
# The method fdopen() returns an open file object connected to the file descriptor fd. Then you can perform all the defined functions on file object.
# Syntax
#
# Following is the syntax for fdopen() method −
#
# os.fdopen(fd, [, mode[, bufsize]]);
#
# Parameters
#
# fd − This is the file descriptor for... | [
"asakahatapitiya@gmail.com"
] | asakahatapitiya@gmail.com |
1c0e9e128bbd427ea3f205e92f4154a43b1d59a8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03080/s825867617.py | d7e9df6235f3ab9f6a6ac795f4a73476f59137f5 | [] | 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 | 135 | py | from collections import Counter
n = int(input())
c = Counter(list(input()))
if c['R'] > c['B']:
print('Yes')
else:
print('No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cc4bc8052b5fc8ffb046716509951e9670c471e8 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-documentai/samples/generated_samples/documentai_v1_generated_document_processor_service_fetch_processor_types_async.py | 5715cc5195b1457c4c0de2f85b71881b69e7b3af | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,938 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
aaa97426ee0d05304df5803298c9cbb2908083a9 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/surface/meta/list_gcloud.py | aca56be40ca25b93a18ebd563aec4334956a5e10 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 1,529 | py | # Copyright 2015 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... | [
"toork@uw.edu"
] | toork@uw.edu |
a1080db1e9852583c2a131acbce39e57d3ed3cb4 | 81b438781ecc307225fcc6141238f8a8ef03bd64 | /Project/src/Modules/Computer/Web/test/test_web_schedules.py | f1ad8d42bbb06df26e123cf621071fc12f95b025 | [] | permissive | DBrianKimmel/PyHouse | b7d61be4dc6ce9e3332228a6c633e81fdfd8a908 | a100fc67761a22ae47ed6f21f3c9464e2de5d54f | refs/heads/develop | 2021-01-23T09:30:08.722975 | 2020-02-29T16:30:08 | 2020-02-29T16:30:08 | 4,125,178 | 3 | 1 | MIT | 2020-07-19T22:07:18 | 2012-04-24T13:53:33 | Python | UTF-8 | Python | false | false | 5,250 | py | """
@name: PyHouse/src/Modules/Computer/Web/_test/test_web_schedules.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2016-2017 by D. Brian Kimmel
@license: MIT License
@note: Created on Nov 23, 2016
@summary: Test
"""
__updated__ = '2020-02-14'
# Import system type st... | [
"d.briankimmel@gmail.com"
] | d.briankimmel@gmail.com |
6311f7b89ee2f8009890d3d635535ee964df850e | 9249947c07f8addf64dd3d2a2f9f37d379f83921 | /libs/gluon/contrib/login_methods/extended_login_form.py | 6946531dfbc5fecf6a21073d44b2af2fadb7a183 | [
"MIT"
] | permissive | operepo/ope | eb71aa763d157416009d7c3052ace11852660e0a | 018c82af46845315795c67c36801e2a128f515d5 | refs/heads/master | 2023-08-08T15:05:28.592589 | 2023-07-25T00:22:24 | 2023-07-25T00:22:24 | 96,855,111 | 12 | 11 | MIT | 2023-03-03T15:10:34 | 2017-07-11T05:42:14 | Perl | UTF-8 | Python | false | false | 3,526 | py | #!/usr/bin/env python
# coding: utf8
"""
ExtendedLoginForm is used to extend normal login form in web2py with one more login method.
So user can choose the built-in login or extended login methods.
"""
from gluon import current, DIV
class ExtendedLoginForm(object):
"""
Put extended_login_form under web2py/g... | [
"ray@cmagic.biz"
] | ray@cmagic.biz |
529cbb3c14010579f4a8ac73624e0ee51ada5781 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_156/502.py | 489952f85543e7b6aeb79ea05e6691ff9fc22386 | [] | 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 | 1,097 | py | import copy
import sys
def parse(f):
D = int(f.readline())
pancakes = map(int, f.readline().split())
return D, pancakes
MEMO = {}
def solve(D, pancakes):
pancakes.sort()
highest_pile = pancakes[-1]
if highest_pile < 4:
MEMO[tuple(pancakes)] = highest_pile
return highest_p... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
97770a36adcbdc591661d2e7463eaf1f2fa933a8 | 11e2b0b4ab34e00ecc8a2585a51ea8252ee61eff | /MixedPrecision/tools/train.py | a97c9fa8d43d7a134e27616b7b43341789b60196 | [] | no_license | wuyan-ai/MixedPrecision | 1271211ad03fa17fa501b59e49db27cdfe6ebc43 | c51aeb1608663ce042b38b6c968d613bc9010e84 | refs/heads/master | 2022-03-22T13:27:01.566267 | 2019-06-13T13:13:31 | 2019-06-13T13:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,440 | py | import time
import torch
import os
from MixedPrecision.tools.chrono import MultiStageChrono
from MixedPrecision.tools.nvidia_smi import make_monitor
from MixedPrecision.tools.utils import throttle
class Trainer:
def __init__(self, model, criterion, loader, optimizer):
self.model = model
self.crit... | [
"pierre.delaunay.tr@gmail.com"
] | pierre.delaunay.tr@gmail.com |
e7dceba2d63cca3abf899d482671eeb0a335e1ad | 2c5b25d0b5d6ba66d013251f93ebf4c642fd787b | /wrong_answer_codes/Diameter_of_Binary_Tree/Diameter of Binary Tree_291432994.py | 0e965f8af403cb0ff08f044a28001f3710d2d429 | [] | no_license | abhinay-b/Leetcode-Submissions | da8099ac54b5d36ae23db42580064d0f9d9bc63b | d034705813f3f908f555f1d1677b827af751bf42 | refs/heads/master | 2022-10-15T22:09:36.328967 | 2020-06-14T15:39:17 | 2020-06-14T15:39:17 | 259,984,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def diameterOfBinaryTree(self, root: TreeNode) -> int:
if not root:
return 0
def maxDepth(root):
... | [
"abhinayb.sssihl@gmail.com"
] | abhinayb.sssihl@gmail.com |
56cd041b41df1847f33658fd95b662b551f86005 | 84108ae54987955233447c20e1dc4ddba272a42f | /python/PYTHONexam/day8_collection_filter_zip/exercise8/answer/strLab2.py | 7877e577dd96851331eb0e48abaaa0da6a21704a | [] | no_license | MyChoYS/K_TIL | bb82554a6b68f9d3fcd39c9031331ea4df0d8716 | 8417a6f22addcfe08bcb708d61c91091f702b2cb | refs/heads/master | 2023-04-24T05:58:29.253920 | 2021-05-07T06:13:34 | 2021-05-07T06:13:34 | 325,244,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | s1 = "pythonjavascript"
s2 = "010-7777-9999"
s3 = "PYTHON"
s4 = "Python"
s5 = "https://www.python.org/"
s6 = '891022-2473837'
s7 = '100'
s8 = ' The Zen of Python'
print(len(s1))
a = s2.split('-')
print(''.join(a))
print(s3[::-1])
print(s4.lower())
i = s5.split('/')
print(i[2])
def gender(a):
if s6[7] == '1' or s6... | [
"sin94soon@gmail.com"
] | sin94soon@gmail.com |
6942c209afc217023e316cb8f0653b85c689bcd9 | ce07ccf78739a768971f393222fdca4a56315241 | /employee_management/config/docs.py | 7ba62b112abed1e6ce3a112ab442e98fefb013c8 | [
"MIT"
] | permissive | Gdinesh03/Frappe | 563e0ddbe925be536f65f925787ed321a6098c0d | efd2d1568b6f5b8a4e0ff31e06a415c717a3d32a | refs/heads/master | 2023-08-27T19:24:12.024442 | 2021-09-14T07:04:27 | 2021-09-14T07:04:27 | 406,260,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/employee_management"
# docs_base_url = "https://[org_name].github.io/employee_management"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_... | [
"vivekananthan112599@gmail.com"
] | vivekananthan112599@gmail.com |
6839652aa3dfd4428af5f03fed397c20cc0787a6 | a8ab9e12f07a1e58a6416e6fab991192bf7a76eb | /blog/models.py | 2e93c7a911a78682441ea40a8aa2fa10e72f3f03 | [] | no_license | satish24011993/mysite | 25216e56f5471cb74491080db9c12de76c6cb441 | 81ae14e26c79a6b7f6783bdbbca7d02bcbce786a | refs/heads/master | 2022-04-23T05:14:58.056262 | 2020-04-27T07:02:09 | 2020-04-27T07:02:09 | 259,256,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
from taggit.managers import TaggableManager
# Create your models here.
class PublishedManager(models.Manager):
def get_queryset(self):
return super().get_queryset().fil... | [
"satishkurakula073@gmail.com"
] | satishkurakula073@gmail.com |
bbbfa2d60408d62edc6690781e6d2356fdb6b4f8 | 72d010d00355fc977a291c29eb18aeb385b8a9b0 | /Launchpad_Pro/ClipActionsComponent.py | c4a54e9d641890598e33dbc132b71c8498c7ae5e | [] | no_license | maratbakirov/AbletonLive10_MIDIRemoteScripts | bf0749c5c4cce8e83b23f14f671e52752702539d | ed1174d9959b20ed05fb099f0461bbc006bfbb79 | refs/heads/master | 2021-06-16T19:58:34.038163 | 2021-05-09T11:46:46 | 2021-05-09T11:46:46 | 203,174,328 | 0 | 0 | null | 2019-08-19T13:04:23 | 2019-08-19T13:04:22 | null | UTF-8 | Python | false | false | 5,430 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Launchpad_Pro/ClipActionsComponent.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
import Live
from _Framework.SubjectSlot import Subject, su... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
55b34ccc86ce00d91f714ecfaf0bb5ee92628518 | 0327ef924b8f5026a16520d2b7c4b62722bf3a13 | /qaamus2/patterns.py | a3297d9b64df00f13b3cb829ed94ca8172c41500 | [] | no_license | ihfazhillah/qaamus2 | e7722454f26b4a56df73d9e4af58bebd809648f2 | 165e7b9cfc59d50f21b2248ba81d85c79943ddcb | refs/heads/master | 2021-01-11T20:56:55.026480 | 2017-02-20T00:31:23 | 2017-02-20T00:31:23 | 79,219,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | """Pattern lists"""
import re
IDAR = re.compile("""<div class=lateef2>(.+?)</div>.+<em.+?>(.+?)</em>.+?<div class="panel-footer">(.+?)</div>""")
IDAR_BING = re.compile("""<div class=lateef2>(.+?)</div>.+?<div class="panel-footer">(.+?)</div>""")
ANGKA_PEGON = re.compile("""<div class=lateef2>(.+?)</div>""")
BERHUBUNG... | [
"mihfazhillah@gmail.com"
] | mihfazhillah@gmail.com |
a87ba2b0f4b475d22053ce60496f296bb50d94bd | ef6fd87fcf6a74f9fe39850a9e5edc77fe971f7a | /index/migrations/0016_character.py | 1f9723628a18802f8fd302c70303bd675dbe3976 | [] | no_license | Aditta-das/gaming-site | a3bc432069f84284e9d6f9188566ae51179e4285 | 2dddc056e8ecf2395494d96ffa841f6a45910fa8 | refs/heads/master | 2021-04-02T23:42:59.412921 | 2021-02-07T16:42:37 | 2021-02-07T16:42:37 | 248,337,074 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | # Generated by Django 2.2.7 on 2020-03-19 10:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('index', '0015_delete_cha... | [
"ndas5662@gmail.com"
] | ndas5662@gmail.com |
8f48f4aafec9404001cc49331cf3636a7f2ddeff | 1afec7d1d3099138b5afe5fd73dfd3d24ff4eb15 | /test/functional/rpc_estimatefee.py | 97d03773e68a32e6cfb4b0118b3e8ed9ada048ea | [
"MIT"
] | permissive | republic-productions/finalcoin | 5c7c6b0734178fe22db63f0946ec555f59e8d0eb | 7c0f335ded1e5c662034c822ca2c474b8e62778f | refs/heads/main | 2023-09-04T17:04:32.683667 | 2021-10-14T17:45:22 | 2021-10-14T17:45:22 | 417,209,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2020 The Finalcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the estimatefee RPCs.
Test the following RPCs:
- estimatesmartfee
- estimaterawfee
"""
f... | [
"republicproductions@protonmail.com"
] | republicproductions@protonmail.com |
7a125b149e8606a9456d1e81ec2e3b5b7c1220ba | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_confessional.py | ef5e9b31039691a6547adf6865d8a4b669ac57d4 | [
"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 | 419 | py |
#calss header
class _CONFESSIONAL():
def __init__(self,):
self.name = "CONFESSIONAL"
self.definitions = [u'a small structure like a box in a church, especially a Roman Catholic church, in which people can privately confess to a priest']
self.parents = []
self.childen = []
self.properties = []
self.json... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6cbcb6a6a4a9e29520cb57bf6b986dcdbdcb6c80 | 5337e891f148d7f349d21d0359d61f286c9d6dc1 | /MACS2/Constants.py | 5d69bbb3b8026016c6e0fe93459d5a93cc32430a | [
"BSD-3-Clause"
] | permissive | taoliulab/MACS | a210e974e873fef57d43d4e8a8f96635f7c62c19 | a9ad006a6fa502f47df31b334691f3d01d492500 | refs/heads/master | 2020-07-08T17:50:23.514108 | 2019-08-22T06:34:21 | 2019-08-22T06:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | MACS_VERSION = "2.1.3"
#MACSDIFF_VERSION = "1.0.4 20110212 (tag:alpha)"
FILTERDUP_VERSION = "1.0.0 20140616"
RANDSAMPLE_VERSION = "1.0.0 20120703"
MAX_PAIRNUM = 1000
MAX_LAMBDA = 100000
FESTEP = 20
BUFFER_SIZE = 100000 # np array will increase at step of 1 million items
from array import array
... | [
"vladimir.liu@gmail.com"
] | vladimir.liu@gmail.com |
ded6bdd74cf898211a643d181f4ad5e198b93d8d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/luhn/2febdcdbaa1f4af0a6c4dc816b5f80a9.py | 20f98aa3c0bea46aa44ebe107cfc130f0c72f72c | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 742 | py | class Luhn():
def __init__(self, intid):
self.intid = intid
self.id = map(int,[digit for digit in str(intid)])
def addends(self):
idlist = self.id[::-1]
for i in xrange(len(idlist)):
if not i % 2 == 0:
idlist[i] *= 2
if id... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
9efa64b5aa2e099fe9525da52c0a428471589df9 | 3c934c97bd5748237ac8963c8be779a7d77be629 | /validParentheses.py | c2f450cd23c050893d4457983eec3e9a12cc3eea | [] | no_license | Franktian/leetcode | 2b0d0280d18e3401b9f337f027c5d70f26237f02 | 98e7852ba144cefbdb02f705651b1519155ee4d6 | refs/heads/master | 2021-06-12T15:23:09.733650 | 2020-06-17T23:09:18 | 2020-06-17T23:09:18 | 128,710,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | def isValid(s):
st = []
for c in s:
if c == '{' or c == '(' or c == '[':
st.append(c)
print(st)
else:
if not st:
return False
if c == '}' and st[-1] != '{':
return False
if c == ']' and st[-1] != '[':
... | [
"tianyawen201209@hotmail.com"
] | tianyawen201209@hotmail.com |
1c0fda0d363b2cda3f95b50cb859fc5a6eceef9b | 76050b0002dac757866a9fb95dc199918da665bb | /acme/jax/snapshotter_test.py | 40a1a7509f9eb56458b15fb51fca682a528e2bc4 | [
"Apache-2.0"
] | permissive | RaoulDrake/acme | 2829f41688db68d694da2461d301fd6f9f27edff | 97c50eaa62c039d8f4b9efa3e80c4d80e6f40c4c | refs/heads/master | 2022-12-29T01:16:44.806891 | 2022-12-21T14:09:38 | 2022-12-21T14:10:06 | 300,250,466 | 0 | 0 | Apache-2.0 | 2020-10-01T11:13:03 | 2020-10-01T11:13:02 | null | UTF-8 | Python | false | false | 4,348 | py | # Copyright 2018 DeepMind Technologies Limited. 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 ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
da11d07aa98976c9291ba28c228744e676dd7a86 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_get_bind_adgroup_response_wrapper.py | c940007fd192978ac7f73b7605f50d5485e425b3 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 1,080 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.common.model.api_response_header import ApiResponseHeader
from baiduads.crowdfeed.model.get_bind_adgroup_response_wrapper_body import GetBi... | [
"tokimekiyxp@foxmail.com"
] | tokimekiyxp@foxmail.com |
1efd045ada1c64f416c09ee50d584d37a0d6bdf1 | d0f2f7f220c825d827643ca81a08a23cfb871965 | /backend/code/rankor/auth/models.py | deb8340fce9b552a373ecd80716cbd5ac01fdcd2 | [] | no_license | socek/rankor | 7e5e73f8f13bc3d12bd1b18ef01bef04f8f38f0a | eaf5002dd1e852895670517a8cdcb07bf7c69f66 | refs/heads/master | 2021-04-12T07:52:20.341699 | 2018-06-03T20:07:17 | 2018-06-03T20:07:17 | 125,769,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | from bcrypt import checkpw
from bcrypt import gensalt
from bcrypt import hashpw
from sqlalchemy import Binary
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import String
from rankor.application.model import Model
class User(Model):
__tablename__ = 'users'
name = Column(String,... | [
"d.dlugajczyk@clearcode.cc"
] | d.dlugajczyk@clearcode.cc |
10f5f65d13641dd95a8a5e6945db9598292d0db0 | 15d84cff3c02a37db42d831e781a6ec519d668bf | /Books/2_Vasilev_Python_on_exaples/Test_32_7.5_multiple_inheritance.py | ea86162e7a687bd564fd4ffdaf0f8a5089c5d170 | [] | no_license | vnpavlukov/Study | 40c61fc575409bdb301de6f3b98ffffd0f35071e | 0ffbe9a55e6a0972bb42643205134d06924f96c4 | refs/heads/master | 2023-03-01T07:05:23.109572 | 2021-01-26T19:54:29 | 2021-01-26T19:54:29 | 289,244,558 | 0 | 0 | null | 2021-01-26T19:55:11 | 2020-08-21T10:41:18 | Python | UTF-8 | Python | false | false | 1,057 | py | class BoxSize:
def __init__(self, width, height, depth):
self.width = width
self.height = height
self.depth = depth
def volume(self):
return self.width * self.height * self.depth
def show(self):
print('Sizes of the box:\n',
'\tWibth:', self.width, "\n"... | [
"47551027+Alfavoland@users.noreply.github.com"
] | 47551027+Alfavoland@users.noreply.github.com |
481d5d062a5255607513cbb29b3caae4f50f13e1 | de2cd4e9ebd0d10aed54bc569c1416744ab9b2a6 | /qhana_openapi/dataPreparation/resources/data_preparator.py | 45e76031296a315702db0c99736ee337254713c1 | [] | no_license | IndikaKuma/quantum | 4d7d3e9c19d91e5b5b6e9f22e8beb9ba701c71df | ee78db14c0d5fc37d9990cf8ad634f5e264c161b | refs/heads/main | 2023-07-09T01:49:16.810814 | 2021-08-25T12:27:34 | 2021-08-25T12:27:34 | 399,156,086 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | import os
from threading import Thread
from flask import request, jsonify
from calculation.aggregator import AggregatorType
from calculation.entityComparer import EntityComparer
from calculation.transformer import TransformerType
from entityLoadingService import EntityLoadingService
from fileService import FileServic... | [
"ipkumarawd@yahoo.com"
] | ipkumarawd@yahoo.com |
d9d45853c46953848fc2d7f8419383df20eb9866 | 26192962dc2627e7ca5f0e3b249c3fabcf52442c | /Python/Strings/2651 - Link Bolado.py | 271d29147945668b21b4d7dd2ba20f0e513f387a | [] | no_license | PierreVieira/URI | 77278ccb1724ca206ab2c12afbea1e51fa08ff73 | c1eb211c788d26b5cb9bedf5dda4147a2961fa19 | refs/heads/master | 2023-04-10T07:03:13.954639 | 2023-03-22T00:18:28 | 2023-03-22T00:18:28 | 189,321,748 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | """
Autor: Pierre Vieira
Data da submissão: 14/01/2020 21:47:53
"""
if 'ZELDA' in input().upper():
print('Link Bolado')
else:
print('Link Tranquilo')
| [
"pierrevieiraggg@gmail.com"
] | pierrevieiraggg@gmail.com |
c5b5dba596b8938f9f7c6d81cd9996f5c501d9ca | 9ae2868958498cf0245ead4ce86fc4037c984e88 | /myQuiz.py | 69b9de0611087e50980fce92c3afd182b8257db1 | [] | no_license | bhobbs20/Basic-Python-Projects | b83581e78f075a1f7cd0593586923a0872727866 | fbe8877f5efe95aa9c86f6d0291b7a70fb28243c | refs/heads/master | 2021-01-09T03:03:03.048839 | 2020-03-09T17:23:24 | 2020-03-09T17:23:24 | 242,223,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | def calcBills():
myBills = { "Electric": 120.00, "Rent": 1200.00, "Water_Sewer": 60.00, "Car_insurnace": 75.00, 'Phone': 65.00}
total = 0
for i in myBills:
total += myBills[i]
owed = 'The total owed for bills this month is: ${}'.format(total)
return owed | [
"brianhobbs216@gmail.com"
] | brianhobbs216@gmail.com |
f0545890eba6f3f1e10ce0314b5206d909e28ed8 | df4037f361bbb6face45c13c0162bbfe515a0ecb | /src/pytorch_translate.py | d94fbc21ec547966db95b3d6e6c65dd436884e50 | [
"MIT"
] | permissive | jiahuei/demo-docker-streamlit | 862b2ff0a521b53bc18b1bc169bc0bd39f8c9c7d | e2171f2d05a90e752d5ed893eb3d3cb3d8eb82c7 | refs/heads/main | 2023-09-03T19:03:23.954606 | 2021-09-30T09:42:58 | 2021-09-30T09:42:58 | 407,824,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # -*- coding: utf-8 -*-
from transformers import pipeline
translate = pipeline("translation_en_to_zh", "Helsinki-NLP/opus-mt-en-zh")
translate("My name is Wolfgang and I live in Berlin")
| [
"tanjiahuei@gmail.com"
] | tanjiahuei@gmail.com |
0c6ebde3e2d2045bfaa5d2a64a3e9680e7dfd28d | 0e4dc82a94563dacb0c25d0d43fbcbe3def21f72 | /136-Single-Number/solution01.py | be4fe396c0821ea227994a6d75bf416d6046abe5 | [
"CC-BY-3.0",
"MIT"
] | permissive | Eroica-cpp/LeetCode | 3ce3b05b3098e8097c1090e2116b813efaadd2a3 | 07276bd11558f3d0e32bec768b09e886de145f9e | refs/heads/master | 2021-06-20T05:41:30.506250 | 2017-03-16T05:17:39 | 2017-03-16T05:17:39 | 35,126,816 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | #!/usr/bin/python
# ==============================================================================
# Author: Tao Li (taoli@ucsd.edu)
# Date: May 4, 2015
# Question: 136-Single-Number
# Link: https://leetcode.com/problems/single-number/
# ========================================================================... | [
"eroicacmcs@gmail.com"
] | eroicacmcs@gmail.com |
3ebc55101dec052929f158bf2e512451dad4c52a | d75371f629cf881de3c49b53533879a5b862da2e | /python/defanging-an-ip-address.py | de605e0f5eb31c574db7c574ff0767861b32895b | [] | no_license | michaelrbock/leet-code | 7352a1e56429bb03842b588ba6bda2a90315a2f4 | 070db59d4e0ded3fb168c89c3d73cb09b3c4fe86 | refs/heads/master | 2020-04-01T05:40:49.262575 | 2019-10-10T22:03:10 | 2019-10-10T22:03:10 | 152,914,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | class Solution:
def defangIPaddr(self, address: str) -> str:
new_ip = []
for char in address:
if char == '.':
new_ip.extend(['[', '.', ']'])
else:
new_ip.append(char)
return ''.join(new_ip)
| [
"mykel.bock@gmail.com"
] | mykel.bock@gmail.com |
513d99deaf96927b3564f6f4b58a5bec7ee1950e | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DQM/SiStripMonitorTrack/python/SiStripMonitorTrack_cff.py | 7954ceb5941b74631fcac32ba1e35a9ee562fe36 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 829 | py | import FWCore.ParameterSet.Config as cms
from DQM.SiStripMonitorTrack.SiStripMonitorTrack_cfi import *
# TrackInfo ####
from RecoTracker.TrackProducer.TrackRefitters_cff import *
#-----------------------
# Reconstruction Modules
#-----------------------
from RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppress... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
20128268603105de57b01279b255029bd81000f8 | 567e89b21aca23db5f14032889fdd1cb7c7700f7 | /Nombres premiers appli.py | a236eb2188a9c52083f8346cdb185598e125d35a | [] | no_license | MarcPartensky/Python-2018 | 7ab83d42eb28b34bed88fc6fb77892e62094dd8d | 27d2a57a6b6d6cdaa883fd2ce55e1c5eefd13ccc | refs/heads/master | 2020-04-17T13:12:41.448439 | 2019-01-19T23:55:05 | 2019-01-19T23:55:05 | 166,605,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import math
from math import sqrt
Ajout=int(input("Ajouter:"))
ListeDesPremiers = open("ListeDesPremiers.txt", "r")
ChaineDesPremiers=ListeDesPremiers.read()
Chaine=ChaineDesPremiers.split(",")
Liste=[0]*len(Chaine)
for i in range(0,len(Chaine)):
Liste[i]=int(Chaine[i])
ListeDesPremiers.close()
print(Liste)
Lis... | [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
9d593ffb582f78247dc762ed9d3eebc5091a1c34 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/__init___parts/MissingMemberException.py | 95d9e27e409c0ac56a91ec33ef9213f56e0430b0 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | class MissingMemberException(MemberAccessException,ISerializable,_Exception):
"""
The exception that is thrown when there is an attempt to dynamically access a class member that does not exist.
MissingMemberException(message: str)
MissingMemberException()
MissingMemberException(message: str,inner: Exception)... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
eb134f059915b76b61509ba3ff5d742161c7afdf | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /ASTutils/tags/0.2.0/setup.py | c0ef25e97814dbb53ed531092ca221b8b1d2bfb3 | [
"Beerware",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #!/usr/bin/env python
from distutils.core import setup
from os import linesep
import ASTutils as base
description = base.__doc__.split(linesep+linesep)[0]
description = description.strip(linesep)
setup( name = base.__name__
, version = base.__version__
, py_modules = ['ASTutils']
, description = descr... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
c60b20b597ee3dd19ad63d42d0051ce7d523fce5 | 06e776688e6058fa1263446074cf6d7fd6f8db5d | /setup.py | 969024126a759a0d480ee89e745b611ae04a166e | [
"MIT"
] | permissive | pombredanne/marko | f69aa73f04bba48f21384ed752e8d8529d86bb96 | 1cd030b665fa37bad1f8b3a25a89ce1a7c491dde | refs/heads/master | 2020-05-05T10:14:00.485315 | 2019-04-01T21:14:49 | 2019-04-02T04:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | # -*- coding: utf-8 -*-
"""
Setup.py file
"""
import io
import os
import sys
import re
from setuptools import setup, find_packages, Command
AUTHOR = 'Frost Ming'
EMAIL = 'mianghong@gmail.com'
URL = 'https://github.com/frostming/marko'
NAME = 'marko'
DESCRIPTION = 'A markdown parser with high extensibility.'
REQUIRES_... | [
"mianghong@gmail.com"
] | mianghong@gmail.com |
8d1f65ab1abe1cce441cf96ff5ffc3bfa7c9c855 | 07589006c16b85a642fc5087402208fb0b5df89f | /beavis/testing.py | 17d8c1d74f39876dc25b65590ed17da63d0c9617 | [] | no_license | TrendingTechnology/beavis | 69886054169b933225ad10067db465aa660e6f4f | 0a95f8071005da9ed0951ce8511c1115112fb714 | refs/heads/main | 2023-06-22T01:14:54.553916 | 2021-07-14T21:15:36 | 2021-07-14T21:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | from beavis.prettytable import PrettyTable
from beavis.bcolors import *
import beavis.six as six
import beavis
class BeavisDataFramesNotEqualError(Exception):
"""The DataFrames are not equal"""
pass
class BeavisIndicesNotEqualError(Exception):
"""The indices are not equal"""
pass
class BeavisDTy... | [
"matthewkevinpowers@gmail.com"
] | matthewkevinpowers@gmail.com |
07bf91ead97638a642484b81395264f321788941 | 4d593d4d319eb29a82a30845991f0599ca1fdf47 | /NetEaseMusicApi/RawApi.py | 2f7ac90c8106e1b8eaf6ed4797b5da4b36753fd3 | [
"MIT"
] | permissive | wangjc888/NetEaseMusicApi | 822f9fcd9a3f486c5eabcfba6d3e2f2699c9bc0b | 94296d084be53d67bc0c7d107c76dd8fe73da38c | refs/heads/master | 2021-01-22T12:49:45.037607 | 2016-04-08T04:59:04 | 2016-04-08T04:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | #coding=utf8
import md5, base64, random
import requests, json
import os, sys, time
__all__ = ['NetEaseMusicApi']
DEFAULT_LIMIT = 10
BASE_URL = 'http://music.163.com/api/'
headers = {
'Cookie': 'appver=1.5.0.75771',
'Referer': 'http://music.163.com',
}
_API = {
'search': {
'songs... | [
"i7meavnktqegm1b@qq.com"
] | i7meavnktqegm1b@qq.com |
e9012a7e7dc84b41e4201a5c8e96303211e61bfb | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/application-insights/azext_applicationinsights/vendored_sdks/mgmt_applicationinsights/v2020_03_01_preview/models/__init__.py | 7177ea6248e5402c0b78903545f9551d8644a156 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 1,320 | 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 may ... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
8967c0901a86bd2e7773449bd6656e80f5745379 | 6bc97e30c5a7436de6e630b8d1f8c20871384ded | /kepler/services/geoserver.py | 322c7ad91af8ebaf415dcc1f0a3ec19af2f367d6 | [] | no_license | drh-stanford/kepler | 22467c88f1007c33fcbf117b1acb7349aebd8cc7 | e9e3af92aa33d08c08cf2272c36733bf6b6cbaf8 | refs/heads/master | 2021-01-24T04:08:48.874862 | 2015-03-02T18:43:13 | 2015-03-02T18:43:13 | 31,556,357 | 0 | 0 | null | 2015-03-02T18:41:37 | 2015-03-02T18:41:36 | null | UTF-8 | Python | false | false | 803 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import requests
try:
from urllib.parse import urljoin
except ImportError:
from urlparse import urljoin
class GeoServerServiceManager(object):
def __init__(self, url, workspace, datastore):
url = url.rstrip('/') + '/'
self.base_... | [
"mgraves@mit.edu"
] | mgraves@mit.edu |
e147cf623993b82087ef78da2476ce540b904b28 | eba136fc1687a0c7593587cf0b29609c0dd85bbf | /Searching-Sorting/LinearSearch.py | 55d1b7b11cdef207999ec20f0d02251befefaa31 | [
"MIT"
] | permissive | NishkarshRaj/Functional_Thinking_Python | f54389c8a329987c4a9177103a9caac7fdd9c6cb | 4458b983fcbdbb028514f1855bbbd1de14ac68c0 | refs/heads/master | 2022-03-27T22:40:01.411918 | 2020-02-07T02:20:36 | 2020-02-07T02:20:36 | 232,322,430 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | import numpy as np
print("Enter Array as space separated values: ")
arr = list(map(int,input().split(' ')))
# Convert to Array
array = np.array(arr)
print(array)
# Take element to be searched
el = int(input("Enter element to be searched: "))
# Searching, if found flag = 1 else flag = -1
flag = -1
for x in array... | [
"noreply@github.com"
] | NishkarshRaj.noreply@github.com |
01f9b74d04eb21fd3154a946cf1959bc597fc3e5 | f68ec37ae975d3aaff2ab3d6a0bae11a2cc432fa | /iot_message/cryptor/aes_sha1.py | 12dde31bf5b85a2f2dab5b533cc9e95545a507b3 | [
"MIT"
] | permissive | bkosciow/python_iot-1 | 3f78a0b2ec18949e579a75132a838a7793d6bbe8 | f3cd2bdbb75cb9afe13fecb603b5b8c026d23500 | refs/heads/master | 2021-04-29T01:00:10.595553 | 2019-10-27T19:09:46 | 2019-10-27T19:09:46 | 77,786,513 | 0 | 0 | MIT | 2019-10-27T19:09:47 | 2017-01-01T16:24:51 | Python | UTF-8 | Python | false | false | 2,350 | py | from iot_message.abstract.cryptor_interface import CryptorInterface
from Crypto.Cipher import AES
from Crypto.Hash import SHA, HMAC
import iot_message.exception as ex
import binascii
from Crypto import Random
import json
class Cryptor(CryptorInterface):
name = "message.aessha1"
algorithm = AES.MODE_CBC
d... | [
"kosci1@gmail.com"
] | kosci1@gmail.com |
f916cf7770ee9f85bf4fad7831c64dbbef7b125b | 84c36e9067476a730d88f5ec799deabd5a46a44d | /Main/Windows/QSSSelector.py | 79e4d20ee0a9566c12a7e624e53e00355039556d | [] | no_license | AGou-ops/myPyQT5-StudyNote | 8bbce76b778a55c31773313d137682c77d246aad | 7e5eb426b6f30c301d040f6bc08f8a3c41d4a232 | refs/heads/master | 2022-11-06T00:05:25.603798 | 2020-06-20T01:59:45 | 2020-06-20T01:59:45 | 261,099,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | '''
使用QSS选择器设置控件样式
'''
from PyQt5.QtWidgets import *
import sys
import qdarkstyle
class QSSSelector(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("QSS样式")
btn1 = QPushButton(self)
btn1.setText("按钮1")
btn2 = QPushButton(self)
btn2.setPropert... | [
"suofeiyaxx@gmail.com"
] | suofeiyaxx@gmail.com |
27c6e9f65c72f40316a6e12f35a1bccc43cf2133 | 0767d96d7d389d0c76b9915f33d19e910f5e3ae2 | /changingthefoodchain/organizations/templatetags/organizations_tags.py | c843d91f12ba427533159560f2b7a46db3902fc9 | [] | no_license | ebrelsford/changingthefoodchain-back | 3d7b68aadd97339910a98ea6da0f66ce2af46979 | 58d093ff4f4f211c1e83de099f4bf3981d598588 | refs/heads/master | 2021-01-22T09:05:20.114067 | 2016-01-15T02:33:10 | 2016-01-15T02:33:10 | 21,173,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | from django import template
from django.conf import settings
from classytags.core import Options
from classytags.arguments import Argument
from classytags.helpers import AsTag
register = template.Library()
class Setting(AsTag):
options = Options(
Argument('name'),
'as',
Argument('varname... | [
"ebrelsford@gmail.com"
] | ebrelsford@gmail.com |
a35599c00581767172ee0422f2be9516faf72b00 | 09a8d6e247e4575f09d68b0dae3cf0b94255717b | /10 Days Of Statistics/Day_6_The Central Limit Theorem III.py | 9576c905e2602cbb9f8156ab85f6f71aecc6a691 | [] | no_license | ShihabAhmed09/HackerRank-Solutions-Python | 5e648eac81b70b502d77aafb7cf676a72f2583c3 | dc1e25d726ed13e12da7f767e4b4acbadef2bd2a | refs/heads/main | 2023-02-15T05:51:47.753723 | 2021-01-05T18:02:14 | 2021-01-05T18:02:14 | 300,979,036 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from math import sqrt
samples = int(input()) # 100
mean = int(input()) # 500
std = int(input()) # 80
interval = float(input()) # 0.95
z = float(input()) # 1.96
print(round(mean - (std / sqrt(samples)) * z, 2)) # 484.32
print(round(mean + (std / sqrt(samples)) * z, 2)) # 515.68
| [
"49798311+ShihabAhmed09@users.noreply.github.com"
] | 49798311+ShihabAhmed09@users.noreply.github.com |
acfce657a5f6dc699b7e861bc6d4192807952eab | 29c476c037a05170ff2ddef8edd07014d3751614 | /0x02-python-import_modules/2-args.py~ | 503e2d4de3ec348b652ebd2878e569da4a485c0a | [] | no_license | hacheG/holbertonschool-higher_level_programming | a0aaddb30665833bd260766dac972b7f21dda8ea | 535b1ca229d7cf61124a128bb5725e5200c27fbc | refs/heads/master | 2020-07-22T23:09:27.486886 | 2020-02-13T19:41:34 | 2020-02-13T19:41:34 | 207,360,462 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 320 | #!/usr/bin/python3
import sys
leng = len(sys.argv) -1
if leng == 0:
print('{} arguments.'.format(len(sys.argv) -1))
elif leng == 1:
print('{} argument:'.format(len(sys.argv) -1))
else:
print('{} arguments:'.format(len(sys.argv) -1))
for i in range(leng):
print('{}: {}'.format((i + 1), sys.argv[i+1]))
| [
"943@holbertonschool.com"
] | 943@holbertonschool.com | |
3bb76010b0960233a2c6f2f98916a026cc7ec8e6 | 912aa38162e9d1ca80048c0b7849c459a73d8f69 | /django/django_orm/login_proj/apps/login_app/views.py | c7a03450e308545979b713b0eb4501f1372fbc9c | [] | no_license | icylily/CodingDojo-PythonStack | 585ed5c4c04dc8adefdc3cef15699b3bca1bf4a8 | b6f8fe7051b22bc254c099dfd3118d20bcb22bec | refs/heads/master | 2020-04-21T08:03:58.850029 | 2019-02-21T21:45:42 | 2019-02-21T21:45:42 | 169,408,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | from django.shortcuts import render,redirect,HttpResponse
from django.contrib import messages
from .models import *
import bcrypt
# Create your views here.
def index(request):
return render(request,"login_app/index.html")
def process_register(request):
errors = User.objects.basic_validator(request.POST)
... | [
"icylily0116@gmail.com"
] | icylily0116@gmail.com |
f9920292ce08fd9ae715801d495ff37dfcfb1f5e | a4a01e251b194f6d3c6654a2947a33fec2c03e80 | /PythonWeb/Django/1809/Day04/Day03/index/migrations/0002_remove_publisher_website.py | a7b169fc659f2b6307d6a1319f2c81a1d5c22139 | [] | no_license | demo112/1809 | 033019043e2e95ebc637b40eaf11c76bfd089626 | e22972229e5e7831dce2aae0b53ce19a6e3bb106 | refs/heads/master | 2020-04-09T07:10:49.906231 | 2019-02-27T13:08:45 | 2019-02-27T13:08:45 | 160,143,869 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-12-19 02:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('index', '0001_initial'),
]
operations = [
migrations.RemoveField(
model... | [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
26c8cc94d01be587f38133967596ebe299e439ce | 4b9afb1be66dc1989c6dc55359203893c872c519 | /print_shape.py | 08c49b5dfdbf11b6f4ca6190667a8cd43a29959d | [] | no_license | icannos/ImprovedES | f0e1386745dc961fccc3f10bcc8d871fdcb0c0aa | 10e67ece78114edb857fdfe178f62ccc6006cb87 | refs/heads/master | 2020-07-06T12:31:03.742608 | 2019-08-18T14:48:41 | 2019-08-18T14:48:41 | 203,018,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from dinomodels import smallDino
import numpy as np
specimen = smallDino.init_parameters()
specimen1 = smallDino.init_parameters()
lw = []
for w in specimen:
lw.append(np.random.normal(w.astype(np.float64), 0.6))
print(smallDino.distance(specimen, lw))
| [
"maxime.darrin@ens-lyon.fr"
] | maxime.darrin@ens-lyon.fr |
4d906857b0a0e9dfa8285b67d20a1860d4cfa1b5 | 09a57948d490ad06ac339dac8c92c99c3935e7e3 | /University_Study/lab5_7.py | 4ccc4d17b2d31e17726eb2e9fd3ff63927f9ccbb | [] | no_license | HanHyunsoo/Python_Programming | f2962f0e20a2a46b0e22670f98ce7c8b270dadc8 | 52ebbdd6a8e732dfd2380e88d5d0f5c0bd369f07 | refs/heads/master | 2020-03-22T12:04:26.827835 | 2019-09-23T15:58:27 | 2019-09-23T15:58:27 | 140,015,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | """
챕터: day5
주제: 매개변수의 전달 방식 비교
문제:
작성자: 한현수
작성일: 2018.10.4.
"""
# 매개변수의 수정 여부 확인을 위한 함수 정의
# call-by-value 방식으로 매개변수 값을 전달
# 매개변수 값을 복사하여 전달
def modify(n):
n += 1
return n
#실행 시작 부분
k = 10 # 변수 정의
print("k =", k) # 호출 된 변수 값 출력
re = modify(k) # modify 호출 후 결과 값을 re에 저장
print("k =", k) # 호출 후 변수 값 출력
print("re... | [
"gustn4563@gmail.com"
] | gustn4563@gmail.com |
44914255b3110cc9dc31748510d4acddd49b3e65 | 9fe6611dde82daee71ba8aa96c1d84769842f145 | /rbtmq/rabbitmq_client.py | 3a6cb1c59b6a5c7315100e1e732703ade02f5168 | [] | no_license | lishulongVI/whisky | 86d95026788a5b1879323b89e0721141c12d30d3 | f4e8ec324d10069045e91da4c2dfd2d8d91a5e5f | refs/heads/master | 2020-03-08T19:02:38.536853 | 2018-05-07T00:14:58 | 2018-05-07T00:14:58 | 128,334,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # -*- coding: utf-8 -*-
"""
@contact: lishulong.never@gmail.com
@time: 2018/4/7 下午9:27
"""
import pika
from pika import PlainCredentials
__config_mq = {
'host': '192.168.91.129',
'port': 5672,
'virtual_host': '/vhost',
'credentials': PlainCredentials(username='mojito', password='mojito'),
}
connect =... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
d062fb882b10f1de10ba4985a1b0f8bae2d5a15b | 6c905d2875ae419b0c41d587feeb8d63c2a73d78 | /acacia/data/generators/generic.py | 7762e5942ca9a08576d5d6a511e880e195b50444 | [] | no_license | acaciawater/acaciadata | e01f057e6d95a5227299a4f10f3203bd14d6b426 | 51bf7cf5d2dd0368cce9ab6d89286e6d7a9a68ff | refs/heads/master | 2021-04-19T00:16:17.178710 | 2020-02-19T09:53:06 | 2020-02-19T09:53:06 | 48,989,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,970 | py | import logging
logger = logging.getLogger(__name__)
import pandas as pd
from generator import Generator
class Generic(Generator):
''' Generic csv file without header, comma separated, uses standard date/time formatting in first column '''
def __init__(self, *args, **kwargs):
super(Generic,se... | [
"tkleinen@gmail.com"
] | tkleinen@gmail.com |
f531e018dad027a9d68550078b5ae81c6f7e4204 | 41e013c7e304cfbb658b73df42b9a41cea97944b | /analysis/aistplusplus_api/aaaa.py | 2e9efab72972846d8f6c3ccb219a3cef0fc00cdd | [
"Apache-2.0"
] | permissive | serend1p1ty/transflower-lightning | c2a53deae38ff713d7474288db6cac47791d9eb4 | 8f98116041af187a4250e8e1236f5e37e74443eb | refs/heads/main | 2023-07-04T04:19:25.139455 | 2021-08-09T06:55:22 | 2021-08-09T06:55:22 | 385,800,444 | 1 | 0 | null | 2021-07-14T03:18:37 | 2021-07-14T03:18:36 | null | UTF-8 | Python | false | false | 2,469 | py | import pickle
thing = pickle.load(open("SMPL_MALE.pkl","rb"), encoding="latin1")
thing.keys()
thing["kintree_table"][0].shape
thing["kintree_table"][0]
thing["J_regressor"].shape
thing["J"].shape
thing["v_template"].shape
# from aist_plusplus.loader import AISTDataset
from smplx import SMPL
import torch
#%%
# smp... | [
"guillefix@gmail.com"
] | guillefix@gmail.com |
f8fb5c844d635896cf8b16cf8e88c9e92cd0ba96 | fd739ea08496c158ed268d562beb083c207e4d63 | /mozart/xauth/admin.py | e6a3e678d2b976d0da9c40d1249ccb3e3b2a2028 | [] | no_license | Zero-Projects/Mozart | 0c93f3d3b8017a045f69409adff2a9100345822c | 2f73ee3c5dceeb217ba42c89e31f771c2e80cb6d | refs/heads/master | 2021-01-21T19:21:05.451783 | 2015-08-14T04:01:03 | 2015-08-14T04:01:03 | 29,043,195 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib import admin
from .models import ExtendUserSocialAuth
@admin.register(ExtendUserSocialAuth)
class AdminSocialUserName(admin.ModelAdmin):
list_display = ('user', 'network_username')
| [
"mauriciodinki@gmail.com"
] | mauriciodinki@gmail.com |
6f97a3e671c9bfa293578ac291794682b2441a50 | 21b131564f9708d4667dc6dc0043ce6173dfa83c | /leetcode/Container With Most Water.py | 6d366086c9a1a8327f62cba1f2e65505a736bec1 | [] | no_license | hermitbaby/leetcode | 5f1b6854c181adabb00951a56dd5235316ab8a45 | 5b76e2ff61a42cd366447d4a7cf1f4f9c624369b | refs/heads/master | 2020-12-24T08:37:25.846329 | 2017-04-28T23:27:57 | 2017-04-28T23:27:57 | 34,924,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | # Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.
#
# Note: You ma... | [
"lchen@choicestream.com"
] | lchen@choicestream.com |
9513e1b9e904ace88feb1c5d8f8d3855a16dcf36 | 2834e05cfb56e16fb4a20a46d713ee3e7393a30a | /d10/mymodule/stats_word.py | 04987df134b03b6611801db814eff52ed43a3bab | [] | no_license | jayhebe/Python_Data_Analysis | 29680f1a13ca5756b8fed96c75f7bf4ee432851e | 2bd39ce2688ef7fe4340810529f35799eff7de7a | refs/heads/master | 2020-07-04T16:29:59.470195 | 2020-01-14T15:12:42 | 2020-01-14T15:12:42 | 202,339,479 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | from collections import Counter
import jieba
import string
def stats_text_en(en_text):
if not isinstance(en_text, str):
raise ValueError("The method only accepts type str.")
for en_special_word in string.punctuation:
if en_special_word in en_text:
en_text = en_text.replace(en_spec... | [
"jayhebe1983@sina.com"
] | jayhebe1983@sina.com |
07756d0ead6a1f9312c79af8284951cd627f0fcd | 4c3871eff08da80ebde527f04cad9be2eb170079 | /Project_Allien-Mark-01/settings_alien_invasion/setting.py | 10468d8276e172f579238cc41f9432ae00d382aa | [] | no_license | ironsubhajit/ALL_PYTHON | 03fa029e8cd0777fa5947f25cc776dde97f9ace1 | cc3286ca075c3c98ed34d06e31b5c40bafd23fd3 | refs/heads/main | 2023-06-01T14:00:33.232180 | 2021-06-16T03:55:30 | 2021-06-16T03:55:30 | 362,137,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | class Settings:
"""A class to store all settings for Alien Invasion"""
def __init__(self):
"""Initialize the game's settings."""
# Screen Setting
self.screenWidth = 1200
self.screenHeight = 600
self.bgColor = (230, 230, 230)
# Ship settings
self.ship_spee... | [
"mandalsubhajit655@gmail.com"
] | mandalsubhajit655@gmail.com |
e8096475d252e07e0273d29399ad4df6fe087bc9 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /raven/_compat.py | 0bdcda0185b6cd49540ee82bfb1e49d3ad840a4a | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,232 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\raven\_compat.py
from __future__ import absolute_import
import operator
import sys
import types
__author__ = 'Benjamin Peterson <benjamin@python.org>'
__version__ = '1.3.0'
PY2 = sys.version_info[0] == 2
if not PY2:
string_... | [
"le02005@163.com"
] | le02005@163.com |
3ee3a844d3425453f182d88461a04d64ac4f1454 | 2a28a94fc8eb08961e76c61ab73889135153502b | /asposecellscloud/models/legend_entry.py | ece6e1ec5ee581a76f8dfb6b5cea09baab0bb68d | [
"MIT"
] | permissive | aspose-cells-cloud/aspose-cells-cloud-python | 45fc7e686b442302a29a8223e7dbddb71950438c | 270d70ce7f8f3f2ecd9370b1dacfc4789293097e | refs/heads/master | 2023-09-04T01:29:44.242037 | 2023-08-23T13:13:30 | 2023-08-23T13:13:30 | 123,092,364 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,056 | py | # coding: utf-8
"""
<copyright company="Aspose" file="LegendEntrypy.cs">
Copyright (c) 2023 Aspose.Cells Cloud
</copyright>
<summary>
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 re... | [
"roy.wang@aspose.com"
] | roy.wang@aspose.com |
a5270919c2d7fbeb0c181e92d7d2343901400980 | 6256cb2b4a16b3fe99bf9e770d61b9d365ef4c66 | /api_get_an_app.py | 0296aea9ae4b5372aa59caa7fee18be16045d4a9 | [] | no_license | clarkngo/okta-testing | f832d159de51cfbedb7183b94ef88916a23c09df | 7e1dbd6a06e9986a94712a164c16c4d0b3ac2367 | refs/heads/master | 2022-12-07T01:02:04.354068 | 2020-08-29T22:54:47 | 2020-08-29T22:54:47 | 291,361,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import requests
import json
def load_json_file(json_filename):
with open(json_filename) as json_file:
json_data = json.load(json_file)
return json_data
cfg_somecorp = load_json_file("config_somecorp.json")
okta_domain = cfg_somecorp["okta_domain"]
api_key = cfg_somecorp["api_key"]
headers = {
... | [
"clarkngo@gmail.com"
] | clarkngo@gmail.com |
f3e3601c22625748b94bda784802c82e54bc1d58 | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2L/2L-2O_wat_20Abox/set_1.py | 37166173e66bbde0e86e2a4aee9fd82a464d6e32 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2L/wat_20Abox/ti_one-step/2L_2O/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_1.in'
temp_pbs = filesdir + 'temp_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
aa4c459fbff3206a83b5dc9d012c92c0771ae374 | b403c7fe56209472855dff451f0b6283d5471008 | /Supplemental_Material/PythonProjects/9. DATA STRUCTURES/Lesson6_listsDataStructures.py | ba2b8c52189491dd3ee014ea59aa67b28feae036 | [] | no_license | Sandbox4KidsTM/Python_Basics | 842bde52796896e913fdb5cc349034c52092555f | 68c95547ec1567958fc8069e6a4bb119e436211a | refs/heads/master | 2020-03-23T01:06:29.363196 | 2018-08-10T04:32:58 | 2018-08-10T04:32:58 | 140,901,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 3 20:37:28 2017
@author: Sandbox999
"""
"""
lists are one of the popular data structures in Python
they store an ordered/indexed list of items that you can access
lists are MODIFIABLE
"""
filelist = [2015, 2016, 2017]
print(type(filelist))
print(fileli... | [
"mitchslabrenz@gmail.com"
] | mitchslabrenz@gmail.com |
1128fd7d2acc0bedbba4773cc4d0c126df739eb0 | fae94c0dcb251ea5854e33e81369140ca75cfaf5 | /src/bloombox/schema/products/Plant_pb2.py | eb8ca1409ebf85e46a5cb4ea3a41899511ffa639 | [
"Apache-2.0"
] | permissive | fagan2888/Python | 425654b18055233949aa7e6181e0b2652975e185 | 1b125fbdf54efb390afe12aaa966f093218c4387 | refs/heads/master | 2020-12-13T14:17:59.452500 | 2018-06-18T16:16:30 | 2018-06-18T16:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 5,796 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: products/Plant.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import messag... | [
"sam@momentum.io"
] | sam@momentum.io |
c819f823c70e2f2014c9ed1a0b1cb88d0a252412 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.POV/Sans_8/pdf_to_json_test_Latn.POV_Sans_8.py | a3bb40d20f8b60fabd8ba8474ea4487109e76b0e | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.POV/Sans_8/udhr_Latn.POV_Sans_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
71e4141e5eaa1e7b9c76f690c905410348fd8827 | ac989f6c5f8e5108598fe6ee1e79c8b515acede3 | /tests/autopilot/Haptics/__init__.py | 67b6f47b4958e4c0c3da0a9f8e2a9d467db3a959 | [] | no_license | UbuntuChina/haptics | d23def93b8362557b9f96e6748d9ebc8416c0da9 | 4d27f7e659a8c136ea0f2064c24092f65f4157de | refs/heads/master | 2020-05-25T13:36:10.022196 | 2016-03-09T04:07:56 | 2016-03-09T04:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
"""Ubuntu Touch App Autopilot tests."""
import os
import ubuntuuitoolkit
from autopilot import introspection
from autopilot.matchers import Eventually
from testtools.matchers import Equals
from ubuntuuitoolkit import base
PACKAGE_ID = 'hap... | [
"liu_xiao_guo@yahoo.com"
] | liu_xiao_guo@yahoo.com |
16a99a1ff86c776cbae269319166bb68a94961ae | aa067ee0d0e325916a3ea8a61bce553277e6585a | /Font Info/Find and Replace In Instance Parameters.py | 4d6f4ba8f66e64b1f916194b32fb868e2b2987bc | [
"Apache-2.0"
] | permissive | m4rc1e/Glyphs-Scripts-1 | a5be9e25b0d45b798184ac65ad17c46c443ba8f0 | 735ab53a1454dd679982ba9cec35ce9343f23e3e | refs/heads/master | 2020-09-01T14:18:57.667131 | 2019-10-29T14:56:25 | 2019-10-29T14:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,777 | py | #MenuTitle: Find and Replace in Instance Parameters
# -*- coding: utf-8 -*-
__doc__="""
Finds and Replace in Custom Parameters of selected instances of the current font or project file.
"""
import vanilla
class FindAndReplaceInInstanceParameters( object ):
def __init__( self ):
# Window 'self.w':
windowWidth = ... | [
"res@glyphsapp.com"
] | res@glyphsapp.com |
258986cca4ced22ea8ef04065e5c7d9fd5d6a184 | b385fc2f18bbb43ec1bca1606b62ae83f33dcb2d | /Python Fundamentals/Final_Exam_Prep/01. Change Bureau.py | 59865f4b92e0f2e6f34296ddb0d53b785df211e3 | [] | no_license | rishinkaku/Software-University---Software-Engineering | d9bee36de12affc9aed7fcc0b8b6616768340e51 | b798a0c6927ef461491c8327451dd00561d836e4 | refs/heads/master | 2023-06-10T19:52:51.016630 | 2021-07-08T00:45:06 | 2021-07-08T00:45:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | bit = int(input())
uan = float(input())
comision = float(input())/100
bit = bit*1168 / 1.95
uan = (uan*0.15)*1.76
uan = uan/1.95
total = bit+uan
comisin = total*comision
print(f"{total-comisin:.2f}") | [
"66394357+DimAntDim@users.noreply.github.com"
] | 66394357+DimAntDim@users.noreply.github.com |
60e3ef5e4859894e29b1ab1a00d1a3a99b160f7e | 62cec11c95d90be3bf84e29d76ee3e3785d9f59e | /237_delete_node_in_linked_list/deleteN.py | d925e8f1a8f5101206857f15cb398f78453b33a2 | [] | no_license | Jody-Lu/Array | faec40f1ec18968dd3739c9f6cb6039aed86e7e5 | eaee6a529705b5973cb502d2fcb607ab0bedec08 | refs/heads/master | 2020-04-12T09:06:43.860700 | 2016-11-19T21:33:47 | 2016-11-19T21:33:47 | 63,844,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def deleteNode(self, node):
"""
:type node: ListNode
:rtype: void Do not return anything, modify node in-place instead
"""
next_node = node.next
n... | [
"b00901192@ntu.edu.tw"
] | b00901192@ntu.edu.tw |
24b218e689b1e95be7645603a1d3db29f5b63f17 | 6f4a0e9d50879fa2ebef2beb375a56164acdc514 | /linkedin/web-scraping/user-details/src/formula/formula.py | 21aa5d208d5c1072df117bfd06331df5784256a6 | [] | no_license | toniall/formulas-python | dacf7a26faab5cfc992bc2d7d65c526b1916a1a0 | 8c48441fdc6389e7b1f317e76c02b5ed02f5b50c | refs/heads/master | 2023-03-17T04:39:13.760353 | 2021-02-28T23:35:13 | 2021-02-28T23:35:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,410 | py | #!/usr/bin/python3
from selenium import webdriver
import time
import re
def run(email, password, names, path):
#Open Chrome web
driver = webdriver.Chrome(executable_path='{}/chromedriver'.format(path))
driver.get('https://www.linkedin.com/')
#Login username/password
email_box = driver.find_element... | [
"guillaume.falourd@zup.com.br"
] | guillaume.falourd@zup.com.br |
802a00ab1fa4a7f26c2c4aa286e4a117dde1b505 | 99a88b38e69119c6a6cd686a6f15df78e9162c77 | /Userprofile/migrations/0003_auto_20200413_1428.py | d5a52e7c23720cb3bca50b5d1c561edd77204390 | [] | no_license | khanansha/econ_healthcare | fd3cfa234c7dc66d6905ae5546431c12abcc0f7c | 6619774b56cd91550af5c1e9c966a7e3cd72fea8 | refs/heads/master | 2022-04-23T21:57:04.441511 | 2020-04-27T06:34:32 | 2020-04-27T06:34:32 | 256,525,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.2.10 on 2020-04-13 08:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Userprofile', '0002_auto_20200413_1233'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='DOB',... | [
"anjumkhan88987@gmail.com"
] | anjumkhan88987@gmail.com |
0d6b3fc1af5b52d79ab530b0590abe7e5a89099a | 587f40518f47f9759f6af73f45ebc2cb121cef09 | /tutorial/settings.py | de18ff1a11ed84b241a9c89ca2d4574f25f62cee | [] | no_license | argen87/Tutorials | ca230357e8ac3d34a2f3257425755211da5e174c | 3ff0dea3885d454337f8ba323afd18ea84b11296 | refs/heads/master | 2023-05-07T19:20:42.605175 | 2021-05-29T05:14:02 | 2021-05-29T05:14:02 | 371,880,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"you@example.com"
] | you@example.com |
8671cd96cca1eac7d1e2bba594e461bbfc1b70ab | daaa5e34bcc9dca9c96f2d5fdefc7c74dd289602 | /main.py | be26113aa062ae6216d02c2e08bdaf9a7cd0e2f2 | [
"MIT"
] | permissive | chauhan-utk/svm-pytorch | 6e32b78ffdeb78bed5a6afae6cee723958a81ce7 | 59cfc8f4df81948e528f10d403ee645df4d24bf0 | refs/heads/master | 2021-04-30T04:44:32.128637 | 2017-08-17T09:37:00 | 2017-08-17T09:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | #!/usr/bin/env python
# coding: utf-8
#
# Author: Kazuto Nakashima
# URL: https://github.com/kazuto1011
# Created: 2017-08-16
import argparse
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import torch
import torch.nn as nn
import torch.optim as optim
import torchnet as tnt
from skle... | [
"k_nakashima@irvs.ait.kyushu-u.ac.jp"
] | k_nakashima@irvs.ait.kyushu-u.ac.jp |
a4d6b9ec2a9082d4e0a640d8c7c31b704b47d838 | 80f036b859323fdafcca7791ffbc158c56862dc4 | /realty/management/commands/populate_random.py | bd46e0192d65a3c9fca9f796abe9a459d3ef5265 | [
"Apache-2.0"
] | permissive | DalavanCloud/property-finder | 4b3033aeaa5d6dada7a322d0026f988e54820948 | 68e8e6b3c0e3af54f3e3089d3bed0b5d4b75b561 | refs/heads/master | 2020-03-30T07:13:08.507884 | 2018-02-12T01:06:35 | 2018-02-12T01:06:35 | 150,923,609 | 1 | 0 | Apache-2.0 | 2018-09-30T02:49:45 | 2018-09-30T02:49:45 | null | UTF-8 | Python | false | false | 4,257 | py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"steve@jupo.org"
] | steve@jupo.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.