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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
753d5ef898282896ca95c23bc1acd50810254f9c | f5dbf8b9fc7a67167a966ad842999c5ec41d2363 | /app/forms/generic/fields/typed_choice_tag.py | 985f46bdf83d7991977b0830bb04eb50a59a3f5e | [] | no_license | super0605/cogofly-v1 | 324ead9a50eaeea370bf40e6f37ef1372b8990fe | dee0f5db693eb079718b23099992fba3acf3e2dd | refs/heads/master | 2022-11-27T12:16:30.312089 | 2019-10-11T20:35:09 | 2019-10-11T20:35:09 | 214,522,983 | 0 | 0 | null | 2022-11-22T00:57:28 | 2019-10-11T20:25:01 | JavaScript | UTF-8 | Python | false | false | 3,651 | py | # coding=UTF-8
import ast
from django import forms
from django.core.exceptions import ValidationError, FieldError
from django.utils.translation import ugettext_lazy as _
class TagTypedChoiceField(forms.TypedChoiceField):
"""
Permet de créer un champ qui donne la possibilité de choisir parmi des... | [
"dream.dev1025@gmail.com"
] | dream.dev1025@gmail.com |
757fc8ff7a803d0d152d98fa3aea897439c4b725 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /OA/Quora/Q_Quora_Max Arithmetic Length.py | b1d18af8479d2ffb378aea83272bfc4cb3187ac9 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | class Solution:
def find(self,A,B):
gaps=[A[i]-A[i-1] for i in range(1,len(A))]
def helper(nums):
small=min(nums)
for i in range(1,small+1)[::-1]:
if list(filter(lambda j:j%i!=0,nums))==[]:
return i
g,add,setA,setB=helper(gaps),0,se... | [
"564258080@qq.com"
] | 564258080@qq.com |
aa695c110cbecfd22fec22186d3a5ce9604e53d6 | 1c390cd4fd3605046914767485b49a929198b470 | /leetcode/reconstruct-a-2-row-binary-matrix.py | 788342c08493fd352188b3d37d54d773cca59844 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | class Solution:
def reconstructMatrix(self, a: int, b: int, c: List[int]) -> List[List[int]]:
A = []
B = []
for i in c:
if i == 0:
A.append(0)
B.append(0)
elif i == 2:
A.append(1)
B.append(1)
... | [
"wwwwodddd@gmail.com"
] | wwwwodddd@gmail.com |
44173ec7f62306dc752379d9764eeff2c21fe1d1 | 847f40baf346d0fcd6b94dae3c4312df76bd0c92 | /master/.conda/envs/mockchallenge/lib/python3.7/site-packages/halotools/mock_observables/tensor_calculations/tensor_derived_quantities.py | c072313500967d7644466266f09e30ff5c8cd00b | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | michaelJwilson/mockchallenge | e7f4c5a7cbfbeb02fbcb725d3cfab42e0ee2d35d | 3c633f83f78f4eb2cd8450b74a12731b65b5b4ab | refs/heads/master | 2022-06-21T10:22:25.052221 | 2020-05-09T18:36:40 | 2020-05-09T18:36:40 | 262,428,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,695 | py | """
"""
import numpy as np
__all__ = (
'principal_axes_from_inertia_tensors', 'sphericity_from_inertia_tensors',
'triaxility_from_inertia_tensors')
def principal_axes_from_inertia_tensors(inertia_tensors):
r""" Calculate the principal eigenvector of each of the input inertia tensors.
Param... | [
"mjwilson@lbl.gov"
] | mjwilson@lbl.gov |
43a81f671aa62802c6f7e59267c4a24b6d833e24 | 7d90d2ce27c6ee0af74391b09909edbd45fdc2f0 | /renix_py_api/api_gen/HistoryChartSettings_Autogen.py | eb4c69ff80225479abd7659721a577ff00187427 | [] | no_license | gaoxingyu-hub/54testframework-master-e284 | d7ea0d4a715b65c8652430e963a86b9522a7237a | 57dd2197e7d91b8ad8fb2bd0e3503f10afa08544 | refs/heads/master | 2023-04-30T05:50:41.542402 | 2021-05-28T09:19:37 | 2021-05-28T09:19:37 | 309,922,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | """
Auto-generated File
Create Time: 2019-12-27 02:33:25
"""
from .ROMEnum_Autogen import *
from renix_py_api.renix_common_api import *
from renix_py_api import rom_manager
from .ROMObject_Autogen import ROMObject
@rom_manager.rom
class HistoryChartSettings(ROMObject):
def __init__(self, SamplingInterval=None, A... | [
"gaoxingyu@example.com"
] | gaoxingyu@example.com |
f1f67a89a853a8fc790132e05abaa01cfcb2605b | e4f2c957b86191ed5b2b8f3af7b5b24967b426bc | /bessel_FK/bessel_FK/bessel_FK.py | 1ff18b603d864c96431f2d62f5e50de209bbb171 | [] | no_license | ivanpedro/pythondevelop | 28baa4813322a26a01ec64e755828523a2e57739 | 74608f9139c05f8aec1c92bf7ff5380c32104748 | refs/heads/master | 2021-05-08T05:22:29.718142 | 2018-01-11T23:51:39 | 2018-01-11T23:51:39 | 106,345,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,910 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 23 18:13:05 2017
@author: Ivan
Bessel function of first kind
special.jv(nu,z) or special jn(nu,z)
"""
from scipy import special
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from pylab import *
"""... | [
"ivanpedrouk@gmail.com"
] | ivanpedrouk@gmail.com |
42277bd8cd8bf9bbfc74c4786663c34430d4c803 | e6d862a9df10dccfa88856cf16951de8e0eeff2b | /api/allocate/vacancy_booking/python/api_server/models/vacancy_withdrawn_event.py | 3a689b7b88ab903851f603d4ffb6f96fc1784c07 | [] | no_license | AllocateSoftware/API-Stubs | c3de123626f831b2bd37aba25050c01746f5e560 | f19d153f8e9a37c7fb1474a63c92f67fc6c8bdf0 | refs/heads/master | 2022-06-01T07:26:53.264948 | 2020-01-09T13:44:41 | 2020-01-09T13:44:41 | 232,816,845 | 0 | 0 | null | 2022-05-20T21:23:09 | 2020-01-09T13:34:35 | C# | UTF-8 | Python | false | false | 3,521 | py | # coding: utf-8
"""
Vacancy Booking API and Events
## Duty Booking API and events and Events # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: support@allocatesoftware.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
f... | [
"nigel.magnay@gmail.com"
] | nigel.magnay@gmail.com |
df552aec138f861f45e64209f347d0a3339ac40e | 4d675034878c4b6510e1b45b856cc0a71af7f886 | /configs/nas_fcos/nas_fcos_nashead_r50_caffe_fpn_gn-head_4x4_1x_coco.py | b779492527850ca8ea52f7aa8c17d6c3543fa368 | [
"Apache-2.0",
"BSD-2-Clause-Views",
"MIT",
"BSD-2-Clause"
] | permissive | shinya7y/UniverseNet | 101ebc2ad8f15482ee45ea8d6561aa338a0fa49e | 3652b18c7ce68122dae7a32670624727d50e0914 | refs/heads/master | 2023-07-22T08:25:42.646911 | 2023-07-08T18:09:34 | 2023-07-08T18:09:34 | 263,555,721 | 407 | 58 | Apache-2.0 | 2023-01-27T01:13:31 | 2020-05-13T07:23:43 | Python | UTF-8 | Python | false | false | 2,990 | py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='NASFCOS',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_c... | [
"noreply@github.com"
] | shinya7y.noreply@github.com |
88d495f8aee645e43f0367adeac1f48828ac7fb2 | d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496 | /com.CheckProofing/creative_analyzer_final_copy/scripts/python/resources/extract_subj_line.py | 1121f4f5d8a3b7edaaa3707a2c1c6edc1b37573c | [] | no_license | ahmed-test001/python | 21a27248c4571a13c0ed4dccab256aede1beea3a | eab59b9a54fae1a51fbc18c391599eb3b0e28b3d | refs/heads/master | 2023-03-10T21:00:54.634028 | 2021-02-27T05:31:58 | 2021-02-27T05:31:58 | 342,778,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,579 | py | import json
class extract_subj_line:
def __init__(self, **kwargs):
self.config_file = {}
self.input_html_file = kwargs['input_html_file']
self.output_dir = kwargs['output_dir']
self.output_file_name = kwargs['Subject_Line']
self.filename = kwargs['Report_File']
self.... | [
"ahmedu.ferdous@gmail.com"
] | ahmedu.ferdous@gmail.com |
1397a4971cbcf39e1516cf745df95dd242ffae46 | c5fb49af6c4de5e5dde2981224dce8d39243d8c1 | /Pdf_Merging/views.py | c922b2919c3801338bb0dce777768cbcaa86b75d | [] | no_license | Ashish2831/TEXT-UTILS | 1631d5dcaea4ff11eb7b5fa323ff2ad13c8a57f1 | 6a905731269988001364648e46590a7a04496c8b | refs/heads/main | 2023-08-16T16:11:31.436503 | 2021-09-14T10:22:49 | 2021-09-14T10:22:49 | 374,950,398 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | from django.shortcuts import render
import PyPDF2
import os
# Create your views here.
index = 1
def Upload(request):
global index
if request.method == "POST":
file = request.FILES.get('file')
with open(f"UploadedMedia\Pdf_Merging\PDFs\Pdf{index}.pdf", "wb+") as pdf:
for chunk in fil... | [
"ashishpatil28032001@gmail.com"
] | ashishpatil28032001@gmail.com |
d9244a04e2dfb6ffc30786c9beb00c32cb280d70 | ee9c5b5ff85b2b49a69677f14bf7b57881b08e3c | /venv/Scripts/pip3.7-script.py | 99c7946bbd6b6e10f3a0f8b0601b0251c4910df4 | [] | no_license | chrisna2/python-design-pattern | 28965f5e9e880f740411ff1dd8a51233cd9739e2 | 12aff069738b8aac3854e1148ec414bd16984ea5 | refs/heads/master | 2020-07-19T17:33:38.038629 | 2019-09-05T06:13:36 | 2019-09-05T06:13:36 | 206,488,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #!D:\tyn_dev\workspace_pycham\python-design-pattern\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"chrisna2@hanmail.net"
] | chrisna2@hanmail.net |
60b16664d010aa17f247b66b901c2c60e233d54e | 5503b2746fb0f6cb48409e713474f4257b2131e1 | /loguru_logging_intercept.py | 86a72d32ba9747436ebdc4b5e2b90e43c4e17945 | [
"MIT"
] | permissive | MatthewScholefield/loguru-logging-intercept | 39a174e4c6f70826d3eb032df80c36568bb39b07 | 4fdffbac9e7b5cf8e938f6a71151ec55ce06b695 | refs/heads/main | 2023-08-23T16:58:24.878304 | 2023-08-04T04:42:09 | 2023-08-04T04:42:25 | 334,223,234 | 8 | 2 | MIT | 2021-04-10T21:54:03 | 2021-01-29T18:00:12 | Python | UTF-8 | Python | false | false | 1,404 | py | import logging
import sys
from itertools import chain
from types import FrameType
from typing import cast
from loguru import logger
class InterceptHandler(logging.Handler):
"""Logs to loguru from Python logging module"""
def emit(self, record: logging.LogRecord) -> None:
try:
level = log... | [
"matthew331199@gmail.com"
] | matthew331199@gmail.com |
ae1ec80f822b96899d26d2bf0fe448409af9ec77 | d090e6763ad913f194f927dcbe9039daeb699869 | /mpr/tests/test_views.py | 99b7879da56c01ed841a33baaccf12ae79834aa6 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | Code4SA/medicine-price-registry | fe49807b698917628b1a1fb22a82023f05b16208 | f5160136d7748ab3645cdaf71fbfbbb5710adbaf | refs/heads/master | 2023-07-11T00:38:40.634187 | 2023-07-07T15:12:31 | 2023-07-07T15:12:31 | 13,356,895 | 31 | 16 | Apache-2.0 | 2023-07-07T15:00:16 | 2013-10-06T03:59:14 | Python | UTF-8 | Python | false | false | 9,352 | py | from django.test import TestCase
from django.test import Client
from django.urls import reverse
from django.conf import settings
import json
from mpr.loganalytics import test_log_analytics
class ApiUrls(TestCase):
fixtures = ["mpr_models.json"]
__test__ = False
def setUp(self):
test_log_analytic... | [
"adi@openup.org.za"
] | adi@openup.org.za |
3bc98364ea1186377417b0681ce3f1f2a099ab2d | c50e5af8f72de6ef560ee6c0bbfa756087824c96 | /test/timeit_判断奇偶_求余_位运算.py | ecd0c476bf77c3cf507d1c1ed4007c99c06ca914 | [] | no_license | binghe2402/learnPython | 5a1beef9d446d8316aaa65f6cc9d8aee59ab4d1c | 2b9e21fe4a8eea0f8826c57287d59f9d8f3c87ce | refs/heads/master | 2022-05-27T03:32:12.750854 | 2022-03-19T08:00:19 | 2022-03-19T08:00:19 | 252,106,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | ''' 求余好像更快 '''
import timeit
# ss = 'a = list(range(10000000))'
s1 = "for i in range(10):\n" \
"\ti&1"
s2 = "for i in range(10):\n" \
"\ti%2"
t1 = timeit.timeit(stmt=s1, number=20)
t2 = timeit.timeit(stmt=s2, number=20)
print(t1)
print(t2)
res = [i % 2 == i & 1 for i in range(10)]
print(res)
print(all(res... | [
"binghe2402@hotmail.com"
] | binghe2402@hotmail.com |
39b23975d72110efa771a3562bd38b1f14bd32e0 | 55b8c2ca8b6ac3639ad0dfa2f08bdbefbafff1a1 | /app/admin.py | 9a2f41cb40e487770f7077a1bcd6a45c3b4a5a94 | [] | no_license | nguyendan07/tweet | 3744056770ae23b82c8e601f9d3bb663a84983f2 | 5d0833217e71b376dfc16376604cf36b7d783e79 | refs/heads/master | 2020-03-19T01:07:10.774594 | 2018-06-01T08:49:37 | 2018-06-01T08:49:37 | 135,524,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from django.contrib import admin
from .models import Tweet
# from .forms import TweetModelForm
class TweetModelAdmin(admin.ModelAdmin):
# form = TweetModelForm
class Meta:
model = Tweet
admin.site.register(Tweet, TweetModelAdmin)
| [
"nguyendan@hotmail.com.vn"
] | nguyendan@hotmail.com.vn |
382dec09aac8890d289aa74f79e0c5912681536f | 98895f2c4a11195495e4e94d7b1821d3ec229f17 | /Backend/blockchain/Blockchain.py | 91768a68cc32451ab4cd697eef9962e90d942071 | [
"MIT"
] | permissive | zarif007/Block-Chain-Web-App | 130a0e44fb84c622a6fbc496ead1a45b0caf6065 | 40bd4d8d8ce1f6de2840792290bf022d7dfacbb4 | refs/heads/main | 2023-02-20T01:32:41.974440 | 2021-01-23T20:04:01 | 2021-01-23T20:04:01 | 317,946,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,164 | py | from backend.blockchain.Block import Block
from backend.wallet.transaction import Transaction
from backend.wallet.wallet import Wallet
from backend.config import MININIG_REWARD_INPUT
class Blockchain:
"""Blockchain technology is most simply defined as a decentralized,
distributed ledger that records the prove... | [
"zarifhuq786@gmail.com"
] | zarifhuq786@gmail.com |
69929158fff61b2c4a4eeb40972550338e8c1d29 | 0378a2f1adad86f439ce214ebfe2a904cda6eb41 | /badball/migrations/0090_auto_20191228_1535.py | ad03770da3c22e368ff58962ea31e436108e987a | [] | no_license | jeremyjbowers/badball | 2035902b5f8d2bc05219af887bd3e1bfcb45192b | 323289ec871e0e7e98e397c9d528d83773c86f85 | refs/heads/master | 2020-12-20T22:08:53.083230 | 2020-01-25T23:09:11 | 2020-01-25T23:09:11 | 236,222,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # Generated by Django 2.2.7 on 2019-12-28 15:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('badball', '0089_auto_20191228_1527'),
]
operations = [
migrations.AlterField(
model_name='player',
name='position',
... | [
"jeremyjbowers@gmail.com"
] | jeremyjbowers@gmail.com |
2f60b7d0a7e3a809598c3f64fbdba82756ad47de | 8024be47f6643ba998a2596353d42e3bca0be720 | /StandardLib/igraph/operators.py | 5e3e8bd856e5890a803abb77b8687f221706ca74 | [] | no_license | hiepbkhn/itce2011 | a8aaec08e426454671570e28f1dd4828d83d12ca | d8985d1484699bdbb7bbece572058a420a960eac | refs/heads/master | 2021-04-22T12:49:38.516261 | 2019-02-11T15:45:42 | 2019-02-11T15:45:42 | 37,022,768 | 9 | 6 | null | null | null | null | UTF-8 | Python | false | false | 6,663 | py | import unittest
from igraph import *
class OperatorTests(unittest.TestCase):
def testMultiplication(self):
g = Graph.Full(3)*3
self.failUnless(g.vcount() == 9 and g.ecount() == 9
and g.clusters().membership == [0,0,0,1,1,1,2,2,2])
def testIntersection(self):
g =... | [
"hiepnh.vtt@gmail.com"
] | hiepnh.vtt@gmail.com |
cec0e5176bc212110ded49072b514fc8d98e40c8 | e9fa26be4d9e7a725d3f889b6aa9cf5029f47c2d | /lib/telegram/chat.py | d837c9fd2d18204183e5e04d0e0892c96c4d66ac | [
"BSD-3-Clause"
] | permissive | ahriman-ru/azure-test | 2e0ee70a8b453534cf82e44860f04dddd3ab8095 | 3c377163192139d046b4ec20ce5b44a0492aecd8 | refs/heads/master | 2021-07-17T03:53:14.025065 | 2017-10-20T12:04:11 | 2017-10-20T12:04:11 | 100,267,395 | 0 | 0 | null | 2017-08-14T12:54:01 | 2017-08-14T12:54:01 | null | UTF-8 | Python | false | false | 7,486 | py | #!/usr/bin/env python
# pylint: disable=C0103,W0622
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2017
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU L... | [
"root@MININT-HAS5VVP.europe.corp.microsoft.com"
] | root@MININT-HAS5VVP.europe.corp.microsoft.com |
3014b6058396760f0483f207a64dd4bf3c6cd420 | 4c601eaa346e660c296e270cc2d79aea9a3721fe | /tests/components/bsblan/test_config_flow.py | 48f71a8404f5a999fd0927a9038dd9ad1b6941e0 | [
"Apache-2.0"
] | permissive | basnijholt/home-assistant | f55110af9ff602274c0a929c7298ef97a0ef282f | ba55b4b8338a2dc0ba3f1d750efea49d86571291 | refs/heads/dev | 2023-01-21T11:53:52.621353 | 2020-08-08T15:03:06 | 2020-08-08T15:03:06 | 220,313,680 | 5 | 1 | Apache-2.0 | 2023-01-13T06:04:49 | 2019-11-07T19:29:54 | Python | UTF-8 | Python | false | false | 3,271 | py | """Tests for the BSBLan device config flow."""
import aiohttp
from homeassistant import data_entry_flow
from homeassistant.components.bsblan import config_flow
from homeassistant.components.bsblan.const import CONF_DEVICE_IDENT, CONF_PASSKEY
from homeassistant.config_entries import SOURCE_USER
from homeassistant.const... | [
"noreply@github.com"
] | basnijholt.noreply@github.com |
455018fd484138c6887e6c66acd30e3280bb67a3 | b0e22deb519ec621b5f866bb15d15d597e6e75d4 | /tests/models/validators/v3_0_0/jsd_e56bea5248a25f799b02fcb6098a7b10.py | 6ab5e203eb06d0cc91d937abdb30649f4c18ef0b | [
"MIT"
] | permissive | oianson/ciscoisesdk | 49ed9cd785a8e463cac4c5de3b1f3ff19e362871 | c8fe9d80416048dd0ff2241209c4f78ab78c1a4a | refs/heads/main | 2023-07-31T20:08:29.027482 | 2021-07-09T15:16:04 | 2021-07-09T15:16:04 | 385,743,799 | 0 | 0 | MIT | 2021-07-13T21:52:18 | 2021-07-13T21:52:18 | null | UTF-8 | Python | false | false | 3,257 | py | # -*- coding: utf-8 -*-
"""Identity Services Engine getSXPLocalBindingsById data model.
Copyright (c) 2021 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without res... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
e87a2208ac24079b66e0fe1f35523343f6a5b642 | 9705552900ba2aecb67437e2d370aa8d39e59f51 | /pynet/info.py | 6ff9ecdc5d6c1240d5fef0ace72ab659ab110f5a | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | AGrigis/pynet | 15c2f03d3a4f92b7fe52d0c4b90972b5e6e583d2 | d0e6a3e6e954ae0e59fddfe85fe12ce0ef1e6fe4 | refs/heads/master | 2023-08-10T07:57:58.897485 | 2019-08-19T13:36:36 | 2019-08-19T13:36:36 | 203,187,278 | 0 | 0 | NOASSERTION | 2019-12-03T13:02:57 | 2019-08-19T14:17:47 | Python | UTF-8 | Python | false | false | 2,124 | py | # -*- coding: utf-8 -*-
##########################################################################
# NSAp - Copyright (C) CEA, 2019
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
#... | [
"antoine.grigis@cea.fr"
] | antoine.grigis@cea.fr |
0afb69c439dd6b4aa99fe647c433cba2e4d7a226 | e741d661b1cbb1d48eff4adff3ce8d424b0b3aee | /meiduo_mall/apps/oauth/apps.py | 2a98f05386b4b61f9165771af2cbafdc46d012d7 | [
"MIT"
] | permissive | Tao-bug/meiduo_project | 09b3900ab7e1436ee3201c53461a9c119d1f56db | e3a24eac2c8231d0e27f6a7fa639dd36baa410b0 | refs/heads/master | 2022-07-16T02:18:22.319641 | 2019-11-12T13:54:23 | 2019-11-12T13:54:23 | 218,697,808 | 0 | 0 | MIT | 2022-07-01T00:55:01 | 2019-10-31T06:20:01 | JavaScript | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class OauthConfig(AppConfig):
name = 'apps.oauth'
| [
"897384405@qq.com"
] | 897384405@qq.com |
dc22391e1d0922fa0caaffb67e2e60a36fd98757 | 1e5f6ac1590fe64e2d5a2d8b036c0948847f668d | /codes/Module_3/lecture_14/lecture_14_18.py | 3a437124fe78730880567738d94ade1161f03c29 | [] | no_license | Gedanke/Reptile_study_notes | 54a4f48820586b1784c139716c719cc9d614c91b | a9705ebc3a6f95160ad9571d48675bc59876bd32 | refs/heads/master | 2022-07-12T23:43:24.452049 | 2021-08-09T12:54:18 | 2021-08-09T12:54:18 | 247,996,275 | 5 | 1 | null | 2022-06-26T00:21:48 | 2020-03-17T14:50:42 | HTML | UTF-8 | Python | false | false | 411 | py | # -*- coding: utf-8 -*-
import time
from selenium import webdriver
browser = webdriver.Chrome()
browser.get('https://www.baidu.com')
browser.execute_script('window.open()')
print(browser.window_handles)
browser.switch_to.window(browser.window_handles[1])
browser.get('https://www.taobao.com')
time.sleep(1)
browser.swi... | [
"13767927306@163.com"
] | 13767927306@163.com |
325fc325a57a1fa4c40f8cbdb02ee67645c0bd9e | 2bc9bceb4bc83731ea4248aaebe3e5c25904ea37 | /Authentication_Form/settings.py | 19ded4ed5de62f46c951e70e61c45ab934f1cb05 | [] | no_license | priyankaonly1/AuthenticationForm-signup-login-logout- | cbe4e0530aea9592b5424344659dc94748cfc9de | e9993a2a4147f5d34e91e33b8b806058f1e394c9 | refs/heads/main | 2023-05-27T17:50:12.589353 | 2021-05-28T19:18:37 | 2021-05-28T19:18:37 | 371,798,772 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | """
Django settings for Authentication_Form project.
Generated by 'django-admin startproject' using Django 3.1.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"priyankabiswasonly1@gmail.com"
] | priyankabiswasonly1@gmail.com |
543db2af972eef25e9db0932470748baf7962927 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/urlpatterns_reverse/tests.py | 4e5123d36d2e31824480c02ee18535c8811ec4af | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/urlpatterns_reverse/tests.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
7cf34c9e1ef089b7193d21685b32595a9731235d | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /common/ComponentModel/CameraComponents.py | 491d9409016b0cef060986ea7feb62e8d23bb097 | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,146 | py | # Embedded file name: scripts/common/ComponentModel/CameraComponents.py
import sys
import inspect
import BigWorld
import Math
import math
from db import DBLogic
from Component import Component, InputSlot, OutputSlot
from consts import IS_CLIENT, IS_EDITOR
from MathExt import clamp
from debug_utils import LOG_ERROR
if I... | [
"55k@outlook.com"
] | 55k@outlook.com |
5f341c1032b6baab553458ef8ad7b7f793b63352 | 6151571b2cb7b0023cef1efe834cbacede207fe4 | /tests/flask_tests.py | 04b547776b50afee6fcd77e811983896b80345b3 | [
"BSD-3-Clause"
] | permissive | dvogel/flask | 2c6a13822d574fa967f417595efdc92809aae72c | e0f1eae61e1f151f19e1033801b0f0152f775d5c | refs/heads/master | 2020-12-25T07:50:42.657101 | 2011-03-09T18:31:39 | 2011-03-09T18:31:39 | 1,460,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,181 | py | # -*- coding: utf-8 -*-
"""
Flask Tests
~~~~~~~~~~~
Tests Flask itself. The majority of Flask is already tested
as part of Werkzeug.
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from __future__ import with_statement
import os
import re
import sys
im... | [
"armin.ronacher@active-4.com"
] | armin.ronacher@active-4.com |
bb68cbaca0747b648bd35e635213a0f75cb8c47d | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /third_party/WebKit/Source/platform/mojo/DEPS | 289dba405729519f1408158bf9a94b4b53cf0733 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 424 | include_rules = [
# To whitelist base/ stuff Blink is allowed to include, we list up all
# directories and files instead of writing 'base/'.
"+base/callback.h",
"+base/containers/span.h",
"+base/message_loop/message_loop.h",
"+base/strings/string16.h",
"+mojo/public/cpp/bindings/binding.h",
... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com | |
1b5427f7640c17a0d79c5fcf752d8610a0561562 | 3da7637302cf3c7864f2528151f65b1c4e7e80a5 | /QTIM_Feature_Extraction_Pipeline/Features/GLCM.py | d8268504bbfa1661834d9ab289b5da81b201c9d1 | [] | no_license | AndrewBeers/QTIM_Pipelines | 3431cd8d91d10b178f45d4b70ac21ed1d41bba4a | b60e5a06f2b70bd767f3b9dcf83970c471b13c8c | refs/heads/master | 2020-07-23T15:47:28.194351 | 2016-09-21T21:53:41 | 2016-09-21T21:53:41 | 67,627,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,309 | py | """ This is the beginning of a program meant to calculate GLCM features on 3D
arrays generated from NIFTI images. It is based off of the greycomatrix,
greycoprops and other GLCM utility code lifted straight from scikit-image.
Goals for this program: generalize sci-kit's 2D GLCM to 3D, optimize 3D
GLCM c... | [
"andrew_beers@alumni.brown.edu"
] | andrew_beers@alumni.brown.edu |
6f87c74331b4e564d29a3900f954908d99cb8713 | dbd77c507840d71f2d8e0c9afbeabc5ec69cf440 | /homework/api_auto_3/common/project_path.py | 0ba16780660fe446bcbee1efb031836d1a89cee0 | [] | no_license | zhang0123456789/python_study | 5a7b2972ba365b0f2355f95458d2b3caf2905225 | 69963149ac0cd0724db5e43e666c625d7309b797 | refs/heads/master | 2020-04-14T20:37:51.091089 | 2019-06-22T05:09:19 | 2019-06-22T05:09:19 | 163,464,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/10 20:29
# @Author : lemon_huahua
# @Email : 204893985@qq.com
# @File : project_path.py
#专门来存储我们路径的变量
import os
base_path=os.path.split(os.path.split(os.path.realpath(__file__))[0])[0]
print(base_path)
#想得到配置文件的路径
config_path=os.path.join(base_path,'conf','test_api.co... | [
"1402686685@qq.com"
] | 1402686685@qq.com |
cfd1d8cba41ff5b5d71159e279f659d3fd507f7f | 55dc31d883fe97190a00de27e82d602499d51133 | /analysis/rhu/NtuplizerV3.py | 3c75c632e5870fa837e12374c250b6a3a3394d8c | [] | no_license | desy-cms/bcm1f | f6b7e3203163ea1f0a14b787c0f723008a81bf1a | 33c07eeda5daa9e48a2619d4859c09d249f86462 | refs/heads/develop | 2021-01-24T03:48:36.979679 | 2016-10-14T09:38:58 | 2016-10-14T09:38:58 | 54,978,067 | 0 | 1 | null | 2016-10-14T09:38:58 | 2016-03-29T13:29:01 | C | UTF-8 | Python | false | false | 8,329 | py | # Ntuplizer v3
import tables, pandas as pd, pylab as py, sys, numpy
import matplotlib.dates as md
import datetime as dt
import time
import os
from ROOT import TCanvas, TFile, TProfile, TNtuple, TH1F, TH2F, TTree
from ROOT import gROOT, gBenchmark, gRandom, gSystem, Double
from array import array
gROOT.Reset()
fillnr... | [
"roberval.walsh@gmail.com"
] | roberval.walsh@gmail.com |
60e0f2ebc2790f383aad657d45af796b58fcc1a1 | 3a58d339e2f3848b37edbfb2c957bcc6d5659664 | /habr.py | 0111319816b384b4d724f7e36e7ca7d0cf151c68 | [] | no_license | Quastrado/parse_pages | 975364ffdb63ab8aa1cdae421b331979f5085e8f | 0303e09c147ec643019c12ef9fc39e3391607dfd | refs/heads/master | 2020-10-01T18:05:19.428873 | 2019-12-12T12:09:34 | 2019-12-12T12:09:34 | 227,594,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | import urllib.request
from urllib.parse import urlparse
from bs4 import BeautifulSoup
def get_posts(url, limit):
req = urllib.request.urlopen(url)
soup = BeautifulSoup(req, 'html.parser')
posts = soup.find_all('article', {'class': 'post post_preview'}, limit=limit)
return posts
def generate_data... | [
"you@example.com"
] | you@example.com |
bfae5f4f79e16cab83cc5f090d667c3ad3f3f45c | 860052ff38d15aa1d425bc4ce4442f03bab94bc0 | /hc/api/migrations/0037_auto_20180127_1215.py | 82d631f1817fda7240928a701ff77ebf0a4caae4 | [
"BSD-3-Clause"
] | permissive | mwanjajoel/healthchecks | 80ef630a1e1539a31018883e5adf35175d905366 | 68125f2b6ba16e81e4cd22c50325b0ba7dec16a9 | refs/heads/master | 2023-05-26T10:51:45.724242 | 2022-05-19T11:11:32 | 2022-05-19T11:11:32 | 138,776,963 | 0 | 0 | BSD-3-Clause | 2023-05-22T21:39:38 | 2018-06-26T18:21:57 | Python | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-27 12:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0036_auto_20180116_2243'),
]
operations = [
migrations.AlterField(
... | [
"cuu508@gmail.com"
] | cuu508@gmail.com |
88c51289dcd3d586eb5120f62ed7bfcd46e1895f | 6ad1149e8cfd7952e28999a92821e9c50347255f | /shoppingsite.py | 34cb42b18affc5de2180f251bca6b14d8958e382 | [] | no_license | lmkroyer/Shopping-Site-Lab-10_19_17 | 84cbaf8a7d76b8ffc507b1f7219cf8d0cf7d95f1 | de49417a3a857971ca4b08543f518581464083d5 | refs/heads/master | 2021-07-15T06:15:37.149596 | 2017-10-19T23:28:51 | 2017-10-19T23:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,306 | py | """Ubermelon shopping application Flask server.
Provides web interface for browsing melons, seeing detail about a melon, and
put melons in a shopping cart.
Authors: Joel Burton, Christian Fernandez, Meggie Mahnken, Katie Byers.
"""
from flask import Flask, render_template, redirect, flash, session
import jinja2
imp... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
9cb513ef9f8617a1d8b19b2db32ad6fced96816d | 1b2f5766da374e77fa111264ff8ffb5e1c80becb | /pymic/util/average_model.py | 0b6fb29ba170dc2420bbd078c6b651bfc4ff72a6 | [
"Apache-2.0"
] | permissive | vincentme/PyMIC | d62d6a755204bcd1ac13b1b8c5f3fce01cfcff5b | 5cbbca7d0a19232be647086d4686ceea523f45ee | refs/heads/master | 2023-05-07T15:30:32.203191 | 2021-05-21T07:23:09 | 2021-05-21T07:23:09 | 351,607,267 | 0 | 0 | Apache-2.0 | 2021-03-27T16:22:25 | 2021-03-25T23:46:47 | Python | UTF-8 | Python | false | false | 895 | py | import torch
checkpoint_name1 = "/home/guotai/projects/PyMIC/examples/brats/model/casecade/wt/unet3d_4_8000.pt"
checkpoint1 = torch.load(checkpoint_name1)
state_dict1 = checkpoint1['model_state_dict']
checkpoint_name2 = "/home/guotai/projects/PyMIC/examples/brats/model/casecade/wt/unet3d_4_10000.pt"
checkpoint2 = tor... | [
"wguotai@gmail.com"
] | wguotai@gmail.com |
4d766a94fda6c2b08dbebdc401cd34ce185a07ce | 9a309ca19b654bc8e5045242081330870efee4ec | /core/migrations/0005_recipe_image.py | fcf29b0ea73274a989d5263984e78cb6b7539bd3 | [] | no_license | jsparmani/django-rest-framework | c03989cbbb844d01486f979fe4c79d2c73cbe319 | 5a48304f4d91d9363727bded30499987794d6fb4 | refs/heads/master | 2020-08-04T00:18:24.141631 | 2019-10-02T08:24:55 | 2019-10-02T08:24:55 | 211,934,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Generated by Django 2.1.7 on 2019-10-02 07:43
import core.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_recipe'),
]
operations = [
migrations.AddField(
model_name='recipe',
name='image',
... | [
"jsparmani@gmail.com"
] | jsparmani@gmail.com |
fd7d501794be5efd47f3d0b4b17421201d9e00fa | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-channel/samples/generated_samples/cloudchannel_v1_generated_cloud_channel_service_list_customers_sync.py | 1b773c10751f001755ffb54eafacc625e66cd1f6 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,898 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
dbcbcb1525f2e1a82abb03273d5c3d9b1be921c9 | 92a97f111195777c3d658f33024c0e8fe4688842 | /source/datamanager.py | 643c66031f26d4f64e10e06dfe918112c1765664 | [
"MIT"
] | permissive | YeongHyeon/ResNeSt-TF2 | 1200e75eda892aed9ba65dba5d2a6d570ec7213a | 0e4440206e0e16569fa5fd4664742cb0acd140c9 | refs/heads/master | 2023-05-09T13:02:37.284528 | 2021-05-28T03:45:42 | 2021-05-28T03:45:42 | 262,956,092 | 73 | 15 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | import numpy as np
import tensorflow as tf
from sklearn.utils import shuffle
class Dataset(object):
def __init__(self, normalize=True):
print("\nInitializing Dataset...")
self.normalize = normalize
(x_tr, y_tr), (x_te, y_te) = tf.keras.datasets.mnist.load_data()
self.x_tr, self... | [
"young200405@gmail.com"
] | young200405@gmail.com |
b1ef8793c52af8c2a19f9692723e09d280ef26d2 | 96ec28c68204fdc5ca8e7c649b50079c8c8c2156 | /boqn/langermann.py | 2312bbea0b4ba6ee62eb9d5dda9291c96291add6 | [
"MIT"
] | permissive | RaulAstudillo06/BOQN | f2fea969cf8171e11565ec082c99fa7f35dd55ce | dc31980bbf195c299632c94119b99cbd27f47ea9 | refs/heads/master | 2023-08-31T04:15:37.347362 | 2021-11-05T19:17:49 | 2021-11-05T19:17:49 | 257,744,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | import torch
import math
class Langermann:
def __init__(self):
self.c = torch.tensor([1., 2., 5., 2., 3.])
self.A = torch.tensor([[3., 5., 2., 1., 7.], [5., 2., 1., 4., 9.]])
def evaluate(self, X):
c = self.c
A = self.A
X_scaled = 10 * X
ou... | [
"astudillo0606@gmail.com"
] | astudillo0606@gmail.com |
956c0531083c165829e8037eb19db1ebc1ad7eaf | dcc491dd2fa4ece68728255d236fa6e784eef92d | /modules/2.79/bpy/ops/gpencil.py | 181247b5007de7ca515398c478b5cafed5ec3355 | [
"MIT"
] | permissive | cmbasnett/fake-bpy-module | a8e87d5a95d075e51133307dfb55418b94342f4f | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | refs/heads/master | 2020-03-14T16:06:29.132956 | 2018-05-13T01:29:55 | 2018-05-13T01:29:55 | 131,691,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | def active_frame_delete():
pass
def active_frames_delete_all():
pass
def blank_frame_add(all_layers=False):
pass
def brush_add():
pass
def brush_change(brush='DEFAULT'):
pass
def brush_copy():
pass
def brush_move(type='UP'):
pass
def brush_paint(stroke=None, wait_for_input=True... | [
"nutti.metro@gmail.com"
] | nutti.metro@gmail.com |
865bb4af910d46b81921ca322b4c57e628cd2002 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03090/s237766398.py | 50f14196be57d693b8236c07b36df3b98cc29a47 | [] | 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 | 242 | py | n = int(input())
r = []
if n%2==0:
c = 1
else:
c = 0
for i in range(1, n+1):
for j in range(i+1, n+1):
if n-i+c == j:
continue
else:
r.append([i, j])
print(len(r))
for i in r:
print(*i) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3ede17cf28640a8f2cfdd360d9795f722c57aac1 | b5a6f10c886fba6584d2ac7b4a29c69975826dbb | /clients/python/pricemonitor_api_client/models/post_products_identifying_attribute.py | ef5049eb6ea49f61deb5a1e4685741e7a484c5cc | [] | no_license | Patagona/pricemonitor-clients | 8c4f842ca3d4e459c77ac329ad488cb3e4c858bf | cf2d689bf9ed6ddea9501324cada918c3a88b4f8 | refs/heads/master | 2023-08-31T20:12:58.844253 | 2023-08-31T15:26:25 | 2023-08-31T15:26:25 | 279,618,794 | 1 | 1 | null | 2023-07-03T13:55:28 | 2020-07-14T15:09:38 | Python | UTF-8 | Python | false | false | 2,970 | py | # coding: utf-8
"""
Pricemonitor API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.6561
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import ... | [
"jenkins@patagona.de"
] | jenkins@patagona.de |
eba277c7cca30be0476c68b9ff54db733031052b | 26a5dbfbe98fdffd7fde9cfaeb2d466b178c2d58 | /Week8/lyrics/app/views.py | cdf4f4df5edf4fad7dc16a8c5b5f8345780a4b3b | [] | no_license | sseaver/class_notes | 76130ae3f4c5416bd60d48810cf34efd4b760dff | cce376a2eb178a2e42282e9e1785b0cff24fb1ad | refs/heads/master | 2020-04-12T22:39:25.984909 | 2016-11-09T17:31:05 | 2016-11-09T17:31:05 | 68,213,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | from django.shortcuts import render
from django.views.generic import TemplateView
import requests
from bs4 import BeautifulSoup
# Create your views here.
class SongView(TemplateView):
template_name = 'song.html'
def get_context_data(self, song_url):
context = super().get_context_data()
page =... | [
"sseaver321@gmail.com"
] | sseaver321@gmail.com |
611cbbb15f5aa5cd2da8d0bfe0647a1d6e64f2e0 | 7b3711d4c6d7284255ba0270d49d120f984bf7c6 | /problems/582_kill_process.py | a783c8aaa04a8e54dde1feee524913dd12b5fe5c | [] | 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,631 | py | '''
Given n processes, each process has a unique PID (process id) and its PPID (parent process id).
Each process only has one parent process, but may have one or more children processes. This is just like a tree structure. Only one process has PPID that is 0, which means this process has no parent process. All the PID... | [
"yu.logan@gmail.com"
] | yu.logan@gmail.com |
c452d18a91cc453ab6cb79acf13ee3e47c6b115b | e0ccd6780a4815716f58d22062fd69bd8afa633b | /AlGDock/_external_paths.py | b781d2ed2c5b88087b5588b7aaeefd0db79701ac | [
"MIT"
] | permissive | vancentvan/AlGDock | f898c8fedc9c989e737e0b502044ca7fa1e1396a | 014859d1bd861c9f523faadda59cd6aeda1fdf9a | refs/heads/master | 2021-05-05T22:05:20.929564 | 2017-09-03T05:40:36 | 2017-09-03T05:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,576 | py | import os, inspect
dir_external_paths = os.path.dirname(os.path.abspath(\
inspect.getfile(inspect.currentframe())))
### Google drive downloader from
# http://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive
import requests
def download_file_from_google_drive(id, destination):
URL = "h... | [
"daveminh@gmail.com"
] | daveminh@gmail.com |
58d945edccacc998659d68cd51adf61e43aa10cb | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/common/Lib/multiprocessing/forking.py | 37fc9d645b5c7d34a000356fa75c195e54ee3017 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 12,230 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/multiprocessing/forking.py
import os
import sys
import signal
import errno
from multiprocessing import util, process
__all__ = ['Popen',
'assert_spawning',
'exit',
'duplicate',
'close',
'ForkingPickler']
def assert_spawnin... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
44a166776acb9e66e2e0c2697fe4b9044857854e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02404/s223979056.py | 922cf58b2d0e73d6ef5e7ff160675d8396779da1 | [] | 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 | 228 | py | import math
H, W = map(int, raw_input().split())
while H > 0 or W > 0 :
print "#" * W
for i in xrange(H-2) :
print "#" + "." * (W-2) + "#"
print "#" * W
print
H, W = map(int, raw_input().split()) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a1ca52a47a87bf416856585f298b35056a62d7c4 | c117f90b93805d88a91943a9b0525fefb5d48778 | /10 后台评论管理/app/libs/helpers.py | c4fe66df641f6b6e595ac45913962f046835ef9a | [] | no_license | redsnowc/BlogByFlask | 55aa4b7843d1ba09e9f725f1009ea94aaec98215 | 25bec0d9967be3da695f3d9f8d5792fe9bee404c | refs/heads/master | 2022-10-04T12:49:18.852399 | 2020-07-04T09:32:13 | 2020-07-04T09:32:13 | 223,352,898 | 13 | 4 | null | 2022-01-21T20:15:27 | 2019-11-22T07:59:01 | JavaScript | UTF-8 | Python | false | false | 4,112 | py | import json
from urllib.parse import urlparse, urljoin
from flask_wtf import FlaskForm
from flask import current_app, request, redirect, url_for
from werkzeug import Response
from werkzeug.datastructures import ImmutableMultiDict
from typing import Union
def get_form_error_items(form: 'FlaskForm') -> tuple:
"""
... | [
"nuanyang.44@gmail.com"
] | nuanyang.44@gmail.com |
2064cf30c73a0ff6292a3a29b633a5eb2347c79c | ab9db05162f0a477cae6d2e93ad18ef433983739 | /usloviya/problem3.py | 7d5e5c29f1e7c5334cd5e349c2897172cce18a12 | [] | no_license | Nurzatnur/rabota2 | 271073c36e9081fd440065f168a21804696d12e1 | 96d2d6e3363e2ca6affa87fbca2b5e825fe9283d | refs/heads/master | 2023-03-08T08:37:22.918927 | 2021-02-22T12:35:06 | 2021-02-22T12:35:06 | 340,947,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | a=79
if a>0 and a<21:
print ("Число ", a, "находится в разрешенном диапозоне")
elif a>79 and a<100:
print ("Число ", a, "находится в разрешенном диапозоне")
else:
print ("Число ", a, "находится в запрещенном диапозоне") | [
"nurzatnur25@gmail.com"
] | nurzatnur25@gmail.com |
c42c2e785314db972b1e033827f81eac5013f809 | 751cf52d62dba7d88387fc5734d6ee3954054fc2 | /opencv/experiments_raw/contour_Backproject/backProjection_masked_kernelTests.py | a68b19d421e07f535f64c6a1de81db0c6fd95ab3 | [
"MIT"
] | permissive | nooralight/lab-computer-vision | 70a4d84a47a14dc8f5e9796ff6ccb59d4451ff27 | 0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9 | refs/heads/master | 2023-03-17T12:45:22.700237 | 2017-07-11T22:17:09 | 2017-07-11T22:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,825 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
xi, yi, xf, yf = 0, 0, 0, 0
selecting = False
foo = False
# bar = False
def regionSelect(event, x, y, flags, param):
# print(selecting)
global xi, yi, xf, yf, selecting, foo, roiHist #, bar
if event == cv2.EVENT_LBUTTONDOWN:
plt.clo... | [
"danbudanov@gmail.com"
] | danbudanov@gmail.com |
05fb088ad6ee374d1298eb08eef7a3eb4bf80b8f | 70fa01445bd6fa956acf86d28e72c80a0c4b0c31 | /websauna/system/devop/alembic.py | fe5144977128f4302e7aa13d817eb06a8967e2ff | [
"MIT",
"Apache-2.0"
] | permissive | FaithfulAudio/websauna | e31489d7d1163f64d608e6338710eedbea5b5134 | 66132ed032786c513161eb58eace3d0a8193cbe5 | refs/heads/master | 2021-04-28T13:10:47.100578 | 2018-05-19T14:18:40 | 2018-05-19T14:18:40 | 122,096,557 | 0 | 0 | null | 2018-05-19T14:18:41 | 2018-02-19T17:25:45 | Python | UTF-8 | Python | false | false | 8,122 | py | """Support for Alembic SQL migrations.
1. Each Python package needs to get its own alembic_history table
2. In "objects to consider" function we resolve the object's package and compare whether it is the package for which we try to create migrations for
3. All migration scripts live inside the package, in alembic/ f... | [
"mikko@opensourcehacker.com"
] | mikko@opensourcehacker.com |
70b985594a95d54c47fe21a564a0ceac8ab378b0 | 35e79b51f691b7737db254ba1d907b2fd2d731ef | /yukicoder/1433.py | 3a32bb3298fe9e981f9119ae31caf6167ea5a8e8 | [] | no_license | rodea0952/competitive-programming | 00260062d00f56a011f146cbdb9ef8356e6b69e4 | 9d7089307c8f61ea1274a9f51d6ea00d67b80482 | refs/heads/master | 2022-07-01T02:25:46.897613 | 2022-06-04T08:44:42 | 2022-06-04T08:44:42 | 202,485,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | n = int(input())
s = input()
a = list(map(int, input().split()))
dp1 = [0 for i in range(n + 1)]
dp2 = [0 for i in range(n + 1)]
for i in range(n):
if s[i] == 'R':
dp1[i + 1] = max(dp1[i + 1], dp1[i] - a[i])
dp2[i + 1] = max(dp2[i + 1], dp2[i] + a[i])
else:
dp1[i + 1] = max(dp1[i + 1], ... | [
"dragondoor0912@yahoo.co.jp"
] | dragondoor0912@yahoo.co.jp |
b94b3f924cc3da07c460f355a06ad7b2c017852a | 8db1b9528ace3ce142ea52da1017eb6359f46967 | /py1901/ML03c.py | 4c7d078358fb4f3fa4e3380804d73aa35a43ad5f | [] | no_license | ul8ksgdmy/myPythonlearning | 01fbd49d227e2b3095250e7ee40768fa3179f26e | 2ad0d3525cd505edba3fd37e21f601a32872259b | refs/heads/master | 2020-03-31T14:33:13.448891 | 2019-01-09T18:13:26 | 2019-01-09T18:13:26 | 152,299,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn import datasets
import mglearn
import seaborn as sns
#로지스틱 회귀
#주로 분류를 하기위한 알고리즘
#주로 예, 아니오 등의 이진분류에 많이 사용
#의료 통신 데이터 마이닝 분야의 회귀, 분류를 위한 예측 모델로 활용.
from sklearn.linear_model import LogisticRegression
from sklea... | [
"clickmy7@gmail.com"
] | clickmy7@gmail.com |
089b1cb27f0cf52a416e8d7b0b1942127a9e97ea | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/1254.py | 3fc669d44e83b8e53d7823ac68f561106c212c70 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 449 | py | import sys
def word_count(word):
wordlist = word.split()
worddict = {}
for i in wordlist:
if not(worddict.has_key(i)):
worddict.update({i:1})
else:
value = worddict[i]
worddict.update({i: (value +1)})
return worddict
if __name__ == ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
edd868f4387c02a2e5b6e1a88972b965bbcb11c6 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_version.py | 8017662b4838d05fda8416ffd80f746749bfce54 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 172 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
VERSION = "3.3.0b1"
| [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
6763dd2ef4c70f17a2d1d05a5a09cb8413719731 | 6e8581602f34e5d8fd4c927193cbe0b52b8b8302 | /religare_preauth.py | cad8f3355d3cb3585d385bf24e6d86a74286b635 | [] | no_license | akshaynaik797/index | 5a9563fae6d6f91cea53ad16196c6f4b51a70e86 | 829f03adf27f53c132551cc78b08413fa980471a | refs/heads/master | 2023-05-31T04:07:58.267651 | 2021-06-22T06:32:52 | 2021-06-22T06:32:52 | 309,669,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | import datetime
import sys
import pdftotext
from custom_app import set_flag_row
from custom_datadict import make_datadict
from custom_parallel import write
from make_log import log_exceptions
set_flag_row(sys.argv[9], 'E', sys.argv[7])
start = datetime.datetime.now()
with open(sys.argv[1], "rb") as f:
... | [
"akshaynaik797@gmail.com"
] | akshaynaik797@gmail.com |
b13cb735a2055766611b9e07740c14aa0cddbf19 | 861781589f3f674fdcc34dc2b5f98ea06006c648 | /adminapp/urls.py | 031d7d501982225500356d1403833267fdd78ac0 | [] | no_license | FedorPolyakov/geekshope_on_django | 7dd5133d85ffea910113a1c51684c34d8ca56229 | 2a432e2e581f64b2208447369eaa5f58accd000b | refs/heads/master | 2023-01-19T14:09:47.810521 | 2020-11-17T20:52:14 | 2020-11-17T20:52:14 | 296,665,989 | 0 | 0 | null | 2020-11-19T15:59:23 | 2020-09-18T15:53:43 | Python | UTF-8 | Python | false | false | 3,181 | py | from django.urls import path
import adminapp.views as adminapp
app_name = 'adminapp'
urlpatterns = [
#users#
path('users/create/', adminapp.UserCreateView.as_view(), name='user_create'),
path('users/read/', adminapp.UserListView.as_view(), name='users'),
path('users/update/<int:pk>/', adminapp.UserUpd... | [
"pismo.na.pochtu@gmail.com"
] | pismo.na.pochtu@gmail.com |
e29c70157a0913a01a0658d47dd7cf52de33ba41 | e245035c7bff120d5f7a8a26412f14d11a77a46f | /huggingface_transformer_src/src/transformers/pipelines/text_generation.py | 1f98d374795cd8b1b28f38eea9eaafab54c469cd | [
"Apache-2.0"
] | permissive | fuxuelinwudi/R-Drop | 82f27e623f319065b75b9e2b7ebe285c2aa0582b | 88bba6386f2edf7aa45ae6795103dbf4be085e99 | refs/heads/main | 2023-06-06T14:28:55.773778 | 2021-06-27T05:39:27 | 2021-06-27T05:39:27 | 381,313,887 | 2 | 0 | MIT | 2021-06-29T09:43:58 | 2021-06-29T09:43:58 | null | UTF-8 | Python | false | false | 8,974 | py | from ..file_utils import add_end_docstrings
from .base import PIPELINE_INIT_ARGS, Pipeline
@add_end_docstrings(PIPELINE_INIT_ARGS)
class TextGenerationPipeline(Pipeline):
"""
Language generation pipeline using any :obj:`ModelWithLMHead`. This pipeline predicts the words that will follow a
specified text p... | [
"dropreg@163.com"
] | dropreg@163.com |
ab0446c70b25638044c1a62b181818c3fc953d18 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/76.py | d0b722157f3fc727e5f4f555a3f30fd6e1fd1fa2 | [] | 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 | 491 | py | #!/usr/bin/env python
import sys
ls = sys.stdin.readlines()[1:]
C = 1
for l in ls:
a, b = l.split(" ")
a = [c for c in a]
k = int(b)
n = 0
def flip(i):
for j in range(i, i + k):
a[j] = '-' if a[j] == '+' else '+'
for i in range(len(a) - k + 1):
if a[i] == '-':... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
15943ff4dd962190f0c361ddb8dbe547ea29624e | 5bbda9dd673303e35a0c783e3ac456dcb3e1545b | /tests/scripts/plot_feature_track.py | 7ab1272d4b120f10a2f8176228604287b4ad4efc | [
"BSD-2-Clause"
] | permissive | NemoLeiYANG/generalvisodom | c32d2b8dd68db8e52da357d5a3acfd0077093e8d | c9eb10539ba1442be9c296b084c152a511cec690 | refs/heads/master | 2020-03-17T00:29:34.346800 | 2018-05-09T04:14:27 | 2018-05-09T04:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import sys
import numpy as np
import matplotlib.pylab as plt
if __name__ == "__main__":
data_file = sys.argv[1]
image_width = int(sys.argv[2])
image_height = int(sys.argv[3])
data = np.loadtxt(open(data_file, "r"), delimiter=",")
track = np.array([data[:, 0], data[:, 1]]).T
plt.title("Featur... | [
"chutsu@gmail.com"
] | chutsu@gmail.com |
f6aa0fcc15311dffccc3e0d284ca8a01b08b18a6 | 781029dcc468a7d1467a17727870d526da1df985 | /django/06_django_model_relationship/articles/urls.py | a4fbd203afbd5d8872657ca3bd5a57789ea8a237 | [] | no_license | Huijiny/TIL | 5f0edec5ad187029e04ed2d69e85ae4d278e048d | d1a974b3cacfb45b2718f87d5c262a23986c6574 | refs/heads/master | 2023-09-03T15:28:11.744287 | 2021-10-21T12:38:10 | 2021-10-21T12:38:10 | 335,220,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | from django.urls import path
from . import views
app_name = 'articles'
urlpatterns = [
path('', views.index, name='index'),
path('create/', views.create, name='create'),
path('<int:pk>/', views.detail, name='detail'),
path('<int:pk>/delete/', views.delete, name='delete'),
path('<int:pk>/update/', ... | [
"jiin20803@gmail.com"
] | jiin20803@gmail.com |
bbdf1f4618c3781ae013ae1e226c1784852f6309 | 680371c067ae3bbab958d6224b405630eaef8e31 | /python_BTL_BitTorrent-5.3-GPL/BTL/rand_tools.py | 583b359634c2c2ad3cdd8f2fa01e60bd30e64e46 | [
"MIT"
] | permissive | galaxy001/libtorrent | 18ede4a2e1c610089a082683ec4b33da0625837a | 6a17e8ebfb668a8965fbf8a53083ec7bd4339847 | refs/heads/master | 2021-01-10T11:13:44.730732 | 2017-08-26T19:58:08 | 2017-08-26T19:58:08 | 48,836,473 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # 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 hope that it will be useful,
# bu... | [
"galaxy001@gmail.com"
] | galaxy001@gmail.com |
01677e1026255396c5f3df9ab0e121f1487bcfc5 | 1a6aa6cf94fa3f5f35c598c52867a3d0df7c56ee | /blog/views.py | 175a794a2d7cac9c09f092ff2e0976619ac7e5bc | [] | no_license | adam-weiler/GA-Django-Blog-part-5 | 026ccb98988f6b3c7ffac0947fce8899d21eb5a0 | 8662b743e42623df3ae61d2af888a3828da2e8be | refs/heads/master | 2020-06-29T11:47:32.304311 | 2019-08-05T16:07:32 | 2019-08-05T16:07:32 | 200,525,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render, redirect
from django.urls import reverse
from blog.models import Article, Topic, Comment
from blog.forms import ArticleForm, CommentForm
def root(request): # Redirects to http://localhost:8000/articles
return redirect(... | [
"adam.weiler@yahoo.ca"
] | adam.weiler@yahoo.ca |
b97a1084b67833fb4f41eec5068f6b4178662b22 | 54b8fa244ff0dae2018efedcb81e1bb03376e5e2 | /test/functional/p2p_feefilter.py | 97ece46a3b4a896f4bce090ed9d34485d0aca407 | [
"MIT"
] | permissive | afghany/castletmp | e15677a88f9a1878486b6becf93d26c0ee9dbeaf | 9d0daed2a6abaf7d93f9308f5c602db6eeb42c8b | refs/heads/master | 2022-11-27T14:58:47.802781 | 2020-08-08T21:26:12 | 2020-08-08T21:26:12 | 284,464,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test processing of feefilter messages."""
from test_framework.mininode import *
from test_framework.te... | [
"shagolo@gmail.com"
] | shagolo@gmail.com |
7ec4de36e3acedb5d8ede3719e2ae467bfde7b9d | 8aa48f0a1832367efa364a8ae91475ae3c3835aa | /exercises/ch07_linked_lists/LinkedQueue.py | 9a87d79607d407e9ca8339b819176091a4dca514 | [] | no_license | rarezhang/data_structures_and_algorithms_in_python | 3317b387e0e50f26b5522f2de7639e50c2ce0531 | f79b08021cebbfe0ff32abcc8e9dd56af32e4aad | refs/heads/master | 2021-01-19T09:13:27.657454 | 2017-03-20T04:52:00 | 2017-03-20T04:52:00 | 73,533,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | from Excep import *
from SinglyLinkedBase import _SinglyLinkedBase
class LinkedQueue(_SinglyLinkedBase):
"""
FIFO (first in first out)
queue implementation using a singly linked list for storage
enqueue elements at the back and dequeue them from the front
"""
# enqueue elements at the back a... | [
"catezhang@qq.com"
] | catezhang@qq.com |
9de546b45414ca977e1b33d43c6892bf7d30253f | cb4be2d145c529192cad597ebf6bba8aed0ec12e | /2014-x64/prefs/1401/gui_02_components.py | 801437d5dd5fd9cc45e4eec8feaf82e3bd0f454f | [] | no_license | mclavan/Work-Maya-Folder | 63e791fdbd6f8ac1f4fda2d46015cd98df38825c | c56dbdb85a7b1a87ef6dd35296c56e0057254617 | refs/heads/master | 2020-05-20T07:21:15.891179 | 2014-10-17T14:28:45 | 2014-10-17T14:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | '''
gui_02_components.py
How to Run:
import gui_02_components
reload(gui_02_components)
gui_02_components.gui()
'''
import pymel.core as pm
def gui():
'''
Interface function.
'''
window_object = pm.window(title='Test Window', width=300, height=300)
# Layout Required
pm.columnLayout()
# GUI Components ... | [
"mclavan@gmail.com"
] | mclavan@gmail.com |
1098dca9c48ce566f7488c1e9d7a97a330cb2e72 | ced29293c396e43cb77d13e085976d81bbedd1e2 | /Dia21-URI/1021_notas_e_moedas.py | 2a0788dda99a069127ae1405e0a818037d80d9f3 | [] | no_license | luandadantas/100diasdecodigo | 72728da8a2b04b5615590355d1d9ddb1a2257b92 | d076de22bf56f86b0b239d364201aa873a28fc68 | refs/heads/master | 2022-10-23T19:14:44.872283 | 2019-12-13T02:43:16 | 2019-12-13T02:43:16 | 207,652,679 | 0 | 0 | null | 2022-10-06T07:08:02 | 2019-09-10T20:04:45 | Python | UTF-8 | Python | false | false | 1,366 | py | N = float(input())
print("NOTAS:")
notas_100 = int(N // 100)
print(str(notas_100) + " nota(s) de R$ 100.00")
resto_100 = N % 100
notas_50 = int(resto_100 // 50)
print(str(notas_50) + " nota(s) de R$ 50.00")
resto_50 = resto_100 % 50
notas_20 = int(resto_50 // 20)
print(str(notas_20) + " nota(s) de R$ 20.00")
resto_... | [
"ludanttas@gmail.com"
] | ludanttas@gmail.com |
731c5fcf804d51a2ce991cde2c6ae625c85fa21f | 20ff9e0a5185d32fe089ac585d95a33e0bce8b8a | /test/functional/rpc_decodescript.py | bb75f1a05b834fd93f3fc82873f39c6dc0fb1050 | [
"MIT"
] | permissive | kimora-nakamoto-organization/Kimoracoin | 2ac445f421aaee3c3f8c01ddb4e4eb54c4d5cdb3 | dfea2e201ce484166a482b124e8e487086ba62d6 | refs/heads/master | 2022-02-23T21:10:12.899089 | 2019-08-09T06:36:34 | 2019-08-09T06:36:34 | 198,069,262 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,034 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin Core developers
# Copyright (c) 2017 The Raven Core developers
# Copyright (c) 2018 The Kimora Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test decoding... | [
"rishabhworking@gmail.com"
] | rishabhworking@gmail.com |
b5301797029b247b2872036a732f99c1a87377ae | 8d9063d0138fc73b2ea3770f227c21d000a14ee0 | /urls/migrations/0002_auto_20160102_2111.py | 702bc44dcd2d36eb5caa8cd81c75b04cc55ba521 | [] | no_license | jeffthemaximum/django-and-apis | 60640a5c16a21e1759cd15eb570869d34b8442b1 | c23466d0e38508de7b19a26799c6a17a171fe679 | refs/heads/master | 2021-01-10T09:02:36.345903 | 2016-01-18T22:07:39 | 2016-01-18T22:07:39 | 46,568,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('urls', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='url',
name='long_url',
... | [
"frey.maxim@gmail.com"
] | frey.maxim@gmail.com |
a940b79e9af8e58a8c005e7e087b8996c6d39b25 | d3f03111c2df2b072ab99954d72963d37bb6aadc | /test/models/Teacup.py | f661792e99f2f210eca435d27a3ee1434393a082 | [] | no_license | ConnectedSystems/EMAworkbench | ce7fd65148d6fa1de78f816a6b2a42768dd76627 | bc0edf1bbe4df608e5d7065e2d3df6c3db249a36 | refs/heads/master | 2021-04-12T08:03:20.740951 | 2017-06-16T06:57:49 | 2017-06-16T06:57:49 | 94,514,673 | 0 | 0 | null | 2017-06-16T06:57:50 | 2017-06-16T06:54:30 | Jupyter Notebook | UTF-8 | Python | false | false | 2,459 | py |
"""
Python model /Users/jhkwakkel/EMAworkbench/test/test_connectors/../models/Teacup.py
Translated using PySD version 0.7.2
"""
from __future__ import division
import numpy as np
from pysd import utils
import xarray as xr
from pysd.functions import cache
from pysd import functions
_subscript_dict = {}
_namespace = ... | [
"j.h.kwakkel@tudelft.nl"
] | j.h.kwakkel@tudelft.nl |
3b52c4bf54aaf82f5b4110ba983be3fd5a931e4d | 9645bdfbb15742e0d94e3327f94471663f32061a | /Python/1053 - Previous Permutation With One Swap/1053_previous-permutation-with-one-swap.py | 8b8bb2541f6023fdd7960047eb16db60ba9497d8 | [] | no_license | aptend/leetcode-rua | f81c080b2260adb2da677612e5c437eda256781d | 80e44f4e9d3a5b592fdebe0bf16d1df54e99991e | refs/heads/master | 2023-06-22T00:40:05.533424 | 2021-03-17T13:51:28 | 2021-03-17T13:51:28 | 186,434,133 | 2 | 0 | null | 2023-06-21T22:12:51 | 2019-05-13T14:17:27 | HTML | UTF-8 | Python | false | false | 879 | py | from leezy import solution, Solution
class Q1053(Solution):
@solution
def prevPermOpt1(self, A):
# 244ms 94.13%
N = len(A)
i = N-2
while i >= 0 and A[i] <= A[i+1]:
i -= 1
if i == -1:
return A
max_ = A[i+1]
max_idx = i+1
... | [
"crescentwhale@hotmail.com"
] | crescentwhale@hotmail.com |
5326b936d3547ad79bd1f342e8f0abe1f589cecf | d73409535734a788af83a9b2b2e32dd1b979d5d2 | /proxySTAR_V3/certbot/venv/lib/python2.7/site-packages/pylint/test/functional/name_styles.py | ce0446df57bf0019057980ff6d7f342fb60db68b | [
"Apache-2.0",
"MIT"
] | permissive | mami-project/lurk | adff1fb86cb3e478fe1ded4cbafa6a1e0b93bfdd | 98c293251e9b1e9c9a4b02789486c5ddaf46ba3c | refs/heads/master | 2022-11-02T07:28:22.708152 | 2019-08-24T19:28:58 | 2019-08-24T19:28:58 | 88,050,138 | 2 | 2 | NOASSERTION | 2022-10-22T15:46:11 | 2017-04-12T12:38:33 | Python | UTF-8 | Python | false | false | 3,216 | py | """Test for the invalid-name warning."""
# pylint: disable=print-statement, no-absolute-import
import abc
import collections
GOOD_CONST_NAME = ''
bad_const_name = 0 # [invalid-name]
def BADFUNCTION_name(): # [invalid-name]
"""Bad function name."""
BAD_LOCAL_VAR = 1 # [invalid-name]
print(B... | [
"diego.deaguilarcanellas@telefonica.com"
] | diego.deaguilarcanellas@telefonica.com |
b07fb4e1e447d7920b2e14fa49277b07dde0dcce | 2990b0841b63f300a722107933c01c7237a7976b | /all_xuef/2018.7projects/interpreter/cs61a/scheme/scheme.py | db985525baabf736a23365f4a268c638b371c303 | [] | no_license | xuefengCrown/Files_01_xuef | 8ede04751689e0495e3691fc5d8682da4d382b4d | 677329b0189149cb07e7ba934612ad2b3e38ae35 | refs/heads/master | 2021-05-15T04:34:49.936001 | 2019-01-23T11:50:54 | 2019-01-23T11:50:54 | 118,802,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,489 | py | """A Scheme interpreter and its read-eval-print loop."""
from scheme_builtins import *
from scheme_reader import *
from ucb import main, trace
##############
# Eval/Apply #
##############
# It currently looks up names in the current environment, returns self-evaluating
# expressions (like numbers) and evaluates spec... | [
"643472092@qq.com"
] | 643472092@qq.com |
1a975e288804ded34c00567d2ea70d1ae30ab334 | 83bc96df34fc2311a33a68e8e79af802d84370b9 | /vmraid/model/workflow.py | fee0f9ee72fb483aab2c389539e804e655ad48e2 | [
"MIT"
] | permissive | sowrisurya/vmraid | 001072130ac6be5a3ef5a84523d8949d891e6954 | f833e00978019dad87af80b41279c0146c063ed5 | refs/heads/main | 2023-05-05T13:52:45.386039 | 2021-05-31T10:23:56 | 2021-05-31T10:23:56 | 372,466,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,222 | py | # Copyright (c) 2015, VMRaid Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import vmraid
from vmraid.utils import cint
from vmraid import _
from six import string_types
import json
class WorkflowStateError(vmraid.ValidationError): pass
class WorkflowTra... | [
"sowrisurya@outlook.com"
] | sowrisurya@outlook.com |
5994615d774bc4e716ba7a9ea82e54bc8d067252 | fe6f6d11dde2a3205ae9758c7d4eb1f824b84102 | /venv/lib/python2.7/site-packages/IPython/kernel/connect.py | 0c848110ac022cba37a267e3f917d440a3b6aa85 | [
"MIT"
] | permissive | mutaihillary/mycalculator | ebf12a5ac90cb97c268b05606c675d64e7ccf8a6 | 55685dd7c968861f18ae0701129f5af2bc682d67 | refs/heads/master | 2023-01-10T14:56:11.780045 | 2016-09-20T12:30:21 | 2016-09-20T12:30:21 | 68,580,251 | 0 | 0 | MIT | 2022-12-26T20:15:21 | 2016-09-19T07:27:48 | Python | UTF-8 | Python | false | false | 20,122 | py | """Utilities for connecting to kernels
The :class:`ConnectionFileMixin` class in this module encapsulates the logic
related to writing and reading connections files.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
#----------------------------------------------... | [
"mutaihillary@yahoo.com"
] | mutaihillary@yahoo.com |
7c59ee70a43c0d4eccbd8fcd34b47ea4a74646e7 | 066286643b062e681e3f35c83ac8fa9187a402db | /Section4/py_project/Lib/site-packages/django/core/serializers/base.py | a9c6dbf1dcb19c32f55cf59557e4bd588f6ba5ae | [
"MIT"
] | permissive | PacktPublishing/Real-World-Projects-in-Python-3.x | fd4664ac70e67a922eab422a6c339d65ab1aee90 | ac1cddb400e4e8b9bad3eea0eac3c33f06867d7a | refs/heads/master | 2023-02-13T10:21:47.780189 | 2023-01-30T08:40:38 | 2023-01-30T08:40:38 | 183,572,451 | 18 | 9 | MIT | 2022-12-13T02:26:39 | 2019-04-26T06:40:50 | Python | UTF-8 | Python | false | false | 11,610 | py | """
Module for abstract serializer/unserializer base classes.
"""
from io import StringIO
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
DEFER_FIELD = object()
class SerializerDoesNotExist(KeyError):
"""The requested serializer was not found."""
pass
class Serialization... | [
"35484449+cleonb-packt@users.noreply.github.com"
] | 35484449+cleonb-packt@users.noreply.github.com |
0d06fe6219785502563deb4196d9dd756a589ec6 | a6982e37fdc5359fa89b9f0587f75ff4889a849d | /venv/Lib/site-packages/plotly/figure_factory/_bullet.py | c23eaeb0e0b4bd7cc68e395f5c762590dfce7021 | [
"Apache-2.0"
] | permissive | 1pani/fund-rank-dashboard | 5d7ca6107013d5f82e7c54b3199d5506f34175c3 | 95c17bbee6e09ae4eb5738c519d3b6c651e8257c | refs/heads/master | 2022-12-21T19:36:05.446703 | 2019-10-19T09:45:30 | 2019-10-19T09:45:30 | 137,461,621 | 4 | 1 | Apache-2.0 | 2022-12-15T09:19:53 | 2018-06-15T08:26:46 | Python | UTF-8 | Python | false | false | 13,097 | py | from __future__ import absolute_import
import collections
import math
from plotly import colors, exceptions, optional_imports
from plotly.figure_factory import utils
import plotly
import plotly.graph_objs as go
pd = optional_imports.get_module('pandas')
def is_sequence(obj):
return (isinstance(obj, collection... | [
"abhilashpani651@gmail.com"
] | abhilashpani651@gmail.com |
7e20e0864cd5c1dd42491dabf7cdaccafe18eec9 | 9b4a666b805a2bdca0b55e7b4b0183668454b251 | /home/models.py | 6684dc62e977e65ea99e3a769be1e480d149c5cb | [] | no_license | mhkmcp/divisima-django-ecommerce | bbf674893bcda89e8a274ca7e62ba95b3ba12615 | 783ead7521afa00a60423964b8422062269a040b | refs/heads/master | 2020-12-04T08:56:23.693362 | 2020-01-04T03:33:31 | 2020-01-04T03:33:31 | 231,703,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | from django.db import models
class Category(models.Model):
name = models.CharField(max_length=50)
is_active = models.BooleanField(default=True)
def __str__(self):
return self.pk + ' - ' + self.name
# class Product(models.Model):
# category = models.OneToOneRel(Category, on_delete=models.CAS... | [
"mhkmcp@yahoo.com"
] | mhkmcp@yahoo.com |
9b224e6500661d8085596678dcc5ada20578edba | 09301c71638abf45230192e62503f79a52e0bd80 | /besco_erp/besco_account/general_account_asset/wizard/account_asset_change_duration.py | e4911793cdf4b37611bc3f68dd11109633c5dc07 | [] | no_license | westlyou/NEDCOFFEE | 24ef8c46f74a129059622f126401366497ba72a6 | 4079ab7312428c0eb12015e543605eac0bd3976f | refs/heads/master | 2020-05-27T06:01:15.188827 | 2017-11-14T15:35:22 | 2017-11-14T15:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | # -*- coding: utf-8 -*-
from openerp import api, fields, models
from openerp.osv.orm import setup_modifiers
from openerp.tools.translate import _
import time
from openerp.exceptions import UserError, ValidationError
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT as DF
DATETIME_FORMAT = "%Y-%m-%d"
DATE_FORMAT = "... | [
"son.huynh@nedcoffee.vn"
] | son.huynh@nedcoffee.vn |
5a2f187d9e7cfa2d25f18216bdafce06ddf88e21 | ce2617bfb141c931dba3e1a1a5cc2331cece1fba | /notejam/python2.7/lib/python2.7/site-packages/ansible/modules/cloud/amazon/lambda.py | b98c2131f9bf93be30d9784482bc9f0829d089de | [] | no_license | fercunha/notejam-django | 11e6f343a6e886d7e491ef6f1320d2bacaa625cb | 6e51763b530d7b4c5a0cfc9abb47caa797baaadc | refs/heads/master | 2020-05-04T19:54:58.561206 | 2019-04-04T03:19:09 | 2019-04-04T03:19:09 | 178,685,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,584 | py | #!/usr/bin/python
# 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, or
# (at your option) any later version.
#
# Ansible is distributed... | [
"fercunha42@gmail.com"
] | fercunha42@gmail.com |
a7be4e57506806a65d4b74cd632ceb79bdddedad | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_10302.py | 7d556811c8cbffaf0c3af16f6491860a5e7a2d64 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Calling Java from Python: "Can't find or load class" Error
subprocess.check_output(["java", "-classpath", "/Users/feralvam/Programas/semanticvectors-3.4/semanticvectors-3.4.jar:/Users/feralvam/Programas/lucene-3.5.0/lucene-core-3.5.0.jar:/Users/feralvam/Programas/lucene-3.5.0/contrib/demo/lucene-demo-3.5.0.jar:", "pi... | [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
967e887a6e62014cee1b4e165fa5bf67056cb7bd | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/detection/YOLOX_ID2833_for_PyTorch/mmdet/models/roi_heads/mask_scoring_roi_head.py | e3647503d835ff2dc7a65bf3c8400bf9b2a229d2 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 5,877 | py |
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
73a57590714b16327a2e6a6dea261aaea18c2406 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/minigame/DistributedPotionCraftingTable.py | 3f60a7eebf43d7da0353da732f3501cbd10a935f | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,319 | py | from direct.fsm.StatePush import FunctionCall, StateVar
from direct.interval.IntervalGlobal import *
from pandac.PandaModules import *
from pirates.uberdog.UberDogGlobals import InventoryType
from pirates.distributed.DistributedInteractive import DistributedInteractive
from pirates.piratesbase import PLocalizer
from pi... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
6f303d6a2d7da85ecbe5d04e6c04ebcc22118aed | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/testPytestFixtureResolving/testReservedFixtures/test_tmpdir_fixture.py | ad73354e5b55c2765388bb76af80f8646b74148c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 49 | py | import pytest
def test_(tmp<caret>dir):
pass | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
757f76ed6aa17ffef80a33b09e4dee1dba83e015 | 56d921f97a8ad43c52c5d66be517a4f37ec8a64f | /007.py | 65d1bcf81516c15dd19cf3591b0a4a36ce6df439 | [] | no_license | Oscer2016/python | 5ad27360bb6a47ec562696392906ba0f1daa8f99 | ff776e95327db4163a34b780ace21e561675ce62 | refs/heads/master | 2021-06-09T23:37:13.156650 | 2017-01-17T12:23:09 | 2017-01-17T12:23:09 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 578 | py | #Exp1_4.py
#encoding utf-8
a=[[0,0,0],[0,0,0]] #定义一个列表
s=input('请输入第1个方程的3个数:')
a[0][0],a[0][1],a[0][2]=s
s=input('请输入第2个方程的3个数:')
a[1][0],a[1][1],a[1][2]=s
#第1行乘以-a[1][0]/a[0][0]加到第2行
d=-a[1][0]/a[0][0]
a[1][0]=a[1][0]+d*a[0][0]
a[1][1]=a[1][1]+d*a[0][1]
a[1][2]=a[1][2]+d*a[0][2]
#第2行乘以-a[0][1]/a[1][1]... | [
"hepansos@126.com"
] | hepansos@126.com |
d0f54b89237df182be3dfb07fb85dff71ce5a2da | 246e9200a834261eebcf1aaa54da5080981a24ea | /project-euler/26-50/number-spiral-diagonals.py | e60e525fb0b66f8af643c70e285d2f16e675d526 | [] | no_license | kalsotra2001/practice | db435514b7b57ce549b96a8baf64fad8f579da18 | bbc8a458718ad875ce5b7caa0e56afe94ae6fa68 | refs/heads/master | 2021-12-15T20:48:21.186658 | 2017-09-07T23:01:56 | 2017-09-07T23:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | def diagonal_sum(n):
count = 1
last = 1
total = last
while count < 2 * n - 1:
i = int(count * 0.5 + 1.5)
for p in range(4):
last += i
total += last
count += 1
return total
print diagonal_sum(1001) | [
"jacquelineluo95@gmail.com"
] | jacquelineluo95@gmail.com |
cebfeb4c34914afd8e1a82cfed25c177e4b69c55 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /5GW5Kb2RpGwhHax2W_20.py | 764bc6816c1bf660278f8a1f9f591df297a5a525 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py |
def spiral_transposition(lst):
rows, cols = (-1,len(lst)), (-1,len(lst[0]))
r, c = 0, 0
track, res = set(), []
direct = 1
while len(res) < rows[1]*cols[1]:
rn, cn = r, c
if (r, c) not in track:
res.append(lst[r][c])
track.add((r,c))
if direct == 1: cn += 1
elif direct == 2: r... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
eb07435f6ea04c8eb6d238d39bd97534003f2d45 | 008ccdd31da9058296cabba29950496bf3d83ff2 | /ps5_recursion.py | 91e9d5df3021644565781b3b238f9305f9842fb6 | [
"Giftware"
] | permissive | xrigaru/mitx-6.00x | bc6fb815fee8ecda62766d88c901b1bf1b1be43e | b5d07e74740af1d95eb4b4ac4d23fe268a04a2c9 | refs/heads/master | 2020-05-29T12:20:17.434565 | 2013-01-15T17:59:37 | 2013-01-15T17:59:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | # 6.00x Problem Set 5
#
# Part 2 - RECURSION
#
# Problem 3: Recursive String Reversal
#
def reverseString(aStr):
"""
Given a string, recursively returns a reversed copy of the string.
For example, if the string is 'abc', the function returns 'cba'.
The only string operations you are allowed to use are ... | [
"ggundersen@gmail.com"
] | ggundersen@gmail.com |
6d70bdf824552299a08ef8bae7adcd0988ae2808 | 4b3ced9c0dd2d4a8f9bf620449342e82c47b7a1a | /xicam/plugins/MOTD.py | d0483327861a02fe0eee744d8b8e48496c90902f | [
"BSD-3-Clause-LBNL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | arbrefleur/Xi-cam | 64b2d28b0701527b53ac4c9b4d96724864b170f8 | f6388c7c44b202403194a04ca2b4d8bcca41cc74 | refs/heads/master | 2020-09-08T21:38:15.076431 | 2019-04-05T18:42:38 | 2019-04-05T18:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | import base
from PySide import QtGui
import os
from xicam import xglobals
import widgets
class MOTDPlugin(base.plugin):
name = 'MOTD'
hidden = True
def __init__(self, *args, **kwargs):
self.rightwidget = None
try:
from PySide import QtWebKit
except ImportError:
... | [
"ronpandolfi@gmail.com"
] | ronpandolfi@gmail.com |
1dd2e812b4d2ed9877c2379062bcbf35b125f342 | 89670ba42a5087a3965cadb678a9f87b6d8286cf | /huati/migrations/0004_auto_20171110_1059.py | f6afe9c791ee3478dac5a48f78358a45fedcc980 | [] | no_license | qimengmeng/django_lei_zhihu | f56dd08229bf66e183f3f5b82145d5e183a4d161 | 296a7ee1435efcb2492e0ca078a1d9b5c153e41e | refs/heads/master | 2020-04-08T15:11:35.696655 | 2018-01-06T11:43:08 | 2018-01-06T11:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-10 02:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('huati', '0003_commenthuati_huati'),
]
operations = [
migratio... | [
"leileili126@163.com"
] | leileili126@163.com |
84aecd8121ea6f867c33de38f411307bc780f1b8 | 5ac15873df4df7aeef3908ea7aebe0805cca0181 | /setup.py | f9bf7bde7956a6d964b643c431960afb1a31b045 | [
"BSD-3-Clause"
] | permissive | jstacoder/flask-manage | 0a942cef5a32b2966dc73cf14c5a58682b0af0f2 | 76f1802c4b7042c482dcdcc884fbc0e4fd114b5e | refs/heads/master | 2020-04-19T18:18:11.872007 | 2014-07-02T15:24:38 | 2014-07-02T15:24:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | from setuptools import setup
config = {
'name':'flask_mrbob',
'version':'1.0.0',
#'install_requires':['mr.bob','flask','sqlalchemy','flask-sqlalchemy'],
}
setup(**config)
| [
"kyle@level2designs.com"
] | kyle@level2designs.com |
c7541e599ab14d444381649166b9fb3a619a4ce3 | 250b997d715c168315a927e28124cf24c77048c0 | /python3基础/10.Python修炼第十层/2 线程相关/3 线程互斥锁(Lock).py | 9735940c2ba1bbc997871579a1298b58fec55578 | [] | no_license | cuitianfeng/Python | c78077e5dcad01ee5fe44c0aa8b61bbc2fa388cf | 9c9f10f13311116ce0bc60ec128f765ff2ca3078 | refs/heads/master | 2023-01-10T23:25:57.158141 | 2020-11-17T15:39:36 | 2020-11-17T15:39:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from threading import Thread,Lock
import time
n=50
def task():
global n
lock.acquire() # 加锁,确定加锁位置。保证每次都能成功减1。其他线程等着抢锁。
temp=n
time.sleep(0.1)
n=temp-1
lock.release() # 解锁
if __name__ == '__main__':
lock=Lock() # 创建锁,子线程
t_l=[]
for i in range(50):
t=Thr... | [
"zhang.hongyang@mydreamplus.com"
] | zhang.hongyang@mydreamplus.com |
cfa9c23dee9752dc36886d22f79f373646fc61cc | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res_bw/scripts/common/lib/ctypes/test/__init__.py | 74b5e1575c03ea8f5c556d83d0e5f3d3cebc6427 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 7,180 | py | # 2016.02.14 12:47:24 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/ctypes/test/__init__.py
import os, sys, unittest, getopt, time
use_resources = []
class ResourceDenied(Exception):
"""Test skipped because it requested a disallowed resource.
This is raised when a test calls requires... | [
"info@webium.sk"
] | info@webium.sk |
53a569eafd4c24aa08b26bf75344a34f61a0ce7c | 4cdde9df324e1e528d4440a34f5e6bbcdf4b8ed2 | /PythonAssignments/p1/p1p2.py | 0c5f1fbd9e5a9f8f4b56904b850f352e3f3f6e86 | [] | no_license | enxicui/Python | e2254c2f941bb51b402df852668777ad174878e2 | 3ea8251cd61b995e6f08ff5a906181ca7dc4f1ce | refs/heads/master | 2020-12-09T09:29:59.369488 | 2020-01-11T16:48:47 | 2020-01-11T16:48:47 | 233,263,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | #My second program
print('Good morning!')
print('Vietnam!')
print('Good morning,', 'Vietnam!')
| [
"noreply@github.com"
] | enxicui.noreply@github.com |
536a4f1b8001ee5a7684c493fd16595fadda9a89 | 4038af23324241fe74ef0604af395cac6da68b26 | /leetcode/7_reverse_integer/reverse_integer.py | aff685d59f3cdc24b63541b239cb660afe431636 | [] | no_license | narnat/algorithms_and_datastructures | 4fd5b0fa401d3f441c522f61eceecd4f8f17010d | f319f64f1774c92ce2a94cc6106eec68215f573b | refs/heads/master | 2020-09-29T05:38:41.099526 | 2019-12-22T21:12:53 | 2019-12-22T21:12:53 | 226,966,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/usr/bin/python3
""" Reverse Integer"""
def reverse(x: int) -> int:
INT_MAX = 2 ** 31 - 1
INT_MIN = -2 ** 31
rev = 0
sign = -1 if x < 0 else 1
x = abs(x)
while x:
rev = rev * 10 + x % 10
x //= 10
rev = rev * sign
retur... | [
"farruh1996@gmail.com"
] | farruh1996@gmail.com |
c7ea20324c4c194a0b742a8ae09d86397467fb0b | 498f2cdfd279c13028835b7dcc7d1d4e3b854f4d | /0x07-python-test_driven_development/3-say_my_name.py | c1f2ed43690c8c7a88b30fc30d16bc0bd77c2b9d | [] | no_license | Cristiand187/holbertonschool-higher_level_programming | bf29d3a9bc6617fe4b51e5fc70c8f4dfc2054da5 | 0e70aaffd89bd0ef353487be227a62b0a8006cea | refs/heads/master | 2022-12-25T11:03:42.877379 | 2020-09-25T04:00:28 | 2020-09-25T04:00:28 | 259,311,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | #!/usr/bin/python3
"""[summary]"""
def say_my_name(first_name, last_name=""):
"""[summary]
Arguments:
first_name {[type]} -- [description]
Keyword Arguments:
last_name {str} -- [description] (default: {""})
Raises:
TypeError: [description]
TypeError: [description]
... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
684a66437e408cd56ef22aeb0f739de931df8fd4 | fe87192240c3d5ffe7deb5c9f2b7f02f347a2c00 | /peptide-permable/CNN_layer2_xgboost_leak.py | 684191feca6cc0d5727b24dbc0786547da6092e9 | [] | no_license | leexa90/dl_dev_course | ccfae0bbef4790b0b75fc9da0679f23c1da3bcf5 | 10a9e826cd7e752ce607deadc63826b313de39d2 | refs/heads/master | 2022-08-17T05:07:35.280305 | 2017-12-07T09:04:14 | 2017-12-07T09:04:14 | 105,847,852 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,152 | py | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np
import xgboost as xgb
import pandas as pd
float_formatter = lambda x: "%.3f" % x
np.set_printoptions(formatter={'float_kind':float_formatter})
dictt = {'A': 0, 'C': 1, 'E': 2, 'D': 3, 'G': 4,
'F': 5, 'I': 6, 'H': 7, 'K': 8, 'M': 9,
... | [
"lee.x.a90@gmail.com"
] | lee.x.a90@gmail.com |
8ffb5374eeab9a2f1f0da9a0160685170b53e1df | cf80de0dd9846e768fe1e734dcda93ff823d9dd3 | /server/pages/root.py | fffee4838a380279c9f396de9372264bc02fd4b1 | [] | no_license | dozymoe/fireh_angular_table_docs | 8c4209aaf7162fbdffca4c6b8971225fbeccf32c | cf41f84dc8b32bdbd69bab26f11ef2708aff81f4 | refs/heads/master | 2021-01-21T14:39:46.728571 | 2016-06-17T13:15:23 | 2016-06-17T13:15:23 | 56,961,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from twisted.web.resource import NoResource
from pages.base import BasePage
from pages.rest import RestPage
class RootPage(BasePage):
def getChild(self, name, request):
name = name.decode()
if name == 'rest':
return RestPage(self.app)
return NoResource()
| [
"dozymoe@gmail.com"
] | dozymoe@gmail.com |
ad4f154ff1682055b0aa56a6c6ab19934fdc464c | bd95090eb17f5c1f4af9ed7596f7f246d62de017 | /Common/CommonTools/RewriteConfigparser.py | 9acfbe065201edf8dd8f0ef2c9963c41430c1474 | [] | no_license | 270466585/linkofcar_api_autotest | f6cada2c6fc4a63ef4e22cfe33bfa8c3f7fcbb9a | b0aeac7adbdd8361ff8e986935a3a014b65b11e8 | refs/heads/master | 2020-04-03T19:19:33.089888 | 2018-11-09T03:53:07 | 2018-11-09T03:53:07 | 155,519,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/user/bin/env python
#!encoding=utf-8
import configparser
'''重写configparser,控制大小写自动转化'''
class RewriteConfigParser(configparser.ConfigParser):
def __init__(self,defaults=None):
configparser.ConfigParser.__init__(self,defaults=None)
def optionxform(self, optionstr):
'''改写optionxform,废除大小写转化''... | [
"27066585@qq.com"
] | 27066585@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.