blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb53eb588a4faefc13994b172e7b3d6a0943885b | 97e9e4c2ab8efd940946f5d28a3bab0da647ca0b | /huxley/accounts/tests/models.py | f6a0bb209703e66d80a1776990a19f76587a4435 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | tdowds/huxley | d9df0068d89ffd3f6c855be6c9ae7c3f15bedc3e | 6705ef2d64408389cf55388abbad70beb7025158 | refs/heads/master | 2021-01-20T06:33:01.898577 | 2013-10-18T16:07:58 | 2013-10-18T16:07:58 | 13,706,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | # Copyright (c) 2011-2013 Kunal Mehta. All rights reserved.
# Use of this source code is governed by a BSD License found in README.md.
from django.test import TestCase
from huxley.accounts.constants import *
from huxley.accounts.models import *
class HuxleyUserTest(TestCase):
def test_authenticate(self):
... | [
"[email protected]"
] | |
6aac625e1e0f348f3464e7dd1517a655dc5aab7e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /QWAqDyd9RXqyrNyo3_15.py | b3247adb587b049bdda014c190a3be66d5086b08 | [] | 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 | 177 | py |
def abbreviate(txt,n=4) :
output = ""
crap = txt.split(" ")
for each in crap :
if len(each) >= n :
output += each[0].upper()
return output
| [
"[email protected]"
] | |
3e0f87cbc1d9d3d745df80682fabac642e330b46 | 5279b3fd3b0cba9e1ca5552229bf6d32c3c0bb44 | /ch08_Tensorflow/ex09_Functional_API_2_GoogLeNet.py | 71df88cd007238767bd256db09a478a6f32ed4d2 | [] | no_license | handaeho/lab_dl | 16afe29b1b6db005cdae8ef9cc1f5f675ea34cf8 | 99ddcadec0c93bd42113f6b5fbecd9171c030f8b | refs/heads/master | 2020-11-30T08:42:39.506059 | 2020-02-11T05:22:32 | 2020-02-11T05:22:32 | 230,358,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | """
>> GoogLeNet - (교재 P.271 그림 8-10)
= layer를 하나씩 쌓아 올려 순차적으로 통과 하지 않고,
layer가 수평적으로 놓여 있고, 이 여러 layer를 하나의 데이터에 한꺼번에 적용해서 그 결과를 결합 후, 다음 구조로 보낸다.
이 구조를 'Inception'이라 하며, 'Inception'구조를 하나의 구성 요소로 여러개를 결합하여 사용하는 것이 GoogLeNet의 특징이다.
단, 같은 층에 수평적으로 놓인 layer는 서로 연결 되지 않는다.
===============================================... | [
"[email protected]"
] | |
2960d22b7267e18644fa6fd6755edc830f88df53 | bc41457e2550489ebb3795f58b243da74a1c27ae | /python/plot_daily_solar_energy.py | dcf30c21d78a663dfaca75668a7998236822581c | [] | no_license | SEL-Columbia/ss_sql_views | 28a901d95fe779b278d2a51aec84d6bf51245c02 | d146fd96849a4d165f3dc3f197aadda804a2f60a | refs/heads/master | 2021-01-01T19:35:18.999147 | 2012-05-10T18:43:36 | 2012-05-10T18:43:36 | 3,020,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | '''
plot_daily_solar_energy.py
==============================
uses the midnight values of the reported cumulative kWh to generate
a daily report of energy delivered to the battery
only reports on days where there are two consecutive readings
right now uses numpy to do differentiation, should use postgres lag instead
... | [
"[email protected]"
] | |
6c1b68b9d40da4fc90059b3ddcde709deba188a0 | c0f86b926fc82baa633862896096c149dd9913cf | /Python/Numpy/Concatenate/Pypy3/solution.py | de28d2f999a0276902fe41444343428ac5f95099 | [] | no_license | qxzsilver1/HackerRank | 8df74dd0cd4a9dedd778cdecea395f4234eda767 | bcb1b74711a625d8ad329a3f9fdd9f49b1bebc54 | refs/heads/master | 2021-09-09T15:45:35.681284 | 2021-09-07T00:11:16 | 2021-09-07T00:11:16 | 75,671,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
def matrix_printer(arr,n,m):
for i in range(n):
if i == 0:
print('[[' + ' '.join(map(str, arr[0][0:m])) + ']')
elif i == n-1:
print(' [' + ' '.join(map(str, arr[n-1][0:m])) + ']]')
else:
... | [
"[email protected]"
] | |
e841be16c600c39b5a87a129e088eaac21922d22 | 5cc204e2ecb9a756127e7c71633a1edcdb3e989b | /pylmp/InKim/BGF_generateRigidScan.py | 4582dd6a832f4c8a5fea3760c6e6fcd038c80431 | [] | no_license | hopefulp/sandbox | 1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8 | 4d26767f287be6abc88dc74374003b04d509bebf | refs/heads/master | 2023-06-27T17:50:16.637851 | 2023-06-15T03:53:39 | 2023-06-15T03:53:39 | 218,209,112 | 1 | 0 | null | 2022-09-13T13:22:34 | 2019-10-29T05:14:02 | C++ | UTF-8 | Python | false | false | 4,346 | py | #!/home/noische/python
import sys
import getopt
import copy
import numpy as np
import tqdm
import bgf
import bgftools
import nutils as nu
usage = """
Generates BGF file with changed distances between two molecules.
This is useful to generate input structures for Rigid Coordinate Scan.
Usage: %s -b bgf_file -1 atom... | [
"[email protected]"
] | |
1121516406cec1116b90ef7fc536a6cd5afdd7c4 | e4e4c60ffa509f257afc915d4c6cd32c0cb7098c | /.history/app_20200919192647.py | b152935c7de29fa5e6e7fe1e9d5d974fae893d03 | [] | no_license | QianyueMa/Google-Health-Search-Project | 01dbd597780158f50eebfba2a228b505f8169726 | 6ef6b270dc7ab0826ad4f0338c9cd95d3571e19a | refs/heads/master | 2022-12-19T03:55:10.328167 | 2020-10-02T12:54:27 | 2020-10-02T12:54:27 | 296,495,736 | 0 | 0 | null | 2020-09-18T02:44:12 | 2020-09-18T02:44:11 | null | UTF-8 | Python | false | false | 4,557 | py | import numpy as np
import os
import json
import requests
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine
import pandas.io.sql as pdsql
from config import pg_user, pg_password, db_name
from flask import Flask, jsonify, render_templ... | [
"[email protected]"
] | |
6878a567d42d9e1757938e0bb0df53b84b7c730a | 65b9a63e8c132f32aeb56961968f5e363bd9a087 | /20191104_归一化层Normalization/layernorm_keras.py | a605fbdc0613d5284fffcc85ef6fd7daea5d15e2 | [] | no_license | 346644054/examples2019 | e70f13cfb56c3478fc6e335c730e0e70e70a6226 | 5f9777e7a887e635971156354f56ce065fa3f41e | refs/heads/master | 2022-04-09T03:52:52.973414 | 2020-02-28T03:05:02 | 2020-02-28T03:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
"""
haikou layernorm
fun:
save csv
env:
Win7 64bit;anaconda 1.7.2;python 3.5;tensorflow1.10.1;Keras2.2.4
pip3,matplotlib2.2.3,seaborn0.9.0
"""
__author__ = 'elesun'
import keras
from keras_layer_normalization import LayerNormalization
print... | [
"[email protected]"
] | |
1db367d4918110b8a0232d642973173af2617b77 | 66e6360325b781ed0791868765f1fd8a6303726f | /TB2009/WorkDirectory/5141 Number Of Samples Over Threshold/Count_108535.py | b35a81682068d313d7f63d34b079e98224e2decc | [] | no_license | alintulu/FHead2011PhysicsProject | c969639b212d569198d8fce2f424ce866dcfa881 | 2568633d349810574354ad61b0abab24a40e510e | refs/heads/master | 2022-04-28T14:19:30.534282 | 2020-04-23T17:17:32 | 2020-04-23T17:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("EventDisplay")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
process.source = cms.Source("HcalTBSource",
fileNames = cms.untracked.vstring("file:/tmp/chenyi/HTB_108535.root"),
streams = cms.untracked.vstring('Chun... | [
"[email protected]"
] | |
63ba110f6605deb2d39ba210975b637a8084fbb7 | 90cad1df7b7d424feb8e71ff3d77e772d446afdf | /alembic/versions/3147aa982e03_payment_application_datetime.py | 434fce6bc4ce03501fa4352481a996f74989e5e0 | [] | no_license | razagilani/billing | acb8044c22b4075250c583f599baafe3e09abc2e | fd2b20019eeedf0fcc781e5d81ff240be90c0b37 | refs/heads/master | 2021-05-01T14:46:32.138870 | 2016-03-09T18:55:09 | 2016-03-09T18:55:09 | 79,589,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | """payment application datetime
Revision ID: 3147aa982e03
Revises: 4f2f8e2f7cd
Create Date: 2014-07-23 15:43:12.596865
"""
# revision identifiers, used by Alembic.
revision = '3147aa982e03'
down_revision = '4f2f8e2f7cd'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.types import DateTime, Date
def... | [
"[email protected]"
] | |
61dec1d0e6f74a2fecd66c82df9047590d148082 | cf9158e73c3630bb6c76f5a849014df79e550471 | /paixu.py | e6239d3c47c6e108dbaa197b9970e50d9d62b9ba | [] | no_license | starmerxhcd/python1 | dbcc589c101421a38644f22cb2b7af0378d0e534 | f7ed4b129a4ec22d0e1eed99081d9d695b769229 | refs/heads/master | 2021-08-12T00:55:18.466596 | 2017-11-14T07:48:51 | 2017-11-14T07:48:51 | 110,618,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | # -*- coding: UTF-8 -*-
# 快速排序
# 从数列中取出一个数作为基准数->分区过程,最终结果小的数 基准数 大的数->再对左右区间重复分区过程,知道区间只有一个数
# s list l左标志位 r右标志位 paixu 0为升序 1为降序
def quick_sort(s,l,r,paixu=0):
if(l>=r):
return 'r必须大于l'
if(not isinstance(s,list)):
return '请传入list类型'
if(l<r):
i=l
j=r
x=s[l]
#... | [
"[email protected]"
] | |
e6999cec4013893c63f3967582a644f9a6d64d51 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/apimanagement/v20191201/get_group.py | 1ad33fd5f9a9cc3080ea190180c967ae733fe384 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 4,723 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"[email protected]"
] | |
cf000ffd91c88cbfd2f59ee93dc3e4697700ce28 | c1ef1f1fa94b5dbecff2ec09e94ae29a9094d82a | /20210701.py | c13acabf4bce257bd66f37de2cc21ee67c7fa201 | [] | no_license | MONKEYZ9/algorithm | cd6039a2232615e9bd40f63e2509fddf7edcede7 | 4ffde1ac47294af87152ed740962db600e0b9755 | refs/heads/main | 2023-08-14T17:01:54.792376 | 2021-10-01T06:14:55 | 2021-10-01T06:14:55 | 380,917,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # 약수 구하기
# 약수는 나눠서 나머지가 0인 것을 나타낸다.
# 그럼 그것들을 모아서 리스트에 나오게끔 하면 되다.
def solution(n):
num_list = []
for i in range(1, n+1):
if n % i == 0:
num_list.append(i)
return num_list[0], num_list[-1]
n = int(input())
max, min = solution(n)
print(max, min)
lsitasd = list(range(10, 0,-1))
print... | [
"[email protected]"
] | |
c4c49205364f01979a89041cba0306dc7b3714a1 | 1a5e3871a403057fbbc3f0914a931fc0a6bf06c3 | /Server/app/docs/__init__.py | c1df725028415f127e2c74e054d89fcb8f008df7 | [
"MIT"
] | permissive | DSM-DMS/DMS-Backend-API-v2 | ec754b575bfa3ef831efaae242f0a8203c595dd1 | dfb49879ce81d7a3c1c4cda47b1de150f245cd86 | refs/heads/master | 2021-05-04T00:03:17.912351 | 2018-04-06T13:51:25 | 2018-04-06T13:51:25 | 120,405,963 | 0 | 0 | MIT | 2018-02-18T14:39:13 | 2018-02-06T05:25:05 | Python | UTF-8 | Python | false | false | 1,884 | py | TEMPLATE = {
'schemes': [
'http'
],
'tags': [
{
'name': '관리자 계정',
'description': '관리자 권한으로 접근 가능한 계정/계정 관리 API'
},
{
'name': '계정',
'description': '학생 권한으로 접근 가능한 계정 API'
},
{
'name': '신청 정보 관리',
... | [
"[email protected]"
] | |
62a54329673eecda6470aab943460239d2c97a22 | fb82fdf706863465b1f357cd1fa0447474cd8a70 | /ServerComponent/venv/Lib/site-packages/rsrc/contrib/db/mongo/serializer.py | 4ce65d072d3cc5cf44fb07e5acfe9000727e374a | [
"MIT"
] | permissive | CDU55/FakeNews | d79e2a069b3f1392f779d5b2256cd54c696e789a | 707bd48dd78851081d98ad21bbdadfc2720bd644 | refs/heads/main | 2023-02-20T06:27:18.618837 | 2021-01-17T15:14:27 | 2021-01-17T15:14:27 | 305,167,221 | 0 | 1 | MIT | 2020-12-07T19:51:46 | 2020-10-18T18:16:49 | Python | UTF-8 | Python | false | false | 593 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from rsrc import settings
from jsonsir import Serializer
from jsonsir.contrib.intencoder import IntEncoder
from jsonsir.contrib.boolencoder import BoolEncoder
from jsonsir.contrib.regexencoder import RegexEncoder
from jsonsir.contrib.objectidencoder import ObjectIdEncoder
... | [
"[email protected]"
] | |
8a1620d7c5e238a937e8c5e317cd0d841bd6c9c1 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_12364.py | 078700cb2bbfce3105692f4e33e508d8b2f4b77d | [] | 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 | 150 | py | # backslash in a character set of a python regexp (how to specify 'not a backslash' character set)?
regexps.append({'left':r'[^\\]%.*', 'right':r''})
| [
"[email protected]"
] | |
fd23120ffa6c03d72252d789dea7030132ea3bd4 | 31eadb37c1748ea37c9d978ae099f56f3d01d3be | /core/utils.py | ba5db3540ba38eb07995f3dd2da24fc7852637a7 | [] | no_license | geofferyj/simple_django_chat | daccf0b8e47b0a70d6bd4ad10da737da88fcc0a1 | ad9606bc42528bc24448e9786665f7fae034e51f | refs/heads/master | 2023-08-12T19:13:32.992640 | 2021-10-14T04:52:00 | 2021-10-14T04:52:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | from django.contrib.auth.models import AnonymousUser
from channels.db import database_sync_to_async
from django.db import close_old_connections
from rest_framework.authtoken.models import Token
from channels.middleware import BaseMiddleware
from channels.auth import AuthMiddlewareStack
from rest_framework.authenticati... | [
"[email protected]"
] | |
7af3af409784414f72d30c21d0d452263f877838 | b5cba88ce8c86740c8c3453134610fd5bafbb8c4 | /AlgoExpert/Selection Sort/solution.py | 2f1ea5a4052470bf42473e09bd03a59a4df0f506 | [] | no_license | EduardoSantos7/Algorithms4fun | 55fcf9d515ea3b70b93298ac96a58d2ae68dee11 | 6ff182ed596b6322322b087f29e6ad98baec3f97 | refs/heads/master | 2023-07-23T01:38:08.216313 | 2023-07-23T01:35:58 | 2023-07-23T01:35:58 | 227,448,848 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | def selectionSort(array):
for i in range(len(array) - 1):
current_min = i
for j in range(i + 1, len(array)):
if array[j] < array[current_min]:
current_min = j
array[i], array[current_min] = array[current_min], array[i]
return array
| [
"[email protected]"
] | |
42690924946bef5ab0da79ed1f252d7fc6198fff | 6e3d061f94468905841a918278a352d4e5df89a1 | /hashicorp_vault_client/test/test_body92.py | 87a8f24bd7cd68ac8fe9c87c8e3e6c826c7412f2 | [
"Apache-2.0"
] | permissive | drewmullen/HAC | 179a4188e6e6ce3a36d480e45f238fd0901a710f | fb185804fd244366f8f8d01df22835b3d96e7512 | refs/heads/master | 2020-08-03T12:13:08.785915 | 2019-10-03T18:33:04 | 2019-10-03T18:33:04 | 211,749,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # coding: utf-8
"""
HashiCorp Vault API
HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501
OpenAPI spec version: 1.2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
... | [
"[email protected]"
] | |
32102d490eaf01579a5fdfd91f758f8e60ddd1d3 | 3c6b3b0a92e5a290ba69d0f73af51ac82aff3509 | /exams/midterm2/list_set.py | 9e0137e47de684f4ff2f0f13a542abe3f3d2f362 | [] | no_license | sarae17/2019-T-111-PROG | ba6c6db7075acba16bbcd23e4c0d3db6e2bb374f | 017287b3300ec4fe809bfc81fee856ffb17b4800 | refs/heads/master | 2020-09-10T14:36:53.715479 | 2019-11-13T13:41:04 | 2019-11-13T13:41:04 | 221,722,173 | 1 | 0 | null | 2019-11-14T14:54:15 | 2019-11-14T14:54:14 | null | UTF-8 | Python | false | false | 1,018 | py | def unique_elements(a_list):
''' Returns a new list containing the unique elements in a_list '''
result = []
for elem in a_list:
if not elem in result:
result.append(elem)
return result
def make_sorted_set(a_list):
a_set = unique_elements(a_list)
return sorted(a_set)
def in... | [
"[email protected]"
] | |
19c07d874f40176edcbf9fe01161f45a8eab33ac | acf314ab0fa399018764b2ebd96e33c66362994e | /0x0F-python-object_relational_mapping/model_city.py | de7071389d2f251afb219add79ea14ca20dfe060 | [] | no_license | glyif/holbertonschool-higher_level_programming | 98f9c2da0b71a4e9e2dd9f6fde755875e9015f34 | 14c02d79e2008db1b992b08f9faa55b20dbe0691 | refs/heads/master | 2021-01-20T06:53:16.179354 | 2017-09-28T18:14:12 | 2017-09-28T18:14:12 | 89,939,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #!/usr/bin/python3
"""
City Base Model
"""
from sqlalchemy import Column, Integer, String, ForeignKey
from model_state import Base, State
class City(Base):
"""
City Model
tablename: cities
id: id
name: name
state_id: state_id
"""
__tablename__ = "cities"
id = Column(Integer, aut... | [
"[email protected]"
] | |
e0fade2adeb0017c44bf7145e021bf79ff8828c2 | edfdc0d3a2fdeed95ba7aa3d0e198eb9dafe4064 | /operator_api/ledger/migrations/0034_auto_20180921_1222.py | 2fd8e466f164d186fb24a45d8da3bf7466401d5e | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | xiaobai900/nocust-hub | 880e72ba4e1d324ae36adea6c03c9761a7d91621 | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | refs/heads/master | 2023-05-28T08:18:17.402228 | 2020-11-01T19:48:17 | 2020-11-01T19:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-09-21 12:22
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ledger', '0033_transfer_cancelled'),
]
operations = [
migrations.RenameField(
... | [
"[email protected]"
] | |
87f6a95198355d88ac93093a58294e5b1c64dcf4 | 8f64d50494507fd51c0a51010b84d34c667bd438 | /BeautyForMe/myvenv/Lib/site-packages/win32/scripts/backupEventLog.py | 1a72db1578c00a5a37fa7d7486d95356f6238705 | [
"MIT"
] | permissive | YooInKeun/CAU_CSE_Capstone_3 | 5a4a61a916dc13c8635d25a04d59c21279678477 | 51405c4bed2b55661aa0708c8acea17fe72aa701 | refs/heads/master | 2022-12-11T15:39:09.721019 | 2021-07-27T08:26:04 | 2021-07-27T08:26:04 | 207,294,862 | 6 | 1 | MIT | 2022-11-22T04:52:11 | 2019-09-09T11:37:13 | Python | UTF-8 | Python | false | false | 1,040 | py |
# Generate a base file name
import time, os
import win32api
import win32evtlog
def BackupClearLog(logType):
datePrefix = time.strftime("%Y%m%d", time.localtime(time.time()))
fileExists = 1
retry = 0
while fileExists:
if retry == 0:
index = ""
else:
index = "-%d" % retry
try:
fname = os.path.join(wi... | [
"[email protected]"
] | |
e4781373c7e3b7491d6ba5776799f89dbb0ac3ec | e724c4340ddf8a99fe7d887b5cc5453e46e7eb29 | /src/main/python/pgshovel/streams/sequences.py | a2a0f8037ef84174e19d62a735d20e0797e5ace0 | [
"Apache-2.0"
] | permissive | fuziontech/pgshovel | 1789369e2db6c82deba08bb86504840cef705d8f | 5107a9885785f702340d421bbae9f6b82f44e98a | refs/heads/master | 2021-01-17T07:07:25.383805 | 2015-08-14T08:33:54 | 2015-08-14T17:15:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | """
Tools for validating input streams.
"""
import logging
logger = logging.getLogger(__name__)
class SequencingError(Exception):
"""
Error raised when a message contains an invalid sequence value.
"""
class InvalidPublisher(SequencingError):
"""
Error raised when a message is received from an... | [
"[email protected]"
] | |
783e84a8fb9c3cbbecc3557157aa5917430ac426 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_164/ch128_2020_04_01_18_11_42_129452.py | ab64e7a6ec6a5e0b2d75d17984dba66242fc56bb | [] | 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 | 446 | py | sim = ["sim"]
nao = ["nao"]
esta_se_movendo = input("Está se movendo?")
if esta_se_movendo in sim:
se_move = input("Deveria se mover?")
if se_move in sim:
print("Sem problemas!")
elif se_move in nao:
print("Silver Tape")
if esta_se_movendo in nao:
nao_se_move = input("Derveria se mover... | [
"[email protected]"
] | |
d782c90e1f40be5b2502d577a699d8d716c9955b | 1b4672de3ee7eb823fb2a238ea767fe0e1e11e7e | /shared/migrations/0001_initial.py | 0c89461bd8ba3895f44aa18c3d23aaeb018a4b11 | [] | no_license | FriedrichK/gamecoach | ce6510115e58286cc5eb56ddfbd35e7457639379 | cfa0d8c686cbc7b48cfc86e1feabd30d575f3039 | refs/heads/master | 2016-09-06T04:08:52.746047 | 2014-11-03T21:20:39 | 2014-11-03T21:20:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | from south.v2 import DataMigration
from django.conf import settings
class Migration(DataMigration):
def forwards(self, orm):
site = self._forward_ensure_primary_site_is_set_up_correctly(orm)
self._forward_ensure_facebook_provider_exists(orm, site)
def _forward_ensure_primary_site_is_set_up_co... | [
"[email protected]"
] | |
a97a18124e03c1c5cba179560a3a8bcc88bc64ae | f3472d0f7c4c15d978dc74520ecebc7b6396da78 | /tests/http/test_request_data_property.py | 0d147ccbed4c4a77b5fe7fb35156fb3fa65c8468 | [
"MIT"
] | permissive | Lookyan/flex | a5b18e7f69ab4bc98ef810deebc22733b5346e4a | 284ea6d5b5a5f65d7f4abbe9d36ca6f31567c0ec | refs/heads/master | 2021-01-16T17:40:58.428296 | 2016-10-12T11:49:18 | 2016-10-12T11:49:18 | 67,237,824 | 0 | 1 | null | 2016-09-02T16:23:14 | 2016-09-02T16:23:13 | null | UTF-8 | Python | false | false | 898 | py | import pytest
import json
from flex.constants import EMPTY
from tests.factories import (
RequestFactory,
)
def test_null_body_returns_null():
request = RequestFactory(body=None)
assert request.data is None
def test_empty_string_body_returns_empty_string():
request = RequestFactory(body='')
asse... | [
"[email protected]"
] | |
c600389a03e33cbfd54ea9b4103aba8b123f1cc5 | aa3f670fcc2b43d8a5eb8a131082510bed2eb4d8 | /scripts/ingestors/nass_quickstats.py | 2b7ee785badec8b6d8ea7c1b583e03b7621a4a51 | [
"MIT"
] | permissive | jamayfieldjr/iem | e0d496311d82790ad518c600c2fcffe44e834da1 | 275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a | refs/heads/master | 2020-08-07T11:55:56.256857 | 2019-10-04T04:22:36 | 2019-10-04T04:22:36 | 213,439,554 | 1 | 0 | MIT | 2019-10-07T17:01:20 | 2019-10-07T17:01:20 | null | UTF-8 | Python | false | false | 5,165 | py | """Dump NASS Quickstats to the IEM database"""
from __future__ import print_function
import sys
import subprocess
import datetime
import os
import pandas as pd
from pyiem.util import get_dbconn
TMP = "/mesonet/tmp"
def get_file():
"""Download and gunzip the file from the FTP site"""
os.chdir("/mesonet/tmp")... | [
"[email protected]"
] | |
94e54f003e8bf858139be8bc41ecdd20852a0d7b | 3e149e35fbe53c190d74da8b68a12a472e0e6552 | /footer_project/templatetags/footer_tags.py | f94449355897e353ddb401a08e4359feb5aeccc5 | [] | no_license | kamral/official_student_project | 20a5c02fc0a7769f209c33a8eeee6a3f748ea647 | fc585a20d46b858204c643cfa7f7b6f3e3a1655f | refs/heads/main | 2023-02-22T16:41:28.269882 | 2021-01-18T11:41:19 | 2021-01-18T11:41:19 | 323,295,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from django import template
from footer_project.models import \
About_Company_Category,\
Opportunities_category,\
Ourpartners_category
register=template.Library()
@register.simple_tag()
def get_about_company_categories(name='get_about_company_categories'):
return About_Company_Category.objects.all(... | [
"[email protected]"
] | |
78160df90330823af6c5d5389fbe35435da6181e | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/twisted/python/test/deprecatedattributes.py | 368f231b4fba03650d3126673b5a98b6ffcf64ff | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
A module that is deprecated, used by L{twisted.python.test.test_deprecate} for
testing purposes.
"""
from __future__ import division, absolute_import
from incremental import Version
from twisted.python.deprecate import deprecatedM... | [
"[email protected]"
] | |
9aa328809ba68d90740be6791e15c2849822679e | 3cec81bf2c37485482b9ac100c45029baa8044a2 | /pde/tools/spectral.py | 98c12dee4c9b855f17d2228f1d8477346148dbbe | [
"MIT"
] | permissive | jhurreaq/py-pde | 085adfbbcdabc162d66fef28007d729d465fbadf | 42cd3e9cc45793840ecfe244e606c39b13502658 | refs/heads/master | 2023-08-05T18:23:53.612466 | 2021-09-19T13:19:29 | 2021-09-19T13:19:29 | 318,832,446 | 0 | 0 | MIT | 2020-12-05T16:16:46 | 2020-12-05T16:16:45 | null | UTF-8 | Python | false | false | 3,022 | py | """
Functions making use of spectral decompositions
.. autosummary::
:nosignatures:
make_colored_noise
.. codeauthor:: David Zwicker <[email protected]>
"""
from typing import Callable, Tuple
import numpy as np
try:
from pyfftw.interfaces.numpy_fft import irfftn as np_irfftn
from pyfftw.int... | [
"[email protected]"
] | |
d6e8ff8516b3f0322e3955eae9f8edc244f810f8 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-dbs/aliyunsdkdbs/request/v20190306/ModifyBackupObjectsRequest.py | 0e3fa5590c1538ee6643ee531e162ad58600b343 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,056 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"[email protected]"
] | |
f45fdaae0dc927be8cad55969099030418d04029 | 633b2299ab0bb2648b94a7f8bf0288aa7a083347 | /Project_Assignment11/app11/views.py | 709df73b08555f9bfcf6f78709277c4db176767d | [] | no_license | Abhirvalandge/Django-Practice-Projects-with-Naveen-Sir | 7deb309b8af3c9e123da8525d7a925661662bde3 | 172191e22fcec3a3f80f64e624e6f9a52617486e | refs/heads/main | 2023-03-23T08:34:25.196039 | 2021-03-06T06:56:17 | 2021-03-06T06:56:17 | 345,023,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from django.shortcuts import render
def showMain(request):
return render(request,"index.html")
def showIndex(request):
oroom = 1500
droom = 2500
sroom = 5000
comp = 1000
gy = 250
min = 50
gname = request.POST.get("gn")
gcont = request.POST.get("gc")
add = request.POST.get(... | [
"[email protected]"
] | |
a13cc031394394a73888e319442d50773ae1f9cf | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_Samsruti_1.py | fef1069471fc5682a4dbee4a96c5491f48a857dc | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 828 | py | import sys
def readInt():
return int(raw_input())
def retrieveEachNumber(number):
eachNumberList = []
rem = 0
while number > 0:
rem = number % 10
number = number/10
eachNumberList.append(rem)
return eachNumberList
fileout = open('log.txt', 'w')
needList = [0,1,2,3,4,5,6,7,8,9]
trueval = []... | [
"[[email protected]]"
] | |
43d77b0cd16051f64708b60f8fccce68d390dffb | dc99d95671170444cd7bf02e37da6ecda4a5f19e | /apps/operation/migrations/0008_auto_20180905_1609.py | 55dfc0e5ddf62f37178e22dbdf88e45ca8ef24f2 | [] | no_license | bbright3493/python_real_war | 734d49ed9f7e1800d24dc754424a07b69d7d8c1f | 6e43bb7d814920222f3310bd6fd9f04cb3d5bbf1 | refs/heads/master | 2020-03-30T06:08:40.249185 | 2018-10-22T07:33:41 | 2018-10-22T07:33:41 | 150,841,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-09-05 16:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('operation', '0007_auto_20180831_1621'),
]
operations = [
migrations.RemoveF... | [
"[email protected]"
] | |
3d8e60b68e721264a7b6abc65cdd796f0b801774 | db9060d9a8550d6ce24fff6bdf04b4fa8974f20b | /utils/install_pyro.py | e6823af6f8006fac074ae01adce8216a8dbc3c8b | [] | no_license | davecap/pydr | 92fbb7ba9ecaa054a36b0409f86b58740592767d | fc6cbef45007b55bf78fd661cc81c6b0ef7e0d80 | refs/heads/master | 2016-09-06T11:11:28.685731 | 2011-08-05T16:50:22 | 2011-08-05T16:50:22 | 864,921 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #!/usr/bin/python
import subprocess
import os
import shutil
import tempfile
import re
try:
temp_dir = tempfile.mkdtemp(prefix='pyro_install_')
print 'Installing in %s' % temp_dir
os.chdir(temp_dir)
url = 'http://www.xs4all.nl/~irmen/pyro3/download/Pyro-3.10.tar.gz'
filename = 'Pyro-3.10.tar.gz'
... | [
"[email protected]"
] | |
9554a7b27eb0ab83d7221086697a354c5f8a3b85 | 6547c59e1041bd888c31d360f9b75e07f5b2bdd0 | /bin/pythonicus | d17e06e9c343bbdefffcca29145c02e19757ae3d | [] | no_license | diegorubin/pythonicus | b5069f3bc12f20715e70da990fb4476089046c53 | ae0015d301df5cac3896455a6b64917f0b5bc1b8 | refs/heads/master | 2021-03-12T20:36:05.564847 | 2014-12-27T10:52:10 | 2014-12-27T10:52:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | #!/usr/bin/env python
import sys
#import cyclone.web
from twisted.python import log
from twisted.internet import reactor
try:
from pythonicus.server.base import *
except ImportError:
from os.path import join, abspath, dirname
parentpath = abspath(join(dirname(__file__), '..'))
sys.path.append(parentpa... | [
"[email protected]"
] | ||
979444d06a18703716c2ffc753dde974cb5502fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03967/s359107548.py | d0ee9a3ac3bd33bf4227ed9624640a7cce491654 | [] | 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 | 317 | py | S = input()
g_cnt, p_cnt = 0, 0
ans = 0
for s in S:
if p_cnt < g_cnt:
if s == "g":
p_cnt += 1
ans += 1
elif s == "p":
p_cnt += 1
else:
if s == "g":
g_cnt += 1
elif s == "p":
g_cnt += 1
ans -= 1
print(ans) | [
"[email protected]"
] | |
f45ba9f87301ca0d99a049ac8d38a6398db17af0 | e5b4ed93d6666e195e96a265d3e7cfe4243a7300 | /python_net/day02/udp_server.py | 8df6e4aa87d01a1cdc5cca61ad4cecade830b7b8 | [] | no_license | Spider251/python | 934f5b8b923c2b61186a6df8445957290e5c4c74 | 8b1931f862e1d5c29fed9af624bcac94c1d25755 | refs/heads/master | 2020-04-05T11:58:04.558098 | 2018-11-09T12:06:06 | 2018-11-09T12:06:06 | 156,852,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # udp_server.py
from socket import *
#创建数据报套接字
sockfd = socket(AF_INET,SOCK_DGRAM)
#绑定地址
server_addr = ('0.0.0.0',8888)
sockfd.bind(server_addr)
#消息收发
while True:
data,addr = sockfd.recvfrom(1024)
print("消息来自%s:%s"%(addr,data.decode()))
sockfd.sendto(b"Thanks for you msg",addr)
#关闭套接字
sockfd.close()
| [
"[email protected]"
] | |
0cc41ccb5f1374c3d4787416da11b9c307894afd | 16c8fdf291430475f40d578b0d64552eb64046e9 | /colour/difference/tests/test_huang2015.py | 9e6bd01ac869d70b6f779b19f66a0c1b05fae61b | [
"BSD-3-Clause"
] | permissive | nodefeet/colour | 4c1bfed87ce173ff878bdf288fd9828bb68022e3 | 319dd5b1c45aef6983eff1830f918c1e593fb530 | refs/heads/develop | 2022-02-19T17:39:36.657993 | 2022-02-15T08:38:26 | 2022-02-15T08:38:26 | 460,456,444 | 0 | 0 | BSD-3-Clause | 2022-02-17T13:53:37 | 2022-02-17T13:53:36 | null | UTF-8 | Python | false | false | 1,117 | py | """Defines the unit tests for the :mod:`colour.difference.huang2015` module."""
import numpy as np
import unittest
from colour.difference import power_function_Huang2015
__author__ = "Colour Developers"
__copyright__ = "Copyright 2013 Colour Developers"
__license__ = "New BSD License - https://opensource.org/license... | [
"[email protected]"
] | |
6f91fd482b30ef5e937e14797819b36816094e2f | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_basis3.py | 7221798fa0235553b855d476ccc0d957c7a06580 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from xcp2k.inputsection import InputSection
class _basis3(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Default_keyword = []
self._name = "BASIS"
self._repeated_default_keywords = {'Default_keyword': 'DEFAULT_KEYWORD'}
self._attributes = ['Default_keyw... | [
"[email protected]"
] | |
536c4275d8ead61ff8849a450a9f33405be4a30a | 2594650405c1424bec1ab14c1ce994906d6cc961 | /AByteOfPython/C14_InputOutput1b.py | 9ce11e5999a8462b2ab6eb9fb64979d493ae9a6e | [] | no_license | aa2276016/Learning_Python | 10dd46eeb77d5ec05b4e607c523e9e5597a2e7ee | f0e3b4876ea078a45493eb268992cec62ccd29d1 | refs/heads/master | 2021-10-19T08:34:15.694353 | 2018-03-17T02:38:49 | 2018-03-17T02:38:49 | 125,590,648 | 0 | 0 | null | 2018-03-17T02:41:26 | 2018-03-17T02:41:26 | null | UTF-8 | Python | false | false | 444 | py | # Input Output 1b:
def reverse(text):
return text[::-1]
def is_palindrome(text):
return text == reverse(text)
while True: # 先设置循环, 把input包括在循环中,这样每次循环才让人输入内容
something = input("Enter text: ")
if something == 'quit':
break
if is_palindrome(something):
print("Yes, ... | [
"[email protected]"
] | |
699c1ceda3c1dd63c07aae302a294b79564c477f | e39cd8cdcbfe60eafb45fb96f6f5ada62940c6f2 | /setup.py | fc63bf42cbb532d0af0752d0f7a3a6da2041a9db | [
"MIT"
] | permissive | DarkmatterVale/hurricane | 5d4505ed6a994ed669e9795d047602ca773ce20c | 94e9e56fcc6d73f5f76ad1fe9e3e4f248549fe7b | refs/heads/master | 2021-05-01T00:52:22.374738 | 2017-01-13T00:15:34 | 2017-01-13T00:15:34 | 64,959,057 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | # This is the setup file for pip
from setuptools import setup, find_packages
import os, sys
from os import path
setup(
name = 'hurricane',
version = '0.0.1',
description = 'A master-slave computer communication protocol',
url = 'https://github.com/DarkmatterVale/hurricane',
author = 'Vale Tolpe... | [
"[email protected]"
] | |
b6e84a0000cbadb35e33a397764e8a72f3b8d1a7 | a0a41401bafc44f233d5ba82ed8905ba9d213699 | /huntserver/migrations/0023_auto_20150717_1025.py | 0539387ebf04335213a8d2b2b2e750a333718e53 | [] | no_license | christophsjones/puzzlehunt_server | 266c0e6a02e09d1f7290dab6b006c0ce70b2586b | 53390bdb8d97955c280f7a2e660150d5c56b49f2 | refs/heads/master | 2021-01-23T01:35:12.499539 | 2015-10-21T19:59:43 | 2015-10-21T19:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('huntserver', '0022_auto_20150717_1024'),
]
operations = [
migrations.AlterField(
model_name='unlockable',
... | [
"[email protected]"
] | |
526117433c8898f00ad8d1ef33ed32fc9051ce2d | b0c375bda0f25ab2408be94fd0714819af3bc1ab | /model/layers/blocks_module.py | 5927e6a6f428baca4259783ad12f9d0372bcd408 | [] | no_license | nenoc/YOLOv4-pytorch | 8f0ee6415b610d8d566396500abe133b1079ba70 | 781b07d5fbbd4faefcfd1d535f21982c436f27cd | refs/heads/master | 2022-11-20T20:03:45.814946 | 2020-07-20T12:05:34 | 2020-07-20T12:05:34 | 282,566,409 | 2 | 0 | null | 2020-07-26T03:15:34 | 2020-07-26T03:15:34 | null | UTF-8 | Python | false | false | 713 | py | import torch.nn as nn
from ..layers.conv_module import Convolutional
class Residual_block(nn.Module):
def __init__(self, filters_in, filters_out, filters_medium):
super(Residual_block, self).__init__()
self.__conv1 = Convolutional(filters_in=filters_in, filters_out=filters_medium, kernel_size=1, ... | [
"your email"
] | your email |
348ced0727e42f540f5292dbfa643f5e7e7f46b7 | a438748ac89d53b19e7f4130529906896f059b25 | /gen_for_collect.py | 9fc0c0c61660397c13ff38e9779b4a1fbdb2bf23 | [] | no_license | Alexfordrop/Basics | 90ead9294727a823eb044e5f2f69d8f29133d150 | eda400424b2c72bd5e01a6c7cb14ad7ae29477d4 | refs/heads/master | 2023-06-08T16:42:26.704163 | 2021-06-27T20:46:27 | 2021-06-27T20:46:27 | 329,421,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # Генераторный список
a = [i for i in range(5)]
# Генераторное выражение
x = (i for i in range(5))
print(a)
print(x)
for i in x:
print(i, end=' ')
| [
"[email protected]"
] | |
d89c72f08a21bd2f42f071c1c791e17542d88c4f | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_google_maps_directions/tests/test_fn_google_maps_directions.py | ea98b341ce5894834d0f28a893991ead0320e9ba | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 3,118 | py | # -*- coding: utf-8 -*-
"""Tests using pytest_resilient_circuits"""
from __future__ import print_function
import pytest
from resilient_circuits.util import get_config_data, get_function_definition
from resilient_circuits import SubmitTestFunction, FunctionResult
PACKAGE_NAME = "fn_google_maps_directions"
FUNCTION_NAM... | [
"[email protected]"
] | |
7b23637cb362ddb83b9c8ac25dd2b2295942406e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/217/usersdata/274/113591/submittedfiles/av2_p3_m2.py | 11d3b1df8bc4632ec02ca21815a72cd111a8a103 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # -*- coding: utf-8 -*
n=int(input("Dimensão do Quadrado: "))
while notn>=3:
n=int(input("Dimensão do Quadrado: "))
M=[]
for i in range(0,n,1):
L=[]
for j in range(o,n,1):
L.append(int(input("Elemento da Linha: "))
M.append(L)
somaL=[]
for i in range(0,n,1):
somaL.append(sum(M[i]))
somaC=[... | [
"[email protected]"
] | |
dc2c448b2f4ba78a00a1c9045e74ad0ae468900e | 4a5056686e604e5af78d4653c7c51ac3769b6b38 | /server/view.py | e7de73a06c0760f65ebc1e704baa315ae65457bc | [
"MIT"
] | permissive | SangminOut/Short-URL | 673e164cf0e9c471d5e509ccd9ae5fe604ddf2f5 | 6269049442e0c499764eb1061631b6399bdbc919 | refs/heads/master | 2020-04-11T04:01:38.015376 | 2018-12-16T12:22:53 | 2018-12-16T12:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from flask import request, redirect, Response, jsonify, current_app
from model import UrlModel
def save_url():
original_url = request.json['url']
url_key = UrlModel(original_url).save_url()
if current_app.config['SERVER_NAME'] is not None:
base_url = current_app.config['SERVER_NAME'] + '/'
e... | [
"[email protected]"
] | |
188c4c56d93bad2c21c59daa92790577ed1fbaaa | a3d32e0ff84958d194ced642441f5379c0032465 | /tfmsarest/views/common_schema.py | 2e068f8dc9fbea974ec8cf611c0b9e4f16d9026b | [] | no_license | TensorMSA/tensormsa_old | 406755511d05d4ec179c085337a05f73c0dde80a | ef058737f391de817c74398ef9a5d3a28f973c98 | refs/heads/master | 2021-06-18T11:58:29.349060 | 2017-04-20T10:17:43 | 2017-04-20T10:17:43 | 67,384,681 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from tfmsacore import netconf
import json, unicodedata
from rest_framework.response import Response
from rest_framework.views import APIView
from tfmsacore.utils.json_conv import JsonDataConverter as jc
class CommonSchema(APIView):
"""
"""
def get(self, request, datatype, preprocess, category, subcategor... | [
"[email protected]"
] | |
69bb43586bb37d90d4904525583972a1c1353d74 | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/_0501_1000/0631_design-excel-sum-formula.py | f5ab87115d8d3a0a794edc0aec9f0d2c163b354e | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-07-24 09:36:33
# @Last Modified : 2020-07-24 09:36:33
# @Mail : [email protected]
# @Version : alpha-1.0
"""
# 你的任务是实现 Excel 的求和功能,具体的操作如下:
#
# Excel(int H, char W): 这是一个构造函数,输入表明了 Excel 的高度和宽度。H 是... | [
"[email protected]"
] | |
28e9cadbf5eb0e4047f49800c21759742600c50c | c76b54198bcfbf0eb3427db86270053b05c34531 | /main.py | 7bc62005369f9fa349970a9e699ccc71fa56957f | [] | no_license | tang1323/ArticleSpider | fd2f97c4b6cb77adf3439e993c641f345e9fe07e | 7eb99c98a24fc5b6c2f2e54c6322c07b15bb7eed | refs/heads/master | 2023-04-04T02:03:29.289456 | 2021-04-15T01:43:18 | 2021-04-15T01:43:18 | 358,093,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py |
from scrapy.cmdline import execute
import sys
import os
# print(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
# execute(["scrapy", "crawl", "cnblogs"])
# execute(["scrapy", "crawl", "zhihu_sel"])
# execute(["scrapy", "crawl", "lagou"])
execute(["scrapy"... | [
"[email protected]"
] | |
ea2cc4a918ce7233d5fd7fc4ced1465a7724a886 | 5376007035bf5aebb57c4d4f788098c9706ebe44 | /api/serializers/store.py | bf4b7d5c0a1d2081c3fe855a0077f072ecdf34a1 | [] | no_license | oyeolamilekan/monoapp | 6c0f49cc12a167bc0343648ae63f4e9c864bb130 | 939de5a1bb65e9bc48e48662f2ccffef280ffe10 | refs/heads/master | 2022-12-12T04:26:49.515305 | 2019-09-07T11:28:51 | 2019-09-07T11:28:51 | 192,071,474 | 0 | 0 | null | 2022-12-08T03:03:11 | 2019-06-15T11:35:50 | Python | UTF-8 | Python | false | false | 593 | py | """
This serializer handles the serialization of the store object
"""
from rest_framework.serializers import ModelSerializer
from shop.models import Shop
class ShopSerializer(ModelSerializer):
"""[the shop info]
Arguments:
{[ inherits from serializer class rest framework]} -- [description]
"... | [
"[email protected]"
] | |
e0a16314f9011bec7baf07a499ee6dc14a3fd84c | d838bed08a00114c92b73982a74d96c15166a49e | /docs/data/learn/Bioinformatics/input/ch7_code/src/Stepik.7.3.ExerciseBreak.ReduceMatrixAndTreeSizeForDegreeGreaterThan3.py | 8c78a252e9bb67b680c446f51bfc4e3cd9a48b02 | [] | no_license | offbynull/offbynull.github.io | 4911f53d77f6c59e7a453ee271b1e04e613862bc | 754a85f43159738b89dd2bde1ad6ba0d75f34b98 | refs/heads/master | 2023-07-04T00:39:50.013571 | 2023-06-17T20:27:05 | 2023-06-17T23:27:00 | 308,482,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | # EXERCISE BREAK
#
# Exercise Break: We have just described how to reduce the size of the tree as well as the dimension of the distance
# matrix D if the parent node (m) has degree 3. Design a similar approach in the case that the degree of m is larger
# than 3.
# Recall that for m having a degree of 3...
#
# i * ... | [
"[email protected]"
] | |
81dc0357d63777f89ea036e852b3efe56feaf9ab | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/205/usersdata/273/87079/submittedfiles/questao2_av1.py | bf918e1ddadf59e5328db54d5ee0e1da3c292262 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
a=int(input('Digite o numero escolhido: '))
b=int(input('Digite o numero escolhido: '))
c=int(input('Digite o numero escolhido: '))
d=int(input('Digite o numero escolhido: '))
e=int(input('Digite o numero escolhido: '))
f=int(input('Digite o numero escolhido: '))
asort=int(... | [
"[email protected]"
] | |
edd67f99568d16c9b74838ae193917ba2ac2bd67 | b8a803694c283a5acd13ab6760a36710884ab24f | /llvm/tests/test_operands.py | ef68b9eebfa0080d14e29767806e6305f85e337b | [
"NCSA",
"BSD-3-Clause"
] | permissive | llvmpy/llvmpy | 8a4c31e731364ead802231b97e058b8f8c444f96 | 13130fe35f1fb03a7051ad46c36146002391a6fa | refs/heads/master | 2016-09-05T16:48:54.694686 | 2015-04-28T16:21:34 | 2015-04-28T16:21:34 | 3,375,197 | 155 | 13 | null | 2015-05-27T18:36:45 | 2012-02-07T07:09:59 | HTML | UTF-8 | Python | false | false | 2,076 | py | import unittest
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from llvm.core import Module
from .support import TestCase, tests
class TestOperands(TestCase):
# implement a test function
test_module = """
define i32 @prod(i32, i32) {
entry:
%2 = mul i32 %0, %1
... | [
"[email protected]"
] | |
ef79cfd8757f6d078443dd0489deeb6ba381380c | ad6ad38511b214d1d6cc183535d0d4ff463eadf9 | /vulscan_Project/pageUtil.py | 83b026b6a28da1424c2632eaf0628ffc050d2d5e | [] | no_license | 0ps/VulScanner | abf8417f00dec8f7485246fc208a157d96207180 | de2519655c214ebfbe56c0278e6230afaae72559 | refs/heads/master | 2023-08-30T18:05:44.620650 | 2021-10-22T07:25:18 | 2021-10-22T07:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | import re
def get_pages(page, last_page):
page_list = []
if last_page < 9:
for i in range(1, last_page + 1):
page_list.append(i)
return page_list
if page < 7:
for i in range(1, 9):
page_list.append(i)
page_list.extend(["...", last_page - 1, last_page... | [
"[email protected]"
] | |
661644011cb7fd52e289e875561f343ed8320b55 | 7b74696ff2ab729396cba6c203984fce5cd0ff83 | /analysis/migrations/0020_auto_20200524_0933.py | 80926a6c092f0a2ecf1c00f9e2138a97d0a500d0 | [
"MIT"
] | permissive | webclinic017/investtrack | e9e9a7a8caeecaceebcd79111c32b334c4e1c1d0 | 4aa204b608e99dfec3dd575e72b64a6002def3be | refs/heads/master | 2023-06-18T12:57:32.417414 | 2021-07-10T14:26:53 | 2021-07-10T14:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | # Generated by Django 3.0.2 on 2020-05-24 01:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('analysis', '0019_auto_20200524_0859'),
]
operations = [
migrations.AlterField(
model_name='stockstrategytestlog',
na... | [
"[email protected]"
] | |
3e7d5739d2701988a82fde01995009a2af4221b8 | d152aa407b78640648cdafc005c8c2f9ee722dd6 | /lib/project_data.py | b8ffd2ff7bb359fb198b434c953edde43acf4ce7 | [] | no_license | bsmith89/sc-validate-haplotypes | 7bc4033d853f5529b9159d5157484deb85832252 | 1e9325db95330b5cf3c37f9270382680876afcc1 | refs/heads/main | 2023-09-03T13:22:17.657279 | 2021-11-09T17:20:42 | 2021-11-09T17:20:42 | 401,805,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | def metagenotype_db_to_xarray(df):
"""Convert from project database schema to a StrainFacts metagenotype.
"""
return (
df.rename_axis(columns="allele")
.rename(columns=dict(alternative_tally="alt", reference_tally="ref"))
.rename_axis(index=dict(lib_id="sample", species_position="po... | [
"[email protected]"
] | |
4d8b302264ff7450e02482b29129980a08e00304 | 997551673e3f08d83b966e35bb55c192f35c44c6 | /tests/test_schemas.py | 1dbcc7fbf49e7c01cc2445106c6ad0bd1451aece | [
"MIT"
] | permissive | lockefox/pyRobinhood | 6069f533f8733e8199bd22eaf9fce8da5b345aac | 8cfd9adf384d2da9d61287f483b0038195e2f476 | refs/heads/master | 2021-09-06T22:42:04.548824 | 2018-02-12T20:09:28 | 2018-02-12T20:09:28 | 116,594,721 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,771 | py | """test_schemas.py: validate responses from live Robinhood.com endpoints"""
import pytest
import jsonschema
import requests
import helpers
def test_api_root():
"""validate / has all expected routes"""
endpoint_list = {
'mfa': 'https://api.robinhood.com/mfa/',
'margin_interest_charges': 'https:... | [
"[email protected]"
] | |
ba1050f4f449533e84541451c37cbe5468b1e375 | be84495751737bbf0a8b7d8db2fb737cbd9c297c | /tests2/materials/test_ndir_btdf.py | 68d82a3eb938def30d40fded9d7f0910a8055d81 | [] | no_license | mario007/renmas | 5e38ff66cffb27b3edc59e95b7cf88906ccc03c9 | bfb4e1defc88eb514e58bdff7082d722fc885e64 | refs/heads/master | 2021-01-10T21:29:35.019792 | 2014-08-17T19:11:51 | 2014-08-17T19:11:51 | 1,688,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py |
import unittest
from random import random
from tdasm import Runtime
import renmas2
class TransmissionSampling(unittest.TestCase):
def setUp(self):
pass
def asm_code1(self, ren):
code = """
#DATA
"""
code += ren.structures.structs(("hitpoint",)) + """
uint32 nex... | [
"[email protected]"
] | |
f0a94d9d2d473018865e32f6034970de6d891486 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc080/B/3769232.py | ebaf3d3a32aa808a1603111549af9d0b2c17c8ed | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | import sys,collections
def solve():
H,W = map(int,input().split())
N = int(input())
L = list(map(int,input().split()))
ans = [["" for _ in range(W)] for _ in range(H)]
h,w = 0,0
for i,v in enumerate(L):
while v != 0:
if h % 2 == 0:
ans[h][w] = str(... | [
"[email protected]"
] | |
0550a909ac90ff9e96eb663552ef66bb57941547 | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Questran_LOC_pow_f_oral_susp_SmPC.py | 972f617ceafb8aa344c064ee17a6c67a8eae2cac | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | {'_data': [['Unknown',
[['Investigations',
u' f\xf6rkortad protrombin tid, f\xf6rl\xe4ngd protrombin tid, vikt\xf6kning, viktminskning.'],
['Blood',
u' Bl\xf6dningsben\xe4genhet, hypoprotrombinemi, anemi, lymfadenopati, ekkymos.'],
['Nervous system',
... | [
"[email protected]"
] | |
38d538d07d33b4c8a2d6259cc1bca71f2d0d91b8 | d7f45fac46598da9825a404d7511df7474237e4a | /ex.099.py | d39572b9a7a98a885df5df8b8c4d938d841ec59a | [] | no_license | MarceloBCS/Exercicios_Curso_em_video | b4a8cbc8573e1303065c0cf1baad25c47d5a2fd8 | a90fd67d83cf154f3554f962815fb791d3508d0c | refs/heads/master | 2022-12-29T19:15:50.007022 | 2020-10-13T05:09:28 | 2020-10-13T05:09:28 | 303,592,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | from random import sample
from datetime import date
from time import sleep
cor = {'red':'\033[1;31m', 'limp':'\033[m', 'az':'\033[1;34m'}
def maior(k):
c = len('Analisando os valores passados...')
print('=' * c)
print('Analisando os valores passados...')
if k == 0:
n = []
if k > 0:
... | [
"[email protected]"
] | |
8f6a56a0cb2adb1b054194442eca236cf9d057df | 48e4aedd813ab55fefd137ef22b2af3242012c19 | /lib/readConfig.py | 2b86849f4c882e1d7726174e98f56ffaede9d2e2 | [
"MIT"
] | permissive | philip-shen/MongoDB_TSEOTC_Crawler | 0b307917846606833ee804ea2f7061c4f0cb55df | 87d8dded2557eaca541499ccce6c8942476d3741 | refs/heads/master | 2020-04-17T16:47:53.638885 | 2019-01-29T13:30:26 | 2019-01-29T13:30:26 | 166,756,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import os
import codecs
import configparser
class ReadConfig:
def __init__(self,configPath):
self.configPath=configPath
#fd = open(self.configPath)
fd = open(self.configPath, encoding='utf-8')
data = fd.read()
# remove BOM
if data[:3] == codecs.BOM_UTF8:
... | [
"[email protected]"
] | |
1de34dbf8faa35f48aada6bff23b5847c55c0a3b | 72b18602ac21c9a1f1474a52c99b45ce9b825288 | /apptools/apptools-android-tests/apptools/versionCode.py | 0f202eff480f6e949bb09c7a5db82b022f5fabfd | [
"BSD-3-Clause"
] | permissive | anawhj/crosswalk-test-suite | 3f3b4cf2de2b3dfdfd15a7a2bbf45d0827f062f7 | 9fa4c96578f6bc95ae884ee943845c8d9a62fc17 | refs/heads/master | 2021-01-16T17:44:21.266562 | 2015-08-04T09:38:28 | 2015-08-04T09:38:28 | 40,181,956 | 0 | 0 | null | 2015-08-04T11:57:27 | 2015-08-04T11:57:27 | null | UTF-8 | Python | false | false | 7,418 | py | #!/usr/bin/env python
#
# Copyright (c) 2015 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... | [
"[email protected]"
] | |
4fef22836d27d35cc4f8d07acc6629da007ba6d3 | e29f8c29a993156b7de7b0451d63ad8cca51c9a6 | /zajecia10/zadanie_domowe/zadanie_domowe6.py | a968a7b4bbf1f9418fa17abbe7a86929bd3704a6 | [] | no_license | remekwilk/python_basic | d898ad26aba809eb14ebed9d94bd93db69154ffa | af145a9711dabca232dc5f5be8fe4c407a5fda54 | refs/heads/master | 2020-05-03T14:42:19.523070 | 2020-04-11T20:42:03 | 2020-04-11T20:42:03 | 176,701,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from loteria_funkcje import chybil_trafil, dodaj_zaklad, czy_jest_zwyciezca
wszystkie_zaklady = []
moj_zaklad = [1, 2, 3, 4]
dodaj_zaklad(moj_zaklad, wszystkie_zaklady)
for i in range(100):
losowy_zaklad = chybil_trafil()
dodaj_zaklad(losowy_zaklad, wszystkie_zaklady)
print(wszystkie_zaklady)
zwycieskie_li... | [
"[email protected]"
] | |
d7a32db31d3c7a9da78a58a494c7e6c264a6e10c | 22671693f8bf7e11b6ec2571f187eaba94810a35 | /day-01/day-01.py | 66dcca8960eec6cfb05bb09e60f16a0315304f4f | [] | no_license | timbook/advent-of-code-2018 | 9d4679d345ba9e108286b85134904ba8613e3327 | f9b62c3528cae66b4e9e60735d83dda43ea9cc05 | refs/heads/master | 2022-09-29T09:05:39.191564 | 2022-08-25T02:19:16 | 2022-08-25T02:19:16 | 159,948,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import sys
import os
with open("../data/01-input.txt", 'r') as f:
lines = f.readlines()
items = [int(n.strip()) for n in lines]
print("::: PART A")
print(f"FREQUENCY: {sum(items)}\n")
record = set()
freq = 0
done = False
while True:
for i in items:
freq += i
if freq in record:
pr... | [
"[email protected]"
] | |
0cfdb3d99d88dfe1c04b0ad5e0a4aa09ee652000 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/common/Lib/distutils/unixccompiler.py | 24a787da6e3d7bee12deb2c92f6079e414adaabd | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 8,204 | py | # 2017.02.03 21:58:03 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/distutils/unixccompiler.py
"""distutils.unixccompiler
Contains the UnixCCompiler class, a subclass of CCompiler that handles
the "typical" Unix-style command-line C compiler:
* macros defined with -Dname[=value]
* macros unde... | [
"[email protected]"
] | |
fbfc5a0933a68da21f882740ee160c58c51967f9 | 2a63d9e571323351868f72caee8a215d1a5a3617 | /cracking-the-coding-interview/ctci-bubble-sort.py | f95afbbc30efbe9aad7bbcb125a59d1ed0e049af | [] | no_license | JavierCabezas/hackerrank | eb66b16904d452e69f84fc6c67beb8fa60544e88 | 2c32093e7545d621c9158fd0422e91d5955b16d9 | refs/heads/master | 2021-01-14T07:46:35.179276 | 2020-03-02T00:07:08 | 2020-03-02T00:07:08 | 81,884,845 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | n = int(input().strip())
a = list(map(int, input().strip().split(' ')))
number_swaps = 0
for i in range(n):
for j in range(n - 1):
if a[j+1] < a[j]:
a[j + 1], a[j] = a[j], a[j + 1]
number_swaps += 1
print("Array is sorted in {0} swaps.".format(number_swaps))
print("First Element: {... | [
"[email protected]"
] | |
cec26d6da00096d0b6d4ca3b722c3252ef390eb5 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/157_v5/test_accents.py | 00e47c47c698345f81005a2762a0d7f4f640cf19 | [] | 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,103 | py | # _______ p__
#
# ____ ? _______ ?
#
# # texts taken from:
# # https://losviajesdedomi.com/las-15-ciudades-mas-bonitas-de-espana/
# # and:
# # https://www2.rocketlanguages.com/french/lessons/french-accents/
# texts
# ("Denominada en Euskera como Donostia, está "
# "situada en el Golfo de Vizcaya en la provinci... | [
"[email protected]"
] | |
a9dbe3d85b795366c42a2dca4450d111ad924806 | f26d67e3e9f8b90e5d6243279a1c2ce87fa41d46 | /src/prodstats/db/__init__.py | ccce13712ed04ac410ff119837cc10ccc21f8acd | [
"MIT"
] | permissive | OCB-DS/prodstats | cf554e3abee651463e9f81606d4b633f464658a7 | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | refs/heads/master | 2022-11-25T15:30:06.988683 | 2020-08-02T16:08:05 | 2020-08-02T16:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # flake8: noqa
import logging
import gino
from config import DATABASE_CONFIG, DATABASE_POOL_SIZE_MAX, DATABASE_POOL_SIZE_MIN
logger = logging.getLogger(__name__)
db: gino.Gino = gino.Gino(
naming_convention={ # passed to sqlalchemy.MetaData
"ix": "ix_%(column_0_label)s",
"uq": "uq_%(table_name)... | [
"[email protected]"
] | |
be5f84bdd762a47bd2e8d8f8e6560fa22e3d7252 | 0b20f4ce14b9ff77c84cedbecbaa29831335920d | /tests/common/goget/test_goget_base.py | 6fceebcf63ce6748fcc30c3fc5158fd279e5fee7 | [
"Apache-2.0"
] | permissive | sergesec488/checkov | 219c1b3864ab4f70b39a4cd79b041e98f3145364 | 56008e1c531b3626f14716067731be6e673040bc | refs/heads/master | 2023-04-10T12:26:49.749864 | 2021-02-26T18:36:52 | 2021-02-26T18:40:58 | 342,883,133 | 0 | 1 | Apache-2.0 | 2023-03-30T13:31:25 | 2021-02-27T15:01:08 | null | UTF-8 | Python | false | false | 483 | py | import os
import unittest
from tests.common.goget.local_getter import LocalGetter
class TestBaseGetter(unittest.TestCase):
def test_directory_creation(self):
current_dir = os.getcwd()
getter = LocalGetter(current_dir)
result_dir = getter.get()
print(current_dir)
print(res... | [
"[email protected]"
] | |
0b8c50f09cfd7e557aa018d9e64bb975e34ee8b2 | acbe6bd6cefaf8b12070d7258dab30e4f7fcebed | /tests/introspect/testInitNonFunction.py | 5ee1859253d354f127fef821f61f730071e1c884 | [
"MIT"
] | permissive | RogueScholar/debreate | 02c98c5a78d33041798410f0e3b99e80fda65d00 | dfe9bcac7333a53082b3a2ae169806cf604d59f6 | refs/heads/master | 2023-06-07T11:49:03.821969 | 2023-04-28T02:14:25 | 2023-04-28T02:14:25 | 253,707,766 | 0 | 0 | MIT | 2023-05-28T15:24:17 | 2020-04-07T06:34:47 | Python | UTF-8 | Python | false | false | 432 | py |
# ****************************************************
# * Copyright (C) 2023 - Jordan Irwin (AntumDeluge) *
# ****************************************************
# * This software is licensed under the MIT license. *
# * See: docs/LICENSE.txt for details. *
# ******************************************... | [
"[email protected]"
] | |
e8be4f8a2eb4e59320a4740f22abbba70ac66c02 | 75c4f5e6f840a14fed3e5d3e57012abf6d0e77db | /Pacote Dawload/Projeto progamas Python/ex1007 Diferença.py | 5234571cda69706fd7630b149bc7a6be7226d9e4 | [
"MIT"
] | permissive | wagnersistemalima/Exercicios-Python-URI-Online-Judge-Problems---Contests | fc378abca0264ceb7fa5feebc57df17d1372953a | d839a344b899c08f4199ff1ae22dd6ee931df6a2 | refs/heads/master | 2022-07-18T03:52:44.941510 | 2020-05-20T01:01:38 | 2020-05-20T01:01:38 | 264,508,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | #Ex1007 Diferença 09/04/2020
valor_a = int(input())
valor_b = int(input())
valor_c = int(input())
valor_d = int(input())
diferenca = valor_a * valor_b - valor_c * valor_d
print('DIFERENCA = {}'.format(diferenca)) | [
"[email protected]"
] | |
69848d8d6b615309e741c0e5995c99da100e36b3 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/kubernetes/checks/resource/k8s/KubeControllerManagerServiceAccountCredentials.py | 2000075d5c1086b60c6802f3d5acd29a8ffa723f | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,103 | py | from typing import Any, Dict
from checkov.common.models.enums import CheckResult
from checkov.kubernetes.checks.resource.base_container_check import BaseK8sContainerCheck
class KubeControllerManagerServiceAccountCredentials(BaseK8sContainerCheck):
def __init__(self) -> None:
id = "CKV_K8S_108"
na... | [
"[email protected]"
] | |
b7495338c27e7909104e693f683854f1eacbb5ce | 7cb3e5e16fd93e6f8a1c07c211cee16dc248ef5d | /venv/lib/python3.6/site-packages/django/core/mail/backends/filebased.py | 1037f4b3d03f833ad4f62d0f4ab687ba30d55d27 | [] | no_license | JustynaJBroniszewska/Blog | d74a8cb19fa037b834f5218522ff1397eb60d370 | cfd8efbcce3e23c7ebeea82b2e732de63c663ac8 | refs/heads/master | 2022-11-03T22:01:07.165652 | 2020-06-05T14:25:01 | 2020-06-05T14:25:01 | 266,791,768 | 0 | 0 | null | 2020-06-05T14:25:02 | 2020-05-25T13:52:19 | Python | UTF-8 | Python | false | false | 2,802 | py | """Email backend that writes messages to a file."""
import datetime
import os
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.mail.backends.console import EmailBackend as ConsoleEmailBackend
class EmailBackend(ConsoleEmailBackend):
def __init__(self, *ar... | [
"[email protected]"
] | |
10e27cc0f1cdf158c62d57f1fcd0b60c721571eb | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/aadiam/v20200701preview/__init__.py | efff6040c30972e572a699b04d5d0c8ba770037e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-azure-native | b390c88beef8381f9a71ab2bed5571e0dd848e65 | 4c499abe17ec6696ce28477dde1157372896364e | refs/heads/master | 2023-08-30T08:19:41.564780 | 2023-08-28T19:29:04 | 2023-08-28T19:29:04 | 172,386,632 | 107 | 29 | Apache-2.0 | 2023-09-14T13:17:00 | 2019-02-24T20:30:21 | Python | UTF-8 | Python | false | false | 324 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from .azure_ad_metric import *
from .get_azure_ad_metric import *
from . import outp... | [
"[email protected]"
] | |
3925dc3b8bf5f9bfef206788ab3039aeb80b6a9c | 6bf4e54f8ae95582b73bb969ba44069c64e87651 | /kdhi/main_site/migrations/0016_rok_individual_name_true.py | 87b886ada5621d6df781553e0e2727c809ce4525 | [] | no_license | speedycowenator/kdhi_migration | 4bc983c4656a2a87cb056461bfb4219e38da1a85 | 422b2e3f142a30c81f428fb8eaa813e4a71d56fc | refs/heads/master | 2022-11-14T13:27:51.520697 | 2020-07-02T19:31:12 | 2020-07-02T19:31:12 | 246,138,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # Generated by Django 2.2.5 on 2020-03-16 03:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_site', '0015_auto_20200315_2328'),
]
operations = [
migrations.AddField(
model_name='rok_individual',
name='nam... | [
"[email protected]"
] | |
6fff7a33ec4993a71006924c414459b7b912ac5e | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/goodweather/testcase/firstcases/testcase3_029.py | 1615709d896778e9e889f0338b549707f4674cfa | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"[email protected]"
] | |
aa91781b96d7642e15834414e4aa606fa0aac250 | a372a816373d63ad626a9947077e137eac2e6daf | /test/leetcode/test_SnapshotArray.py | f0c14e8d86207ff54939ccda9f60c2ea37835f38 | [] | no_license | DmitryPukhov/pyquiz | 07d33854a0e04cf750b925d2c399dac8a1b35363 | 8ae84f276cd07ffdb9b742569a5e32809ecc6b29 | refs/heads/master | 2021-06-13T14:28:51.255385 | 2021-06-13T08:19:36 | 2021-06-13T08:19:36 | 199,842,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,469 | py | from unittest import TestCase
from pyquiz.leetcode.SnapshotArray import SnapshotArray
class TestSnapshotArray(TestCase):
def test_get_closest_snap_id__123_1(self):
sa = SnapshotArray(1)
self.assertEqual(1, sa.get_closest_snap_id([1, 2, 3], 1))
def test_get_closest_snap_id__123_2(self):
... | [
"[email protected]"
] | |
b0bc199d141c65c18eb061d68f55044ec9df1e0d | a606893da1e354c7c617d0c9247b23118be2813a | /二叉树/1530.py | c667d4d4f62c56d93cb9d7f26420def687e14e1a | [] | no_license | lindo-zy/leetcode | 4ce6cb9ded7eeea0a6953b6d8152b5a9657965da | f4277c11e620ddd748c2a2f3d9f5f05ee58e5716 | refs/heads/master | 2023-07-22T06:19:00.589026 | 2023-07-16T12:35:14 | 2023-07-16T12:35:14 | 229,958,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def countPairs(self, root: TreeNode) -> int:
res = []
def... | [
"[email protected]"
] | |
38829a9e4b5166f3f94813441cc6e86222184a9a | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/densitymapbox/_lon.py | 01f0a45fe1ed12a0960dfc365a231700a0e093d3 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 393 | py | import _plotly_utils.basevalidators
class LonValidator(_plotly_utils.basevalidators.DataArrayValidator):
def __init__(self, plotly_name="lon", parent_name="densitymapbox", **kwargs):
super(LonValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
e... | [
"[email protected]"
] | |
654f89d213946c60e1ac0472df7ebdbd69014fe6 | f337c975d2446cf4c2ac4fb23a3f2c540a41d23d | /testing/date/test_datetimezone_klass.py | 3a3c84938a57e2077131e8f1edda2e89e62f3d8d | [
"MIT"
] | permissive | shendel/hippyvm | 9fca2bb479da8273a3036350f3f4e06c2d44afc9 | 26cc6675612e4ddc4d1b425d2731d34c97355c45 | refs/heads/master | 2021-01-15T15:31:04.689510 | 2014-04-14T08:54:33 | 2014-04-14T08:54:33 | 18,753,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,295 | py | import pytest
from testing.test_interpreter import BaseTestInterpreter
class TestDateTimeZone(BaseTestInterpreter):
def test_constructor(self):
output = self.run('''
$tz = new DateTimeZone('Pacific/Nauru');
echo get_class($tz);
''')
assert self.space.str_w(output... | [
"[email protected]"
] | |
a68582856ced763fc141c32c0220df5f01620038 | b627da650f75bdcf7e0dc0ef5c4419cf53a1d690 | /src/zqh_devices/zqh_bootrom/zqh_bootrom_parameters.py | 6517029efbcb015d18f624aad5b278aefbb369d4 | [] | no_license | Jusan-zyh/zqh_riscv | 4aa8a4c51e19fb786ba0c2a120722f1382994a52 | bccde2f81b42ac258b92c21bb450ec6ff848387a | refs/heads/main | 2023-08-06T12:56:52.420302 | 2021-09-21T01:25:41 | 2021-09-21T01:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import sys
import os
from phgl_imp import *
from zqh_tilelink.zqh_tilelink_node_module_parameters import zqh_tilelink_node_module_parameter
from zqh_tilelink.zqh_tilelink_parameters import zqh_tl_bundle_all_channel_parameter
class zqh_bootrom_parameter(zqh_tilelink_node_module_parameter):
def set_par(self):
... | [
"[email protected]"
] | |
a1cef2729bb056ca6f889a0eb5e4cf66ed69ab4d | 39e91ca0b536166b0a1e8ffb21b75440aa00466e | /dbplot/__init__.py | f2ea98df08eb65965acf6140b7fac972806aaf78 | [
"Apache-2.0"
] | permissive | danielfrg/dbplot | bd26f5560945c08324e5346519a51581e31aa830 | fa0902c61f79e05dac9b71934b9a233658cabeba | refs/heads/master | 2020-04-17T20:12:21.897004 | 2019-02-04T21:33:30 | 2019-02-04T21:33:30 | 166,895,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | """
DBPLOT
"""
from ._version import get_versions
__version__ = get_versions()["version"]
del get_versions
from dbplot.mpl import *
| [
"[email protected]"
] | |
87a7111cc408f1244c5c1e4ea5a047a52f48ac18 | 31b3ac7cc2f0cf43a4979e53d43002a9c5fb2038 | /detect pattern of length M repeated in array1.py | 1d723775c7a449082c18cd25734c9ebfaad3ab87 | [] | no_license | shreyansh-tyagi/leetcode-problem | ed31ada9608a1526efce6178b4fe3ee18da98902 | f8679a7b639f874a52cf9081b84e7c7abff1d100 | refs/heads/master | 2023-08-26T13:50:27.769753 | 2021-10-29T17:39:41 | 2021-10-29T17:39:41 | 378,711,844 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | '''
Given an array of positive integers arr, find a pattern of length m that is repeated k or more times.
A pattern is a subarray (consecutive sub-sequence) that consists of one or more values, repeated multiple times consecutively without overlapping. A pattern is defined by its length and the number of repetitions.... | [
"[email protected]"
] | |
e78dbe71cec3d1aa3f760ae589ea001a8b971dac | a1080c28573e1a59ec418ad3b0b0bf18e035dc41 | /Common Algos/Dynamic Programming/knapsack.py | d151e39b6b328cbf9cf0f327eb06c777b8b86c0f | [] | no_license | AumkarG/Algorithms-and-Data-Structures | 8c6fc21218897d2361fed1512dc6bb13eabd8842 | 03603ad579564ef213c58edd57cb8753cf8f86ba | refs/heads/master | 2023-03-04T09:48:25.167519 | 2021-02-14T17:16:18 | 2021-02-14T17:16:18 | 330,424,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | n=int(input())
m=int(input())
w=[int(i) for i in input().split()]
p=[int(i) for i in input().split()]
table=[]
for i in range(n+1):
table.append([0]*(m+1))
for k in range(w[0],m+1):
table[1][k]=p[0]
for i in range(1,n):
weight=w[i]
profit=p[i]
for j in range(1,m+1):
if j<weight:
... | [
"aumkaar,[email protected]"
] | aumkaar,[email protected] |
507c104bb82cec4979e1d42788699aa47f9a1f71 | 014d996ab984699bf9fccc9f92b6925fca65fea9 | /lista/src/ex11.py | 8e49def459b8c2aaecc146889fb7e7891ed37f0e | [] | no_license | fernandooliveirapimenta/python | e04fb7dbb002761da64cdff3eac987e91e2cb43f | f174b0f35cd3918e5c17a96deab59e4ae7e191ab | refs/heads/master | 2022-10-10T09:02:39.382974 | 2020-10-27T18:00:48 | 2020-10-27T18:00:48 | 208,432,260 | 0 | 0 | null | 2022-09-20T22:15:58 | 2019-09-14T11:43:18 | Python | UTF-8 | Python | false | false | 283 | py | larg = float(input('Largura da parede: '))
alt = float(input('Altura da parede: '))
area = larg * alt
print('Sua parede tem a dimensao de {}x{} e sua area é de {}m2'.format(larg, alt, area))
print('Para pintar essa parede, você vai precisar de {} litros de tinta'.format(area / 2)) | [
"[email protected]"
] | |
0bfff896c1fb061d612f9c67d83aeafadf8d1a8d | 7b91550bb272385d74f9868b8d18bbb5757c0c7c | /workertier/backends/cache/memcluster/dns.py | bf23625a603cbf2377caa3e46fedc669300ab671 | [
"Apache-2.0"
] | permissive | krallin/tutorial-workertier | c0becd4566bf951df60d5d28f569ecb684433a8b | ab579cbe9d68adee26209a8b6b092ef9895fda65 | refs/heads/master | 2023-08-31T10:45:06.326063 | 2013-09-03T19:15:48 | 2013-09-03T19:15:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | #coding:utf-8
import logging
from gevent import dns
from workertier.backends.cache.memcluster import BaseMemcachedClusterCache
logger = logging.getLogger(__name__)
class DNSMemcachedClusterCache(BaseMemcachedClusterCache):
def __init__(self, domain, port, timeout, refresh_signal):
super(DNSMemcachedCl... | [
"[email protected]"
] | |
16358668e72c2d4470391eb9b565ac07a520392e | f891828ffe9c8501d276560c8c52d319f284056f | /285_bst_inorder_successor_m/main.py | 39f43c7a1696d08865e214ac086d1e2452a87734 | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def inorderSuccessor(self, root, p):
"""
:type root: TreeNode
:type p: TreeNode
:rtype: T... | [
"[email protected]"
] | |
19afb8673972e5cc6b22b16a764caa23317a77aa | 7c688104f1fd816be603257116fb27040c620db3 | /RemoveDupSortedListTwo.py | 65ca336e74a6f2c02c62ee337edd742dcf97b492 | [] | no_license | xyzhangaa/ltsolution | 5e22c6a12e1ba9f6dea18be69d45c6ac14bc4fe5 | 9445ba22d5f0c12fd12b17e6791d1b387f1c4082 | refs/heads/master | 2020-05-21T11:37:58.781437 | 2015-10-14T14:45:04 | 2015-10-14T14:45:04 | 32,817,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | ###Given a sorted linked list, delete all nodes that have duplicate numbers,
###leaving only distinct numbers from the original list.
###For example,
###Given 1->2->3->3->4->4->5, return 1->2->5.
###Given 1->1->1->2->3, return 2->3.
#O(n), O(1)
class ListNode:
def __init__(self,x):
self.val = x
self.next = None... | [
"[email protected]"
] | |
198a751c7ef0698faac7959a9358d589b7b908f2 | 0a65d42f4f0e491cb2aada408401b94909f821c2 | /management/management_main/migrations/0001_initial.py | 1b30ce4bcc4d93d51f9cdb030eb6dbbf7f77a6db | [] | no_license | jmadlansacay/_Office | 3acde7655784e91c7dcecfc853d4f36cdfeef028 | 7f46449b9f7e8e892e2e0025ba493259197fa592 | refs/heads/main | 2023-07-28T10:23:54.680822 | 2021-09-11T02:28:07 | 2021-09-11T02:28:07 | 379,155,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | # Generated by Django 2.2.5 on 2021-01-01 02:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('management_accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"[email protected]"
] | |
f71dfa7c6489547a83673da08aed8c223511a034 | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part3/updated_part2_batch/jm/parser_errors_2/101032623.py | d0b164169b518ca6bdd2b447b5d28c4a453d6b87 | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 1,794 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 101032623
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 2, 3)
assert board is... | [
"[email protected]"
] | |
0e157e83d1cba0ce1ad766f371ea6de09d9138db | 26a73e4df854313aa213882c5d3db16269a3254b | /hist/ks_tests.py | 8955ce6d77eb8499cb5ac19bb688c03dcfba6f23 | [] | no_license | howonlee/vr-timeseries-analysis | 69b18c35589d84e12ace02671a45d97443dbf333 | bec34c7088e897fb17c424cfcd0da687223e44df | refs/heads/master | 2020-04-11T10:59:04.375920 | 2015-06-11T00:13:26 | 2015-06-11T00:13:26 | 33,697,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import scipy.stats as sci_stats
import numpy as np
import matplotlib.pyplot as plt
with open("total_correlations") as correlations_file:
corrs = map(lambda x: float(x.strip()), list(correlations_file))
#corrs_sum = float(sum(corrs))
#norm_corrs = [corr / corrs_sum for corr in corrs]
with open("total_gamma... | [
"[email protected]"
] | |
8000a18e2e630764b2ef77d3854c06b4ca2e8ac0 | d10190ccc03c89032cc44738d275010eb62b46f3 | /urlybirdlite/urls.py | 708427a25564d74d0ed4ec804ecc5e5601ef32a7 | [] | no_license | bekkblando/urlybirdlite-fixed | 659aa236110c088ff606c57ed23e5d0f1216ea09 | 84dec1c712210fd04628592a187154446e60ad43 | refs/heads/master | 2021-01-15T13:00:03.854463 | 2015-08-18T14:15:39 | 2015-08-18T14:15:39 | 38,802,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | """urlybirdlite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Clas... | [
"[email protected]"
] | |
9e10a26d7e2bcaab2aa9a47e0250f1b7413dd2cc | 9bed711e5b7c4fbeb556c2cea918adcf1de94bdc | /app_reports/templatetags/app_reports_tags.py | 90752faa82b4f5f8ca96d36211a37cec1d85c665 | [] | no_license | imagilex/django_main_apps | bc6e900db4cab2a0603f14c844e769faf93be3a3 | fa52958a384fdb06121b17b64967a2e0c8e468cd | refs/heads/env_dev | 2022-11-24T09:05:17.523336 | 2021-03-03T04:29:44 | 2021-03-03T04:29:44 | 232,409,309 | 0 | 1 | null | 2022-11-22T05:47:32 | 2020-01-07T20:17:04 | Python | UTF-8 | Python | false | false | 2,160 | py | from django import template
from app_reports.models import Esfera
register = template.Library()
@register.inclusion_tag('app_reports/esfera/card.html')
def esfera_card(user, context):
"""
Inclusion tag: {% esfera_card user %}
"""
esferas = []
for esfera in Esfera.objects.all():
if esfera... | [
"[email protected]"
] | |
400887601c2793e3af1e6dc4a7b58058d3bfc0b5 | d8546aa0fc53775300b0f9d86cb705b0e5157890 | /arguments3.py | 774bd879eab7653b57e5e9a9eaa21b5a18a1a8fd | [] | no_license | larago/click | ecf02e7462ada4c41e685480dde239ece2f1749d | 89bedb148398965a9046777b18d3e02e10c1630b | refs/heads/master | 2021-04-30T16:26:20.722104 | 2017-01-26T12:41:21 | 2017-01-26T12:41:21 | 80,103,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #encoding=utf8
import click
@click.command()
@click.argument('src', nargs=-1)
@click.argument('dst', nargs=1)
def move(src, dst):
click.echo('move %s to %s' % (src, dst))
move()
| [
"[email protected]"
] | |
e4a65033a44b01d85d2d3eaec791905f28567ada | a25223f5be818b549323e8232c31a606fcca275a | /work/lib_learn/fuzzy_learn.py | dbb281d2d370d084e8bde9994599c3168320dde1 | [] | no_license | Jsonming/workspace | 4ef1119606b3c138ff9594b3e0cf16de8077e28d | 2ac1b07d85deeb611600f5e64083c4eb0688fdb4 | refs/heads/master | 2020-06-13T04:23:15.492080 | 2020-03-31T10:34:30 | 2020-03-31T10:34:30 | 194,531,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/9/30 10:48
# @Author : yangmingming
# @Site :
# @File : fuzzy_learn.py
# @Software: PyCharm
| [
"[email protected]"
] | |
6753a86ca1666946b2512abe25045282bb3863fc | a110805b0e0cf26d1da8e6276ec6883ed4297752 | /SOLUCIONES/SOLUCIONES/intermedio I/ejemplos/fecha_hora_sistema.py | 5668b7246f9d8e1eddcdf6fb495eda480aa0f7b3 | [] | no_license | dayes/curso_Python | a1e77725bd8ab4c287589f15e36849817bcb39e8 | 352b0505a5e3d6f3310893b5c87d1eab31a2a66d | refs/heads/master | 2020-03-22T07:37:54.487944 | 2018-07-13T10:59:40 | 2018-07-13T10:59:40 | 139,713,481 | 0 | 0 | null | 2018-07-04T11:40:03 | 2018-07-04T11:34:55 | null | UTF-8 | Python | false | false | 273 | py | # fecha y hora del sistema:
import time
t = time.strftime("%H:%M:%S")
d = time.strftime("%d/%m/%y")
d2 = time.strftime("%d/%m/%Y")
dt = time.strftime("%d/%m/%Y %H:%M:%S")
print ("time: ", t)
print ("date: ", d)
print ("date: ", d2)
print ("datetime: ", dt)
| [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.