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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d9fbcc9d3db5195493acabf8c693f8b1d4d7abb | 56a0762c741bcac3ab1172eb6114a9e59a48a5df | /tutorados/urls.py | 2a9edff042fcb259b99285e88e6692f3844700c5 | [
"MIT"
] | permissive | jjmartinr01/gauss3 | 54af1735a035a566f237d8e0fd9a6fe4447845a2 | 41a23d35c763890d8f729c9d63ac073673689400 | refs/heads/master | 2023-08-23T06:40:51.033857 | 2023-08-08T11:50:50 | 2023-08-08T11:50:50 | 171,710,013 | 1 | 0 | MIT | 2023-02-15T18:43:56 | 2019-02-20T16:35:03 | HTML | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
from django.urls import path
from . import views
urlpatterns = [
path('informes_seguimiento/', views.informes_seguimiento),
path('ajax_informe_seguimiento/', views.ajax_informe_seguimiento),
path('informes_tareas/', views.informes_tareas),
path('ajax_informe_tareas/', views.aja... | [
"jmar0269@gmail.com"
] | jmar0269@gmail.com |
ad5324159ca0060c785e7051432aad7ab77c8867 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/FRDTE-OPT-MIB.py | 77d19de2e78d7c6a5a5bab9832e5753674ad3af1 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 40,516 | py | #
# PySNMP MIB module FRDTE-OPT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FRDTE-OPT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:02:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
196cb48fcdbe649a2e58181b1da415c8ed75de4d | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/cp.py | 384994489e1d03b7b35680797cc0c3b747a290c6 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
f77666e52275503f32ffd175f4645ea453839b20 | 3388cf3dfde334e6eddc845879b48e9804d8d374 | /src/rocks-pylib/rocks/build.py | 5b81b235aeb6f48159b35972173f47e2c0547b5c | [] | no_license | scottsakai/core | 16c6d83a4ee33a534ab0e0a1462680a1183c7881 | 21bced45edd9b70258fa59929f09b102f7874060 | refs/heads/master | 2021-08-14T07:12:42.726105 | 2017-11-14T23:57:36 | 2017-11-14T23:57:36 | 109,899,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,617 | py | #! /opt/rocks/bin/python
#
# @Copyright@
#
# Rocks(r)
# www.rocksclusters.org
# version 6.2 (SideWinder)
#
# Copyright (c) 2000 - 2014 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification,... | [
"ppapadopoulos@ucsd.edu"
] | ppapadopoulos@ucsd.edu |
8a57b2c557a5ef2f443057587619d3e3c06297ab | 6f02ef3af5c9360fdc41f766493e5f8f2eeaca58 | /todos/migrations/0001_initial.py | a4a758ab58d2e6245ce1c817234954a901ac27f6 | [] | no_license | mahmudgithub/demo_pactics_project_eighteen | b79b58a9e6283f6c155013e775f28ba9746ce8e1 | 0709453fddde390ad1b456b2dc3bc5cfab0a30de | refs/heads/master | 2022-04-01T03:17:32.275191 | 2020-01-29T11:03:50 | 2020-01-29T11:03:50 | 236,962,921 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 2.2.6 on 2019-10-31 11:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"mahmudhossain838@gmail.com"
] | mahmudhossain838@gmail.com |
f8f6e8e72ebdcabc0c5a3c0453af21f15603e6d2 | 978248bf0f275ae688f194593aa32c267832b2b6 | /xlsxwriter/test/comparison/test_chart_radar01.py | 3ec2e6659d3e8c3762dccca98737d355ecc87765 | [
"BSD-2-Clause-Views"
] | permissive | satish1337/XlsxWriter | b0c216b91be1b74d6cac017a152023aa1d581de2 | 0ab9bdded4f750246c41a439f6a6cecaf9179030 | refs/heads/master | 2021-01-22T02:35:13.158752 | 2015-03-31T20:32:28 | 2015-03-31T20:32:28 | 33,300,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
e6bfc1a526fa9242f4a6480456004c104c5cb614 | d3d14ffc9d0211c49187f7502e0e9edbf68cc01f | /auth_network_provider/admin.py | 2aaf239a44680b3362b64fbffbc8be3a999739e3 | [] | no_license | Brachamul/centrifuge | 567948fe0fd67a605448c1f3248a0fc5c6d838e6 | b3ba6635fd4097cc76b4ef6e2522ab2741ccd372 | refs/heads/master | 2021-05-01T03:41:29.432670 | 2017-06-17T14:20:02 | 2017-06-17T14:20:02 | 61,970,963 | 0 | 1 | null | 2017-01-22T15:45:55 | 2016-06-26T02:48:56 | HTML | UTF-8 | Python | false | false | 752 | py | from django.contrib import admin
from .models import *
class AppAdmin(admin.ModelAdmin):
model = App
list_display = ("name", "trusted", "callback_url", "key", "secret")
admin.site.register(App, AppAdmin)
class CredentialsInline(admin.TabularInline):
model = Credentials
readonly_fields = ( "app", "user_has_au... | [
"barnaby.brachamul@gmail.com"
] | barnaby.brachamul@gmail.com |
21bb27820c75c147f94f451e5b09b11aa42f6dbc | a73fd25dd9a8e6df0b1bf3eee0bccf5297722bc7 | /]tasks/2018.01.26.make_purge_road_ds/purged_road_test.py | b51732b72009e0187128f0a3175859c76936bfc9 | [] | no_license | bohaohuang/sis | 23d0260d85903b62518fb8fb588661597248ad0d | 28a59f3182f0ba58ba582449377c6588af1d4cde | refs/heads/master | 2021-05-05T17:00:33.808099 | 2019-09-06T17:46:02 | 2019-09-06T17:46:02 | 117,362,230 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | import os
import imageio
import numpy as np
import matplotlib.pyplot as plt
patchDir2 = r'/hdd/uab_datasets/Results/PatchExtr/inria/chipExtrRand0_cSz224x224_pad0'
files = os.path.join(patchDir2, 'fileList.txt')
with open(files, 'r') as f:
file_list = f.readlines()
files = os.path.join(r'/media/lab/Michael(01)/ch... | [
"bohao.huang@duke.edu"
] | bohao.huang@duke.edu |
b2f0c12b65c751c60b90d88d52ace5920b128e1d | 35f2fafdc401b6a055d7d236fd1a5c619b6567df | /users/models.py | 781e6d3ddd30db5b26262f98d80bdcb1a5e68729 | [] | no_license | lannyMa/zmr_form2 | d8999d3605cf6ef0aee53b91599db3d5e91ddfc2 | e02743231d1df98e25c7c321bae82b01ebcaae83 | refs/heads/master | 2021-07-18T11:20:19.914460 | 2017-10-26T10:25:17 | 2017-10-26T10:25:17 | 108,396,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | from datetime import datetime
from django.contrib.auth.models import AbstractUser
from django.db import models
# Create your models here.
class UserProfile(AbstractUser):
image = models.ImageField(upload_to="image/%Y/%m",default="image/default.png",verbose_name="头像")
nick_name = models.CharField(max_length=... | [
"iher@foxmail.com"
] | iher@foxmail.com |
919360772cff2ff788f446d26bf11cbde56b7805 | dc437674926f7402da4de3ea4022da37932aaffd | /studentproject/post/admin.py | 2a3ec02467b1509ef6750978aeee6360170098cc | [] | no_license | kstar0102/Datasource | ec188029ed6fdefcda13b49fffc0496f9cbd6277 | 92bb1f4f9f1cfe9dd4c25c220cf503cb1de2ba68 | refs/heads/master | 2023-04-24T17:37:27.670492 | 2021-04-22T07:39:36 | 2021-04-22T07:39:36 | 360,366,639 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Post)
admin.site.register(Like)
| [
"yourname@email.com"
] | yourname@email.com |
60a5cc01c4078a8fac44bbfd6e9fc314eddbd9cd | e55480007fde8acea46fe8eeb3ee7193c25ba113 | /tests/test_ds/test_graph_subject/chapter_04/test_is_tree.py | 8ea2c200572eb20635412bb520bb3f7bd67a6172 | [] | no_license | Annihilation7/Ds-and-Al | 80301bf543ec2eb4b3a9810f5fc25b0386847fd3 | a0bc5f5ef4a92c0e7a736dcff77df61d46b57409 | refs/heads/master | 2020-09-24T05:04:41.250051 | 2020-02-15T10:31:10 | 2020-02-15T10:31:10 | 225,669,366 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | # -*- coding: utf-8 -*-
# Email: 763366463@qq.com
# Created: 2020-02-11 09:36pm
from src.ds.graph_subject.chapter_02 import my_adj_set, adj_matrix
from src.ds.graph_subject.chapter_04 import is_tree
import unittest
class Test_IsTree(unittest.TestCase):
def setUp(self) -> None:
self.test_adj_matrix1 = is... | [
"763366463@qq.com"
] | 763366463@qq.com |
a0319a975466da4555acd1c7f72db4566235dbd5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /hpJsoWBBHWKZ9NcAi_20.py | a8ff8faf0dbc2ff4752f68ec485a8e5bd8531d3f | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | """
In the world of birding there are four-letter codes for the common names of
birds. These codes are created by some simple rules:
* If the bird's name has only one word, the code takes the first four letters of that word.
* If the name is made up of two words, the code takes the first two letters of each wor... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
90e79259099914f41a2ae73355cadc9e89d537bc | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/es2019/PutValue.spec | 82f9ea18648132fc2116887adffdb4b33ca2706b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 1,196 | spec | 1. ReturnIfAbrupt(_V_).
1. ReturnIfAbrupt(_W_).
1. If Type(_V_) is not Reference, throw a *ReferenceError* exception.
1. Let _base_ be GetBase(_V_).
1. If IsUnresolvableReference(_V_) is *true*, then
1. If IsStrictReference(_V_) is *true*, then
... | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
b034390970ca7665154b9ff7554141897cd63861 | fd64e364368bcb2cdcf77ab1e0fc234a6b698f69 | /Python/Beginner/CATSDOGS.py | 4c85396cd6c96559c3c085683f329d3f416ad4ff | [] | no_license | Parizval/CodeChefCodes | 57712069f3d56cc42282f9e35c6ddd9398e4a5bf | cfd2876816be806882650b6ea51431b1f8d6bec5 | refs/heads/master | 2021-07-16T13:10:15.668713 | 2020-07-06T21:40:09 | 2020-07-06T21:40:09 | 188,693,667 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | for a in range(int(input())):
C,D,L = map(int,input().split())
check = True
if L % 4 != 0 :
check = False
else:
animals = L //4
upperlimit = D + C
remainder = C - 2*D
if remainder < 0 :
remainder = 0
lowerlimit = D + remainder
if animal... | [
"anmolgoyal@gmail.com"
] | anmolgoyal@gmail.com |
8897cd5753b7e6de917d400cf7fff05f75fe2ae7 | 9431bba2d148f8aef9c0a8f3ca16fcf875890757 | /tools/snippets/callexecute.py | d020c8d54598d30b17ad2f2e36d6f1c5d51cb87b | [
"MIT"
] | permissive | terasakisatoshi/pythonCodes | fba0b78414b2c85f4a738200354ea583f0516768 | 953210c06e9885a7c885bc01047715a77de08a1a | refs/heads/master | 2023-05-14T12:30:22.201711 | 2023-05-07T13:41:22 | 2023-05-07T13:41:22 | 197,893,702 | 2 | 1 | MIT | 2022-11-25T10:59:52 | 2019-07-20T07:09:12 | Jupyter Notebook | UTF-8 | Python | false | false | 416 | py | import subprocess
import sys
from os.path import join
def main():
argv=sys.argv
argc=len(argv)
print ("argv=%s"%argv)
print ("argc=%d"%argc)
if(argc==2):
exename=argv[1]
path ="hoge"
command=exename+" "+join(".",path)
echo="echo "+command
subprocess.call(ech... | [
"terasakisatoshi.math@gmail.com"
] | terasakisatoshi.math@gmail.com |
42dd946ad5766301d51e0817e59acc4c05619a40 | 8cf0844cfc26f32726ea787100528aea9a63427c | /flask_app/app_start.py | 6fe44cf4502b62ed22ca7eb5655a1d62a1e129d6 | [] | no_license | lcgkiller/firstFlask | 8d8aa2987381dd599522391a82f5c1e53cda48fc | 4cfb3b8093e1e118aecebdcd9945edae02226ccc | refs/heads/master | 2020-03-13T21:47:43.241979 | 2018-04-27T16:02:51 | 2018-04-27T16:02:51 | 131,304,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | from flask import Flask, request, redirect, url_for, send_from_directory, render_template
app = Flask(__name__)
app.debug = True
# Routes
@app.route('/', methods=['GET'])
def root():
return render_template('index.html')
@app.route('/<path:path>')
def static_prox(path):
return app.send_static_file(path)
i... | [
"lcgkiller@gmail.com"
] | lcgkiller@gmail.com |
7ef87ef5d13fc04a4c361d681198ecd5755d565c | ab6c141c7575dc7bcf91739bd747bb06b7eb5b65 | /ideation/idea/migrations/0014_auto__add_field_ideasupport_date_created.py | 8868f4dddf44854fb813fb352ce9335438306297 | [] | no_license | mattiek/thoughtbubble.us | fc2c2ea93fe8485f84e93f0337799ba2adefaffc | d0ec2300b07af51deeeece42590110c37c90493f | refs/heads/master | 2021-03-30T18:04:04.217266 | 2014-09-17T01:11:51 | 2014-09-17T01:11:51 | 10,833,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,359 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'IdeaSupport.date_created'
db.add_column(u'idea_ideasupport', 'date_created',
... | [
"blorenz@gmail.com"
] | blorenz@gmail.com |
11a9567b55ce1e148141783bb21cb23f10aeca3c | b24ce5acced59ef367a20706949953f3ea81d57a | /tensorflow/contrib/learn/python/learn/learn_runner.py | 183ab438b6f2f658da98d6f655c97b4a59ac9a06 | [
"Apache-2.0"
] | permissive | BoldizsarZopcsak/Image-Classifier | b57dd3b72cf368cc1d66a5e318003a2a2d8338a4 | c0d471a55a70b3118178488db3c005a9277baade | refs/heads/master | 2022-11-19T12:28:49.625532 | 2018-01-20T15:48:48 | 2018-01-20T15:48:48 | 118,253,026 | 1 | 1 | Apache-2.0 | 2022-11-01T09:24:24 | 2018-01-20T15:04:57 | Python | UTF-8 | Python | false | false | 6,712 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"zboldi@gmail.com"
] | zboldi@gmail.com |
276580429593813de66a2a00be17ca56381aed29 | beb4c1dd9077f11ebd7aca407b272acbc780aa3c | /natureShare/natureShare/asgi.py | 353dbf25eec8bcec3d755238860bcb12f1dbfeb5 | [] | no_license | jpchato/nature-share | f89cfc1295648e9a0b03b7281d72d9179357b0be | 2cb952e72ea43c45884cd4a6c4b39c32936fe612 | refs/heads/master | 2023-02-19T06:46:01.213253 | 2021-01-15T19:10:24 | 2021-01-15T19:10:24 | 317,411,534 | 1 | 0 | null | 2021-01-13T20:23:29 | 2020-12-01T03:15:01 | Python | UTF-8 | Python | false | false | 399 | py | """
ASGI config for natureShare project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"jpchato@gmail.com"
] | jpchato@gmail.com |
a06ec03b657f606e1b3c9cb0faa9abb9c070ad9c | 410e4fa021618be7d0a75aa46fa60243b0f084a0 | /bang/seasons.py | 841c75fb3a61a1271acfd89d53feb6c039fbd8d0 | [] | no_license | MagiCircles/BanGDream | 0c44f0dceffdb8c398c62b75061aca94726d2397 | ae639b35a14a78d9dfab3fbd863e4beb10a54699 | refs/heads/master | 2023-08-11T03:27:31.601492 | 2023-08-02T08:13:47 | 2023-08-02T08:13:47 | 86,222,591 | 59 | 13 | null | 2022-08-03T01:30:39 | 2017-03-26T09:52:18 | Python | UTF-8 | Python | false | false | 26,305 | py | # -*- coding: utf-8 -*-
import random, json
from django.conf import settings as django_settings
from magi.settings import (
HOMEPAGE_BACKGROUNDS,
)
from bang.utils import (
getHomepageArts,
)
def getRandomChristmasArt():
homepage_arts = []
try:
homepage_arts += getHomepageArts(
only... | [
"db0company@gmail.com"
] | db0company@gmail.com |
fe568ab2ae061bd22fdba789143115d98757ce79 | 9fb1c85a6d39c08e2a3cc235335bc482ad909b71 | /prowler/providers/aws/services/apigateway/apigateway_endpoint_public/apigateway_endpoint_public.py | dd48255b14d584610fe0c0b2327022a71b29afe2 | [
"Apache-2.0"
] | permissive | muharihar/prowler | 06dbdeaa0696dd65d72c33ff3c9f957b97f83d7a | 25c9bc07b219cc02004cc0b84adcfdcf18d5ad2b | refs/heads/master | 2023-02-18T01:26:54.161003 | 2023-02-10T11:38:13 | 2023-02-10T11:38:13 | 238,623,868 | 0 | 0 | null | 2020-02-06T06:36:36 | 2020-02-06T06:36:35 | null | UTF-8 | Python | false | false | 945 | py | from prowler.lib.check.models import Check, Check_Report_AWS
from prowler.providers.aws.services.apigateway.apigateway_client import (
apigateway_client,
)
class apigateway_endpoint_public(Check):
def execute(self):
findings = []
for rest_api in apigateway_client.rest_apis:
report ... | [
"noreply@github.com"
] | muharihar.noreply@github.com |
af8af055ae6e1ed2806b5c3f803bf49f74269d9c | a86293a2033c06410aa8ed19bcbce8ca55ea3c55 | /src/client_libraries/python/dynamics/customerinsights/api/models/hierarchy_dependency.py | fb99c2e6f2cd0cec933998fef17969965b30fc13 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ramotheonly/Dynamics365-CustomerInsights-Client-Libraries | a3ca28aa78d2b5509e65d9895ff4a0d42d05f611 | e00632f7972717b03e0fb1a9e2667e8f9444a0fe | refs/heads/main | 2023-08-02T08:09:04.063030 | 2021-09-28T22:42:15 | 2021-09-28T22:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"michaelajohnston@mac.com"
] | michaelajohnston@mac.com |
a6ce5cb881f64be94cf0f5da6e0511a2849f7d7e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03986/s472536811.py | 0e513eaef16d85aa0b34b6fd2545952c6d79a389 | [] | 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 | 283 | py | x = input()
cs = 0
ct = 0
prev = ""
n = len(x)
cnt = 0
for i in range(n):
if x[i] =="S":
cs+=1
elif x[i] =="T":
if cs>0:
ct+=1
else:
cs = 0
ct = 0
if cs>0 and ct>0:
cnt+=1
cs-=1
ct-=1
print(n-cnt*2)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6e3be21352074c547520d6711374fad2530e1908 | 63481ad34cca1a90c09819dd5f65fae490e59240 | /AddColumn.py | 7be5e9fd1172002b875c15d78d4ed93c2b519ecc | [] | no_license | icequeen5931/SmartSheets | 8d6ca26e269c83986ba302648e9c532ebdd6970d | 9c26269670f5b5679d08f9cb2bc765bb7753461c | refs/heads/master | 2021-05-11T21:36:01.269525 | 2017-01-12T15:37:50 | 2017-01-12T15:37:50 | 117,471,837 | 0 | 1 | null | 2018-01-14T22:25:12 | 2018-01-14T22:25:12 | null | UTF-8 | Python | false | false | 560 | py | __author__ = 'jpisano'
import requests
import json
sheetid = '4816554870237060' # "test" Sheet ID
rowid = '4542989902079876' # row number 4
customer_col = '4113607471458180' # Customer name
url = 'https://api.smartsheet.com/2.0/sheets/' + sheetid + '/columns'
myheader = {'Authorization': 'Bearer 519zl07z3k1uef6rf... | [
"jpisano@cisco.com"
] | jpisano@cisco.com |
636ceb065354c55694cf707a2445c3403708f5a4 | cccf8da8d41ae2c14f5f4313c1edcf03a27956bb | /python/python2latex/writeLTXparbox.py | 10108a1f33c2e2ce95c5acb886bfbdd1ba13e27d | [] | no_license | LucaDiStasio/transpilers | e8f8ac4d99be3b42a050148ca8fbc5d025b83290 | c55d4f5240083ffd512f76cd1d39cff1016909b8 | refs/heads/master | 2021-01-12T01:57:00.540331 | 2017-11-01T13:59:55 | 2017-11-01T13:59:55 | 78,448,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,309 | py | # Autogenerated with SMOP
from smop.core import *
#
@function
def writeLTXparbox(filepath=None,args=None,options=None,*args,**kwargs):
varargin = writeLTXparbox.varargin
nargin = writeLTXparbox.nargin
##
#==============================================================================
# Copyright (c)... | [
"luca.distasio@gmail.com"
] | luca.distasio@gmail.com |
82a1071af62dab8396e2f20057846ed7b6b6ca47 | c6af5dcdb1a3cd9d20abdf50c5571836a1b76298 | /servlets/login.py | 54bbbd9d129286c5db8dc6fab7dddadd00a6e83b | [] | no_license | mikelambert/dancedeets | 82b1cb0c32b14485cd9cbbc051421d1cb7499830 | 8dd51007bb2faa56d835a149b60740141d472c25 | refs/heads/master | 2021-01-21T00:30:09.963623 | 2016-11-29T12:04:00 | 2016-11-29T12:04:00 | 42,857,923 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | #!/usr/bin/env python
import logging
import app
import base_servlet
from logic import mobile
from users import users
@app.route('/login')
class LoginHandler(base_servlet.BaseRequestHandler):
def requires_login(self):
return False
def is_login_page(self):
return True
# TODO(lambert): mo... | [
"mlambert@gmail.com"
] | mlambert@gmail.com |
0031184772a691b823929ac81fe865d20d594792 | d5b6b19ab192180ae1e04eff99a37f629e1feb10 | /goods/sellgoods/salesquantity/local_util/sales_util.py | 124a73cd88e88090953229c4709c3d6c998ff4ab | [] | no_license | maxenergy/goodsdl2 | 9e88dd499fa4c6d536e4444839e7fbe549c7070a | 42d0eb797e9710ca85d885e6b4d0ed97cbf88607 | refs/heads/master | 2022-12-05T12:34:18.061604 | 2020-09-03T04:28:29 | 2020-09-03T04:28:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | from set_config import config
from goods.sellgoods.salesquantity.utils import mysql_util
from goods.sellgoods.sql import sales_quantity
import time
ai = config.ai
def get_predict_sales(shop_ids):
mysql_ins = mysql_util.MysqlUtil(ai)
sql = sales_quantity.sql_params["sales_ai"]
exe_time = str(time.strftime('%... | [
"908601417@qq.com"
] | 908601417@qq.com |
2e1d77bc5d60ab64e8e3ec36b17200fe8b53f725 | e9e3169d354c840104595dcd660cd16d7d56f72e | /dz5_asp/task1.py | dbf086d9af3d3fb70c51908923f24d927c786782 | [] | no_license | davendiy/combinatorics_2course | f8d08c9164fa544662c86e254f3a7181928db3a1 | b18618335812c3a185a94be8fbbc8f28fd2dea78 | refs/heads/master | 2020-04-05T09:58:37.904216 | 2019-01-11T21:23:02 | 2019-01-11T21:23:02 | 156,782,776 | 0 | 0 | null | 2018-12-06T22:18:22 | 2018-11-08T23:32:12 | Python | UTF-8 | Python | false | false | 3,977 | py | #!/usr/bin/env python3
# -*-encoding: utf-8-*-
# created: 07.12.18
# by David Zashkolny
# 2 course, comp math
# Taras Shevchenko National University of Kyiv
# email: davendiy@gmail.com
"""The following implementation assumes that the activities
are already sorted according to their finish time
"""
import random
impo... | [
"davendiy@gmail.com"
] | davendiy@gmail.com |
9fea3d155012b6af9e4d7879b888a09a41598709 | 1b496449867e60fcec110d1f0d6b7bc0bc8cddf6 | /mydeploy/myapp/setup.py | 35cc2459c6856afa68137edf4f9b170e088b2e91 | [] | no_license | sebbekarlsson/tarship | f4cca6dc27174fc0d31ee3ceb8ba2a8864070e42 | c7b57472a3e0146d38260c3607473914750e1ffd | refs/heads/master | 2020-03-28T21:37:40.004937 | 2018-12-06T12:02:33 | 2018-12-06T12:02:33 | 149,170,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from setuptools import setup, find_packages
setup(
name='myapp',
version='1.0',
install_requires=[
'flask'
],
packages=find_packages()
)
| [
"sebbekarlsson97@gmail.com"
] | sebbekarlsson97@gmail.com |
064352bb445eb7efa4572729fcfb9c94567bea19 | c57b42b6e8b38ac6cf575787502b03290887f470 | /grids/boundary_condition_helper.py | 0ade90eb06b982b7f1cb2e767ac429a385409940 | [] | no_license | leifdenby/pysolver | 790643d242e1726846303b4561d326842535ab72 | fceb9d82c08f4911e2beceb1189d3766d0c80675 | refs/heads/master | 2022-12-11T12:21:37.704152 | 2012-12-04T15:38:30 | 2012-12-04T15:38:30 | 294,418,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,810 | py | import numpy as np
import matplotlib.pyplot as plot
from grids import boundary_conditions as BCs
"""
This module contains helpers to easily construct the strings needed for setting boundary conditions.
The main work is done by the 'make_bc_string' method, which may then used for higher level operations, see
... | [
"leif@denby.eu"
] | leif@denby.eu |
fe79ba37dfe75f6ff0503aad5ac0e6a96ee458f1 | 68c29e7a17d87e34b1d6613c3e2e70a36fd2adcc | /easy/485_max_consecutive_ones.py | 67224cb9e68d8e2bbf47be570831d8cff6dfae9b | [
"MIT"
] | permissive | Sukhrobjon/leetcode | 284242fbfded3e47a57ce9230f9bc1175685cd7a | 547c200b627c774535bc22880b16d5390183aeba | refs/heads/master | 2022-02-26T20:56:57.347119 | 2022-02-05T01:58:49 | 2022-02-05T01:58:49 | 192,158,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | """
Given a binary array, find the maximum number of consecutive 1s in this array.
Example 1:
Input: [1,1,0,1,1,1]
Output: 3
Explanation: The first two digits or the last three digits are consecutive 1s.
The maximum number of consecutive 1s is 3.
NOTE:
The input array will only contain 0 and 1.
The length of inpu... | [
"sgolibbo@mail.ccsf.edu"
] | sgolibbo@mail.ccsf.edu |
1423e38aeb02629c653981912db7913b499d81fa | 6cbaade56c5db347d1be9a3422a69af52df39b97 | /python_workspace/01_jump_to_python/4_input_output/3_file_io/174.py | 0496363484d3cc8d30da51d8af3917c2569201ed | [] | no_license | baewonje/iot_bigdata_- | b54e3772f64b9695efee8632183590628b679e11 | 2ce1af67d2f05abeb2ecd442b7299f349bdb9753 | refs/heads/master | 2020-09-06T09:53:53.018320 | 2019-12-06T08:19:33 | 2019-12-06T08:19:33 | 220,390,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | f = open("새파일.txt", 'r',encoding='UTF-8')
line = f.readline()
print(line)
f.close()
| [
"50129576+baewonje@users.noreply.github.com"
] | 50129576+baewonje@users.noreply.github.com |
af4c2009dc27568a6632da49167c992f4cbb6714 | acf6d4d8fa9d13e4d5e9c6e3576eefeb384d7b11 | /confluent_server/confluent/discovery/core.py | c368a1cf6c89f3a511930d3ac5c75d3a0b0376f4 | [
"Apache-2.0"
] | permissive | dstam/confluent | 6fa6b1916f907003cda89ece047d6e2c462f42ed | 929392c74620299a9be8d73c4baeb27d455aba5b | refs/heads/master | 2023-08-11T15:50:51.603433 | 2021-09-23T14:42:47 | 2021-09-23T14:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,469 | py | # Copyright 2016-2021 Lenovo
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"jjohnson2@lenovo.com"
] | jjohnson2@lenovo.com |
ae3069ea5b56ee41d89ee8c8e24a57ba2f5ca18e | 675c5e97a84cfda399ca74c1804e0218c43b7c70 | /xTool/contextmanagers/temp.py | 78739d83c8720635e0978184092eabe4db5c3ca6 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"Python-2.0"
] | permissive | fengzhongzhu1621/xTool | 37a232e5ea220c8e5cb48aaf6868bc9cf24181e8 | 57d745ce6be531c000a3b477c38bfdd4c2ac74e3 | refs/heads/master | 2023-07-20T22:31:50.278926 | 2023-07-18T02:29:21 | 2023-07-18T02:29:21 | 88,688,127 | 3 | 4 | Apache-2.0 | 2023-05-09T21:53:19 | 2017-04-19T01:49:20 | Python | UTF-8 | Python | false | false | 304 | py | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from pathlib import Path
from tempfile import TemporaryDirectory
@contextmanager
def temp_path(name):
""" a simple cross platform replacement for NamedTemporaryFile """
with TemporaryDirectory() as td:
yield Path(td, name)
| [
"jinyinqiao@gmail.com"
] | jinyinqiao@gmail.com |
f73b54bc15fb86b8360de52a82dabc4c873ff957 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/contrib/tensor_forest/proto/fertile_stats_pb2.py | 584ce5ba078ba2067643a2757cab80357484b93a | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4ad07e1cfb048ba607c58cfdff9fbfc290deaa4051df70b3ef39683a1fe3896b
size 20881
| [
"github@cuba12345"
] | github@cuba12345 |
5fa61eb6f1f27f9cd58eebdfa987ab4e30cc3809 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options.py | 9e1d2f87d101b4f926d8a7a1660b409e667bd8eb | [
"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 | 3,052 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
74f2b12334b2c53165e62947970d47f48a275f4c | a7f459bcc3da31e4cce7c838e716e089a31cb662 | /tables.py | fc44e3abdad6c6227d08dbff3ea4f18197e6433a | [] | no_license | ravenusmc/myDB | 3d5246a2ad2ffc367d5a540eaa3e71322ed55ace | 09aa1d88e4cdc7fb19a01807d3d678bf9e3d777a | refs/heads/master | 2020-03-23T13:49:29.450115 | 2018-10-08T23:49:18 | 2018-10-08T23:49:18 | 141,639,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #This file only create the database name for each user.
#importing needed files
import mysql.connector
class Tables():
def __init__(self):
self.conn = mysql.connector.connect(user='ted',
password='pass',
host='localhost',
... | [
"mcuddy77@gmail.com"
] | mcuddy77@gmail.com |
9505f1bdb5def62407913d377071ecfcf1f5306b | 226e8d309e978240fbd6d4b31238daa357f51042 | /core.py | 77f3c9d7a2c130bdeda4fcc7d9b7f9f9a0167e06 | [] | no_license | zokis/Zy | e183f9ffb2fdfbe2b253666d5a17093b4929658d | 9a4959661d8a221cb359e119945febd6573b5165 | refs/heads/master | 2021-01-01T19:30:18.393976 | 2015-04-30T21:46:21 | 2015-04-30T21:46:21 | 33,011,032 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,501 | py | # coding: utf-8
from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
import re
ESC_STR = r'#[!]#'
class Symbol(str):
pass
class Lambda(object):
def __init__(self, parms, body, env):
self.parms, self.body, self.env = parms, body, env
... | [
"marcelo.zokis@gmail.com"
] | marcelo.zokis@gmail.com |
50c7c5264c127c5133745ffb614f121b6f470cc6 | 78316ffc5c14d6c0c6a144c25be0ba695ae6f4db | /svgout/manipulator.py | 82dab696782ef31e1663d4413bd0b01725d1065e | [] | no_license | meyt/svgout | 235fad9ee59b05f6caddde8ad5b67823c3f8916b | 21770144dade3c22314143291030a3bc24a5b248 | refs/heads/master | 2023-02-02T08:55:14.760035 | 2020-12-07T09:28:15 | 2020-12-07T09:28:15 | 319,265,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | import re
import yaml
import logging
import cssutils
from os.path import join
from bs4 import BeautifulSoup
cssutils.log.setLevel(logging.CRITICAL)
class ElementStyle:
def __init__(self, bs_element):
self.el = bs_element
self.style = cssutils.parseStyle(self.el["style"])
def __getitem__(se... | [
"pasd3000@gmail.com"
] | pasd3000@gmail.com |
6fa3c5bb33d1e17219f01a2c7a0ac9688776ac2a | 35e892b01d2dfeea6f66a29fa336b2478e06bcea | /src/mcedit2/widgets/mcedockwidget.py | 8bb08d93090fa2ac5f3d094f99e0e8efe57bc3a2 | [
"BSD-3-Clause"
] | permissive | theomission/mcedit2 | bf1d0b7e00eaf3523b386b5909b3e3796e73dc2f | 39a717b3cab5dd8366ed8542a070e4120386eb92 | refs/heads/master | 2020-12-31T02:00:52.356814 | 2015-11-09T21:43:44 | 2015-11-09T21:44:52 | 46,336,522 | 1 | 0 | null | 2015-11-17T09:26:11 | 2015-11-17T09:26:11 | null | UTF-8 | Python | false | false | 1,294 | py | """
mcedockwidget
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from PySide import QtGui, QtCore
import logging
log = logging.getLogger(__name__)
class MCEDockWidget(QtGui.QDockWidget):
def __init__(self, *a, **kw):
super(MCEDockWidget, self).__init__(*a, **kw... | [
"codewarrior@hawaii.rr.com"
] | codewarrior@hawaii.rr.com |
c0e5d3a39d855c37ca27c9e9df1c27e7e57350ab | 7b667511748ded171b66bf313d1dffe6f875289e | /tests/matrix_add_global_addr_offset/matrix_add_global_addr_offset.py | 82fa1a80ab86e72ea6ffc595134fafa0757fd3f2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | herosugi/nngen | 3b94301ba43ba0684be31c42c4977e1f72a081de | ce09cd1dba55d815163adfe901c7cca65dc0709f | refs/heads/master | 2020-09-09T02:14:04.746559 | 2019-11-12T09:11:33 | 2019-11-12T09:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,536 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
import functools
import math
import numpy as np
if sys.version_info.major < 3:
from itertools import izip_longest as zip_longest
else:
from itertools import zip_longest
# the next line can be removed after insta... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
25aaf0c09cf04ff7e328393bfd3aac3c91ea28c4 | bc2327d2bce695bb4881be63b1912f550857fd14 | /comps_and_gens/avoid_injecting_data.py | c40913be675650a5917f6c9caa4c0590c0adef57 | [] | no_license | mentalclear/fluent-in-python | 1a1d9ad30e949e72d8633156091b84b6d52b85bc | 243cff274861abc853b4ba5d03090191df5cd7db | refs/heads/master | 2023-08-05T19:26:48.787996 | 2021-10-06T13:04:14 | 2021-10-06T13:04:14 | 402,944,060 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | import math
def wave(amplitude, steps):
step_size = 2 * math.pi / steps
for step in range(steps):
radians = step * step_size
fraction = math.sin(radians)
output = amplitude * fraction
yield output
def transmit(output):
if output is None:
print(f'Output is None')
else:
... | [
"mentalclear@gmail.com"
] | mentalclear@gmail.com |
0211ba058f2a125de890a88deb09db150dcd28fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03377/s880122693.py | 549d34c27687fe087fad3b2a8b81d930c93bff0d | [] | 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 | 74 | py | a,b,x=map(int,input().split())
print("YES" if a+b-x>=0 and x>=a else "NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4e9afc0ee7bcec1dc84aa50b3eca0655bcedea07 | 66c6df450753acc7c41db5afe66abd35d5018c8c | /cliente Rujel/bin33.py | b8af2ff866744ea341d41bab5428a230e2eef354 | [] | no_license | hanmiton/CodigoCompletoEncriptacion | a33807d9470b538842751071031c9ce60951260f | efb7898af5d39025e98c82f1f71c8e9633cce186 | refs/heads/master | 2020-03-24T02:03:08.242655 | 2018-07-25T22:41:05 | 2018-07-25T22:41:05 | 142,360,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | import sys
import math
import random
import openpyxl
LAMBDA = 16 #security parameter
N = LAMBDA
P = LAMBDA ** 2
Q = LAMBDA ** 5
def principal(m1,m2):
doc = openpyxl.load_workbook('cifrado.xlsx')
doc.get_sheet_names()
hoja = doc.get_sheet_by_name('Hoja1')
m1 = int(hoja['A7'].value)
boln1 = bin(m1)
boln2 = bin(... | [
"hanmilton_12@outlook.com"
] | hanmilton_12@outlook.com |
1ec4d6b7f1ee5824542f78212d28e4851ad938e3 | eac22714038e840028cc5abb72bc750004626ebb | /mct_camera_calibrator/src/mct_camera_calibrator/calibrator_service.py | 825e733d2ae04f8e770576b619f5196ebe8297e9 | [
"Apache-2.0"
] | permissive | iorodeo/mct | 79b19f6dab9f6567452df7274d67245bf64b1801 | fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11 | refs/heads/master | 2022-11-11T18:03:18.178182 | 2014-08-20T19:21:27 | 2014-08-20T19:21:27 | 273,790,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | from __future__ import print_function
import roslib
roslib.load_manifest('mct_camera_calibrator')
import rospy
from mct_msg_and_srv.srv import GetBool
from mct_msg_and_srv.srv import GetString
def good_enough(calibrator):
"""
Wraper for the good_enough service provided by the cameracalibrator nodes.
Gi... | [
"will@iorodeo.com"
] | will@iorodeo.com |
6ed74c82e53f1e6b15c7c46353e105569c667bb2 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_exercises/templates/Learning Concurrency in Python/Chapter 08/mapPool.py | ba7352deaa660b0e307545fa085edce324923c64 | [] | 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 | 202 | py | # ____ m.. ______ P..
# ______ ti..
#
# ___ myTask n
# t__.s.. ?+2
# r_ ?+2
#
# ___ main
# w__ P.. 4 __ p
# ___ iter __ ?.i_u.. ? |1,3,2,1
# print ?
#
# __ _________ __ ________
# ?
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
f90ab8530e28474c7c8a23196d0f20aabcc1e379 | bdc45798b67c0d12b78845c3c31e690564b40ed5 | /projects/bbs/bb/views.py | 4ac49069fe6e4eca8557f9ce4126a9d9156b3771 | [
"MIT"
] | permissive | mozillazg/django-simple-projects | c16d8105985707ef572fcb1fb53f76d7e3ed0362 | 6ccd1232cb76595f6dbafa282cef2c20edbb1148 | refs/heads/master | 2023-08-23T20:23:59.139601 | 2015-09-25T23:28:56 | 2015-09-25T23:28:56 | 7,768,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,055 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.contrib.auth import login
from django.contrib.auth import logout
fr... | [
"opensource.mozillazg@gmail.com"
] | opensource.mozillazg@gmail.com |
90d9af82c6f7b23981f29ff3435d608517689b8f | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Geron17Hands/B_PartI/G_Chapter7/D_RandomForests/index.py | 8ff8d66c8fd6f9f178763d49d57ebff430e40833 | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,865 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.HierBlock import HierBlock as hbk
from modules.node.block.ImageBlock ... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
d87ca8f97309bfa2251a3beb33d65a0fc9ba27bc | 21bbc3fbeb7a1616dbd6993b66dc44d9b30df3e7 | /PycharmProjects/samp_proj1/assignment1.py | 9f586fef9c106afcc8bd0ec1f73adb8da96936b9 | [] | no_license | PoornimaDevii/python_training | 6124640608d8bf14289ae61b2b28e0db3b473b6f | 42b535590a6a244a91bd48b4451b74a29c1aaa80 | refs/heads/master | 2020-04-05T19:55:49.723114 | 2018-12-04T11:49:59 | 2018-12-04T11:49:59 | 157,157,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # Adapter Pattern (client:projector vga, dell lap hdmi mac usb)
# format() similar to __repr__
class Projector:
def __init__(self,n):
self.name = n
def __str__(self):
return 'the {} projector'.format(self.name)
def vga(self):
return 'has VGA'
# c1 = Computer('mycomp')
# print(c1... | [
"poornimadevi.rama@gmail.com"
] | poornimadevi.rama@gmail.com |
e54bffad4d3b08796d2abad7fabdf8706e5308f7 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/minigame/PatternGameGlobals.py | 23901749a7104eb5c1e9373c735e47592d0219e8 | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # PatternGameGlobals.py: contains pattern game stuff
# used by AI and client
import MinigameGlobals
# pattern constants
INITIAL_ROUND_LENGTH = 2
ROUND_LENGTH_INCREMENT = 2
NUM_ROUNDS = 4
TOONTOWN_WORK = 1
# how long the players have to input the pattern
InputTime = 10
# this is how long the AI server will wait for... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
65acadcf72878f7a7d12f8ee3b703911f2fda295 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/audio/tacotron2_ID0406_for_PyTorch/test_infer.py | 1e7d04b508274fe794465445a3c225c019ca8888 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 11,619 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
11413c5a57372ae3eadb0c9d39eba7ac4f30600f | b79e567b9709c50588b77174a20bb3bf2a5ae210 | /fan_tools/django/models.py | 118c5c1ebe689fd845df0889f88de5497a1f22b4 | [
"MIT"
] | permissive | micro-fan/fan_tools | 325d05f46fece9fe6e49a12b7a7c8d2259d42e1f | 2a6455b206158f471295b1e4d17e35ab5f98f754 | refs/heads/master | 2023-07-25T03:40:14.963178 | 2023-07-24T18:56:21 | 2023-07-24T18:56:45 | 224,145,427 | 2 | 0 | MIT | 2022-01-16T18:33:24 | 2019-11-26T08:53:55 | Python | UTF-8 | Python | false | false | 750 | py | import os
import uuid
class UploadNameGenerator(object):
def __init__(self, model_name, field_name):
self.model_name = model_name
self.field_name = field_name
def deconstruct(self):
return (
'fan_tools.django.UploadNameGenerator',
(),
{
... | [
"cybergrind@gmail.com"
] | cybergrind@gmail.com |
10c23c7085652bbb944fd917a4f62fe73419cc4f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bulkheads.py | b62773592aff3e1d3625faee7a8c8744150fbac0 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py |
from xai.brain.wordbase.nouns._bulkhead import _BULKHEAD
#calss header
class _BULKHEADS(_BULKHEAD, ):
def __init__(self,):
_BULKHEAD.__init__(self)
self.name = "BULKHEADS"
self.specie = 'nouns'
self.basic = "bulkhead"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7f0bca0bd4ab5c6fd530aa522500b9670194e8ad | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc024/B/4328471.py | 422d6eb2f88b6b69cd1a961089ef14ecba94644a | [] | 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 | 272 | py | n=int(input())
P=[int(input()) for _ in range(n)]
Q=[0]*n
for i,j in enumerate(P):
Q[j-1]=i
cresc=1
cnt=1
for i in range(1,n):
if Q[i-1]<Q[i]:
cnt+=1
else:
cresc=max(cresc,cnt)
cnt=1
cresc=max(cresc,cnt)
print(n-cresc) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
a07ca542fe9a301a620158b1438fc385225f567c | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/21ffbcb3d32e0ee52eb1/snippet.py | 5cff930ed25c3e97206a7417a8478b8a596eec8c | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 796 | py | import hashlib
import itertools
import string
import time
import console
alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
def encrypt(data):
return hashlib.md5(data).hexdigest()
password = encrypt('pass')
def crack(hash, charset, maxlength):
attempts = 0
for attempt in (''.join(candidate) for candidate... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
35fc48a9512d4e2a4b7468acb42ffaee49821ba9 | f0b5917fe0cb6c263e892d2dda6a541094123a16 | /grammar-generator/Elements/STG/Visible/VisibleSpecifiedColumnElementForStg.py | d89df6da48734e55f3d76ab47b53d77f40784dad | [
"MIT"
] | permissive | afronski/grammar-generator | 61a7de686ecc65dfa73f29a000bfed8b699de9ae | 231bf88e28dd02b2cd2a79e0d42cb0613a90501a | refs/heads/master | 2016-09-05T10:16:33.228488 | 2014-04-27T20:09:29 | 2014-04-27T20:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from Elements.STG.Base.IElementForStg import IElementForStg
class VisibleSpecifiedColumnElementForStg(IElementForStg):
def __init__(self, templates, settingsObject):
self.typeName = "Specified"
self.templateName = "SpecifiedVisibledColumn"
super(VisibleSpecifiedColumnElementForStg, self).__init__(templates, se... | [
"afronski@gmail.com"
] | afronski@gmail.com |
d92db4bf193ecaffa5187a3dbaf23ac6086d60f2 | 1070490055b5c981d936038959731134b01ce272 | /apps/utils/mixin_utils.py | 96866fa06ec2322ff13ee3b096fd4b88d85d9128 | [] | no_license | ljingen/MxOnline | 401d5be37e11cb866dc8eb78acc9b6de053c5708 | 1b471dd6b4968f79dd6866bb5e3e6413b760c8a1 | refs/heads/master | 2021-10-11T08:57:05.304124 | 2018-02-11T06:59:32 | 2018-02-11T06:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf-8 -*-
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
class LoginRequiredMixin(object):
@method_decorator(login_required(login_url='/login/'))
def dispatch(self, request, *args, **kwars):
return super(LoginRequiredMixin, ... | [
"luojingen@aliyun.com"
] | luojingen@aliyun.com |
3318351747613ba0bee934e6538ceda331bda98c | b53c6ec03b24ad21f3ee395d085c07cd302c3402 | /tests/chainer_tests/datasets_tests/test_image_dataset.py | 1f36e27c0a68509843c447a77daf65914c659b48 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pyotr777/chainer | c0799791f85f499e32ea68636df5ecbe2c0f5675 | 8532edbd921ab0ea98c9447957565777e4601662 | refs/heads/master | 2021-04-28T05:00:16.181948 | 2018-02-20T06:41:21 | 2018-02-20T06:41:21 | 122,169,206 | 0 | 0 | MIT | 2018-02-20T07:50:22 | 2018-02-20T07:50:21 | null | UTF-8 | Python | false | false | 2,565 | py | import os
import unittest
import numpy
from chainer import datasets
from chainer.datasets import image_dataset
from chainer import testing
@testing.parameterize(*testing.product({
'dtype': [numpy.float32, numpy.int32],
}))
@unittest.skipUnless(image_dataset.available, 'image_dataset is not available')
class Tes... | [
"unnonouno@gmail.com"
] | unnonouno@gmail.com |
63fb29a944d3dcc789050d4e71e9af3eb41d5f1c | fa9bae32c203323dfb345d9a415d4eaecb27a931 | /859. Buddy Strings.py | 2195a1fcd904a6ecbd11d94049d250458faa4dc6 | [] | no_license | IUIUN/The-Best-Time-Is-Now | 48a0c2e9d449aa2f4b6e565868a227b6d555bf29 | fab660f98bd36715d1ee613c4de5c7fd2b69369e | refs/heads/master | 2020-09-14T12:06:24.074973 | 2020-02-15T06:55:08 | 2020-02-15T06:55:08 | 223,123,743 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | class Solution:
def buddyStrings(self, A: str, B: str) -> bool:
if len(A) != len(B): return False
if A == B and len(set(A)) < len(A): return True
dif = [(a, b) for a, b in zip(A, B) if a != b]
return len(dif) == 2 and dif[0] == dif[1][::-1] | [
"liuyijun0621@hotmail.com"
] | liuyijun0621@hotmail.com |
e16beced7372f00c2c8a5abf408ccb718aa1a43d | b158713324a92e88a925bc231d567435a38f31a1 | /src/reportlab/graphics/charts/spider.py | 27d1aa10634c6d3dedaf81fe446c5d78c36ce04c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | plttlp/reportlab-ecomobile | fd043c6d1aacbf5b3018fd3c09f97b68fcf05f5a | aca28b5fbc0d60ecac807957ba5b6832543dac7a | refs/heads/master | 2021-05-28T00:56:05.713731 | 2014-06-21T22:46:21 | 2014-06-21T22:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,739 | py | #Copyright ReportLab Europe Ltd. 2000-2004
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/spider.py
# spider chart, also known as radar chart
__version__=''' $Id$ '''
__doc__="""Spider Chart
Normal use shows variation o... | [
"devnull@localhost"
] | devnull@localhost |
ff1207d7894df22fdaa96e181578ed8ce57c263f | 3edb81366059a3dcb767b7b15476f264fad788e8 | /submit.py | c394ced46f734942c3ba9b60ee354f0c8650cf22 | [] | no_license | enucatl-phd/sinogram_batch_jobs | 91179c1a1ec3cc7869b0e0010977ce8b95d14517 | a5c06b8992b1ad2ed651277c1f54229847b7cc44 | refs/heads/master | 2023-08-07T20:32:58.236996 | 2017-11-23T13:17:48 | 2017-11-23T13:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | import subprocess
import os.path
folders = [
"KO202_LL_control_1",
"KO202_LL_control_2",
"KO202_LL_control_3",
"KO203_LL_control_1",
"KO203_LL_control_2",
"KO203_LL_control_3",
"ko373_LL_smoke_1",
"ko373_LL_smoke_2",
"ko373_LL_smoke_3",
"WT223_LL_control_1",
"WT223_LL_contro... | [
"gmatteo..abis@gmail.com"
] | gmatteo..abis@gmail.com |
652d7a8d6ec191c18ef763835a9eb827497e9673 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_r_ldos1.py | 5f1ad0f6631db49e3f0ee25cbced343e39d89476 | [] | 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 | 455 | py | from xcp2k.inputsection import InputSection
class _r_ldos1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.List = []
self.Xrange = None
self.Yrange = None
self.Zrange = None
self.Erange = None
self._name = "R_LDOS"
self._keywords ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
16faddad943bf0bc84ce7a1e8f6aabb41a63554c | 45fdc51cf264bbd50e59655440eefc91451c50ea | /urlib.parse/urllib_parse_unquote.py | 51e2760854007cbf12352e7d1838aee4ad0eea3b | [] | no_license | blindij/python3_stl | 2163043f3a9113eac21a48a35685a4a01987e926 | ea138e25f8b5bbf7d8f78e4b1b7e2ae413de4735 | refs/heads/master | 2021-12-24T20:37:54.055116 | 2021-09-29T13:37:38 | 2021-09-29T13:37:38 | 191,508,648 | 0 | 0 | null | 2019-08-27T15:45:53 | 2019-06-12T06:10:30 | Python | UTF-8 | Python | false | false | 176 | py | from urllib.parse import unquote, unquote_plus
print(unquote('http%3A//localhost%3A8080/%7Ehellmann/'))
print(unquote_plus('http%3A%2F%2Flocalhost%3A8080%2F%7Ehellmann%2F'
))
| [
"blindij@users.noreply.github.com"
] | blindij@users.noreply.github.com |
a219f316ee477f4840ce21fdc1d506deb1f5a87a | a12c090eb57da4c8e1f543a1a9d497abad763ccd | /django-stubs/contrib/staticfiles/management/commands/runserver.pyi | 9542443c2c7afc7adf315bec00bc6da4dd914096 | [
"BSD-3-Clause"
] | permissive | debuggerpk/django-stubs | be12eb6b43354a18675de3f70c491e534d065b78 | bbdaebb244bd82544553f4547157e4f694f7ae99 | refs/heads/master | 2020-04-04T08:33:52.358704 | 2018-09-26T19:32:19 | 2018-09-26T19:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | pyi | from typing import Any, Optional
from django.contrib.staticfiles.handlers import StaticFilesHandler
from django.core.management.base import CommandParser
from django.core.management.commands.runserver import \
Command as RunserverCommand
class Command(RunserverCommand):
stderr: django.core.management.base.Ou... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
0f21ceecb121a2f278245d0803241f774157d555 | 048667e8ded719bb1221d1c9d161df248194cc6e | /kgtk/io/kgtkwriter.py | 8f3941fa152e940c1b7ddb8648820966ea3af22f | [
"MIT"
] | permissive | dgarijo/kgtk | bda357ddae77082e697111368ddbaaca3b85e900 | f624754e91afbad8d28006e716189b43d367ef04 | refs/heads/master | 2022-11-12T08:53:20.497440 | 2020-06-26T19:17:53 | 2020-06-26T19:17:53 | 275,201,425 | 0 | 0 | MIT | 2020-06-26T16:33:41 | 2020-06-26T16:33:40 | null | UTF-8 | Python | false | false | 30,943 | py | """
Write a KGTK edge or node file in TSV format.
"""
from argparse import ArgumentParser
import attr
import bz2
from enum import Enum
import gzip
import json
import lz4 # type: ignore
import lzma
from pathlib import Path
from multiprocessing import Queue
import sys
import typing
from kgtk.kgtkformat import KgtkForm... | [
"rogers@isi.edu"
] | rogers@isi.edu |
697a3885eff485ce7088da0fb99a37de47a132fb | 3e5b0278bb8f7c221c5d3478c0c54cae81123799 | /database/ingestFiesResults.py | 987ae5355dae68d3b9457d1671382a5f75d3ee99 | [] | no_license | jmccormac01/NOT | 717e8ecc7c157eedf320d87b796010f2cad97dd9 | 3463accce62848142dede0026fa27aba4366f45b | refs/heads/master | 2021-01-18T23:52:22.899766 | 2017-05-03T09:08:42 | 2017-05-03T09:08:42 | 54,653,166 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | """
Script to ingest the results files from fiespipe.py
This is a copy of the ingestCafeResults.py script
Results file has the following structure:
0- Object name
1- MBJD
2- RV
3- error in RV
4- Bisector span
5- error in bisector span
6- instrument
7- pipeline
8- resolving ... | [
"jmccormac001@gmail.com"
] | jmccormac001@gmail.com |
9c1c35fa401ea152589015a7a13ebf1c10fc1825 | 628ab6e412e7c4c755bc42d8137acd3da2d4be0e | /tests/type/test_type_util.py | 75c136b72074efd78daecd55cfe6045a1eecb8c4 | [
"MIT",
"CC-BY-4.0"
] | permissive | TrendingTechnology/apysc | ffd7d9b558707b934c5df127eca817d4f12d619b | 5c6a4674e2e9684cb2cb1325dc9b070879d4d355 | refs/heads/main | 2023-06-01T20:19:20.835539 | 2021-06-20T03:53:33 | 2021-06-20T03:53:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | from apysc import Boolean
from apysc import Int
from apysc import Number
from apysc.type import type_util
def test_is_same_class_instance() -> None:
result: bool = type_util.is_same_class_instance(class_=bool, instance=1)
assert not result
result = type_util.is_same_class_instance(class_=int, i... | [
"antisocial.sid2@gmail.com"
] | antisocial.sid2@gmail.com |
da350f298931965ee5690a173c730b6e1f634548 | 5407d32363d4806176c768ef7db65c8f7c9e7f72 | /main.py | 307959cadf45e33557f44f8dc1bf3447330b65d3 | [] | no_license | krishpranav/pyide | 173efa96d8c7b50b2505c65a0562a4af64ab303f | 587628367b0ab6535ad3ebd00850c56c33b5fcbf | refs/heads/master | 2023-04-16T09:11:13.381777 | 2021-04-20T12:29:33 | 2021-04-20T12:29:33 | 359,804,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | #!/usr/bin/env/python3
#imports
from tkinter import *
from tkinter.filedialog import asksaveasfilename, askopenfilename
import subprocess
compiler = Tk()
compiler.title("IDE")
file_path = ''
def set_file_path(path):
global file_path
file_path = path
def open_file():
path = askopenfilename(filetypes=[('P... | [
"krisna.pranav@gmail.com"
] | krisna.pranav@gmail.com |
5de717f72acb11220ee83be9cd540c6e174a93de | bdbc9cd8c64cfa92efffb9e138cb282d36f69b0a | /addons/purchase/report/__init__.py | 1277be8fbe1d1fdbcb3b28903e4f3fdecb7a1945 | [] | no_license | clebaresu/impra-adns | d330cece1b710643625627bfd7ed66bac7d233ef | 8b9889d86c6ea194cfb7b0db8bdc3284635cc081 | refs/heads/master | 2020-05-02T16:51:41.798969 | 2019-03-27T22:03:32 | 2019-03-27T22:03:32 | 178,080,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | [
"clebaresu@gmail.com"
] | clebaresu@gmail.com |
2586557d647c829ce740f0b06ad560ee16dd0611 | 98383e62e61321f65450bb0fd901215ccbe6293b | /hanlp/components/mtl/tasks/tok/tag_tok.py | ef851e2cbd4ca8ccca15fed5edb30c0f11616c07 | [
"Apache-2.0",
"CC-BY-NC-4.0",
"Python-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | leobert-lan/HanLP | 155a66b5c93720abeb816616cb3b9ef4f7942e83 | 39c3ede99c3f99d7ea39bbbd470601dc7ef0ad62 | refs/heads/master | 2021-06-16T17:51:54.485767 | 2021-03-26T02:36:12 | 2021-03-26T02:36:12 | 178,836,942 | 1 | 0 | Apache-2.0 | 2021-03-26T02:36:13 | 2019-04-01T10:09:21 | Java | UTF-8 | Python | false | false | 10,190 | py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-08-11 16:35
import logging
from typing import Dict, Any, Union, Iterable, List, Set
import torch
from torch.utils.data import DataLoader
from hanlp.common.dataset import SamplerBuilder, PadSequenceDataLoader
from hanlp.common.transform import VocabDict, TransformLi... | [
"jfservice@126.com"
] | jfservice@126.com |
7b8818be9be235aca64718b52aeb09dd41aa1a45 | 8b060d38c63993a3259a80b072768206b558772b | /BlogApp/migrations/0016_user.py | cd8e9e162cda9e83045bd02588187a077f03409b | [] | no_license | mortadagzar/Simple-Python-feedingTable | d8b0a2a06c1b3d78167241a6f60a2bb00fa9c4ce | 716c68e6b9c55bd2dc8299ca14ccf39431cf0efb | refs/heads/master | 2020-03-30T19:07:16.027807 | 2018-10-14T15:05:28 | 2018-10-14T15:05:28 | 151,529,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # Generated by Django 2.1.1 on 2018-09-24 22:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('BlogApp', '0015_auto_20180922_1833'),
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"mortadagzar@gmail.com"
] | mortadagzar@gmail.com |
94406b4c0a5f5a0b725f7359720d14ae01e6dc47 | 7bb34b9837b6304ceac6ab45ce482b570526ed3c | /external/webkit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py | 79e4cf4a97b601f70dcf60ea9438ce8a379e69d8 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.1-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | ghsecuritylab/android_platform_sony_nicki | 7533bca5c13d32a8d2a42696344cc10249bd2fd8 | 526381be7808e5202d7865aa10303cb5d249388a | refs/heads/master | 2021-02-28T20:27:31.390188 | 2013-10-15T07:57:51 | 2013-10-15T07:57:51 | 245,730,217 | 0 | 0 | Apache-2.0 | 2020-03-08T00:59:27 | 2020-03-08T00:59:26 | null | UTF-8 | Python | false | false | 2,325 | py | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | [
"gahlotpercy@gmail.com"
] | gahlotpercy@gmail.com |
53d010f5a09590ee0504499dddb723f69908eed7 | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/job_scrapers/plugins/com/link/successfactors.py | d9a5a27fd52a841ade57881fa9b838d7cd797500 | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | import re, urlparse, mechanize
from neekanee.jobscrapers.jobscraper import JobScraper
from neekanee.htmlparse.soupify import soupify, get_all_text
from neekanee_solr.models import *
COMPANY = {
'name': 'SuccessFactors',
'hq': 'San Francisco, CA',
'home_page_url': 'http://www.successfactors.com',
'jo... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
480d955400267885fb5c52823d2d84eaa53fffa3 | 25427cf7ac5ae9f8e5d421e953750a46fb2d1ebc | /OldBoy/Day68/django_model_form/django_model_form/settings.py | 6fb83e2edb64e357b4d4491ed8d44ad40dd0a810 | [] | no_license | povillechan/Python | d48e2e25c9961acef45162ca882b547e5b9d0b77 | 67e88d6d7bdbe49b0c5165d9b35f37dccf638877 | refs/heads/master | 2020-03-22T08:43:44.606336 | 2019-09-01T15:25:57 | 2019-09-01T15:25:57 | 139,786,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | """
Django settings for django_model_form project.
Generated by 'django-admin startproject' using Django 1.10.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
... | [
"poville@yeah.net"
] | poville@yeah.net |
3b34c7ebcbedf568257311ee2f077aeaf90dd3a0 | cccfb7be281ca89f8682c144eac0d5d5559b2deb | /tools/perf/page_sets/desktop_ui/desktop_ui_shared_state.py | 0e9637b9690d4687b2cadd3870ee616d2e07c556 | [
"LGPL-2.0-or-later",
"MPL-1.1",
"BSD-3-Clause",
"APSL-2.0",
"MIT",
"Zlib",
"GPL-2.0-only",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only"
] | permissive | SREERAGI18/chromium | 172b23d07568a4e3873983bf49b37adc92453dd0 | fd8a8914ca0183f0add65ae55f04e287543c7d4a | refs/heads/master | 2023-08-27T17:45:48.928019 | 2021-11-11T22:24:28 | 2021-11-11T22:24:28 | 428,659,250 | 1 | 0 | BSD-3-Clause | 2021-11-16T13:08:14 | 2021-11-16T13:08:14 | null | UTF-8 | Python | false | false | 415 | py | # Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import shared_page_state
class DesktopUISharedState(shared_page_state.SharedPageState):
""" Ensures the browser is restarted for each... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
767eead4cdb530f13ecf649af74c3c4ac48b756f | b2dc8aa865136a80bba964624c641a32f25d0aa8 | /test/test_meta.py | fcb2c3168a0dbb9ffecc33cff92582de680252dd | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | DoubleVII/pytorch | 91425f16239dfdd48f5faa9ea1b8d2642f9aab6b | 67eca7cd321f73aa8d6c1a76a7621d3db9a7c97e | refs/heads/master | 2023-02-20T23:49:06.344426 | 2023-02-08T22:40:45 | 2023-02-08T22:40:45 | 274,839,708 | 1 | 0 | NOASSERTION | 2020-06-25T05:52:16 | 2020-06-25T05:52:15 | null | UTF-8 | Python | false | false | 55,044 | py | # Owner(s): ["module: primTorch"]
import itertools
import torch
import os
from enum import Enum
from torch.overrides import resolve_name
from torch.utils._pytree import tree_map, tree_flatten, tree_unflatten
from torch._subclasses.meta_utils import MetaConverter, assert_metadata_eq
import torch.utils._python_dispatch
... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
0c49b5725258db042a42850d57bee23969d2e342 | 7bdb0e12359162c5dd2bddc58d2ca1d234fb29d2 | /trunk/playground/intern/2009/Pakito/pakito/gui/pspecWidget/dialogs/comarDialog.py | caece273e400a41ea31a7a0ae7e6d7bb1d1ad9c1 | [] | no_license | hitaf/Pardus-2011-Svn- | f40776b0bba87d473aac45001c4b946211cbc7bc | 16df30ab9c6ce6c4896826814e34cfeadad1be09 | refs/heads/master | 2021-01-10T19:48:33.836038 | 2012-08-13T22:57:37 | 2012-08-13T22:57:37 | 5,401,998 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from qt import *
from kdecore import KGlobal, KIcon, i18n
from kfile import KFileDialog
import kdedesigner
import os
from pakito.gui.pspecWidget.dialogs.comarDialogUI import COMARDialogUI
class COMARDialog(COMARDialogUI):
def __init__(self, parent = None, comar = None, ... | [
"fatih@dhcppc1.(none)"
] | fatih@dhcppc1.(none) |
717d84fd828878b75823d79be5f00d7fa9321862 | 1bdaf97709a1d885e473c15d5b1ef26f8d086c44 | /pipeline_02_geocode_addresses.py | 4992b58fa3233241ce374dffddb79489e0a6c677 | [] | no_license | austinlwheat/lab-04-pipelines-and-web-services | 773924564552203d3efa59a9c808cf1646f1ccec | faa6d6a611e2da8c6a33ef0ab6d98cdcbebf12f9 | refs/heads/main | 2023-09-01T07:35:40.870284 | 2021-10-13T14:01:00 | 2021-10-13T14:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | """
Extract Process #2
Use the Census Geocoding API to geocode the addresses in the file that was
extracted in step one. The documentation for the API is available at:
https://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.pdf
I encourage you to read it for details, but the gist is:
- You can geocode a bat... | [
"mjumbewu@gmail.com"
] | mjumbewu@gmail.com |
90b2b1995928dbf28964d7d769164ca293be561d | 70f41a06d733e680af3bb1f00d8ff33574f4f4bb | /src/fh_tools/language_test/DeepLearningNotes/Note-6 A3CNet/Note-6.1 simple A3CNet/sonnet/python/modules/nets/convnet_test.py | bd86d1ef3a653e0c617c3bc416ba158e04d1e949 | [
"MIT"
] | permissive | mmmaaaggg/RefUtils | 209f7136acc63c880e60974c347e19adc4c7ac2e | f127658e75b5c52b4db105a22176ee0931ceacae | refs/heads/master | 2021-06-11T16:06:06.245275 | 2021-03-10T05:32:14 | 2021-03-10T05:32:14 | 139,413,962 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,348 | py | # Copyright 2017 The Sonnet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"mmmaaaggg@163.com"
] | mmmaaaggg@163.com |
fba8b0cb1fe9b1aef56fa39569578536094bec5b | d85043257d93d35ac5d20fdb784656a83e141350 | /old/stm312_test/dummy_import.py | 5a533c4fc4f6b8b716042fce16cce40ea9be03c4 | [] | no_license | CINF/cinfdata_test | ca7ae74c93afb2860c2fa24d6589e25ed5c7d38a | 159c5e7f4727318a6b7b78dcce8f0ea57353abdb | refs/heads/master | 2021-01-01T04:26:36.569960 | 2016-05-13T11:10:43 | 2016-05-13T11:10:43 | 58,448,151 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/python
import sys
sys.path.insert(0, '/var/www/cinfdata/')
print "I'm the import testing script"
print 'Start'
import numpy
print 'Succes'
| [
"k.nielsen81@gmail.com"
] | k.nielsen81@gmail.com |
d91c223d0e292d92c905617d1590fb3557a187e7 | 0c7fb9f937fa81395a6b0518811e91361e838b03 | /openpyxl/worksheet/tests/test_cell_range.py | 5171baffcf1db340113e114986a28921b654545b | [
"BSD-3-Clause"
] | permissive | Solly64/py4e-data | f04a76a643f345cf3b23bd54fccc7a153df784d5 | e40378ae7d68b39be472cae01aa3bfeb87adbe45 | refs/heads/master | 2020-07-03T08:31:28.291269 | 2019-08-12T03:41:20 | 2019-08-12T03:41:20 | 201,852,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,433 | py | from __future__ import absolute_import
# Copyright (c) 2010-2018 openpyxl
import pytest
from copy import copy
@pytest.fixture
def CellRange():
from ..cell_range import CellRange
return CellRange
class TestCellRange:
def test_ctor(self, CellRange):
cr = CellRange(min_col=1, min_row=1, max_col=5... | [
"git@github.com:Solly64/datasciencecoursera.git"
] | git@github.com:Solly64/datasciencecoursera.git |
c728f18221747be09cb4d7bc0f4d5c4588ee119b | bc899480ea50049929e6ba7a2836e39a51d0faa3 | /leetcode/misc/linked_list/remove_nth_node_from_end_ll.py | 4e70dab6e0f371566bbe615b5bd76d412292f0f1 | [] | no_license | grewy/practice_py | 605a88f40eb54f7ac0fd54a1ab2d6bfdfae57b49 | b00f649598a6e57af30b517baa304f3094345f6d | refs/heads/master | 2021-07-09T01:33:07.158778 | 2020-10-15T12:33:06 | 2020-10-15T12:33:06 | 199,878,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def removeNthFromEnd(self, head, n):
"""
:type head: ListNode
:type n: int
:rtype: ListNode
"""
if n=... | [
"mgatuiet@gmail.com"
] | mgatuiet@gmail.com |
5b3cf730f6e87e9912fba8136bfe75c1322b09af | 205407e7259fe8ffc42ca653cebdece2f63fe1dc | /config.py.tmp | b37cc1ea816751caf2cc643a7dbd5c2afa47f800 | [] | no_license | namuyan/nem-tip-bot-peg-system | 720f805ff93e45d0e2ee3bb5ca48c6cdabff4288 | aad038f6ee68523c5e8e5cdfbfb63ff0854b2ba3 | refs/heads/master | 2021-09-03T01:03:13.350492 | 2018-01-04T11:57:23 | 2018-01-04T11:57:23 | 109,551,023 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | tmp | #!/user/env python3
# -*- coding: utf-8 -*-
class EmptyObject:
pass
class Config:
def __init__(self, test=True):
self.test = test
self.stop_signal = False
self.stop_ok = []
self.stop_need_obj = ("incoming",)
if test:
self.node = [("127.0.0.1", 8293), ("nuk... | [
"thhjuu@yahoo.co.jp"
] | thhjuu@yahoo.co.jp |
9557efb13c32f1488beeea0ed45879a178691809 | b014c00eeaef54c3514bb37c5b68d2e464e2fffe | /scikit-learn/sklearn/utils/tests/test_extmath.py | 59030a6f64693a899a2091cac6737f0dd0beca37 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iglesias/tapkee_benchmarks | 0eebd19debfdc82df1bcc4d30b3007b99376492f | e8d6def94331eb4229ae70ca4a7b8a10012851dc | refs/heads/master | 2020-12-30T10:36:30.278402 | 2013-05-02T20:27:12 | 2013-05-02T20:27:12 | 9,820,903 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,819 | py | # Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# License: BSD
import numpy as np
from scipy import sparse
from scipy import linalg
from scipy import stats
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_almost_equal
from sk... | [
"lisitsyn.s.o@gmail.com"
] | lisitsyn.s.o@gmail.com |
dbdf5de27d352c1c45e3e5eee6df6fcab3a46460 | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_udyr/na_udyr_bot.py | 09e8372d3859fd0e92e3fdb2bcd92f97ec80262b | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,269 | py | from getratings.models.ratings import Ratings
class NA_Udyr_Bot_Aatrox(Ratings):
pass
class NA_Udyr_Bot_Ahri(Ratings):
pass
class NA_Udyr_Bot_Akali(Ratings):
pass
class NA_Udyr_Bot_Alistar(Ratings):
pass
class NA_Udyr_Bot_Amumu(Ratings):
pass
class NA_Udyr_Bot_Anivia(Ratings):
pass
clas... | [
"noreply@github.com"
] | koliupy.noreply@github.com |
0bc290dafa4233a31706966fbaf2ce4ea89bf3fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03148/s093100517.py | ebad2fec8979471f0c0c14cb03557cc80fe50113 | [] | 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 | 759 | py | n, m = [int(i) for i in input().split()]
td = [[int(i) for i in input().split()] for n in range(n)]
td.sort(key=lambda x:-x[1])
memo = set()
a = []
for t, d in td:
if t in memo:
a.append((d, 0))
else:
a.append((d, 1))
memo.add(t)
a = [(-x, x, d) for x, d in a]
import heapq
heapq.heapify(a)
val = 0
kind = ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bdd58b6d01c70e104c0b4911a2c42ed7714b4725 | f71175700ba405e606eeab58d2b3ad97474bf9f5 | /link/models.py | b5e6c8526fdbdb9674a67616f4a1bf6871d27a73 | [] | no_license | Shirhussain/link_scraper | 76018965718887b71247e917babfb009d534d126 | f5e9a70160edc408fc005bc4d5c16a56834d93c7 | refs/heads/main | 2023-01-10T05:53:17.296704 | 2020-11-05T20:22:29 | 2020-11-05T20:22:29 | 310,549,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from django.db import models
class Link(models.Model):
name = models.CharField(max_length=2000, blank=True, null=True)
address = models.CharField(max_length=2000)
def __str__(self):
return self.name
| [
"sh.danishyar@gmail.com"
] | sh.danishyar@gmail.com |
0f22f542e80fab1255b87f8e1fc553feb6bd3b7d | caf71b6a4374a30a51e6dff4deefd9122ae7980d | /contest_python/tallestInClass_DWITE.py | 2e5540d8b419a15e72b7001183dcff93db427fe9 | [] | no_license | PMiskew/DP_CS_Code_PMiskew | fba73779e78bc4eb0bfafac05168e28ec11561b1 | 93d366a1dae3cc8f55acc7dd9cfdb2b224dbf539 | refs/heads/master | 2023-03-28T08:46:15.118189 | 2021-03-24T15:49:57 | 2021-03-24T15:49:57 | 294,153,175 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | '''
Recommendation:
This problem can be daunting, however, if you break it apart to some components and tackle those
it falls apart nicely.
1. Start by managing the input. Assuming you store the data as a list of strings, create three
new lists and copy in the data. The first two elements in this parallel list s... | [
"pmiskew@C1MWP4S2J1WL.local"
] | pmiskew@C1MWP4S2J1WL.local |
7eca7055328d8ca5c90cf66a600c1cb07862346e | 1498148e5d0af365cd7fd16197174174a7fa9800 | /leetcode/t000840.py | f81a88fb38895df4b807234bcc9a0768a92e933b | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | # 解:
# 暴力法,注意严格看提议条件
#
# ```
from typing import List
class Solution:
def numMagicSquaresInside(self, grid: List[List[int]]) -> int:
count = 0
l1 = len(grid)
if l1 >= 3:
l2 = len(grid[0])
if l2 >= 3:
for i in range(l1 - 2):
... | [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
526293e66ff54ad466476cfb1a777b846734c8af | 082474f6f6301c561ee9598843adaf1a37bcdf96 | /page_object/common/sendmail.py | 5f2e87c0ef3ac33e463697786390ed2ff90df098 | [] | no_license | guocheng45/Projects | 69e2b79e93f6a4697d1adb3a025f2c04943f37cf | df16943fcbc34341b9a0934b830da0860e2bb5ff | refs/heads/master | 2023-01-23T20:27:06.327650 | 2020-07-12T07:19:14 | 2020-07-12T07:19:14 | 197,792,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | # coding=utf-8
import smtplib
from email.mime.text import MIMEText
from email.header import Header
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
class SendMail():
def sendMail(self,msg1,pic,receiver):
# 声明用来登录的邮箱和口令
password = 'sdjxhqksmlfsbghd' # 发信授权码
... | [
"467563369@qq.com"
] | 467563369@qq.com |
644a5a3de788bd0b147de0a44fea79aee008cf69 | da5ef82554c6c0413193b7c99192edd70fed58dd | /core/lib/tests/free_ip.py | 7e2f686c2bc963208f481a2adf46fbdf94a1207b | [] | no_license | rtucker-mozilla/mozilla_inventory | d643c7713c65aa870e732e18aaf19ce677e277b7 | bf9154b0d77705d8c0fe1a9a35ce9c1bd60fcbea | refs/heads/master | 2020-12-24T17:17:37.621418 | 2013-04-11T10:39:41 | 2013-04-11T10:39:41 | 2,709,399 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | from django.test import TestCase
from core.vlan.models import Vlan
from core.site.models import Site
from core.range.models import Range
from core.network.models import Network
from core.interface.static_intr.models import StaticInterface
from core.lib.utils import calc_free_ips_str, create_ipv4_intr_from_range
from ... | [
"uberj@onid.orst.edu"
] | uberj@onid.orst.edu |
ed1af0217a26c41db25af4fb2cbaf6824e514d91 | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /repos/flask-restful-swagger-master/setup.py | b93a88d336feff6f68a96d4730a9222aae80d2f5 | [
"MIT"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open("README") as file:
long_description = file.read()
setup(
name="flask-restful-swagger",
version="0.20.2",
url="https://github.com/rantav/flask-restful-swagger",
zip_safe=False,
packages=["fl... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
dce9c69be6f76f03da43a245de0a9184f4969bd0 | 70d39e4ee19154a62e8c82467ef75b601e584738 | /pyth3/birb_scraper.py | fb9b94b174fd01de555cd135edd1d03093b3209a | [] | no_license | babywyrm/sysadmin | 6f2724be13ae7e5b9372278856a8c072073beffb | 2a5f3d29c7529bc917d4ff9be03af30ec23948a5 | refs/heads/master | 2023-08-16T03:50:38.717442 | 2023-08-16T03:05:55 | 2023-08-16T03:05:55 | 210,228,940 | 10 | 5 | null | 2023-05-01T23:15:31 | 2019-09-22T23:42:50 | PowerShell | UTF-8 | Python | false | false | 1,590 | py | #!/usr/bin/python3
##################
##
##
import click
import requests
import re,os,sys
from bs4 import BeautifulSoup
#############################
#############################
def get_html_of(url):
resp = requests.get(url)
if resp.status_code != 200:
print(f'HTTP status code of {resp.status_cod... | [
"noreply@github.com"
] | babywyrm.noreply@github.com |
83413238c8fee2649daebd589b1fed30ede470b5 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/test/test_UserLiteProfileResponse.py | ca0997dce4fae8c872697809ac1d3e612d3b77dc | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 985 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import unittest
import appcente... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
8c73809c2df2643526a2928d14dabbde864775da | eb5b9791349f1cc75b8e47fd80896e4fe9bf6061 | /nb/loop.py | 7d0aded055e890398caf2938540ae1778b28cc65 | [
"MIT"
] | permissive | Hellorelei/oc-2018 | 4cbaacbe443886e6c93cf74486f0027e21fc462a | 7961de5ba9923512bd50c579c37f1dadf070b692 | refs/heads/master | 2022-07-09T07:36:04.121651 | 2019-06-21T08:05:41 | 2019-06-21T08:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | for i in range(5):
print(i, i**2, i**3) | [
"raphael.holzer@citycable.ch"
] | raphael.holzer@citycable.ch |
da9be17b5af888677c2e663ed919a2370d0183b0 | 764ce53fd708bb3f81d67cc9a2366265c9a685b9 | /accounts_django/views.py | a9377b5f321014743f8f2900bb49fe562dc80934 | [] | no_license | Vaishnavi-Gajinkar/Bridgelabz | 3d17b8399432ac5643059e822ccad9a90f919e9f | e51551ab675dbb5444ba222cc88ac05fbeab49d2 | refs/heads/master | 2020-12-28T02:45:18.517627 | 2020-03-09T13:42:37 | 2020-03-09T13:42:37 | 238,153,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.decorators import login_required
# Create your views here.
def indexView(request):
return render(request, 'accountsIndex.html')
@login_required
def dashboardView(request):
return render(request,... | [
"vaishnavi.gajinkar@gmail.com"
] | vaishnavi.gajinkar@gmail.com |
794bb82367e77038068f0618a2f04881891f6d67 | 752116ef4b69a3049fef0cfe9b3d212548cc81b1 | /sources/scripting/wrappers/session.py | 82d27208c07181752417a4872c0c94524d3e9985 | [] | no_license | VDOMBoxGroup/runtime2.0 | e54af4af7a642f34b0e07b5d4096320494fb9ae8 | cb9932f5f75d5c6d7889f26d58aee079b4127299 | refs/heads/develop | 2023-07-07T11:06:10.817093 | 2023-07-03T06:11:55 | 2023-07-03T06:11:55 | 62,622,255 | 0 | 12 | null | 2023-05-23T02:55:00 | 2016-07-05T09:09:48 | Python | UTF-8 | Python | false | false | 1,056 | py |
import managers
class VDOM_session(object):
def _get_id(self):
return managers.request_manager.current.session().id()
def __getitem__(self, name):
if name == "response": # temporary solution for backward compability of Whole
return managers.request_manager.current.wholeAnswer
... | [
"nikolay.grishkov@vdombox.ru"
] | nikolay.grishkov@vdombox.ru |
a299aa68059723e3132438cc91d76f150d1c8463 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/B/bkj123/yrs_of_educ_by_country.py | f3b9f31c458c9e8d9cd5f725423f5700f75502e0 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import scraperwiki
html = scraperwiki.scrape("http://web.archive.org/web/20110514112442/http://unstats.un.org/unsd/demographic/products/socind/education.htm")
# print html
import lxml.html
root = lxml.html.fromstring(html)
for tr in root.cssselect("div[align='left'] tr"):
tds = tr.cssselect("td")
if len(tds)==1... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
853ee679d49b7188596217525c19de94c1b111a0 | 0e8b572727bbe59882ca3faaf71515c24e81aaf7 | /hyconhacks/papers/apps.py | 14a3af03111f64f3469497eb8212b9b602251d60 | [
"MIT"
] | permissive | jisuhan3201/hyconhakathon | ff7cfbf300abb7b7132975c909bdfa15ebe2b54a | a29f7369432cd4d9744ec75debe03c16cd1e349a | refs/heads/master | 2021-11-20T00:45:16.698871 | 2018-09-15T04:57:45 | 2018-09-15T04:57:45 | 148,870,606 | 0 | 0 | MIT | 2021-09-08T00:18:25 | 2018-09-15T04:50:40 | Python | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class PapersConfig(AppConfig):
name = 'hyconhacks.papers'
| [
"jisu.han3201@gmail.com"
] | jisu.han3201@gmail.com |
97f2bc4b372ec60b32bf11ae749b8cbabc6a3842 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GL/KHR/context_flush_control.py | 3afcc413f9667fef3a1d01df0028809210531e33 | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 876 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.