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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
790f67a27f41c7f4456c418cf0e03464a2005369 | e4ee9f2ca60b60ea9fa1b05c982594a2c1b10484 | /day61 课上笔记以及代码 django orm跨表查询/代码/manytable/app01/models.py | 17295b515cdc4aa9e96bd4ea8605780ea96f0da5 | [] | no_license | tianshang486/Pythonlaonanhai | 100df2cc437aad1ee1baf45bdfc4500b1302092b | 2a5b46986f5ca684b2ae350596e293db54e1e2f4 | refs/heads/master | 2022-09-19T02:16:56.972160 | 2020-06-04T09:24:30 | 2020-06-04T09:24:30 | 269,314,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | from django.db import models
# Create your models here.
from django.db import models
# Create your models here.
#作者表
class Author(models.Model): #比较常用的信息放到这个表里面
name=models.CharField( max_length=32)
age=models.IntegerField()
# authorDetail=models.OneToOneField(to="AuthorDetail",to_field="nid",on_delete=m... | [
"tianshang486@.com"
] | tianshang486@.com |
fd4fd9e65dc6ee6914dcc793301d1b035fea57b1 | 3da6b8a0c049a403374e787149d9523012a1f0fc | /Coder_Old/早期代码/test6.py | 73386cf5c9237f095c66d194c9e0dbf3b2a33fb8 | [] | no_license | AndersonHJB/PyCharm_Coder | d65250d943e84b523f022f65ef74b13e7c5bc348 | 32f2866f68cc3a391795247d6aba69a7156e6196 | refs/heads/master | 2022-07-25T11:43:58.057376 | 2021-08-03T02:50:01 | 2021-08-03T02:50:01 | 348,922,058 | 3 | 3 | null | 2021-09-05T02:20:10 | 2021-03-18T02:57:16 | Python | UTF-8 | Python | false | false | 363 | py | user_answer_correct = False #False
while not user_answer_correct: #True
user_gender = input("请输入你的性别(F/M):")
if user_gender == 'F':
print("你是萌妹子!")
user_answer_correct = True
elif user_gender == 'M':
print("你是糙汉子!")
user_answer_correct = True
else:
print("输入不正确,请输入'F'或'M'")
| [
"1432803776@qq.com"
] | 1432803776@qq.com |
79f773c3ae16399c5f62a3cf1fb0ce58800a4bfe | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_7/gdljam001/question1.py | 82f4d81b71c8d1fa705a32a941e2345642497547 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | """Enter strings delete duplicates print
James Godlonton
29 April 2014"""
def main():#Main function get input of strings and print unique ones
print("Enter strings (end with DONE):\n")
count=0
words=[]#array is used to keep order
newWord=input("")#get first string
#append to array
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
89407569d51f23f7788a8c25ad587b13bfa7d953 | 68a52ad1df836c9f6d922515b2f896b6928ce6a0 | /SafetyProductionSystem/systemsettings/migrations/0003_auto_20190225_1623.py | 899014ddee8e156d68343a14982871a4e35b7333 | [] | no_license | Chuazhen0/SafetyProductionSystem | 1141f845e04b032ff2a230c8def26066f061600c | 442d5df3818d43aebb9830f2456c73018aae2acf | refs/heads/master | 2020-05-20T12:47:46.365020 | 2019-05-08T09:56:01 | 2019-05-08T09:56:01 | 185,579,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # Generated by Django 2.0.5 on 2019-02-25 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('systemsettings', '0002_supervisiontype_form_use'),
]
operations = [
migrations.AddField(
model_name='kks',
name='KKs... | [
"Caohuazhenrn@163.com"
] | Caohuazhenrn@163.com |
8e718c6efb993cb859b4413f341342e7098c2c60 | 01062df369907a6ff4367ad006d9be75f3b0886f | /zvt/recorders/eastmoney/dividend_financing/__init__.py | 49e6bf4757df6edae05a9e784d6be28b8a1da5cc | [
"MIT"
] | permissive | scanfyu/zvt | 917d8dd6df63fd3d55183896710573700f615a0e | 2ff38155bd85fb0945a7b45cad8dbdf2f175a3d5 | refs/heads/master | 2021-12-01T13:40:00.241766 | 2021-11-26T16:04:04 | 2021-11-26T16:04:04 | 186,553,012 | 0 | 0 | MIT | 2020-03-01T02:33:08 | 2019-05-14T05:46:40 | Python | UTF-8 | Python | false | false | 1,256 | py | # -*- coding: utf-8 -*-
# the __all__ is generated
__all__ = []
# __init__.py structure:
# common code of the package
# export interface in __all__ which contains __all__ of its sub modules
# import all from submodule eastmoney_dividend_detail_recorder
from .eastmoney_dividend_detail_recorder import *
from .eastmoney... | [
"5533061@qq.com"
] | 5533061@qq.com |
c8495695dfc3158a39b3fd5002042159feee657f | 74b12c96a73d464e3ca3241ae83a0b6fe984b913 | /python/tvm/ir/memory_pools.py | 6fa6bb41280ee5b88cdca8431f31b4201bd621c5 | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | masahi/tvm | cf765bb892655f02135e1ce3afde88698f026483 | c400f7e871214451b75f20f4879992becfe5e3a4 | refs/heads/master | 2023-08-22T20:46:25.795382 | 2022-04-13T08:47:10 | 2022-04-13T08:47:10 | 138,661,036 | 4 | 2 | Apache-2.0 | 2021-09-03T20:35:19 | 2018-06-25T23:39:51 | Python | UTF-8 | Python | false | false | 4,811 | 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... | [
"noreply@github.com"
] | masahi.noreply@github.com |
272841adc8391f599019c7c4e827f9a9d32e39c6 | bb5d587afdf7fb455972889b1453b48371b55c25 | /my_projects/social_project/social_profile/urls.py | 5ae5e9d4a2bf24fbbd6c72a76988e482e20487cd | [] | no_license | nilldiggonto/projects_dj3_vue3_js | e8a98019c1e5ec65724c09733054afbacfb22ead | 6ce52c29c3560a25ed36ba074fc6c2a60191ebe4 | refs/heads/main | 2023-05-30T06:00:06.558789 | 2021-05-29T10:06:02 | 2021-05-29T10:06:02 | 342,195,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | from django.urls import path
from .views import socialprofileView,follow_userView,unfollow_userView,followerView,followView,edit_avatarView
urlpatterns = [
path('avatar/',edit_avatarView,name='social-edit-avatar'),
path('<str:username>',socialprofileView,name='social-profile'),
path('<str:username>/follow/... | [
"nilldiggonto@gmail.com"
] | nilldiggonto@gmail.com |
668ee56d3db6869a5a34ef2f597168e88eb72fe4 | 337522cddf5931972932a870e24905567889a49f | /example7.py | e772a6cd235c28c6f95c89d68e7929327932a8dd | [] | no_license | taichi-dev/voxel-challenge | 3d7552d7029328e9c28e2665c06e1b23a15bcc30 | 94c28c8c37d6ff1547daf47becf9731be41dc2e5 | refs/heads/main | 2023-07-10T06:59:02.694455 | 2022-08-04T03:06:53 | 2022-08-04T03:06:53 | 481,891,435 | 186 | 45 | null | 2022-08-05T16:09:43 | 2022-04-15T08:29:35 | Python | UTF-8 | Python | false | false | 5,837 | py | from scene import Scene; import taichi as ti; from taichi.math import *
day = True; manual_seed = 77
scene = Scene(voxel_edges=0, exposure=2 - day)
scene.set_floor(-0.05, (1.0, 1.0, 1.0))
scene.set_background_color((0.9, 0.98, 1) if day else (0.01, 0.01, 0.02))
scene.set_directional_light((1, 1, 1), 0.1, (0.9, 0.98, 1)... | [
"noreply@github.com"
] | taichi-dev.noreply@github.com |
e15565680e10de69563972677f3682cd3d1140ce | aff608f59d1c9ecee2ebca0ac63e0e1775502858 | /sitegeist/cache.py | 0244a7db751c7415809f9af64171871519dea17c | [] | permissive | parthkhatri1998/sitegeist | 45a5010dad09fabd98be59a9fd0dc18289749ba7 | 231b18dfb3a5a0fce32c1c5e01227dcf9bb18010 | refs/heads/master | 2022-12-23T01:37:37.721753 | 2020-09-30T16:26:15 | 2020-09-30T16:26:15 | 299,981,485 | 0 | 0 | BSD-3-Clause | 2020-09-30T16:25:45 | 2020-09-30T16:25:45 | null | UTF-8 | Python | false | false | 1,509 | py | import datetime
import logging
from django.conf import settings
from sitegeist.mongo import db
logger = logging.getLogger(__name__)
class CoordinateCache(object):
def __init__(self, namespace, snap_radius=None):
self.namespace = namespace
self.snap_radius = snap_radius or settings.SITEGEIST['G... | [
"jcarbaugh@gmail.com"
] | jcarbaugh@gmail.com |
dc14a031d4b4835a5f528eaa2f8bc1d6d6d739ac | dd027c4bbcace97e3dbf566c123b178ceb1a8282 | /sett/jenkins.py | e001b1bf4d4e59dbd5a8ad9a75c21044fbe740be | [] | no_license | cecedille1/Sett | 479bf00ca8df807f431e235c68b892bb90fab9b0 | bf8b9f204caa532a5fb8f110ab4e4a1cea03cb96 | refs/heads/master | 2021-01-10T13:28:11.614022 | 2016-03-31T16:51:14 | 2016-03-31T16:51:14 | 43,488,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from paver.easy import task, call_task
@task
def jenkins():
"""Runs the Jenkins tasks"""
# Generate nosetest.xml
# Generate coverage.xml
# Generate flake8.log
try:
call_task('quality', options={
'output': 'flake8.log',
... | [
"gr@enix.org"
] | gr@enix.org |
f6a4e829c58c1e15e58c94bdee01590ada2c674c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_228/ch167_2020_06_22_18_23_48_389416.py | 3422198732d84d06c9a9ad4b22dcf97ec1c7fdeb | [] | 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 | 410 | py | def bairro_mais_custoso(empresa):
semestral={}
for bairro in empresa:
semestral[bairro]=0
for gasto in empresa[bairro][6:]:
semestral[bairro]+=gasto
maiorcusto=0
nome=""
for bairro,custo in semestral.items():
if custo>maiorcusto:
maiorcusto=custo
... | [
"you@example.com"
] | you@example.com |
3ade7e133fc24950c2902b71a88de65edfd42d9e | 1ba8d8ae275524a2ac61226dca4a21972cf6c355 | /Deep_Learning_with_TensorFlow/1.4.0/Chapter10/8. Estimator-DNNClassifier.py | 0355ab5fda86fa6dc0e3bc53a476c1c09fb64d08 | [
"MIT"
] | permissive | hyphenliu/TensorFlow_Google_Practice | 4e2da546f6056ddbbda26a2d9855cc96c2e3a708 | 0ea7d52a4056e5e53391a452a9bbd468175af7f5 | refs/heads/master | 2020-09-28T17:13:05.032238 | 2018-07-18T08:07:34 | 2018-07-18T08:07:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py |
# coding: utf-8
# ### 1. 模型定义。
# In[1]:
import numpy as np
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
tf.logging.set_verbosity(tf.logging.INFO)
mnist = input_data.read_data_sets("../../datasets/MNIST_data", one_hot=False)
# 定义模型的输入。
feature_columns = [tf.feature_column.nu... | [
"1786546913@qq.com"
] | 1786546913@qq.com |
2252aa44817b2d07ab6ed5d0ee6a3517d72f807c | aa7de5b75b65404715676121d61a9b06348d5f62 | /telemetry/telemetry/internal/platform/device_finder.py | 4547ecd20747c41e9da726a41ddad68480306fba | [
"BSD-3-Clause"
] | permissive | benschmaus/catapult | 3ca2ede51e4a23082e634fa07a03c11158bd6d9a | f388b1f6b90c670b6524fd68a295bae26ba8db70 | refs/heads/master | 2021-01-20T07:53:45.431708 | 2017-07-17T18:03:09 | 2017-07-17T18:03:09 | 90,060,605 | 0 | 1 | null | 2017-05-02T17:38:42 | 2017-05-02T17:38:41 | null | UTF-8 | Python | false | false | 1,304 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Finds devices that can be controlled by telemetry."""
from telemetry.internal.platform import android_device
from telemetry.internal.platform import cros... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
d9d3518697740e62f5fcd78a2d44d8952a390926 | e976eb4db57ddee4947cbab8746446dd53f6cf6f | /101-150/三角形最小路径和.py | ec3af7dda958d297f2e463e0f3c2c521d4e43907 | [] | no_license | Aiyane/aiyane-LeetCode | 5328529079bcfbc84f4e4d67e3d8736b9745dc0d | 3c4d5aacc33f3ed66b6294894a767862170fb4f6 | refs/heads/master | 2020-04-01T20:33:54.125654 | 2019-06-25T09:56:10 | 2019-06-25T09:56:10 | 153,610,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 三角形最小路径和.py
"""
给定一个三角形,找出自顶向下的最小路径和。每一步只能移动到下一行中相邻的结点上。
例如,给定三角形:
[
[2],
[3,4],
[6,5,7],
[4,1,8,3]
]
自顶向下的最小路径和为 11(即,2 + 3 + 5 + 1 = 11)。
说明:
如果你可以只使用 O(n) 的额外空间(n 为三角形的总行数)来解决这个问题,那么你的算法会很加分。
"""
__author__ = 'Aiyane'
class Solution(object):
def... | [
"2310091880qq@gmail.com"
] | 2310091880qq@gmail.com |
d52dadc7c858dec5f454c2bdd7b914dc1e9870c5 | c90b3ac3e5ad11cb93d4e6b76b9b9c4a19d0f512 | /.history/copytest_20200502125750.py | 3f5f083b6c965e4eb030019b5d6986b066591552 | [] | no_license | rbafna6507/passwordstorageproject | 6465585e36c81075856af8d565fe83e358b4a40a | 480c30e358f7902ac0ef5c4e8d9556cb1d6d33f4 | refs/heads/master | 2022-11-25T12:05:02.625968 | 2020-07-27T21:33:38 | 2020-07-27T21:33:38 | 283,021,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | import pickle
import cryptography
from cryptography.fernet import Fernet
"""def encrypt(message: bytes, key: bytes) -> bytes:
return Fernet(key).encrypt(message)
def decrypt(token: bytes, key: bytes) -> bytes:
return Fernet(key).decrypt(token)
"""
infile = open('jeff.pkl','rb')
z = pickle.load(infile)
key = ... | [
"35872545+rbafna6507@users.noreply.github.com"
] | 35872545+rbafna6507@users.noreply.github.com |
ee82fb7cc4fd156f236ae8bafab57f23b8736e1b | 7b3711d4c6d7284255ba0270d49d120f984bf7c6 | /problems/549_binary_tree_longest_consecutive_sequence_ii.py | 9351f1ab9242d7c976ab632e31e3661c5bf978ce | [] | no_license | loganyu/leetcode | 2d336f30feb55379aaf8bf0273d00e11414e31df | 77c206305dd5cde0a249365ce7591a644effabfc | refs/heads/master | 2023-08-18T09:43:10.124687 | 2023-08-18T00:44:51 | 2023-08-18T00:44:51 | 177,875,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | '''
Given a binary tree, you need to find the length of Longest Consecutive Path in Binary Tree.
Especially, this path can be either increasing or decreasing. For example, [1,2,3,4] and [4,3,2,1] are both considered valid, but the path [1,2,4,3] is not valid. On the other hand, the path can be in the child-Parent-chil... | [
"logan.yu@cadre.com"
] | logan.yu@cadre.com |
39490c4724d2b3f930595661177772125731acc9 | ab79f8297105a7d412303a8b33eaa25038f38c0b | /education/school_transport/wizard/transfer_vehicle.py | 6d509565898bbd75f1f7b57dd95cfd567302c7c2 | [] | no_license | adahra/addons | 41a23cbea1e35079f7a9864ade3c32851ee2fb09 | c5a5678379649ccdf57a9d55b09b30436428b430 | refs/heads/master | 2022-06-17T21:22:22.306787 | 2020-05-15T10:51:14 | 2020-05-15T10:51:14 | 264,167,002 | 1 | 0 | null | 2020-05-15T10:39:26 | 2020-05-15T10:39:26 | null | UTF-8 | Python | false | false | 4,425 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2011-2012 Serpent Consulting Services (<http://www.serpentcs.com>)
# Copyright (C) 201... | [
"prog1@381544ba-743e-41a5-bf0d-221725b9d5af"
] | prog1@381544ba-743e-41a5-bf0d-221725b9d5af |
990dbb97b825729a03f9e35c2c4534b21c1a05e4 | 2a171178942a19afe9891c2425dce208ae04348b | /kubernetes/client/models/v1alpha1_certificate_signing_request_status.py | 7d4e56624b8742735902dccd5ab749de8d607509 | [
"Apache-2.0"
] | permissive | ouccema/client-python | ac3f1dee1c5ad8d82f15aeecb87a2f5f219ca4f4 | d7f33ec53e302e66674df581904a3c5b1fcf3945 | refs/heads/master | 2021-01-12T03:17:54.274888 | 2017-01-03T22:13:14 | 2017-01-03T22:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.0-snapshot
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Li... | [
"mehdy@google.com"
] | mehdy@google.com |
c4e9f6e335fa168175f5e5b8bf42d3dcdb16c8d4 | b59e093876a78054bf58ae16fa245bace5d924a2 | /maxWidthRamp.py | fb91dfb4aae2584c36dc9a7c834098301dea7ae2 | [] | no_license | NeilWangziyu/Leetcode_py | 539551585413e1eebd6e6175ba3105c6bc17e943 | 4105e18050b15fc0409c75353ad31be17187dd34 | refs/heads/master | 2020-04-08T03:50:05.904466 | 2019-10-15T07:13:49 | 2019-10-15T07:13:49 | 158,991,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | class Solution(object):
def maxWidthRamp(self, A):
"""
:type A: List[int]
:rtype: int
"""
if not A:
return 0
if len(A) < 2:
return 0
res = 0
for i in range(len(A)):
for j in range(i+1, len(A)):
if A[i... | [
"noreply@github.com"
] | NeilWangziyu.noreply@github.com |
049cb528754542f06ea9fb36b875d4720677fdeb | 5de14b0e96e17822aafdd0658aef846693db2786 | /app/core/tests/tests_admin.py | fbce74a7b8516edecfa5f3236de2aa61dfbd05bd | [
"MIT"
] | permissive | mahinm20/recipe-app-api | 392a6cec214d54522cd7ebbb21bb4a443ab8d6ef | f9d6c69ae71cdd3c265f50b503cb027c6cb307a9 | refs/heads/master | 2022-10-05T01:03:19.799872 | 2020-06-07T21:25:05 | 2020-06-07T21:25:05 | 264,731,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTests(TestCase):
def setUp(self):
self.client = Client()
self.admin_user = get_user_model().objects.create_superuser(
email = 'mahinmalhotra20@gmail.com',
... | [
"mahinmalhotra20@gmail.com"
] | mahinmalhotra20@gmail.com |
486f1f5d15eb52bf0fc58132dc6ea64812ba691a | d274e22b1cc5d546855fe46b089b13cfe2f4047c | /september2020/solutions/day03_RepeatedSubstringPattern.py | bb4d713142470f406a4f140eab73257325d2f299 | [] | no_license | varunkumar032/lockdown-leetcode | ca6b7a8133033110680dd226c897dd8a1482682b | 15a72a53be9005eca816f018cb1b244f2aa4cdfb | refs/heads/master | 2023-06-30T08:31:54.323747 | 2021-07-12T11:29:59 | 2021-07-12T11:29:59 | 260,616,280 | 0 | 0 | null | 2021-05-06T10:24:48 | 2020-05-02T04:52:37 | Python | UTF-8 | Python | false | false | 728 | py | # Given a non-empty string check if it can be constructed by taking a substring of it and
# appending multiple copies of the substring together.
# You may assume the given string consists of lowercase English letters only and its length
# will not exceed 10000.
# Example 1:
# Input: "abab"
# Output: True
# Explanat... | [
"varunkumar032@gmail.com"
] | varunkumar032@gmail.com |
588a8a5be895bf8a6ad7215fca32c5d78ead3cf1 | 7202b4cf562fcacf2f684c1985b448b5780c4967 | /alds1/05d.py | c2600d1dd7eb418017cba2b350db2a0f9c426f45 | [] | no_license | mskt4440/AOJ | ce523182dbd75e85c1bba43d7d23217711b8e617 | f6d9ca36e77a88ed9ddbeb53340a745bf8cac157 | refs/heads/master | 2021-07-07T00:34:23.034606 | 2020-09-24T02:25:43 | 2020-09-24T02:25:43 | 188,768,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #
# alds1 05d
#
def merge(A, left, mid, right):
count = 0
L = A[left:mid]
R = A[mid:right]
L.append(1000000001)
R.append(1000000001)
i, j = 0, 0
for k in range(left, right):
if L[i] <= R[j]:
A[k] = L[i]
i += 1
else:
A[k] = R[j]
... | [
"mskt4440@gmail.com"
] | mskt4440@gmail.com |
8762b8e7d197c08bf7bf83f303877557b9522988 | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /util/admin/utempter/actions.py | 8c7613e8e50b84e6a3887ce3173972ecb7f86f3e | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
f... | [
"eki@420bcd57-4a62-4fd6-832e-5ede16c90cc9"
] | eki@420bcd57-4a62-4fd6-832e-5ede16c90cc9 |
84090d40ff2316d42b863fad8d472445fab799f6 | 1dca0675aa9c56bc13d2423362e21914c9426cfa | /web_29_jul_dev_8220/wsgi.py | e17ecdf2603d683b1472cb55c3f5b29a649233af | [] | no_license | crowdbotics-apps/web-29-jul-dev-8220 | 9c5a1ba90482dde61d8ec4f0e6ba9bc8f28b71cb | 5583b4280a97c8269a36265bf56c27c3c6515e54 | refs/heads/master | 2022-11-29T05:14:25.319284 | 2020-07-29T05:09:48 | 2020-07-29T05:09:48 | 283,399,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
WSGI config for web_29_jul_dev_8220 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
06b9b4cd93422773c9648fa9e62d931e63211375 | 357b233baba79125936def2065cdb7d20008b06e | /scraper/spiders/bilkent_turkish_writings.py | e3f4f5788e139e2e565a4f9229211db4945f1685 | [] | no_license | selimfirat/bilkent-turkish-writings-dataset | 00e7bf8d83f21ce54705022887ad49ab54e8fbcd | be662fd50987a653071af0673e1247fb4c4ce7ed | refs/heads/master | 2021-05-08T14:33:35.472323 | 2018-02-04T15:59:27 | 2018-02-04T15:59:27 | 120,089,498 | 41 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import scrapy
from scrapy import Request
from scrapy.linkextractors.lxmlhtml import LxmlLinkExtractor
from writing_entry import WritingEntry
class BilkentTurkishWritingsSpider(scrapy.Spider):
name = "bilkent_turkish_writings"
custom_settings = {
"ITEM_PIPELINES": {
'scrapy.pipelines.file... | [
"yilmazselimfirat@gmail.com"
] | yilmazselimfirat@gmail.com |
4eb07103153cd420fa53c7b6c7e7f84d5bc4c189 | 9cfdc1373b59b92121a0a4ab795a395ac8440fbf | /python/false_nearest_neighbours.py | c5ca028d352032a8575fd13ac8e1c99f4829885b | [] | no_license | physycom/metnum | ae1da308ba333dd036dea46319c45c2ba81bd1ca | cb114bb49062f9a9ec165e294a05b24663c60f17 | refs/heads/master | 2023-04-01T07:30:21.122348 | 2023-03-22T16:06:27 | 2023-03-22T16:06:27 | 34,463,378 | 4 | 6 | null | 2018-03-23T21:59:19 | 2015-04-23T15:04:48 | C++ | UTF-8 | Python | false | false | 2,205 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 19 22:30:58 2018
@author: NICO
"""
import numpy as np
import matplotlib.pylab as plt
import scipy
dt = .01
it = 10000
sigma = 16.
b = 4.
r = 45.92
x, y, z = np.empty(shape=(it)), np.empty(shape=(it)), np.empty(shape=(it))
x[0], y[0], z[0] = 10, 1, 1
Vx = lambda x, y, s... | [
"nico.curti2@unibo.it"
] | nico.curti2@unibo.it |
9e5a7e72a9833ec32ef8a92895d30c8b3d688938 | 66b2bccf07754119b9eed320d9f7715fa52f6d44 | /scrapy_learn1/utils/dbbaseutil.py | 2c512ebc43bf825ae27711e81ddf171a5572ea7b | [] | no_license | wangsanshi123/scrapy_learn1 | 678c3708e3765ab26cff8799a55d0153abe9da55 | 16bf80a634484842e9b66db9138c2f4c8769d087 | refs/heads/master | 2020-03-08T07:42:56.260798 | 2018-04-04T03:26:58 | 2018-04-04T03:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import warnings
import sqlite3
import pymysql
warnings.filterwarnings('ignore')
__author__ = 'yangsheng'
class DBUtil(object):
def __init__(self, dbpath):
self._dbpath = dbpath
self._conn = sqlite3.connect(self._dbpath)
def cursor_execute_one(self, s... | [
"118319592@qq.com"
] | 118319592@qq.com |
b751373ce90366b0f78e58e0b5902ed2dfc9ceb2 | 69d8a912212c1355470c298ac4f2fb716aed9982 | /proyecto/adopcion/models.py | 1f6b436c1ecfcf697d872172f1543322344ffd27 | [] | no_license | juampiludu/almanimal | b7fa92cb34cd8b908ef609036fb647fd1ca328a7 | 033037823252a13fd20514c226dd100837fdc610 | refs/heads/master | 2023-01-20T17:46:57.671217 | 2020-12-02T04:05:03 | 2020-12-02T04:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils.html import mark_safe
from django.templatetags.static import static
# Create your models here.
class Animal(models.Model):
class Sexo(models.TextChoices):
MACHO = 'Macho'
HEMBRA = 'Hembra'
... | [
"juanzakka@gmail.com"
] | juanzakka@gmail.com |
96c5e9e11b6540e09bfed4c444788cc0a3fcee75 | 119f503a2786a929db24937c2b91d63ac9c2af72 | /examples/plot_sig_bkg.py | be5db7ccfca401c916b1cf0e9d086ed26b2c7c44 | [
"BSD-3-Clause"
] | permissive | loopylangur/zfit | f1c1e352eca5c1e58fbe276ba4b65b409f0faa6d | 535b970dfb6611ef687a184746b9e191756506ba | refs/heads/master | 2020-12-20T14:41:30.985958 | 2020-01-12T15:28:54 | 2020-01-12T15:28:54 | 236,109,089 | 0 | 0 | null | 2020-01-25T00:59:17 | 2020-01-25T00:59:16 | null | UTF-8 | Python | false | false | 2,592 | py | # Copyright (c) 2019 zfit
import numpy as np
import zfit
import matplotlib.pyplot as plt
# create space
obs = zfit.Space("x", limits=(-10, 10))
# parameters
mu = zfit.Parameter("mu", 1., -4, 6)
sigma = zfit.Parameter("sigma", 1., 0.1, 10)
lambd = zfit.Parameter("lambda", -0.06, -1, -0.01)
frac = zfit.Parameter("fra... | [
"mayou36@jonas.eschle.com"
] | mayou36@jonas.eschle.com |
9ef8ca178f37669d0f1c6165b9589e22eec12759 | 8a6dbabe023deea0d29e666bc4d6d7a53a51f08d | /tests/test_drug_response.py | aa7473787c40a3b048261fec9ad60fc92a61aba5 | [
"CC-BY-NC-ND-4.0",
"Apache-2.0"
] | permissive | pasmopy/breast_cancer | 01d2c1f387364b71fc99a7a5250b0d39decd7575 | f6113dd286476069d1abc7627475e626e5cbeafc | refs/heads/master | 2023-04-10T03:08:52.806513 | 2022-09-21T15:52:03 | 2022-09-21T15:52:03 | 348,209,066 | 7 | 4 | Apache-2.0 | 2022-09-21T15:52:05 | 2021-03-16T04:05:57 | Python | UTF-8 | Python | false | false | 984 | py | import os
import shutil
import pandas as pd
from drug_response.drug.database import CancerCellLineEncyclopedia
def test_create_figs():
for dir in ["dose_response", "activity_area"]:
if os.path.isdir(dir):
shutil.rmtree(dir)
ccle = CancerCellLineEncyclopedia()
erbb_expression_ratio = p... | [
"31299606+himoto@users.noreply.github.com"
] | 31299606+himoto@users.noreply.github.com |
72587c53ee9d480ee96056750566064d1ab30347 | 4c82c378774437b4fece5865a469485d11dd5c04 | /games/files_directories.py | 013a16b59ba58486ac2ffae7e1b4f38ad5e817c5 | [] | no_license | Cunarefa/Matrix | 54c4bbfd588d5f1a5d5889228be5224b85889538 | 634a793c1554458ab6b9b65014ba3fde279b4c4d | refs/heads/master | 2023-07-25T17:39:02.795840 | 2021-09-10T11:25:31 | 2021-09-10T11:25:31 | 401,263,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | from abc import ABC, abstractmethod
class Component(ABC):
@abstractmethod
def get_size(self):
pass
def add_component(self, component):
pass
class File(Component):
def __init__(self, size):
self.size = size
def __add__(self, other):
return self.size + other.size
... | [
"yevgen.yelik@gmail.com"
] | yevgen.yelik@gmail.com |
ec7974d7ba5104cef543b2d76097554593a51e29 | a1d8b5de6a54dc942f63e2e4a946db174cae0996 | /ctci-making-anagrams/main.py | 5af3a78f3b4833c0e58dbb912cc1a9f0c63d7d09 | [
"MIT"
] | permissive | joaojunior/hackerrank | 5dae64166b6fdbec8b7bd2112443fdfde0e64e74 | a5ee0449e791535930b8659dfb7dddcf9e1237de | refs/heads/master | 2021-11-22T07:53:33.978238 | 2021-09-28T00:35:16 | 2021-09-28T00:35:16 | 116,694,043 | 0 | 1 | MIT | 2018-02-21T00:29:09 | 2018-01-08T15:29:26 | Python | UTF-8 | Python | false | false | 354 | py | def make_anagrams(a, b):
d_a = {}
d_b = {}
qty = 0
for c in a:
d_a[c] = d_a.get(c, 0) + 1
for c in b:
d_b[c] = d_b.get(c, 0) + 1
for c, frequency in d_a.items():
qty += abs(frequency - d_b.get(c, 0))
for c, frequency in d_b.items():
if c not in d_a:
... | [
"jcajcefet@yahoo.com.br"
] | jcajcefet@yahoo.com.br |
adfe0cf1de9c32946f939923d8014e797f2e7db0 | 01fdd206c8c825b30870bdd3f6e75f0aa113b849 | /test/record/parser/test_response_whois_isoc_org_il_property_status_transfer_allowed.py | 3e8870b0af59fcdedef88641297afba471c8dc7e | [
"MIT"
] | permissive | huyphan/pyyawhois | 0fbc5a7d64a53ae6e3393fdc1c7ff0d0ac5f22b5 | 77fb2f73a9c67989f1d41d98f37037406a69d136 | refs/heads/master | 2021-01-23T22:42:55.989651 | 2015-09-19T16:40:06 | 2015-09-19T16:40:06 | 23,335,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py |
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
# spec/fixtures/responses/whois.isoc.org.il/property_status_transfer_allowed
#
# and regenerate the tests with the following script
#
# $ scripts/generate_tests.py
#
from nose.tools import *
from dateutil.... | [
"dachuy@gmail.com"
] | dachuy@gmail.com |
ba5c8b5a65db1e493db1a3389552f2447aac39b0 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/11110011.py | 6a4ef801f0e27b7b31926ae3ec0e52db71d2bbe9 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/11110011.py generated: Wed, 25 Jan 2017 15:25:20
#
# Event Type: 11110011
#
# ASCII decay Descriptor: {[[B0]nos -> mu+ (tau- -> pi+ pi- pi- nu_tau) (K*(892)0 -> K+ pi-)]cc, [[B0]nos -> (tau+ -> pi+ pi- pi+ anti-nu_tau) mu- (K*(892)0 -> K+ pi-)]cc, [[B0... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
cb8dcbaeebb340b0047d76d8fbbc2286bb66e39b | 21e7753732296bfdfb6dd9a9b58c7c6b8d90a1e5 | /ArraysAndStrings/IsUnique/IsUnique.py | 4841949c494375e7ad7ad4044c532c52a0ddc5b6 | [] | no_license | rongfeng-china/python-algorithms-and-data-structures | eb8514b44d7ff97dd7c4deda2d8ea888a5aa8d04 | a69241bb7b684bc7d00acdd46c2fc214f7b61887 | refs/heads/master | 2020-03-13T09:08:13.375870 | 2015-12-11T07:37:30 | 2015-12-11T07:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # Accepts a string and returns true if all chars in the string are
# unique. Returns false otherwise. Assumes strings made up of
# lowercase letters 'a' through 'z'
def isUniqueChars(str):
checker = 0
for c in str:
value = ord(c) - ord('a')
if (checker & (1 << value)) > 0:
return False
checker |= (1 << valu... | [
"prathamt@outlook.com"
] | prathamt@outlook.com |
f2b8894c23d54c6d333e01186a92793a177ca940 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4424/codes/1637_2443.py | da74fa2d94940f25db95693ea2d3556c85cc5da1 | [] | 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 | 403 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
from math import*
r = float(input("Digite um numero: "))
h = float(input("Digite um numero: "))
n = float(input("Digite um numero: "))
if(n==1):
x=((pi*h**2)*(3*r... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
06d7833c5cf9a4d4c3c82424abe3000b5fccce9a | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/212441d0-5cc5-11e4-af55-00155d01fe08.py | ce239a839bec9440133bfd44d09eebdbf2016b3e | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | #!/usr/bin/python
################################################################################
# 212441d0-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
a33256408c609682eb43687b84b9c799e96b48e9 | 7c44b3e06bd9d212b81e1d237c2bf945940b8893 | /numpy_pandas_matplotlib/matplotlib_and_seaborn_part_1/bar_chart_practice.py | c76603b8b5de4ae08b6b6ee2a954a9fd4a89edfe | [] | no_license | sivaneshl/ai_programming_with_python | e89f9faf566b01b844fe83329dd3e54257141397 | 75801197fcc1ebbb827cc9c8cf7c8ab9e373e1e2 | refs/heads/master | 2022-04-11T07:58:50.148433 | 2020-04-05T05:22:16 | 2020-04-05T05:22:16 | 248,581,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | # prerequisite package imports
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sb
pokemon = pd.read_csv('pokemon.csv')
print(pokemon.head())
# Task 1: There have been quite a few Pokémon introduced over the series' history. How many were introduced in each
# generation? Create... | [
"sivaneshl@virtusa.com"
] | sivaneshl@virtusa.com |
d9e20c42cd6f1cd9777d48d2c582d65d0e74ca28 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/1009.py | d384122c55980468d170b2657602724644c3e86d | [] | 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 | 251 | py | t=input()
m=1
while m<=t:
n,d=map(int,raw_input().split())
ti=[]
while d:
d-=1
a,v=map(int,raw_input().split())
ti.append(float(n-a)/float(v))
ti=max(ti)
print "Case #"+str(m)+": {0:.6f}".format(round(float(n)/float(ti),6))
m+=1 | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5b370a69edfe4fc04c6aecace8d9746361dbb566 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/loadtesting/azure-mgmt-loadtesting/azure/mgmt/loadtesting/operations/__init__.py | 402d17a0616ec39fabd982a5382b8a74612463d5 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 917 | 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"
] | Azure.noreply@github.com |
38ff0aebf3aeaaff4c9604670e7270beb6611cde | 94ca5a956889a1263bb58fc9b8624455503783cd | /page/storagebox/personinfo.py | 686ff5550dfec556681b1a366cf3509647dcb18c | [] | no_license | xmaimiao/wmAPP | 50bfbd5c50982cae0723fa3ce3f3f8c59314403b | b427f0afaccde0d939b275f9f48724d404257f1e | refs/heads/master | 2023-03-27T05:16:31.920995 | 2021-03-29T07:31:11 | 2021-03-29T07:31:11 | 352,554,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | from appium.webdriver.common.mobileby import MobileBy
from page.basepage import BasePage
from page.storagebox.editpage import EditPage
class PersonInfo(BasePage):
edit_ele = (MobileBy.XPATH,'//button[@class="van-button van-button--primary van-button--large van-button--plain van-button--block"]')
def goto_edi... | [
"765120214@qq.com"
] | 765120214@qq.com |
fe735cb9f61a0d4d595382311f8f59fc71f50011 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v1/model/i_frame_widget_definition_type.py | 4b9a12abbd72dab5bebb2895c3a106438d65446c | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 857 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from datadog_api_client.model_utils import (
Mo... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
d22ec5d91e8e2f8415c562b398f5064d16e44272 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02380/s032648197.py | e45329928543031c03cf6ec6f6bb061bf46b86d1 | [] | 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 | 281 | py | import math
a, b, C = map(float, input().split())
S = (a * b * math.sin(math.radians(C))) / 2
L = a + b + (math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(C))))
h = b * math.sin(math.radians(C))
print("{:.8f}".format(S))
print("{:.8f}".format(L))
print("{:.8f}".format(h))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9d448fa4788fc7db4f9ad0d3f889f2f0add779c3 | a9937139b1af85180cea706a52d447abce2430f4 | /a/cwiczenie_4-1/BMI.py | e4e109f6ff184f3c7a759b39f3ad213864c556ca | [] | no_license | MirekPz/Altkom | 8f16014d43adb10e87804ae2b5d23151924cb226 | 0a49e75e681593b41d07cbff63dea0723a11756b | refs/heads/master | 2020-09-29T00:12:37.990353 | 2019-12-13T15:52:30 | 2019-12-13T15:52:30 | 226,899,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | wzrost = float(input("Podaj wzrost [m]; "))
waga = float(input("Podaj wagę [kg]; "))
BMI = waga/wzrost**2
print(round(BMI, 2))
if BMI < 16:
print("Wygłodzenie")
elif BMI <=16.99:
print("Wychudzenie")
elif BMI <= 18.49:
print("Niedowaga")
elif BMI <= 24.99:
print("Wartość prawidłowa:")
elif BMI <= 29.... | [
"mirek@info-tur.pl"
] | mirek@info-tur.pl |
388d322e7321b6221b4e638c5421221acdb06151 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil2978.py | 9e6b9ff316ab2c467b06cfb9f702676e859600a3 | [
"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 | 1,959 | py | # qubit number=4
# total number=46
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += CNOT(0,3) # number=10
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
218eff2b76cfe7f74adbaddd19c69e8b4a65b612 | bc441bb06b8948288f110af63feda4e798f30225 | /cmdb_sdk/model/container/hpa_pb2.pyi | ba9ca505ff5c447e180d7f7fc8dc3ec1ccd8f670 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,592 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from cmdb_sdk.model.container.resource_metric_source_pb2 import (
ResourceMetricSource as cmdb_sdk___model___container___resource_metric_source_pb2___ResourceMetricSource,
)
from google.protobuf.descriptor import (
Descriptor as google___pr... | [
"service@easyops.cn"
] | service@easyops.cn |
642b38a413df309b7c1b02b03690ef51953c2841 | b25182d0034468e5e545c6c72e5a2cdd3c43a484 | /.PyCharm2017.2/system/python_stubs/-223353804/lxml/etree/DTD.py | 4a9de7fc7e62c4dfc3e361e63287deb22bbafd98 | [] | no_license | lovewula/config | f9ac16b30082c04be7733969d5359ee6c7258db6 | c0720e5bfd49f579a52f83de36de40c76996ebf6 | refs/heads/master | 2021-08-19T19:31:44.088218 | 2017-11-27T08:04:06 | 2017-11-27T08:04:06 | 111,974,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | # encoding: utf-8
# module lxml.etree
# from D:\Python\Python27\lib\site-packages\lxml\etree.pyd
# by generator 1.145
""" The ``lxml.etree`` module implements the extended ElementTree API for XML. """
# imports
import __builtin__ as __builtins__ # <module '__builtin__' (built-in)>
from _Validator import _Validator
c... | [
"lovewula1314@gmail.com"
] | lovewula1314@gmail.com |
568c23ea6c150f1790bd62cfcdcca3c4eb2884d9 | cca5ceb42b09e567d79fcb46f298757c1ff04447 | /Requests/ProxyIP.py | 16b5e0c5908fa2e51b4e45542a118d54b3bdf395 | [] | no_license | NishantGhanate/PythonScripts | 92933237720e624a0f672729743a98557bea79d6 | 60b92984d21394002c0d3920bc448c698e0402ca | refs/heads/master | 2022-12-13T11:56:14.442286 | 2022-11-18T14:26:33 | 2022-11-18T14:26:33 | 132,910,530 | 25 | 15 | null | 2022-12-09T09:03:58 | 2018-05-10T14:18:33 | Python | UTF-8 | Python | false | false | 536 | py | import requests
from lxml.html import fromstring
def get_proxies():
url = 'https://free-proxy-list.net/'
response = requests.get(url)
parser = fromstring(response.text)
proxies = set()
for i in parser.xpath('//tbody/tr')[:20]:
if i.xpath('.//td[7][contains(text(),"yes")]'):
#Grab... | [
"nishant7.ng@gmail.com"
] | nishant7.ng@gmail.com |
d3c160de4501cb84be1bc3e5585762ce8b657d36 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/network/fortios/test_fortios_switch_controller_quarantine.py | 4093a700e7f1a2da8709a47b049c6a23e71f795d | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,077 | py | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
eec408b4327d41fd937c2ad9c5fbdfce8c90427b | 777844bd87b2e87bb992af18bdf13ca1b2c747fd | /nnvm/tutorials/nlp/from_darknet_rnn.py | bbf70c724bbe43a4aeba64d71b5443cd3a88be94 | [
"Apache-2.0"
] | permissive | FrozenGene/tvm | 5a6d875e39af0f2c00e1508bf33a3f699ae9ac27 | fbd1c16484b5710a48717b9cf50f424326a84cca | refs/heads/master | 2021-06-18T09:14:49.173534 | 2019-04-02T00:10:16 | 2019-04-02T00:10:16 | 155,194,851 | 1 | 2 | Apache-2.0 | 2018-10-29T10:43:18 | 2018-10-29T10:43:18 | null | UTF-8 | Python | false | false | 5,383 | py | """
Compile Darknet Models for RNN
==============================
**Author**: `Siju Samuel <https://siju-samuel.github.io/>`_
This article is an introductory tutorial to deploy darknet rnn models with NNVM.
This script will run a character prediction model
Each module consists of 3 fully-connected layers. The input l... | [
"tqchen@users.noreply.github.com"
] | tqchen@users.noreply.github.com |
9e786306217ad5c74dde5a37eab383d4a736229b | d7a1b26449211f4ea67dce9370f6558f16df992c | /todo/settings.py | 1e4b4da5176e67e3e8e7a02f0936daf740f04dde | [] | no_license | SonerArslan2019/ToDoAPP_Django_BULMA | 8c245b49e2f8f6e35d34b9cf34bdc923fc065ce5 | 8a0c8d97699b856c7634b2a98692b9311a0bf183 | refs/heads/master | 2023-04-15T08:33:19.635367 | 2021-04-25T19:11:18 | 2021-04-25T19:11:18 | 361,483,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,296 | py | """
Django settings for todo project.
Generated by 'django-admin startproject' using Django 3.2.
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 pathlib impo... | [
"soner@arslanyapi.com.tr"
] | soner@arslanyapi.com.tr |
71ec5eb99a91022cff32c68fb9a82d33c1fe8b5a | 2a5c0c49319989a24f9c9f18530f109bc48a8df1 | /CursesEnded/SecondYear/PythonJava(InternetOfThings)/list5/driver2.py | c165f04582e1365ac5166f1e5e28d3e6b1d1892d | [] | no_license | Kamil-IT/Studies | 0ada6dd92d7ecdbd0a3164c7c80080dd715ce8fc | d70343b2b7818ce303d816443bb15d21e03b42e0 | refs/heads/master | 2022-12-22T01:55:35.047783 | 2022-10-20T18:55:29 | 2022-10-20T18:55:29 | 217,039,987 | 0 | 1 | null | 2022-12-10T06:03:55 | 2019-10-23T11:24:33 | Jupyter Notebook | UTF-8 | Python | false | false | 1,105 | py | import json
import paho.mqtt.client as mqtt
import requests
def subscribe_topic(broker_url, topic, on_message):
client = mqtt.Client()
client.connect(broker_url)
client.subscribe(topic)
client.on_message = on_message
client.loop_forever()
def on_message_app2_driver(client, userdata, msg):
i... | [
"kkwolny@vp.pl"
] | kkwolny@vp.pl |
eb13bc5a7c58a79ab899c6c06b92d27c1a45639b | 933ed73cdf117fc6c88c1ebba7a17b82807a16e8 | /docs/00.Python/demo_Chapter01/demo_python_structure/pkg/module1.py | 7fde6166ac45f7f13a4c86150943558d3d96b12d | [
"Apache-2.0"
] | permissive | wan230114/PythonNote | c4fff80f6f3849ed0b0346526d3c6197a4867d2c | f4989a44c03efdcea3f7aa3484e3470e7fd983eb | refs/heads/master | 2023-01-28T14:51:07.304066 | 2023-01-12T18:38:16 | 2023-01-12T18:38:16 | 242,367,069 | 5 | 6 | Apache-2.0 | 2021-01-05T23:35:10 | 2020-02-22T15:45:01 | JavaScript | UTF-8 | Python | false | false | 876 | py | """这是该模块1的说明文档"""
print("""这是模块1,它包含:
三个变量: a -- 数值对象, ClassName -- 类对象, func -- 函数对象
一个类: ClassName; 类方法有: __init__, main; 类属性有: self.arg
一个函数: func
五个语句块: 1 * class, 3 * def, 1 * for
七个语句: 5 * print, a = 520, self.arg = arg
""")
a = 520
class ClassName(object):
"""这是类的说明文档"""
def __... | [
"1170101471@qq.com"
] | 1170101471@qq.com |
eac26296fc7adb18685967c93a73c56898d63177 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/mehmet/2011/python-pymodel/actions.py | 2f6b2f799e6cfaa6c12c1a1ad5670d9f8917771d | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2011 TUBITAK/BILGEM
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
instalDir = "/usr/lib/python2.7/si... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
e3f4ec202b116de4065c3adbc9dff68c89344718 | 7b3009e019e081667df67c6b41328b5db632b898 | /render_video.py | 2c1ab87baf640b84dd9b59daeeae4eb0ce89851e | [
"MIT"
] | permissive | frostburn/multibranch-mandelbrot | d1e2cc6bce6ab8f065b678fb2133bd3057b832d5 | 84e4887ffc90a5338ae448ced6f62fcf40bc11a1 | refs/heads/master | 2023-08-02T18:20:56.671175 | 2021-09-28T09:57:58 | 2021-09-28T09:57:58 | 287,219,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,123 | py | import argparse
from threading import Thread, Lock
import imageio
import progressbar
from pylab import *
from coloring import red_lavender, subharmonics
from mandelbrot import mandelbrot
RESOLUTIONS = {
"2160p": (3840, 2160),
"1440p": (2560, 1440),
"1080p": (1920, 1080),
"720p": (1280, 720),
"480p... | [
"lumi.pakkanen@gmail.com"
] | lumi.pakkanen@gmail.com |
66b835b459e04052f8a621dc21cce79fcd3161d7 | 52877e2b60ed675eb16ea66c7398127294a313d3 | /t2t_bert/utils/wmd/emd_utils.py | 9cf43816e992e02220600b9cacca89a96f46c2b0 | [
"Apache-2.0"
] | permissive | yyht/BERT | 0dc82ea8e141cad4774e638dd7d44f781d77b6c3 | 480c909e0835a455606e829310ff949c9dd23549 | refs/heads/master | 2023-04-07T03:32:28.123608 | 2021-02-17T02:15:58 | 2021-02-17T02:15:58 | 162,232,730 | 37 | 12 | Apache-2.0 | 2022-11-21T21:15:04 | 2018-12-18T05:02:27 | Python | UTF-8 | Python | false | false | 2,167 | py | import numpy as np
from pyemd import emd
def wmd_distance(w2v_model, document1, document2, distance_metric=None):
len_pre_oov1 = len(document1)
len_pre_oov2 = len(document2)
document1 = [token for token in document1 if token in w2v_model]
document2 = [token for token in document2 if token in w2v_model]
diff1 = l... | [
"albert.xht@alibaba-inc.com"
] | albert.xht@alibaba-inc.com |
28c9e7a82531a49e4999185788a456a178e709e1 | e585c3a61b830d3c24a8cec8343d262c84c724e7 | /CDocente/page_objects/certificados/certificado.py | 2f5e659cdb2509b4cb1c522eee4d2652a84b9a52 | [] | no_license | Valupiruiz/AutomationPHP | bb0728b2b6508b017c133a7d560a652033adeaf4 | 9a92634ac9f5b27e46723294f9a4cc83a1f99252 | refs/heads/master | 2023-01-18T17:27:57.819270 | 2020-11-27T15:04:49 | 2020-11-27T15:04:49 | 310,594,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | from page_objects.base_page import BasePage
from .locators import CertificadoLocator
from utils.file_utils import FileUtils
import time
from selenium.common.exceptions import TimeoutException
class Certificado(BasePage):
def __init__(self, driver):
super().__init__(driver)
self.__locators = Certi... | [
"tomasmoreira04@gmail.com"
] | tomasmoreira04@gmail.com |
965cb0a1756aaadfefc1748a36c0fbcf6e13f0e5 | 595d901410872617023f773a6dbe66a174187c42 | /DL/Avanzado/Vision-Transformer/model.py | 66c2689836cdda5250d8bbda32997a8963b935bb | [] | no_license | HiroForYou/Deep-Learning-Collection | 70c3b4405bd0f733aa946b71be0292a497bbb947 | 2b199692739fac8929eb144f9556af544f4eb2ac | refs/heads/main | 2023-03-26T21:57:23.581940 | 2021-03-19T20:12:28 | 2021-03-19T20:12:28 | 346,814,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,343 | py | import numpy as np
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
import tensorflow_addons as tfa
from dataset import dataset
import matplotlib.pyplot as plt
# HIPERPARÁMETROS PARA EL modelo
num_classes = 10 # CIFAR10
input_or... | [
"csanchezs@uni.pe"
] | csanchezs@uni.pe |
09c8465762b44641a8cc4519d5f269a6dc59a91c | 9f9082b2d84da1ade9952c829b8ec99e23db2b98 | /server/fandogh/user/migrations/0001_initial.py | 82beed1205d25f0e08a64e9190376d7f90145cb6 | [
"MIT"
] | permissive | RezaHaidari/fandogh | 384c79fe7eb26e3a7e7f4bf4597e99fa90227921 | 6173ab9dee0e5b9756edf31149aad9af0e0d3564 | refs/heads/master | 2020-03-22T22:53:09.004039 | 2018-07-09T11:36:26 | 2018-07-09T11:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # Generated by Django 2.0.4 on 2018-05-11 16:33
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='EarlyAccessRequest',
fields=[
('id', models... | [
"soroosh.sarabadani@gmail.com"
] | soroosh.sarabadani@gmail.com |
d664dec3a87d05a323144383c5556092f7f21f1b | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merra882/202-tideGauge.py | 4b1714fee2523770b8179de06ec5eb94a4ef4150 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a multiple
linear regression model by using the KFOLD method
@author: Michael Tadesse
"""
import os
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
from datetime import date... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
fe5b37ccd855ee6b445798c4539aaf393b818090 | 619e8253a0228a0574907c242d56870472296eb0 | /CodingWithMitchBlog-REST-API-master/codem/bin/pip3.6 | face2994356fd3358c40c3d286a03fcca6c21d2a | [] | no_license | Ttdon/python_django | 15c85e28076ccaf266107a692c1b099ed62019e9 | 30dbde3b0b5c0217d531d9f8d118972ff2c2cd7c | refs/heads/master | 2022-12-03T02:31:01.245574 | 2020-08-07T18:32:26 | 2020-08-07T18:32:26 | 285,895,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | 6 | #!/home/tushar/CodingWithMitchBlog-REST-API-master/codem/bin/python3
# -*- 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())
| [
"tushartewari1303@gmail.com"
] | tushartewari1303@gmail.com |
2568181fde20bb83a9f7a33fb2090d8119de6ec3 | 9cc76b1b1dd0064ab6613cbca6ce93bc179db355 | /ros_ws/build/learning_ros/Part_5/baxter/baxter_playfile_nodes/catkin_generated/pkg.installspace.context.pc.py | 2e56c2a223ee9ec076119eee9d3a16d56eae8dd9 | [] | no_license | ABCaps35/learning_ros_ready_ws | 1131c32b2ecadffa8dd186c9ebcfdba7284f30ad | 1aa9c512d5006584e8bc84101a715e16a222a47d | refs/heads/main | 2023-04-03T20:32:58.671255 | 2021-04-13T23:41:13 | 2021-04-13T23:41:13 | 357,715,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;baxter_trajectory_streamer;baxter_core_msgs;actionlib_msgs;actionlib;message_runtime".replac... | [
"acapelli345@gmail.com"
] | acapelli345@gmail.com |
51d8568490a1781ef7ca2fa74c0aef9d3c9f5ec0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_006/ch48_2020_04_12_21_24_01_061638.py | 9c1f6cfd8b3898f2c2a4cc3ef540bcb5e2ab118e | [] | 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 | 167 | py | def eh_crescente(lista):
i=0
while i<len(lista)+1:
if lista[i]>lista[i+1]:
return False
else:
i=i+1
return True | [
"you@example.com"
] | you@example.com |
c7536023e9486893ec16d5707de7ac063969e19b | b8b26feac86b66b0b534996cf9c3fbf7ec660240 | /aoc/2017/p4-1.py | be141d4c2566c509ad300a44a0e19e7e434f8d0d | [
"MIT"
] | permissive | neizod/problems | 775fffe32166c5b124d0e4c973b8d0aba7f3900b | 180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a | refs/heads/master | 2021-07-08T12:30:31.100320 | 2021-05-26T09:34:19 | 2021-05-26T09:34:19 | 6,245,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | #!/usr/bin/env python3
try:
count_valid = 0
while True:
words = input().split()
if len(words) == len(set(words)):
count_valid += 1
except EOFError:
print(count_valid)
| [
"neizod@gmail.com"
] | neizod@gmail.com |
cde6c585d670f66bf5a084cb7aec810097077915 | 1bb3c20ce5a53889eac280826d7d54194c7db33f | /for/2439.py | b1333e23a6387266851abaadc0f09354c94b77b0 | [] | no_license | yejiiha/BaekJoon_step | bd2c040597766613985ae8d3a943999cb35d6671 | 3eaedbb832f14c51f3fb990e7e140f00d732df1e | refs/heads/master | 2023-03-24T06:36:28.851139 | 2021-03-21T14:15:40 | 2021-03-21T14:15:40 | 285,825,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # Print triangle of star("*") pattern in Python-2
n = int(input())
if(1 <= n <= 100):
for i in range(n):
print(" "*(n-i-1), end="")
print("*"*(i+1))
| [
"1126yezy@gmail.com"
] | 1126yezy@gmail.com |
9cd58086bf97e69c46d9c3544b7e8ceb6649658f | 9cf05d16fc60ed8435f9ddcf56206c855e4dc6d4 | /00-4-all-time/general-ref/python/other/game_of_life.py | 4239a2fb32e943ca979fcbfa4f1cf55f6c4ad69e | [] | no_license | ArjunBEG/WEB-DEV-NOTES | cfc31cb2c23be872b27574fa4cd0efef6a895bc3 | 77f1c62f92277ab4ae2f6c9f6e7683229b89506a | refs/heads/master | 2023-02-24T03:17:50.730192 | 2021-02-06T05:38:24 | 2021-02-06T05:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """Conway's Game Of Life, Author Anurag Kumar(mailto:anuragkumarak95@gmail.com)
Requirements:
- numpy
- random
- time
- matplotlib
Python:
- 3.5
Usage:
- $python3 game_o_life <canvas_size:int>
Game-Of-Life Rules:
1.
Any live cell with fewer than two live neighbours
dies, as if caus... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
7764b46689940609ecddf536816e202883b393c4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2087/60870/312566.py | 3c871a0b3807a2d9cdc87e29d5b7f948df2d3fd0 | [] | 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 | 499 | py | num = int(input())
num_list = []
for i in range(num):
num_input = int(input())
num_list.append(num_input)
res = num * num_list[0]
if res == 233:
res = 1
elif res == 20:
res = 10
elif res == 2911:
res = 22
elif res == 9999999999999999990:
res = 5
elif res == 12100:
res = 100
elif res == 7448... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4d7d1707d3378b01d0792b503d72b0b4aa7a2285 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/486/usersdata/303/114105/submittedfiles/AvF_Parte2.py | fc585c168e2c335395a59217dd7f2eb7645309a1 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | # -*- coding: utf-8 -*-
lista_idade=[]
idade=int(input('Digite a idade:'))
while idade!= -1:
idade=int(input('Digite a idade:'))
for i in range(0,idade,1):
lista.append(i)
print(lista_idade) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e8b516bb647c466fd7efd3f098ab67748adb1c8e | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_0/Python/arty/A.py | dc0b912ceda06892bff4cadd222d6566cfd8ed86 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | __author__ = 'artiom'
from fractions import gcd
def is_power_of_two(x):
while (x % 2 == 0 and x > 0):
x /= 2
if (x != 1):
return False
else:
return True
def solve(p, q):
if (not is_power_of_two(q)):
return -1
result = 1
while p < q / 2:
result += 1
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
92b45bcc186cfd616c1e870cb5e7d6701c55a8bc | 2275b8467f22335fd2168f77586239b2a16ea07d | /hearthstone/entities.py | 8c7138373f3bafb7dabfeec9b15cd74d0999f4ff | [
"MIT"
] | permissive | beheh/python-hearthstone | 2b48d28799a908e0c8671c697d3395e5925108cb | 2b27da2ae091c97ec41ddc2264cc59d2ea860a9c | refs/heads/master | 2021-01-17T14:10:35.168665 | 2016-09-10T21:48:32 | 2016-09-10T21:48:32 | 68,319,747 | 0 | 0 | null | 2016-09-15T18:21:19 | 2016-09-15T18:21:18 | null | UTF-8 | Python | false | false | 3,212 | py | from .enums import CardType, GameTag, Step, Zone
class Entity(object):
_args = ()
def __init__(self, id):
self.id = id
self.game = None
self.tags = {}
def __repr__(self):
return "%s(id=%r, %s)" % (
self.__class__.__name__, self.id,
", ".join("%s=%r" % (k, getattr(self, k)) for k in self._args)
)
... | [
"jerome@leclan.ch"
] | jerome@leclan.ch |
7640fe03f455e0fd8a253760137f96e089165d0d | da3d35e7f381d3ff7d3acbf4c2142a3af464aeac | /cgi-bin/getjsfile.cgi | 18a876cead7d933775923665a4dcce994f68cb46 | [] | no_license | ranjithtenz/wnframework | 3d0b781a2da0ad3f91225829306a233e0bad2ac9 | fcd5dd0636bea30b5ee2584aea456a073158629f | refs/heads/master | 2020-04-08T13:02:21.405095 | 2011-06-20T10:39:42 | 2011-06-20T10:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | cgi | #!/usr/bin/python
import cgi
import datetime
import os
try:
form = cgi.FieldStorage()
out = ''
out_buf, str_out = '', ''
# Traceback
# ---------
def getTraceback():
import sys, traceback, string
type, value, tb = sys.exc_info()
body = "Traceback (innermost last):\n"
list = traceback.format_tb(tb, None... | [
"pdvyas@erpnext.com"
] | pdvyas@erpnext.com |
1d6a130d090e75a77bd547897433175e2107288a | 6821355bf5b255dccef9df2d6239b06bc3c28f72 | /blog_website/blog_website/apps/photo/migrations/0002_auto_20201109_1740.py | fddd3531690fcd27f1a15ecb68bc0c711844398c | [] | no_license | ltfred/blog_website | 76327e7adc8090db8754129d938040678cc03cff | 9cd0e1a644a4f99d9eea13b8e88f1faa20c38c2f | refs/heads/master | 2022-12-13T21:52:35.357980 | 2021-02-24T02:45:27 | 2021-02-24T02:45:27 | 209,324,876 | 6 | 1 | null | 2022-12-08T06:40:41 | 2019-09-18T14:09:24 | Python | UTF-8 | Python | false | false | 582 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2020-11-09 17:40
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('photo', '0001_initial'),
]
operations = [
migrations.AlterModelTable(
... | [
"ltfred@163.com"
] | ltfred@163.com |
848aacbb7fce373419b775fcebe7c949120adf66 | fdbd22dfdb9ae06896e24aa83cfa86aa1299efba | /The-Python-Workbook-Solutions/Section 4/Ex93.py | aad774859aec88bae2f1c88f2d5daccd3d0e353a | [] | no_license | CodedQuen/The-Python-Workbook-A-Brief-Introduction | 6450a16d8dbcf721885c1dc98907e3e16ac465a7 | 6c9f134223a343d5b8b9c529cd613c18dbf0f59d | refs/heads/master | 2022-06-21T06:37:33.459795 | 2020-05-05T10:48:50 | 2020-05-05T10:48:50 | 261,429,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 17:15:08 2019
@author: meyerhof
"""
def nextPrime(n):
while True:
if n < 0:
print("www")
print("El número no es un entero positivo")
n = float(input("Ingrese un número entero positiv... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
ea2648e09c6561379f3a1bcdaaf3dd4eb2260bb4 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/leet_20200615171650.py | 0fb9aa27f1496d4a51a52e9e583dbf751915e04f | [] | 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 | 477 | py | # how a binary tree works is the smaller numbers are
# on the left then the bigger ones are on the right
# returning the node also returns the children which is what
# you want
def search(root,val):
if root is None:
return []
elif root.val == val:
print(root)
return root
else... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
7aa0aeedc4f2a54ec5dbebcd7de1f5fe1fe6536e | b97729ad528be0cd211c1fe75bd43cca5ef65d2e | /api_test.py | 80ec608952d0999cab383dfa466a043be01245ad | [
"MIT"
] | permissive | chakki-works/CoARiJ-search | 04781459892da918f3dc902b9f6e91c036232fa0 | 9b2d3b4a1a40d45152effaab3b2b5ea9c5ed8cd3 | refs/heads/master | 2022-12-22T09:37:09.167277 | 2019-12-25T08:34:36 | 2019-12-25T08:34:36 | 227,003,986 | 0 | 0 | MIT | 2022-12-11T16:37:37 | 2019-12-10T01:40:03 | Python | UTF-8 | Python | false | false | 225 | py | import requests
import numpy as np
url = "http://127.0.0.1:8080/vectorize"
params = {"q": "僕の名前はみつりん", "lang": "jp"}
resp = requests.get(url=url, params=params).json()
print(resp["embedding"])
print(params)
| [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
bd24faf52a88f81bf4bbe7fd5c2eb461d025b3cb | 0bdaf322a5be633aa70827ae87d50f86c49c7a76 | /thread_sample/threads.py | adbac40eefb34a51fbe6a264de920168c227ce14 | [] | no_license | jasonwee/alertThreshold | 714cff391adf5b2052d61b29e13ac35e63662e89 | 2a67e0a2dff9b57474f0cdb1f55bc8512386c81d | refs/heads/master | 2022-12-10T23:40:04.409024 | 2019-12-19T08:45:57 | 2019-12-19T08:45:57 | 198,440,856 | 0 | 0 | null | 2022-12-08T05:55:11 | 2019-07-23T13:52:29 | Python | UTF-8 | Python | false | false | 1,353 | py | from Queue import Queue
from threading import Thread
class Worker(Thread):
"""Thread executing tasks from a given tasks queue"""
def __init__(self, tasks):
Thread.__init__(self)
self.tasks = tasks
self.daemon = True
self.start()
def run(self):
while True:
... | [
"peichieh@gmail.com"
] | peichieh@gmail.com |
4aa40243fee1ae9b616616912857ce1bd8a165ab | 5792baf9e18ad91816cc42f4725b099a4dce7b7b | /Pluralsight/Python Getting Started/lambda.py | d1d354e4a536026854064d2c2ec249fcdeea8034 | [] | no_license | deepakorantak/Python | 83b6782db0b5428d47fbc29193076e8ed5f5e285 | 9781133ce5a5c6f87efb5d4aa132a63ba1290f76 | refs/heads/master | 2020-03-23T19:55:30.075700 | 2019-02-19T06:24:42 | 2019-02-19T06:24:42 | 142,010,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | add = lambda x,y:x+y
def calculate(function,x,y):
return function(x,y)
def print_result(item):
for i in item:
yield i
res = 1
list_res = []
for i in range(1,6):
list_res.append(res)
res = calculate(add,res,i)
| [
"DeepaNKorantak@Gmail.com"
] | DeepaNKorantak@Gmail.com |
dd4bff3240df7045db9c77a29448844c22d0fbcd | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2652486_0/Python/icedingo/C.py | 256f90f72e67faf11853c5b2d01520146d3c82d0 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | import itertools
raw_input()
R, N, M, K = map(int, raw_input().split())
numbers = range(2, M+1)
products = {}
for i in xrange(N):
i += 1
for comb in itertools.combinations_with_replacement(numbers, i):
prod = reduce(lambda x,y : x*y, comb)
if prod not in products:
products[prod] = ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
59da0441dfdae546f6978a77dfa30809a9f016a4 | 3b604fe8f03f25859991cdab37804bcda51a4f18 | /dublyou/apps/competitions/migrations/0021_auto_20170208_1327.py | c209926f116eddd90b1a739362c65439c98c3d97 | [] | no_license | dublyou/matchup-games | e6238cbca7c30c6d4b4ddd161b84dfd5cc1bbacd | 07b2db2e7d52ac6590ab55a1a05e6076d8c9d680 | refs/heads/master | 2020-03-11T11:10:10.506719 | 2018-04-17T20:41:30 | 2018-04-17T20:41:30 | 129,956,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-08 19:27
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('competitions', '0020_auto_20170208_1326'),
]
operations = [
migrations.AlterUniqueT... | [
"jgriff@Calebs-MacBook-Pro.local"
] | jgriff@Calebs-MacBook-Pro.local |
38858d47bfbc0f344c5abb3b33b16dce0d4a44ba | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/AppStreamGlib/BundleClass.py | fff38c1582b8c4b940d7ee23fbf282772b0e6321 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 5,784 | py | # encoding: utf-8
# module gi.repository.AppStreamGlib
# from /usr/lib64/girepository-1.0/AppStreamGlib-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing at... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
31aa1f2ab88183a3c6820e7325e5564f79a2bf2a | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/numberMumbler/pancakes.py | 9e56f0b9a08a2b46aec3e868ba27265b17453014 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,521 | py | #!/usr/bin/env python
import sys
__outputTemplate = 'Case #{0}: {1}\n'
def flip(pancakes):
return [not p for p in reversed(pancakes)]
def flipAfter(stack, i):
return flip(stack[:i+1]) + stack[i+1:]
def flipPoint(stack):
for i in range(len(stack) - 1):
if stack[i] != stack[i+1]:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
d8f9c8c7ac57c4d2f0c1d2537727eab4815a6813 | 5d5a2511fd5f408437265a3bd94529730f4f357e | /latency/lib/atlasclient.py | 7b80a080a13f1efff3f8b017861849e903cb19d4 | [] | no_license | wwwiretap/atlas | 50f89006c6adec146c8e6039531610ba97e34185 | 409daba5e08c1b089580c81531fdf848376e1e90 | refs/heads/master | 2022-04-20T16:42:12.348475 | 2020-04-14T14:25:11 | 2020-04-14T14:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,280 | py | from datetime import datetime
import time
from ripe.atlas.cousteau import (
AtlasSource,
AtlasStream,
AtlasCreateRequest,
AtlasLatestRequest,
# Measurement,
Ping
)
import urllib.request
from urllib.error import HTTPError, URLError
import json
class AtlasClient:
def _... | [
"sirmatt@ksu.edu"
] | sirmatt@ksu.edu |
a7fba9ff5e2ef35f0c5b1435cd717b762c34ce13 | 622183f2069a84508e87d0ceebfd203d0ec9332a | /notes/07-03.py | 60681b0e07c2f2ae5b0f36b0649ae51a8b70f3de | [] | no_license | kasrasadeghi/cs373 | f4ff92fa8c472242fe9df10f6d5a022cba6fcdd9 | 7036f22db3e2830bf79395a3aef3c7bed4e58887 | refs/heads/master | 2021-01-01T18:23:57.473050 | 2017-07-25T15:58:55 | 2017-07-25T15:58:55 | 98,325,040 | 0 | 0 | null | 2017-07-25T15:59:32 | 2017-07-25T15:59:32 | null | UTF-8 | Python | false | false | 2,077 | py | # -----------
# Mon, 3 Jul
# -----------
"""
Java has 4 access directives
public
protected: descendents and package
private
nothing: package
class A {
private static int _ci;
private int _i;
public A (...) {
...}}
class T {
public static void main (...) {
s.o.... | [
"downing@cs.utexas.edu"
] | downing@cs.utexas.edu |
5d2b249842e4c8208f1359651391dcf5dffdf187 | 41063557c9a004ca49077c6042bba3cb8521e853 | /jobsapp/graphql/sub_mutations.py | 9de270f6dd14ce1679d3bb8056d116c405d2c5aa | [
"MIT"
] | permissive | manjurulhoque/django-job-portal | d71c17741cdb69fb7df49e20533a0c2e1e8ed2f1 | 01f2b7f77511e99cd5e6286ffa1abf36688f486c | refs/heads/master | 2023-08-03T01:01:52.878771 | 2023-07-24T07:40:06 | 2023-07-24T10:46:59 | 180,424,218 | 497 | 211 | MIT | 2023-09-02T10:13:37 | 2019-04-09T18:12:52 | Python | UTF-8 | Python | false | false | 1,722 | py | import graphene
from jobsapp.graphql.graphql_mixins import (
DynamicArgsMixin,
MutationMixin,
CreateNewJobMixin,
UpdateJobMixin,
SingleObjectMixin,
)
from jobsapp.graphql.input_types import TagInput
from jobsapp.graphql.permissions import IsAuthenticated, IsEmployer
from graphene.types import Int
... | [
"rumimanzurulhoque@gmail.com"
] | rumimanzurulhoque@gmail.com |
9f426550c3767ef67dac51e54f6d0d7937baeae8 | e2e188297b0ef47f0e7e935290f3b7a175376f8f | /contact_form/views.py | becd3867b41ead2c81f7b00bb2a8d6edaa837672 | [] | no_license | shubham1560/contact-us-backend | 77b615021f0db2a48444424a654cf3c61522c7d8 | c7ef2d3024ab3f3b6f077648d6f6f5357f01eebc | refs/heads/master | 2022-12-30T13:05:00.950702 | 2020-10-02T19:47:19 | 2020-10-02T19:47:19 | 296,075,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,041 | py | from django_countries import Countries
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView
from rest_framework import serializers, status
from .models import ContactForm
from rest_framework.response import Response
from .services import insert_contact_data, get_related_forms_... | [
"shubhamsinha2050@gmail.com"
] | shubhamsinha2050@gmail.com |
d622a74280f26b8cdea5b8e0085fb5ccdde31172 | 234c46d1249c9209f268417a19018afc12e378b4 | /tests/data/instance_test.py | 73e85d9f649992b50ec46216aed782120454611e | [
"Apache-2.0"
] | permissive | allenai/allennlp | 1f4bcddcb6f5ce60c7ef03a9a3cd6a38bdb987cf | 80fb6061e568cb9d6ab5d45b661e86eb61b92c82 | refs/heads/main | 2023-07-07T11:43:33.781690 | 2022-11-22T00:42:46 | 2022-11-22T00:42:46 | 91,356,408 | 12,257 | 2,712 | Apache-2.0 | 2022-11-22T00:42:47 | 2017-05-15T15:52:41 | Python | UTF-8 | Python | false | false | 2,588 | py | import numpy
from allennlp.common.testing import AllenNlpTestCase
from allennlp.data import Instance
from allennlp.data.fields import TextField, LabelField, TensorField
from allennlp.data.token_indexers import PretrainedTransformerIndexer
from allennlp.data.tokenizers import Token
class TestInstance(AllenNlpTestCase)... | [
"noreply@github.com"
] | allenai.noreply@github.com |
929a08ae553a84c21973df60cd0d91dc9e526d53 | 2bf43e862b432d44ba545beea4e67e3e086c1a1c | /nemo_text_processing/text_normalization/en/taggers/word.py | fa6a965aab2e4d802e2bfd8d001356c128d04cb5 | [
"Apache-2.0"
] | permissive | ericharper/NeMo | 719e933f6ffce1b27358bc21efe87cdf144db875 | f1825bc4b724b78c2d6ca392b616e8dc9a8cde04 | refs/heads/master | 2022-10-06T01:45:21.887856 | 2022-09-14T19:09:42 | 2022-09-14T19:09:42 | 259,380,135 | 1 | 0 | Apache-2.0 | 2022-09-20T18:01:57 | 2020-04-27T15:54:20 | Python | UTF-8 | Python | false | false | 3,999 | py | # Copyright (c) 2021, NVIDIA CORPORATION. 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"
] | ericharper.noreply@github.com |
43828f5474ff42399bbff1723cd7221e5eef2dbd | ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb | /python_modules/libraries/dagster-mlflow/setup.py | 552314aa025f85b9bf1cad2666fbd2c3b17c9277 | [
"Apache-2.0"
] | permissive | dagster-io/dagster | 6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a | fe21995e0402878437a828c6a4244025eac8c43b | refs/heads/master | 2023-09-05T20:46:08.203794 | 2023-09-05T19:54:52 | 2023-09-05T19:54:52 | 131,619,646 | 8,565 | 1,154 | Apache-2.0 | 2023-09-14T21:57:37 | 2018-04-30T16:30:04 | Python | UTF-8 | Python | false | false | 1,182 | py | from pathlib import Path
from typing import Dict
from setuptools import find_packages, setup
def get_version() -> str:
version: Dict[str, str] = {}
with open(Path(__file__).parent / "dagster_mlflow/version.py", encoding="utf8") as fp:
exec(fp.read(), version)
return version["__version__"]
ver ... | [
"noreply@github.com"
] | dagster-io.noreply@github.com |
4e6c7fc37d96589973c336770f2c0e6558b4a563 | 3b2867636844ab4b402ef091b61222a5870bae6e | /year2017/day11.py | 75e64438afc7810775e932d8cd33d43f4edb59b7 | [] | no_license | feigaoxyz/adventofcode | f992478ff6518930a60b9d4e15e5902d1f208f06 | 18918e16709eef833544f48d8c1a46c93d950000 | refs/heads/master | 2021-06-21T18:33:45.229440 | 2021-01-12T16:10:03 | 2021-01-12T16:10:03 | 51,060,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | from common import load_input
import math
import collections
PART1_DOC = """Part 1:
"""
PART2_DOC = """Part 2:
"""
example = """
"""
input_data = load_input(__file__.split('.')[0] + '_in.txt').strip()
dir2pos = {
'ne': (1, 0),
'n': (0, 1),
'nw': (-1, 1),
's': (0, -1),
'sw': (-1, 0),
'se': ... | [
"contact@feigao.org"
] | contact@feigao.org |
ae4b7f7157b4d2db0c88c8dc2ca34403c999109b | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /090_logging/_exercises/_templates/github/_python-logging-examples-master(1)/python-logging-examples-master/simplelogging.py | f557ad857ecc4355d986269d2a0513a869a4214a | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 365 | py | """ uses logging instead of prints, but no explicit logging config"""
______ verboselib
______ ?
__ -n __ '__main__':
vl _ verboselib.Noisy()
?.i..("This, and the logging from Noisy, will not be output.")
?.i..("because the default level is w..")
vl.do_debug()
vl.do_info()
?.w..("Watch out! ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
396b9355988ee6e7eaf7adba310ca1b98eda3d28 | 53384d9322bc867dc55e1c057052e6a65101fde5 | /project-addons/alg_custom/product.py | 57835f451306b0b17a1098b2f076b60525f28211 | [] | no_license | Comunitea/PXGO_00015_2014_alg | ce80059a843e2eb76c7eee889fb64d45729add84 | 83026b9eab791dd8892dfb39cd0b07ada23aa2ab | refs/heads/master | 2020-12-26T01:16:18.482404 | 2019-05-20T12:36:18 | 2019-05-20T12:36:18 | 58,064,428 | 0 | 0 | null | 2016-05-04T15:47:27 | 2016-05-04T15:47:26 | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2014 Pexego (<http://www.pexego.es>).
# $Omar Castiñeira Saavedra$
#
# This program is free software: you can redistribute it and/or modify... | [
"javierjcf@gmail.com"
] | javierjcf@gmail.com |
c437147abe11532977bc856b8a12cd72feafb324 | ec7591c3f478c43e76257aaa500d8f6a2e763d74 | /stanza/tests/pipeline/test_pipeline_constituency_processor.py | 9a5372063a5f6a995ccdbd1378abb6c219a5306c | [
"Apache-2.0"
] | permissive | stanfordnlp/stanza | 5cc3dbe70a96dd565639b7dae1efde6b4fa76985 | c530c9af647d521262b56b717bcc38b0cfc5f1b8 | refs/heads/main | 2023-09-01T12:01:38.980322 | 2023-03-14T16:10:05 | 2023-03-14T16:10:05 | 104,854,615 | 4,281 | 599 | NOASSERTION | 2023-09-10T00:31:36 | 2017-09-26T08:00:56 | Python | UTF-8 | Python | false | false | 2,678 | py |
import pytest
import stanza
from stanza.models.common.foundation_cache import FoundationCache
from stanza.tests import *
pytestmark = [pytest.mark.pipeline, pytest.mark.travis]
# data for testing
TEST_TEXT = "This is a test. Another sentence. Are these sorted?"
TEST_TOKENS = [["This", "is", "a", "test", "."], ["... | [
"horatio@gmail.com"
] | horatio@gmail.com |
04f239e41086ce3397abfacce7557e7b91529a04 | 9e31cabea36b122be02fa778264a5c9a313a7a3c | /chapter_17/p17_11.py | cfa8e8e01bd74d21fe5d43746d650b0967a3060a | [] | no_license | anywhere1234/CTCI_python | b1c27997fe20d17f48b423e647fed600811ab015 | 6c7e71f4829708da397867dd9b2cec61a654d3f9 | refs/heads/master | 2023-02-09T14:02:29.710006 | 2021-01-06T00:04:58 | 2021-01-06T00:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | # idea: Reverse index
# create mapping from key: word , value: sorted set of occurences (count words in book)
# when looking for shortest distance between 2 words, run 2 pointers in the sorted arr, find min diff
import re
from typing import List
from collections import defaultdict
import os
def build_reverse_index(... | [
"bogdan.stoicescu95@gmail.com"
] | bogdan.stoicescu95@gmail.com |
c1cb502b18baa9d3b28238e40b364115d4dcf14d | e57d7785276053332c633b57f6925c90ad660580 | /sdk/cognitivelanguage/azure-ai-language-questionanswering/tests/asynctestcase.py | 8893eeede181712ff1d1c85e0b584844f1b1b35e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 1,383 | 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.
# ---------------------------------------------------------------------... | [
"noreply@github.com"
] | adriananeci.noreply@github.com |
697a2797b172121b01fb5d02a0a072ac5454aa70 | b41ae9e761a6b4606e128f9572c6f1a896ccfbdc | /migrations/versions/6e71f302e270_thought_table.py | 3b1330909e82e551eaf52ad38b025266c1fd7b15 | [] | no_license | chrishaining/Flask-Stoic-Thoughts | 9e8a4d2be4eb66ecd95b363812ccc289daefbdfd | d31b52d8844fb325825c76674387a88c42ba6a70 | refs/heads/master | 2021-02-07T02:45:33.235475 | 2020-03-01T15:59:37 | 2020-03-01T15:59:37 | 243,973,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | """thought table
Revision ID: 6e71f302e270
Revises:
Create Date: 2020-02-29 12:19:12.158186
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6e71f302e270'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"chrishaining@yahoo.co.uk"
] | chrishaining@yahoo.co.uk |
330a6979ee3a64de179f3b718dcb8e9c5940b492 | faa1a9f8bfa60c6f3c1543ddf5c01ea8d6ec5898 | /CSAW-2019/Pwn/GOT Milk/exploit2.py | b66230aec1df4cf08fba47718917a204d01fb896 | [] | no_license | LJP-TW/CTF | afe0873029072da256b591c96a0b2a97df6644b2 | f9c30cf270130120bfe4ddf957299fb60ddf8c27 | refs/heads/master | 2023-05-27T17:08:56.579815 | 2023-05-22T10:33:42 | 2023-05-22T10:33:42 | 123,657,738 | 30 | 5 | null | 2023-05-22T10:32:56 | 2018-03-03T04:08:05 | Smali | UTF-8 | Python | false | false | 385 | py | from pwn import *
from struct import *
# r = remote('localhost', 5566)
r = remote('pwn.chal.csaw.io', 1004)
addrLosePlt = 0x804a010
offsetLose = 0x11f8
offsetWin = 0x1189
raw_input('>')
payload = ''
payload += pack('<I', addrLosePlt) # Will write 4 bytes
payload += '%133x' # Write bytes for %n 0x89
payl... | [
"accr94238@gmail.com"
] | accr94238@gmail.com |
66c8f43291c37439cb67bb146852b74f5ae5d297 | 019e125f8b893512e252aaf27ff6b957c2cc302d | /src/blueshed/fling/request.py | b5acbf2d18d41495e27914684bf74ce67d45c85c | [
"MIT"
] | permissive | blueshed/blueshed-py | 62523beae9e43a8f8ef065a627cae58b238e7244 | 61be378d8e24e60775cc2b8a6f17c6e959098fa2 | refs/heads/master | 2021-01-10T21:29:38.244214 | 2015-09-25T18:16:08 | 2015-09-25T18:16:08 | 38,447,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | '''
Created on Nov 2, 2013
@author: peterb
'''
class Request(object):
def __init__(self, name, options=None, callback=None, request_id=None):
self.name = name
self.options = options
self.request_id = request_id
self._callback = callback
self._handled = False
s... | [
"pete@blueshed.co.uk"
] | pete@blueshed.co.uk |
ce7b219f9a39eb4862625197e86d97bb10c3f8d3 | 6221ffae1ba52c8cbf12795e8696383248aae108 | /tf_agents/train/utils/strategy_utils.py | d2e5caf3763ecbe7d75ddd3b5b99917bfbb73cef | [
"Apache-2.0"
] | permissive | minsukchang/agents | c7a7be5d87d56b56048ec1dee7dcd3b45816d68b | 5b8dd0e589dab4c7d8ef28c3dfb99ba46d7d0f7d | refs/heads/master | 2022-02-13T21:30:30.093985 | 2022-01-25T15:52:09 | 2022-01-25T15:52:36 | 205,996,831 | 0 | 0 | Apache-2.0 | 2019-09-03T05:36:05 | 2019-09-03T05:36:05 | null | UTF-8 | Python | false | false | 2,113 | py | # coding=utf-8
# Copyright 2020 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
ec84607554daf8ed75b3f772e636a1ca9442b18b | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200510_python2/day16_py200708/sample/dict_sorting_value.py | 7dbd9333db5eb252d818d16c62b84d787fe96cb9 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | """
Python dictionary
Sorting by value
references:
https://blog.csdn.net/buster2014/article/details/50939892
"""
def sort_by_value(mydict):
"""
:param mydict:
:return: sorted dict by value, displaying key
"""
items = mydict.items()
backitems = [[v[1],v[0]] for v in items]
# backitems.sort... | [
"lada314@gmail.com"
] | lada314@gmail.com |
bcb5f25ce5e10170fb1f81e674fb1c249cd299e2 | a81c07a5663d967c432a61d0b4a09de5187be87b | /components/signin/ios/browser/DEPS | 1cbae6d899d540a81f026f8560d662d4b42aac35 | [
"BSD-3-Clause"
] | permissive | junxuezheng/chromium | c401dec07f19878501801c9e9205a703e8643031 | 381ce9d478b684e0df5d149f59350e3bc634dad3 | refs/heads/master | 2023-02-28T17:07:31.342118 | 2019-09-03T01:42:42 | 2019-09-03T01:42:42 | 205,967,014 | 2 | 0 | BSD-3-Clause | 2019-09-03T01:48:23 | 2019-09-03T01:48:23 | null | UTF-8 | Python | false | false | 391 | specific_include_rules = {
"account_consistency_service.mm": [
"+components/signin/core/browser/account_reconcilor.h",
"+components/signin/core/browser/signin_header_helper.h",
],
"account_consistency_service_unittest.mm": [
"+components/signin/core/browser/account_reconcilor.h",
"+c... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.