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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6db1a6a2d24a16c9c9268d3e74e6ee48c99f3eb8 | 054b9a9493c70c114f174f0815b89cf587f36cb3 | /NSUR/news/migrations/0038_auto_20180322_1707.py | 8be052ce8015264c1d432703d5c8a0bf7e5a19a8 | [] | no_license | ahmeditaev/NSUR | 0e751d6375a1f83c1c81d028f574a543e3a5318b | 278721d48134160dd559a7e02e343b1b86f153c7 | refs/heads/master | 2021-04-12T03:16:06.825324 | 2018-03-29T11:21:29 | 2018-03-29T11:21:29 | 125,815,512 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | # Generated by Django 2.0.3 on 2018-03-22 11:07
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('news', '0037_auto_20180322_1701'),
]
operations = [
migrations.AlterField(
... | [
"batyrbeknazik@gmail.com"
] | batyrbeknazik@gmail.com |
53d91c5a65f7e398cce22d33bba9c3e545eeb548 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnhti.py | 7310ed2190c6674c9ff2aa2ddaea6f6642d6db66 | [] | 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 | 62 | py | ii = [('LeakWTI.py', 1), ('BachARE.py', 1), ('WheeJPT.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
f0cfd6bb5a94edef280e5f882b62d25774cc9aaf | 917f713475565488673b76c698ba632fd5fbf087 | /pyatv/mrp/protobuf/RegisterHIDDeviceResultMessage_pb2.py | 8204f5c5d4bdc2387d38351139740082cdbb7d03 | [
"MIT"
] | permissive | Mikeflan1/pyatv | 18123f1a4f1b4566a255233163de16486850010a | 2a960af5f9e8912f3a7a04252894d9e5e01b6df9 | refs/heads/master | 2021-01-25T12:08:08.319000 | 2018-03-06T10:20:56 | 2018-03-06T10:20:56 | 123,455,787 | 0 | 1 | MIT | 2018-03-06T10:20:57 | 2018-03-01T15:44:03 | Python | UTF-8 | Python | false | true | 3,730 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pyatv/mrp/protobuf/RegisterHIDDeviceResultMessage.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from g... | [
"pierre.staahl@gmail.com"
] | pierre.staahl@gmail.com |
c3f0d6188258e68ebb6c5cd4f87fb65cb42209a9 | a0d0fe9597ecb89730cf0807c06e81f1d16d37bf | /course_grader/test/dao/test_csv.py | fefb7d4026103fd7175e399705b289711dfc5329 | [
"Apache-2.0"
] | permissive | uw-it-aca/gradepage | 5f1cd4056f3fb529603679ba4f0f03b4c4db14f2 | ef45ff41f3001dbd73ccbc6503484153f1fbf49f | refs/heads/main | 2023-06-21T20:39:31.608736 | 2023-06-14T03:08:04 | 2023-06-14T03:08:04 | 37,336,634 | 1 | 0 | Apache-2.0 | 2023-06-14T03:08:06 | 2015-06-12T18:00:57 | Python | UTF-8 | Python | false | false | 5,648 | py | # Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from django.test import TestCase, override_settings
from course_grader.dao.csv import InsensitiveDictReader, GradeImportCSV
from course_grader.dao.section import get_section_by_label
from course_grader.dao.person import PWS
from co... | [
"jlaney@uw.edu"
] | jlaney@uw.edu |
d2d7e2c972a56b569e88b4dd808171497ad6378d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03592/s234104453.py | dcf56f18349c4eb033fcd06e2b64f0f0895c93ed | [] | 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 | 166 | py | n,m,k=map(int,input().split())
ans="No"
for i in range(n//2+1):
for j in range(m):
o=i*j+(m-j)*(n-i)
x=n*m-o
if o==k or x==k:
ans="Yes"
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eacbff4f7c512db5b9cd6174acafed5e1134abdd | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/Udemy Learn Python GUI programming using Qt framework/github/10 - Standard Dialogs/standard-dialogs.py | c451aaa2a7daa8f448c9f7773d6f4c6496b7a087 | [] | 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 | 2,678 | py | from PySide.QtCore import *
from PySide.QtGui import *
import sys
__appname__ = "Tenth Video"
class Program(QDialog):
def __init__(self, parent=None):
super(Program, self).__init__(parent)
self.setWindowTitle(__appname__)
btn = QPushButton("Open Dialog")
self.mainSpinBox = QS... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
16f4e9cbb71526eb15c790ee3869c85a15c9eb89 | 155cfef4bb35d20bc574f63f3443039bfcc1ab7e | /srcs/clear_lock.py | 02a6e87bcbc50aa7e50629055151b2a0c89c56e0 | [] | no_license | rolllyroman/fish_web | 3116481a6a16484283f428eb7c98ecea7cee99d4 | eb5a05ea3d56c7d9f599009e8ab6f4cb322e9023 | refs/heads/master | 2020-03-28T01:08:57.346228 | 2018-09-06T03:34:05 | 2018-09-06T03:34:05 | 147,480,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,698 | py | #-*- coding:utf-8 -*-
#!/usr/bin/python
"""
Author:$Author$
Date:$Date$
Revision:$Revision$
Description:
DB初始化
"""
import sys
#sys.path.insert(0, 'mahjong')
sys.path.insert(0, 'server_common')
from web_db_define import *
from datetime import datetime,timedelta,time
#from admin import access_module
#from config.co... | [
"1983654762@qq.com"
] | 1983654762@qq.com |
58bb069b15238869fed9cb7cd1ede02176375d97 | 81e706b69c789aff05691c41fa79156942927f82 | /site-packages/tensorflow/python/ops/gen_state_ops.py | 2e298e2d2799b7c47bef61ec75ff144dfde80039 | [] | no_license | yoncho/OpenCV-code | f5a1091ef32f3c8c3254ab93e083950b84c4fabd | bda2f793b11462e67c7ab644b342beffb871e3de | refs/heads/master | 2023-03-30T12:01:23.521511 | 2021-04-01T13:45:44 | 2021-04-01T13:45:44 | 291,398,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,346 | py | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
"""
import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import ... | [
"yoncho@student.42seoul.kr"
] | yoncho@student.42seoul.kr |
0857966587b8eec350c550b328bc248dd546547f | 69c09e3e8b479c8a65043db9aafcf5193b255f8e | /tests/hypothesis2_3_mask_circle_closure.py | 0870706acbffa152bfcf9fb677558412c3a82073 | [
"BSD-3-Clause"
] | permissive | davtoh/RRtools | 1e5a0bf4abae9e971546f250172562841ccea029 | 6dde2d4622719d9031bf21ffbf7723231a0e2003 | refs/heads/master | 2020-05-21T20:07:11.428279 | 2018-07-17T15:24:55 | 2018-07-17T15:24:55 | 62,759,687 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,394 | py | from __future__ import print_function
from __future__ import absolute_import
from builtins import range
from .tesisfunctions import Plotim,overlay
import cv2
import numpy as np
from .tesisfunctions import brightness, IMAGEPATH,graphpolygontest,thresh_biggestCnt,\
CircleClosure,twoMaxTest,graphDeffects,extendedSep... | [
"davsamirtor@gmail.com"
] | davsamirtor@gmail.com |
1fe0ad5ed58ecf50d8c2a236ec1a1f739b151165 | 2f04f4373047dd0040f60ab4434b202be66776ef | /video_process.py | 370b642d415d9d4a73605cc3a5b108b388f30095 | [] | no_license | CheungBH/Alpha_Processor | 9adfbec8b7378cf5ee384e523b07c2360175523a | 78f4a339447f52c95321928bfcf3cb7a36ca2a4e | refs/heads/master | 2020-07-04T15:09:09.487475 | 2019-10-01T14:57:36 | 2019-10-01T14:57:36 | 202,321,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | from config import config
import os
from data_process.process_video import VideoProcessor
from data_process.process_json import JsonScanner
from data_process.process_txt import txtProcessor, txtMerger
from tools.final_merge import merge
from tools.label import write_label
main_folder = config.folder_path
class_ls = o... | [
"534660436@qq.com"
] | 534660436@qq.com |
88838197dc7c602a5d1194d031a5db6cf65f4cdd | 5b4b1866571453f78db5b06a08ff0eda17b91b04 | /test/vanilla/AcceptanceTests/test_bool.py | 5a1d24f1c4c43546ad33d72ef23bd11518564117 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | koek67/autorest.azure-functions-python | ba345f1d194ca7431daab1210a0cd801d4946991 | b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783 | refs/heads/main | 2022-12-20T13:27:56.405901 | 2020-09-30T08:23:11 | 2020-09-30T08:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""),... | [
"varad.meru@gmail.com"
] | varad.meru@gmail.com |
b063da07fbba54762dbe00ea164d3ebe21dcb123 | 9009ad47bc1d6adf8ee6d0f2f2b3125dea44c0aa | /ddiv.py | a59d6d552f146f5bc188ebf5a14d5bb6cf513d70 | [] | no_license | luctivud/Coding-Trash | 42e880624f39a826bcaab9b6194add2c9b3d71fc | 35422253f6169cc98e099bf83c650b1fb3acdb75 | refs/heads/master | 2022-12-12T00:20:49.630749 | 2020-09-12T17:38:30 | 2020-09-12T17:38:30 | 241,000,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,666 | py | ps=[4, 9, 25, 36, 49, 100, 121, 144, 169, 196, 225, 324, 400, 441, 484, 576, 676, 784, 900, 1089, 1225, 1296, 1521, 1600, 1764, 1936, 2025, 2304, 2500, 2704, 2916, 3025, 3136, 3600, 3969, 4225, 4356, 4900, 5184, 5625, 5929, 6084, 7056, 8100, 8281, 9604, 9801, 10000, 11025, 11664, 12100, 13689, 14400, 15876, 16900, 1742... | [
"luctivud@gmail.com"
] | luctivud@gmail.com |
01477503e3aa450f87d11d3c11069654435cdc27 | 9550ce4a80169d21b556b22679a9462f98438e32 | /api/serializers/basic.py | a80eaab50ff97fae6b0a557a73ff5adf3347cab7 | [
"Apache-2.0"
] | permissive | erics1996/questionnaire_django | 87cc44bd745eb810861349effc126ed3dfbd6508 | 1006c61eba1e9efec0801299938eb13c16a0b292 | refs/heads/master | 2022-12-15T04:47:39.042594 | 2020-09-02T17:34:33 | 2020-09-02T17:34:33 | 284,580,189 | 0 | 0 | Apache-2.0 | 2020-09-02T17:34:34 | 2020-08-03T02:02:20 | Python | UTF-8 | Python | false | false | 5,008 | py | from rest_framework import serializers
from app import models
from django.template import loader
class SurveySerializer(serializers.ModelSerializer):
"""ModelSerializer类继承了Serializer,内部做了一些操作可以自动生成所有的字段"""
grade = serializers.CharField(source='grade.name') # models.Survey.grade.name
valid_count = serial... | [
"erics1996@yeah.net"
] | erics1996@yeah.net |
3349958db5c979c33979db20d90ea511a5ff1a31 | f0a91a1c18e2354cb8d94aa3d25ee05fb87313d2 | /snarc/expert/zoom_on_frame.py | 94c79e763a7401e37d0ebae8d7a413dddf66f7d0 | [] | no_license | knighton/snarc | 795c1e525519d027819b88fb24fba3f825868a39 | a4524d791fa4c758a3c9316441d1ed4023781f5b | refs/heads/master | 2021-01-04T08:11:57.431181 | 2020-02-14T14:16:09 | 2020-02-14T14:16:09 | 240,460,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | import numpy as np
from .expert import Expert
def from_top_left(a, y0, x0):
c = a[y0, x0]
if a[y0 + 1, x0] != c:
return None
if a[y0 + 2, x0] != c:
return None
if a[y0, x0 + 1] != c:
return None
if a[y0, x0 + 2] != c:
return None
for y in range(y0 + 2, a.shape[... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
6e469a3479716d4bd00fb093bf5e1bb15b3c8485 | d4f1bd5e52fe8d85d3d0263ede936928d5811bff | /Python/Problem Solving/ETC_algorithm_problem/Grid palindrome count.py | 3752d43ef0914eb7a55bc69939958ed7f43b5cff | [] | no_license | ambosing/PlayGround | 37f7d071c4402599995a50cac1e7f1a85c6d10dd | 0d5262dbb2fa2128ecb3fd969244fa647b104928 | refs/heads/master | 2023-04-08T04:53:31.747838 | 2023-03-23T06:32:47 | 2023-03-23T06:32:47 | 143,112,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | lst = []
for i in range(7):
lst.append(list(input().split()))
cnt = 0
for i in range(7):
for j in range(3):
s = lst[i]
s = s[j:j + 5]
if s == s[::-1]:
cnt += 1
for k in range(2):
if lst[j][i] == lst[5 - k + j][i]:
break
else:
... | [
"ambosing_@naver.com"
] | ambosing_@naver.com |
8411a3b7576ca486e48a205a81253bcf7162a63e | e89309b66ac7950508aba78247d0776435b7e0f2 | /py/services/users/users/user_cases/auth.py | 4a7101f573f64741de21be421193433375c14f52 | [] | no_license | adalekin/otusdemo | 2bdcab1191d4985b0da0c5d15f0a2d96149cbc65 | 60b4dbb664c3fe7c2068b9c8691ce99b7c0d1780 | refs/heads/master | 2023-08-05T08:38:17.359421 | 2021-09-15T16:53:51 | 2021-09-15T16:53:51 | 406,182,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from talepy import run_transaction
from users.sagas.auth import Authenticate, IssueAccessToken, RevokeAccessToken
def login_use_case(email, password):
state = run_transaction(
steps=[Authenticate(), IssueAccessToken()], starting_state={"email": email, "password": password}
)
return state["user"]... | [
"adalekin@gmail.com"
] | adalekin@gmail.com |
1e140fa7ac61a425c71aaa95b7bfe856e08666f7 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /q_match/models/models.py | ad0b4bd458e2fa824efb61186f2f2163da9d6da6 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 5,348 | py | # coding=utf-8
# Copyright 2022 The Google Research 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
59cb04ce89ccae35d7fd3bd8ab0ae00faa6b6cdc | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/served_asset_field_type.py | 1ca157851b6d3af339fc8bff17189aabf4dfd712 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
301eb2cb5c5ad7809c148eb1f02eb5f93611bb62 | 3aaa93347246b6e2c5f35a28b9195a95d7263e95 | /operwen/run_it.py | 13d3e26ec7f62e50acdfb66e22dd77a44d4755de | [] | no_license | danieljtait/operwen | 89da06f3f1d599937648ae7d1a4b8f042e19b772 | 502e45b50749ed8f88b14b5090e41361f24a3c82 | refs/heads/master | 2020-12-02T06:46:21.363290 | 2017-08-03T16:53:45 | 2017-08-03T16:53:45 | 96,894,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | import numpy as np
import clean_src as src
import matplotlib.pyplot as plt
###
# Step 1) We need to define an ODE model, in this case a linear ODE
#
#
def A(x, t):
return np.array([[ -t, 1.],
[ 0., -t**2]])
def dXdt(X, t):
return np.dot(A(X,t),X)
x0 = np.array([1., 0.])
odem = src.ODE(i... | [
"tait.djk@gmail.com"
] | tait.djk@gmail.com |
37319dbbb346d2efb81d92d67b9809783deb5058 | d024c256c3147d412f924a6650ab363aff6e2068 | /Python3标准库/ten_text/concurrent.future管理并发池任务/futures_process_pool_map.py | 2ab1b2bd075ba4d91074db41059eb785477112a7 | [
"MIT"
] | permissive | Highsir/Python3_stdlib | cc1e9255794e3286f310cccb2beadff85ecd06ba | 06d4fce817104e00e7e2823d2b51ac2d7b8e2255 | refs/heads/master | 2020-09-01T13:49:17.661707 | 2019-11-01T11:34:21 | 2019-11-01T11:34:21 | 218,971,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from concurrent import futures
import os
def task(n):
return (n, os.getpid())
ex = futures.ProcessPoolExecutor(max_workers=2)
results = ex.map(task, range(5, 0, -1))
for n,pid in results:
print('run task {} in process {}'.format(n, pid)) | [
"highsir421@163.com"
] | highsir421@163.com |
a4a3a9857848f72cbe58815318be0728fe81c1d9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_usefully.py | 8830c5f295ad25223a7c08661fc9a776b8974de0 | [
"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 | 391 | py |
#calss header
class _USEFULLY():
def __init__(self,):
self.name = "USEFULLY"
self.definitions = [u'in an effective or helpful way: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adverbs'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.j... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b7779e91d095a0291a024962f30812fc68061c15 | 9e07f540aad8126cfd1d47c78179c566e4ab8348 | /docker/generate_production_ini.py | 7f4e60bbc4e56d7c316bebd8a0d3369111870d0d | [
"BSD-2-Clause"
] | permissive | DalavanCloud/access_stats | 6b57c998222de495c65d54a2c4011acdb4c1922c | a66fb2eff4cb7bdbc13a97d86455b190eb8bf347 | refs/heads/master | 2020-04-29T06:46:01.480814 | 2016-11-11T16:19:47 | 2016-11-11T16:19:47 | 175,928,873 | 1 | 0 | null | 2019-03-16T05:07:53 | 2019-03-16T05:07:52 | null | UTF-8 | Python | false | false | 696 | py | # coding: utf-8
import os
from configparser import ConfigParser
PROJECT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
WEBAPP_PORT = '8000' # ver ports: docker-compose.yml e Dockerfile
production_template_ini_filepath = os.path.join(PROJECT_PATH + '/production.ini-TEMPLATE')
new_production_ini_... | [
"fabiobatalha@gmail.com"
] | fabiobatalha@gmail.com |
dd66080e8d7545915145cf26eb5b7740682898a5 | 0376a3528032dc8637123eb4307fac53fe33c631 | /openstack/image/_download.py | d9176d24be700b881857ebe126649a4437ac92ea | [
"Apache-2.0"
] | permissive | FrontSide/openstacksdk | d5a7461721baf67d3590d2611538620b15939999 | 9fc0fdaed3114f06c7fc90ce8cf338c5ae01df2f | refs/heads/master | 2021-02-10T21:14:37.463978 | 2020-02-26T17:23:45 | 2020-02-26T17:23:45 | 244,419,992 | 0 | 0 | Apache-2.0 | 2020-03-02T16:32:40 | 2020-03-02T16:32:39 | null | UTF-8 | Python | false | false | 3,327 | py | # 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, software
# distributed under t... | [
"artem.goncharov@gmail.com"
] | artem.goncharov@gmail.com |
5c907f390f5ae9504b3742f993c1ea6effcf2df6 | 6e800b3513537622df14bb598abe9c051116106c | /DailyProblem/04/0402.py | 8205966b53b034dc9035224025aa933ab31fce05 | [] | no_license | Huxhh/LeetCodePy | fd72f03193d1f0b58c44bffc46a9a59ba9714215 | 6a99e84c5742ca68012b14da362f6c3255e10b21 | refs/heads/master | 2023-06-09T09:23:54.209025 | 2023-05-31T16:29:03 | 2023-05-31T16:29:03 | 148,866,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | # coding=utf-8
# author huxh
# time 2020/4/2 9:46 AM
def gameOfLife(board):
if not board:
return board
d = [(0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1), (-1, 0), (-1, 1)]
rows = len(board)
cols = len(board[0])
newboard = [[board[i][j] for j in range(cols)] for i in range(rows)]
... | [
"563255387@qq.com"
] | 563255387@qq.com |
2db8822247dffeed738b198bde4390d98f6653f3 | aea60edb17922e249c481022537c2de4af1bca00 | /callme/exploit.py | 1e80a65814fc959e4d812c393e47ee2b81be6c15 | [] | no_license | Th3R4nd0m/ROPEmporium | cfe6ce075d36fdc65bcc1d41430c56866ab53219 | 75aea440264f63ec2cefaa795dfa772dc7fb684d | refs/heads/master | 2020-07-14T13:45:37.105059 | 2019-09-11T16:14:05 | 2019-09-11T16:14:05 | 205,328,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | from pwn import *
context(terminal=["tmux", "new-window"])
#p = gdb.debug("./callme", gdbscript='''
#init-peda
#b *0x401a47
#''')
p = process("./callme")
elf = ELF("./callme")
rop = ROP(elf)
callme_one = p64(0x401850) # rabin2 -i callme
callme_two = p64(0x401870)
callme_three = p64(0x401810)
gadget = p64(0x401ab0)
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5ac8a785d67da6bfc78ced4406929dc76b125f82 | a9d1548046b112c3810b6e86d25b4cd074c2cc16 | /lista4/tree/utilidade.py | 7b4fefa150241b366f4d178a062d8c541c255cb9 | [] | no_license | joberthrogers18/EDA2-2018_2 | 8fa21d444bd06ab96e701093fd36235bd1b443a4 | b0a745eeb76073f3337105cbbc81cc5d18b1a877 | refs/heads/master | 2020-03-27T06:37:02.421079 | 2018-12-18T01:44:11 | 2018-12-18T01:44:11 | 146,120,371 | 0 | 1 | null | 2018-10-22T13:53:49 | 2018-08-25T18:36:44 | Jupyter Notebook | UTF-8 | Python | false | false | 616 | py | import sys
def pausar():
print("\nPressione enter para continuar ")
str = sys.stdin.readline()
a = 1
def lerValor():
print("Digite o valor: ")
valor = sys.stdin.readline()
# terminar, validar opcao para ser int
return int(valor);
def gotoxy(x,y):
print("\033[{};{}H".format(y, x), end... | [
"joberth.rogers18@gmail.com"
] | joberth.rogers18@gmail.com |
edfed1ac7bcb0dbdb968ff8673af168bb48e0426 | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Dsz/PyScripts/Lib/dsz/mca/network/cmd/route/tasking_ur.py | 2d4089eff13d4d1bd87ecaba781bda548bd2ee3d | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 516 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: tasking_ur.py
import mcl.framework
import mcl.tasking
class ur:
MODULE_ID = 34818
RPC_INFO_QUERY = mcl.ta... | [
"francisck@protonmail.ch"
] | francisck@protonmail.ch |
f48a36140787baba5e0449a16b0b90f18b30022d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_tobacco.py | 64081afa542e30e6377e8c6923dc58954a297656 | [
"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 | 390 | py |
#calss header
class _TOBACCO():
def __init__(self,):
self.name = "TOBACCO"
self.definitions = [u'a substance smoked in cigarettes, pipes, etc. that is prepared from the dried leaves of a particular plant: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = '... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
adbc1d19c1dcc6496185b0b03ddfc652f21921e5 | dd6e870a400353c123529999555517c84c864474 | /migrations/versions/268945a444ed_.py | eb881e083924813d6f77012e5ad9d1d149c7736f | [] | no_license | fenriz07/flask-hippooks | 7bfea8e397603d74426725c31cf135758cc5e0d2 | a7e88fce2d588bca49d63a9800c8344f117a4469 | refs/heads/master | 2020-04-30T20:09:08.550402 | 2019-03-22T03:02:30 | 2019-03-22T03:02:30 | 177,058,010 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | """rerun 433267c1db40
Revision ID: 268945a444ed
Revises: c78d6e322ae
Create Date: 2016-01-19 22:38:37.123253
"""
# revision identifiers, used by Alembic.
revision = '268945a444ed'
down_revision = 'c78d6e322ae'
from alembic import op
import sqlalchemy as sa
def upgrade():
try:
op.add_column('shopping_l... | [
"servio.za@gmail.com"
] | servio.za@gmail.com |
53512b247b28c6c6074f1b858fa23997c04a1017 | 4e8876d7b29cf9fb05849da77553b8a7e3783bdc | /src/plugins/processing/algs/lidar/lastools/lasheightPro_classify.py | bede231c47dd9519eb7a38f7d7e9a4462efc8a1c | [] | no_license | hydrology-tep/hep-qgis-plugin-lite | 48477f504b6fc1a9a9446c7c7f5666f4b2ccfee7 | 781cbaa1b3e9331de6741dd44a22322048ab176c | refs/heads/master | 2021-03-27T17:01:18.284421 | 2018-06-27T12:09:58 | 2018-06-27T12:09:58 | 70,825,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,296 | py | # -*- coding: utf-8 -*-
"""
***************************************************************************
lasheightPro_classify.py
---------------------
Date : May 2016
Copyright : (C) 2016 by Martin Isenburg
Email : martin near rapidlasso point com
... | [
"joaa@localhost.localdomain"
] | joaa@localhost.localdomain |
9bb4d3b71762cfeccd2747ce0e64631b35bb6d1c | fa8dbf42106d80784ca8ef176ed7b9e93992faf2 | /backend/event/api/v1/serializers.py | dcab2e654c823c9ee67a1256700771dde5888882 | [] | no_license | crowdbotics-apps/surah-al-kahaf-24690 | c2135138a5b63c417a121c7dfd44245f37ccf9d7 | 617e768771e8de505174d4ee3b1cad5901f71995 | refs/heads/master | 2023-03-10T22:38:19.792538 | 2021-02-24T03:45:48 | 2021-02-24T03:45:48 | 341,769,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | from rest_framework import serializers
from event.models import (
Vendor,
Location,
Favorites,
VendorDetail,
Category,
Faq,
Presenter,
Schedule,
MySchedule,
Sponsor,
)
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
fields... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f3aef38fdd25df5a8b32ba031c9521e88103fcc2 | 0032c98333ffc0efdb920ecca31ab224378880e5 | /rpi-tutorial/RaspEasy2a.py | 1d2014109f505ad7709eac272765432c5aa4a5c5 | [] | no_license | raspibrick/install | bd1c6f9a8cb524f2ab5a2c17ad8c5463b768dffa | 96288d6ca21abd8fb993cc376e37c16473b54dd5 | refs/heads/master | 2021-01-10T05:00:39.159879 | 2019-07-25T09:46:04 | 2019-07-25T09:46:04 | 40,703,681 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # RaspEasy2a.py
# Button counter, 2nd attempt
import RPi.GPIO as GPIO
P_BUTTON = 12 # Button A
def setup():
GPIO.setmode(GPIO.BOARD)
GPIO.setup(P_BUTTON, GPIO.IN)
print "starting..."
setup()
count = 0
isButtonPressed = False
while True:
if GPIO.input(P_BUTTON) == GPIO.HIGH and not isButtonPressed:
... | [
"a2015@pluess.name"
] | a2015@pluess.name |
ba78cd3e9c4949cd1bb9347378da16b6bd824009 | 7bdc3d746cc9d6bff78b8a77d06253b7c489c00a | /env/lib/python3.6/site-packages/allauth/socialaccount/providers/feedly/tests.py | 3615eff8424d12a61d1c925c6f2e1810e16f6eef | [
"MIT"
] | permissive | Ao99/e-commerce-django | fadc0de705f67b16e8dd82f6cc962fd9efd548d9 | 6fe69a03047619b199c236532f53f7c2cb22a079 | refs/heads/master | 2022-12-14T01:56:19.266754 | 2021-09-09T18:18:47 | 2021-09-09T18:18:47 | 229,646,356 | 2 | 2 | MIT | 2022-12-08T03:22:13 | 2019-12-22T23:52:46 | JavaScript | UTF-8 | Python | false | false | 690 | py | from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
from .provider import FeedlyProvider
class FeedlyTests(OAuth2TestsMixin, TestCase):
provider_id = FeedlyProvider.id
def get_mocked_response(self):
return MockedResponse(200, """
{
"id": "c80... | [
"aodong99@gmail.com"
] | aodong99@gmail.com |
61409ff37643520c7dcc3fc7333fd5b96aafd897 | ed2b6d040d52e228d454e4b1d33d220b12b0154d | /Code Chef/November 2019/Long Challenge/sc31.py | 1c197b20871894a6322aca710c1fb23d62c0f85f | [] | no_license | GuptaAman08/CompetitiveCoding | fedeba4e071d453936f172323a35bfd0294a7fc3 | b3308770199a7f5085b54829c1f841056975a542 | refs/heads/master | 2020-06-11T17:27:16.049725 | 2020-01-17T06:39:09 | 2020-01-17T06:39:09 | 194,036,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from sys import stdin
t = int(stdin.readline())
while t:
n = int(stdin.readline())
array = []
for i in range(n):
array.append(stdin.readline().strip())
ans = 0
for i in range(10):
temp = 0
for j in range(n):
if int(array[j][i]) % 2 != 0:
temp ... | [
"2015aman.a@ves.ac.in"
] | 2015aman.a@ves.ac.in |
f7a4793e6c9767cfe8fd67468d7cfa2ee28ebea2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_230/ch44_2020_04_09_17_14_15_586827.py | 456b11782ca2cdad68747ba4072da628d0db7c0e | [] | 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 | 242 | py | meses=[0, "janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"]
mes=input("Mês:")
pos=0
for i in range(len(meses)):
if meses[i]=mes:
pos=i
print(pos) | [
"you@example.com"
] | you@example.com |
c9009af14a299f6719c8d5ac3b1fe45205a12785 | 5e46da7e915d8c1a7edd035e67fb380e7b37976a | /+100 exercícios com enunciados/27. Primeiro e último nome de uma pessoa.py | c6891cb1320d3bdb29953f699b539e5216ab1393 | [] | no_license | rafaelribeiroo/scripts_py | 320dbe86f8b6e3d2ab728c2b580370117ee61324 | 8477b541c2f9570bf486104417f8420b2cbf6371 | refs/heads/master | 2023-01-12T03:13:45.480647 | 2019-11-29T17:06:37 | 2019-11-29T17:06:37 | 115,572,931 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # 27. Faça um programa que leia o nome completo de uma pessoa, mostrando em
# seguida o primeiro e o último nome separadamente.
# Ex: Ana Maria de Souza
# primeiro = Ana
# último = Souza
n = str(input('Digite seu nome completo: ')).strip()
nome = n.split()
print('Muito prazer em te conhecer!')
print(f'Seu pri... | [
"pereiraribeirorafael@gmail.com"
] | pereiraribeirorafael@gmail.com |
542640c8f2f4cebbac5f27237fffe1f0eb235d4b | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /python/paddle/tensor/attribute.py | f1d4b0d8bbc0f30161f8aefd2e59e3f8aac6f008 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 10,418 | py | # Copyright (c) 2020 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 app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
33e5b8c1e6882e6735c5900bf95a24a3b3ae0a18 | 887371724feac0c71d6112e8a00e436a9ad3aa92 | /horizon/openstack_dashboard/urls.py | 953a64b0a9053bc80e7f730ec128e2396a5ca648 | [
"Apache-2.0"
] | permissive | sreenathmenon/openstackAuth | eb6e4eb2f8c2f619d8c59e0c0a79a2f6c177740f | f2a5f641103ebd4750de210ec1f3df5600f3ba19 | refs/heads/master | 2021-01-20T21:34:41.243654 | 2017-08-30T14:25:48 | 2017-08-30T14:25:48 | 101,769,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... | [
"zreenathmenon@gmail.com"
] | zreenathmenon@gmail.com |
85a237b2dd65f1818d8d2034e7de4b866817e556 | 90f52d0348aa0f82dc1f9013faeb7041c8f04cf8 | /wxPython3.0 Docs and Demos/demo/ProgressDialog.py | c7d186648a904d26f870778bc3f029520dbfbfec | [] | no_license | resource-jason-org/python-wxPythonTool | 93a25ad93c768ca8b69ba783543cddf7deaf396b | fab6ec3155e6c1ae08ea30a23310006a32d08c36 | refs/heads/master | 2021-06-15T10:58:35.924543 | 2017-04-14T03:39:27 | 2017-04-14T03:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o Updated for wx namespace
#
# 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o wx.ProgressDialog appears to be broken. No abort button
# and it's not possible to dismiss it otherwise.
#
import wx
#----------------------------------... | [
"869999860@qq.com"
] | 869999860@qq.com |
62ebd5bcbfc82d61bb0eeaf7e491abd3e413d0a3 | e7cc8552324b31737e1109a2b2abb5fdd5b603d1 | /ntds/urls.py | 854af6b9f78b415a7caad3395168e771fff005f8 | [] | no_license | sparkplug/NTDS_Dashboard | 86cd70731e38dc11408b99326b9095e79a09dd62 | 5c672102a4b2c09a000ed0bb5487262d3733d3e1 | refs/heads/master | 2021-01-10T03:39:43.239983 | 2019-09-05T16:57:45 | 2019-09-05T16:57:45 | 43,228,621 | 1 | 0 | null | 2020-09-04T22:05:47 | 2015-09-27T00:41:29 | JavaScript | UTF-8 | Python | false | false | 410 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from dashboards.urls import urlpatterns as analytics
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'datamart.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin... | [
"mossplix@gmail.com"
] | mossplix@gmail.com |
4ae3a77e346a11b6ed6ac35af16471dd791dd451 | 84297380d00453e71f65c591dca046bd41a32184 | /ABC/ABC174/B 2.py | c31a181ca89c82e71d9834e78927cb85f2ee21bf | [] | no_license | daiki1998/atcoder | a5ef25245b1bbc3a5e33044846a3c16213603bd3 | d864a7cb11e41dbf6a691f5d128fdfe122b07046 | refs/heads/main | 2023-03-06T22:55:29.863716 | 2021-02-18T12:01:24 | 2021-02-18T12:01:24 | 323,401,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | import math
N, D = map(int, input().split())
X, Y = [], []
for i in range(N):
x, y = map(int, input().split())
X.append(x)
Y.append(y)
count = 0
for i in range(N):
if math.sqrt(X[i]**2+Y[i]**2) <= D:
count += 1
print(count) | [
"shimokawadaiki@shimokawadaikinoMacBook-Pro.local"
] | shimokawadaiki@shimokawadaikinoMacBook-Pro.local |
0b74ebaba7764070b14dd300bff852c30afee37a | 431d9ef51fbf0197c78c76ebb2e418bbc8e487b7 | /Heroku/src/resources/user.py | 9efd5943638451eef0d13764e32417c0b94ec5c3 | [] | no_license | nad2000/rest-api-sections | 571aaaef951f06f3d84f9b3dce5a3e86486942c3 | 9da29f6a53f15a0507399fcaf444e3a852f3b6f6 | refs/heads/master | 2021-01-22T05:20:43.284027 | 2017-03-11T08:23:38 | 2017-03-11T08:23:38 | 81,653,223 | 0 | 0 | null | 2017-02-11T13:00:52 | 2017-02-11T13:00:52 | null | UTF-8 | Python | false | false | 799 | py | from models.user import User
from flask_restful import Resource, reqparse
class UserRegister(Resource):
parser = reqparse.RequestParser()
parser.add_argument("username",
type=str,
required=True,
help="This field cannot be left blank! It should be string."
)
parser.a... | [
"nad2000@gmail.com"
] | nad2000@gmail.com |
236b0d95988994fed4d3c6aa1b23f7c2e8fb1f15 | 3cd1246ff58f26329021f2d13caa62221c91d5a4 | /testdata/python/stmt/import3.py | 3a9c46610695041f2231562b7e33569feecc276f | [] | no_license | mwkmwkmwk/unpyc | 0929e15fb37599496930299d7ced0bf1bedd7e99 | 000fdaec159050c94b7ecf6ab57be3950676f778 | refs/heads/master | 2020-12-01T14:01:57.592806 | 2016-03-21T14:11:43 | 2016-03-21T14:12:01 | 230,650,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import a.b as ab
import c.d as cd, e.f as ffff
from g.h import ij as xx, kl, mn as mn
from o.p import *
from q.r import st as sssssss
import u.v; import w.x as xx
| [
"koriakin@0x04.net"
] | koriakin@0x04.net |
a6aee77e9e079f9d8af9f045d16ac28eb9c2005c | c3570ea22a039b85a5d95b6e7773396f992516ae | /24 zip.py | 8c112deb0a7773ec428c848b1bcdb365109cad40 | [] | no_license | omerdurmus61/Python | 122089182c23a28244c3ae56e4f404bd47839b2c | 0d8e9118965b294981401706bead59c838936994 | refs/heads/master | 2023-06-04T13:14:37.418113 | 2021-06-13T17:07:05 | 2021-06-13T17:07:05 | 295,943,557 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | spor=["koşu","yüzme","koşu"]
gun=["pazartesi","salı","çarşamba"]
kalori=[100,200,300]
yeni_list = list (zip(spor,gun,kalori))
print(yeni_list) | [
"noreply@github.com"
] | omerdurmus61.noreply@github.com |
70cebaa8d47c2b70139b7d6b443c022bfec16fd0 | dbd8180d9c02c22b42baa5227437714ff352fd8e | /1-100/L122.py | 4c61c3811a05a4e51ce31ad75c2f579b88c28855 | [] | no_license | k8godzilla/-Leetcode | 92953dfffc0f06907fa7bd0beea7bc27b16f9efa | 58d5384155f481b1d1b0a7ca69566245dd779554 | refs/heads/master | 2020-06-12T15:35:43.380979 | 2019-08-07T11:14:49 | 2019-08-07T11:14:49 | 194,348,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,401 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 16 15:21:33 2019
@author: admin
"""
'''
给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。
设计一个算法来计算你所能获取的最大利润。你可以尽可能地完成更多的交易(多次买卖一支股票)。
注意:你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。
示例 1:
输入: [7,1,5,3,6,4]
输出: 7
解释: 在第 2 天(股票价格 = 1)的时候买入,在第 3 天(股票价格 = 5)的时候卖出, 这笔交易所能获得利润 = 5-1 = 4 。
随后,在第 ... | [
"k8sunyin@126.com"
] | k8sunyin@126.com |
77fa2a55d648e8c2342bf4df5a8e5d093c05dca4 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A3/task3/BD_0079_0954_1125_JZsRL4B.py | d1de395bba48405a704f63ca768a0a606871bee5 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 1,252 | py | import findspark
findspark.init()
from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext
from pyspark.sql import Row,SQLContext
import sys
def tmp(x):
for i in x.split(','):
if i != '':
yield (i,1)
batch_size = int(sys.argv[2])
window_size = int(sys.argv[1])... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
e93a095ceacc187b59520529ff8945bf54083b9c | 74167e4c1061b454d1ab1c2140a1fc2f4540ee2e | /store/migrations/0001_initial.py | a9c55caab1a8616fa353216dbcfe952ce7d665db | [] | no_license | Pagante/ProjectCart | f72a1a611445f66c1320c0c21e1832d3ecf67a2a | 4f065a02a8235c6744768328af5c1e103321ed44 | refs/heads/main | 2023-06-05T23:53:10.316222 | 2021-06-27T21:47:28 | 2021-06-27T21:47:28 | 380,840,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | # Generated by Django 3.1 on 2021-06-12 14:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('category', '0002_auto_20210612_1528'),
]
operations = [
migrations.CreateModel(
... | [
"55301195+Pagante@users.noreply.github.com"
] | 55301195+Pagante@users.noreply.github.com |
a89e5d3a30c874396623df291d8264c9e7e67c37 | 7bcb0b7f721c8fa31da7574f13ed0056127715b3 | /src/apps/events/csv_reports/upload_tasks.py | 98d08c936fd1f0e4baf5ecdb48d9ceb9fcbd3767 | [] | no_license | simonchapman1986/ripe | 09eb9452ea16730c105c452eefb6a6791c1b4a69 | c129da2249b5f75015f528e4056e9a2957b7d884 | refs/heads/master | 2022-07-22T05:15:38.485619 | 2016-01-15T12:53:43 | 2016-01-15T12:53:43 | 49,718,671 | 1 | 0 | null | 2022-07-07T22:50:50 | 2016-01-15T12:53:09 | Python | UTF-8 | Python | false | false | 746 | py | from celery.task import task
from apps.reporting.csv_reports.csv_generator import CSVgenerator
import logging
log = logging.getLogger('reporting')
@task()
def upload_report_for_client(report_type, client):
gen = CSVgenerator(report_type=report_type, client_id=client.client_id, args=None)
try:
gen.gen... | [
"simon-ch@moving-picture.com"
] | simon-ch@moving-picture.com |
f7afdf88195c24fe687f7bbf9852f310dfaf497a | 1e6e3bb707920fdb01ebca23eaf81097c558d918 | /openslides_backend/action/actions/point_of_order_category/__init__.py | 26e86a804e0443a33fa3ce9b4db7655da47f40bd | [
"MIT"
] | permissive | OpenSlides/openslides-backend | cbd24589f82a6f29bde02611610511870bb6abbf | d8511f5138db4cc5fe4fa35e2a0200f766bd49c5 | refs/heads/main | 2023-08-23T11:54:25.064070 | 2023-08-22T11:15:45 | 2023-08-22T11:15:45 | 231,757,840 | 6 | 22 | MIT | 2023-09-14T16:23:41 | 2020-01-04T12:17:38 | Python | UTF-8 | Python | false | false | 45 | py | from . import create, delete, update # noqa
| [
"noreply@github.com"
] | OpenSlides.noreply@github.com |
0f5cc297a1843bbe760f59e9bd551f9d78c645bf | e33aaef06e45db131964c7d2759c867f870f277c | /py2d buffer/py2d/Bezier.py | 958c1e3f633d6f93a795636dc722776464ae0aa1 | [] | no_license | karimbahgat/Buffy | da90f0fe28d7d4435423fc1fbb50e1f8492a5eef | 17cb8eb37aa4853cb56bdc265e141f899fca5579 | refs/heads/master | 2021-01-19T03:18:23.056628 | 2016-06-12T12:57:46 | 2016-06-12T12:57:46 | 60,967,311 | 0 | 1 | null | 2017-05-18T06:20:43 | 2016-06-12T12:58:25 | Python | UTF-8 | Python | false | false | 2,998 | py | """Bezier curve tools.
All functions in this module assume the following naming:
C1
____
/ \ P2
| \______|
P1
C2
A bezier curve is formed between two points P1 and P2, with curve direction coming from control poin... | [
"Karim.bahgat.norway@gmail.com"
] | Karim.bahgat.norway@gmail.com |
15901bb7587d5ce0ab13b7d8c2f83c7b5f92a043 | c28a9cbbbb12c43342ca49263b1309acc0016879 | /rlzoo/algorithms/dqn/dqn.py | f6060506344bc39f52af1267cc4a4442d3b06e77 | [
"Apache-2.0"
] | permissive | mirkomorati/RLzoo | 894593051fda77f76828e9023dc3abe66ac09cbe | 260aba32e68c31e7d637a2a21e2906e45ac66b46 | refs/heads/master | 2022-04-15T20:53:21.454210 | 2020-04-15T08:36:58 | 2020-04-15T08:36:58 | 255,854,689 | 0 | 0 | Apache-2.0 | 2020-04-15T08:35:05 | 2020-04-15T08:35:05 | null | UTF-8 | Python | false | false | 8,869 | py | """
Deep Q Network
"""
import random
from copy import deepcopy
import numpy as np
import tensorflow as tf
from rlzoo.common.utils import *
from rlzoo.common.buffer import ReplayBuffer, PrioritizedReplayBuffer
class DQN(object):
"""
Papers:
Mnih V, Kavukcuoglu K, Silver D, et al. Human-level control throu... | [
"1402434478@qq.com"
] | 1402434478@qq.com |
c65a62014d74b7b7ddee6eae76f4db72f1fb90b5 | 458b1133df5b38a017f3a690a624a54f0f43fda7 | /PaperExperiments/XHExp109/parameters.py | 4bbc18147fff1905aaefa7062e5949d273d973a6 | [
"MIT"
] | permissive | stefan-c-kremer/TE_World2 | 9c7eca30ee6200d371183c5ba32b3345a4cc04ee | 8e1fae218af8a1eabae776deecac62192c22e0ca | refs/heads/master | 2020-12-18T14:31:00.639003 | 2020-02-04T15:55:49 | 2020-02-04T15:55:49 | 235,413,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py |
# parameters.py
"""
Exp 109 - {'Initial_genes': '5000', 'Host_mutation_rate': '0.30', 'TE_progeny': '0.00, 0, 0.55, 1, 0.30, 2, 0.15, 3', 'TE_Insertion_Distribution': 'Flat()', 'Carrying_capacity': '300', 'TE_excision_rate': '0.1', 'Junk_BP': '1.4', 'Gene_Insertion_Distribution': 'Flat()', 'mutation_effect': '0.10', '... | [
"stefan@kremer.ca"
] | stefan@kremer.ca |
ebf3df9a684554583330eeba8896a53aac1fbc59 | 839b26d2d837f256423c11908a2a3618ab8a23f3 | /dashboard/dashboard/pinpoint/models/results2_test.py | 94486b4e0145f544ff07700db0133a8e1c66a7cf | [
"BSD-3-Clause"
] | permissive | Mdlglobal-atlassian-net/catapult | 79be5d4ec5d681c1d2f37ae83534a02f4a4ec72a | e9a386951413e7cbf983abf968626b2e5097fc38 | refs/heads/master | 2022-02-27T15:18:45.524790 | 2020-06-01T07:12:27 | 2020-06-01T22:57:01 | 268,672,431 | 0 | 1 | BSD-3-Clause | 2020-06-02T01:31:05 | 2020-06-02T01:31:04 | null | UTF-8 | Python | false | false | 12,612 | py | # Copyright 2018 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.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import itertools
import logging
import mock
imp... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
71dfaa1e68f842e1c330279b209f6c1f0cda77c1 | 21e724b3d1fd4a5b388eb65226e08849bf3acb82 | /tmb/migrations/0008_auto_20200906_1830.py | 9d7d48cfe767fe395152780f742a399374c59eef | [] | no_license | rodrigues87/alimentostaco | 671f55ec168199d0c287059b932584941f22642e | a3737f0d565fd8cf6e47b2e02bd4a6e84491570f | refs/heads/master | 2022-12-14T21:09:26.549994 | 2020-09-12T06:55:07 | 2020-09-12T06:55:07 | 276,987,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | # Generated by Django 3.0.8 on 2020-09-06 21:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tmb', '0007_auto_20200906_1711'),
]
operations = [
migrations.AddField(
model_name='tmb',
name='classificacao',
... | [
"pedroh.mix@gmail.com"
] | pedroh.mix@gmail.com |
5559e807feda3196eaa830d9a5bac58be6d9082d | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/leetcode/LeetCode_with_solution/377 Combination Sum IV.py | 1d3d20afd24f976f156b24c84bc250e2d9ea6572 | [] | 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 | 1,405 | py | """
Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up
to a positive integer target.
Example:
nums = [1, 2, 3]
target = 4
The possible combination ways are:
(1, 1, 1, 1)
(1, 1, 2)
(1, 2, 1)
(1, 3)
(2, 1, 1)
(2, 2)
(3, 1)
Note that different seque... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b507fd933705b0b607a7ccff8fef178dd3b7f155 | 699c7f26a91106a2fc79bb15299ce0cee532a2dd | /fluxhardness/fluxfluxrelation.py | f11e4f8bea307ce454e9ffa925294d75436d1ff4 | [] | no_license | samconnolly/astro | 70581a4d3f2086716aace3b5db65b74aaaa5df95 | 3731be313592c13dbb8af898e9734b98d83c0cc2 | refs/heads/master | 2020-04-06T03:40:27.454279 | 2014-03-12T14:36:34 | 2014-03-12T14:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # fluxflux relation
# Plots the flux flux and flux hardness graphs for a given flux flux relation:
# HardTotal = Gradient*(SoftTotal - SoftConst)^alpha + HardConst
# (see Taylor, Uttley McHardy, MNRAS, 2003, 342, 31)
import numpy as np
import pylab as pl
# variables
hconst = 0.0
sconst = 0.0
grad = 1.25
alpha = ... | [
"sdc1g08@soton.ac.uk"
] | sdc1g08@soton.ac.uk |
11bb8173b9de2e6a3f1a3c401b686fb37a7b135f | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorboard/compat/proto/verifier_config_pb2.py | 8d9f099ffb67054d3f1abd5966c41633d6e308aa | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:da9202a08e4ce20d333d5a5832a8bc0e9c1b3771c724b6240992dc37bbe21fe2
size 3941
| [
"business030301@gmail.com"
] | business030301@gmail.com |
db2105270ece7d3ca5f8bbb063aec94e3a3bf7ad | a96357b9e7929f38e7fffa9f3503840a94b98c6f | /diagram/0.1.5b/diagram.py | 6f77605af5119a7255241eb2e221c5dbddcbb68f | [] | no_license | friedrichromstedt/diagram_cl | 2db296be480c933d54898681df74d2f1e86a16f8 | dfc253f2e1c61f59235f3eb42b5f31c5821550cd | refs/heads/master | 2021-01-13T01:26:26.978769 | 2010-02-25T21:12:36 | 2010-02-25T21:12:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,552 | py | # Maintainer: Friedrich Romstedt <friedrichromstedt@gmail.com>
# Copyright 2008 Friedrich Romstedt
# This file is part of diagram.
#
# Diagram 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... | [
"friedrichromstedt@gmail.com"
] | friedrichromstedt@gmail.com |
92810c5fdbb82cb08546f8e4ff35b35ae65ea0d1 | daaa49754747c5ddfcd4b2c4186710b0ba42b42d | /scripts/drusen.py | 391915b19ae7b70235ab88d3dc5a254baa2f60a6 | [] | no_license | rjonnal/octopod | 22bafbf337e13ff5113ff0b73d4c5b0dcb0a82a7 | ad7339b958c4b672becbe128134e80f427f31207 | refs/heads/master | 2020-04-13T22:12:32.519108 | 2018-02-22T02:58:20 | 2018-02-22T02:58:20 | 46,878,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,518 | py | from octopod import *
from matplotlib import pyplot as plt
import sys,os
import logging
logging.basicConfig(level=logging.INFO)
from octopod.utils import translation
fm = FileManager()
start_index = 40 # which image to use as base, among 100 images in each dataset
def test_nxcorr2():
target = np.random.rand(100,... | [
"rjonnal@gmail.com"
] | rjonnal@gmail.com |
ec1357d2cc3bb98a4b2ef80fc9798ebadb991cd6 | 69088ecdc616107a4d5bcc6616d29b50e34aa3ce | /src/external_data_bazel/download.py | bc04a6de322e959d20ae2fef9e59577c8f1d2e40 | [
"BSD-3-Clause"
] | permissive | EricCousineau-TRI/external_data_bazel | 03fe56c20bfaf04e0beb839a1efcbeb9eb164acc | ed9bfd7f47cf80c6895c3efc21af91396197fa1c | refs/heads/master | 2021-09-04T12:45:07.283443 | 2017-11-13T22:43:58 | 2017-11-13T22:43:58 | 109,409,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | from __future__ import absolute_import, print_function
import sys
import os
import yaml
import argparse
from external_data_bazel import core, util, config_helpers
# TODO(eric.cousineau): Make a `--quick` option to ignore checking SHAs, if the files are really large.
def add_arguments(parser):
# TODO(eric.cousine... | [
"eric.cousineau@tri.global"
] | eric.cousineau@tri.global |
1d629c4963873dacad342a7de6c94381cb063487 | 4fa3954a1e9c53e2c0a3a75904f1f26fd5fd17a4 | /upwork_research/urls.py | a57fa1403b10f2ff79dc8a53f83945fd3355e36e | [] | no_license | vubon/upwork-research | e82a7aec0d7712887c36f0de0805fe6a3ce5c8ad | 6446cfb5ab0e6030c41682f33f545bb7e1ae42af | refs/heads/master | 2020-03-18T06:21:46.074196 | 2018-06-14T02:11:59 | 2018-06-14T02:11:59 | 134,391,216 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """upwork_research URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"vubon.roy@gmail.com"
] | vubon.roy@gmail.com |
6b5c032f4210139830de056d303d89cd130c9446 | 350696afebfe7ba96024d94a28afdc3832ec6134 | /Graph/04_maxRegion.py | e2c6d755ca1a4f0cdc23b00babc28f09ff690e4b | [] | no_license | xiaoxue11/hank_practice | 9ad17c0c2934129ccef9c2128d77dbc026aed627 | 76deaac4297e39406defb8c16d97f0cc0b1454e4 | refs/heads/master | 2020-11-24T18:49:44.447118 | 2019-12-20T20:15:56 | 2019-12-20T20:15:56 | 228,298,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | """
Created on : 3:10 PM
Author : Xue Zhang
"""
def bfs(grid, mark, x, y):
mark[x][y] = 1
m, n = len(mark) - 1, len(mark[0]) - 1
dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]
for i in range(8):
new_x = dx[i] + x
new_y = dy[i] + y
if new_x < 0 or new_x >... | [
"xuezhang0111@gmai.com"
] | xuezhang0111@gmai.com |
4363be9446d8a7e2886240506da01d8e5f780c2c | dd59119bc2fc708f838f2893f99cae9342d60d4f | /users/migrations/0002_auto_20181218_0004.py | 4041a1597204a1350d255d39abdc1e755a51a1e6 | [] | no_license | henokali1/fans-webportal | 5a216a5d64f528a38e038930607fc79489158b2f | 0d075147df5c8997a9d40a718439b714b779a0cc | refs/heads/master | 2021-06-04T12:07:10.812651 | 2020-01-08T05:24:46 | 2020-01-08T05:24:46 | 162,245,380 | 0 | 0 | null | 2021-06-01T23:47:34 | 2018-12-18T07:05:56 | HTML | UTF-8 | Python | false | false | 1,243 | py | # Generated by Django 2.1.4 on 2018-12-18 08:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='customuser',
name='department',
... | [
"henokali1@gmail.com"
] | henokali1@gmail.com |
79efab099d3aa7bcf497d8e4b2097681fd4df169 | 5be08c2df08d17d75afbf7dc844c5517001b9be8 | /mailgun/api/routes.py | 15d1bd18ed0b773bc4d9fbf1e1755a6adfdf24a8 | [] | no_license | yordanomp/mailgun-python | e257c49472bf40bc3b48cb8d68884e7d96002b25 | 015ebe5730e7154b992694ed610560f4719f9558 | refs/heads/master | 2021-01-18T07:46:22.678298 | 2015-01-30T08:47:42 | 2015-01-30T08:47:42 | 30,047,114 | 1 | 0 | null | 2015-01-29T23:45:36 | 2015-01-29T23:45:36 | null | UTF-8 | Python | false | false | 2,307 | py | #-*-coding: utf8-*-
"""
mailgun routers api
"""
from .client import MailgunClient
class APIRoutes(MailgunClient):
"""The routes api
"""
def __init__(self, api_url=None, api_domain=None, api_key=None):
"""Init the class
"""
super(APIRoutes, self).__init__(
api_url=ap... | [
"fatelei@gmail.com"
] | fatelei@gmail.com |
3a366f40601a233ce34c084bb0ba27cd8d91b244 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2962/61132/294391.py | 25a88442c37572f11de936ab5079fb608860e0b1 | [] | 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 | 798 | py | n,p=map(int,input().split())
a=input().split()
dic={}
res=[]
for i in a:
val=32*32*(ord(i[-3])-65)+32*(ord(i[-2])-65)+(ord(i[-1])-65)
key=val%p
i=1
while True:
if dic.get(key,''):
key=(key+2*i-1)%p
i+=1
else:
dic[key]=i
res.append(str(key))... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9ada3b530a2ee10bad127c288bdc32b006019db0 | dea2dfd25467b55e3a193c4c2eb980ce690558bf | /makahiki/apps/widgets/smartgrid/migrations/0001_initial.py | 93290c62368395b618b2c95673065f4f79449d52 | [
"MIT"
] | permissive | justinslee/Wai-Not-Makahiki | cc768f905b73dfae761e9f27269c362a93b4a33c | 4b7dd685012ec64758affe0ecee3103596d16aa7 | refs/heads/master | 2021-01-20T15:38:59.599729 | 2013-05-09T17:58:40 | 2013-05-09T17:58:40 | 9,940,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,817 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Level'
db.create_table('smartgrid_level', (
('id', self.gf('django.db.models.f... | [
"yongwen.xu@gmail.com"
] | yongwen.xu@gmail.com |
f2e57436d248c9089ea997cf69b618ca287c131e | 0e25538b2f24f1bc002b19a61391017c17667d3d | /xscsr/win_xscsrserverupdate.py | 23d292b277e33090e9b3162018a23ef32d77850a | [] | no_license | trondhindenes/Ansible-Auto-Generated-Modules | 725fae6ba9b0eef00c9fdc21179e2500dfd6725f | efa6ac8cd2b545116f24c1929936eb8cc5c8d337 | refs/heads/master | 2020-04-06T09:21:00.756651 | 2016-10-07T07:08:29 | 2016-10-07T07:08:29 | 36,883,816 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,470 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# <COPYRIGHT>
# <CODEGENMETA>
#
# This file is part of Ansible
#
# Ansible 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, ... | [
"trond@hindenes.com"
] | trond@hindenes.com |
738a08dfd34fda85b70ce641b3123e09d9c964dd | a4dbd2cd53c13fb31ab31c057254f7827739d2a4 | /src/compilers/ast_to_spe.py | 858e419d6ca17b76ba1f4a09283b72bfd4e0508d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | danhlephuoc/sppl | 25c241599e826ff37bce75401092a370cae0d396 | efff34fb3d3703247dd7001c36970069c5ac3825 | refs/heads/master | 2023-07-11T17:19:01.578013 | 2021-08-05T17:12:18 | 2021-08-05T17:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,325 | py | # Copyright 2020 MIT Probabilistic Computing Project.
# See LICENSE.txt
"""Convert AST to SPE."""
import os
from functools import reduce
from ..dnf import dnf_normalize
from ..math_util import allclose
from ..math_util import isinf_neg
from ..math_util import logsumexp
from ..sets import FiniteNominal
from ..sets i... | [
"fsaad@mit.edu"
] | fsaad@mit.edu |
fa9abf6f2fedadc6af0e4acad3255ecd01ac59b4 | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/fabric/FabricNetflowMonExporterRef.py | a71b1c7b35aa10b4804cdaf080ddbf0b47a7c05c | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | """This module contains the general information for FabricNetflowMonExporterRef ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class FabricNetflowMonExporterRefConsts():
SWITCH_ID_A = "A"
SWI... | [
"test@cisco.com"
] | test@cisco.com |
5414e9f6b51a2c0c0dc154a4385b31d01301da8c | bc73e2568bb8494a95312769ba5b9a49bdb87a08 | /resources/lib/Config.py | 58570dfa8e2c58005fa27317fd38455ef5aa4faa | [] | no_license | chatwithash/getherbate | a64de1addd0903deb821eea1c94db26ad9232c32 | 56c06afec2d23ba0f770cabcce43ab2c6a41b967 | refs/heads/master | 2021-03-22T08:50:24.725152 | 2020-03-14T21:18:06 | 2020-03-14T21:18:06 | 247,349,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # -*- coding=utf8 -*-
#******************************************************************************
# Config.py
#------------------------------------------------------------------------------
CHATURBATE_API = "https://chaturbate.com/api/chatvideocontext"
USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWe... | [
"user@localhost"
] | user@localhost |
3d75007419997bdff4f86a0c78fcbf682ac05ce0 | 488dba84a8d68251513492cf5366b337456bd68f | /vectortiles/postgis/functions.py | 786c28ba5f16f5fff9a4b87459cdd35c88ba497f | [] | no_license | mgrobito/django-vectortiles | e7f75c1d8c1e68a6ee5d264bf1a5319caf1c086a | 70514bef851e955726e0b5db49c06c3e177045dd | refs/heads/master | 2023-01-04T02:18:40.660565 | 2020-10-28T16:49:51 | 2020-10-28T16:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | from django.contrib.gis.db.models import GeometryField
from django.contrib.gis.db.models.functions import GeoFunc
from django.db.models import Func
from django.utils.functional import cached_property
class RawGeometryField(GeometryField):
def select_format(self, compiler, sql, params):
"""
Overrid... | [
"j.e.castagnede@gmail.com"
] | j.e.castagnede@gmail.com |
a7221dd2de4147a213f4f82dab8e9e6bd0024805 | a1cc1bbcc1e582c1589592bb462f69ffc1554772 | /tests/test_refdata.py | 95612cf2d44cb31c9b133921a19b802e7bf0c5a7 | [
"Apache-2.0"
] | permissive | silverrainb/pyEX | 94e01d8fd0025fe3bb456395a2c8908391cfb903 | 190741cdfd0509622c17fd3aed9e6d5b5aaab558 | refs/heads/master | 2020-04-26T03:11:52.392924 | 2019-02-15T00:54:02 | 2019-02-15T00:54:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,439 | py | # for Coverage
from mock import patch, MagicMock
class TestAll:
def setup(self):
pass
# setup() before each test method
def teardown(self):
pass
# teardown() after each test method
@classmethod
def setup_class(cls):
pass
# setup_class() before any meth... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
83d3b5d25cd4e8b099c4a033a2d2b6c3998addb4 | dffd7156da8b71f4a743ec77d05c8ba031988508 | /ac/abc002/abc002_2/10416977.py | 4982f4348cb74702b5a3d9d35f834d6dd089de45 | [] | no_license | e1810/kyopro | a3a9a2ee63bc178dfa110788745a208dead37da6 | 15cf27d9ecc70cf6d82212ca0c788e327371b2dd | refs/heads/master | 2021-11-10T16:53:23.246374 | 2021-02-06T16:29:09 | 2021-10-31T06:20:50 | 252,388,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py |
print("".join(filter(lambda x:not x in"aiueo",input())))
| [
"v.iceele1810@gmail.com"
] | v.iceele1810@gmail.com |
f2d49bf219367f4083a41bd8060bf9bb46054203 | 9da5364f2b145b361b98ce9ede69df21768dfead | /src/shortner_app/admin.py | 75a43b8860b06df7ebcdcae9462177a72793c804 | [] | no_license | jai-singhal/url-shortner | 293fc40419e1f694644e863794629414520ffbc4 | 959d4502a1b0f0925697e34414e21ef1c1058b49 | refs/heads/master | 2022-12-14T16:39:18.082868 | 2018-03-29T03:45:31 | 2018-03-29T03:45:31 | 125,737,562 | 0 | 0 | null | 2022-12-08T00:55:34 | 2018-03-18T15:12:49 | Python | UTF-8 | Python | false | false | 449 | py | from django.contrib import admin
from .models import UrlShortner
# Register your models here.
class CustomUrlShortnerAdmin(admin.ModelAdmin):
pass
# list_display = ('',)
# list_filter = ('',)
# # inlines = [
# # Inline,
# # ]
# raw_id_fields = ('',)
# readonly_fields = ('',)
# s... | [
"jaisinghal48@gmail.com"
] | jaisinghal48@gmail.com |
96f7654fa53797bad0bc8acba6e008bcea56934f | 8d5166f334de6e904946d6023fc43ac1f40c5bc1 | /flaskshop/random_data.py | ab8bb792033539e01cb7c1d4d166d0235246eb6c | [] | permissive | UnknownFX02/flask-shop | 1a44d8a37223fe23d239ac3c86ac0d9fee9f93be | 0e5f60b1ef6986e01e8ffc172a3ea0f42ab828e7 | refs/heads/master | 2022-12-03T23:33:29.235488 | 2020-08-27T06:49:03 | 2020-08-27T06:49:03 | 271,223,635 | 0 | 0 | BSD-3-Clause | 2020-06-10T08:36:54 | 2020-06-10T08:36:54 | null | UTF-8 | Python | false | false | 20,243 | py | import itertools
import random
import unicodedata
from uuid import uuid4
from faker import Factory
from faker.providers import BaseProvider
from sqlalchemy.sql.expression import func
from flaskshop.product.models import (
Category,
ProductType,
Product,
ProductVariant,
ProductImage,
ProductAtt... | [
"hjlarry@163.com"
] | hjlarry@163.com |
37f7fa84a2b54518d0eecfa0ea4b8300f592e1b8 | 4ecf14e0bbe105958d83e5fad014a1cd014e669d | /testing/web-platform/tests/tools/third_party/pytest/testing/test_terminal.py | 97c2f71fb66a27a53a2e2938a265c87a28e3af68 | [
"W3C",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause",
"MIT"
] | permissive | fx-dev-playground/gecko | 2c1a13a51f00645f8bfc35c9ec71a4d40b8c8dc2 | 889acebc871804214ab2579e434d7633e271e5cb | refs/heads/central_default | 2023-01-27T11:13:44.498662 | 2018-01-16T21:43:19 | 2018-01-16T21:43:19 | 64,968,340 | 8 | 13 | NOASSERTION | 2023-01-11T07:47:54 | 2016-08-04T21:24:19 | null | UTF-8 | Python | false | false | 33,934 | py | """
terminal reporting of the full testing process.
"""
from __future__ import absolute_import, division, print_function
import collections
import sys
import pluggy
import _pytest._code
import py
import pytest
from _pytest.main import EXIT_NOTESTSCOLLECTED
from _pytest.terminal import TerminalReporter, repr_pythonvers... | [
"james@hoppipolla.co.uk"
] | james@hoppipolla.co.uk |
6305be15abcae13bbcad84660c39d0882f408094 | 0e355b61d9696df27fd6e5725ed602e132c83cb4 | /project/urls.py | c4ee42268b733168f6561eed42fe65466177aeb0 | [] | no_license | shahwan42/django-project | dc15adaf1170fa53358389efcac118c55fe7af84 | 3f01358d21650f720ea53eac3895103b88f524b8 | refs/heads/dev | 2023-01-22T11:48:37.767988 | 2020-11-25T21:34:30 | 2020-11-25T21:34:30 | 302,995,071 | 1 | 1 | null | 2020-11-08T02:10:52 | 2020-10-10T21:45:46 | Python | UTF-8 | Python | false | false | 1,153 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"ahmed@shahwan.me"
] | ahmed@shahwan.me |
017090124107a9a141f70151ce91ac86807c41ef | 2c4648efe8c7e408b8c3a649b2eed8bb846446ec | /codewars/Python/8 kyu/DoubleChar/double_char_test.py | cbd19fc2b507c8dfe0e9ac8a6857603b682b67e2 | [] | no_license | Adasumizox/ProgrammingChallenges | 9d79bd1b0ce4794b576124f9874aabb86d5c0713 | 3630fcde088d7991e344eb1b84805e9e756aa1a2 | refs/heads/master | 2021-07-16T08:16:57.538577 | 2020-07-19T19:58:28 | 2020-07-19T19:58:28 | 190,159,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from double_char import double_char
import unittest
class TestDoubleChar(unittest.TestCase):
def test_rand(self):
answer = lambda s: ''.join([x*2 for x in s])
tests = ["Penut Butter", "Adidas", "1337", "illuminati", "Scrub Lords", "123456", "____ _ _ __ ___ _ ____ ", "!#%G#DGY^RC", "Kanye 2020... | [
"darkdan099@gmail.com"
] | darkdan099@gmail.com |
5bb39ac756aad53754fc73f8b984c7722448e87e | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2L/2L-2N_wat_20Abox/set_1ns_equi.py | ef51dd8d0448dfa3f0b0659cb14b8622e85a47c6 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2L/wat_20Abox/ti_one-step/2L_2N/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_pbs = filesdir + 'temp_1ns_equi.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in ... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
ba514e66ef902854d8ed8cc566766c9003af953c | d101a1499cb453364eaed7bc920f1bf0e01a3470 | /nngen/onnx/pool.py | dddc8b32e0f15834dea399b7cd9e584fc7acbf21 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | m1kit/nngen | 01cfdc373ffcb67e68d9069e1919b126745b501d | 5d71885a59b667b883a328f3cbd0d40579300b7f | refs/heads/master | 2020-09-23T13:45:57.949339 | 2019-11-27T04:25:16 | 2019-11-27T04:25:16 | 225,514,595 | 0 | 0 | Apache-2.0 | 2019-12-03T02:39:22 | 2019-12-03T02:39:21 | null | UTF-8 | Python | false | false | 3,369 | py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import collections
import nngen.operator as operator
import nngen.dtype_list as dtype_list
from . import util
def _pool(pool_op, visitor, node, no_sum_dtype=False):
srcs = []
for src in node.input... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
7a557b3452e73c801ae4ac77d887f6298e53c377 | 5aee5e9274aad752f4fc1940030e9844ef8be17d | /HeavyIonsAnalysis/JetAnalysis/python/jets/akVs5PFJetSequence_pp_mc_cff.py | ec6bd33d0d5b09e34ffbe86119183499c5f1db53 | [] | no_license | jiansunpurdue/5316_dmesonreco_hiforest | 1fb65af11ea673646efe1b25bd49e88de9bf3b44 | a02224ad63160d91aab00ed2f92d60a52f0fd348 | refs/heads/master | 2021-01-22T02:53:43.471273 | 2014-04-26T16:10:12 | 2014-04-26T16:10:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,453 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akVs5PFmatch = patJetGenJetMatch.clone(
src = cms.InputTag("akVs5PFJets"),
matched = cms.InputTag("ak5HiGenJets")
)
akVs5PFparton = p... | [
"sun229@purdue.edu"
] | sun229@purdue.edu |
319685d27506e6ba84658fe2567def0a38c048cc | 3a58186af85acaf659031a1d9b808ec2ee91f0a4 | /tests/agent_unittests/test_region_aware_settings.py | fd017aecf774e23a2ffee218079d7cc21cb9592e | [
"Apache-2.0"
] | permissive | stianjensen/newrelic-python-agent | 878e11dfe33f2b99c29401f9fef60a14438e1831 | 906e2763bf29bc8886560e158dc5241945c28447 | refs/heads/main | 2022-12-20T16:31:57.934202 | 2020-09-22T21:57:48 | 2020-09-22T21:57:48 | 300,626,495 | 0 | 0 | Apache-2.0 | 2020-10-02T13:39:36 | 2020-10-02T13:39:35 | null | UTF-8 | Python | false | false | 2,983 | py | # Copyright 2010 New Relic, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"opensource@newrelic.com"
] | opensource@newrelic.com |
a644ef0c523df174847b0ab9ca463204a23162a8 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D08B/RECECOD08BUN.py | c1e035441eca6ac980bb6bd678b02a58e724d535 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 852 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD08BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'RFF', MIN: 0, MAX: 9},
{ID: 'DTM', MIN: 0, MAX: 9},
{ID: 'NAD'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
e809824af1c31dd099566f00c579354a6d33bb32 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/663e024ad7728836b4eb6b1e4ccf152eaa7a3024-<fit>-fix.py | c4fdf177a257edfd501c12978f3bd21ed36bbc93 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,786 | py |
def fit(self, X, y):
'\n Fit the NearestCentroid model according to the given training data.\n\n Parameters\n ----------\n X : {array-like, sparse matrix}, shape = [n_samples, n_features]\n Training vector, where n_samples is the number of samples and\n n_features... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
b301a32d7f2f93773563cd868b83e0fb2f0c3250 | 5afd733a5c1f753601c69b8b4eae1b49edfbae7c | /301-400/392.py | 246ced2261fcd39e6bb1c021628148d816d940a8 | [] | no_license | yanbinbi/leetcode | 9dcd4a0160be915006455b83d6b7cd39e9819811 | 616a868bfa7bdd00195067b0477b0236a72d23e0 | refs/heads/master | 2021-05-13T19:34:17.222576 | 2017-11-12T02:04:31 | 2017-11-12T02:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | class Solution(object):
def isSubsequence(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
i = 0
for c in s:
p = t.find(c,i)
if p == -1:
return False
else:
i = p + 1
return ... | [
"xukaifeng1986@gmail.com"
] | xukaifeng1986@gmail.com |
296eb6f72bfa4cd38758276ff6551d1a9c1f912d | 0a3da7d8ee3453beec7798a62003014187b714b1 | /data/ai/99_others/ml/metrics/metrics-clustering/metrics-clustering.py | 962817d6f7ab657c1a40d59e41ea6e29ca9c3908 | [] | no_license | atfly/atlib | 635d1b0804af01c090a92048ed09758cb03820bf | 2c15fa47b2b915c1d998e89bbd69ff24dba52137 | refs/heads/master | 2021-05-16T12:51:50.157911 | 2017-11-16T06:50:33 | 2017-11-16T06:50:33 | 105,330,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | ###Adjusted Rand Index
from sklearn.metrics import adjusted_rand_score
adjusted_rand_score(y_true,y_pred)
###Homogeneity
from sklearn.metrics import homogeneity_score
homogeneity_score(y_true,y_pred)
###V-measure
from sklearn.metrics import v_measure_score
metrics.v_measure_score(y_test,y_pred) | [
"atflysun@outlook.com"
] | atflysun@outlook.com |
41195bf521c73250169ae6e5de4c3daf3fcb34d7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03618/s646279648.py | 2ba5d66e469326524ebc7e2f0ea1c19587586d37 | [] | 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 | 304 | py | A = input()
pre_ch = {}
pre_ch_cnt = []
for i, c in enumerate(A):
if c in pre_ch:
pre_ch_cnt.append(pre_ch_cnt[pre_ch[c]] + 1)
else:
pre_ch_cnt.append(0)
pre_ch[c] = i
s_cnt = [1]
for i, c in enumerate(A):
s_cnt.append(s_cnt[i])
s_cnt[i + 1] += i - pre_ch_cnt[i]
print(s_cnt[len(A)]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2fbd519699d8d5b8f729ab0409d0613fce72e4a3 | 46c8bb08991486e3c73b12d7a2fddbfdade088ef | /截图/异常后截图.py | 1e3f0a88d1af2e6dac8268d157be25f31830d206 | [] | no_license | zhang0123456789/selenuim | a309cb22876edb18ec026e5c171b65ab4ae3f176 | 6d3433f55f3d890c876ed63aaa9a11c6601dde7d | refs/heads/master | 2020-04-16T03:13:22.999540 | 2019-01-26T06:35:44 | 2019-01-26T06:35:44 | 165,224,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | #!/usr/bin/env python
#_*_conding:utf-8_*_
# @Time : 2019/1/25 0025 下午 16:35
# @Author : 蜜蜜
# @Email : 1402686685@qq.com
# @File : 异常后截图.py
'''一、windows截图方法
1.get_screenshot_as_file(self, filename)
--这个方法是获取当前window的截图,出现IOError时候返回False,截图成功返回True。
filename参数是保存文件的路径。
Usage:driver.get_screenshot_as_file('/S... | [
"1402686685@qq.com"
] | 1402686685@qq.com |
53d4fae45f5d582483dfc07734a53015f8689a63 | 80f94bea418d7956df1ba19d4d6a1d7715a94ade | /test/unit/tool_util/test_verify_function.py | 1b6ace05f78b2e31185f44d10da24ba1b4b687d1 | [
"CC-BY-2.5",
"MIT",
"CC-BY-3.0",
"AFL-3.0"
] | permissive | galaxyproject/galaxy | 5748409eb6693b1611f289d164f85e20c3237495 | b9ae7a16ba0465995e880ae9701b7e87226b9bab | refs/heads/dev | 2023-08-28T22:35:51.248138 | 2023-08-26T08:02:33 | 2023-08-26T08:02:33 | 31,211,061 | 1,277 | 1,137 | NOASSERTION | 2023-09-14T19:39:01 | 2015-02-23T14:18:06 | Python | UTF-8 | Python | false | false | 2,731 | py | from galaxy.tool_util.unittest_utils import t_data_downloader_for
from galaxy.tool_util.verify import verify
def test_writes_output_to_target_directory(tmp_path):
item_label = "my test case"
output_content = b"expected"
filename = "my_output.txt"
assert not (tmp_path / filename).exists()
verify(
... | [
"jmchilton@gmail.com"
] | jmchilton@gmail.com |
a147e3a9c9788060cff3707f607f0148cd1a5b07 | 18db8d0d61cd59cc4110c751a9fff10f23f9705d | /wbinventory/migrations/0003_auto__add_unique_currency_code__add_unique_unitofmeasure_name__add_uni.py | 2731b6606c8e8720188b29c0412a9f47fd7adeee | [] | no_license | wherebee/wb-inventory | 2ac0c2c96ba4e7bb7e57410125b75d94ac8b3090 | fb101aed4901557e5432c12e90afde58cc1bc5b1 | refs/heads/master | 2021-01-19T14:30:45.371078 | 2012-08-28T19:26:52 | 2012-08-28T19:26:52 | 1,785,709 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,438 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'Currency', fields ['code']
db.create_unique('wbinventory_currency', ['code'... | [
"gldnspud@gmail.com"
] | gldnspud@gmail.com |
41cbc29a6e586b5dfb1217dc37c90a533c4312b8 | 3305d4fb75f1a2adf5f046b400ca4d2f975ea688 | /app/config/urls.py | c1792199d6c9aeab0ac2b6d7c95ea58401e17965 | [] | no_license | mongkyo/kakaochatbot | 73dacf43dd9f967c5badd42ce2a839a91da43d8d | 227eb820c3973c69e0f57ca16b047a8c4f491182 | refs/heads/master | 2022-12-11T05:30:53.434697 | 2019-06-30T08:42:30 | 2019-06-30T08:42:30 | 163,921,334 | 0 | 0 | null | 2022-08-23T17:56:21 | 2019-01-03T04:01:50 | Jupyter Notebook | UTF-8 | Python | false | false | 1,121 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"dreamong91@gmail.com"
] | dreamong91@gmail.com |
4c5a712cde27b09bd2e51d1791c0586c8817431b | 232fc2c14942d3e7e28877b502841e6f88696c1a | /ding/entry/__init__.py | fa1bf81ac17a0aa210c74bd84d65206fee6f5a31 | [
"Apache-2.0"
] | permissive | shengxuesun/DI-engine | ebf84221b115b38b4b3fdf3079c66fe81d42d0f7 | eb483fa6e46602d58c8e7d2ca1e566adca28e703 | refs/heads/main | 2023-06-14T23:27:06.606334 | 2021-07-12T12:36:18 | 2021-07-12T12:36:18 | 385,454,483 | 1 | 0 | Apache-2.0 | 2021-07-13T02:56:27 | 2021-07-13T02:56:27 | null | UTF-8 | Python | false | false | 280 | py | from .cli import cli
from .serial_entry import serial_pipeline
from .serial_entry_il import serial_pipeline_il
from .serial_entry_reward_model import serial_pipeline_reward_model
from .parallel_entry import parallel_pipeline
from .application_entry import eval, collect_demo_data
| [
"niuyazhe@sensetime.com"
] | niuyazhe@sensetime.com |
367bde2c354ee240334ad618ad49134aba8f7195 | 7a2d2cfbe99a13920e55e462bd40627e34d18f23 | /tests/openbb_terminal/test_terminal_helper.py | 57e1b966179724651c4be2632596d82136a2780a | [
"MIT"
] | permissive | conrad-strughold/GamestonkTerminal | b9ada627929dbc1be379f19c69b34e24764efcff | c9aa674d979a7c7fd7f251410ceaa1c8a4ef2e6e | refs/heads/main | 2023-06-24T02:59:45.096493 | 2023-05-16T15:15:20 | 2023-05-16T15:15:20 | 342,313,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | import sys
import unittest
from contextlib import contextmanager
import pytest
from openbb_terminal import terminal_helper
from tests.helpers.helpers import check_print
def return_val(x, shell, check):
# pylint: disable=unused-argument
# pylint: disable=R0903
class ReturnVal:
def __init__(self, ... | [
"noreply@github.com"
] | conrad-strughold.noreply@github.com |
99745ba11d55a799cb8647492f05153764b464f2 | 0ff06c613ab89a3f791f957b36eb5e63d1e2c4d3 | /server/datademo/migrations/0001_initial.py | 1a052bd2b33432db5b02b6076b49593e573fd6fd | [] | no_license | mubarak117136/drftypegen | 0efb3868db3a505bb90aebeaf7c1a11024f537ef | 9bb14ef5af66ce8ef0b21d0168b2b482ebb77c70 | refs/heads/master | 2022-02-21T20:02:25.968711 | 2020-02-09T20:08:18 | 2020-02-09T20:08:18 | 239,366,551 | 0 | 0 | null | 2022-01-21T20:16:14 | 2020-02-09T20:07:03 | Python | UTF-8 | Python | false | false | 2,246 | py | # Generated by Django 3.0.3 on 2020-02-06 05:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"mubarak117136@gmail.com"
] | mubarak117136@gmail.com |
51b2fab251142a033fcc82f47888c3306e49b02d | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/perfetto/tools/record_android_trace | a9db452ffc9a3f9b8ad20e8ee68b31021e5ed1de | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 23,118 | #!/usr/bin/env python3
# Copyright (C) 2021 The Android Open Source Project
#
# 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 requ... | [
"jengelh@inai.de"
] | jengelh@inai.de | |
1710aa29f485a87058af7fd8471c19959a87625a | d1e91dadd862c47109af2870059700a31433e9f9 | /post/urls.py | b9a306e46fe81d5201d6fae624631181718018d3 | [] | no_license | ziaurjoy/Tesk1 | 991e2d712c6278425179604f85b1a8b65f4f5b28 | cad465f5617b33edf09a7fedca3fa8e2676345f7 | refs/heads/main | 2023-03-29T23:01:10.903217 | 2021-03-28T20:55:47 | 2021-03-28T20:55:47 | 352,433,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('user/post/list/<user_name>', views.user_filtering_post, name='user-filtering-post'),
path('category/post/list/<category_name>', views.category_filtering_post, name='caregory-filtering-post'),
... | [
"ziaurjoy802@gmail.com"
] | ziaurjoy802@gmail.com |
7da210097549fd247ee27a24ff2ffef2e2cf2d83 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_248/ch80_2020_04_12_22_10_37_002932.py | 5b7441b5763c029f49850145f9e7ba311b8b3e9b | [] | 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 | 141 | py | def interseccao_chaves(dic1,dic2):
lista=[]
for i in dic1:
if dic1==dic2:
lista.append(dic1)
retur lista
| [
"you@example.com"
] | you@example.com |
e67ed5b2e155a40c79b2dca737dd128c89564c2a | 59d4e91e8050b87c12faa84d7e27f785a282b25b | /deps/AMICI/python/sdist/amici/__init__.template.py | 165798fd5f57cf3ea5c39b363f5bb47f06091daa | [
"MIT",
"CC0-1.0",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ICB-DCM/parPE | bd679cc57d8887e70a42b8a69c07ef955f3d3fd1 | a38bad5fd6a495b3353dec30281edbdad33b3741 | refs/heads/master | 2023-05-23T20:37:13.658355 | 2022-02-22T13:44:07 | 2022-02-22T13:44:07 | 92,953,596 | 17 | 7 | MIT | 2023-03-28T08:20:21 | 2017-05-31T14:18:38 | C++ | UTF-8 | Python | false | false | 32 | py | ../../amici/__init__.template.py | [
"noreply@github.com"
] | ICB-DCM.noreply@github.com |
c73c1e4c035223641668c41d7937a5d3bd80d429 | 7a20dac7b15879b9453150b1a1026e8760bcd817 | /Curso/Challenges/URI/1118SeveralScoresWithValidation.py | cbb034d9b403e2c087286e8d8bd7aa9cf4ffaf88 | [
"MIT"
] | permissive | DavidBitner/Aprendizado-Python | 7afbe94c48c210ddf1ab6ae21109a8475e11bdbc | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | refs/heads/master | 2023-01-02T13:24:38.987257 | 2020-10-26T19:31:22 | 2020-10-26T19:31:22 | 283,448,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | media = validas = 0
while True:
nota = float(input())
if nota > 10 or nota < 0:
print("nota invalida")
else:
media += nota
validas += 1
if validas == 2:
media /= 2
print(f"media = {media:.2f}")
validas = 0
media = 0
while True:
... | [
"david-bitner@hotmail.com"
] | david-bitner@hotmail.com |
06a0635f12b0c849ed1408c9c1c622b2482ed58e | 7dcee9dcb25c4688ef6d45067c16356c5195bbaf | /bot.py | 5f379e77511e5a3f6677294ac29131155c51a19a | [] | no_license | nnocturnnn/poolbot | c9bf960d7ae107cd1e61d3ada873c760c65f6f5f | 928e84520d59057435c379f13d3c139377d5b67a | refs/heads/master | 2023-04-19T16:05:23.964064 | 2021-05-04T18:34:21 | 2021-05-04T18:34:21 | 235,996,850 | 0 | 0 | null | 2021-03-31T19:30:47 | 2020-01-24T12:14:06 | Python | UTF-8 | Python | false | false | 18,796 | py | import logging
import banking
import other
import db
import key as kb
import os
import requests
from geopy.geocoders import Nominatim
from aiogram import Bot, Dispatcher, executor, types
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from aiogram.dispatcher.filters.state import StatesGroup, State
from aio... | [
"vikchehovich@gmail.com"
] | vikchehovich@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.