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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5eaf241a86f94a0e23e03a38b151bb6533ffb17 | 993ff3e6eb510b5083db5f15f2c0299c05a2c0f6 | /crm_custom/__manifest__.py | 06ffa89c920582078f8b0c4262a351f0bfbaadf1 | [] | no_license | Raghupathy15/Sigma | 36b24e76e81bad4ae5435508018f1c960878901d | 42eed3b211a7be8d8c9b70dc359a432c02be07f1 | refs/heads/main | 2023-01-31T18:25:09.712666 | 2020-12-09T09:22:17 | 2020-12-09T09:22:17 | 319,904,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | {
'name' : 'CRM Custom',
'version' : '12.0',
'author' : 'Indglobal',
'website' : 'http://www.indglobal.in',
'category' : 'Tools',
'depends' : ['base', 'crm','indglobal_city_master', 'hr'],
'description' : 'CRM Custom',
'data' : [
'security/ir.model.access.csv',
'data/ir_sequence.xml',
'views/crm_lead.xml',
'vie... | [
"raghupathy@emxcelsolutions.com"
] | raghupathy@emxcelsolutions.com |
f68e2529aaa8cbe32bb97722abe9b1c776231403 | e4bc9d7f2e177bcd9850ffa12e5b2ddabb3f98ab | /01. Jump to python/Chap04/160_4_a.py | 209c92289b52c177c6166660244c4cc9e7071eb1 | [] | no_license | yameenjavaid/bigdata2019 | 94b80b570b76cb174fcacddf8c8c1711a72e77b4 | 3565a1f10162d0ad147a9f189536b858ebe04ffa | refs/heads/master | 2022-01-13T15:39:09.793982 | 2019-04-29T00:14:07 | 2019-04-29T00:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | f=open("./file2.txt", 'a')
# f.write("Hello Daegu!!!!!!!!!!!!!!!!!!!!!!!!") # 이전 파일의 마지막 위치에서 값을 쓴다.
# 따라서 줄 단위로 입력을 하고 싶으면 메세지의 마지막에 \n을 명시적으로 붙인다.
# f.write("\nHello Pusan!!!!!!!!!!!!!!!!!!!!!!!!") # 이전 파일의 마지막 위치에서 값을 쓴다.
my_message="""Hello Seoul!!
Hello Jeju!!
Hello Incheon!!
"""
f.write(my_message)
f.close() | [
"bgd0706@hanmail.net"
] | bgd0706@hanmail.net |
0f8f37cd90d5f100464c911c71f62517454531fe | 32f9ee929db8e544bebbe4a7d94e6fea90e6d9ab | /tilerenderer.py | 928a25560046c4ab79988b715117fc19a5d8316d | [] | no_license | daeken/Shaderforth | b8c132cfec0c83f8c3191671182fe7c52a20bd9b | 519daefa7ac044f224e49e321b0cb507ecde1190 | refs/heads/master | 2021-01-18T22:08:08.917801 | 2016-06-29T03:39:44 | 2016-06-29T03:39:44 | 13,512,790 | 27 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,923 | py | import os, sys, time, datetime
from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.GL.shaders import *
from OpenGL.arrays import vbo
from OpenGL.raw.GL.ARB.vertex_array_object import glGenVertexArrays, glBindVertexArray
from PIL import Image
import numpy
from compiler import Compiler
vert = '''
attribute ve... | [
"cody.brocious@gmail.com"
] | cody.brocious@gmail.com |
adb868da6a2fbe03af1aa30791dc873c733025ff | e13091c137650cd31c8d9778087b369033d0cf96 | /src/main/python/study/boj/search/BOJ-9663.py | 47b81d7d0d14185328179878d4ece4c4c6a0d7bc | [] | no_license | jwoojun/CodingTest | 634e2cfe707b74c080ddbe5f32f58c1e6d849968 | d62479d168085f13e73dfc1697c5438a97632d29 | refs/heads/master | 2023-08-22T09:03:32.392293 | 2021-10-31T01:00:33 | 2021-10-31T01:00:33 | 300,534,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | def check(x):
for i in range(x):
if row[x] == row[i] or abs(row[x] - row[i]) == x - i:
return False
return True
count = 0
def dfs(x):
global count
global result
count+=1
if x == N:
result += 1
else:
for i in range(N):
row[x] = i
... | [
"jjwjun10@gmail.com"
] | jjwjun10@gmail.com |
97e65c06ec0d2681800af36d953c34e8837d5b92 | 5e8ed29add41ca0a1ac0eacbda447292313874c3 | /util/filtering.py | 29fc803365aeac248a5ea7046b54fd68df3cd892 | [] | no_license | TharinduDR/Offenseval_2020 | aa4961937bc98158b2e24c28934411df2a853c2d | a08764ae5980223ae8577c9fd6f160d8a450cfd6 | refs/heads/master | 2023-07-20T06:12:48.467268 | 2020-03-03T17:08:30 | 2020-03-03T17:08:30 | 224,734,186 | 2 | 0 | null | 2023-07-06T21:55:29 | 2019-11-28T21:41:28 | Jupyter Notebook | UTF-8 | Python | false | false | 258 | py | def filter_supportfile(df, threshold):
df['subtask_a'] = df["average"].apply(lambda x: label(x))
filtered_df = df.loc[(df['std'] < threshold)]
return filtered_df
def label(x):
if x > 0.5:
return 'OFF'
else:
return 'NOT'
| [
"rhtdranasinghe@gmail.com"
] | rhtdranasinghe@gmail.com |
bf960fbd1ae877975520f2430a67f6badd7d9130 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /cn.fc/py/T0041.调试地图.py | 255b48673bb8bf687bc8b31ae095d995c6c46be9 | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 20,666 | py | from ED6ScenarioHelper import *
def main():
# 调试地图
CreateScenaFile(
FileName = 'T0041 ._SN',
MapName = 'map1',
Location = 'T0030.x',
MapIndex = 1,
MapDefaultBGM = "ed60010",
Flags = 0,
En... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
ac4b4ff04fbd6a8563fed507afb8344f125eaa1a | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/packaging/os/apk.py | 7d94dc7ff4bd04fdfcbad18f1899fbd0561df60f | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 11,310 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Kevin Brebanov <https://github.com/kbrebanov>
# Based on pacman (Afterburn <http://github.com/afterburn>, Aaron Bull Schaefer <aaron@elasticdog.com>)
# and apt (Matthew Williams <matthew@flowroute.com>) modules.
#
# GNU General Public License v3.0+ (see COPYING or ... | [
"sifang@cisco.com"
] | sifang@cisco.com |
7329182a5d2427fa3630d06e2336b689969f3678 | 03c9c434c48c56382a253d0eb93f0fb7325668ba | /Day41-55/code/oa/hrs/urls.py | 91a2660c9e882fbcb2e04a52f8f12a0aa96fb08e | [] | no_license | simonxu0559/Python-100-Days-master | 426a62b4bf7f67b77ad02078affb27fcea4711e4 | dd401a42bae4b40d084fa1b8de6b79b0fd20b262 | refs/heads/master | 2020-06-29T07:10:53.073330 | 2019-07-17T09:48:13 | 2019-07-17T09:48:13 | 200,471,302 | 6 | 1 | null | 2019-08-04T09:01:09 | 2019-08-04T09:01:09 | null | UTF-8 | Python | false | false | 310 | py | from django.urls import path
from hrs import views
urlpatterns = [
path('depts', views.depts, name='depts'),
# url('depts/emps/(?P<no>[0-9]+)', views.emps, name='empsindept'),
path('depts/emps/<int:no>', views.emps, name='empsindept'),
path('deldept/<int:no>', views.del_dept, name='ddel')
]
| [
"="
] | = |
4524642c577b205368e9c1d71a1da70cd289e80b | aa265e03e73f718d4008cfe30ada7ee32c852eec | /AGC_A/AGC025_A.py | b99a31ff282bf4ef9f867f81988fbe9b5664ee23 | [
"MIT"
] | permissive | ryosuke0825/atcoder_python | 4fb9de9733cd9ef41c2ad9ad38b3f190f49d3ad5 | 52d037d0bc9ef2c721bf2958c1c2ead558cb0cf5 | refs/heads/master | 2023-03-11T22:47:56.963089 | 2023-03-05T01:21:06 | 2023-03-05T01:21:06 | 181,768,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | n = list(map(int, list(input())))
if n[0] == 1 and sum(n) == 1:
print(10)
else:
print(sum(n))
| [
"ayakobon@gmail.com"
] | ayakobon@gmail.com |
393cb342c592ea2692da2084ebc1893a6b61b46e | b4dd760e79de0db39792b947bacfe2b27c2a89ee | /test_challenge60easy.py | 87630f078055e4db45471442e93e83c5ffc9fb2d | [] | no_license | mooja/dailyprogrammer | c23f1a0c5d6e4269b6c03b47d8cc18f6d857a6e1 | d12fcb6744ac3b4a5e651f37ea0b3f20ca062f7d | refs/heads/master | 2021-01-16T23:47:28.955660 | 2018-04-09T18:03:50 | 2018-04-09T18:03:50 | 23,394,207 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | #!/usr/bin/env python
# encoding: utf-8
#######################################################################
# challenge60easy tests #
#######################################################################
import pytest
from challenge60easy import is_polite
@pytest... | [
"max.atreides@gmail.com"
] | max.atreides@gmail.com |
3e300edb3ee9b874648b78629ed34568a4432f5b | 26aa62e1fab9722f7750b54ad5eaa336427318d3 | /project/celery.py | a2428ae1166cd4e2d86408285d1d9ed6c85fe645 | [
"MIT"
] | permissive | collingreen/djeroku | b2099511e8ab2b2d4ad365447fc5bb0781a994fd | cbde05de28bedcad42834e18a3ab465ac5683586 | refs/heads/master | 2020-06-02T08:41:38.056714 | 2016-01-18T04:56:44 | 2016-01-18T04:57:00 | 12,627,354 | 1 | 0 | null | 2016-01-19T08:06:28 | 2013-09-05T19:55:28 | Python | UTF-8 | Python | false | false | 743 | py | """
Celery configuration that uses the Django settings for everything,
including autodiscovering tasks by searching installed apps /tasks.py
files.
"""
from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
# set the default Django settings module for the 'celery'... | [
"collin@collingreen.com"
] | collin@collingreen.com |
a58fc1d45640e5cbe947517064399667230eb86c | ea0d838e92f72089298fca3a53404fd7fd35252b | /setup.py | e9557832b20c33d0ca58a386397c26bf1b57a143 | [
"BSD-3-Clause"
] | permissive | trallard/scrapbook | 6b87d3099c40419ac28e28ffd643dee2e080ce4b | e7aadde95090103b84f94d1148bfa045aab0972f | refs/heads/master | 2020-06-19T14:35:15.176252 | 2019-07-15T21:31:18 | 2019-07-15T21:31:18 | 196,745,567 | 0 | 0 | BSD-3-Clause | 2021-11-08T19:36:36 | 2019-07-13T16:54:31 | Python | UTF-8 | Python | false | false | 3,756 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys
from os import path
from setuptools import setup
# io.open is needed for projects that support Python 2.7
# It ensures open() defaults to text mode with universal newlines,
# and accepts an argument to specify the ... | [
"mseal007@gmail.com"
] | mseal007@gmail.com |
8fd7d7b95e361b370dbe1a092a027e05ae3a4a89 | 9b722ca41671eb2cea19bac5126d0920639261bd | /.history/app_20201129093634.py | 52d0a5fd7d6239d6c7a784da4b691f773ef1d8fa | [] | no_license | thawalk/db_flask_server | 7928fd481f99d30bdccc60d97f02db78324cfdbe | cd55f1c9bf84c734457ee02d9f64a6833e295fad | refs/heads/master | 2023-01-25T02:40:19.097457 | 2020-12-06T07:45:50 | 2020-12-06T07:45:50 | 314,229,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,665 | py | import json
import pymongo
from flask import Flask, jsonify, url_for, request, redirect,Response,Request
import pymongo
from bson.json_util import dumps
import mysql.connector
from werkzeug.serving import run_simple
import os
from dotenv import load_dotenv
import datetime
import time
from flask_cors import CORS
app = ... | [
"akmal_hakim_teo@hotmail.com"
] | akmal_hakim_teo@hotmail.com |
0233675063ec9496ee8a077ef1421215f0088930 | 3160aa15f408a13635e3c01cbb17e1710722e19e | /tests/test_main.py | f802198ee1b5391e15971b90b002997e648d718a | [] | no_license | fdev31/zicbee-workshop | 9db24d228014ebf0a0b43c6ecbf5000b428f4a40 | 04230c176e5e696cb66dd7a338a02bb63bc5f196 | refs/heads/master | 2016-09-10T09:51:41.340698 | 2013-03-12T23:40:25 | 2013-03-12T23:40:25 | 926,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | #!/usr/bin/env python
import os
import shutil
import threading
from time import sleep
from zicbee_lib.commands import execute, commands
cwd = os.getcwd()
class ServerThread(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.setDaemon(True)
def run(self):
from z... | [
"fdev31@gmail.com"
] | fdev31@gmail.com |
ba8a429a0f5a5cb6b7c19f56a094b7dcb8ba0f13 | 580926c04f6d1340533b154aebc4b4cec6cbe764 | /ttbd/ttbl/buttons.py | 62299d92150ab609b19f89f9b23607391c43fec6 | [
"Apache-2.0"
] | permissive | cinlyooi-intel/tcf | ee30a6556222d03ca86b7cd302880b00d48791dc | 14b4d2c6f6b3334df72d0dcabc5d0e12e508681f | refs/heads/master | 2020-05-15T01:56:25.049702 | 2019-12-16T21:21:44 | 2019-12-16T21:21:44 | 182,040,359 | 0 | 0 | null | 2019-04-18T07:41:53 | 2019-04-18T07:41:53 | null | UTF-8 | Python | false | false | 10,757 | py | #! /usr/bin/python
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
"""
Press target's buttons
----------------------
A target that has physical buttons that can be pressed can be
instrumented so they can be pressed/released. This interface provides
means to access said interface.
A ta... | [
"inaky.perez-gonzalez@intel.com"
] | inaky.perez-gonzalez@intel.com |
40a0cbcfcd6be1d8cc9d1c0553b01e58c7684ad2 | 5c724d6e03e4194680c793718a4f72a58ca66bb1 | /app/migrations/0096_auto_20180928_1213.py | cdfc01ea71eec173491d127cfc6ecc59c996d40c | [] | no_license | tigrezhito1/bat | 26002de4540bb4eac2751a31171adc45687f4293 | 0ea6b9b85e130a201c21eb6cbf09bc21988d6443 | refs/heads/master | 2020-05-02T07:13:06.936015 | 2019-03-26T15:04:17 | 2019-03-26T15:04:17 | 177,812,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-09-28 17:13
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0095_auto_20180928_1211'),
]
operations = [
migratio... | [
"you@example.com"
] | you@example.com |
11b1220d76b952f48a2b7b26e84e9f5d67e1237b | f811f1f17cd2b220a92ef607f5b7c5469d2ff5db | /src/pyams_utils/size.py | 274a313d6f13736bcb54c665298bad7cae8bfb11 | [
"ZPL-2.1"
] | permissive | Py-AMS/pyams-utils | ed30a7eb1fb6948f595b4d04bd14fc664741b089 | 88253ca166c15a1eb7d9112a025b3a4e130a7db6 | refs/heads/master | 2023-07-21T17:12:50.567980 | 2023-07-07T11:55:29 | 2023-07-07T11:55:29 | 233,407,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | #
# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | [
"thierry.florac@onf.fr"
] | thierry.florac@onf.fr |
cd7a38a2f81889db732182d3973a68a4dba7f541 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4030/150004030.py | c7c7462c23720fade20421e8aba3a931464018e3 | [] | 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,277 | py | from bots.botsconfig import *
from records004030 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'TN',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 1, MAX: 1},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
507bacb3482237b54dae1c0cda09725cef49195c | 5c6c222eb68cfb625891b7a7f702fe2b55d98ff2 | /apps/DatabaseBackups/migrations/0004_auto_20210519_1053.py | 8cc6e40dd2c2a668857268d9aef61b7411d3657e | [] | no_license | chrisstianandres/ferreteria | b85bab87c5ad41024af4b6fd566d1e51746aa621 | 8459b4461b615c99e6d2418c21b0b6dd59ce85df | refs/heads/master | 2023-05-31T01:52:19.948355 | 2021-06-13T14:44:45 | 2021-06-13T14:44:45 | 328,787,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # Generated by Django 3.1.5 on 2021-05-19 15:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('DatabaseBackups', '0003_databasebackups_fecha'),
]
operations = [
migrations.AlterModelTable(
name='databasebackups',
table=... | [
"chrisstianandres@gmail.com"
] | chrisstianandres@gmail.com |
676f57406d46346e283434201c5f2c05c0b6f267 | 2acb2d6f478de8b86c41b6be60fd252e57cb35e4 | /keystone_tempest_plugin/tests/rbac/v3/test_protocol.py | 5f9d9a21d7e5ead1e91d2f9492786be781ea8ec6 | [
"Apache-2.0"
] | permissive | sapcc/keystone-tempest-plugin | 4180cc101b53881126c77e10726a889ba014a22e | 4eff632695fe79a5d78f400dca3ceab663c83788 | refs/heads/master | 2023-04-07T10:39:51.294545 | 2022-02-04T17:45:12 | 2022-02-04T17:46:11 | 137,451,053 | 0 | 0 | Apache-2.0 | 2023-04-03T23:15:13 | 2018-06-15T06:45:31 | Python | UTF-8 | Python | false | false | 12,006 | py | # Copyright 2020 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | [
"lbragstad@gmail.com"
] | lbragstad@gmail.com |
590f943c70ca0d40c63bcd8dbc58e85d2fdaa3ce | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03049/s758721868.py | 08a152315733d6e9586a92e09b42432b51b40208 | [] | 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 | 528 | py | n = int(input())
_a = 0
b_ = 0
b_a = 0
cnt = 0
for i in range(n):
s = input()
sa = False
sb = False
if s[0] == "B":
sb = True
if s[-1] == "A":
sa = True
if sa and sb:
b_a += 1
elif sa:
_a += 1
elif sb:
b_ += 1
for j in range(len(s)-1):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b5485ab14d98b3c60be2c639f6d980259b246bd6 | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/Simulation/Pythia/RSG/RSGfragments/RSGravitonToGammaGamma_kMpl02_M_4500_TuneCP5_13TeV_pythia8_cfi.py | 7277280031713381d4ff1c691dac55dd92a77edf | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 1,323 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
from Configuration.Generator.Pythia8aMCatNLOSettings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms... | [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
a19777475895b4f85fc1f61d0b2baad37728c1cf | 2e919a1e9f5d6b0ffef37b626d5dc97a5b2f63cd | /Guia_Ejercicios/13/13_5.py | df3dbb693c23608f5c608f4ff410e628b1ec9856 | [] | no_license | lucasguerra91/some-python | c3992ac6c49f015bf14f37996ff3c8b0ed7b4d0a | 0678e8d884e0641d592a3a457db11cc2085c8b27 | refs/heads/master | 2021-01-18T13:06:32.454114 | 2019-06-24T01:46:58 | 2019-06-24T01:46:58 | 80,723,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | """
Ejercicio 13.5. Escribir dos funciones mutualmente recursivas par(n) e impar(n) que deter-
minen la paridad del numero natural dado, conociendo solo que:
• 1 es impar.
• Si un número es impar, su antecesor es par; y viceversa
"""
def es_par(n):
if n == 0:
return True
return es_impar(n - 1)
def e... | [
"guerra986@gmail.com"
] | guerra986@gmail.com |
fa89239804983b148673a6092535a626a777045f | a7596165a29e5186bc6c4718e3b6e835939b105d | /build/env/bin/lss3 | 6b4f847cb8dbcc320d40b2bd58aafb3b7e389930 | [
"Apache-2.0"
] | permissive | lockhart39/HueQualityAndIngestionApp | f0c778665f0fbe699ec30e0df5e9f3ed8a9c3384 | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | refs/heads/master | 2021-08-20T00:31:29.481333 | 2017-11-27T19:22:16 | 2017-11-27T19:22:16 | 112,237,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | #!/home/cloudera/hue3.11/build/env/bin/python2.6
# EASY-INSTALL-SCRIPT: 'boto==2.38.0','lss3'
__requires__ = 'boto==2.38.0'
__import__('pkg_resources').run_script('boto==2.38.0', 'lss3')
| [
"cloudera@quickstart.cloudera"
] | cloudera@quickstart.cloudera | |
76cb7b3dd97adcbc8efd07b3679c475b0539614b | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /android_webview/browser/DEPS | 96eaa9b501768693128a3124b75ba93ad4ea6d4a | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 2,000 | include_rules = [
"-android_webview",
"+android_webview/browser",
"+android_webview/common",
"+android_webview/grit",
"+android_webview/jni",
"+android_webview/public/browser",
"+cc",
"-cc/blink",
"+components/autofill/android",
"+components/autofill/content/browser",
"+components/autofill/core/... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com | |
0c3a4910f57c01cb34b28b0a94e063d07805a72e | c3dfbbcb9a9ab161bbd218175a91a71aae39cdcf | /NPZ_hack/data/clean_data.py | 7d641bc5b3eb8382bde44ad44e1ecee10372eea4 | [] | no_license | brorfred/bayesian_cbiomes | f900a82787d936756a1a3f482bdfd2889c20ffa7 | 350e56d54b4d44f837d7ddeac7e60bf69d4cac82 | refs/heads/master | 2020-12-08T18:42:29.774493 | 2020-01-10T20:13:58 | 2020-01-10T20:13:58 | 233,063,708 | 0 | 0 | null | 2020-01-10T14:26:43 | 2020-01-10T14:26:42 | null | UTF-8 | Python | false | false | 1,054 | py |
import numpy as np
import pandas as pd
import pylab as pl
def read_chl(fn="Chl_cleaned.xlsx"):
"""Read Chl data"""
return pd.read_excel(fn, parse_dates=[0,], na_values="nd", index_col="Date")
def read_nutrients(fn="nutrientdata-1.xls"):
"""Read Nutrient data"""
return pd.read_excel(fn, na_values="nd"... | [
"brorfred@gmail.com"
] | brorfred@gmail.com |
829b4df4240b3e120e1bc51039759abf885320f3 | cc5a7e5a5cda6f07bad98852c434a2446eef9171 | /automatron_youtube_playlist/config_oauth_requester.py | 23bfa1d5bb2bfecac93c86790cfa733c4f3e5221 | [
"MIT"
] | permissive | automatron/automatron-youtube-playlist | 1ab3a5607d737796045550db498475d6dddb0a3e | 180516388691453cccc1407edd99df70f86ad029 | refs/heads/master | 2021-01-19T09:49:27.162619 | 2017-05-04T12:42:04 | 2017-05-04T12:42:04 | 16,808,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | from ConfigParser import NoSectionError
from txgoogleapi import OAuthRequester
from txgoogleapi.oauth_requester import DEFAULT_TOKEN_URI
DEFAULT_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth'
NOT_SET = object()
class ConfigOAuthRequester(OAuthRequester):
def __init__(self, factory, server, channel, conf... | [
"iksteen@gmail.com"
] | iksteen@gmail.com |
5dfce3fd8f1bdfddd26075287674ed6466806b15 | a7173a0b9a2294bf3e4f04bfcb92e6fe81842102 | /L16 数据结构与算法/wxhh/models/model_user.py | edaf377210a3119f2f1197f1d528eb1ab3aef382 | [] | no_license | yuanchangwang/cheshi | e1c01760675fa97415539b2970d68556b1bebdac | 4e101f6b279057aa82d23c5dac61b0c7d1267c23 | refs/heads/master | 2020-09-13T03:35:08.250776 | 2019-11-19T08:57:11 | 2019-11-19T08:57:11 | 222,645,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,429 | py | #coding:utf-8
from sqlalchemy import Column,func
from sqlalchemy.types import CHAR, Integer, VARCHAR, DATETIME, SMALLINT, BIGINT
from models.base import Base
from models.session import sessionCM
import datetime
import copy
import json
from share.common_tool import get_md5
class MUser(Base):
__tablename__ = 'ibb_... | [
"991552699@qq.com"
] | 991552699@qq.com |
7ae630e79a3c05d875343e91068880a9881a9993 | 6e54b5375e527f63c5e5d35f4d95e9268bcfb83c | /docs/python algorithms/mine/leetcode50/symmetric_tree2.py | fe1b1154771f59c3467bbd6255b1a987fe2b2b8b | [] | no_license | dustin181/javareference | 06f86aabc48170451231d420433384544b5154b2 | 417d5bad24d1db081c1d4ba23053a9b964dd51de | refs/heads/master | 2021-11-21T04:44:59.729888 | 2021-10-26T02:43:27 | 2021-10-26T02:43:27 | 194,995,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | from typing import Optional
from typing import List
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
def __repr__(self):
return str(self.val)
def isSymmetric(root: Optiona... | [
"dustin181@gmail.com"
] | dustin181@gmail.com |
30c616d6df36aecc3655eaa2f67411dae54a9a69 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dwr/huaweicloudsdkdwr/v3/model/update_my_action_template_request.py | baa270ab8d8bd41e66197f8e0e7f33853c5cc0bd | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,446 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateMyActionTemplateRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
61387d9d766c2f5e55c50a5b7094d8bfa92f1e2b | 792fb80e2abfc658e0f5b1de7c3526c416e69a6e | /scripts/rand_add_girl_price.py | 9fd8a455109a37f20130f9cb6995adef4b0a05e1 | [] | no_license | ThinkmanWang/ThinkClub | 56992caa3323a13eecc39ad734c0552ebadaca00 | db4ffeaf7e7882ff3bab8e7ce4aff8e23619331e | refs/heads/master | 2022-12-29T17:50:56.312911 | 2020-10-01T10:56:36 | 2020-10-01T10:56:36 | 285,783,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # -*- coding: utf-8 -*-
import random
from service.GirlService import GirlService
from service.MenuService import MenuService
g_dictBaseMenuPrice = {
"1": 100
, "2": 188
, "3": 1500
, "4": 128
, "5": 788
}
def rand_gen_menu_price(dictGirl):
nItems = random.randint(1, 5)
setMenu = set()
... | [
"wangxf1985@gmail.com"
] | wangxf1985@gmail.com |
4a18ae9b71b01cf91408fc8b3e66ded0fb99278c | cacb597567b0d5ac99fd5c51c77ca5592165412b | /trello-card-maker | 7a0399c9b46f96278522853b5df53708a1711781 | [
"MIT"
] | permissive | ashcrow/trello-card-maker | 3379209e9a086ce4a7748f2c5bd2b81d342039a6 | 9f2691660af9fee064e3623653dcbed68299600a | refs/heads/master | 2021-01-17T17:34:09.576252 | 2016-10-09T18:23:37 | 2016-10-09T19:13:43 | 70,422,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,697 | #!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2016 Steve Milner
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to us... | [
"stevem@gnulinux.net"
] | stevem@gnulinux.net | |
224d987ded24c965a580a212b3158b4da37e20b8 | 1efd2de8bf77ec00eb2fcaf5749278495946d920 | /ci/functional/junit_list_unsuccessful | d7e1fb578944df0e4dc48561364a519a5b5ba6bf | [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
] | permissive | daos-stack/daos | 6f55bf3061fd830d5b8d28506e1295e2d3a27c38 | ed5eed5df43a68571afe123132a743824c02637a | refs/heads/master | 2023-08-31T21:43:37.606145 | 2023-08-31T16:38:00 | 2023-08-31T16:38:00 | 69,390,670 | 631 | 300 | NOASSERTION | 2023-09-14T18:55:15 | 2016-09-27T19:21:29 | C | UTF-8 | Python | false | false | 380 | #!/usr/bin/env python3
""" list JUnit failures """
from glob import glob
import sys
from junitparser import JUnitXml, Error, Failure
for file in glob(sys.argv[1]):
for case in JUnitXml.fromfile(file):
try:
if isinstance(case.result[0], (Error, Failure)):
print(f"{case.classname... | [
"noreply@github.com"
] | daos-stack.noreply@github.com | |
a37c78583048b9910ad15ace3d9de7e4ddeb9813 | 2b358820cb483cb73842f6b5c3fa4de5ff0d537a | /devel/lib/python2.7/dist-packages/robmovil_msgs/msg/_TrajectoryPoint.py | 77480d287c644f1d6959892b7f0a077aaa1c229e | [] | no_license | jrr1984/tp_final_omni | bf2803b75c5713c8e91a46126f0e281efcdca813 | 10ffb784397025839cc7cbd57d5991a1fbf32367 | refs/heads/master | 2021-06-06T01:59:57.602069 | 2021-05-08T19:13:30 | 2021-05-08T19:13:30 | 127,978,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/juan/catkin_ws/devel/.private/robmovil_msgs/lib/python2.7/dist-packages/robmovil_msgs/msg/_TrajectoryPoint.py | [
"juanreto@gmail.com"
] | juanreto@gmail.com |
3de909ee63dbd1256a4dfb84e7a5dda852c66d85 | 2e7fa13a40dafa81c5852b7a9d70555c45814574 | /QT/pyqt/QRadio_btn.py | 70b8deb0432a16a017efb4134c569cd174f0e4fc | [] | no_license | Ziaeemehr/miscellaneous | 5768c6f5a2fe76468faed4283a3572a44ccd0239 | 43a62aaa28c577b09f605a135818a2dacc75d67c | refs/heads/master | 2021-07-24T02:43:51.032849 | 2020-09-23T06:17:17 | 2020-09-23T06:17:17 | 217,556,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class Radiodemo(QWidget):
def __init__(self, parent=None):
super(Radiodemo, self).__init__(parent)
layout = QHBoxLayout()
self.b1 = QRadioButton("Button1")
self.b1.setCheckable(True)
self.b1.toggled.connect(lambda:self... | [
"a.ziaeemehr@gmail.com"
] | a.ziaeemehr@gmail.com |
4235c3704ba15859db4f6a84bfdcf7678fa23ec6 | 3307766701d680af6d12a726a2d98df2cb1830e5 | /jams/euler/48.py | 623e926c9d26b36175df16053f889a811fe9456e | [] | no_license | dpaneda/code | c1a54037a275fa7044eb5c2d6079f052dd968615 | 7da1ede33a6a7cd19cbd0db517d91e7cccfbbfff | refs/heads/master | 2023-01-07T18:41:00.816363 | 2022-12-30T09:24:22 | 2022-12-30T09:24:22 | 1,583,913 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | #!/usr/bin/env python3
sum = 0
for i in range(1, 1001):
sum += i**i
print(str(sum)[-10:])
| [
"dpaneda@gmail.com"
] | dpaneda@gmail.com |
29fc11747d7f3a840c5b03e470650fbb4d34d9a1 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /xPB3jeeNRLqRQ3Dwe_9.py | 2d0082e77a381e0912976d8f5aaecebde58db030 | [] | 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 | 467 | py | """
Create a function to find `None` in a list of numbers. The return value should
be the index where `None` is found. If `None` is not found in the list, then
return `-1`.
### Examples
find_none([1, 2, None]) ➞ 2
find_none([None, 1, 2, 3, 4]) ➞ 0
find_none([0, 1, 2, 3, 4]) ➞ -1
### Notes
`... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cf1b71d60262c96821c74ea76bc215fd59048a94 | 4422b198263c496e05627106464a8ec28ad2e7e7 | /impx_leaflink_lite/wizard/models/requests_ll.py | 9405284bdc723d047e29610b34663e629dbad460 | [] | no_license | dhp-denero/impirixBNK | c9e270e67dc14355e4a53edfe78d009a2346fc15 | 3c09f6f98890249a3858c5b5dd17e999fa4e2254 | refs/heads/master | 2023-05-31T06:05:20.971771 | 2021-07-13T01:42:04 | 2021-07-13T01:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | from odoo import _
from odoo.exceptions import ValidationError
from odoo.http import request
import requests
import json
def requests_ll(**kwargs):
api_key = request.env.ref('base.main_company').leaf_link_api_key
if not api_key:
raise ValidationError(_("The field 'LeafLink API key' is missing, please ... | [
"duong.nguyen@bnksolution.com"
] | duong.nguyen@bnksolution.com |
84046926f08271dad3b0ea17c345221bf383e313 | 5bdd3879094528fb7977b7816b688ac8d8ea68c3 | /zacksnyderfir/users/apps.py | 43ddf7cc649be18ccb8afbe42d1b0f86cb974380 | [
"MIT"
] | permissive | zacksnyder/zacksnyderfir | c956cdb994d10efd56de03caa889ba7e131ec657 | 34721d06b4b75dd32e97112739c76443e4622551 | refs/heads/master | 2021-05-14T10:36:58.137372 | 2018-01-05T08:15:07 | 2018-01-05T08:15:07 | 116,359,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'zacksnyderfir.users'
verbose_name = "Users"
def ready(self):
"""Override this to put in:
Users system checks
Users signal registration
"""
pass
| [
"you@example.com"
] | you@example.com |
853f9e756d4e38868ac93895201f64551c309efd | 0563f004a0c9d36c37a889d1f9c583ff06b2eef8 | /middleware_project/middleware_project/wsgi.py | 281da9606d7aa0cdd3617668e4c025872beebcc7 | [] | no_license | Rk27-Dev/djangoproject | 675021446c4147972ee5d5fb1e8bfe832a386f29 | 326449a03d813819471120e8838cc19f883e93d4 | refs/heads/master | 2023-08-16T16:19:14.174602 | 2019-06-14T10:41:46 | 2019-06-14T10:41:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for middleware_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"ravikurva7@gmail.com"
] | ravikurva7@gmail.com |
00bd163530385b4de0783a86da40d41efea5b822 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/306/usersdata/288/69742/submittedfiles/poligono.py | 7dc481b44f9f95186a380c975bec808e352f9b6d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | # -*- coding: utf-8 -*-
n=int(input("digite o número de lados do polígono (n): "))
nd=float((n*(n-3))/2)
print("\nEsse polígono tem %d lados e possui %.1f diagonais diferentes." % (n, nd))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
409f8a5444d918b033b08da34a7e48dc570eee30 | 70450f0c551adf47b450468e424f4f90bebfb58d | /sim-services/resources/gcd_validation/details/generate_gcd_snapshot.py | a7bb30e10597364ac454f531eecc48e2b51f8cb8 | [
"MIT"
] | permissive | hschwane/offline_production | ebd878c5ac45221b0631a78d9e996dea3909bacb | e14a6493782f613b8bbe64217559765d5213dc1e | refs/heads/master | 2023-03-23T11:22:43.118222 | 2021-03-16T13:11:22 | 2021-03-16T13:11:22 | 280,381,714 | 0 | 0 | MIT | 2020-07-17T09:20:29 | 2020-07-17T09:20:29 | null | UTF-8 | Python | false | false | 2,666 | py | #!/usr/bin/env python
# TODO: RunId
# TODO: Argparse
import argparse
from os.path import expandvars
from copy import deepcopy
from I3Tray import I3Tray
from icecube import icetray, dataclasses, dataio
from icecube.BadDomList.BadDomListModule import BadDomListModule
from icecube import vuvuzela
from icecube.gcdserv... | [
"aolivas@umd.edu"
] | aolivas@umd.edu |
f45b0786582d068c498adb230d7cd92eaa866445 | 679b1ba357df2439f109d6dad556b75d345374f0 | /kikimr/public/api/protos/ydb_table_pb2.py | f3e7826eb1cfa9e44e8f84a4f725308c86b49f9a | [
"Apache-2.0"
] | permissive | Denrur/ydb-python-sdk | f6e8bd1441127dad2bdbf9365c5aae609b520e68 | 6aff4b40de1071f629191afdaeb11d3372646e82 | refs/heads/master | 2023-07-09T15:20:52.621964 | 2021-08-25T16:11:18 | 2021-08-25T16:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 313,505 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: kikimr/public/api/protos/ydb_table.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _ref... | [
"arcadia-devtools@yandex-team.ru"
] | arcadia-devtools@yandex-team.ru |
10caf8b908145c57e1ca00816d32ae139f1397d9 | c97ce34d1d16761b8fff63f310fd6567d9b36f7d | /web_1_may_dev_3977/urls.py | d02e644aaf9f74bad56643781fcc67f6aa46686d | [] | no_license | crowdbotics-apps/web-1-may-dev-3977 | 4fe0755c0d2275de494aac7a9202bb52c05363ce | 21693e67dfa94c2b920c387c86339b0e48957adc | refs/heads/master | 2023-06-05T16:49:37.308656 | 2020-05-01T13:08:28 | 2020-05-01T13:08:28 | 260,396,771 | 0 | 0 | null | 2021-06-13T10:14:56 | 2020-05-01T06:46:03 | Python | UTF-8 | Python | false | false | 2,518 | py | """web_1_may_dev_3977 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e71eece799ba7e9a66814290d2c44b00141ab346 | 819ff9b165795e2eb91b497d016bcebd5770d1d6 | /buildlet/utils/hashutils.py | 116063e29a0964dbf29b120dbc9348b1941e79b5 | [
"BSD-3-Clause"
] | permissive | tkf/buildlet | 62d123f0716b6a65c94a5f3baf4a27f5bf4616ed | ab1e272c0db4be24f7ec6efa98d26c2bc1a15c68 | refs/heads/master | 2021-01-10T21:00:47.739763 | 2012-10-01T22:37:58 | 2012-10-01T22:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import hashlib
def hexdigest(strings):
m = hashlib.md5()
for s in strings:
m.update(s.encode())
return m.hexdigest()
| [
"aka.tkf@gmail.com"
] | aka.tkf@gmail.com |
33c551ee161ec838c11f1fa80bbbcbb174236781 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/lib2to3/fixes/fix_dict.py | 1e0f8010a470b7d0eb21deda2e3ac8927e298068 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,751 | py | # 2015.11.10 21:36:54 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/lib2to3/fixes/fix_dict.py
"""Fixer for dict methods.
d.keys() -> list(d.keys())
d.items() -> list(d.items())
d.values() -> list(d.values())
d.iterkeys() -> iter(d.keys())
d.iteritems() -> iter(d.items())
d.itervalues() -> iter(d... | [
"info@webium.sk"
] | info@webium.sk |
3746c2e77b23565acb02465eb0c02c8fcc32c5e8 | e60c7870161083529ee488dea9984a0ff04a896d | /CES-22/2obimestre/aula12/cookies-exemplo/venv/bin/easy_install | 628c73b1af080111321454c8e63d31885d7516aa | [] | no_license | Claudiocfls/ITA-projects | 68b5512464bd55b2d8a62dbcff95ecbe6540e592 | 1380710276f5ffb3298de246ea1b5a5580716ae4 | refs/heads/master | 2021-01-24T00:53:56.548413 | 2018-06-29T20:37:15 | 2018-06-29T20:37:15 | 122,785,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | #!/home/claudio/workspace/ITA-projects/CES-22/aula12/aplicacao-cookies/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"claudiosilva.cfls@gmail.com"
] | claudiosilva.cfls@gmail.com | |
6e9cee5dbd7ba0e0562011739cd94885f9a6aa37 | ec61dcdd371a7b4b0f5315c6fc2dfb920edd6743 | /tcrdist/pgen.py | 17fc67b5d8d9c0c77498b1b7725b2f188398642d | [
"MIT"
] | permissive | agartland/tcrdist2 | 92a9a39f07e5b153afb83b5a784d6cb202816410 | 77ab0036a3f8f3951093a3bb14741d961ae14eda | refs/heads/API2 | 2020-06-18T14:00:04.297389 | 2020-06-17T22:48:24 | 2020-06-17T22:48:24 | 196,326,065 | 0 | 0 | MIT | 2019-07-16T00:20:15 | 2019-07-11T05:33:54 | Jupyter Notebook | UTF-8 | Python | false | false | 9,687 | py | import pandas as pd
import numpy as np
import os.path as op
import os
from tcrdist import olga
import tcrdist.olga.load_model as load_model
import tcrdist.olga.generation_probability as generation_probability
import tcrdist.olga.generation_probability as pgen
from tcrdist.olga.utils import nt2aa, determine_seq_type
fr... | [
"kmayerb@gmail.com"
] | kmayerb@gmail.com |
921e2410500061bb0d53e7f32ae0c9713663a92c | 534570bbb873293bd2646a1567b63d162fbba13c | /Python/Algorithm/Math/414.Third Maximum Number.py | b2de547f8a56b1b6afc44cd64aa5bccb2b6e0be3 | [] | no_license | XinheLIU/Coding-Interview | fa3df0f7167fb1bc6c8831748249ebaa6f164552 | d6034c567cef252cfafca697aa316c7ad4e7d128 | refs/heads/master | 2022-09-17T14:30:54.371370 | 2022-08-19T15:53:35 | 2022-08-19T15:53:35 | 146,382,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | class Solution:
def thirdMax(self, nums: List[int]) -> int:
ans = [-float('inf')]*3
for i in nums:
if i>= ans[0]:
if i == ans[0]:
continue
ans[1:]=ans[0:2]
ans[0] = i
elif i>=ans[1]:
if i == a... | [
"LIUXinhe@outlook.com"
] | LIUXinhe@outlook.com |
28a2455672a7b689afbb6331fe1ee6ffb17f861c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/prepositions/_behind.py | 419a9dc0bd61488f9075326793e485b5425e5c8f | [
"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 | 305 | py |
#calss header
class _BEHIND():
def __init__(self,):
self.name = "BEHIND"
self.definitions = [u'at the back (of): ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'prepositions'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
249db3d5d04ddfda977ee113c7b9a04b985420a2 | 2f219eebc2a7bd689d9fb4dba9f074a481919338 | /chapter09/problem11729.py | 2af4cf768c63baefadcf64fb1a1c090fdcc415e2 | [] | no_license | koni114/python-algorithm | 1a5bad6050240e53a5bd1b785a3bdfc511a8eae5 | ebccf380762a089c538dbe64e1148617cfb7b1b6 | refs/heads/master | 2021-07-22T00:41:44.165148 | 2021-07-02T08:20:44 | 2021-07-02T08:20:44 | 174,780,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # 하노이 탑
import sys
from collections import deque
f = sys.stdin
n = int(f.readline())
result = deque()
def hanoi(start, end, size):
empty = 6 - (start + end)
if size == 1:
result.append((start, end))
return
hanoi(start, empty, size-1)
result.append((start, end))
hanoi(empty, end, s... | [
"koni114@naver.com"
] | koni114@naver.com |
f896ce4e742baf363585ea27116d8402b52cf3ad | 480a175ab2b3c012af2d1cddb79674fad1490fe5 | /0x0A-python-inheritance/10-square.py | 47dc22aadbbb1c0b615e3f1274ba060f6ed37c9d | [] | no_license | ianliu-johnston/holbertonschool-higher_level_programming | a8a6476fc6a7ac0bd8ae300f2196f17c13e1b36f | f6a7c9cddb2482991c2aadacb99aa66e64eb50eb | refs/heads/master | 2021-04-29T11:12:56.820851 | 2017-05-10T00:48:17 | 2017-05-10T00:48:17 | 77,854,226 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | #!/usr/bin/python3
def lookup(obj):
return (0)
print(lookup(obj))
| [
"ian.liu-johnson@holbertonschool.com"
] | ian.liu-johnson@holbertonschool.com |
f8e19cb19bddc1df0ef4405865d5422709229089 | 7d33f3ffd3e8af75abb60959668d070b9d595e30 | /common/testClassVariable.py | d2a1a10df76e11217b34b7c257f32740d630e8fb | [] | no_license | XuChongBo/pydemo | 33ad4615158b39b79ad81a92dcbf5d27fb60184f | ded0d15a22ed8c606deb35b83357fe7eeb9cb6af | refs/heads/master | 2021-06-13T09:11:57.564740 | 2020-09-13T11:24:32 | 2020-09-13T11:24:32 | 15,645,208 | 0 | 1 | null | 2021-03-19T22:24:58 | 2014-01-05T04:08:47 | HTML | UTF-8 | Python | false | false | 529 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
class MyClass():
a = '123'
@staticmethod
def foo():
print MyClass.a
print 'in foo()'
@staticmethod
def putclass():
c = MyClass()
MyClass.c = c
c.a = "the statict instance c"
b = MyClass()
MyClass.b = b
b.a = "the statict instance b"... | [
"xcbfreedom@gmail.com"
] | xcbfreedom@gmail.com |
0581c788890cde66737f6764c274386ea391d870 | a1c9c55e1520356113a320be18e8fcb31654a944 | /archive/0.10/generated/seaborn-boxenplot-7.py | c82b5f552daeb6bcf73daf816cb46ddb4d6047d2 | [] | no_license | seaborn/seaborn.github.io | bac12a9255b41c7971e9e94ea393d372ef66ef62 | f70445bc3456f0216169806c2daf03452ca1eba4 | refs/heads/master | 2023-01-06T10:50:10.789810 | 2022-12-30T19:59:55 | 2022-12-30T19:59:55 | 70,731,605 | 16 | 5 | null | 2022-06-28T00:32:07 | 2016-10-12T18:56:12 | HTML | UTF-8 | Python | false | false | 151 | py | ax = sns.boxenplot(x="day", y="total_bill", data=tips)
ax = sns.stripplot(x="day", y="total_bill", data=tips,
size=4, color="gray")
| [
"mwaskom@nyu.edu"
] | mwaskom@nyu.edu |
9a73e27cf3a0189d830920e3e6de29ace9cfda30 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02779/s933754298.py | a5a05f387386081393913f04c205c91e4d7267ff | [] | 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 | 227 | py | import sys
N = int(sys.stdin.readline().rstrip())
A = [int(x) for x in sys.stdin.readline().rstrip().split()]
A.sort()
for i in range(N - 1):
if A[i] == A[i + 1]:
print("NO")
break
else:
print("YES")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d1610517fbfcf60a21ef6727c8317d96e6e79a5e | 4ff15e538ba5d4e3c216a1f6c87cdd03bfd3357a | /scopus/tests/test_ScopusAuthor.py | 5273c793ed0a03691d3395d55f964474c4e6eaa1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Waffleboy/scopus | 05c49aace2849763510709bfce5e8e9f0df68fd5 | a92b55db78239c702ffdb3125862de330d659c20 | refs/heads/master | 2021-06-26T07:02:32.381627 | 2017-09-11T08:52:31 | 2017-09-11T08:52:31 | 103,111,244 | 0 | 0 | null | 2017-09-11T08:40:40 | 2017-09-11T08:40:40 | null | UTF-8 | Python | false | false | 2,868 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `ScopusAuthor` module."""
from collections import Counter
from nose.tools import assert_equal, assert_true
import scopus
au = scopus.ScopusAuthor("7004212771", refresh=True)
def test_affiliation_history():
affs = au.affiliation_history
assert_true... | [
"Michael.Ernst.Rose@gmail.com"
] | Michael.Ernst.Rose@gmail.com |
f3828a12bba55bcd4a533dbb2730fadebc731ab0 | 6512d35653fe578a26e732722b06ee44204e0e17 | /venv/Scripts/pip-script.py | 4c8fe851992cc9c0a147bd25dde66080959d887e | [] | no_license | si21lvi/LaboratorioColecciones | 5465156d82767cb1e5277b2a39624bc5b60302c4 | 4bc2ac2f90ddda7f3adae4d7ac6992bda5c97dd8 | refs/heads/master | 2020-05-15T12:42:24.547165 | 2019-04-19T14:21:39 | 2019-04-19T14:21:39 | 182,274,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!C:\Users\Windows\Desktop\LaboratorioColecciones\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"you@example.com"
] | you@example.com |
774a66fbadd36b7f934e96371c3093313eaa70d8 | c5146f60c3a865050433229ba15c5339c59a9b68 | /zhaquirks/adeo/__init__.py | affe3f3592323415391f726ede5f29171d464e39 | [
"Apache-2.0"
] | permissive | Shulyaka/zha-device-handlers | 331505618a63691a86b83977b43508b0e3142af2 | 84d02be7abde55a6cee80fa155f0cbbc20347c40 | refs/heads/dev | 2023-02-22T10:17:09.000060 | 2023-02-04T15:57:17 | 2023-02-04T15:57:17 | 194,286,710 | 1 | 0 | Apache-2.0 | 2023-02-04T22:59:20 | 2019-06-28T14:25:54 | Python | UTF-8 | Python | false | false | 31 | py | """Module for ADEO devices."""
| [
"noreply@github.com"
] | Shulyaka.noreply@github.com |
296a9b2f925c0a9e052c4f63e42a75d5aa83d9ee | 5a977855c32226303bdec2585dc7d159a801b12f | /material/codigo/opencv/captura_video.py | e55d46369509beecfe09aff277c80512feb8b139 | [] | no_license | javacasm/RaspberryAvanzado | 5eecd62c3598b2e36bc4ee91c3e96b33734903bf | bbccc7b8af8c2c9b5e2e298b3e5c063d9aa056c1 | refs/heads/master | 2021-09-11T16:45:18.263481 | 2018-04-09T22:06:11 | 2018-04-09T22:06:11 | 108,258,204 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | import cv2
videoCapture = cv2.VideoCapture('MyInputVid.avi')
fps = videoCapture.get(cv2.cv.CV_CAP_PROP_FPS)
size = (int(videoCapture.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)),int(videoCapture.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT)))
videoWriter = cv2.VideoWriter('MyOutputVid.avi', cv2.cv.CV_FOURCC('I','4','2','0'), fps, size)... | [
"javacasm@gmail.com"
] | javacasm@gmail.com |
6b774a66b1f0429f05b88b775b1be3b5d9b5da7d | aac5982c8dcf26221419086fb90c399b9f4324ef | /DFTB/Scattering/atomic_photoelectron_angular_distribution.py | 08f2eaad4e97d351cd73401616ee4b288f38fec4 | [] | no_license | by-student-2017/DFTBaby-0.1.0-31Jul2019 | 99184d3fa2976d4e02f7f1bddee97e56526d9365 | 92cb73f1a6472f88588986561349d7f2ad1b1c15 | refs/heads/master | 2022-12-12T00:12:50.449505 | 2020-09-01T21:05:59 | 2020-09-01T21:05:59 | 290,116,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,468 | py | #!/usr/bin/env python
"""
computes the photoelectron angular distribution (PAD) for ionization of an atom using the numerically
exact bound and continuum orbitals of this single-electron Hamiltonian.
"""
import numpy as np
from numpy.polynomial import legendre
from StieltjesImaging.LebedevQuadrature import get_lebede... | [
"studentsctest@gmail.com"
] | studentsctest@gmail.com |
527c09b91b33663183ea8d14bab63e05872bed60 | 4e88e9af77cd5b2dc5e5c96e2d1462d9b4119015 | /pyUbiForge/ACU/type_readers/4579B822.py | 04154828f92a3b8816db3fdcee2e08a83d8d7332 | [] | no_license | bingxueyouwu/ACExplorer | da55db4d00587a8011b3379d5a8ff35f5d949872 | 1da5871a1ac052f8ce3c4ded5dccd4130626bd7b | refs/heads/master | 2020-05-24T07:41:12.759718 | 2019-05-16T18:04:30 | 2019-05-16T18:04:30 | 187,166,216 | 0 | 1 | null | 2019-05-17T07:14:53 | 2019-05-17T07:14:53 | null | UTF-8 | Python | false | false | 336 | py | from pyUbiForge.misc.file_object import FileObjectDataWrapper
from pyUbiForge.misc.file_readers import BaseReader
class Reader(BaseReader):
file_type = '4579B822'
def __init__(self, py_ubi_forge, file_object_data_wrapper: FileObjectDataWrapper):
file_object_data_wrapper.read_float_32()
file_object_data_wrapper... | [
"james_clare1@yahoo.co.uk"
] | james_clare1@yahoo.co.uk |
3ff74ddc554eb7ffa91a6760fcf6d1c2b58b5349 | c9aa34a74e9f095c4dec21acf0f63ce33ea54757 | /UndocumentedScripts/AllScripts/PhoenixvilleTransitCheck.py | ab31a2b24b052dcc674a96b4204729ac295b6327 | [] | no_license | dvrpc/TIM3AnalysisScripts | d4a5308987279da421d4e9e76ca3ff6efe4e6490 | cb8d50eead676b2950051a6d527be7a13de19b9f | refs/heads/main | 2023-07-30T01:20:52.457588 | 2021-10-01T15:34:47 | 2021-10-01T15:34:47 | 372,885,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import pandas as pd
import numpy as np
import os
print('Reading 2015')
trip2015 = pd.read_csv(r'D:\TIM3.1\PhoenixvilleSensitivityTest\SP\scenario\Output\_trip_2.dat', '\t').query('mode == 6')
print('Reading 2030')
trip2030 = pd.read_csv(r'D:\TIM3.1\PhoenixvilleSensitivityTest\2030\Base\scenario\Output\_trip_2.dat', '\... | [
"jflood@dvrpc.org"
] | jflood@dvrpc.org |
8245930d8ccf5ea0b947829f1e63e76a9d3338c1 | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /demo/Hexamap/HexagonalMapState.py | d00a5bea50fe1fe4528ba7d6a5f607da958cfc91 | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | from PyQt4 import QtGui, QtCore
import numpy as np
class HexagonalMapState(object):
def __init__(self, map, valDim=1):
self.map = map
self.x_num = map.x_num
self.y_num = map.y_num
self.defaultEdgeColor = QtGui.QColor(0,0,0)
self.defaultEdgeWidth = 1
... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
37e131b7d633bd165cc07707746140201d7cdb93 | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/statistics/view/availableprotocolfilter/availableprotocolfilter.py | bbb212771a24710aa41e9dfc49a72c62f35826ec | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 2,959 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
819fcc2e66236cb9403bbbf628b2ad08424161c3 | 25ff4ff1c46bf75c6453d3868651af5a45f95747 | /Chapter03/3_4_list_network_interfaces.py | a897f77ffa205ad0a1ed4379d29928ff61751f87 | [] | no_license | CodedQuen/Python-Network-Programming-Cookbook | c7e2a159a939dc7b3b821e50ce61c178c99d4dbf | 3e5be943e29108e46b2081c7b61369597649264e | refs/heads/master | 2022-06-19T00:27:09.772376 | 2020-05-05T01:25:09 | 2020-05-05T01:25:09 | 261,333,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | #!/usr/bin/env python
# Python Network Programming Cookbook, Second Edition -- Chapter - 3
# This program is optimized for Python 2.7.12 and Python 3.5.2.
# It may run on any other version with/without modifications.
import sys
import socket
import fcntl
import struct
import array
SIOCGIFCONF = 0x8912 #fro... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
6f7135f525aa94c364bfd0be6421d1758e279d58 | 029aa4fa6217dbb239037dec8f2e64f5b94795d0 | /数据结构练习/Python算法指南数据结构/110_删除排序链表中的重复元素Ⅰ.py | 21bbb1b34bac577869b52263dd41129cb7ae207a | [] | no_license | tonyyo/algorithm | 5a3f0bd4395a75703f9ee84b01e42a74283a5de9 | 60dd5281e7ce4dfb603b795aa194a67ff867caf6 | refs/heads/master | 2022-12-14T16:04:46.723771 | 2020-09-23T06:59:33 | 2020-09-23T06:59:33 | 270,216,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
class Solution:
def deleteDuplicates(self, head):
if None == head or None == head.next:
return head
new_head = ListNode(-1)
new_head.next = head
parent = new_... | [
"1325338208@qq.com"
] | 1325338208@qq.com |
2d3bb30255d8e2ae621474b1d55b04ad1508396b | 5793b470eea39ba99ff4d16325d462440647b77d | /Gui/Tour/toplevel0.py | b37d9b13ceb1ac0922a6e717f4a9c21089f6764f | [] | no_license | zhongjiezheng/python | 01a99438fc4681817d4d0e623673afa1e488864c | 5c5725ad0e75d07e016b64d79eddf3d88a524fa0 | refs/heads/master | 2021-01-17T11:57:12.373343 | 2015-07-08T09:04:48 | 2015-07-08T09:04:48 | 35,549,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | import sys
from tkinter import Toplevel, Button, Label
win1 = Toplevel()
win2 = Toplevel()
Button(win1, text='Spam', command=sys.exit).pack()
Button(win2, text='SPAM', command=sys.exit).pack()
Label(text='Popups').pack()
win1.mainloop() | [
"zzjie1991@gmail.com"
] | zzjie1991@gmail.com |
42476bae84de7c210c10044ca42ddefff3d23ece | 243e4508663449f9d0710d1283d0275037c43b2e | /wepy/analysis/network_layouts/tree.py | 657c90821a16de47af0670a9972c8234e27a8d52 | [
"MIT"
] | permissive | Juanrong/wepy | c77264d643edda689631ee335a4d0c9fad4aa84b | 235e8bcbc563f6f0ca9f92d702e9f1495dc620ad | refs/heads/master | 2020-05-31T17:35:29.187475 | 2019-04-29T22:29:26 | 2019-04-29T22:29:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,122 | py | """Class for generating layouts for resampling trees.
Routines
--------
ResamplingTreeLayout.layout
See Also
--------
Notes
-----
References
----------
Examples
--------
"""
from warnings import warn
from collections import defaultdict
from copy import copy
import itertools as it
import numpy as np
import net... | [
"samuel.lotz@salotz.info"
] | samuel.lotz@salotz.info |
ec52bd32113d87d8584b11ce195c49567ceddbdb | 375f40e8bd67ed63076f877c7d26a8853dd946b5 | /summatieve_opdrachten/P1/bucket_sort_1.py | 712ce705fe38031c2f381b4939da7414f8e1dff7 | [] | no_license | WailAbou/opdrachten | 2077add1980d35be8b26dff19fca9498b3652a67 | 232b7705f8a9357eaf4a3956dc468c90c9bafe8d | refs/heads/main | 2023-03-20T16:56:48.387603 | 2021-03-24T16:55:22 | 2021-03-24T16:55:22 | 336,093,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | # Deze methode neemt de input lijst van (reële) getallen in en sort deze volgens de "bucket_sort" methode
def bucket_sort(data):
# De `data` wordt in een `postives` en `negatives` nummers lijsten verdeeld
postives, negatives = [x for x in data if x >= 0], [-x for x in data if x < 0]
# Beide lijsten worden ... | [
"abou.w@hotmail.com"
] | abou.w@hotmail.com |
1154c92a75af9c0ca202670e059a959d89f36bcc | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/databoxedge/v20200901/list_order_dc_access_code.py | 4207422da6f639a5755149180d78558efb07157e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
7202c9558018a898eabd9da96c4987474acc2cba | 99701affb7ae46c42c55484f3301d59f79294a10 | /project/Examples/Examples/PP2E/PyGadgets_bar.pyw | 4933a1a6965305db915f8cebe39831e5e7b60508 | [] | no_license | inteljack/EL6183-Digital-Signal-Processing-Lab-2015-Fall | 1050b9e9bddb335bf42b7debf2abebe51dd9f9e0 | 0f650a97d8fbaa576142e5bb1745f136b027bc73 | refs/heads/master | 2021-01-21T21:48:21.326372 | 2016-04-06T20:05:19 | 2016-04-06T20:05:19 | 42,902,523 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 178 | pyw | # run PyGadgets tool bar only, instead of starting all the
# gadgets immediately; filename avoids dos popup on windows
import PyGadgets
PyGadgets.runLauncher(PyGadgets.mytools)
| [
"inteljack2008@gmail.com"
] | inteljack2008@gmail.com |
19d404bfa94cda85b4a8b012da42870302f01ebe | cd0ad0e18fafc66bc39ac30adf30fc137178d859 | /08模块module/use future.py | 32f62c563b71fdb23034f0ab477f117fdb8af7f7 | [] | no_license | KlausQIU/liao.xuefeng2.7python-course | 938b23f905c71fd7b0d3a5f330d79e15a00dd1fc | 9d1f9921e4f769320f4f7ce897c2f2b39a6bacff | refs/heads/master | 2021-01-17T06:07:14.676813 | 2016-07-03T12:10:28 | 2016-07-03T12:10:28 | 52,960,541 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # -*- coding:utf-8 -*-
#__future__ module
#2.x里的字符串用'xxx'表示str,Unicode字符串用u'xxx'表示unicode,而在3.x中,所有字符串都被视为unicode,b'xxx'才表示str
from __future__ import unicode_literals
from __future__ import division
print '\'xxx\' is unicode?',isinstance('xxx',unicode) #判断在version 2.7下 xxx是否为unicode
print 'u\'xxx\'is unicode?',isin... | [
"moon.qiu198909@hotmail.com"
] | moon.qiu198909@hotmail.com |
d0693a590f13ba9701013f74881161be5fd133c1 | 0044e5d38c8aa01bda8857f1f8e475c7e5d85f39 | /JA_Blog_Site_Test/my_project/fabfile.py | 52776db5460a0525890d68ab7d77662ebc6a3739 | [] | no_license | CyborgVillager/JA_GitShare_Mezza_Blog_Site | 3ef9f908a2bb2efb125df310a206ad514f4e2dbd | db1b96259dcedb24f51d36e7f9d01458d97a7f7a | refs/heads/master | 2021-12-23T15:06:29.837391 | 2021-10-13T04:55:07 | 2021-10-13T04:55:07 | 231,162,267 | 1 | 0 | null | null | null | null | UTF-8 | Python | true | false | 22,065 | py | from __future__ import print_function, unicode_literals
from future.builtins import open
import os
import re
import sys
from contextlib import contextmanager
from functools import wraps
from getpass import getpass, getuser
from glob import glob
from importlib import import_module
from posixpath import join
from mezza... | [
"almawijonathan@gmail.com"
] | almawijonathan@gmail.com |
8611fc512e60f7136c65b1f3d4aded919a02e1dd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03385/s804365039.py | 2d1ea8431dae628ef38a893634cc77742be2f244 | [] | 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 | 163 | py | def main():
S = input()
if sorted(list(S)) == sorted(list('abc')):
return True
return False
if main():
print('Yes')
else:
print('No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4b0890a73aafeb431a74ba6443c141ddb6c99fcf | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/django/core/files/move.py | d4cbc17a0d50c795009ab6db4c33d0b2c16ef212 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 3,194 | py | """
Move a file in the safest way possible::
>>> from django.core.files.move import file_move_safe
>>> file_move_safe("/tmp/old_file", "/tmp/new_file")
"""
import errno
import os
from shutil import copystat
from django.core.files import locks
__all__ = ['file_move_safe']
def _samefile(src,... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
9b090e761e86ec8b363402fca10f535e8c33808d | b29589f95734682663ae6cd40ab00eb0a94b6d87 | /longwave/lblnew_20160916/study__g1_threshold/o3/conc_None/band05_wn_980_1100/nv_1000/dv_0.001/ng_7/g_ascending_k_descending/refPTs_P_1_T_250__P_50_T_250/ng_refs_2__5/ng_adju_0__0/getabsth_auto__auto/absth_dlogN_uniform__dlogN_uniform/klin_2e-20/atmpro_mls/wgt_k_1/wgt_0.35_0.6__0.5_0.55_0.7_0.9_1.0/wgt_flux_1/w_diffuse... | 130fec6154dfed8ff8ded7bc06c4064fabf2c5d1 | [] | no_license | qAp/offline_radiation_notebooks | 02c2b2414ef1410f235776001a668f7df0b9f1cf | 44fb62391c27e4e314ad68ae3e91f6111b3172c5 | refs/heads/master | 2020-04-15T14:31:34.675322 | 2019-07-08T04:45:54 | 2019-07-08T04:45:54 | 43,118,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | DIR_FORTRAN = '/chia_cluster/home/jackyu/radiation/crd/LW/examples/separate_g_groups/study__lblnew_g1_threshold/o3/conc_None/band05_wn_980_1100/nv_1000/dv_0.001/ng_7/g_ascending_k_descending/refPTs_P_1_T_250__P_50_T_250/ng_refs_2__5/ng_adju_0__0/getabsth_auto__auto/absth_dlogN_uniform__dlogN_uniform/klin_2e-20/atmpro_m... | [
"llacque@gmail.com"
] | llacque@gmail.com |
0597b2b7534783d458e4f4c8da285b5ab2fe170f | 4b889219c928b312de903afe18bc9123ed2a6788 | /mysites/tools/checkers.py | a224bead6377174b51826c25e8b9897292abea49 | [
"MIT"
] | permissive | cmwaura/Newspade | fc60799ad3a01c048b8bf6c46847547e8d46eef0 | ac434ea6ab5ae8ce4ae144e6746bfed214316a7c | refs/heads/master | 2021-01-15T15:25:43.445773 | 2016-08-06T21:26:18 | 2016-08-06T21:26:18 | 55,442,835 | 0 | 2 | null | 2016-04-12T18:41:20 | 2016-04-04T20:33:17 | JavaScript | UTF-8 | Python | false | false | 3,230 | py | from dynamic_scraper.spiders.django_checker import DjangoChecker
from mysites.models import BBCNews, ReutersNews, AljazeeraNews, EconomistNews
class NewsChecker(DjangoChecker):
'''
The JobChecker class inherits from the DjangoChecker class in the Dynamic Django scraper
module hence why we imported it. The main ai... | [
"cmmwaura@ucdavis.edu"
] | cmmwaura@ucdavis.edu |
bd4dbe952e308d6007cd8db0b1757f519eba02d7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03776/s511051438.py | 6222b44bd2199c98601a716698c9cae99a66e970 | [] | 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 | 521 | py | from itertools import accumulate as ac
t = 3099044504245996706400 # LCM(1..50)
N, A, B = map(int, input().split())
V = sorted([int(a) * t for a in input().split()])[::-1]
l, r = 0, 1<<200
while r - l > 1:
m = (l+r) // 2
if list(ac([v-m for v in V]))[A-1] >= 0:
l = m
else:
r = m
fa = [1]
for... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
60db9ef4cc20e5bdd97077bcce70457bda597771 | 77ee1f677ab2ececb821a11be128b76bcf0e8d6f | /electrum_mona/tests/test_storage_upgrade.py | c10c0afcff165df955740eb7f4dce213e0f87f32 | [
"MIT"
] | permissive | zcore-dev/electrum-mona | c74e6142a0f34721be70dba68d524ae9ce03179c | 2beb0c9c7794e8b03d1725bae41ee8b792c57275 | refs/heads/master | 2020-08-22T15:32:55.604727 | 2019-10-21T22:56:29 | 2019-10-21T22:56:29 | 216,427,159 | 0 | 0 | MIT | 2019-10-20T21:03:48 | 2019-10-20T21:03:48 | null | UTF-8 | Python | false | false | 10,823 | py | import shutil
import tempfile
import os
from electrum_mona.storage import WalletStorage
from electrum_mona.wallet import Wallet
from electrum_mona import constants
from .test_wallet import WalletTestCase
# TODO add other wallet types: 2fa, xpub-only
# TODO hw wallet with client version 2.6.x (single-, a... | [
"root@DESKTOP-97LL1PI.localdomain"
] | root@DESKTOP-97LL1PI.localdomain |
0eeb13a7954a3c01d6bf3297c5d6ed136765858b | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-5777.py | 73ebbeed18215f4d4ce4624ac5ea770dfac865fa | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,753 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
5a24211d91bc5250225dde3dfb7a570095c136ea | 34d88082307281333ef4aeeec012a3ff5f8ec06e | /w3resource/basic/Q086.py | 6254faa5d64de35f4cc644f1ca92d364cfabc82f | [] | no_license | JKChang2015/Python | a6f8b56fa3f9943682470ae57e5ad3266feb47a7 | adf3173263418aee5d32f96b9ea3bf416c43cc7b | refs/heads/master | 2022-12-12T12:24:48.682712 | 2021-07-30T22:27:41 | 2021-07-30T22:27:41 | 80,747,432 | 1 | 8 | null | 2022-12-08T04:32:06 | 2017-02-02T17:05:19 | HTML | UTF-8 | Python | false | false | 163 | py | # -*- coding: UTF-8 -*-
# Q086
# Created by JKChang
# Wed, 31/05/2017, 15:34
# Tag:
# Description: Write a Python program to get the ASCII value of a character.
| [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
22a8ca7a308a3697a9f3a692505d901e3277bfac | d9679dc18407a7b6d559ba003b91c013c17ca9f3 | /aiozk/test/test_client.py | 73eab5da4c77294abff986afe26a351d86f24565 | [
"MIT"
] | permissive | packysauce/aiozk | e53e5646592081d12b8bd8ab4f26aac24caa494e | bfb98b03de486a0b980be22477fc3c196aca55a4 | refs/heads/master | 2021-04-30T00:50:24.518256 | 2019-01-03T15:32:10 | 2019-01-03T15:32:10 | 121,465,736 | 0 | 0 | null | 2018-02-14T03:18:16 | 2018-02-14T03:18:16 | null | UTF-8 | Python | false | false | 1,475 | py | import asyncio
import logging
import uuid
import pytest
from aiozk import WatchEvent
from .conftest import get_client
logging.getLogger('asyncio').setLevel(logging.DEBUG)
@pytest.fixture
async def full_zk(zk, path):
child_1 = f'{path}/{uuid.uuid4().hex}'
child_2 = f'{path}/{uuid.uuid4().hex}'
await zk.... | [
"cybergrind@gmail.com"
] | cybergrind@gmail.com |
ee1d30b0e6fca7754c9d542970633385dc257327 | e92689dd3cea566585ad8d5ea84deadca78ce489 | /Travelling Website/contact/views.py | 23d502062cf707cab5bb6eeebc4c25dd24fc0186 | [] | no_license | sd8917/Travelling-web | f15e1ec05fcef8b618ed12edb560aa96dec2c697 | 4e8d86b8a1dbad3e6203b30e69f41e48b127724f | refs/heads/master | 2020-06-05T14:43:29.393380 | 2019-06-18T03:59:49 | 2019-06-18T03:59:49 | 192,462,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def contact(request):
print("You are at function Contact")
return render(request, 'contact.html')
| [
"sudhanshuraj8917@gmail.com"
] | sudhanshuraj8917@gmail.com |
7cdd0dffdc34ad573a35e06e25eef9e4d526abaf | 7a23870e9b0b56b112f634d26760282ff7a4f46c | /Projects/Archived Tk code/From extensions folder/Pmw/Pmw_1_3/tests/ScrolledCanvas_test.py | c791ca4026f205b37b5eec2480549408cd431fe2 | [] | no_license | leo-editor/leo-editor-contrib | 0c671998c4ec7fd7c4ce890a201395afe340481b | 28c22721e1bc313c120a8a6c288893bc566a5c67 | refs/heads/master | 2023-06-25T04:28:54.520792 | 2023-06-14T20:18:12 | 2023-06-14T20:18:12 | 16,771,641 | 6 | 6 | null | 2023-06-09T11:26:42 | 2014-02-12T15:28:36 | Python | UTF-8 | Python | false | false | 3,011 | py | import Test
import Pmw
Test.initialise()
c = Pmw.ScrolledCanvas
def _createOvals():
w = Test.currentWidget()
w.create_oval(50, 50, 150, 100, fill = 'red')
w.create_oval(100, 50, 150, 150, fill = 'blue')
w.create_oval(50, 100, 200, 350, fill = 'yellow')
def _createWindow():
w = Test... | [
"edreamleo@gmail.com"
] | edreamleo@gmail.com |
8cd709f1f81d79c2276aeba104dfd17abeaceafe | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03487/s630663864.py | 00e46f3b7b9b3315a0284cdd96ce0e39e1bc072b | [] | 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 | 333 | py | import sys
input = sys.stdin.readline
from collections import Counter
def main():
N = int(input())
A = list(input().split())
C = Counter(A)
ans = 0
for k, v in C.items():
if v >= int(k):
ans += v - int(k)
else:
ans += v
print(ans)
if __name__ == '__main__... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a23d4926ca857786a259d41b86b316b270a475fe | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/848c945a2c11e064d860fa494ed567c1606ffd65-<update_host>-fix.py | 4c8b06da3c36afcecb18291163288cf24b805d7a | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py |
def update_host(module, array):
changed = True
if (not module.check_mode):
init_changed = vol_changed = pers_changed = pref_changed = False
volumes = array.list_host_connections(module.params['host'])
if (module.params['iqn'] or module.params['wwns'] or module.params['nqn']):
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
93264fab2df5f445c82acd57483d951ae9bf16b6 | df57770fdcef8cf2a1cb4689585d587aed9da872 | /tests/set_trace_debug.py | ff56134784386483250b0030206d3b29c5a08cc2 | [
"MIT"
] | permissive | PasaOpasen/true-false-python | 40e5310a5c8f29984d8d6b22dc2ccd4938089e83 | a26ddd7c61471dd4d60d8ece00c6f03750bb7dca | refs/heads/main | 2023-08-23T18:50:49.014677 | 2021-10-17T09:57:24 | 2021-10-17T09:57:24 | 330,133,379 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 14 12:12:46 2021
@author: qtckp
"""
import sys
sys.path.append('..')
from truefalsepython import set_trace, debug
def f(x, y, z):
x = 2*x + y + z
return x + y + z
debug(f, 1, 2, 3)
for i in range(100):
if i == 50:
set_trace()
| [
"qtckpuhdsa@gmail.com"
] | qtckpuhdsa@gmail.com |
02954723cc1d8a30094f47b353a805949e40aff9 | 3fc7a6ffc39390c8228b30b6d53a3429104bf5f3 | /August/directory-8-14/嵌套函数.py | a0c976065434995e923e052553c261432b11aa51 | [] | no_license | liuluyang/miller | a5463c0f9625570de2cf16a9844ed4c7f82dde76 | 786f286749972fb2c3a66e068a3874a00aa0f2ee | refs/heads/master | 2020-09-21T22:20:22.987833 | 2019-11-30T03:20:13 | 2019-11-30T03:20:13 | 224,952,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,225 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = "Miller"
# Datetime: 2019/8/14 11:02
# name = "这是全局变量 name"
# def change_name():
# name = "change_namer 局部变量"
# def inner():
# # global name # 如果声明了这句的话,使用的就会是最外层的 name
# # nonlocal name
# name = "inner 局部变量" # 如果这里注释了打印... | [
"1120773382@qq.com"
] | 1120773382@qq.com |
ad7d7fb4c45aaaddc45557716a47811a7f64549e | f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb | /weapp/tools/weather/urls.py | 13db666dbd23159c7eebdba59ba7e36b01f209d0 | [] | no_license | chengdg/weizoom | 97740c121724fae582b10cdbe0ce227a1f065ece | 8b2f7befe92841bcc35e0e60cac5958ef3f3af54 | refs/heads/master | 2021-01-22T20:29:30.297059 | 2017-03-30T08:39:25 | 2017-03-30T08:39:25 | 85,268,003 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | # -*- coding: utf-8 -*-
__author__ = "liupeiyu"
from django.conf.urls import *
import views
urlpatterns = patterns('',
(r'^info/$', views.get_weather_info),
) | [
"jiangzhe@weizoom.com"
] | jiangzhe@weizoom.com |
e78c8904095a3fba96c940a132621ffb1a3c626a | db0570c48c6647f2f8183ea3633525e24aeee5c8 | /spiketoolkit/preprocessing/basepreprocessorrecording.py | 38dec54121be329f12db55aae1c3caf5c208768c | [
"MIT"
] | permissive | aliddell/spiketoolkit | 2afff36418b9ed441461d5312fed2daee81aa627 | 20f954db6f400f6675f2d843d804d605b77702b1 | refs/heads/master | 2023-04-09T09:55:33.246713 | 2021-04-23T07:23:06 | 2021-04-23T07:23:06 | 258,225,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | from spikeextractors import RecordingExtractor
from spikeextractors.extraction_tools import check_get_traces_args
class BasePreprocessorRecordingExtractor(RecordingExtractor):
installed = True # check at class level if installed or not
installation_mesg = "" # err
def __init__(self, recording):
... | [
"alejoe9187@gmail.com"
] | alejoe9187@gmail.com |
2e595aaeab3f769d42277b3aa41b471c6a3f66fe | e054f555197ccd0ab5191706eeae7e6769c112a6 | /WebDev/2021_05_14_WebClass-7/project1/polls/views.py | 7d53b2d2bc1264f6c32b1524462bd8944d4bcc17 | [
"MIT"
] | permissive | kaptan0428/2021-22-Classes | f1a37306dba887be4407c595791cbaea7041e8da | 9e88ed8baf91636e5661148bf58d9839a1b2a8ca | refs/heads/main | 2023-04-22T06:46:19.727890 | 2021-05-14T18:18:22 | 2021-05-14T18:18:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | from django.shortcuts import render, HttpResponse, HttpResponseRedirect, reverse
from polls.models import Question, Choice
def main_page(request):
response = "<h1>This page will show list of all questions</h1>"
all_questions_list = Question.objects.all()
print(all_questions_list)
context = {
... | [
"ksh1998@gmail.com"
] | ksh1998@gmail.com |
3005b16de64932bdc2d1676e6e98635a761b40b6 | 6ca946ef3c0e19f274b1f3beddb5d09f3bf5029a | /GitCSVbyLine.py | 8264ec57376c0c02a639fccd3e49df732a1f6295 | [] | no_license | nanohaikaros/zju_py | 36b3a802714472f9a27eb59a1034a6bcb89265d8 | a9b73ab52b8b0b7fffca8caeb29fb1691265b3ef | refs/heads/master | 2020-09-15T04:22:21.277421 | 2019-12-11T08:27:13 | 2019-12-11T08:27:13 | 223,347,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | fo = open("price2016.csv", "r")
ls = []
for line in fo:
line = line.replace("\n", "")
ls = line.split(",")
lns = ""
for s in ls:
lns += "{}\t".format(s)
print(lns)
fo.close() | [
"1371689491@qq.com"
] | 1371689491@qq.com |
6dc167f10943b18f287502d2a6151d91459b8106 | 9dd04a187821186b2f052a8afecc5e2e4450085d | /work1/work1/wsgi.py | 134e542e3d5f7090807149d23e96b719665dfa2b | [] | no_license | WwuTT/workspace1 | 75f377420e7433461a2dd99e210e3739bec4b78c | a882860fbf5587aa6ad265d15a0f82c3d1177047 | refs/heads/master | 2020-05-03T14:13:27.293838 | 2019-03-31T13:44:44 | 2019-03-31T13:44:44 | 178,671,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | """
WSGI config for work1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
459ed95212a7431026e40a227b916e5febb2f106 | 7cb3e5e16fd93e6f8a1c07c211cee16dc248ef5d | /venv/lib/python3.6/site-packages/django/db/models/sql/subqueries.py | a2653fb88cda06bb5b5a72654dd9bfdc21dc855a | [] | no_license | JustynaJBroniszewska/Blog | d74a8cb19fa037b834f5218522ff1397eb60d370 | cfd8efbcce3e23c7ebeea82b2e732de63c663ac8 | refs/heads/master | 2022-11-03T22:01:07.165652 | 2020-06-05T14:25:01 | 2020-06-05T14:25:01 | 266,791,768 | 0 | 0 | null | 2020-06-05T14:25:02 | 2020-05-25T13:52:19 | Python | UTF-8 | Python | false | false | 7,398 | py | """
Query subclasses which provide extra functionality beyond simple data retrieval.
"""
from django.core.exceptions import FieldError
from django.db import connections
from django.db.models.query_utils import Q
from django.db.models.sql.constants import (
CURSOR,
GET_ITERATOR_CHUNK_SIZE,
NO_RESULTS,
)
fro... | [
"jj.broniszewska@gmail.com"
] | jj.broniszewska@gmail.com |
7f1ff612f8b1bfbeffe84f63c4ad0e4d2b16587b | 5c8346597e3690eec3939f56f233eb5fafd336bc | /varsom_regobs_client/models/density_profile_dto.py | 083a0864c617f8027b91bc2cd6cdc57711bafe3b | [] | no_license | NVE/python-varsom-regobs-client | be44befd04ca07058f8b46ec69bf1659d3ee422b | 8bb7fc06d2f6da36a5fa4a475d4f036ebe3cfd72 | refs/heads/master | 2022-12-27T19:09:54.761318 | 2020-06-24T08:56:15 | 2020-06-24T08:56:15 | 274,619,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,521 | py | # coding: utf-8
"""
RegObs API
## Introduction RegObs is a tool for collecting observations and events related to natural hazards. It is currently used by the Norwegian flood, landslide and avalanche warning service in Norway, but the data is openly available for anyone through this API. Regobs ... | [
"jorgen.kvalberg@gmail.com"
] | jorgen.kvalberg@gmail.com |
5f86e78180d4e0c82be800783eb53aa88bbbcd4e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/KoubeiMerchantDepartmentShopModifyResponse.py | 59514bb3b0a4d357481ee1ebd488661c542828d9 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 467 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class KoubeiMerchantDepartmentShopModifyResponse(AlipayResponse):
def __init__(self):
super(KoubeiMerchantDepartmentShopModifyResponse, self).__init__()
def parse_response_co... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
512daf55c5ff3deabd43c6783792229925d8b3de | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /SimG4Core/PhysicsLists/python/physicsQGSP_BERT_G4104_cfi.py | 3a62609eade86045bb84cfc1db264592ada163ff | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 374 | py | import FWCore.ParameterSet.Config as cms
from SimG4Core.Configuration.SimG4Core_cff import *
g4SimHits.Physics.EmaxBERT = cms.double(8.) # in GeV
g4SimHits.Physics.EmaxBERTpi = cms.double(8.) # in GeV
g4SimHits.Physics.EminFTFP = cms.double(6.) # in GeV
g4SimHits.Physics.EmaxFTFP = cms.double(25.) # in GeV
g4... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
50a95d728abad877cdba93b11dbdea91b4771dad | 1af44bdcbc3c15d3f6e436a7924dfd45f504ab3a | /01.jump to python/chpter 5/5_5/245.py | a9a1ed7bf7a9d8f1590e4c07c71095b28c9638cb | [] | no_license | wql7654/bigdata_exam | f57c8b475690cbc5978009dbf8008bedff602e2a | c07ee711bb84407428ba31165185b9607b6825e8 | refs/heads/master | 2023-04-07T00:50:59.563714 | 2021-05-25T02:46:43 | 2021-05-25T02:46:43 | 180,915,985 | 0 | 0 | null | 2023-03-25T01:08:09 | 2019-04-12T02:36:08 | Jupyter Notebook | UTF-8 | Python | false | false | 42 | py | print(list(map(lambda a: a*2, [1,2,3,4]))) | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
3612c2e38379ca28f9f6c9f24a23c2f014da2673 | 97be97cfc56fb2170b60b91063dbfe5f1449e3c0 | /python/ABC093/B.py | fc90b372fa84b685159b10f0c34bd91e2b832555 | [] | no_license | iWonder118/atcoder | 73d965a0a9ade189733808e47634f2b7776aad4b | 3ab7271e838a2903ff0e07f94015ef13c59577e1 | refs/heads/master | 2022-01-25T10:10:55.007340 | 2021-12-31T14:04:54 | 2021-12-31T14:04:54 | 245,155,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | a, b, k = map(int, input().split())
for i in range(a, min(b, a + k - 1) + 1):
print(i)
for i in range(max(b - k + 1, a + k), b + 1):
print(i)
| [
"52240372+iWonder118@users.noreply.github.com"
] | 52240372+iWonder118@users.noreply.github.com |
1e1fb6824ca9011c950efac2b8238522d14dd1a6 | 9c25fcef2b0d0eedadc818d8a8bc8f6098d13b49 | /single-cycle/utils.py | 952d1e4841aec3079832cfba95b62c5ca3415726 | [] | no_license | onesuper/Hazard | 655b5147991fa5996fb8898749e128fb578dec1c | d322217c68fa70f5581987c3ba8024f0c720eb60 | refs/heads/master | 2021-01-13T16:10:11.928782 | 2013-04-27T14:44:42 | 2013-04-27T14:44:42 | 8,702,599 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py |
# 16bit -> 32bit
def sign_extend(bits):
return bits
# 2-way multiplexer
def mux(control, a, b):
return a if control else b
def AND(a, b):
return a and b
def OR(a, b):
return a or b
def Add(A, B):
return A+B
def boolize(b):
if b == True: return '1'
elif b == False: return '0'
... | [
"onesuperclark@gmail.com"
] | onesuperclark@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.