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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eeaa45b85f2ad11bc1462bbc6fe5dd16a502735b | 2c0993aac7ad3848d343ffb4f838a5bda8f740f3 | /funcation_Python/harshad.py | 019eb9bed9d0b4ecbe37f410ebf3b95bc61b6fa5 | [] | no_license | Praveen-Kumar-Bairagi/Python_Logical_Quetions | 6e20e04bf737f8f4592be76694b54470d5d79e7a | 4e0f3262cf183f56e5a57157f0593a454923317f | refs/heads/master | 2023-08-22T21:40:36.343811 | 2021-10-24T05:21:43 | 2021-10-24T05:21:43 | 420,594,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | def is_harshad_num(num):
num2=num
add=0
while 0<num:
a=num%10
add+=a
num=num//10
if num2%add==0:
return "true"
else:
return "False"
num=int(input("enter the num"))
print(is_harshad_num(num))
| [
"you@example.com"
] | you@example.com |
a4badd11e840906a2c0e96b040d2ad0c1d23965d | e631f155b30122d813678fd8dd98004085b9579e | /setup.py | 0d6bb32b8676adacd2c8026933b7605a6ce3bab9 | [
"MIT"
] | permissive | SidSachdev/pycrunchbase | 4efd716c58b2bdbee379c5f4d9fd30c310d43502 | f0a9b945bc5d3f7b3827820bd28a75265c28f756 | refs/heads/master | 2020-12-14T18:53:51.512180 | 2015-09-28T01:17:19 | 2015-09-28T01:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import, print_function
import io
import os
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import relpath
from os.path import splitext
from setuptools import f... | [
"ngzhian@gmail.com"
] | ngzhian@gmail.com |
9a552b56252d358c502b6dbb7ae63745a4fca22c | 2452bdfb25628e55190c46694e156bf4b1459cf0 | /prejudge/views.py | 1dcd4f1dae49f5c5ed8bf029726d85ea47c4ae9a | [] | no_license | bobjiangps/bug_prejudge | 0da3fbeab9dae1620330d16852d3e8792def56d5 | aeadd84476de0cf10a0341d694888f768e6c3706 | refs/heads/master | 2023-03-01T14:43:44.904473 | 2023-02-13T10:09:59 | 2023-02-13T10:09:59 | 195,923,513 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from prejudge_process import PrejudgeProcess
from rest_framework.views import APIView
from rest_framework.response import Response
class PrejudgeRound(APIView):
def get(self, request, round_id):
p = PrejudgeProcess(round_id=round_id)
result = p.run()
return Response(result)
class Prejud... | [
"jbsv43@sina.com"
] | jbsv43@sina.com |
eac58c5c03b7ab9050d3193746a20cb1e83c733e | d2e78c7c8c94cd2ef16a0b77eb9852312ead4ee7 | /elementpath/xpath2/xpath2_functions.py | ad67a79b39019425263b4d8e465394d1f68c8e11 | [
"MIT"
] | permissive | evhayes/elementpath | fa72cfba0c761b0ddb7100d36101b5c117e00fee | a74ce89c04622d8ae98ab739886c3e46f87b024e | refs/heads/master | 2023-08-04T05:16:09.136086 | 2021-09-16T14:00:22 | 2021-09-16T14:01:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,019 | py | #
# Copyright (c), 2018-2021, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Davide Brunato <brunato@... | [
"brunato@sissa.it"
] | brunato@sissa.it |
81c0be1f662045795975963953f6ca78e7b13dc9 | e173098f9ecd39bef112432a8bb7ed7fb1209fe9 | /wfm_client/migrations/0017_auto_20160914_1241.py | b48fd76cef7c8e48e380eb28be2f3b3e3694d74f | [] | no_license | isaiahiyede/inventory | 51b639257c14e257ababae047d83caa93b809893 | cedecc5b6d22d977b4bdac00e5faf775da7382ab | refs/heads/master | 2021-08-29T08:41:02.062763 | 2017-12-13T15:46:57 | 2017-12-13T15:46:57 | 114,137,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-09-14 12:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wfm_client', '0016_item_item_edited_by'),
]
operations = [
migrations.AlterF... | [
"a.ajibike@zaposta.com"
] | a.ajibike@zaposta.com |
d7148b6c3654a2afeb0b18046d3d86b65ce7fde1 | edd75bcf8c450dfce6b26b92b4fc012b399bd319 | /Exe41_dividas_com_juros.py | 83923f6847e4b9e94b7bd00a054b371381f67bc8 | [
"MIT"
] | permissive | lucaslk122/Exercicios-python-estrutura-de-repeticao | ac130cf9f6e78aff50e15e41aa1badfba55d6c8b | 1f203918e9bb8415128bb69f515240057b118a14 | refs/heads/main | 2022-12-20T17:08:43.105838 | 2020-10-20T14:08:15 | 2020-10-20T14:08:15 | 304,305,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | print("""Quantidade de Parcelas % de Juros sobre o valor inicial da dívida
1 0
3 10
6 15
9 20
12 25""")
divida = float(input("Dig... | [
"71664028+lucaslk122@users.noreply.github.com"
] | 71664028+lucaslk122@users.noreply.github.com |
f1876448cae5a208714bf6e18d72d3522170ef33 | 9576d5a3676b09f3b892083988cfbe6985a9ef4a | /resender.py | 465639185d7a50c7a097a50fe6b58cd6e0360243 | [] | no_license | ual-cci/music_gen_interaction_RTML | da4d2a8c754423d223ca342bac577967e291ad71 | 39419d5bd53ff685a2a9efcf4f373a624c8b28f9 | refs/heads/master | 2021-09-04T09:41:55.976149 | 2021-08-16T19:58:54 | 2021-08-16T19:58:54 | 215,372,452 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py |
"""
def resender_function(arr):
pass
"""
from autoencoder.autoencoders_handler import process_using_VAE, to_latent_vector_using_VAE
def resender_function(arr):
# Send one frame only - the last generated one
#send_one_frame(arr)
send_all_gen_frames(arr)
#encode_spectrogram_VAE(arr)
#arr = pro... | [
"previtus@gmail.com"
] | previtus@gmail.com |
65124adc85975262069df0af5fa469ff0f938db3 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncorpul.py | f663c3de78ca7c9ee1c5fec007032320a6f1f46a | [] | 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 | 426 | py | ii = [('LeakWTI3.py', 1), ('AdamWEP.py', 1), ('ClarGE2.py', 1), ('LyttELD.py', 1), ('CoolWHM.py', 1), ('CrokTPS.py', 1), ('ClarGE.py', 7), ('AinsWRR.py', 1), ('MedwTAI.py', 1), ('GodwWLN.py', 1), ('MedwTAI2.py', 1), ('HogaGMM.py', 1), ('CoolWHM3.py', 3), ('DequTKM.py', 1), ('FitzRNS.py', 2), ('FerrSDO.py', 1), ('RoscTT... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
7bb2e73006c6ee160b2255fc289034c470d89208 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03126/s820418794.py | c6ce4db220fdbf39b8cd22445a417e1ceea7b485 | [] | 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 | 172 | py | n, m = map(int, input().split())
foods = [0] * (m + 1)
for i in range(n):
k, *a = map(int, input().split())
for j in a:
foods[j] += 1
print(foods.count(n)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f9f75ef1594181d3bfa18a88bdb0291d5d66b770 | 2c565dadbf0f02fe0f08c2b2111bf71140a018dc | /convert.py | 47f7d78c53a21d89a8e24ea0245ae57015705dd7 | [] | no_license | nottrobin/discoursifier | e30396df2c13e9a9481149ac9f2f2cd6e820fddb | b803900b676ea56e9bced58044662c35f0616a42 | refs/heads/master | 2020-04-22T09:52:55.556816 | 2019-02-12T09:05:08 | 2019-02-12T09:05:08 | 144,270,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | #! /usr/bin/env python3
from glob import glob
import markdown
import re
import json
filepaths = glob("**/*.md", recursive=True)
def convert_notifications(content):
"""
Convert old-style notifications:
!!! Note "title":
this is some note contents
Into new style:
[note="... | [
"robin@robinwinslow.co.uk"
] | robin@robinwinslow.co.uk |
491148774ac1fa2b690aa1334fcef76f3d45bf60 | ac69799f105ec928ecfd5e1aa67062b3e19dead3 | /sdk/python/tests/compiler/testdata/tekton_pipeline_conf.py | 481b38418982617f055d134e0b11f7f8a6f2541a | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | kubeflow/kfp-tekton | 5326373a4056b2b3ad78fc9199cae91c9a084282 | 136e7a93528b1b5845dcab058d46272b15af6c54 | refs/heads/master | 2023-08-05T07:25:29.697741 | 2023-08-03T16:04:20 | 2023-08-03T16:04:20 | 217,148,415 | 149 | 111 | Apache-2.0 | 2023-09-11T18:21:37 | 2019-10-23T20:33:01 | TypeScript | UTF-8 | Python | false | false | 2,470 | py | # Copyright 2021 kubeflow.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
aae3482d533ac325cf980331aa0c2e91802bc44c | 625daac7e73b98935f9fe93e647eb809b48b712e | /Arcade/The_Core/isSmooth.py | 3866fb0c2934491668610ab80dcd586c71aad324 | [] | no_license | aleksaa01/codefights-codesignal | 19b2d70779cc60f62511b6f88ae5d049451eac82 | a57a5589ab2c9d9580ef44900ea986c826b23051 | refs/heads/master | 2022-03-15T04:46:40.356440 | 2019-12-08T15:41:37 | 2019-12-08T15:41:37 | 112,034,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | def isSmooth(arr):
first = arr[0]
last = arr[-1]
if len(arr) % 2 == 0:
middle = arr[len(arr) // 2 - 1] + arr[len(arr) // 2]
else:
middle = arr[len(arr) // 2]
return first == middle == last
"""
We define the middle of the array arr as follows:
if arr contains an odd number of el... | [
"some12curious@gmail.com"
] | some12curious@gmail.com |
4a2196a9ecc0a0210ca916a9f75a99c30dd18bba | c268dcf432f3b7171be6eb307aafbe1bd173285a | /reddit2telegram/channels/~inactive/comedynecrophilia/app.py | 32bb06036f62836443d6cbaa929a8408c8d36c71 | [
"MIT"
] | permissive | Fillll/reddit2telegram | a7162da2cc08c81bcc8078ea4160d4ee07461fee | 5d8ee3097e716734d55a72f5a16ce3d7467e2ed7 | refs/heads/master | 2023-08-09T10:34:16.163262 | 2023-07-30T18:36:19 | 2023-07-30T18:36:19 | 67,726,018 | 258 | 205 | MIT | 2023-09-07T02:36:36 | 2016-09-08T17:39:46 | Python | UTF-8 | Python | false | false | 155 | py | #encoding:utf-8
subreddit = 'comedynecrophilia'
t_channel = '@comedynecrophilia'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| [
"git@fillll.ru"
] | git@fillll.ru |
7a69ab2b1e9995247ed2756773d1d9f7a656de28 | fcb4a07f27494497ef03e157de7ab50fa4e9375f | /core/admin.py | e76cfa38f98048dcac69da644072a4683ef1269b | [] | no_license | 21toffy/IMA | 2ff452025fad908270d2aab0bafa3ee4c26c7710 | 03770d49578817e1466cedc8e09df1840f5349b0 | refs/heads/master | 2023-03-02T02:15:58.778086 | 2021-02-14T16:08:01 | 2021-02-14T16:08:01 | 298,578,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.contrib import admin
from .models import HomeView
from .models import ViewCount
admin.site.register(HomeView)
admin.site.register(ViewCount) | [
"oketofoke@gmail.com"
] | oketofoke@gmail.com |
7a6a61c44bb4e6e43038823fc2ef01793c1f76ee | a6d77d00163b80dfb6d34ee254f9ba049290e43e | /fabfile.py | c58c9178b11c15c41c67b72a520ac88bcb192822 | [
"Apache-2.0"
] | permissive | tswicegood/armstrong.core.arm_layout | 6f1cf6c9dc2c9a4030348fa88972eb8a57682705 | 70850a3068660b51a93816e83ecee73637c781c0 | refs/heads/master | 2021-01-16T21:04:18.735887 | 2011-07-20T20:33:59 | 2011-07-20T20:33:59 | 2,080,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 365 | py | from armstrong.dev.tasks import *
settings = {
'DEBUG': True,
'INSTALLED_APPS': (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'armstrong.core.arm_layout',
'lettuce.djang... | [
"development@domain51.com"
] | development@domain51.com |
aa4ae4645bd75fa85f73bee597894e82e3e0ac43 | 209c876b1e248fd67bd156a137d961a6610f93c7 | /python/paddle/fluid/tests/unittests/test_basic_gru_unit_op.py | ae3e6dc4f77d2653909e2ea5e62135ab3859e314 | [
"Apache-2.0"
] | permissive | Qengineering/Paddle | 36e0dba37d29146ebef4fba869490ecedbf4294e | 591456c69b76ee96d04b7d15dca6bb8080301f21 | refs/heads/develop | 2023-01-24T12:40:04.551345 | 2022-10-06T10:30:56 | 2022-10-06T10:30:56 | 544,837,444 | 0 | 0 | Apache-2.0 | 2022-10-03T10:12:54 | 2022-10-03T10:12:54 | null | UTF-8 | Python | false | false | 4,838 | py | # Copyright (c) 2019 PaddlePaddle Authors. 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 appli... | [
"noreply@github.com"
] | Qengineering.noreply@github.com |
ff9ea866ff4b14d685a908c860c705eb0ba43a96 | 0a7223017a2e2f83fa15f5ffbe2355c92ab1e62d | /landscapes_assignment/settings.py | 399c2d01e8c170cc8c50b4e0f117d1558955e1cc | [] | no_license | mazurbeam/landscapes | 7d033dad59e3cbceae1c2ca563de726f5286ae48 | 94085cf5cc8f7f40a93c4d4bb5ab652a87bfa448 | refs/heads/master | 2021-01-01T15:26:38.899601 | 2017-07-18T15:43:59 | 2017-07-18T15:43:59 | 97,616,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | """
Django settings for landscapes_assignment project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
""... | [
"mazurbeam@gmail.com"
] | mazurbeam@gmail.com |
b87776d03301cf9cd4a5dbd6cedc5763d2a60525 | 1375f57f96c4021f8b362ad7fb693210be32eac9 | /kubernetes/test/test_v1_subject_access_review.py | 813eff18c4f80272dcd42bfa8903f85d0e4fa9b2 | [
"Apache-2.0"
] | permissive | dawidfieluba/client-python | 92d637354e2f2842f4c2408ed44d9d71d5572606 | 53e882c920d34fab84c76b9e38eecfed0d265da1 | refs/heads/master | 2021-12-23T20:13:26.751954 | 2017-10-06T22:29:14 | 2017-10-06T22:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
af32c19a05a7ba77388de6a5ca7225230bb65d65 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /pdMwiMpYkJkn8WY83_6.py | eb07438f90569faa3aa2f1d20414768ac52e5228 | [] | 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 | 424 | py | """
Write a function that **recursively** determines if a string is a palindrome.
### Examples
is_palindrome("abcba") ➞ True
is_palindrome("b") ➞ True
is_palindrome("") ➞ True
is_palindrome("ad") ➞ False
### Notes
An empty string counts as a palindrome.
"""
def is_palindrome(wor... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c1225ac0b8b80664c5c7e7d70b5f53f12f8fd153 | 0b3c5260cd5c33a1beccc5710a5d0fd097a5ea15 | /anchore_engine/db/db_archivedocument.py | b13024780094cf487f4e5bfefd708f78d7b91e2c | [
"Apache-2.0"
] | permissive | omerlh/anchore-engine | fb2d7cb3d8bd259f6c973b450fbaa2c2e00497f0 | 669a0327f8baaee3f5c7c64b482909fe38830d80 | refs/heads/master | 2021-09-02T12:48:51.661648 | 2018-01-02T19:26:47 | 2018-01-02T19:26:47 | 116,236,136 | 1 | 0 | null | 2018-01-04T08:41:39 | 2018-01-04T08:41:39 | null | UTF-8 | Python | false | false | 4,670 | py | import time
from anchore_engine import db
from anchore_engine.db import ArchiveDocument
# specific DB interface helpers for the 'services' table
def add(userId, bucket, archiveId, documentName, inobj, session=None):
if not session:
session = db.Session
our_result = session.query(ArchiveDocument).fil... | [
"nurmi@anchore.com"
] | nurmi@anchore.com |
079c862affe8e445280aaa0c46eb37b192e9b4c3 | ffe59803cd35129ea317a53b2b4a754bfb9a200d | /longest_common_prefix.py | 6591f14b796eff634370383a695dd8b356ff4109 | [] | no_license | codyowl/leetcode | 78a7a96c54d6592c34987620793eed3dcf1fe1fd | 706924944c6b8d94a7247de13ffb9b1d715496fd | refs/heads/master | 2020-06-16T10:19:09.477053 | 2019-08-30T13:37:14 | 2019-08-30T13:37:14 | 195,537,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | class Solution(object):
def longestCommonPrefix(self, strs):
"""
:type strs: List[str]
:rtype: str
"""
prefix_first = []
if len(strs) == 1:
for data in strs:
if len(data)>0:
return strs[0][0]
else:
return ""
else:
none_finder = [data for data in strs if len(data)>0]
if len(... | [
"codyowl@gmail.com"
] | codyowl@gmail.com |
9f9485d4d8b84ea56512f623d103aa2a35a1a322 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/ZODB-Zope-3.2.1/ZODB/FileStorage/fspack.py | 24eaa776b4a3b4f3496260e9aeae91ce4db9d7d0 | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,676 | py | ##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
ccb13a5e3d845bf09eec3fb40555e403ece082c2 | 677d142be25f5904b4ab418ce5ffa1387fe0f695 | /app/config.py | a0f945c9dbd2036423157c7b61e20d7f0375030d | [
"MIT"
] | permissive | mfannick/pitch | ee2ded6a70d6f26e5fa34f635ca5821766006b20 | af321e36d2ad23bc2129b4d6cc41c7779bdea063 | refs/heads/master | 2022-10-12T16:07:54.439498 | 2019-09-30T07:53:03 | 2019-09-30T07:53:03 | 210,202,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | import os
class Config:
'''
General configuration parent class
'''
SECRET_KEY ='Fannick'
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://annick:escofavi@localhost/pitch'
UPLOADED_PHOTOS_DEST ='app/static/photos'
# simple mde configurations
SIMPLEMDE_JS_IIFE = True
SIMPLEM... | [
"mfannick1@gmail.com"
] | mfannick1@gmail.com |
1d6d23ca4b07fa9ea47cddf4a29db00d629a4c56 | 7c081ac61722f11de1758c9701662f85c1bb802c | /pysigep/webservices/webservice_base.py | 270eeb115b16b5f8f51c39007bedbef3ee9fb66f | [
"MIT"
] | permissive | trocafone/pysigep | 8a3ad14febce45bc54aea721b481c87bfcd92f50 | a899fb85e9195ac8686313e20c8bec7c03bde198 | refs/heads/develop | 2021-01-16T22:07:06.093299 | 2016-07-05T13:57:20 | 2016-07-05T13:57:20 | 62,578,970 | 1 | 0 | null | 2016-07-05T13:57:22 | 2016-07-04T17:40:17 | Python | UTF-8 | Python | false | false | 2,803 | py | # -*- coding: utf-8 -*-
# #############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Michell Stuttgart
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software... | [
"michellstut@gmail.com"
] | michellstut@gmail.com |
84143160260f1dd336ed44bdb166a188128d844e | adcbefa6cba639ec8c8eb74766b7f6cd5301d041 | /coffeehouse_nlpfr/translate/ibm_model.py | 5ea12030cfdd157ed39846bc43e3a1cde15a84a8 | [] | no_license | intellivoid/CoffeeHouse-NLPFR | b39ae1eaeb8936c5c5634f39e0a30d1feece6705 | 8ad1b988ddba086478c320f638d10d0c0cacca4c | refs/heads/master | 2022-11-28T02:13:40.670494 | 2020-06-07T04:02:00 | 2020-06-07T04:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,039 | py | # -*- coding: utf-8 -*-
# Natural Language Toolkit: IBM Model Core
#
# Copyright (C) 2001-2019 NLTK Project
# Author: Tah Wei Hoon <hoon.tw@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
Common methods and classes for all IBM models. See ``IBMModel1``,
``IBMModel2``, ``IBMModel3``,... | [
"netkas@intellivoid.info"
] | netkas@intellivoid.info |
eb2c401bccb6319a30e48d31688eae4f130ad2be | e0c378f27462cb00b656473cbe0b172886741818 | /src/flash/image/embedding/__init__.py | 30f7a15003c7c0e8b58925b300084fe61302bb93 | [
"Apache-2.0"
] | permissive | Lightning-Universe/lightning-flash | d0c955d7fdf962175750d154b3a369a483b8d188 | fc6c97a43d65b49561c896bf05bc1c75536d0dc0 | refs/heads/master | 2023-08-17T12:03:52.563905 | 2023-08-14T12:35:10 | 2023-08-14T12:35:10 | 333,857,397 | 58 | 12 | Apache-2.0 | 2023-09-11T14:43:06 | 2021-01-28T18:47:16 | Python | UTF-8 | Python | false | false | 68 | py | from flash.image.embedding.model import ImageEmbedder # noqa: F401
| [
"noreply@github.com"
] | Lightning-Universe.noreply@github.com |
716098a8f7469e8ffcbdd834a9aae73b196fa55b | 5efc1623d9e06d9b0caa104630d2b5d7610fb19d | /learn/deep_reinforcement_learning_course/deep_q_doom.py | d44d9b1f72a46b6b1336e6e4f9410ed328773ead | [] | no_license | techyajay/phd | 20fd01535b5147b7ef86aa19f6683fa01dca4404 | a1348bb6645a67a1f09aef7155c0db1720291bb6 | refs/heads/master | 2020-04-13T19:37:35.060245 | 2018-12-18T13:44:30 | 2018-12-18T13:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | """Deep Q learning for the game Doom.
See: https://medium.freecodecamp.org/an-introduction-to-deep-q-learning-lets-play-doom-54d02d8017d8
"""
import pathlib
import typing
import skimage
import vizdoom
from absl import app
from absl import flags
from absl import logging
from labm8 import bazelutil
FLAGS = flags.FLA... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
24bef4da51b7e473f483cd9fe30280a5be5bb0ea | d6851011cf9669036078a848a55f3dab7528bbd1 | /tests/mock_commands/ghdl | 806201636fad5ce30b2824afa73edbd89f47b119 | [
"BSD-2-Clause"
] | permissive | msfschaffner/edalize | 442743f6c2f41da034482b69c5276efd1a6a40ad | d6757f36c6fc804f1876c907d0df55485937c0f2 | refs/heads/master | 2022-11-30T15:52:48.724111 | 2020-04-13T16:33:20 | 2020-04-16T10:35:00 | 256,582,248 | 1 | 0 | BSD-2-Clause | 2020-04-17T18:38:44 | 2020-04-17T18:38:43 | null | UTF-8 | Python | false | false | 441 | #!/usr/bin/env python
import os
import sys
cmd_file = 'analyze.cmd' if sys.argv[1] == '-i' else 'elab-run.cmd'
with open(cmd_file, 'a') as f:
f.write(' '.join(sys.argv[1:]) + '\n')
if sys.argv[1] == '-i':
for arg in sys.argv:
if arg.startswith('--std'):
std = arg.split('=')[1]
... | [
"olof.kindgren@gmail.com"
] | olof.kindgren@gmail.com | |
8232a25f494ea58fe5f4743fe20ae90eea3baca4 | 087f7ec4bb11bca64f29eac49df1104d885067b4 | /midiscenemanager/midiio.py | cf0f27661d1cb8cb11b1990db844f4a85846ac42 | [
"MIT"
] | permissive | SpotlightKid/midiscenemanager | 38dd7e5299fc97fae3de6e8ecfde934c26974da0 | a4f9268ba73f575d5d3313eaf256eb9cebdcbdd0 | refs/heads/master | 2023-06-01T15:21:16.520511 | 2023-05-21T14:44:33 | 2023-05-21T14:44:33 | 111,223,358 | 2 | 0 | null | 2017-11-26T15:26:59 | 2017-11-18T17:06:18 | Python | UTF-8 | Python | false | false | 6,597 | py | # -*- coding: utf-8 -*-
#
# midiio.py
#
"""Wrapper clas for rtmidi.MidiOut to facilitate sending common MIDI events."""
import binascii
import rtmidi
from rtmidi.midiconstants import *
from rtmidi.midiutil import open_midioutput
from .sequencer import SequencerThread
def parse_sysex_string(s):
return binascii.... | [
"chris@chrisarndt.de"
] | chris@chrisarndt.de |
edaf6548d496e07a077b970fcdf68d7076a424c7 | 716d9e678c884fd9e9f07bbf57c7a0ec684f8255 | /foodboxes/app_items/migrations/0001_initial.py | 8934997852b104c017f9a76a5e7ef50064a6e946 | [] | no_license | arifgafizov/foodboxes_v.2.0 | e6716ba3ab3c0dd77bac212b90db8d710f46d495 | 1093a520e391fd409ba18bab341d6ffbec1104c7 | refs/heads/master | 2023-02-17T21:20:32.491143 | 2021-01-21T19:57:26 | 2021-01-21T19:57:26 | 330,394,733 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # Generated by Django 3.1.5 on 2021-01-10 16:33
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(aut... | [
"agafizov@gmail.com"
] | agafizov@gmail.com |
0006a8010b47859f57692841a577d972fa0ffe63 | fcd02cbf7fae38f0b0d6a95deedc49d5993927da | /models/backbone/__init__.py | 5d8d9e12d55ba6f87789786da9b2fb6e2c00b36a | [
"Apache-2.0"
] | permissive | Highlightbeast/DBNet.pytorch | 7d5082c66516319fb8a02855c1a03be6c122a143 | d95a7dbd37b031f2cf1ca33c63f5658d29803242 | refs/heads/master | 2022-09-21T02:51:33.104828 | 2020-06-05T07:28:01 | 2020-06-05T07:28:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # -*- coding: utf-8 -*-
# @Time : 2019/8/23 21:54
# @Author : zhoujun
__all__ = ['build_backbone']
from .resnet import *
from .resnest import *
from .shufflenetv2 import *
from .MobilenetV3 import MobileNetV3
support_backbone = ['resnet18', 'deformable_resnet18', 'deformable_resnet50',
'resnet... | [
"572459439@qq.com"
] | 572459439@qq.com |
abcd8f62143d26c371224047ec2538617405b71b | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1627+006/sdB_pg_1627+006_lc.py | 3d8cb550156a2ce741e67bc7f9c22da1c2ea971c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[247.399583,0.530394], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1627+006/sdB_pg_1627+006_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
d06d2e0a911f5010f8561348d3ab54923e923e31 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_059/ch86_2020_06_22_20_42_01_067760.py | 2a606c4d7a824d5d1b2a4313ad94567cbeff57d6 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py |
with open('criptografado.txt', 'r') as arquivo:
conteudo = arquivo.read()
for i in conteudo:
if i == 's':
with open('criptografado.txt', 'w') as arquivo2:
arquivo2.write(conteudo.replace(i, 'z'))
if i == 'a':
with open('criptografado.txt', 'w') as arquivo... | [
"you@example.com"
] | you@example.com |
461ccf1fcf588f87ddd2359e410e5de3eddd855e | ad113ffed76e72ed0a881a7a6d6a74ea9021e5bf | /tests_compare.py | 09f259dd46dda07db612be2449e8522ef61f31b4 | [] | no_license | biletboh/bitexchange | 03c0bfc04e2f103928c173f014a75b6ceea0def9 | 8d541d6bb82f5e3ff4c71cb65b609503ba6b9417 | refs/heads/master | 2021-01-22T10:46:46.717291 | 2017-05-30T14:43:37 | 2017-05-30T14:43:37 | 92,656,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import time
import os
import configparser
from bitfinex.client import TradeClient
from exmoclient import ExmoTradeClient
from compare import compare_exchange
# Set up configuration
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
conf = configparser.ConfigParser()
conf.read(os.path.join(BASE_DIR, 'settings.ini... | [
"biletskyboh@gmail.com"
] | biletskyboh@gmail.com |
8db79c9a273b1cf103453d785a36dac40873619a | 928c53ea78be51eaf05e63f149fb291ec48be73e | /Linked_List_Cycle_II.py | 38b7ef80851bbce59fda03879bef014eaff77462 | [] | no_license | saurabhchris1/Algorithm-Pratice-Questions-LeetCode | 35021d8fc082ecac65d7970d9f83f9be904fb333 | ea4a7d6a78d86c8619f91a75594de8eea264bcca | refs/heads/master | 2022-12-10T16:50:50.678365 | 2022-12-04T10:12:18 | 2022-12-04T10:12:18 | 219,918,074 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # Given a linked list, return the node where the cycle begins.
# If there is no cycle, return null.
#
# There is a cycle in a linked list if there is some node in
# the list that can be reached again by continuously following
# the next pointer. Internally, pos is used to denote the index
# of the node that tail's next... | [
"saurabhchris1@gmail.com"
] | saurabhchris1@gmail.com |
5ca5396e7e9e6058085893cdf33e810e187ad30d | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/storagecache/v20200301/storage_target.py | 3694ea282ed82b03a402dd9a6a13f5cfb2ccad63 | [
"Apache-2.0",
"BSD-3-Clause"
] | 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 | 17,683 | 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 |
724d42efc164f460aadf422bde792465cd5a9eb8 | d4129d743b958e6ed71af445c0dd7baa7f2ad6e4 | /teambeat/admin.py | 3be24de4fad0c0b5aac5759d5cef320a24ead2c2 | [] | no_license | astromitts/team-beat | f2077bdeaa457bb8cd11094f14a75bdf170a9b0e | a49608890e4fe2b238cbec9c0e3d9629aae51c55 | refs/heads/main | 2023-08-10T16:11:14.231042 | 2020-12-09T14:20:04 | 2020-12-09T14:20:04 | 319,043,973 | 0 | 0 | null | 2021-09-22T19:42:46 | 2020-12-06T13:48:36 | Python | UTF-8 | Python | false | false | 439 | py | from django.contrib import admin
from teambeat.models import (
Organization,
OrganizationInvitation,
OrganizationUser,
Team,
TeamAdmin,
TeamMember,
TeamMemberStatus
)
admin.site.register(Organization)
admin.site.register(OrganizationUser)
admin.site.register(OrganizationInvitation)
admin.si... | [
"morinbe@gmail.com"
] | morinbe@gmail.com |
f4f16e0aed94288f25b1a7cbcc39162959543704 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4194/codes/1644_2711.py | 77e78d3042d279f2c36b818186c04f26f7708ed1 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | valor = float(input("Qual o seu valor disponivel?"))
tickets = int(input("Quantos tickets deseja comprar?"))
vt = float(input("Quanto custa um ticket?"))
passes = int(input("Quantos passes de onibus deseja comprar?"))
vp = float(input("Valor dos passes"))
if(valor >= tickets*vt + passes*vp):
print("SUFICIENTE")
else:... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
e74457c0c58813616881e9d64c3a8320e2e88c3e | d8b1362113e4f3302ab1d04d5f57c1b4c8c44b6a | /leetcode_py2/Medium 73. Set Matrix Zeroes.py | 18cf03f8dbfd6347ba627f0749d6d0ea7e565484 | [] | no_license | mohki890/Danny-Huang | 06d12b2e1ac110684cbf114db46079cda5a380eb | 3eb27b793b5a819f3fb5e166b02e04d593f1bf37 | refs/heads/master | 2020-05-16T00:22:11.602739 | 2019-03-29T15:00:14 | 2019-03-29T15:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
"""
This module is provided by
Authors: hxk11111
Date: 2019/1/5
File: Medium 73. Set Matrix Zeroes.py
"""
'''
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place.
Example 1:
Input:
[
[1,1,1],
[1,0,1],
[1,1,1]
]
Output:
... | [
"huangxiangkai@baidu.com"
] | huangxiangkai@baidu.com |
a395b580244b142aed88453bc740a4d78ac26421 | 074e2815a0c3dbb03cae346560c27e409a4444e4 | /drivers/ssd1351/ssd1351_16bit.py | 9d2c75c185149003b96bc9cac270e8e172672775 | [
"MIT"
] | permissive | maysrp/micropython-nano-gui | 9127e1cbb024810ac2920c8227a448d6cf4678b1 | 5dbcc65828106cfb15c544bb86cc7380a9a83c47 | refs/heads/master | 2023-01-19T18:06:52.286059 | 2020-11-29T10:26:11 | 2020-11-29T10:26:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,266 | py | # SSD1351_16bit.py MicroPython driver for Adafruit color OLED displays.
# Adafruit 1.5" 128*128 OLED display: https://www.adafruit.com/product/1431
# Adafruit 1.27" 128*96 display https://www.adafruit.com/product/1673
# For wiring details see drivers/ADAFRUIT.md in this repo.
# This driver is based on the Adafruit C+... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
6c459b34f8f0ab75e9f04a8db8d170bea67c1736 | 39e647e9ec8524a1cee90ef15f37a3d3bbf8ac43 | /poet/trunk/pythonLibs/Imaging-1.1.7/Scripts/pilconvert.py | 71b1fe3830cf45b22540f16176b2ca141291253c | [
"LicenseRef-scancode-secret-labs-2011"
] | permissive | AgileAdaptiveTools/POETTools | 85158f043e73b430c1d19a172b75e028a15c2018 | 60244865dd850a3e7346f9c6c3daf74ea1b02448 | refs/heads/master | 2021-01-18T14:46:08.025574 | 2013-01-28T19:18:11 | 2013-01-28T19:18:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | #! /usr/local/bin/python
#
# The Python Imaging Library.
# $Id$
#
# convert image files
#
# History:
# 0.1 96-04-20 fl Created
# 0.2 96-10-04 fl Use draft mode when converting images
# 0.3 96-12-30 fl Optimize output (PNG, JPEG)
# 0.4 97-01-18 fl Made optimize an option (PNG, JPEG)
#... | [
"ssaltzman@mitre.org"
] | ssaltzman@mitre.org |
22ee1291f7c8806b76361ad8a451f24e1c1d6079 | e573161a9d4fc74ef4debdd9cfd8956bdd1d0416 | /src/products/models/order.py | 4c07332ebf2b2204eeff6db64f51f087e3f38f77 | [] | no_license | tanjibpa/rx-verify | a11c471afc628524bf95103711102258e6e04c19 | 3947fd2f9a640b422014d1857b9377e42d8961a5 | refs/heads/main | 2023-02-23T08:16:43.910998 | 2021-01-23T07:07:43 | 2021-01-23T07:07:43 | 331,103,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from django.db import models
from base.models import BaseModel
from .raw_material import RawMaterial
from .product import Product
class Order(BaseModel):
raw_materials = models.ManyToManyField(RawMaterial)
product = models.ForeignKey(Product, on_delete=models.CASCADE)
quantity = models.IntegerField(defau... | [
"ikram.tanjib@gmail.com"
] | ikram.tanjib@gmail.com |
35418b217181a0478eb1d238b23420bc0c421bbf | 5154dbf4eee6ea6499957bd1e6b6860abcb3d85a | /Face-Recognition/recognize_faces_image.py | b53c526e33bc593d8f67f4668ff14dcfb3734ed7 | [] | no_license | sayands/opencv-implementations | 876c345a6842335d70b2d9b27e746da5a6fd938f | c8f0c7b9dca5e6d874b863bd70e4ec3898f6e7d5 | refs/heads/master | 2020-03-19T11:51:54.513186 | 2018-12-22T05:48:48 | 2018-12-22T05:48:48 | 136,481,409 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | # import the necessary packages
import face_recognition
import argparse
import pickle
import cv2
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-e", "--encodings", required = True, help ="Path to serialized db of facial encodings")
ap.add_argument("-i", "--image... | [
"sayandsarkar.1997@gmail.com"
] | sayandsarkar.1997@gmail.com |
e1c8620a560ca4069bcc80749ec00da1a6b6bace | 87277cddfc489dd7d3837ffccda2f11bb4ad43cc | /py/Task198.py | 5b0fbec9bf247b0e9b9e05389fafae6b23ba0644 | [] | no_license | rain-zhao/leetcode | 22c01d1803af7dd66164a204e6dc718e6bab6f0e | 8d47147f1c78896d7021aede767b5c659cd47035 | refs/heads/master | 2022-05-29T10:54:14.709070 | 2022-05-14T09:38:05 | 2022-05-14T09:38:05 | 242,631,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | class Solution:
def rob(self, nums: [int]) -> int:
if not nums:
return 0
if len(nums) == 1:
return nums[0]
# init
dp = [[0, 0] for _ in range(len(nums))]
dp[0] = [0, nums[0]]
for i, num in enumerate(nums[1:], 1):
dp[i][0] = max(dp[... | [
"rangeree@foxmail.com"
] | rangeree@foxmail.com |
328ae953d1241d177cd632306190037e5ea3a1da | 1078c61f2c6d9fe220117d4c0fbbb09f1a67f84c | /paws/lib/python2.7/site-packages/euca2ools-3.4.1_2_g6b3f62f2-py2.7.egg/EGG-INFO/scripts/euare-servercertlistbypath | 5273dd6177c560a319e8eaa8198e7b0d60df4f5c | [
"MIT"
] | permissive | cirobessa/receitas-aws | c21cc5aa95f3e8befb95e49028bf3ffab666015c | b4f496050f951c6ae0c5fa12e132c39315deb493 | refs/heads/master | 2021-05-18T06:50:34.798771 | 2020-03-31T02:59:47 | 2020-03-31T02:59:47 | 251,164,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | #!/media/ciro/LOCALDRV/A_DESENVOLVIMENTO/AWS/receitas/paws/bin/python -tt
import euca2ools.commands.iam.listservercertificates
if __name__ == '__main__':
euca2ools.commands.iam.listservercertificates.ListServerCertificates.run()
| [
"cirobessa@yahoo.com"
] | cirobessa@yahoo.com | |
581477f217c0de64acb027fb57b07564e4b2d1eb | 0df898bf192b6ad388af160ecbf6609445c34f96 | /middleware/backend/app/alembic/versions/20201021_001556_.py | ad0a9945ac1de56f57047d383df661ef635fc9e4 | [] | no_license | sasano8/magnet | a5247e6eb0a7153d6bbca54296f61194925ab3dc | 65191c877f41c632d29133ebe4132a0bd459f752 | refs/heads/master | 2023-01-07T10:11:38.599085 | 2020-11-13T02:42:41 | 2020-11-13T02:42:41 | 298,334,432 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | """empty message
Revision ID: 20201021_001556
Revises: 20201021_001530
Create Date: 2020-10-21 00:15:57.520730
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '20201021_001556'
down_revision = '20201021_001530'
branch_labels = None
depends_on = None
def upgra... | [
"y-sasahara@ys-method.com"
] | y-sasahara@ys-method.com |
e207e8460215041552640cba1dd67c59d79db97c | 956fd28ea7a7ec83b62cd85691c512e735e60b3a | /bin/azure/mgmt/eventgrid/operations/__init__.py | e7dcca6122851fa842b7b3ecff4c908c0301d34f | [
"MIT"
] | permissive | zdmc23/bash-lambda-layer | 5517a27809d33801c65504c11f867d0d511b2e1c | e762df0189cfb894dab2d96bae1655b8857d5efb | refs/heads/master | 2021-01-05T02:32:20.765963 | 2020-02-16T09:41:47 | 2020-02-16T09:41:47 | 240,846,840 | 0 | 0 | MIT | 2020-02-16T06:59:55 | 2020-02-16T06:59:54 | null | UTF-8 | Python | false | false | 1,000 | 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.
# C... | [
"191707+zdmc23@users.noreply.github.com"
] | 191707+zdmc23@users.noreply.github.com |
0e3e892d28c69731125eab1f400dfb5cdf382315 | e0b5a869c687fea3c9dda138734d25b3c5e68b88 | /9. Decorators/9. 2 Exercises/Problem 1- Logged.py | 22f6e5741de525740b650eedb601357d66b590f8 | [] | no_license | asen-krasimirov/Python-OOP-Course | b74de5f83fb3e287cb206d48c3db79d15657c902 | c6df3830168d8b8d780d4fb4ccfe67d1bb350f7e | refs/heads/main | 2023-02-01T04:09:33.796334 | 2020-12-15T14:56:59 | 2020-12-15T14:56:59 | 309,389,119 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py |
def logged(func):
def wrapper(*args, **kwargs):
func_name = func.__name__
parameters = args+tuple(kwargs.keys())
result = func(*parameters)
information = f"you called {func_name}{parameters}\nit returned {result}"
return information
return wrapper
@logged
def func(*a... | [
"68907559+asen-krasimirov@users.noreply.github.com"
] | 68907559+asen-krasimirov@users.noreply.github.com |
edacf9cfce5b069972303074f24fded09f89fe81 | 19c2f173d3d5384710b9271853fc3e1e60a054e2 | /env/bin/pip | 28e2a8a511905191e3cd014074c7318b9333df4b | [] | no_license | rahonur/hellosisters | 8cd1332ccb7a347c00383bb643bd14a27f781b9f | 94da959d4be276e280ca5e1049a1c566523c9d60 | refs/heads/main | 2023-01-24T02:57:31.518942 | 2020-11-30T22:53:59 | 2020-11-30T22:53:59 | 314,942,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/home/vagrant/src/hello-sisters-master/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm | |
e2fe714bb3d00b6ae53efd2431b00c1a3ed70786 | b56ca08eb67163d3ccb02ff0775f59a2d971d910 | /backend/moderation/migrations/0009_merge_20191003_0725.py | f5847052ee467c5c2157709054ed2f2005b4a4ae | [] | no_license | globax89/dating-work | f23d07f98dcb5efad62a1c91cdb04b1a8ef021f7 | bb3d09c4e2f48ecd3d73e664ab8e3982fc97b534 | refs/heads/master | 2022-12-11T22:45:19.360096 | 2019-10-16T07:01:40 | 2019-10-16T07:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # Generated by Django 2.2.4 on 2019-10-03 07:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('moderation', '0008_auto_20190930_2116'),
('moderation', '0008_auto_20190930_0958'),
]
operations = [
]
| [
"zdimon77@gmail.com"
] | zdimon77@gmail.com |
915597ed60c80192a3ea7c652ca9ce6cd0a4d85d | 9fcc0fc4e8fe9fd2618ad9506594811685cbe065 | /lt_cmu.py | 73895d53c24cfe4949402d2e2e037a74250b57ba | [] | no_license | cheezebone/Timit_Phoneme_Recognition | 36a1617a02449184c1cc6f5f4b91c8f30bf1b20f | b7fc8318d160828d03371fee3424ca494387a102 | refs/heads/master | 2023-01-19T02:17:11.012204 | 2020-11-23T12:33:06 | 2020-11-23T12:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from persephone import corpus
from persephone import corpus_reader
from persephone import rnn_ctc
lt_corpus = corpus.Corpus("fbank_and_pitch", "phonemes", "lt")
lt_corpus = corpus_reader.CorpusReader(lt_corpus, batch_size=32)
model = rnn_ctc.Model("exp_cmu/", lt_corpus, num_layers=3, hidden_size=256)
# model.train(max... | [
"virtuoso.irfan@gmail.com"
] | virtuoso.irfan@gmail.com |
dbffe0154bc07e3e8416502de5c23ab330d083b1 | 7b60c00eb1a45fb8fb58aefaf786a5c29700ed7e | /payment_gateways/migrations/0010_auto_20180828_1359.py | 8d6ce36b12732ee6fe2536c64631d11c09c2feff | [] | no_license | kshutashvili/mfo | 521b126146b7582ca6b56bc6bb605f4aee79dfc2 | 663662dd58ee0faab667d5e9bb463301342cb21a | refs/heads/master | 2022-12-15T20:00:44.759395 | 2019-06-23T17:06:13 | 2019-06-23T17:06:13 | 203,863,751 | 0 | 0 | null | 2022-11-22T02:24:17 | 2019-08-22T19:56:43 | Python | UTF-8 | Python | false | false | 992 | py | # Generated by Django 2.0.2 on 2018-08-28 10:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payment_gateways', '0009_auto_20180828_1259'),
]
operations = [
migrations.AlterModelOptions(
name='city24payment',
... | [
"phonxis@gmail.com"
] | phonxis@gmail.com |
04f7bc385f1b8ac6d86d0e075bc5edae8a51d202 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/abc/158a_2.py | 048e2b8a5c7f0c3a977f8d7b8756d1db030f8749 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | S = set(list(input()))
print('Yes' if len(S) == 2 else 'No')
| [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
840164d5a14a0caf4c19930e425304128403178c | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /suvari/gtk2chain/reverses2/libgsf/actions.py | a7de56c2638edd3d8d8dcf8cb916ee27fd666874 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 678 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--disable-static ... | [
"suvarice@gmail.com"
] | suvarice@gmail.com |
253e032a7578b0693751dc6c07b7ec26f2937f27 | 3fe96227e910eb3ef13b80ded266da924d32cb86 | /pump/main/models.py | 26fe322b093b7cff7fe553bf16ab51637c5d9dc2 | [] | no_license | akingon/pump | b974054c54d12b8efa644a161e3ab9acb9b82601 | 6ce07a9b3faf7e1ed97062f854f57624a896e8a7 | refs/heads/master | 2021-01-18T06:32:25.974631 | 2015-05-01T14:27:22 | 2015-05-01T14:27:22 | 31,909,188 | 0 | 0 | null | 2015-03-09T16:18:46 | 2015-03-09T16:18:46 | null | UTF-8 | Python | false | false | 3,054 | py | from django.db import models
from django.template import Context
from django.template.loader import get_template
from .criteria import Houghton, ABC, PassFail
class Response(models.Model):
added = models.DateTimeField(auto_now_add=True)
# Houghton
q1 = models.TextField(blank=True, default="")
q2 = mod... | [
"anders@columbia.edu"
] | anders@columbia.edu |
7879ca81348c624f31155cb54edc381e6820a388 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02602/s085786581.py | 99dcc1901822553bf70ab6c5531a4412172e6f36 | [] | 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 | 147 | py | n, k = map(int, input().split())
A = list(map(int, input().split()))
for i in range(k, n):
if A[i-k] < A[i]: print('Yes')
else: print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b4e1ebbc795815ff08d8939927b0ced162c3d4cc | ef46adcd3bed245807f169db788f4bb183b87f51 | /sklearn/preprocessing/label.py | 6afaae035444606946018cb807257351a880070b | [] | no_license | auroua/aurora_detection | b35cddee8c77dafc70ee3869e51df8cc9a742d2d | ad4f940dccf9280a6efc9e2528285ec76042d6e6 | refs/heads/master | 2021-01-10T13:20:56.933107 | 2016-01-04T14:23:48 | 2016-01-04T14:23:48 | 44,159,924 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 26,702 | py | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Joel Nothman <joel.nothman@gmail.com>
# Hamzeh Alsalhi <ha258@cornell.edu>
# Licens... | [
"auroua@yeah.net"
] | auroua@yeah.net |
7d5a16b79347dc1a7ab5601542779245f50ac4dd | d4b344780e893a19d44aed51ebfe514c91e920c2 | /aliyun-python-sdk-openanalytics-open/aliyunsdkopenanalytics_open/request/v20180619/UntagResourcesRequest.py | 953b86ca9d42e26feb6484c0520c3745231814fc | [
"Apache-2.0"
] | permissive | WenONGs/aliyun-openapi-python-sdk | 6d164160eac7a8020e3b8d1960d170e08d2c8f23 | b6de95a32030b421665c0833c9d64d92fcaf81c8 | refs/heads/master | 2023-04-28T06:36:51.740098 | 2021-05-17T09:37:00 | 2021-05-17T09:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
b6542980555fe27fde1765fa72bc2a691b8a0f44 | a59568148b79abaeaa7911f37b3734f72f86d758 | /django/website/datamap/migrations/0008_auto__del_field_field_formattedname.py | 1988a35be7e9c351a07b60ce5e43de4feb8fd049 | [
"MIT"
] | permissive | rasulov3645/opendatacomparison | 55bd0820bd21f2b5c3f53055d89f8c3b80d5985f | 2dcfefbd931fa4c7a0981a7f6bd966259aa4f16a | refs/heads/master | 2021-06-23T06:20:54.775422 | 2015-05-06T15:11:31 | 2015-05-06T15:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,674 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Field.formattedname'
db.delete_column(u'datamap_field',... | [
"sarah@bonvaya.com"
] | sarah@bonvaya.com |
c9de3cec05d3f3046559f4d8e7e7f95a8b23248e | 78cc4a9de8815bb042b25f70cbea5da2058553e8 | /src/fetch/fetchclass/grap_userinfo.py | bc27d9475706abb115c0787ee0e0262e5e6afa7e | [] | no_license | simple2source/fetch_crwal | 504c6aae18cc6c9520c3a5b6cb5e76fb65500d82 | 390998556f72a2053574e6ad5c58cbf0b850c8c0 | refs/heads/master | 2021-01-19T02:47:07.951209 | 2016-06-26T03:57:38 | 2016-06-26T03:57:38 | 52,797,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | # coding: utf-8
"""
script to send email daily about the grap user info in MySQL grapuser_info table
"""
import MySQLdb
import common
from prettytable import PrettyTable
import datetime, time
import libaccount
sql_config = common.sql_config
def update_num():
try:
sql = """select grap_source, user_name fr... | [
"dbawww@126.com"
] | dbawww@126.com |
e8f98f81fddd7ab8606cf4a92a637ea8342d3535 | 36c46ac6e19ea611e5ebe5d851c4ea14a3613bf5 | /beets/util/__init__.py | 67a878342bf2ad83e7b2d31fa5431f33bd156803 | [
"MIT"
] | permissive | navinpai/beets | e0fd569f255f3dc642dd431c6e283ae6d095ab42 | 94569a774e8075337f96a071ce77e1df692add98 | refs/heads/master | 2021-01-18T10:42:33.321553 | 2011-08-29T01:25:38 | 2011-08-29T01:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,849 | py | # This file is part of beets.
# Copyright 2011, Adrian Sampson.
#
# 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, ... | [
"adrian@radbox.org"
] | adrian@radbox.org |
63f1be347c7875fec36366c86232173a42630430 | 3a7412502b89b917f23cda9a3318d2dc4d02185b | /panoptes/analysis/panels/events/admin.py | c24c66fb0d3a697e3b34747002864d68c5a7f646 | [
"BSD-2-Clause"
] | permissive | cilcoberlin/panoptes | 5f0b19d872993bc5c7f51a44c9ccc596fe0a8ab5 | 67d451ea4ffc58c23b5f347bfa5609fa7f853b45 | refs/heads/master | 2021-01-21T00:17:42.038637 | 2012-07-10T03:20:47 | 2012-07-10T03:20:47 | 1,660,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py |
from django.contrib import admin
from panoptes.analysis.panels.events.models import LocationCalendar
class LocationCalendarAdmin(admin.ModelAdmin):
list_display = ('name', 'location', 'calendar_id')
ordering = ('location', 'order')
admin.site.register(LocationCalendar, LocationCalendarAdmin)
| [
"justin.locsei@oberlin.edu"
] | justin.locsei@oberlin.edu |
de1964489e7a06b573dd7b0b5646fc231e174d46 | 146cd740649b87032cbbfb97cde6ae486f76230b | /venv/lib/python3.6/site-packages/PIL/BdfFontFile.py | fc85c8a287d218f13805660da1f2d7bc33c3793c | [] | no_license | shellyhuang18/plank-filter-master | 8b7024c46334062496f05d31eefc618ebae50b4e | 8993a5b00f45841c3385fe997857bfdd10b71a84 | refs/heads/master | 2020-03-30T18:14:45.017957 | 2018-12-27T20:51:25 | 2018-12-27T20:51:25 | 151,490,556 | 0 | 1 | null | 2018-12-19T22:42:26 | 2018-10-03T22:50:58 | Python | UTF-8 | Python | false | false | 3,119 | py | #
# The Python Imaging Library
# $Id$
#
# bitmap distribution font (bdf) file parser
#
# history:
# 1996-05-16 fl created (as bdf2pil)
# 1997-08-25 fl converted to FontFile driver
# 2001-05-25 fl removed bogus __init__ call
# 2002-11-20 fl robustification (from Kevin Cazabon, Dmitry Vasiliev)
# 2003-... | [
"shellyhuang81@gmail.com"
] | shellyhuang81@gmail.com |
b2e647ca7e61dc983ece0837c25e3743abde5e29 | e755453c853ae400d94f562ad215b59166b63782 | /tests/splay_tests/test_contains.py | 90f77cc4f6c2ffda415a14fbc9008bc8390adea1 | [
"MIT"
] | permissive | lycantropos/dendroid | 0cb3e276dd9c476b82b0b7a17c25c2e05616a993 | fd11c74a395eb791caf803c848805569869080f6 | refs/heads/master | 2023-04-07T11:07:55.550796 | 2023-03-27T00:46:03 | 2023-03-27T00:46:03 | 215,369,321 | 0 | 1 | MIT | 2020-09-24T05:02:02 | 2019-10-15T18:29:36 | Python | UTF-8 | Python | false | false | 891 | py | from typing import Tuple
from hypothesis import given
from dendroid.hints import Value
from tests.utils import (BaseSet,
are_keys_equal,
implication,
to_height,
to_max_binary_tree_height,
set_v... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
e4ff0e7628f0b153ac84f54932d7be59746127b4 | be0c6e2071945edcb47ee4f3fadc1f4629a2c6aa | /grandapp/migrations/0105_auto_20210224_1527.py | d80a750747203ef42ed7326139cdc3f30142b816 | [] | no_license | QuackenbushLab/grand | 9719a395e6a30951c3ffdef1eccdb5e422da737c | f23031d1f240550d25c2842b4af0aae08c653bae | refs/heads/master | 2023-08-10T09:58:58.381264 | 2023-07-25T18:23:26 | 2023-07-25T18:23:26 | 201,113,575 | 5 | 2 | null | 2022-06-24T19:11:29 | 2019-08-07T19:18:58 | JavaScript | UTF-8 | Python | false | false | 1,050 | py | # Generated by Django 3.0.2 on 2021-02-24 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grandapp', '0104_auto_20210224_0043'),
]
operations = [
migrations.AddField(
model_name='ggbmd1sample',
name='link',... | [
"marouen.b.guebila@gmail.com"
] | marouen.b.guebila@gmail.com |
6ed5f68e9e400070cd30140a79a7a876e9457eda | 8188bb529e538926fda5e90c62e1eaba38cff4f8 | /apps/__init__.py | 26c8f87ee9cbfb2d2b8c6406523ae10f59ee3280 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | wangyibin/bioway | 68fbc59d65c0f94dcf2d4d56785522a62797fadd | a534f35fc6f96fe1b3a6ca78853a5aa076337328 | refs/heads/master | 2020-03-30T15:14:35.049692 | 2019-01-25T06:03:42 | 2019-01-25T06:03:42 | 151,354,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from .base import must_open
| [
"738339463@qq.com"
] | 738339463@qq.com |
0c87e8d62731907e5730a66a9a585858c48baab9 | 45c86c7e7c6e84dcae3eba5544d93db6bee19905 | /venv/lib/python2.7/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py | 50d18037e88dceca1d054d694fcec1680aab9b8b | [] | no_license | 5eanpoint/moweb | 60b5ed74183b019e04e4fa243d3c1930c4cb4a64 | bbf0d96b651230c231115a3eace7b950a908b57e | refs/heads/master | 2016-09-14T05:29:27.601814 | 2016-05-24T06:40:05 | 2016-05-24T06:40:10 | 59,546,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | import hashlib
import os
from pip._vendor.lockfile import LockFile
from pip._vendor.lockfile.mkdirlockfile import MkdirLockFile
from ..cache import BaseCache
from ..controller import CacheController
def _secure_open_write(filename, fmode):
# We only want to write to this file, so open it in write only mode
fl... | [
"seanpoint@icloud.com"
] | seanpoint@icloud.com |
3440ae0cb78e579db0a6945b28742609be05790a | 0d77846403606b8300a53e05cd2103d5470b6a6a | /tensorflow/python/profiler/profiler_client.py | dc542e2c726ecdbd9c79293f77ca662075532b7a | [
"Apache-2.0"
] | permissive | alubanana/tensorflow | e7cb694073773be4c46607e7af4fb8ed9c74b812 | 454f89ab3baacbac567d6bcceef4c743f23ce58b | refs/heads/master | 2021-01-04T15:44:16.441471 | 2020-02-14T22:50:45 | 2020-02-14T22:56:47 | 240,614,446 | 1 | 0 | Apache-2.0 | 2020-02-14T23:12:02 | 2020-02-14T23:12:01 | null | UTF-8 | Python | false | false | 2,762 | py | # Copyright 2020 The TensorFlow Authors. 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d22f1d29c71d26afd2458a666800317fbbbe8db4 | 91e9d429f8e34fd48d5e34a898b32bc090660fe1 | /core/migrations/0008_article_featured_mob_img.py | ab29fbd735ece0954ef2f0c6a20182b6c8281707 | [] | no_license | sherrywilly/blog-graphene | b286d4ba9a5a3499aefc684399630bcbd348ba8f | b05430896dff6b8944b2e6f5f30b6cfd875dc820 | refs/heads/main | 2023-07-14T22:20:29.973765 | 2021-08-07T06:35:32 | 2021-08-07T06:35:32 | 392,514,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # Generated by Django 3.2.6 on 2021-08-03 09:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20210803_0850'),
]
operations = [
migrations.AddField(
model_name='article',
name='featured_mob_im... | [
"sherrywilson521@gmail.com"
] | sherrywilson521@gmail.com |
fde06b2ff44e982bb2583bb88563f02a0ba24b88 | 7cd9b9f41fdbf52de6e4393c43e3ff4e7466b417 | /pokemon/urls.py | 68b22f96b1bbe9442e8b4515f49e8579b6d1466c | [] | no_license | BaeJuneHyuck/demo-pusan-univ-201907-django | 36f5be596c6850acc211358276c66df127e05633 | 4ef9e64a42a977e0b435fb2f83842433fac53bf3 | refs/heads/master | 2022-01-22T21:35:57.419007 | 2019-07-23T06:51:14 | 2019-07-23T06:51:14 | 198,371,100 | 1 | 0 | null | 2019-07-23T06:56:52 | 2019-07-23T06:56:51 | null | UTF-8 | Python | false | false | 242 | py | from django.urls import path
from pokemon.views import index, pokemon_new, pokemon_edit
urlpatterns = [
path('', index),
path('new/', pokemon_new),
path('<int:pk>/', pokemon_edit),
# re_path(r'(?P<pk>\d+)', pokemon_edit),
]
| [
"me@askcompany.kr"
] | me@askcompany.kr |
b4150d116c9be477b3d501231d89ebeae46b0aa9 | e44c1ac44a3cc912fbeaa0152b9294a03fd893ea | /test/test_boolean_syntax.py | 5239ddb35aae0c52b65012e4a9d113be293c672b | [
"BSD-2-Clause"
] | permissive | umd-lhcb/pyTuplingUtils | ca03db1975f7f283caab1436ac1c5d85fad75d2a | 85f3ca90f01389f834af6de1044364843210c4c5 | refs/heads/master | 2023-03-10T00:12:40.922444 | 2023-03-03T23:31:09 | 2023-03-03T23:31:09 | 215,201,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,192 | py | #!/usr/bin/env python3
#
# Authorop: Yipeng Sun
# License: BSD 2-clause
# Last Change: Thu Jun 18, 2020 at 02:47 AM +0800
import unittest
from context import pyTuplingUtils as ptu
parser = ptu.boolean.syntax.boolean_parser.parse
class ArithmeticTest(unittest.TestCase):
def test_var(self):
self.assertEq... | [
"syp@umd.edu"
] | syp@umd.edu |
338d1428bc7508a2da49be3bd292cdb85916ced9 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Google/Drive/Files/Update.py | 5ed78c1781be712f6acaa6a31eb70220ec8e1590 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,745 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# Update
# Updates the metadata or content of an existing file.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreo... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
af3a982bb1e38db919790e04e56f80327509c4af | f3a55a42086d2bae3fdffa892318bf0f518b3549 | /tests/test_gp_interp.py | 265798b58161fcdcccd8cd4077f4898b5a13ac82 | [
"BSD-2-Clause"
] | permissive | LBJ-Wade/Piff_PSF | 0aa5d904dd416a81292b4d929ee29f19173b18f6 | 475939e250eaec12781596af90963daa3de7dbdb | refs/heads/main | 2023-04-03T08:47:15.933418 | 2020-12-10T15:18:45 | 2020-12-10T15:18:45 | 352,978,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,624 | py | # Copyright (c) 2016 by Mike Jarvis and the other collaborators on GitHub at
# https://github.com/rmjarvis/Piff All rights reserved.
#
# Piff is free software: Redistribution and use in source and binary forms
# with or without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redist... | [
"michael@jarvis.net"
] | michael@jarvis.net |
9c59f9dbd1305703fbe6cfa40102879fac180355 | de6fb3a55196b6bd36a4fda0e08ad658679fb7a1 | /vt_manager/src/python/agent/xen/provisioning/configurators/mediacat/MediacatVMConfigurator.py | 1c32a6c5a7a87130868b322f6583514d2cd725a1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | dana-i2cat/felix | 4a87af639e4c7db686bfa03f1ae4ce62711615e3 | 059ed2b3308bda2af5e1942dc9967e6573dd6a53 | refs/heads/master | 2021-01-02T23:12:43.840754 | 2016-02-04T10:04:24 | 2016-02-04T10:04:24 | 17,132,912 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | import shutil
import os
import jinja2
import subprocess
from xen.provisioning.hdmanagers.LVMHdManager import LVMHdManager
from xen.provisioning.HdManager import HdManager
from settings.settingsLoader import OXA_XEN_SERVER_KERNEL,OXA_XEN_SERVER_INITRD,OXA_DEBIAN_INTERFACES_FILE_LOCATION,OXA_DEBIAN_UDEV_FILE_LOCATION
... | [
"jenkins@integration.localhost"
] | jenkins@integration.localhost |
f5bd5d0daea26ef86acd064dbec79ff7205d9815 | 10b5a703c0166b55331513d2a9aead687032e804 | /leetcode1578.py | 7f4f21ed382eed47d291365b4de17dc2a0e596ab | [] | no_license | jack456054/leetcode | f2d623d5683098b2038322ee3eef81dc020f6fb1 | 24f0075909f8620513f6f21c9ad3dc299dee8967 | refs/heads/master | 2022-11-12T18:01:52.832206 | 2022-11-10T07:24:39 | 2022-11-10T07:24:39 | 125,793,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | class Solution:
# def minCost(self, colors: str, neededTime: List[int]) -> int:
# if len(colors) == 1:
# return 0
# current_color: str = None
# time_list: List[int] = []
# results: int = 0
# for index, color in enumerate(colors):
# if current_color == ... | [
"jack456054@hotmail.com"
] | jack456054@hotmail.com |
e2a991b355677ee0a574dce0a2c19d1b6cac5bc7 | 2256a61b57eed52ce5b3dd19e54108545e3fa1a1 | /sandbox/ipython/mydemo.py | fd31887d834e800fcd42827f23ebcf608aea26b6 | [
"Apache-2.0"
] | permissive | hubitor/progs | 18877b7dbd455f1192c96ebe1905f67329d1c749 | e4537da6da47d380a1a1a04e8068866013c7b7b6 | refs/heads/master | 2020-04-28T18:49:23.446076 | 2019-02-18T07:59:28 | 2019-02-18T07:59:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | #! /usr/bin/env python
# -*- coding: latin-1 -*-
from IPython.lib.demo import Demo
mydemo = Demo('myscript.py')
#mydemo()
| [
"romain.boman@gmail.com"
] | romain.boman@gmail.com |
1f87942cf0798f90d596f602e6524b16e1aed34a | df4b577668b830fcb41be675d691a72b952e892b | /releasenotes/source/conf.py | 9550aff663dfded18ef4e450b36cecf4ea41502c | [
"Apache-2.0"
] | permissive | 4383/tobiko | 37ef7bfb3b51918825c4c412136467fb32850494 | f8e6916db890021fa17ddbfc5e6007a25093c8cb | refs/heads/master | 2020-10-01T00:03:27.723538 | 2019-12-11T16:01:53 | 2019-12-11T16:04:14 | 227,405,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,970 | py | # Copyright 2019 Red Hat
#
# 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 ... | [
"fressi@redhat.com"
] | fressi@redhat.com |
cfbde29af5c7d47388410751eaebd45c382e38a4 | ff3f4b3117847f70fe68741288f28576fe2cc5e3 | /baekjoon/1712_손익분기점.py | 7ad98c5c1bd7ff74104ee79698dc45bd51b98083 | [] | no_license | manuck/myAlgo | 087bbe99672c40762759e9202fe371c394736fb1 | c673687d23a2d5cc06b6a6d5fb1bc0cb2e2b7bd9 | refs/heads/master | 2021-07-01T00:13:27.590848 | 2020-12-17T18:10:16 | 2020-12-17T18:10:16 | 203,954,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | import sys
sys.stdin = open('1712_input.txt')
'''
문제
월드전자는 노트북을 제조하고 판매하는 회사이다. 노트북 판매 대수에 상관없이 매년 임대료, 재산세, 보험료, 급여 등 A만원의 고정 비용이 들며, 한 대의 노트북을 생산하는 데에는 재료비와 인건비 등 총 B만원의 가변 비용이 든다고 한다.
예를 들어 A=1,000, B=70이라고 하자. 이 경우 노트북을 한 대 생산하는 데는 총 1,070만원이 들며, 열 대 생산하는 데는 총 1,700만원이 든다.
노트북 가격이 C만원으로 책정되었다고 한다. 일반적으로 생산 대수를 늘... | [
"snc9000@naver.com"
] | snc9000@naver.com |
b5528fe3267e31e75996bc3fffe002a6cea4fa77 | 4de98697b5ad1ab7a7ca52ea39b1cc863ef2022f | /python/pacman_game/pacman.py | 43a332e5fd07d20c227adfa040de1f0adbb3c9e5 | [] | no_license | yask123/other-codes | bfb60b5fdca58df8dd46ce6dc6cf5782882bfd2a | adc73c7e3969d103b1154d2ec29a19348bca17ae | refs/heads/master | 2021-01-21T00:56:47.253189 | 2014-11-30T14:50:47 | 2014-11-30T14:50:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,316 | py | from random import randint
import os
#FUNCTION USED FROM : https://gist.github.com/jasonrdsouza/1901709
def getchar():
if os.name == 'nt':
ch = raw_input('Enter your turn (w,a,s,d) : ')
else:
import tty, termios, sys
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
tty.set... | [
"skbly7@gmail.com"
] | skbly7@gmail.com |
fe6f9e517fa57fa574ad57811ee18bab68c95b8d | 1243d11e36e61542693fb9a4b187f328aa2eb473 | /account/models.py | 6d5ebea9fe2dd56a1a41c1d14b7e00f2ff50f127 | [] | no_license | LatorreDev/Django-socialNetwork | 344fa7d4fdee2a136695cdf9be20feaa8a8e8094 | b15f7a3c13e118d3ce1144784357b44f81c426ac | refs/heads/master | 2022-12-08T23:02:43.221239 | 2020-09-18T01:05:03 | 2020-09-18T01:05:03 | 296,475,039 | 0 | 0 | null | 2020-09-18T01:05:04 | 2020-09-18T00:44:37 | null | UTF-8 | Python | false | false | 476 | py | from django.db import models
from django.conf import settings
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL,
on_delete=models.CASCADE)
date_of_birth = models.DateField(blank=True, null=True)
photo = models.Imag... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
f82607f74d1a032f97f36e8f68b0a32b783431f7 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startQiskit_QC115.py | aac0e298834b98a16d87fa3890ff00e155618dd8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,817 | py | # qubit number=3
# total number=20
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
0f85e629918d9c10d47d0f02fe53bdb4da9e6d75 | 328ebfdbcef076ce0e930715f9bd786d7498185b | /lang/python/learn-python-programming-masterclass/section-3/strings.py | 91b26393876205c803ac842e2289ac95f64a1bc6 | [] | no_license | pnowak2/learnjs | b618e6f9563b3e86be0b1a21d647698e289daec0 | f8842b4e9e5d2eae6fb4e0d663b6699d74c90e9c | refs/heads/master | 2023-08-30T05:04:00.227920 | 2023-08-18T10:58:24 | 2023-08-18T10:58:24 | 41,912,571 | 3 | 0 | null | 2023-03-31T06:58:40 | 2015-09-04T11:36:13 | Python | UTF-8 | Python | false | false | 467 | py | print("Today is a good day")
print('Python is fun')
print("Python's string are easy to use")
print('We can include "quotes" in string')
print("Hello" + " world")
greeting = "Hello, "
# name = input("Please \n enter your name ")
name = "Tim"
# if we want a space, we can add that too
print(greeting + name)
print(greet... | [
"p.nowak2@gmail.com"
] | p.nowak2@gmail.com |
41861453f09818f9a2f62d37ff76df50af693824 | c5a1c95e9d8ce937f71caf8340cf11fe98e64f56 | /day15/problem2/[노태윤]소수 찾기.py | 8b5fff7359c78175d22f73d43ea64b2a1a1acb6b | [] | no_license | Boot-Camp-Coding-Test/Programmers | 963e5ceeaa331d99fbc7465f7b129bd68e96eae3 | 83a4b62ba2268a47859a6ce88ae1819bc96dcd85 | refs/heads/main | 2023-05-23T08:21:57.398594 | 2021-06-12T16:39:21 | 2021-06-12T16:39:21 | 366,589,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | from itertools import permutations
def isprime(N) :
if N <= 1 :
return False # 0 또는 1 이면 소수가 아니므로 False 반환
for i in range(2,N) :
if N % i == 0 :
return False # 하나라도 나누어 떨어지면 소수가 아니므로 False 반환
return True # 그 외에는 True 반환 (소수)
def solution(numbers):
answer = 0
total_perm... | [
"noreply@github.com"
] | Boot-Camp-Coding-Test.noreply@github.com |
a52be8922affd67547e135f801c5f101f05b49af | 60b2738284ae25231da1b1d91e3b61008c548673 | /ImageGenerator/generate_image_with_index.py | 0c4caf197fe57011c8892e239f78338ba67557a7 | [] | no_license | BhallaLab/Scripts | f54eb06693ae0f9de3b41a8ed2adda1da930aa24 | a5d3a2be92b269590316403b3c6194db020b261a | refs/heads/master | 2021-06-02T21:43:13.374239 | 2019-08-06T05:53:03 | 2019-08-06T05:53:03 | 37,115,228 | 8 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python
"""generate_image_with_index.py:
Generates transparent image with numbers written on them. Can be used to
caliberate projectors for frame per seconds.
"""
__author__ = "Dilawar Singh"
__copyright__ = "Copyright 2015, Dilawar Singh and NCBS Bangalore"
__credits__ ... | [
"dilawars@ncbs.res.in"
] | dilawars@ncbs.res.in |
2d583075790cb83484032d009a3e8cfe584193d0 | 70e970ce9ec131449b0888388f65f0bb55f098cd | /SignalMC/python/pythia8/AMSB_gluinoToChargino_M-1300GeV_M-900GeV_CTau-10cm_TuneCP5_13TeV_pythia8_cff.py | adb04714d2ed3a9d54092513fa5a34287cf407ba | [] | no_license | OSU-CMS/DisappTrks | 53b790cc05cc8fe3a9f7fbd097284c5663e1421d | 1d1c076863a9f8dbd3f0c077d5821a8333fc5196 | refs/heads/master | 2023-09-03T15:10:16.269126 | 2023-05-25T18:37:40 | 2023-05-25T18:37:40 | 13,272,469 | 5 | 12 | null | 2023-09-13T12:15:49 | 2013-10-02T13:58:51 | Python | UTF-8 | Python | false | false | 8,096 | py | COM_ENERGY = 13000.
MGLU = 1300 # GeV
MCHI = 900 # GeV
CTAU = 100 # mm
CROSS_SECTION = 0.0522 # pb
SLHA_TABLE="""
# ISAJET SUSY parameters in SUSY Les Houches Accord 2 format
# Created by ISALHA 2.0 Last revision: C. Balazs 21 Apr 2009
Block SPINFO # Program information
1 ISASUGRA from ISAJET # S... | [
"ahart@cern.ch"
] | ahart@cern.ch |
18746d107ac80f317f7718f9df54959cb3ba6e77 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/o4y.py | 89cc0accfba79c045c1482dbd947f1898b0456fa | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
758ddeec7b172f7f1236be16322795bec7ad6325 | e7263026bd4f34bae664c37e57a299ce83c7f111 | /03-Spider/scrapy-spider/xiciIPSpider/xiciIPSpider/items.py | 06d00e44d6c499c8beabdb1eace42bc540d723ca | [] | no_license | Aries000004/grocery | 34d0ad0648c6dff5c36f4a68abf9eeac59da214d | 27492f4ac7ef66d544f853dd6686920bcb9dc663 | refs/heads/master | 2020-03-24T22:50:37.703257 | 2018-07-26T11:43:54 | 2018-07-26T11:43:54 | 143,105,389 | 1 | 0 | null | 2018-08-01T04:51:12 | 2018-08-01T04:51:12 | null | UTF-8 | Python | false | false | 292 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class XiciipspiderItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"1367000465@qq.com"
] | 1367000465@qq.com |
0bb427439c4a8a56d195361c85fb14868b964517 | f508e4a751d3dfadd268794fd6092b3781a74d4c | /docs/conf.py | 090e77a6ac8479a9a127eddbd3cf278fac9292ef | [
"MIT"
] | permissive | mildewey/higlass | c2e274e0bdafccbfe5e994b8992248ae806e82fd | 8cc135017500216cb24b98c3c82d85ca861081b1 | refs/heads/master | 2020-04-02T19:26:31.670874 | 2018-10-19T16:05:30 | 2018-10-19T16:05:30 | 154,734,076 | 0 | 0 | null | 2018-10-25T20:34:59 | 2018-10-25T20:34:59 | null | UTF-8 | Python | false | false | 5,306 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# higlass documentation build configuration file, created by
# sphinx-quickstart on Mon Jul 3 16:40:45 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# au... | [
"pkerpedjiev@gmail.com"
] | pkerpedjiev@gmail.com |
2285b70ca377c6f1d7352094d1f626929e63df89 | c21546695e35a3f7c60e684de04bcbe88b2b985a | /0191_Number_of_1_Bits.py | c55f7da2b0e4f58f2b0605fc72f4ee8b7757bcc1 | [] | no_license | piecesofreg09/study_leetcode | 4a05ddee44c72a6d0c50bca7cb0b70abd33b0b85 | fc69721dbe003fcc2f7795a6b38c41d877905205 | refs/heads/master | 2023-01-14T05:02:24.779136 | 2020-11-18T17:23:30 | 2020-11-18T17:23:30 | 288,774,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | '''
n & n - 1 will remove the rightmost 1 to be 0
'''
class Solution:
def hammingWeight(self, n: int) -> int:
count = 0
while n != 0:
count += 1
n = n & n - 1
return count
| [
"noreply@github.com"
] | piecesofreg09.noreply@github.com |
186aad5955392fda1d645d2081f56cfc70054898 | 9b9fa48ec458fec2b451b3be54bf2be23188b11e | /labs/functions/character_permutations.py | 08fb258bbbda4e629cb991a9d908bb5c6e327b6c | [] | no_license | Nikoletazl/Advanced-Python | 1bc55ce42693ff0a5bcf082f9f7867e07b771007 | f1e31fbd423b31e2b24db151df8b73c7eaf35ab5 | refs/heads/main | 2023-08-21T20:46:43.572803 | 2021-10-22T09:47:52 | 2021-10-22T09:47:52 | 415,001,443 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | def permute(index, values):
if index == len(values):
print("".join(values))
return
for i in range(index, len(values)):
values[i], values[index] = values[index], values[i]
permute(index + 1, values)
values[i], values[index] = values[index], values[i]
permute(0,... | [
"noreply@github.com"
] | Nikoletazl.noreply@github.com |
cc4a17a7174b8409f4875d4c7fce223c8ee00a2d | cd486d096d2c92751557f4a97a4ba81a9e6efebd | /18/addons/context.venom/playFromHere.py | 887d841b3746e04a0b3b31161b57f8631de3a007 | [] | no_license | bopopescu/firestick-loader-kodi-data | 2f8cb72b9da67854b64aa76f720bdad6d4112926 | e4d7931d8f62c94f586786cd8580108b68d3aa40 | refs/heads/master | 2022-04-28T11:14:10.452251 | 2020-05-01T03:12:13 | 2020-05-01T03:12:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | import sys, xbmc, json
try:
from urlparse import parse_qsl
from urllib import quote_plus
except:
from urllib.parse import parse_qsl, quote_plus
xbmc.log('__name__= %s' % __name__, 2)
xbmc.log('__package__= %s' % __package__, 2)
# sys.path = []
# if __name__ == '__main__' and __package__ is None:
# from os im... | [
"esc0rtd3w@gmail.com"
] | esc0rtd3w@gmail.com |
c31e659110b66300d3a5f2982f28690d73a5c462 | 4ed3db861ae2fe727c7be604d42d540a00923320 | /samsung_multiroom/service/player.py | 68cf53039187d62a94f10fb1ba54dd7a7eac1581 | [
"MIT"
] | permissive | kusma/samsung_multiroom | 7cac147283a52bf491d7f50a6569c64de53eb4a5 | 09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61 | refs/heads/master | 2020-12-04T07:46:19.688568 | 2019-04-20T16:29:44 | 2019-04-20T16:29:44 | 231,683,383 | 0 | 0 | MIT | 2020-01-03T23:47:29 | 2020-01-03T23:47:28 | null | UTF-8 | Python | false | false | 6,225 | py | """Player allows playback control depending on selected source."""
import abc
# repeat mode constants
REPEAT_ONE = 'one'
REPEAT_ALL = 'all'
REPEAT_OFF = 'off'
class Player(metaclass=abc.ABCMeta):
"""Player interface to control playback functions."""
@abc.abstractmethod
def play(self, playlist):
... | [
"k.galutowski@gmail.com"
] | k.galutowski@gmail.com |
4071d21eb5cd3463dc714a85424e09a1fedfa660 | cd3e195e3eff75a01d93fe6a3df082bc839507db | /Prime_range.py | 57398abf3955c4143a4b1ae5cd175f678247cfe2 | [] | no_license | swathichinnaiyan/Sandya | 493002be8b221cad7af63bc0ee5833ef678171d2 | 34b77340f556054dd39c2a5de4ed933943ada319 | refs/heads/master | 2020-06-09T00:38:02.884184 | 2019-05-28T12:44:48 | 2019-05-28T12:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | n,k=map(int,input().split())
c=0
f=0
for i in range(n,k+1):
for j in range(2,i+1):
if ((i%j)==0) & (i!=j):
f=1
break
else:
f=0
if f==0:
c=c+1
print(c)
| [
"noreply@github.com"
] | swathichinnaiyan.noreply@github.com |
d4ea202031d8effa052f5564c89a304be2b0d059 | 1e826a1c4194aaba4e84c3dfeb7976f1ed3f2e78 | /news/news_project/comments/migrations/0002_auto_20200801_1158.py | 7570e07062b98136f31ef9e35be2eca3ba793561 | [] | no_license | choirulihwan/django | 95e62c8601dc34ddc7a3b816296683437fbc57f8 | 5cee04f4443f463088a5309b81aee6cb688f15ac | refs/heads/master | 2022-12-13T10:07:12.276471 | 2022-01-09T08:57:36 | 2022-01-09T08:57:36 | 237,208,107 | 0 | 0 | null | 2022-11-22T09:48:06 | 2020-01-30T12:26:17 | HTML | UTF-8 | Python | false | false | 988 | py | # Generated by Django 3.0.8 on 2020-08-01 04:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('articles', '0005_auto_20200621_1449'),
migrations.swappable_dependency(settings.AUT... | [
"aristhu_oracle@yahoo.com"
] | aristhu_oracle@yahoo.com |
c6fefc0d9cd14428c2fecf957fb3004e2681e8c1 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Quantization/trend_Lag1Trend/cycle_12/ar_12/test_artificial_32_Quantization_Lag1Trend_12_12_20.py | eb6deb2d6bbd89999096af776def00111e27d043 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 273 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Quantization", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
4f58e11e6d3006d75c64a4af4da9ea4792b0bd65 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_detain.py | 3dfe8ec171cbb2f81c8c7242a587dcbea4b45df8 | [
"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 | 451 | py |
#calss header
class _DETAIN():
def __init__(self,):
self.name = "DETAIN"
self.definitions = [u'to force someone officially to stay in a place: ', u'to delay someone for a short length of time: ', u'to keep someone in prison for as long as the courts feel is necessary']
self.parents = []
self.childen = []
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fd8ed3a75dca376e8d0523b9c1913aeb43585369 | d305e9667f18127e4a1d4d65e5370cf60df30102 | /scripts/update_onnx_weight.py | eaff46f61b3bafc13431d6b903dee7bce0b5030e | [
"Apache-2.0",
"MIT",
"Libpng",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"IJG",
"Zlib",
"MPL-1.1",
"BSD-3-Clause",
"BSD-3-Clause-Open-MPI",
"MPL-1.0",
"GPL-2.0-only",
"MPL-2.0",
"BSL-1.0",
"LicenseRef-scancode-unknow... | permissive | imyzx2017/mindspore_pcl | d8e5bd1f80458538d07ef0a8fc447b552bd87420 | f548c9dae106879d1a83377dd06b10d96427fd2d | refs/heads/master | 2023-01-13T22:28:42.064535 | 2020-11-18T11:15:41 | 2020-11-18T11:15:41 | 313,906,414 | 6 | 1 | Apache-2.0 | 2020-11-18T11:25:08 | 2020-11-18T10:57:26 | null | UTF-8 | Python | false | false | 2,557 | py | #!/usr/bin/env python3
# coding=UTF-8
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | [
"513344092@qq.com"
] | 513344092@qq.com |
869cbcd717d4522fce402db11a0f1460e1bfc621 | 5ff8cefa68d52d2427bb3d35320cd8bd0d072968 | /Python/StringExample1.py | 7a0151c415f069ae83b964413dd1a6c11c307e85 | [] | no_license | gsudarshan1990/PythonSampleProjects | a65a111454f8dc551f1cd29901cead0798ad6dc3 | 3c1a5174c5f966b0eed2828221add76ec0d019d5 | refs/heads/master | 2020-05-09T16:02:37.743568 | 2019-07-14T06:22:55 | 2019-07-14T06:22:55 | 181,255,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | string1='banana'
print(string1[1])
print(string1[0])
index=0
while index<len(string1):
print(string1[index])
index=index+1
for char in string1:
print(char)
s='Monty Python'
print(s[0:5])
print(s[6:len(s)])
fruit='banana'
print(fruit[:3])
print(fruit[3:])
#count of 'a' in banana
count=0
fruit='banan... | [
"sudharshan.govindarajan@ey.com"
] | sudharshan.govindarajan@ey.com |
a821b7476c8f38c2679e241169a4e01ca9220af4 | 779c469b548d42dc679bf34da6041c813a7ce9cc | /sphinx_template/my_package/viz.py | 3026a4ac69e8fb1c3f86813e32afdc92271c6376 | [
"MIT"
] | permissive | millerbest/zero_to_docs | b2e68af564db8f47441d44ded18c3a8a3b0c21f2 | 3f5c72ca76c457fefaba9b2a182e11cc89e5bf6d | refs/heads/master | 2021-08-14T14:35:37.415612 | 2017-11-16T01:08:21 | 2017-11-16T01:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import numpy as np
import matplotlib.pyplot as plt
def plot_random_dots(N, scale=10, ax=None, cmap=None):
"""Plot some random dots"""
if ax is None:
fig, ax = plt.subplots()
if cmap is None:
cmap = plt.cm.viridis
dots = np.random.randn(2, N)
size = dots * scale
ax.scatter(*dots... | [
"choldgraf@berkeley.edu"
] | choldgraf@berkeley.edu |
39a8852e875c0852577e8c9e9103df9b6f18d343 | 6deafbf6257a5c30f084c3678712235c2c31a686 | /Toolz/sqlmap/waf/asm.py | 17244efb49a3344e7790047f270fd98805bfc3e7 | [
"Unlicense",
"LicenseRef-scancode-generic-cla",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-only",
"LicenseRef-scancode-commercial-license",
"LicenseRef-scancode-other-permissive"
] | permissive | thezakman/CTF-Heaven | 53fcb4a72afa821ad05d8cc3b309fb388f958163 | 4b52a2178922f1502ab00fa8fc156d35e1dc653f | refs/heads/master | 2023-04-05T18:20:54.680378 | 2023-03-21T13:47:45 | 2023-03-21T13:47:45 | 167,290,879 | 182 | 24 | Unlicense | 2022-11-29T21:41:30 | 2019-01-24T02:44:24 | Python | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
from lib.core.settings import WAF_ATTACK_VECTORS
__product__ = "Application Security Manager (F5 Networks)"
def detect(get_page):
retval = False
for vector in WAF_ATTAC... | [
"thezakman@ctf-br.org"
] | thezakman@ctf-br.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.