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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1f0fd884caa02d3685d91a38f543a61d4f4c35fd | 312a8fde11293cb142334a3860966ec1f75ac401 | /timesketch/lib/analyzers/contrib/__init__.py | 7c0d5d88fdd9c75789919c74eb42737eae4341a4 | [
"Apache-2.0"
] | permissive | google/timesketch | f0fd09062a8a24bac581d2d4286d095d667d2f10 | 24f471b58ca4a87cb053961b5f05c07a544ca7b8 | refs/heads/master | 2023-08-31T21:48:19.602686 | 2023-08-31T11:24:17 | 2023-08-31T11:24:17 | 21,009,909 | 2,263 | 647 | Apache-2.0 | 2023-09-14T14:08:07 | 2014-06-19T17:49:45 | Python | UTF-8 | Python | false | false | 813 | py | # Copyright 2022 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | google.noreply@github.com |
abe8566f63107cd5f40e1645166a83765b1cfed1 | f6b1db8c0503a292f6a1da31800269e0bb5f39bd | /web_flask/5-number_template.py | 431a96556f0e1ae94db91f4d1e262f0713d039f8 | [] | no_license | arleybri18/AirBnB_clone_v2 | 142883fde2629c7eb75dddc8e4375a9ca1714555 | 111cabf15cadba09f018b2fe359eec68495035dc | refs/heads/master | 2020-07-07T03:44:31.456739 | 2019-09-09T15:16:55 | 2019-09-09T15:16:55 | 203,235,771 | 0 | 0 | null | 2019-08-19T19:21:54 | 2019-08-19T19:21:54 | null | UTF-8 | Python | false | false | 1,069 | py | #!/usr/bin/python3
""" Import flask class """
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def hello():
""" Function to handle request """
return 'Hello HBNB!'
@app.route('/hbnb')
def hello_hbnb():
""" Function to handle request to path /hbnb """
return 'HBNB'
@ap... | [
"arleybri18@gmail.com"
] | arleybri18@gmail.com |
178f94e8e5286eb5012579f4c8562e0b113ac483 | 5a1cb546cb5132cc98e8a08acc6233540bc2dd34 | /forms.py | 2ea5dd93c573fdf1bc0e5fea25e98bbc4f5492d8 | [] | no_license | RitikaSingh02/ChitChat | 75cf19e00ce6c12a35cc081e55c4e0b378ee3347 | 9575daf0e61ba2f20797dfadf6ba246470dafbe0 | refs/heads/master | 2023-05-23T21:21:25.138134 | 2021-06-20T19:00:43 | 2021-06-20T19:00:43 | 378,376,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField
from wtforms.validators import InputRequired, Length, EqualTo, ValidationError
from models import User
def invalid_credentials(form, field):
""" Username and password checker """
password = field.data
username = form.usernam... | [
"ritika2002singh@gmail.com"
] | ritika2002singh@gmail.com |
736e3c73364bb68691205bce0d3d43310bb53493 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/azuredata/v20200908preview/sql_managed_instance.py | 8824bb87b76c7f442079127163d4a2a50cf216fa | [
"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 | 8,761 | 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
from... | [
"noreply@github.com"
] | test-wiz-sec.noreply@github.com |
7ddbd53246a76a75ab59a084952c7bcf676d9df6 | 769843f3cb57b9a0e1c68d02637b881bd43a103b | /nanodet/model/arch/gfl.py | b39eb616f9a7f0d17203d726452db6c449690856 | [] | no_license | CaptainEven/MyNanoDet | 9de3165ff14140eeabb362e793d8903f93cfdf77 | 9f5e5835bff8854d8d8c0041a7b3288ab017d7b6 | refs/heads/master | 2023-02-11T13:12:59.651520 | 2021-01-06T06:52:11 | 2021-01-06T06:52:11 | 319,273,525 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from .one_stage import OneStage
class GFL(OneStage):
def __init__(self,
backbone_cfg,
fpn_cfg,
head_cfg, ):
"""
:param backbone_cfg:
:param fpn_cfg:
:param head_cfg:
"""
super(GFL, self).__init__(backbone_cfg,
... | [
"765305261@qq.com"
] | 765305261@qq.com |
db47d5fc38a06024d4c392f065371e46135a7707 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03608/s871426346.py | ab335095f513950ba52948b0a955d92571997d3a | [] | 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 | 514 | py | from scipy.sparse.csgraph import floyd_warshall
import numpy as np
from itertools import permutations, combinations
n,m,R = map(int,input().split())
r=list(map(int,input().split()))
for i in range(R):
r[i]-=1
d = np.zeros((n,n))
# 入力
for i in range(m):
a,b,c = map(int,input().split())
a,b = a-1, b-1
d[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8442183c9909a042b13be80ea1fe9cd51b162c5e | fb64776f71eb2a469395a39c3ff33635eb388357 | /apps/accounts/tests/unit/services/test_session_service.py | 18ae5c6a9b811a936437f0a623fdd3f5404cbe91 | [
"MIT"
] | permissive | jimialex/django-wise | ec79d21c428fd1eea953362890051d2120e19f9e | 3fdc01eabdff459b31e016f9f6d1cafc19c5a292 | refs/heads/master | 2023-04-30T20:59:51.625190 | 2021-05-10T06:55:40 | 2021-05-10T06:55:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,101 | py |
# -*- coding: utf-8 -*-
import json
import pytest
import requests_mock
from doubles import allow
from google.oauth2 import id_token
from rest_framework import status
from apps.accounts.models import User
from apps.accounts.api.error_codes import AccountsErrorCodes
from apps.contrib.api.exceptions.base import APIBase... | [
"vicobits@gmail.com"
] | vicobits@gmail.com |
4699ac187da996ef09de31aa7def4cdc34852f34 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/help.py | 0fc91d3eca0088a241bd20d9a83259c5cb961425 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 1,379 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
56d9545172d93dc81f00b75c4467ced42d10d46d | 5e0de59693445ef463e8c6a8c05876aa9d975e9a | /student/views.py | cbd41d5ec89b0e3f8c2689c6ddd658b403c5ec6b | [] | no_license | ZhonggenLi/Student-Management-Web- | e511691f4d625e80b5f4460dce7c13788faffd14 | f5a5c30d171a182abe660bccd2c407d3f6ccf7b4 | refs/heads/master | 2022-12-02T08:05:43.493136 | 2020-08-09T02:00:19 | 2020-08-09T02:00:19 | 285,771,013 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,785 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.db import models
from student.models import Student
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import redirect
# Create your views here.
@csrf_exempt
def insert(request):
if request.POST:
... | [
"you@example.com"
] | you@example.com |
2c5e7974069afe82223007f602552e7aa63c0b86 | f810836bea801f2fa85418ac7f5f5ffb0f3e0bda | /abc/abc107/B - Grid Compression.py | 81b610852a92bc42137f84cad2c058bfd44c6c07 | [] | no_license | cocoinit23/atcoder | 0afac334233e5f8c75d447f6adf0ddf3942c3b2c | 39f6f6f4cc893e794d99c514f2e5adc9009ee8ca | refs/heads/master | 2022-08-29T06:01:22.443764 | 2022-07-29T07:20:05 | 2022-07-29T07:20:05 | 226,030,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | h, w = map(int, input().split())
grid = []
for i in range(h):
temp = list(input())
if set(temp) != {'.'}:
grid.append(temp)
transpose = [list(x) for x in zip(*grid)]
ans = []
for l in transpose:
if set(l) != {'.'}:
ans.append(l)
ans = [list(x) for x in zip(*ans)]
for l in ans:
print(... | [
"cocoinit23@gmail.com"
] | cocoinit23@gmail.com |
23d42de74d03b489f2e51fe784d08a6877779f89 | 6b7c93ee4dc224e3041cd3df8e1d8ab128144cb8 | /dodo.py | 27adb2c078501374359755278adfcebcf6302b9e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | philip-luk-tangent-anim/doit-py | df915b88d7d3e9964f2d1463d3255ae9c415f2da | 500731ce25e89f327d190b7b8b3fc02bbd71c0f1 | refs/heads/master | 2022-09-08T08:44:06.172002 | 2020-05-24T12:35:05 | 2020-05-24T12:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | import glob
import subprocess
from doitpy.pyflakes import Pyflakes
from doitpy.coverage import PythonPackage, Coverage
from doitpy.package import Package
from doitpy import docs
DOIT_CONFIG = {'default_tasks': ['pyflakes', 'test']}
def task_pyflakes():
flakes = Pyflakes()
yield flakes.tasks('*.py')
yie... | [
"schettino72@gmail.com"
] | schettino72@gmail.com |
b98590e375b6fc48f66d64b21aa03c098ed29e85 | c9d3b03512dc3b2d268d0e99560889226322487c | /ggH01j/cut_hww_7TeV/mH125bkg/shape.py | 0fd39b064743c2b4a2496e9d1923046b12560d07 | [] | no_license | latinos/DatacardsConfigurations | 57f9d8707b3987de0491c66aa9533f9447cfb043 | 25827f8f8284d50d680ce1527e3b8c17c27d7c4a | refs/heads/master | 2021-01-22T03:05:27.692914 | 2015-04-13T08:22:02 | 2015-04-13T08:22:02 | 14,419,053 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | lumi=4.94
chans=['of_0j','of_1j', 'sf_0j', 'sf_1j']
# set of mc samples: 0j1j, vbf
mcset='0j1j-mH125'
dataset='Data2011'
variable='mll' # remember, y:x
selection='hww2011'
# TTree::Draw style as in h(nx,xmin,xmax, ny,ymin,ymax)
# shape range. can be an
# - hard-coded label
# - a tuple (nx,xmin,xmax)
# - 2d tuple (nx... | [
"massironi.andrea@gmail.com"
] | massironi.andrea@gmail.com |
3a2c6507f4c805423f50e8689b45a9aa9f1b7965 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4342/codes/1764_1577.py | 7620b15a0235fac3283e2333810c92277d214f4a | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from numpy import *
acel=array(eval(input("aceleracao:")))
vo=array(eval(input("velocidade inicial:")))
N=int(input("numero positivo?"))
i=0
t=0
s=(((acel)*(t**2))/2)+ (vo*t)
while() | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
c87505ef499af065bd826fc255a3323af1107f30 | b503e79ccfca67c8114f5bd7a215f5ae993a0ba4 | /airflow/security/permissions.py | 983ebbd7f48ef4f41509dfb4a9f356808687fe2a | [
"Apache-2.0",
"BSD-3-Clause",
"Python-2.0",
"MIT"
] | permissive | github/incubator-airflow | df1d9780f862ea1df8261ea6015dd50a4583f983 | 73f70e00b9fd294057f8ca6b714a85622f6d5dd5 | refs/heads/gh-2.0.2 | 2023-07-29T18:08:43.140580 | 2022-09-14T18:23:42 | 2022-09-14T18:23:42 | 80,634,006 | 24 | 27 | Apache-2.0 | 2023-04-18T04:24:36 | 2017-02-01T15:34:55 | Python | UTF-8 | Python | false | false | 2,390 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | github.noreply@github.com |
dbbff8315c06c6efb75d5de5c32e6314eb711158 | ecf2511642e0e8fb11616249b062a7c8a130d137 | /src/python_files/points_class.py | dadf59288293c9da1f916d04059e19ca530a1227 | [] | no_license | zaddan/apx_tool_chain | 61abc9d6958ce17d9823ac7bf71ae3097f76decf | ef81dd6515f110d3c8a4b62a642d44d9a4327a79 | refs/heads/master | 2021-01-24T06:37:12.248020 | 2017-04-08T20:39:08 | 2017-04-08T20:39:08 | 40,195,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,980 | py | import copy
import sys
import math
import numpy
import settings
import input_list
from calc_psnr import *
from inputs import *
from extract_result_properties import *
#**--------------------**
#**--------------------**
#----disclaimers::: SNR needs to modified when noise is Zero
#**--------------------**
#------------... | [
"behzadboro@gmail.com"
] | behzadboro@gmail.com |
c2ae43c2b91dac46aa6f964347b09d8dd965258b | 147d0863f4590649a90ea5f78c66974723a87247 | /api/views.py | dd4ab9ddecab2559c7faf133dec1c6c30553d792 | [] | no_license | jinchuika/ligabot | af5bd5443dc0df7d929e7b866869ba075c91db55 | 69544912e1ac46f281ba2fc78ff913d60d9a2a38 | refs/heads/master | 2021-01-20T12:50:32.894359 | 2017-05-08T14:07:47 | 2017-05-08T14:07:47 | 90,419,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | from django.db.models import Q
from .serializers import MatchSerializer, TableSerializer, CompetitionSerializer, FixtureSerializer, TeamSerializer
from rest_framework import mixins, generics, viewsets
from api.api_request import RequestHandler
from api.models import Competition, Fixture, Team
class TeamMatchListView(... | [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
ce2c59b57ea5030b3747f41fc82eb48cbecb159b | d44cbbed1061299c733239c513bfa7f530d97be2 | /adminalerts/tests/test_permissions.py | 13f3d1ee56e0790799de2df81bc0c2806d155c80 | [
"MIT"
] | permissive | raonyguimaraes/sodar_core | f6cb331b31476be595ff0d5a279b82f6871530ff | 903eda944ed75aaf54b74d959ef634790c042e57 | refs/heads/master | 2022-07-24T20:00:33.442200 | 2020-04-24T14:03:47 | 2020-04-24T14:03:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | """Tests for permissions in the adminalerts app"""
from django.urls import reverse
# Projectroles dependency
from projectroles.tests.test_permissions import TestPermissionBase
from adminalerts.tests.test_models import AdminAlertMixin
class TestAdminAlertPermissions(AdminAlertMixin, TestPermissionBase):
"""Test... | [
"mikko.nieminen@bihealth.de"
] | mikko.nieminen@bihealth.de |
a58fb6876185be87b47b79b2b86347d8d57364b3 | d15bdaddab59d1cfea76790004cbad3e5f0c2c55 | /batkin/build_isolated/base_local_planner/catkin_generated/generate_cached_setup.py | a99877387161efbb0a4785123c2005e570c2c1ff | [] | no_license | gychen-n/robot | 4265a1ff469d22550b6b537d1c81aa846ee7641a | 0663a33aea2c2de9e3ac5863307619091e5b5959 | refs/heads/main | 2023-04-10T13:32:06.623682 | 2021-04-16T00:41:04 | 2021-04-16T00:41:04 | 358,431,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
beca6c6a6fdc8c07bf59fafda1a3c0a1f35f7377 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ABC/abc101-abc150/abc125/d.py | 65d866fb02f012f8ac51ed868bc202f0c9c93fe5 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 426 | py | # -*- coding: utf-8 -*-
def main():
n = int(input())
a = list(map(int, input().split()))
minus_count = 0
abs_min = float('inf')
ans = 0
for ai in a:
if ai < 0:
minus_count += 1
abs_min = min(abs_min, abs(ai))
ans += abs(ai)
if minus_c... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
1c65e874cc500c5891439e350e89441caa59a097 | 14abe13bff2c346430ec7129c49a79ff4f52c5b0 | /canteen_tests/test__main__.py | 30b0a9135238a41d45d9bfcb92a8f477f5f1e761 | [
"MIT"
] | permissive | ianjw11/canteen | 9a3122deed73a545aa8cc0c51b6913e945e23e39 | cfc4ef00ec67df97e08b57222ca16aa9f2659a3e | refs/heads/master | 2021-01-21T02:41:11.139310 | 2014-07-09T15:59:05 | 2014-07-09T15:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
'''
canteen: main tests
~~~~~~~~~~~~~~~~~~~
tests things at the top-level package main for canteen.
:author: Sam Gammon <sg@samgammon.com>
:copyright: (c) Sam Gammon, 2014
:license: This software makes use of the MIT Open Source License.
A copy of this license is incl... | [
"sam@keen.io"
] | sam@keen.io |
3d2bd8ff970e7a9fa6ed06d06362d446b3f710cd | 41dbb27af3a3ecabeb06e2fb45b3440bcc9d2b75 | /client/migrations/0001_initial.py | 8e69fdd04b310bf4d984b437435a5d02419dcaa0 | [] | no_license | joypaulgmail/Dookan | 4df83f37b7bcaff9052d5a09854d0bb344b9f05a | 7febf471dd71cc6ce7ffabce134e1e37a11309f7 | refs/heads/main | 2023-03-02T04:10:19.611371 | 2021-02-09T11:45:32 | 2021-02-09T11:45:32 | 336,476,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | # Generated by Django 3.1 on 2020-11-28 06:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ClientDetail',
fields=[
('id', models.AutoFie... | [
"joypaul650@gmail.com"
] | joypaul650@gmail.com |
5138f623d82eed67afff76da96329637b5feec7f | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/tests/sparse/test_pivot.py | 44a8194bd5813d75ac10e22e2c0fafc7a5de7834 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | import numpy as np
import pytest
import pandas as pd
import pandas.util.testing as tm
@pytest.mark.filterwarnings("ignore:Sparse:FutureWarning")
@pytest.mark.filterwarnings("ignore:Series.to_sparse:FutureWarning")
@pytest.mark.filterwarnings("ignore:DataFrame.to_sparse:FutureWarning")
class TestPivotTable:... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
90f9d81e1ac37422b6bc4c3d5187d3f54eb2b54c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_083/ch129_2020_04_01_17_04_56_778073.py | 63194e8b169fab2b441de017db0cc2185bde9181 | [] | 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 | 211 | py | def verifica_quadrado_perfeito(n):
i=1
y=1
while n>=i:
y=n-i
if y==0:
return True
else:
return False
i+=2
print(verifica_quadrado_perfeito(25)) | [
"you@example.com"
] | you@example.com |
a0e585c73ccd0f53b6602f193b8f888584358b58 | 0fd2b832673946c9ee532686a2a35bf2680f8408 | /CybORG/CybORG/Shared/Actions/GlobalActions/ListGames.py | 76795b71f41c8585e6fe71ad744f82fc4ac7f0bd | [
"MIT"
] | permissive | pvu1984/cage-challenge-2 | 4e57bad7bc30c7df2b90c2fabc8395a5f2a3e65c | e76722dcd79a6b7511e185cde34fac1e0b45720e | refs/heads/main | 2023-09-02T15:11:32.072215 | 2021-11-12T02:33:19 | 2021-11-12T02:33:19 | 429,307,660 | 0 | 0 | MIT | 2021-11-18T05:27:36 | 2021-11-18T05:27:35 | null | UTF-8 | Python | false | false | 477 | py | # Copyright DST Group. Licensed under the MIT license.
from CybORG.Shared import Observation
from .GlobalAction import GlobalAction
class ListGames(GlobalAction):
"""Get a list of all active games """
def emu_execute(self, team_server) -> Observation:
self._log_info("Listing games")
obs = Ob... | [
"david@pop-os.localdomain"
] | david@pop-os.localdomain |
3a241204309bb872de8646ff5018a65a4c3b3f50 | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code/ch713.py | 0b37f65b4505c1c49f2186b0ad00f91dad64d26c | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python
#coding=utf-8
"""
# 多載overloading觀念, 註解的這個區塊無法在Python裡正常運作.
class Obj:
def __init__(self):
pass
def func(self, x=0):
print "func: x = %d ", x
def func(self, x=0, y=x+x):
print "func: x = %d, y = %d", x, y
def func(self, y=0):
print "func: y = %d ... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
b59d95850094a8e35402245c52ec57944a360d0d | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/resource_py3.py | 5de1d2d3bb943026662197eb95d8d4819b5633fb | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,617 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | xiafu-msft.noreply@github.com |
632531ce3e51e510b87b765c03cfa5f6ea264d16 | e1a78591c9702a7e61fbf076d78b59073ff33c37 | /InternetSemLimites/core/tests/test_fame_view.py | e938694682951acc076cf431f78fd1435b7febff | [
"MIT"
] | permissive | sebshub/PublicAPI | eb26f22a34a7022bccd6aaecdfa0c35e5fdf4c7a | 82677389430a30ad82be9fa81643431d9db24f0c | refs/heads/master | 2021-01-19T19:06:40.791795 | 2016-04-14T22:18:43 | 2016-04-14T22:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | from django.shortcuts import resolve_url
from django.test import TestCase
from InternetSemLimites.core.models import Provider, State
class TestGet(TestCase):
def setUp(self):
sc = State.objects.get(abbr='SC')
go = State.objects.get(abbr='GO')
props = {'name': 'Xpto',
'url... | [
"cuducos@gmail.com"
] | cuducos@gmail.com |
049c15190f0142931a95e324dcc39ec13e781818 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather1_W_change_C_fix_2blk/ep0_test/pyr_0s/L5/step10_a.py | 4ff6c76e23f16f7c54b25b5ca0b4b4c49fbd9a01 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,733 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
1acdfb1920626d1363c04b1ba023704c5c8ca65d | 0676f6e4d3510a0305d29aa0b1fe740d538d3b63 | /Python/FitPLine/InterpPline.py | 6390298333cf36a43eb18f5776c4babdb66361c4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | pgolay/PG_Scripts | f70ffe7e5ca07acd6f4caedc9a9aec566542da7c | 796704a7daa6ac222a40bb02afdb599f74a6b0d4 | refs/heads/master | 2021-01-19T16:53:41.525879 | 2017-02-07T18:26:10 | 2017-02-07T18:26:10 | 2,730,362 | 9 | 1 | null | 2016-12-30T17:58:08 | 2011-11-08T00:04:33 | Python | UTF-8 | Python | false | false | 482 | py | import Rhino
import scriptcontext as sc
import rhinoscriptsyntax as rs
def Test():
pLineId = rs.GetObject("Select a polyline", 4, preselect=True)
if pLineId is None: return
pLineObj= sc.doc.Objects.Find(pLineId)
rc, pLine = pLineObj.Geometry.TryGetPolyline()
ang = Rhino.RhinoMa... | [
"noreply@github.com"
] | pgolay.noreply@github.com |
d031f9d17e6d7442b98764362e2808e3192189ab | 25e627d2931b89eb53d7dad91b200c1c29fe0233 | /code/lab_05_Important_Trick/sys_demo(3).py | 0740b2d3d833b437ef0f896f320dcf4511a6b1a6 | [] | no_license | tcano2003/ucsc-python-for-programmers | efb973b39dbff9a7d30505fecbd9afb1e4d54ae9 | cc7fe1fb9f38f992464b5d86d92eb073e18e57d5 | refs/heads/master | 2020-03-26T22:13:29.256561 | 2018-08-26T14:54:08 | 2018-08-26T14:54:08 | 145,442,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #!/usr/bin/env python3
"""Demonstrating the sys module."""
import sys
def DemoOpenStreams():
"""Demos stderr, stdout and stdin. Also sys.exit()"""
sys.stderr.write('You can write to stderr.\n')
print (>> sys.stderr, "You might like the >> syntax.") # look this up how to convert to Python 3
... | [
"traviscano@msn.com"
] | traviscano@msn.com |
cc176a774c950fca1179196f76975994db0ffdf0 | 82042141439ae004fc38bb2ef6238f36ec6bb050 | /accounting/tables.py | e59289b4a7eb9e31422231abdbecd07c0d90f405 | [] | no_license | psteichen/clusil-intranet | 2e9a2cf3b00692a4ef441ebf669af4e63945e9a2 | 5c028d33f6a8559af57a4eeb02fc0f612cb1b261 | refs/heads/master | 2021-07-13T15:40:06.464105 | 2020-06-30T19:51:00 | 2020-06-30T19:51:00 | 27,195,950 | 2 | 1 | null | 2021-06-10T20:06:47 | 2014-11-26T20:59:46 | Python | UTF-8 | Python | false | false | 1,272 | py | #coding=utf-8
from django.conf import settings
from django.utils.safestring import mark_safe
from django.utils.html import escape
from django_tables2.tables import Table
from django_tables2 import Column
from cms.functions import visualiseDateTime
from cms.tables import gen_table_actions
from .models import Fee
#t... | [
"pst@libre.lu"
] | pst@libre.lu |
24c37b2731f76d1274c85d3269703a9dd52a74b7 | b2913030cf1646310b08efaa57c2199bb08e37c9 | /general/object_id/apero_astrometrics.py | 8f21305a71d1f0d505c9856a0c692a251e7481f5 | [
"MIT"
] | permissive | njcuk9999/apero-utils | 6f5b5083537562a31573b5c4cc76908c5fe194b9 | 368d53182428ca8befcdd3e5c8ca054f61913711 | refs/heads/master | 2023-08-31T02:56:01.369406 | 2023-08-18T15:12:59 | 2023-08-18T15:12:59 | 238,777,509 | 3 | 5 | MIT | 2023-08-17T14:15:41 | 2020-02-06T20:24:49 | Python | UTF-8 | Python | false | false | 5,169 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# CODE NAME HERE
# CODE DESCRIPTION HERE
Created on 2021-11-10 at 16:04
@author: cook
"""
from astroquery.utils.tap.core import TapPlus
from astroquery.simbad import Simbad
import numpy as np
from typing import Dict, List, Tuple
import warnings
from apero import lan... | [
"neil.james.cook@gmail.com"
] | neil.james.cook@gmail.com |
957e9a83a0906447bcd7c0b17c13adc0c9d0a9e7 | f338eb32c45d8d5d002a84798a7df7bb0403b3c4 | /DQMOffline/Alignment/test/testMuAlDQM.py | dafae5c403d9e801584a14e97431e543ac40337d | [] | permissive | wouf/cmssw | 0a8a8016e6bebc611f1277379e12bef130464afb | 60da16aec83a0fc016cca9e2a5ed0768ba3b161c | refs/heads/CMSSW_7_3_X | 2022-06-30T04:35:45.380754 | 2015-05-08T17:40:17 | 2015-05-08T17:40:17 | 463,028,972 | 0 | 0 | Apache-2.0 | 2022-02-24T06:05:30 | 2022-02-24T06:05:26 | null | UTF-8 | Python | false | false | 4,965 | py | import os
import FWCore.ParameterSet.Config as cms
process = cms.Process("MuonAlignmentMonitor")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 1000000
process.load("DQMOffline.Alignment.muonAlignment_cfi")
process.load("DQMServices.Components.MEtoEDMConver... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
be210f89568c29063428ef21602005c46b94af7c | e86d020f8ade86b86df6ad8590b4458a9d415491 | /test-xooj/practice_infiltration/resource.py | 54fa54208d6e269ffbafe87eff7295d066e7fde0 | [
"BSD-2-Clause"
] | permissive | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 787 | py | # -*- coding: utf-8 -*-
from common_env.models import Env
from practice import resource
class PracticeInfiltrationTaskMeta(resource.SolvedBaseTask):
subsidiary = [{
'force': {
'create_user_id': None,
'last_edit_user_id': None,
},
'subsidiary': {
'catego... | [
"842995907@qq.com"
] | 842995907@qq.com |
2b7af92bfdd54503386f5e94c97ca30500b26788 | 409c4d0dce72de987dff7c76857499fba8f8b7a0 | /disargv.py | 74cc21ae8cb5195e712dce1e98515d6ada50d2d1 | [] | no_license | crystaleone/test | b4fece7fbc4e8ddd6186ea13245c62970c6d7038 | 4af3964bf6a657e888c7850f07a031440ba29e7a | refs/heads/master | 2021-01-18T19:17:36.924170 | 2017-09-19T03:37:01 | 2017-09-19T03:37:01 | 86,895,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | import sys
l1 = sys.argv[0]
l2 = sys.argv[1]
l3 = sys.argv[2]
l4 = sys.argv[3]
print(l1,l2,l3,l4)
| [
"403868144@qq.com"
] | 403868144@qq.com |
48cf24d2660484608ab2a4153721faff3b921745 | 61673ab9a42f7151de7337608c442fa6247f13bb | /tkinter/minimize - iconify/main.py | 5f35a5d61c37b30d04da61f12bdcb2aa2ff74595 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 648 | py | #!/usr/bin/env python3
# date: 2020.06.27
import tkinter as tk
root = tk.Tk()
# button [X] minimize (iconify) the main window
root.protocol("WM_DELETE_WINDOW", root.iconify)
# key ESC minimize (iconify) the main window
#root.bind('<Escape>', lambda event: root.destroy())
root.bind('<Escape>', lambda event: root.i... | [
"furas@tlen.pl"
] | furas@tlen.pl |
508ba345964380a61362afc629dea987c61c2b0c | c97ad9dbc96d151b5ef38a6d6dbac454d6e57576 | /architectures/preprocessing.py | f15f66e3b153c6b3f0bbf3ec310c58605c37fd61 | [
"BSD-3-Clause"
] | permissive | WangVictor/jets | 75177ff68fad2eaf3274537afcee325d93ff1d5f | 1f7209b4c026b63cad94aa8c93e2b8721b259b98 | refs/heads/master | 2021-07-14T05:39:54.983839 | 2017-10-17T20:48:01 | 2017-10-17T20:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,137 | py | import numpy as np
import copy
import pickle
import torch
from torch.autograd import Variable
# wrapping
def wrap(y, dtype='float'):
y_wrap = Variable(torch.from_numpy(y))
if dtype=='float':
y_wrap = y_wrap.float()
elif dtype == 'long':
y_wrap = y_wrap.long()
if torch.cuda.is_available(... | [
"isaachenrion@gmail.com"
] | isaachenrion@gmail.com |
e42b386d67393c6af683599183132b972f57f57a | 928c53ea78be51eaf05e63f149fb291ec48be73e | /Min_Steps_to_Make_Piles_Equal_Height.py | 527f25bb619af81199021e028c3d6393516d14b4 | [] | no_license | saurabhchris1/Algorithm-Pratice-Questions-LeetCode | 35021d8fc082ecac65d7970d9f83f9be904fb333 | ea4a7d6a78d86c8619f91a75594de8eea264bcca | refs/heads/master | 2022-12-10T16:50:50.678365 | 2022-12-04T10:12:18 | 2022-12-04T10:12:18 | 219,918,074 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | # Alexa is given n piles of equal or unequal heights. In one step, Alexa can remove any number
# of boxes from the pile which has the maximum height and try to make it equal to the one which
# is just lower than the maximum height of the stack. Determine the minimum number of steps
# required to make all of the piles e... | [
"saurabhchris1@gmail.com"
] | saurabhchris1@gmail.com |
4c2eb9b33282c9d82b39003190a73f99d017c113 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-jaq/aliyunsdkjaq/request/v20160412/ScanMalwareRequest.py | 22d33711640845bbae4e9f3f05704d6c77572d61 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,280 | 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... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
11b02e051010453eb013a89954d8791c7033b396 | 4daeb9ebf92d9826028a50bf4e4715c1ab145db1 | /Problem-Set/Numerical_Computing/INSOMA3/run.py | 119445d7f7fd419363c3de405740eab234b29f25 | [] | no_license | Rahul2025/Thesis | 4148653fcc96d623d602ba58e33cc6465d1cd9f5 | df31863194e2e0b69646e3a48fcaf90541a55c2a | refs/heads/master | 2020-05-02T00:48:09.593873 | 2013-04-21T20:23:02 | 2013-04-21T20:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # filename : run.py
import time
f = open('/home/Rahul/Desktop/Thesis/Scripts/cyth_time', 'a')
start = time.time()
import qq18_tim
f.write(str(time.time() - start))
f.close | [
"rahulgupta2025@gmail.com"
] | rahulgupta2025@gmail.com |
9f4416124cf22e1bd928fc11c7e256b682fd7520 | 7fffc39739869f259fe2d103efa05b87739778d1 | /Python/1149.py | 2396c4e58a35fca7ff1885f711b8fb4acd26d436 | [] | no_license | yunbinni/CodeUp | be39b3bd9fbeaa64be2a77a92918ebcc79b1799b | 5cb95442edb2b766de74154e0b91e8e1c236dd13 | refs/heads/main | 2023-08-15T19:02:29.819912 | 2021-10-12T00:50:16 | 2021-10-12T00:50:16 | 366,761,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | a, b = map(int, input().split())
print(a if a > b else b) | [
"yunbin9049@gmail.com"
] | yunbin9049@gmail.com |
fce0c0cbd8334360a36182f7f12a1d6bf9d2bbbb | 66d79b863ef112d3e93770c695751d2f70c94aa5 | /pygeopressure_gui/views/well_log_view.py | 49097e2b311fa64d202ac8cf8d506a05529973d4 | [] | no_license | whimian/pyGeoPressure_gui | 95d11edbd0589d1ef4368298dbac2abdbd76d203 | a36777cf06a48eea681acc481880ee2e9309ac24 | refs/heads/master | 2020-03-11T22:26:56.967910 | 2018-05-09T08:20:48 | 2018-05-09T08:20:48 | 130,292,422 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | # -*- coding: utf-8 -*-
"""
a Well log display widget based on matplotlib
Created on Tue May 2nd 2018
"""
from __future__ import (division, absolute_import, print_function,
with_statement, unicode_literals)
from future.builtins import super
__author__ ="Yu Hao"
from pathlib2 import Path
from ... | [
"yuhao89@live.cn"
] | yuhao89@live.cn |
2292b674d56303f1c405fe6e8fd757ff063bcd65 | 4e3c976773526fd610d64ffb83589bccfaee5e68 | /sponge-app/sponge-app-demo-service/sponge/sponge_demo_forms_library_args.py | bb2475d0c06d7040720b9ffa792fd6294790e641 | [
"Apache-2.0"
] | permissive | softelnet/sponge | 2313d2328953fcff49a002e727bb803757870627 | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | refs/heads/master | 2022-10-28T16:19:55.619882 | 2021-09-16T19:50:08 | 2021-09-16T19:50:08 | 95,256,030 | 10 | 2 | Apache-2.0 | 2022-10-04T23:55:09 | 2017-06-23T20:58:49 | Java | UTF-8 | Python | false | false | 4,364 | py | """
Sponge Knowledge Base
Demo Forms - Library as action arguments
"""
class ArgLibraryForm(Action):
def onConfigure(self):
self.withLabel("Library (books as arguments)")
self.withArgs([
StringType("search").withNullable().withLabel("Search").withFeature("responsive", True),
... | [
"marcin.pas@softelnet.com"
] | marcin.pas@softelnet.com |
7af57a4dd70f7a9cde6ca5ae074f3d75c585b917 | 176481563e0978340c737f61a4f85203ebb65c0b | /ptsites/sites/hdhome.py | f44a99bb7c69afa0dd0174e5d8ff0e93ad0ddf06 | [
"MIT"
] | permissive | ronioncloud/flexget_qbittorrent_mod | 328bd6448e6908bfb8d953e83e826ee8e966eee6 | a163a87328eeadf5ae961db4aec89f3f3ce48ad8 | refs/heads/master | 2023-01-20T03:43:07.664080 | 2020-11-21T10:28:13 | 2020-11-21T10:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | from ..schema.site_base import SiteBase
from ..schema.nexusphp import NexusPHP
# auto_sign_in
URL = 'https://hdhome.org/attendance.php'
SUCCEED_REGEX = '这是您的第 .* 次签到,已连续签到 .* 天,本次签到获得 .* 个魔力值。|您今天已经签到过了,请勿重复刷新。'
# html_rss
ROOT_ELEMENT_SELECTOR = '#torrenttable > tbody > tr:not(:first-child)'
FIELDS = {
'title': ... | [
"12468675@qq.com"
] | 12468675@qq.com |
eee84b835b4bb691bc922942e4d6e792138a170e | 18fa0ad57cd9c26bc2622ead61b88c81e017e2e8 | /kits/task_master.py | 3452c834c4cdd786cd94314026e08537c0677050 | [] | no_license | weihhh/ECG_pro | 45da18fad4709009cd4766a870fac7c5d5514a92 | 1e013cbb7352ad896661412f036fd9c6242a6001 | refs/heads/master | 2021-05-04T13:52:17.259815 | 2018-07-20T02:39:16 | 2018-07-20T02:39:16 | 120,323,445 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | # task_master.py
import random, time, queue
from multiprocessing.managers import BaseManager
# 发送任务的队列:
task_queue = queue.Queue()
# 接收结果的队列:
result_queue = queue.Queue()
# 从BaseManager继承的QueueManager:
class QueueManager(BaseManager):
pass
def return_task_queue():
global task_queue
return task_queue
d... | [
"wz591757596@163.com"
] | wz591757596@163.com |
7b02be135bb7cd1c50578c242919e30865e8ccb5 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210523152024.py | f07a1738d818cc8037a69010ee1541519e6e81c2 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | from flask import Flask, render_template, redirect, url_for
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
app = Flask(__name__)
app.config['SECRET_KEY'] ... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
01ef591e939e1957ca428570b792b4f0d1913223 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/bgp/peeropenhist1d.py | a70f146b1976cbe24363ebda9c25b83c7b20cf50 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 33,768 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
a2bd0e9dc99c1faf53437fb4076d01fd4561fe8c | 62bbfb6c50bba16304202aea96d1de4990f95e04 | /dependencies/pulumi_aws/ssm/maintenance_window_target.py | 27e01ee014ac88dc17d6881ab9cdc5a010ea8e33 | [] | no_license | adriell/lambda-autoservico-storagegateway | b40b8717c8de076e61bbd422461c7d624a0d2273 | f6e3dea61b004b73943a5438c658d3f019f106f7 | refs/heads/main | 2023-03-16T14:41:16.821675 | 2021-03-11T03:30:33 | 2021-03-11T03:30:33 | 345,865,704 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,674 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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 _utilitie... | [
"adriel@infoway-pi.com.br"
] | adriel@infoway-pi.com.br |
c27d32cdd1b7b026779339fc68a7830871f34535 | 4dd811c2595a990cb21327afe7a2dfd54ba9b52f | /Open-CV_Basics/threshold_example.py | 3b3018af5e505a219059d82806e1a161262e2bc4 | [] | no_license | mitesh55/Deep-Learning | 40842af8b8f1ea3c041fa4de2e76d068f554c1a4 | 0a7c0305edb027acfaad38e7abe52808260cede9 | refs/heads/master | 2023-07-25T14:31:14.285489 | 2021-09-09T13:46:31 | 2021-09-09T13:46:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 24 09:09:57 2020
@author: pavankunchala
"""
import cv2
from matplotlib import pyplot as plt
def show_img_with_matplotlib(color_img, title, pos):
"""Shows an image using matplotlib capabilities"""
# Convert BGR image to RGB
img_RGB = ... | [
"pavankuchalapk@gmail.com"
] | pavankuchalapk@gmail.com |
500729c399198a7f347c002ba8524217d5ad7c11 | 4324d19af69080f45ff60b733c940f7dc1aa6dae | /google-ads-python/google/ads/google_ads/v0/proto/services/ad_group_bid_modifier_service_pb2_grpc.py | 323a703193e94e53842992d5f9f98450e7ec0307 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | ljborton/Forked_Work | cc8a3813c146ea4547aca9caeb03e649bbdb9076 | 7aaf67af8d9f86f9dc0530a1ad23951bcb535c92 | refs/heads/master | 2023-07-19T22:26:48.085129 | 2019-11-27T02:53:51 | 2019-11-27T02:53:51 | 224,321,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,600 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.ads.google_ads.v0.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2
from google.ads.google_ads.v0.proto.services import ad_group_bid... | [
"noreply@github.com"
] | ljborton.noreply@github.com |
c199a8c9d14036ef6e195fc868e7c99f7939151e | 29ac2c1477b2972820dd024ee443b8626e3224cf | /gallery/migrations/0002_auto_20210608_0440.py | 87afdaaf43bc510f256b14412bc81c86310e8178 | [] | no_license | devArist/school_project3 | 5cdf1955e60ff727a64cf7cb50987da70149b0b8 | c153339cf55a87cb81b331ce7fbd43615a0435aa | refs/heads/main | 2023-05-09T19:48:32.092513 | 2021-06-08T10:07:25 | 2021-06-08T10:07:25 | 374,965,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # Generated by Django 3.2.3 on 2021-06-08 04:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gallery', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='photo',
name='formats',
fie... | [
"aridev97@gmail.com"
] | aridev97@gmail.com |
a68d760a069c84b3e5c6d1a92d06ab3f2bd4fd43 | 950ce2ac7aa569c7e82bd135492c0ff94ef97c74 | /test/myapp/myapp/spiders/item_xpath.py | 4f8a0120bf12e339747335c62122f88055842a82 | [] | no_license | ShichaoMa/webWalker | 74ea7f38b74272d951e8bccea730a40f7f0c72b4 | 8c085d6f385f85f193b0992b1148f165652e3a98 | refs/heads/master | 2021-01-12T16:50:36.331337 | 2017-12-08T11:26:46 | 2017-12-08T11:26:46 | 71,446,722 | 62 | 18 | null | 2017-12-08T11:26:47 | 2016-10-20T09:27:08 | Python | UTF-8 | Python | false | false | 236 | py | # -*- coding:utf-8 -*-
ITEM_XPATH = {
"bluefly": [
'//ul[@class="mz-productlist-list mz-l-tiles"]/li//a[@class="mz-productlisting-title"]/@href',
],
"douban": [
"//a[@class='product-photo']/@href",
]
}
| [
"308299269@qq.com"
] | 308299269@qq.com |
d0a580aaa5edce4979a869971401b95f3b920d70 | 1b862f34c125ce200244dd79e4fda4b5b605ce2e | /.history/ML_EO_20210607233236.py | 524991d44904097561ba54152a436c881885c12f | [] | no_license | edwino26/CoreImages | 26085a49cf1cb79442ae563a88354b2fdceace87 | 6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e | refs/heads/master | 2023-06-22T12:53:37.344895 | 2021-07-21T04:31:44 | 2021-07-21T04:31:44 | 309,553,247 | 0 | 4 | null | 2021-04-29T23:23:15 | 2020-11-03T02:45:07 | Lasso | UTF-8 | Python | false | false | 25,622 | py | # # lectura de los xlsx del procesamiento de imagenes
# y la informacion obtenida de los registros por pozo
# %%
import numpy as np
import pandas as pd
import os
import os.path
import matplotlib.pyplot as plt # GRAPHS
from mlxtend.plotting import scatterplotmatrix
import glob
import seaborn as sns
import missingno a... | [
"ortega.edwin.y@gmail.com"
] | ortega.edwin.y@gmail.com |
ea2dd8bf45e6bb9c2b6ff09afb422072ab1fe92b | 8566f9905a831b05dd79c0cb0d1cf99bd258a917 | /models/sml/sml_celeba_cactus.py | 0360822647d3a2a0a40c06b37deafe44bdd0e926 | [
"Apache-2.0"
] | permissive | emerld2011/MetaLearning-TF2.0 | 8e81db2a5489ffc2ccb4f21eb8202d1c50106844 | de852bd3b2ff46f8d390cebf561add3a166ee855 | refs/heads/main | 2023-08-14T18:21:23.539460 | 2021-09-17T14:42:22 | 2021-09-17T14:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | import tensorflow as tf
from models.sml.sml import SML
from networks.maml_umtra_networks import MiniImagenetModel
from databases import CelebADatabase, LFWDatabase
def run_celeba():
celeba_database = CelebADatabase()
base_model = tf.keras.applications.VGG19(weights='imagenet')
feature_model = tf.keras.mo... | [
"siavash.khodadadeh@gmail.com"
] | siavash.khodadadeh@gmail.com |
6327cc15593e29d7b0f45312359af9350a81a2cc | 15d477b2bc7da4e1bddd6fa33f0768fcbd4c82c3 | /simple_3d_engine.py | 62feb8ad80ef2a33f85e02f37a7f238e444e751b | [] | no_license | gunny26/pygame | 364d4a221e2d11bd491190f97670b09123146ad7 | 1fd421195a2888c0588a49f5a043a1110eedcdbf | refs/heads/master | 2022-10-20T00:56:34.415095 | 2022-10-03T19:27:52 | 2022-10-03T19:27:52 | 7,414,604 | 5 | 11 | null | null | null | null | UTF-8 | Python | false | false | 6,778 | py | #!/usr/bin/python3
import sys
import math
import time
# non std
import pygame
class Vec2d:
def __init__(self, x, y):
self.x = x
self.y = y
class Vec3d:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
class Vec4d:
def __init__(self, x, y, z, w):
... | [
"arthur.messner@gmail.com"
] | arthur.messner@gmail.com |
7a08c8c0f10a0f895db76c5b49933e2ec90cfd3c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /8WvpPQto44PqNLSqJ_16.py | 1beb2118e0b5593eebf9a90ec62cd377057db150 | [] | 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 | 190 | py |
def pad(message):
if len(message)<140:
if not len(message)%2:
message += ' l'
else:
message += 'l'
while len(message)<140:
message += 'ol'
return message
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d1297225e16ebf5161aebae8590fb1060bd9310e | e6f16fbba8fba750099252c3490f00079cb19101 | /算法/053_最大子序求和.py | e493a34fa89f268394e4fe3b768062a9898cacd9 | [] | no_license | hookeyplayer/exercise.io | 0a36fbec9df6c24b60ff6f97de27d3d5ae7769d4 | 605c81cb44443efd974db9fa0a088ddcd5a96f0f | refs/heads/master | 2023-06-20T17:03:20.310816 | 2021-07-31T12:50:21 | 2021-07-31T12:50:21 | 277,175,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | from typing import List
class Solution:
# DP1
# 贪心
def maxSubArray(self, nums: List[int]) -> int:
thisSum = 0
maxSum = -2**31
for i in range(len(nums)):
if thisSum < 0:
thisSum = 0
thisSum += nums[i]
maxSum = max(maxSum, thisSum)
return maxSum
# DP2
def maxSubArray(... | [
"noreply@github.com"
] | hookeyplayer.noreply@github.com |
a61936e0b3152ba6a39cdb301e33356c628ccc6c | a14ec6e367e6a471bfc74c066fb958ef585bc269 | /2022/22/b.py | 1b47f0a8bee5acc2c3a1acc74fd052c972b656f5 | [] | no_license | jimhendy/AoC | 90641814ed431f46a8500ff0f022c6c957567563 | a1727f88bc2e6f739d65902dce188377966b3fb4 | refs/heads/master | 2023-09-02T14:48:39.860352 | 2023-08-28T08:09:19 | 2023-08-28T08:09:19 | 225,152,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,593 | py | import re
from collections import defaultdict, deque
from collections.abc import Callable
from tools.point import Point2D
DIRECTIONS = deque(["right", "down", "left", "up"])
FACING_VALUE = {"right": 0, "left": 2, "up": 3, "down": 1}
OPPOSITES = {"down": "up", "up": "down", "left": "right", "right": "left"}
def run(... | [
"jimhendy88@gmail.com"
] | jimhendy88@gmail.com |
9ea0d53abc6fe76ea844647c939081ba7bef497d | 986a8c5de450fc436897de9aaff4c5f737074ee3 | /笔试题/2019 PayPal实习生招聘编程卷/2_寻找关联用户.py | 9f80fb24348a2f07ea5df09bb989cd129384753d | [] | no_license | lovehhf/newcoder_py | 7a0ef03f0ea733ec925a10f06566040f6edafa67 | f8ae73deef1d9422ca7b0aa9f484dc96db58078c | refs/heads/master | 2020-04-27T18:20:19.082458 | 2019-05-24T15:30:13 | 2019-05-24T15:30:13 | 174,564,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,697 | py | # -*- coding:utf-8 -*-
__author__ = 'huanghf'
"""
PayPal上海团队一直致力于风险控制,风控需要收集各种信息,有时需要通过地理位置找出用户与用户之间存在的关联关系,
这一信息可能会用于找出用户潜在存在的风险问题。我们记两个用户的关联关系可以表示为:
(1). user1,user2与他们最常发生交易的地理位置分别为(x1, y1),(x2, y2),当这两个用户的欧氏距离不超过d时,我们就认为两个用户关联。
(2). **用户关联性具有传递性**,若用户1与用户2关联,用户2与用户3关联,那么用户1,2,3均关联。
给定N个用户及其地理位置坐标,将用户按照关联性进行划分,... | [
"853885165@qq.com"
] | 853885165@qq.com |
285805fef3a2ff9e680c5ab423f7d70e47b906fb | 71962596a0693e03e19257f1beb3bdda223ed4ff | /profile_xf05id1/startup/81-saturn.py | f8188b0e760c0e83d75202caca233c3c59ee06b7 | [
"BSD-2-Clause"
] | permissive | tacaswell/ipython_srx | 53561979f27a108063f4851ea314073768098cbb | e3dbb45cfd87c166878e8420654cc7995f772eda | refs/heads/master | 2020-12-25T00:19:11.936763 | 2016-02-18T00:30:51 | 2016-02-18T00:30:51 | 51,659,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,831 | py | from ophyd.mca import (EpicsMCA, EpicsDXP)
from ophyd import (Component as Cpt, Device, EpicsSignal, EpicsSignalRO,
EpicsSignalWithRBV, DeviceStatus)
from ophyd.device import (BlueskyInterface, Staged)
class SaturnMCA(EpicsMCA):
# TODO: fix upstream
preset_real_time = Cpt(EpicsSignal, '.PRT... | [
"klauer@bnl.gov"
] | klauer@bnl.gov |
8c529c07af84d91fd9c4e3012908fb6f78b74f9e | e5d83ede8521027b05d9b91c43be8cab168610e6 | /0x01-python-if_else_loops_functions/0-positive_or_negative.py | 7db6d2d5aec2226e9657ea987dac24bd7104128f | [] | no_license | Danielo814/holbertonschool-higher_level_programming | 8918c3a6a9c136137761d47c5162b650708dd5cd | 832b692529198bbee44d2733464aedfe650bff7e | refs/heads/master | 2020-03-28T11:09:00.343055 | 2019-02-22T03:33:54 | 2019-02-22T03:33:54 | 148,181,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | #!/usr/bin/python3
import random
number = random.randint(-10, 10)
if number < 0:
print("{} is negative".format(number))
if number == 0:
print("{} is zero".format(number))
if number > 0:
print("{} is positive".format(number))
| [
"211@holbertonschool.com"
] | 211@holbertonschool.com |
30ee5b82371e74006e13d114f8f1da5e37e2137d | 956cc6ff2b58a69292f7d1223461bc9c2b9ea6f1 | /monk/tf_keras_1/transforms/common.py | 9253e05c5cce0e7d2d18e4deaa3832cf3c094726 | [
"Apache-2.0"
] | permissive | Aanisha/monk_v1 | c24279b2b461df9b3de2984bae0e2583aba48143 | c9e89b2bc0c1dbb320aa6da5cba0aa1c1526ad72 | refs/heads/master | 2022-12-29T00:37:15.320129 | 2020-10-18T09:12:13 | 2020-10-18T09:12:13 | 286,278,278 | 0 | 0 | Apache-2.0 | 2020-08-09T16:51:02 | 2020-08-09T16:51:02 | null | UTF-8 | Python | false | false | 3,810 | py | from monk.tf_keras_1.transforms.imports import *
from monk.system.imports import *
from monk.tf_keras_1.transforms.transforms import transform_color_jitter
from monk.tf_keras_1.transforms.transforms import transform_random_affine
from monk.tf_keras_1.transforms.transforms import transform_random_horizontal_flip
from m... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
9498db4276799b71082911df61014f50e9e00ed4 | c879972850bdef6f9c05ec57c964125e4d5d8dfa | /lino/management/commands/qtclient.py | d7596bcdee3da87a45dd2c84f87e0999c0367cd2 | [
"BSD-2-Clause"
] | permissive | forexblog/lino | 845c17f22c6f58fbf0247b084ceacb5e89fba2ef | 68cbd5dd985737b63091b232b9c788a3a9875eef | refs/heads/master | 2023-02-16T02:33:08.387853 | 2021-01-15T09:39:58 | 2021-01-15T09:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | # -*- coding: UTF-8 -*-
# Copyright 2017-2021 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from django.core.management.base import BaseCommand
from django.conf import settings
import sys
from PyQt5.QtWidgets import (QApplication, QWidget, QPushButton,
QMessageBox, QDeskto... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
84e6607c8844f6a04b1d98959b10d09db2dde1c1 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/pc/rtfcaccbndlgrptofcaggrif.py | 0325546ef5eaa31952748a03f1378eacc3fd4e64 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,000 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
20b549f692809f3c36be35369593b5decb3c1ef4 | 7b1a5db0a067766a9805fe04105f6c7f9ff131f3 | /pysal/model/mgwr/tests/test_sel_bw.py | 856b65aa3b40931bfe9b658f698db76a492733df | [] | permissive | ocefpaf/pysal | 2d25b9f3a8bd87a7be3f96b825995a185624e1d0 | 7e397bdb4c22d4e2442b4ee88bcd691d2421651d | refs/heads/master | 2020-06-26T17:13:06.016203 | 2019-07-31T19:54:35 | 2019-07-31T19:54:35 | 199,696,188 | 0 | 0 | BSD-3-Clause | 2019-07-30T17:17:19 | 2019-07-30T17:17:18 | null | UTF-8 | Python | false | false | 9,038 | py | """
GWR is tested against results from GWR4
"""
import os
import numpy as np
from pysal.lib import io
import pysal.lib as ps
import unittest
from pysal.model.spglm.family import Gaussian, Poisson, Binomial
from ..sel_bw import Sel_BW
from numpy.testing import assert_allclose
class TestSelBWGaussian(unittest.TestCase... | [
"sjsrey@gmail.com"
] | sjsrey@gmail.com |
723d1ab3fba8472207d08566888754ff280a6ce1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02622/s420656500.py | ba3844bb33b39a0bd750b8488ba05864255e60b4 | [] | 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 | 134 | py | s = [x for x in input()]
t = [y for y in input()]
count = 0
for _ in range(len(s)):
if s[_] != t[_]:
count+=1
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ea8181be3486f3495b71aed3582a1cd0ce049fb5 | 412d0f01ab87c6b1e96f5f8afc263a3c33188b2f | /plots/fps_bar_chart.py | 1b735fc4f4b009283bc7ea4997f878756bc13cae | [
"MIT"
] | permissive | neevparikh/sample-factory | 7e48a8b4c7d0b534642bd90d28e66677f03b715e | 1b57647a231359ed6794db72bcc39b4ebb01b39e | refs/heads/master | 2023-03-16T05:15:05.945225 | 2021-03-09T02:28:03 | 2021-03-09T02:28:03 | 290,346,928 | 0 | 0 | MIT | 2020-08-25T23:36:01 | 2020-08-25T23:36:00 | null | UTF-8 | Python | false | false | 1,909 | py | import math
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
sns.set()
labels = ['20', '40', '80', '160', '320', '640']
# fps_by_method_10_core_cpu = dict(
# deepmind_impala=[8590, 10596, 10941, 10928, 13328, math.nan],
# rllib_appo=[9384, 9676, 11171, 11328, 11590, 11345],
# ours... | [
"petrenko@usc.edu"
] | petrenko@usc.edu |
cd99c5c4b1cb47999230fedf11bf9d56d4b14c76 | bd5f807161da0a9d3f6f8c5c3b4da073545eaafc | /day_1/print_function.py | 86260c5a4cb8249a92687577759a3a34cc0eb9c8 | [
"MIT"
] | permissive | anishLearnsToCode/python-workshop-7 | a6a497ddb6cf41a2097ac976426710ca4aa41987 | 2d5933be2629600f5f9e8efea58403421737a299 | refs/heads/main | 2023-02-07T21:00:01.308260 | 2020-12-27T08:22:14 | 2020-12-27T08:22:14 | 323,645,763 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | print('i am batman', end='\n')
print('hello world', end='\t\t')
print('this is cool\n', end=' ----- ')
print('i am still here')
| [
"anish_@outlook.com"
] | anish_@outlook.com |
74612d03df0d217ddea8a2be6fec57fb41f85c27 | bb68c958809899a24ec7d250adacc70c30203b04 | /rti_python/Ensemble/NmeaData.py | 5ca12f52eb8356dbba94010a0c6d4f1277627fc5 | [] | no_license | jjt53/ReadPlotCSV_streamlit | d9e432ec83ec930d3e6aa6b8f07bf3329c8081b8 | 3fddf73033e3648bc86ccbf0c5cce2b7868250d9 | refs/heads/main | 2023-01-29T14:05:35.667192 | 2020-12-09T17:17:23 | 2020-12-09T17:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,745 | py | import pynmea2
from rti_python.Ensemble.Ensemble import Ensemble
import logging
from pygeodesy import ellipsoidalVincenty
from decimal import *
class NmeaData:
"""
NMEA DataSet.
String data to decode.
"""
def __init__(self, num_elements=0, element_multiplier=1):
self.ds_type = 50 ... | [
"rcastelo@rowetechinc.com"
] | rcastelo@rowetechinc.com |
657b51d419bef4689b2a3a559a1039f993d7a58b | db5684eeac1c7359017a5d109028ce2b8b49d1a7 | /app_rbac/service/AutoFindUrls.py | fbad0d42e31869cebeef14f5a4056828e68f6a7c | [] | no_license | Alan-AW/CrmSys | a4873c52e1f6bb05c45377459b0a040ff7dbbc75 | 95119dd7b96b981a00541e8adcee410eb1fbe865 | refs/heads/main | 2023-08-22T08:04:44.207347 | 2021-10-13T08:08:44 | 2021-10-13T08:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | from collections import OrderedDict
from django.conf import settings as sys
from django.utils.module_loading import import_string # 内置工具,根据字符串进行导入模块
from django.urls import URLResolver, URLPattern
import re
"""
自动发现项目中的url方法
"""
class AutoFindUrl:
def check_url_exclude(self, url):
"""
白名单设置;排除一些... | [
"xcdh560@foxmail.com"
] | xcdh560@foxmail.com |
9a2222854f5cf34881162cdee222723b8dd7793d | c8c855a6ebb3b3101e5c3a80b94514c36b103495 | /semana_3/Calculadora.py | 677552a81732c0ddcb86782beae94726fe52561a | [] | no_license | K-A-R-L-A-Robles/poo-1719110219 | 835965c0e3100c9d6770678eb67920945942fa80 | 7d1fc57cd4157e5b52a153210311821d8290144d | refs/heads/master | 2022-11-03T04:54:42.675869 | 2020-06-15T03:46:42 | 2020-06-15T03:46:42 | 265,970,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | class calculadora:
"atríbutos"
signos=30
botones =30
baterias= 2
led=1
carcasa=1
#métodos
def encender(self):
print("encender")
def apagar(self):
print("apagar")
def __init__(self):
pass
class casio(calculadora):
#atríbutos
color="gris"
longitud= "15cm... | [
"replituser@example.com"
] | replituser@example.com |
010d835db31f6a76e42a04916bd4a4af607762b4 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D08B/COMDISD08BUN.py | 100dbc7a1d02e66ba3a3780d0077c6f131fd407a | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,035 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD08BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'RFF', MIN: 0, MAX: 9},
{ID: 'DTM', MIN: 0, MAX: 9},
{ID: 'CUX'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
dc83a61491aaa7474ca75f5417cccf54a741e2a2 | 1f7d287ef90041e20468513a26a39e1f3d221289 | /Level-2/s18/guvi-L2-s18-py06.py | 21f5db26fcc71bb3aa20c4faae14685578b46595 | [] | no_license | ksthacker/python | d787d69f954c0e9b59b0cc96a8b8fc5c0594d8a0 | 3a3775e1b9349e313f8c96ea11eade54a7e9bf54 | refs/heads/master | 2021-04-27T16:32:40.923316 | 2019-08-21T04:50:22 | 2019-08-21T04:50:22 | 122,303,461 | 0 | 17 | null | 2019-10-03T14:59:51 | 2018-02-21T07:09:32 | Python | UTF-8 | Python | false | false | 262 | py | import sys, string, math
s1,s2 = input().split()
dic1 = {}
dic2 = {}
for c in s1 :
dic1[c] = dic1.get(c,0) + 1
for c in s2 :
dic2[c] = dic2.get(c,0) + 1
#print(dic1,dic2)
if dic1.keys() == dic2.keys() :
print('true')
else :
print('false')
| [
"noreply@github.com"
] | ksthacker.noreply@github.com |
b41ba3a6a31fab6c7ed42dd38ecc6821786344d5 | a7685d315e6616cc2b6d43587bb19ead4324fb2a | /cci_mailchimp/wizard/extract_results_advertising.py | 4a5fc3227990c4926d43be7d42084fc091237cd3 | [] | no_license | philmervdm/modules_cci_odoo8 | 472ea68de409e876722413afdd873d6a7827744e | 603144219a86e805f7603cfafc0fb05a78166eef | refs/heads/master | 2021-01-09T20:02:58.326569 | 2017-05-06T15:45:03 | 2017-05-06T15:45:03 | 60,332,279 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,732 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"philmer@ccilvn.be"
] | philmer@ccilvn.be |
dafbc6f303cb54a88a957ad7b6ca81fe72a58dcf | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GL/VERSION/GL_4_0.py | e71cd5aca4e802fb6dbe967d20d16fbe9ccabd69 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,207 | py | '''Autogenerated by xml_generate script, do not edit!'''
import ctypes
from OpenGL import platform as _p, arrays
from OpenGL.constant import Constant as _C
# End users want this...
from OpenGL.raw.GL import _errors
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
_EXTENSION_NAME = 'GL_VERSION_GL_4_... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
9deb933676e6f8022a6d68c76123cb045891c191 | 672d535e7586289873fd5167bd9888383aff02e4 | /src/chapter_10/file_writer.py | 05d3024a8efc186caf79a788cbcce915c16e552a | [] | no_license | CatchTheDog/python_crash_course | 889fd151323e48dfbc6754b86132aad3f1d37856 | 148eda5eb96c501060115aad0bfd6e15ccd04c37 | refs/heads/master | 2020-03-29T22:06:32.015096 | 2018-09-29T02:36:51 | 2018-09-29T02:36:51 | 150,402,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | file_name = "..\\test_files\\programming.txt"
with open(file_name,'a') as file_object:
file_object.write("I love programming!\n")
file_object.write("Yes,you are!\n") | [
"1924528451@qq.com"
] | 1924528451@qq.com |
d6938327087879a9f4238e51bda9ed19d1500dd6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03261/s340412788.py | 5a6e7ab12a4f437b7b0e143245721a1a5d7f2d38 | [] | 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 | 272 | py | def resolve():
N = int(input())
W = [input() for _ in range(N)]
if len(set(W)) != N:
print('No')
return
for i in range(N-1):
if W[i][-1] != W[i+1][0]:
print('No')
return
print('Yes')
return
resolve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
13fb7bd55c6b4c3bcf6151f1231cd06bed96325b | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.12.20/5/1569572839.py | b804973202990b201d8fa526eab461fdb643c04b | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def mysum(zs : list) -> int:
return sum(xs)
## Lösung Teil 2. (Tests)
def test_2():
assert mysum([1,2,3]) == 6
######################################################################
| [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
7bb0b9509db055c53732ac141dd5e0394c6ef70b | 2c3f13857d4a915410de5ac9547745eb2769db5f | /eval/e43/compare_text.py | 87358093ffb7d43d225e9232d6c758060c29fa51 | [] | no_license | andrewhead/StackSkim | 43a4cf769645bb70202075f8077fa4d5d7be2a4b | 9ac11705ff82aa978d1a87177059e665f4e5ebef | refs/heads/master | 2020-06-03T16:15:15.127268 | 2016-01-16T17:16:36 | 2016-01-16T17:16:36 | 50,692,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
import codecs
logging.basicConfig(level=logging.INFO, format="%(message)s")
def main():
with codecs.open('javascript_text.txt', 'r', 'utf-8') as js_file:
with codecs.open('beautifulsoup_text.txt', 'r'... | [
"head.andrewm@gmail.com"
] | head.andrewm@gmail.com |
0516724e956d3a03c966ac81dd33f50bb9a93f14 | f019ca1e4029b4077472087d1b677052583c0392 | /qa/rpc-tests/keypool.py | aeaa4435c0d9ce9ede5ce333dced5cf31e78ffc9 | [
"MIT"
] | permissive | mirzaei-ce/core-civilbit | 9204dd9c4c3ce04f867105da4e7fa9a56af1f8ba | cab3e53bdc6b04a84f4bc48114efc07865be814a | refs/heads/master | 2021-04-26T05:03:32.282526 | 2017-10-16T15:39:44 | 2017-10-16T15:39:44 | 107,148,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Exercise the wallet keypool, and interaction with wallet encryption/locking
# Add python-civilbitrpc t... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
e842a0b0122230b18a59c01e0b2b0561a33e8a9a | 6a33cb94d4af1d8a7329ddc6c9d42f870c35bb2f | /python/euler24.py | f4dfa43b28627a2b567d1d09688bcc6fd94d3b85 | [] | no_license | vochong/project-euler | 836321cc8e7d2e7cdf22b3b136d44dcba74a8701 | 6a0c7103861ff825bf84800b6e2e62819a41e36d | refs/heads/master | 2020-04-29T10:41:48.487159 | 2018-09-19T00:13:34 | 2018-09-19T00:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | from itertools import permutations
def euler24():
"""
A permutation is an ordered arrangement of objects. For example, 3124 is
one possible permutation of the digits 1, 2, 3 and 4. If all of the
permutations are listed numerically or alphabetically, we call it
lexicographic order. The lexicographic permutations o... | [
"kueltz.anton@gmail.com"
] | kueltz.anton@gmail.com |
eaa9e3662e78f9f1fb39c52cf1e2e525f22310eb | a169199ebb9f4a7b81cd00ff23af50aeb591ffe4 | /clpy/types/mutabledict.py | 8b4c40a0ef9fc6e1b78077e8aad89ceb47cf9954 | [] | no_license | zielmicha/clojure-pypy | b2eab9437997e4c250d455b3a6d5f4c036855cdf | 41c8f14a19173c1b5452bcdb1f7f6df23e6cdecf | refs/heads/master | 2021-01-23T12:18:45.583076 | 2014-02-21T19:22:30 | 2014-02-21T19:22:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from clpy.types.root import Root
from clpy.types.dict import PersistentHashTrie
class MutableDict(Root):
'''
Mutable dictionary that should be based on PyPy's implementation,
but I can't get it accepted by translator.
So, for now, it's based on persistent hash trie.
'''
def __init__(self, spac... | [
"michal@zielinscy.org.pl"
] | michal@zielinscy.org.pl |
4060361d56fabf2289f5fa2ad768cbe5b277c2eb | d053d7f98c36bc0d0378dcbb02d6686ddf37b2da | /yabgp/agent/__init__.py | 99d77ca9c1f41738f6ed80b147d48327fa595a4c | [
"Apache-2.0"
] | permissive | c0ns0le/yabgp | 51f79006735462a59115b775664d1f94a2399c85 | 19c6462f313dab5548179bc6009375bbc039d0f0 | refs/heads/master | 2021-01-17T21:22:52.368843 | 2016-02-22T02:08:34 | 2016-02-22T02:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,475 | py | # Copyright 2015 Cisco Systems, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
2795c6648d7f1266b7f42b4e91725d9f27268dea | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyedit/pyedit-036/pyedlib/pedfind.py | 3ac9395fb86b64616c888b4a839f6c126b4421a4 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,150 | py | #!/usr/bin/env python
# Action Handler for find
import re, string, gtk, glib, gobject, warnings
import peddoc, pedync, pedconfig
from pedutil import *
from pedundo import *
strhist = []
stridx = 0
myentry = None
# -------------------------------------------------------------------------
... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
34d3bd0138a6b1ff374de550600bd1e994e01e20 | 15fb62305a2fa0146cc84b289642cc01a8407aab | /Python/230-KthSmallestElementInBST.py | e1fce7116f90027161bad3e1f527125aaa0290c7 | [] | no_license | geniousisme/leetCode | ec9bc91864cbe7520b085bdab0db67539d3627bd | 6e12d67e4ab2d197d588b65c1ddb1f9c52a7e047 | refs/heads/master | 2016-09-09T23:34:03.522079 | 2015-09-23T16:15:05 | 2015-09-23T16:15:05 | 32,052,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
# @param {TreeNode} root
# @param {integer} k
# @return {integer}
def recurKthSmallest(self, root, k):
res = []
self.in... | [
"chia-hao.hsu@aiesec.net"
] | chia-hao.hsu@aiesec.net |
755d6aaeee71030185d492833dfef66356bbd803 | d293b1b5037f7e493eddbe8572cc03ffd9f78890 | /code/sort.py | 574a24cd3b45ffb3a643147fc331bc61787fd95d | [] | no_license | weilaidb/pyqt5 | 49f587e6ec3b74f6b27f070cd007a6946a26820a | 0ad65ed435ecfc87ca32e392bbf67973b4b13e68 | refs/heads/master | 2020-03-07T23:04:51.365624 | 2018-08-01T15:30:44 | 2018-08-01T15:30:44 | 127,771,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
print(sorted([36, 5, -12, 9, -21]))
print(sorted([36, 5, -12, 9, -21], key=abs))
print(sorted(['bob', 'about', 'Zoo', 'Credit']))
print(sorted(['bob', 'about', 'Zoo', 'Credit'], key=str.lower))
print(sorted(['bob', 'about', 'Zoo', 'Credit'], key=str.lower, reverse=True)) | [
"wxjlmr@126.com"
] | wxjlmr@126.com |
d49d9eb6c8717ccde8a3a9fb5629628f7f989129 | ecf0d106831b9e08578845674a457a166b6e0a14 | /OOP/inheritance_EXERCISE/players_and_monsters/project/blade_knight.py | f3fe7f02553cff2f5de2b7045840784a828df529 | [] | no_license | ivo-bass/SoftUni-Solutions | 015dad72cff917bb74caeeed5e23b4c5fdeeca75 | 75612d4bdb6f41b749e88f8d9c512d0e00712011 | refs/heads/master | 2023-05-09T23:21:40.922503 | 2021-05-27T19:42:03 | 2021-05-27T19:42:03 | 311,329,921 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from project.dark_knight import DarkKnight
class BladeKnight(DarkKnight):
def __init__(self, username: str, level: int):
super().__init__(username, level)
| [
"ivailo.ignatoff@gmail.com"
] | ivailo.ignatoff@gmail.com |
ae7b77baced08878c051998a52c52e932ab8b76b | 1aebc65860ed3e45390c83f57d4345a2fd0c1b0b | /tests/unit/customizations/test_assumerole.py | ad6fdddbaa34bc044f11a3f63b1955468040bc6c | [
"Apache-2.0"
] | permissive | andhit-r/aws-cli | a1f572eb1328e4c5826d94d17a46e1e74399a3c8 | d1737a6031b104efb814e7446fe98640135afadd | refs/heads/develop | 2021-01-24T14:18:37.612517 | 2015-10-23T20:18:54 | 2015-10-23T20:18:54 | 44,942,247 | 0 | 1 | null | 2015-10-26T02:56:02 | 2015-10-26T02:56:02 | null | UTF-8 | Python | false | false | 16,206 | py | # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | [
"js@jamesls.com"
] | js@jamesls.com |
d86ebf62cfba1698923c1901510e7e9f1be2816c | 955b968d46b4c436be55daf8aa1b8fc8fe402610 | /other/get_timezone.py | d32feb2a1fb16ad7235d22228884263287fa7712 | [] | no_license | han-huang/python_selenium | 1c8159fd1421b1f0e87cb0df20ae4fe82450f879 | 56f9f5e5687cf533c678a1c12e1ecaa4c50a7795 | refs/heads/master | 2020-03-09T02:24:48.882279 | 2018-04-07T15:06:18 | 2018-04-07T15:06:18 | 128,535,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from time import gmtime, strftime, localtime
import locale, time, sys
# Windows 10 platform
tz1 = strftime("%z", gmtime())
print('gmtime()', gmtime())
print(tz1) # +0800
tz2 = strftime("%z", localtime())
print('localtime()', localtime())
print(tz2) # +0800
print()
tz3 = ... | [
"vagrant@LaravelDemoSite"
] | vagrant@LaravelDemoSite |
61144733a7ba970967c47e9af7a46cadf1f7c2db | 3be8b5d0334de1f3521dd5dfd8a58704fb8347f9 | /create_session_index.py | dc01fc1ffa77f8416331b23701799095cea70a20 | [
"MIT"
] | permissive | bmillham/djrq2 | 21a8cbc3087d7ad46087cd816892883cd276db7d | 5f357b3951600a9aecbe6c50727891b1485df210 | refs/heads/master | 2023-07-07T01:07:35.093669 | 2023-06-26T05:21:33 | 2023-06-26T05:21:33 | 72,969,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | """ Run this one time, to setup the automatic expiration of sessions """
from web.app.djrq.model.session import Session
from pymongo import MongoClient
collection = MongoClient().djrq2.sessions
Session._expires.create_index(collection)
| [
"bmillham@gmail.com"
] | bmillham@gmail.com |
0f5084fe7deefe3d514592c7c60d72832e33f11f | 066612a390af03bb170d74a21b0fb0b7bcbfe524 | /tests/testcases.py | 12602c0da2e5760fc9d92fd91d9c22da1a2732ca | [
"MIT"
] | permissive | kikeh/django-graphql-extensions | 873577cc9e0085630889fea9fa5539962c31dbcc | 951b295235ca68270066cc70148e2ae937d4eb56 | refs/heads/master | 2020-12-26T05:23:12.039826 | 2020-01-31T09:41:43 | 2020-01-31T09:41:43 | 237,398,866 | 0 | 0 | MIT | 2020-01-31T09:32:25 | 2020-01-31T09:32:24 | null | UTF-8 | Python | false | false | 685 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from django.test import testcases
from graphql_extensions import testcases as extensions_testcases
from . import schema
class TestCase(testcases.TestCase):
def setUp(self):
self.group = Group.objects.create(name... | [
"domake.io@gmail.com"
] | domake.io@gmail.com |
273fd9f145e716e3be92436742505363a1f97b3e | a6e812e138640e63ccf25bc795d08cea584031e8 | /Codeforces/381/A.py | a56be37e923308335c6c7e716b4f91442338b30a | [] | no_license | abhigupta4/Competitive-Coding | b80de4cb5d5cf0cf14266b2d05f9434348f51a9e | 5ec0209f62a7ee38cb394d1a00dc8f2582ff09be | refs/heads/master | 2021-01-17T06:54:12.707692 | 2020-12-10T18:00:17 | 2020-12-10T18:00:17 | 49,972,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def ii():
return map(int,raw_input().split())
n,a,b,c = ii()
if n%4 == 0:
print 0
elif n%4 == 1:
print min(c,3*a,b+a)
elif n%4 == 2:
print min(2*a,b,2*c)
else:
print min(a,b+c,3*c) | [
"abhinavgupta6245@gmail.com"
] | abhinavgupta6245@gmail.com |
9bb1fba15b061678ffcff2219bc7888f2a3681bd | 963a49b8a48764929169edb57e492b5021331c87 | /tests/volume_system_test.py | 5d4b9236f96e02ee546f514160efbb9699654d30 | [
"MIT"
] | permissive | ralphje/imagemounter | d0e73b72fe354c23607361db26906e1976b5d8ee | 383b30b17fe24df64ccef071ffb5443abf203368 | refs/heads/master | 2023-02-22T14:27:54.279724 | 2022-04-04T15:08:56 | 2022-04-04T15:08:56 | 16,476,185 | 98 | 51 | MIT | 2023-02-09T10:49:23 | 2014-02-03T10:27:32 | Python | UTF-8 | Python | false | false | 869 | py | import sys
from imagemounter._util import check_output_
from imagemounter.disk import Disk
from imagemounter.parser import ImageParser
class TestParted:
def test_parted_requests_input(self, mocker):
check_output = mocker.patch("imagemounter.volume_system._util.check_output_")
def modified_command... | [
"ralph@ralphbroenink.net"
] | ralph@ralphbroenink.net |
e77a593197bf45d0a7c18466dd8753c90f6313e4 | 6e701e3cff75a12a6f7f591fab440e62c2ecb198 | /bookmarks/settings/base.py | 1e1ddc46ec07903323915f87ddcaa7b1e3b5622a | [] | no_license | WellingtonIdeao/d3ex_bookmarks | 10350f54c396881bc9e81b96cb86d3f6d74c8b34 | 52c1a5493202dc415f00c4d63b64e9533ac1845d | refs/heads/main | 2023-06-07T02:40:34.806602 | 2021-07-06T00:30:28 | 2021-07-06T00:30:28 | 381,181,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | """
Django settings for bookmarks project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os.p... | [
"wellington.ideao@gmail.com"
] | wellington.ideao@gmail.com |
ec27a29626174e37914d48b357b7324a2522650f | b0c88350eadcbbeab3d9ebb5ea3a2efccc7d95e9 | /classicalml/regression_targetscaling/cveval_regression_robseqprior.py | a8aea8746a7797b9994c97aa645a788a3e9514d0 | [] | no_license | ysuter/brats20-survivalprediction | 853d821c61b91e35f7bf23a1ca1f7295b1ef3ee1 | 388053b789ccf388bc9a29bf94a672d2da973a5c | refs/heads/main | 2023-04-16T15:48:35.486293 | 2021-04-30T17:11:24 | 2021-04-30T17:11:24 | 316,608,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,515 | py | #!/home/yannick/anaconda3/envs/py36/bin/python
import json
import numpy as np
import os
import pandas as pd
from skfeature.function.information_theoretical_based import CIFE, JMI, DISR, MIM, CMIM, ICAP, MRMR, MIFS
from skfeature.function.similarity_based import reliefF, fisher_score
from skfeature.function.statistica... | [
"noreply@github.com"
] | ysuter.noreply@github.com |
5eacb8622f507ddfb3d83ff89f5001b3f5fa21e3 | 634367d6a94d9bce231a8c29cf9713ebfc4b1de7 | /covid_dashboard/views/get_district_stats_on_given_date/api_wrapper.py | 83bfdd8ad95f836f4c9f6a6c05a99e3b45ee01c2 | [] | no_license | saikiranravupalli/covid_dashboard | 5a48c97597983ada36a3bf131edf5ca15f1dedec | 954dd02819fb8f6776fa2828e8971bd55efa657c | refs/heads/master | 2022-11-08T10:11:27.836507 | 2020-06-30T09:00:27 | 2020-06-30T09:00:27 | 269,610,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | import json
from django.http import HttpResponse
from django_swagger_utils.drf_server.utils.decorator.interface_decorator \
import validate_decorator
from .validator_class import ValidatorClass
from covid_dashboard.interactors\
.get_day_wise_district_details_on_given_date_interactor import \
DistrictSta... | [
"saikiranravupalli@gmail.com"
] | saikiranravupalli@gmail.com |
6e9393d3d17cfc7054199e6f3782dfc6383250df | 11052dcb2ee70b601c521ba40685fd8e03c86a45 | /apps/oinkerprofile/models.py | 3fcf6b96b867f697ad2cba296ea083b482cb2fd7 | [] | no_license | naistangz/twitter-clone | 53757959de8f3f063cd1fbbc9bc72c024beee22f | 56f44610a729cd040857786f481c8b7f94397a3d | refs/heads/master | 2023-04-13T14:16:44.357440 | 2021-04-25T08:18:42 | 2021-04-25T08:18:42 | 354,792,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class OinkerProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
follows = models.ManyToManyField(
'self', related_name='followed_by', symmetrical=False)
avatar = mode... | [
"a6anaistang@hotmail.co.uk"
] | a6anaistang@hotmail.co.uk |
6690bf9a5dacfc7bafcbe1023ee73b5f95bae792 | 9912574419aa12bac4182309bd3ff2a85cc0fe43 | /myenv/lib/python3.7/site-packages/grpc/_grpcio_metadata.py | c99079b672f7923336da9c5b5a3e26a5a963ff2d | [
"MIT"
] | permissive | liv-yaa/ML_BeeHealth | ad01858a0a5651b2bda68e77ff2e60550e1f3eba | 7e0797d6faaef2b071c841e57fffe45d470aef3c | refs/heads/master | 2023-01-23T01:49:16.444685 | 2023-01-11T17:35:04 | 2023-01-11T17:35:04 | 172,980,260 | 1 | 1 | MIT | 2022-12-08T01:42:46 | 2019-02-27T19:53:28 | Python | UTF-8 | Python | false | false | 26 | py | __version__ = """1.24.3""" | [
"olivia.f.smith@gmail.com"
] | olivia.f.smith@gmail.com |
1d0c5a63ebb091013f41650238f7244a2189d919 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.15/_downloads/plot_time_frequency_erds.py | ade2c6289d640ea78caded44665a8d296b989398 | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 5,229 | py | """
===============================
Compute and visualize ERDS maps
===============================
This example calculates and displays ERDS maps of event-related EEG data. ERDS
(sometimes also written as ERD/ERS) is short for event-related
desynchronization (ERD) and event-related synchronization (ERS) [1]_.
Concept... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
c5dd27af9004567fed4a4c508b43d1acfce35e68 | 8fcae139173f216eba1eaa01fd055e647d13fd4e | /.history/scraper_20191220154310.py | 85e5bdeab8d217043d007104d46a712f7cdf91d4 | [] | no_license | EnriqueGalindo/backend-web-scraper | 68fdea5430a0ffb69cc7fb0e0d9bcce525147e53 | 895d032f4528d88d68719838a45dae4078ebcc82 | refs/heads/master | 2020-11-27T14:02:59.989697 | 2019-12-21T19:47:34 | 2019-12-21T19:47:34 | 229,475,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module docstring: One line description of what your program does.
There should be a blank line in between description above, and this
more detailed description. In this section you should put any caveats,
environment variable expectations, gotchas, and other notes abo... | [
"egalindo@protonmail.com"
] | egalindo@protonmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.