blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feb2dc16e2789132a98ac763eb08a63bb6ff086e | 2ca7eda87460f702bec33708d8a494d8c701a7b2 | /tensorflow/python/keras/mixed_precision/experimental/device_compatibility_check.py | 9279c37bb527a972aa8867a79d31b0c5e9777dc4 | [
"Apache-2.0"
] | permissive | xiaolinpeter/tensorflow | 7f931b294a434d731185131c22034c6b68cdf2b7 | 28aa08fc1e017355fc1118913bd988cf7890bec5 | refs/heads/master | 2021-05-19T06:55:47.491635 | 2020-03-31T09:02:33 | 2020-03-31T09:05:54 | 251,556,442 | 2 | 0 | Apache-2.0 | 2020-03-31T09:24:32 | 2020-03-31T09:24:31 | null | UTF-8 | Python | false | false | 7,115 | py | # Copyright 2019 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
16e44fe8b2dcdb7050cf93f7d7f693492e0b9d39 | 075786cd6b8b5d3e943162512bbc3950532734f3 | /player/human.py | 84b9008c187e6edd22e571255debd7daa32ab40a | [] | no_license | VincentVelthuizen/Menace | 470c6744de65a2685be92ed9d450d1dfea5c0bad | 196498200cbdbfba9ccd2b1497efacf7c63b4171 | refs/heads/master | 2023-05-02T20:48:25.636309 | 2021-05-20T12:37:49 | 2021-05-20T12:37:49 | 320,262,025 | 0 | 2 | null | 2021-05-20T12:37:50 | 2020-12-10T12:13:00 | Python | UTF-8 | Python | false | false | 708 | py | import player
from board import Board, _state_set_cell
class Human(player.Player):
keys = {113: (0, 0), 119: (0, 1), 101: (0, 2),
97: (1, 0), 115: (1, 1), 100: (1, 2),
122: (2, 0), 120: (2, 1), 99: (2, 2)}
# The human player object needs to be able to talk to the computer user through... | [
"mail@vincentvelthuizen.com"
] | mail@vincentvelthuizen.com |
4d62a2fb14ec957250f83aec716fc37141077cda | 73b3ca8a063778f30fc259110519791bedd67801 | /ticketplace/settings.py | f3d224c9f1d212ba90381440d8aa2b7ea111fc85 | [] | no_license | DasomJung24/ticketplace | f57fb2368443026c185766f28e778545acb7d647 | 930e34f4e498ecf588bcb094b16ada57ac43ddf3 | refs/heads/master | 2023-01-29T04:33:34.924023 | 2020-12-13T16:59:16 | 2020-12-13T16:59:16 | 320,288,514 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | """
Django settings for ticketplace project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pat... | [
"jeongdasom6@gmail.com"
] | jeongdasom6@gmail.com |
8e9683fe6b02f5131b9205be402928e216b2f878 | adb145c78bbc9fa557abef3333c85882cb2442fe | /examples/show_channels.py | c769d6dacb1c3c3a9195c9be5af8f44c5d5965e8 | [] | no_license | mgpwanderer/pyst3 | 574b40c7edbd058048c393c923b7f581b6ef2799 | b7ef58b8dab6ceeb0c23e498d9f21e61afaa9b4c | refs/heads/master | 2021-01-18T13:08:55.205169 | 2014-11-21T09:04:31 | 2014-11-21T09:04:31 | 17,709,524 | 9 | 4 | null | 2020-05-08T15:48:08 | 2014-03-13T12:38:39 | Python | UTF-8 | Python | false | false | 915 | py | """
Example to get list of active channels
"""
import asterisk.manager
import sys
manager = asterisk.manager.Manager()
try:
# connect to the manager
try:
manager.connect('localhost')
manager.login('user', 'secret')
# get a status report
response = manager.status()
prin... | [
"areski@gmail.com"
] | areski@gmail.com |
769cedf41185d39d17f661de4cfba647bc7c158c | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/robort_20200727104801.py | 2010285cce961f66b93daecfab4a32147f02ab60 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def uniquePaths(m,n):
# use dynamic programming and answer is at arr[m][n]
# let's create and empty grid with 0's
grid = [[0] * m] * n
# then using the top down uproach we shall prefill all the
uniquePaths(3,2) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
12826fe19b895ac45cd98838364927f7bb08dd9c | ed962cd83f09d9f14f4528c3b2e6ae55d48de5b3 | /wagtail-repository/wagtail/core/apps.py | dd6ee694395a3e97cc26a142e7ac0ec899d0e0ff | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | TobiasSkovgaardJepsen/wagtail-on-heroku | 9eefc4346a88191b8a2f5c902db4b2645fdbad67 | 17e4720f86023225e0704890688998a80bb87a17 | refs/heads/master | 2022-12-19T03:54:51.766911 | 2018-01-20T14:41:33 | 2018-01-20T14:41:33 | 117,421,808 | 0 | 1 | BSD-3-Clause | 2022-12-07T23:51:05 | 2018-01-14T10:46:23 | Python | UTF-8 | Python | false | false | 292 | py | from django.apps import AppConfig
class WagtailCoreAppConfig(AppConfig):
name = 'wagtail.core'
label = 'wagtailcore'
verbose_name = "Wagtail core"
def ready(self):
from wagtail.core.signal_handlers import register_signal_handlers
register_signal_handlers()
| [
"tsj@aau114974.mynet"
] | tsj@aau114974.mynet |
6ff1d93caaa9b376c31d963dc66cd9a3cb8fc42b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_weighted.py | e340dc692dc99f8c2fded0864e71b23542626ba9 | [
"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 | 224 | py |
#calss header
class _WEIGHTED():
def __init__(self,):
self.name = "WEIGHTED"
self.definitions = weight
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['weight']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e16d6b0c732d957e8b90b55aaf84a77a990b923a | 36216b52f6d3c9b5d16e9d93c56540fe07bc5f5a | /backstage/server/forms.py | 71e701d5357e296b3d5d578887a50bac8171c822 | [
"MIT"
] | permissive | zerolfx/eoj3 | 3984676d1e29ad5d04f06a41836ece3f1a452054 | 156060399d1c3e5f7bcdbf34eaffbe2be66e1b20 | refs/heads/master | 2020-08-10T19:55:36.278006 | 2019-10-11T10:26:20 | 2019-10-11T10:27:19 | 214,410,171 | 1 | 0 | MIT | 2019-10-11T10:39:12 | 2019-10-11T10:39:11 | null | UTF-8 | Python | false | false | 367 | py | from django import forms
from dispatcher.models import Server
class ServerEditForm(forms.ModelForm):
class Meta:
model = Server
fields = ['name', 'ip', 'port', 'token', 'concurrency', 'runtime_multiplier', 'version', 'master']
class ServerUpdateTokenForm(forms.Form):
new_password = forms.CharField(min_l... | [
"scottyugochang@hotmail.com"
] | scottyugochang@hotmail.com |
c63ce4b9e4bf4d5e9cee09e0aea032917a339c41 | 838f063e516b979364bdddb7a8604f9c3ff405d8 | /tests/gcloud/database_ddl_test.py | 1d0ce1560405f41a462e23ba85afa985200059d2 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/cloud-spanner-emulator | d205193c7c3c265a47a822e1df574271c8522759 | 53eaa404d303fb2dc03f3b444553aa9bb24c3786 | refs/heads/master | 2023-08-29T12:33:41.780107 | 2023-08-11T08:15:10 | 2023-08-11T08:15:10 | 251,420,886 | 236 | 38 | Apache-2.0 | 2023-09-07T12:35:45 | 2020-03-30T20:28:25 | C++ | UTF-8 | Python | false | false | 3,012 | py | #
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
97b8ec6308ec18fdc55cc64668317b9d601f77e6 | 2d20823359e012c3d5942ec72b2442e2d5e3f2d7 | /demo/World population.spx.py | 777a6503622bacd601997903f984450c5894e330 | [
"MIT"
] | permissive | urbach/jupytext | 8fa20d6f83abb6c09ad4cd952c6e8748e3183643 | 6d3a38505ae539975085f9d5b4e457c9566a7977 | refs/heads/master | 2020-04-24T14:55:49.401909 | 2019-02-22T08:43:37 | 2019-02-22T08:43:37 | 172,044,219 | 1 | 0 | MIT | 2019-02-22T10:14:39 | 2019-02-22T10:14:39 | null | UTF-8 | Python | false | false | 3,282 | py | # ---
# jupyter:
# jupytext:
# formats: ipynb,.pct.py:percent,.lgt.py:light,.spx.py:sphinx,md,Rmd
# text_representation:
# extension: .py
# format_name: sphinx
# format_version: '1.1'
# jupytext_version: 1.0.0-dev
# kernelspec:
# display_name: Python 3
# language: python
# ... | [
"marc.wouts@gmail.com"
] | marc.wouts@gmail.com |
0c7496f34ee608feab34d8444ee4d5c33dc88ec5 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /factors_of_influence/fids/sunrgbd.py | d7687853f656cc3995e06bd4997ecd3bd6b68748 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,865 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
761631e008d73e304e87b40d11cc0bc377475f41 | d30233316dd25fa1fe757f46769fba2da4934876 | /GRADER/File.py | 6d9daec59ae5214854e9ed492dcfb42a1e9cb1f7 | [] | no_license | saumya-singh/CodeGrader | 7fb1ca75bc07a76c7ff0c506f22d22cfaa8661b0 | 6338da979cff00c7a12b8988d2d1886663278f14 | refs/heads/master | 2020-03-10T19:21:44.775031 | 2018-04-14T19:44:35 | 2018-04-14T19:44:35 | 129,546,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import requests
import os
class File:
base_url = "http://192.168.43.190:8080/CodeGrader2"
base_directory = "/tmp"
def __init__(self, submission_id, file_name):
self.submission_id = submission_id
self.file_name = file_name.strip()
self.filename_noext, file_ext = os.path.splitext(self.file_name)
self.fi... | [
"saumya.singh0993@gmail.com"
] | saumya.singh0993@gmail.com |
b9ad598aef5d9c6ff63715cc8682439a6df16879 | 5d32d0e65aa3bfa677fd1b8c92569e07e9b82af1 | /Section 4 - Lists/Fruit Machine 2.py | e78f93ec3c25930ea64edd0961d61c27284f6398 | [
"CC0-1.0"
] | permissive | pdst-lccs/lccs-python | b74ef2a02ac8ad2637f713fff5559f4e56c9827d | 95cb7ece05716521e9951d7a40de8fb20a88021f | refs/heads/master | 2023-05-28T00:46:57.313972 | 2023-05-22T10:16:43 | 2023-05-22T10:16:43 | 240,501,524 | 21 | 18 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | # Event: LCCS Python Fundamental Skills Workshop
# Date: May 2018
# Author: Joe English, PDST
# eMail: computerscience@pdst.ie
# Purpose: A program to simulate a fruit machine
# Description: To run this program the file fruits.txt must exist in the runtime folder
# This program reads the entire file in one comman... | [
"noreply@github.com"
] | pdst-lccs.noreply@github.com |
99676168522f6040813b9ddb4402a4be3081a0d5 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW02_20210630162753.py | ba3ab937a9adc7f59ef0592f1d2524cc1d73c68b | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,432 | py | """
Georgia Institute of Technology - CS1301
HW02 - Conditionals and Loops
Collaboration Statement:
"""
#########################################
"""
Function Name: snackBar()
Parameters: snack (str), ingredient (str), yourMoney (float)
Returns: whether you can get the snack (bool)
"""
###########... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
b5b8ba1d6d74bfc6140163460ff7ee5b0e2234ff | 4d27d69c22f9c405e1d11baa7d3872b7075c68fa | /day3/oploadpic.py | 3f1229049a597b4ea32491649f0c3c45f4bce2dc | [] | no_license | zhentestnice/selenium_test1 | 99f547104e5b547e78c9fb1dd3860a6a97c91d63 | 9bbb8578b84447c6b14adefd3122e2b8ac437dc4 | refs/heads/master | 2021-08-23T04:13:25.251992 | 2017-12-03T07:09:14 | 2017-12-03T07:09:14 | 112,907,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py | import time
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.select import Select
driver = webdriver.Chrome()
driver.implicitly_wait(30)
driver.maximize_window()
driver.get("http://localhost/index.php?m=admin&c=pu... | [
"51Testing"
] | 51Testing |
933a90d77bcc6337f44e77eb422d6513ca2f3a4e | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/alwayson/testcase/firstcases/testcase5_028.py | 6cf58969ae1d92078ea9a7ace0fa943a46deb2cd | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,631 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
5e4cb27bc88ca962e358de8631e842d4b3395cfb | 5292189eb99d9a69b4e417dfed352e7de0844b0e | /scripts/generate_enriched_texts.py | d76137474504d68ed6cc0d8f876971e1e90b30da | [
"MIT"
] | permissive | Envinorma/data-tasks | e1197ac3deada7edc5406933b65fd099bd412f6d | 7aa12b5def1b8a7a10c9651fb02267592fef0368 | refs/heads/main | 2022-10-26T21:38:39.952029 | 2022-06-12T08:46:38 | 2022-06-12T08:46:38 | 364,975,968 | 0 | 0 | MIT | 2022-10-11T12:25:53 | 2021-05-06T16:41:49 | Python | UTF-8 | Python | false | false | 1,265 | py | # DEPRECATED
'''
Script for generating all versions of a specific AM using its
structured version and its parametrization.
'''
# from typing import Optional, Tuple
# from envinorma.parametrization.am_with_versions import AMVersions, generate_am_with_versions
# from envinorma.utils import write_json
# from tasks.data_... | [
"remi.delbouys@laposte.net"
] | remi.delbouys@laposte.net |
37276aeb06dcad99c2d20af20c2879662c23e92f | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/live_20210420075102.py | 5aaca3d8bdf9d7202c4559c9a90c0e239879462c | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | import os
import cv2
import sys
import numpy as np
from models import SimpleModel
from preprocess import Datasets
import hyperparameters as hp
import tensorflow as tf
from skimage.transform import resize
from PIL import Image, ImageFont, ImageDraw
from scipy.spatial import distance as dist
from imutils import face... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
ed7ad0ebeb496183ba4b5ae5a8803c223274731c | 6b1dd40d16ae6169e7ed780c5062e88d10502c85 | /Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/trash/902_cv_LOO_524-1.py | da31953b17d71903f208c8f4e306fb38ac469b9e | [
"MIT"
] | permissive | hehuanlin123/DeepLearning | 8a59680a341cfc525d50aa5afc3e44202ca4acc4 | 6b7feabbbde9ac9489f76da4c06eeb6703fb165a | refs/heads/master | 2022-07-12T09:26:08.617883 | 2019-06-10T11:31:37 | 2019-06-10T11:31:37 | 183,748,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,572 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 24 21:09:29 2018
@author: kazuki.onodera
"""
import numpy as np
import pandas as pd
import sys
sys.path.append('/home/kazuki_onodera/Python')
import lgbmextension as ex
import lightgbm as lgb
import gc
import utils
utils.start(__file__)
#==========... | [
"szkfzx@szkfzxdeiMac.local"
] | szkfzx@szkfzxdeiMac.local |
f58417c1d198d5d79a6b11bba9b19fb2b7416ef0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_perish.py | f448a3104103b61dfd8543a82aa79519714189e1 | [
"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 | 449 | py |
#calss header
class _PERISH():
def __init__(self,):
self.name = "PERISH"
self.definitions = [u'to die, especially in an accident or by being killed, or to be destroyed: ', u'If material such as rubber or leather perishes, it decays and starts to break into pieces: ']
self.parents = []
self.childen = []
s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5814d5b9897fce2326f8464326357614ccef0682 | ad9782856ec2f860fccbefa5e75a896691b8e1cc | /MonteCarlo/test/dropLargeRespace/VBF_HToZZTo4L_M125_14TeV_powheg2_JHUgenV702_pythia8_LHE_GEN_SIM_OT_Tilted_362_200_Pixel_4021_dropLargeRespace.py | a4a679fc47b806bb6339c6dcefcd23818ed9126b | [] | no_license | OSU-CMS/VFPix | 7fe092fc5a973b4f9edc29dbfdf44907664683e5 | 4c9fd903219742a4eba1321dc4181da125616e4c | refs/heads/master | 2020-04-09T05:52:05.644653 | 2019-01-09T13:44:22 | 2019-01-09T13:44:22 | 30,070,948 | 0 | 0 | null | 2018-11-30T13:15:54 | 2015-01-30T12:26:20 | Python | UTF-8 | Python | false | false | 6,517 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/Generator/python/VBF_HToZZTo4L_M125_14TeV_powheg2_JHUgenV702_pythia8_cfi.py --conditions auto:phase2_realistic -n 100 --era Phas... | [
"juliette.alimena@cern.ch"
] | juliette.alimena@cern.ch |
be72477f2c2a81bb266c758a9409a5ecc183c251 | 652121d51e6ff25aa5b1ad6df2be7eb341683c35 | /programs/e2proclst.py | 4ed2507cb5f9c3544cff4642cdfa9f78535076d1 | [] | no_license | jgalaz84/eman2 | be93624f1c261048170b85416e517e5813992501 | 6d3a1249ed590bbc92e25fb0fc319e3ce17deb65 | refs/heads/master | 2020-04-25T18:15:55.870663 | 2015-06-05T20:21:44 | 2015-06-05T20:21:44 | 36,952,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,932 | py | #!/usr/bin/env python
# This program performs simple processing of .LST files
# Author: Steven Ludtke, 10/06/14 (sludtke@bcm.edu)
# Copyright (c) 2014- Baylor College of Medicine
#
# This software is issued under a joint BSD/GNU license. You may use the
# source code in this file under either license. However, note th... | [
"jgalaz@gmail.com"
] | jgalaz@gmail.com |
ccc42f46382a7123266fc8d929e483370e32deca | 892efbbd60049f22c5e271a0e49f505e9f6029e1 | /doc/examples/plot_holes_and_peaks.py | a9c3a7fe4e8a26085f62c53f4856ad170652fcd5 | [
"BSD-3-Clause"
] | permissive | teoliphant/scikit-image | 95338caa2876f2c6360a8e164b7cc2d4127f2038 | d0415e6df475157705fd1ef2af69b16e4f7e38cc | refs/heads/master | 2020-12-30T19:23:04.806465 | 2012-11-02T23:02:06 | 2012-11-02T23:02:06 | 6,649,519 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | """
===============================
Filling holes and finding peaks
===============================
In this example, we fill holes (i.e. isolated, dark spots) in an image using
morphological reconstruction by erosion. Erosion expands the minimal values of
the seed image until it encounters a mask image. Thus, the seed... | [
"tsyu80@gmail.com"
] | tsyu80@gmail.com |
09efec9a6022b0570ad0e33b0dff86b355536217 | adc6d8ee596e4710c3241332758bb6990bdd8914 | /subDM/subNormDM/brilloContraste.py | fbeff8b5ec28d286245d03e284c4ef261b484cfc | [] | no_license | NatalyTinoco/Trabajo-de-grado_Artefactos | cf9491c47a8a23ce5bab7c52498093a61319f834 | 5cc4e009f94c871c7ed0d820eb113398ac66ec2f | refs/heads/master | 2022-03-20T00:51:48.420253 | 2019-11-24T19:10:40 | 2019-11-24T19:10:40 | 197,964,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 18 20:07:00 2019
@author: Nataly
"""
import numpy as np
def contraste(img):
im11 = img
#arreglo = np.array(im11.size)
#print(im11.size)
#total = arreglo[0] * arreglo[1]
arreglo=im11.shape
#arreglo=list(arreglo)
total = arreglo[0] * arreglo[1]
... | [
"51056570+NatalyTinoco@users.noreply.github.com"
] | 51056570+NatalyTinoco@users.noreply.github.com |
dd8bb1c250b24c436a67fde4a1a0d51018deae0f | 1af44bdcbc3c15d3f6e436a7924dfd45f504ab3a | /01.jump to python/chpter 7/1_Regular_Expression/322_4.py | e7264c33ea0b3f9081a31f5eecfb71e933afd995 | [] | 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 | 491 | py | import re
file_name=["foo.bar","autoexec.bat","sendmail.cf","sandstrom.p"]
#확장자가 bat인 파일은 제외해야 하는 조건 추가
p = re.compile(".*[.]([^b].?.?|.[^a]?.?|..?[^t]?)$")
for file in file_name:
m = p.search(file)
print(m)
#확장자길이가 1~3개까지 가능
#확장자의 글자의 갯수가 2이상이 되도록 "?"를 추가하여
# ver 2에서 추가한 확장자가 'bat'인 파일을 제거하기... | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
6e4f75ac35fb9b664f40bc19a40e3bf93dc0da7b | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /core/sort/sort.py | 46dd25711428d5aa0b51bd19a417355790d4ac24 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 4,647 | py | # <License type="Sun Cloud BSD" version="2.2">
#
# Copyright (c) 2005-2009, Sun Microsystems, 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:
#
# 1. Redistributions of source code must reta... | [
"devnull@localhost"
] | devnull@localhost |
c283a8c68863c409076408a410ce155dddcf590e | 11a246743073e9d2cb550f9144f59b95afebf195 | /codeforces/793/a.py | 0905d62437f790cd23e8d77eb696802d02271c3b | [] | no_license | ankitpriyarup/online-judge | b5b779c26439369cedc05c045af5511cbc3c980f | 8a00ec141142c129bfa13a68dbf704091eae9588 | refs/heads/master | 2020-09-05T02:46:56.377213 | 2019-10-27T20:12:25 | 2019-10-27T20:12:25 | 219,959,932 | 0 | 1 | null | 2019-11-06T09:30:58 | 2019-11-06T09:30:57 | null | UTF-8 | Python | false | false | 268 | py | def main():
n, k = map(int, input().split())
a = list(map(int, input().split()))
target = min(a)
mods = set([x % k for x in a])
if len(mods) != 1:
print(-1)
return
ans = sum((x - target) // k for x in a)
print(ans)
main()
| [
"arnavsastry@gmail.com"
] | arnavsastry@gmail.com |
89beec6259029120fe9cf824913120a3783b0624 | 202f687add55894f77d88a84f1f7e84605301a0c | /4.scrapy框架/collectips_itemloader$$$/collectips/items.py | f10731bea40faca39daba4f78510340eecfef775 | [] | no_license | SuneastChen/python_crawler_learning | 6f8ef3b8409ad3c0a9ed900ccd89e7180df5a9bd | 6651177ef177231acd9638c39c809bb8f62d5df0 | refs/heads/master | 2020-03-07T22:45:39.515235 | 2018-04-02T13:53:55 | 2018-04-02T13:53:55 | 127,763,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.loader import ItemLoader
from scrapy.loader.processors import MapCompose, TakeFirst
import re
class IPItemLoader(ItemLoader): #继承itemloa... | [
"1050521852@qq.com"
] | 1050521852@qq.com |
dbb210648c4d90f7249728ed0cec7c1512ae0bec | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/stringMethods_20200707100427.py | cea2c06286512296eee3554a7f49dc894e2a3569 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | def array(arr):
newArr = []
for i in range(len(arr)):
b =
print(b)
array(["[6,7,5]","[1,8]"]) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
a69b18877b22eeed94b6afd73ed99375d2f964fb | 43378f262acb3bbf6af8d4c0dc30d149fa5ba302 | /hello/migrations/0004_question_choice4.py | 880832f360284e679052b9a1931b4fdf9fded106 | [] | no_license | c-bata/django-squash-squashed-migratoins | 570d68de550f89ad710968a9c3f9cb353cba91a6 | 292a8d72d6eded7663a7e79ba94e1e3876c1250c | refs/heads/master | 2021-05-18T00:54:29.764796 | 2020-03-29T10:35:13 | 2020-03-29T10:35:16 | 251,034,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 3.1 on 2020-03-29 10:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hello', '0003_question_choice3'),
]
operations = [
migrations.AddField(
model_name='question',
name='choice4',
... | [
"contact@c-bata.link"
] | contact@c-bata.link |
f0439f14153f366ba24c74df955485bb042f9030 | 9cbd523cdedc727f62c887612e8ae2c25c909964 | /tests/UI_test/functional/smoke_test_remote_parallel/test_TID_048.py | 5fc487754f89ef89b5248b32bade46944f6dc4fc | [] | no_license | louiscklaw/QA_test_scripts | 8a71d0bed99fae3b0dac4cd9414b3e34dcf5beed | 58b73594332053272d8dce2c812c93297259c782 | refs/heads/master | 2023-01-27T15:48:29.477848 | 2020-12-06T10:05:19 | 2020-12-06T10:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import os,sys
from pprint import pprint
import random
from time import sleep
sys.path.append(os.path.dirname(__file__))
from path_config import *
from urls import *
from steps import *
from pages.config import *
from jp import *
from urls import *
from setupLocalChrome import *
from test_TID_046 import *
def test... | [
"louiscklaw@gmail.com"
] | louiscklaw@gmail.com |
adb8edcc5d7786f61e95e57ac2b102bbbfebd784 | 3ea99519e25ec1bb605947a94b7a5ceb79b2870a | /modern_python/modernpython/lib/python3.6/site-packages/mypy/test/testinfer.py | 5a1475e15009fe67c361fb7640b73957a433ca8c | [] | no_license | tech-cow/spazzatura | 437c7502a0654a3d3db2fd1e96ce2e3e506243c0 | 45fc0932186d2ef0c5044745a23507a692cfcc26 | refs/heads/master | 2022-09-01T12:01:11.309768 | 2018-11-15T04:32:03 | 2018-11-15T04:32:03 | 130,414,653 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,344 | py | """Test cases for type inference helper functions."""
from typing import List, Optional, Tuple, Union
from mypy.test.helpers import Suite, assert_equal
from mypy.checkexpr import map_actuals_to_formals
from mypy.nodes import ARG_POS, ARG_OPT, ARG_STAR, ARG_STAR2, ARG_NAMED
from mypy.types import AnyType, Tuple... | [
"yuzhoujr@yuzhou-7480.internal.synopsys.com"
] | yuzhoujr@yuzhou-7480.internal.synopsys.com |
bc9f5067a043260d80975c5066c32c9c519df9e1 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/577200_Make_unique_file_name/recipe-577200.py | a59a9b0faba37a4fd185f0bfaaf2d8ab21caa915 | [
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 848 | py | '''
function for making unique non-existent file name
with saving source file extension
'''
import os
import sys
__author__ = 'Denis Barmenkov <denis.barmenkov@gmail.com>'
__source__ = 'http://code.activestate.com/recipes/577200-make-unique-file-name/'
def add_unique_postfix(fn):
if not os.path.exists(fn):
... | [
"betty@qburst.com"
] | betty@qburst.com |
0b186051c425659027a1a7dad9b073ba965873b2 | 7e45c50b01863103d540d156a03437b64b2896b3 | /tests/console/commands/test_check.py | 0df223b7498638f3c2c9eb9fc07ec8bd78c68878 | [
"MIT",
"LGPL-3.0-only",
"LGPL-2.1-only",
"BSD-4-Clause",
"GPL-2.0-only",
"Apache-2.0",
"BSD-2-Clause",
"GPL-3.0-or-later",
"LGPL-2.1-or-later",
"LGPL-3.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"GPL-2.0-or-later",
"GPL-3.0-only"
] | permissive | AhmedRedaAmin/poetry | e7ac5ecc332da13cb9768ca286d5f49aec01750d | 5ba06bb44201cace7461f245e5f6440a168426ab | refs/heads/master | 2020-04-01T02:16:10.826116 | 2018-10-12T15:33:26 | 2018-10-12T15:33:26 | 152,771,840 | 0 | 0 | MIT | 2018-10-12T15:31:10 | 2018-10-12T15:31:09 | null | UTF-8 | Python | false | false | 268 | py | from cleo.testers import CommandTester
def test_about(app):
command = app.find("check")
tester = CommandTester(command)
tester.execute([("command", command.get_name())])
expected = """\
All set!
"""
assert tester.get_display(True) == expected
| [
"sebastien@eustace.io"
] | sebastien@eustace.io |
81cf2206986eae587556c8ed802ef919b41191b3 | 966efb6db04789f795474ee5047c497ce3c8c9dd | /100/q37.py | 03e23cb87cfcad1d7b43088c8295fbcd6d6391c9 | [] | no_license | gitmengzh/100-Python-exercises | 43b52ced1688fc30da61025183bcbc7d9f63446f | 00746148cececfed4beb2cd29a983a382aa419c8 | refs/heads/master | 2020-07-06T08:16:40.539517 | 2019-10-01T13:23:56 | 2019-10-01T13:23:56 | 202,952,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | '''
定义一个函数,生成一个List,List内容为1-20的平方,然后打印List前五个值
'''
def printList5():
l = []
for i in range(1,21):
l.append(i**2)
print(l[:5])
test = printList5()
| [
"mengzh1618@gmail.com"
] | mengzh1618@gmail.com |
3ab390a92b158a2faf4ee829165e0ad9cf072fec | dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0 | /src/main/scala/contest/155/SmallestStringWithSwaps.py | ae3db42c83edd3b2678ee0651eb398bec50107b6 | [] | no_license | joestalker1/leetcode | 8a5cdda17abd33c3eef859732f75d7bec77a9d0e | ae392ddbc7eb56cb814b9e9715043c98a89a6314 | refs/heads/master | 2023-04-13T22:09:54.407864 | 2023-04-09T19:22:54 | 2023-04-09T19:22:54 | 131,803,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | from collections import defaultdict
class Solution:
def smallestStringWithSwaps(self, s, pairs):
if not s:
return None
if len(pairs) == 0:
return s
def find(parent, i):
if parent[i] != i:
p = find(parent, parent[i])
parent[... | [
"stalker.comp@gmail.com"
] | stalker.comp@gmail.com |
34f7f8f4141f68a3303100cff04e36a6121b6fd0 | cc0caf0362909490377a44b08a726dca2d093c4f | /principal_planb.py | a757ef7fb2bf186aca27ade6fb3d85c822c8aaa4 | [] | no_license | stefifm/Testing | bf334f97425ac4463e86e39a5bf97061827214c8 | 4a4cf4f93f050fe12244235774448a46f9a226db | refs/heads/master | 2023-01-04T12:25:16.951844 | 2020-11-03T00:24:13 | 2020-11-03T00:24:13 | 294,291,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | import planb
print("Este es el plan b")
def principal():
n = 16
participantes = []
planb.carga_automatica(participantes)
planb.orden_sort(participantes)
planb.mostrar_participantes(participantes)
#generaciópn de los cruces
print("OCTAVOS\n")
planb.octavos(participantes)
print... | [
"bruerastefania@gmail.com"
] | bruerastefania@gmail.com |
dadac39624c61550b9c4d7a21b0dbee6e168b988 | dd4d1a61ec680a86d4b569490bf2a898ea0d7557 | /appengine/predator/analysis/culprit.py | 5b0046ceb5e8bcbfbe29b14926c7099efe54fc84 | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-infra | f1a68914b47bcbe3cd8a424f43741dd74fedddf4 | 09064105713603f7bf75c772e8354800a1bfa256 | refs/heads/master | 2022-10-29T23:21:46.894543 | 2017-05-16T06:22:50 | 2017-05-16T06:22:50 | 91,423,078 | 1 | 1 | BSD-3-Clause | 2022-10-01T18:48:03 | 2017-05-16T06:23:34 | Python | UTF-8 | Python | false | false | 4,439 | py | # Copyright 2016 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 collections import namedtuple
class Culprit(namedtuple('Culprit',
['project', 'components', 'cls', 'regression_range', 'algorithm'])):
"""The re... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
f1b4f05f3d60bb61c3fb15df319d3bfab9891807 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00002/s318942277.py | e8ba2d4572b2599ea579aebe12436eac026105c3 | [] | 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 | 442 | py | # -*-coding:utf-8-*-
def get_input():
while True:
try:
yield "".join(input())
except EOFError:
break
if __name__=="__main__":
array = list(get_input())
for i in range(len(array)):
temp = array[i].split()
a ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4accc9e2844547831a443a791d21841b2e5915b5 | ba03b99d73886349d66883b8c328b8eff805772d | /307 range sum query - mutable.py | 49e74e5d9b3363ce8e56bcc3cd1106b2f2c1ff0a | [] | no_license | liyi0206/leetcode-python | 38cc33eb74b006e7e6609eda86e1ae8d5e278247 | 2c4a54070b20d2fe33b81d889ad0ad0c6aa5fb5c | refs/heads/master | 2016-09-12T22:54:09.622652 | 2016-05-26T05:20:44 | 2016-05-26T05:20:44 | 59,178,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | class NumArray(object):
def __init__(self, nums):
"""
initialize your data structure here.
:type nums: List[int]
"""
self.nums,self.n =nums,len(nums)
# self.sums is the sume of self value and ++lowbit values.
# ++lowbit would be larger sibling or pare... | [
"ly.protegee@gmail.com"
] | ly.protegee@gmail.com |
edc8f7043c8ab86364b5bdf6be0c590f63897936 | a5f0e7c09c36bb2fc91f95e5f3ec7f95c0ed305e | /cafe_backend/apps/users/migrations/0014_auto_20190713_0401.py | 06098044ac3a7f73d18794b9f487be6e535f1f9f | [] | no_license | ecmascriptguru/cafe_backend | e703047c7f04d68596f76dcbff06828afbf5cc68 | 0c4152692d68e951481b39f0789bc58e94e0d20c | refs/heads/master | 2022-10-26T00:31:50.070430 | 2020-06-18T15:30:02 | 2020-06-18T15:30:02 | 184,465,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # Generated by Django 2.0.9 on 2019-07-12 20:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0013_employee'),
]
operations = [
migrations.AlterModelOptions(
name='table',
options={'ordering': ('user__first_na... | [
"ecmascript.guru@gmail.com"
] | ecmascript.guru@gmail.com |
ea12358f5a23a570db2306e5474ccf2056c99a16 | 86a26119af259e3858cb5e57ea2e41e3b25c5fa7 | /Python Project/Employee_Home.py | 621e7d19f6311f44bdc6037990004706ce2ea09c | [] | no_license | deshmukhshweta/project2 | 747ca7972a7bfdc4aed20dbb4ee3f6d2f009ca83 | 8bf07454d259456dc616e7283c266b35fe7b870d | refs/heads/master | 2020-04-19T09:57:05.541157 | 2019-01-29T09:27:01 | 2019-01-29T09:27:01 | 168,125,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,602 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# GUI module generated by PAGE version 4.13
# In conjunction with Tcl version 8.6
# May 31, 2018 12:17:17 AM
import sys
try:
from Tkinter import *
except ImportError:
from tkinter import *
try:
import ttk
py3 = False
except ImportError:
import ... | [
"123deshmukhshweta@gmail.com"
] | 123deshmukhshweta@gmail.com |
c291ea9fcc40f9a2104f72fda45a772db6fc67c3 | 6fce07f704880861ed472706cce973ff81be9ca4 | /tests/test_threadutils.py | bdb8ac5bf21cd304d9f63fe29c2823f749a52ad5 | [
"MIT"
] | permissive | AbdulSaleh/dialog-probing | 6645d5c2be10dc0342d6f6c7a768e46e4080c068 | 12a04e7ca3363d428aca96e8c2c2ce2ec518a767 | refs/heads/master | 2023-04-08T22:29:13.531668 | 2020-06-17T19:27:49 | 2020-06-17T19:27:49 | 210,482,746 | 9 | 2 | MIT | 2023-03-24T23:29:34 | 2019-09-24T01:14:42 | Python | UTF-8 | Python | false | false | 3,078 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.core.thread_utils import SharedTable
from multiprocessing import Process
import parlai.core.testing_utils as ... | [
"a_saleh@matlaber5.media.mit.edu"
] | a_saleh@matlaber5.media.mit.edu |
4dc6472a0122338c0b83a65c1f1562003a7e74ba | 204db0d292bfe63253f737e6a73c443c0359b629 | /HitAnalyzer/test/draw_clustersize.py | 492ee21a02d8d12bd42b8b20cc2db6eee1db8939 | [] | no_license | gitytakahas/DPGAnalysis-SiPixelTools | 69d6de11974be421086ccb19d6fe760ddec986ae | 9088daece2f85f4fd0f5def51cdb30203f4b3b23 | refs/heads/master | 2021-01-17T08:31:08.047601 | 2017-06-28T14:38:01 | 2017-06-28T14:38:01 | 64,846,554 | 0 | 0 | null | 2016-08-03T13:04:29 | 2016-08-03T13:04:29 | null | UTF-8 | Python | false | false | 3,935 | py | from officialStyle import officialStyle
from ROOT import TFile, TTree, TH2F, TCanvas, gROOT, gStyle, TH1F, TLegend
import copy
gROOT.SetBatch(True)
officialStyle(gStyle)
gStyle.SetOptTitle(0)
def LegendSettings(leg):
leg.SetBorderSize(0)
leg.SetFillColor(10)
leg.SetLineColor(0)
leg.SetFillStyle(0)
... | [
"Yuta.Takahashi@cern.ch"
] | Yuta.Takahashi@cern.ch |
8c54cbf7d9b12f2b8648a69b8b076a0ef55f1036 | 7dcd8ca463f3d0d727ed631a35ef112d38d193f2 | /Python/3. Image Processing/negative.py | f4a0f8d1cfbd8b719dda6bc5ee456fa1302eff0d | [
"MIT"
] | permissive | shoaibrayeen/Data-Science-With-Python-And-R | 03b38da9e8b0ebead34c51efa44f7e5052f773c4 | 2f4f398a2ea414395c4ff04b38c777f96f78bab2 | refs/heads/master | 2021-07-10T23:38:10.627283 | 2020-10-06T05:02:32 | 2020-10-06T05:02:32 | 199,718,898 | 0 | 1 | MIT | 2020-10-06T05:02:33 | 2019-07-30T19:59:58 | Jupyter Notebook | UTF-8 | Python | false | false | 263 | py | import numpy as np
from PIL import Image
img = Image.open("./Image/boat.png")
img_array=np.array(img,dtype=np.float32)
img_array[:,:] =255-img_array[:,:]
img_array = img_array.astype(np.uint8)
img=Image.fromarray(img_array)
img.save("./Image/boatNegative.png")
| [
"noreply@github.com"
] | shoaibrayeen.noreply@github.com |
f17f725e2579c9a17a0f4ca272b528a7a3edb257 | 83830aff551b9f9c13a24d602c26cdc6559f2bd2 | /gozerplugs/shakespear.py | 642132cd7800703c2a784e6a17f02b399c51a8fa | [] | no_license | polichism/my-gozerbot | 8182a826aec731e49d44c595fd1dc7837e811db5 | ea86f2b7713457fc7a73f1227b969b230debda48 | refs/heads/master | 2021-01-17T18:03:23.135742 | 2014-04-04T11:44:28 | 2014-04-04T11:44:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,985 | py | # plugs/shakespear.py
#
#
""" uses the random lib """
__copyright__ = 'this file is in the public domain'
__revision__ = '$Id: shakespeare.py 517 2006-12-21 05:00:00Z deck $'
from gozerbot.generic import handle_exception
from gozerbot.commands import cmnds
from gozerbot.examples import examples
from gozerbot.plughel... | [
"blaxter@gmail.com"
] | blaxter@gmail.com |
163a84077a6b26e6de2ab3e58360644ced3eac16 | 043160352216a7fc21be4c8a44507e00f523bf80 | /test/functional/rpc_spork.py | 1f5f0298165fba056629b95302833155549086b0 | [
"MIT"
] | permissive | odinyblockchain/odinycoin | 5ef2a1bca374230882c91e8c6717bbb8faf889ad | 183751aac9357455913f1d8a415b1dcb04225ee0 | refs/heads/master | 2022-12-18T14:14:02.535216 | 2020-09-20T22:05:14 | 2020-09-20T22:05:14 | 295,208,711 | 0 | 2 | MIT | 2020-09-18T10:33:17 | 2020-09-13T18:06:52 | C++ | UTF-8 | Python | false | false | 2,830 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Odinycoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# -*- coding: utf-8 -*-
from time import sleep
from test_framework.test_framework import OdinycoinTestFramework
... | [
"71228635+odinyblockchain@users.noreply.github.com"
] | 71228635+odinyblockchain@users.noreply.github.com |
5324cccd48635b974ca2c7204c7c9e487799df0a | 6b14d9a64a578239e5612e6098320b61b45c08d9 | /OCT16/02.py | 57cc74270ae7b19782b96a16b7b3c68a44bd1fac | [
"MIT"
] | permissive | Razdeep/PythonSnippets | 498c403140fec33ee2f0dd84801738f1256ee9dd | 76f9313894f511c487a99bc38bdf0fe5e594caf5 | refs/heads/master | 2020-03-26T08:56:23.067022 | 2018-11-26T05:36:36 | 2018-11-26T05:36:36 | 144,726,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # Styling graphs
import matplotlib.pyplot as plt
plt.plot([1,2,3,4],[5,8,7,25],'r--')
# plt.plot([1,2,3,4],[5,8,7,25],'g^') # Shows green triangles
plt.title('Rain in december')
plt.xlabel('Days in december')
plt.ylabel('Inches in rain')
plt.show() | [
"rrajdeeproychowdhury@gmail.com"
] | rrajdeeproychowdhury@gmail.com |
42824fb36a1dc24acbcb8076fba9574ee8f0bf72 | bc047ab30357479f40f2106af46d9e0c0c1a8bb4 | /accounts/migrations/0008_auto_20200811_1457.py | 5335030c4d28fd3badc63dff70c2fb0ccfad61d6 | [] | no_license | kahdichienja/uniminus2 | 10c838b450ce1c3e2f0f5b840cc060e6fa26a418 | d9243f1654432d16697f4f6d4a8206c2a4179541 | refs/heads/master | 2022-11-30T05:03:38.243675 | 2020-08-11T13:55:35 | 2020-08-11T13:55:35 | 285,979,880 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 2.1.7 on 2020-08-11 14:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_personalfileupload'),
]
operations = [
migrations.AlterField(
model_name='personalfileupload',
name... | [
"ago@localhost.localdomain"
] | ago@localhost.localdomain |
d31f9f3dea79d590895bdcac0b013ca328a820d6 | 3a28b1a12d0710c06f6360381ad8be6cf3707907 | /modular_model/triHPC/triHPCThermo/HPCAllTrays37CstmLiqEtlp_px_N2.py | f39a795e60701a5238d3eca02648ee7c6712b6ee | [] | no_license | WheatZhang/DynamicModelling | 6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02 | ea099245135fe73e8c9590502b9c8b87768cb165 | refs/heads/master | 2020-06-15T14:12:50.373047 | 2019-07-05T01:37:06 | 2019-07-05T01:37:06 | 195,319,788 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | def LiqEtlp_px_N2(P,T,x_N2):
x = (P-5.41573658e+02)/2.47804900e-01
y = (T--1.78069279e+02)/7.24480000e-03
z = (x_N2-9.96540601e-01)/9.95332218e-04
output = \
1*-8.06034533e+03
liq_etlp = output*1.00000000e+00+0.00000000e+00
return liq_etlp | [
"1052632241@qq.com"
] | 1052632241@qq.com |
d0fafe1c03d3be10fa89d812b4598501ee240c1a | 1065ec75d9ee668ffd7aafc6a8de912d7c2cee6f | /addons/script.icechannel.extn.extra.uk/plugins/livetv_uk/islam_channel_ltvi.py | 45d34e60e67ec4c94ae5ac0736e202cbe32e6204 | [] | no_license | bopopescu/kodiprofile | 64c067ee766e8a40e5c148b8e8ea367b4879ffc7 | 7e78640a569a7f212a771aab6a4a4d9cb0eecfbe | refs/heads/master | 2021-06-11T17:16:15.498281 | 2016-04-03T06:37:30 | 2016-04-03T06:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | '''
Ice Channel
'''
from entertainment.plugnplay.interfaces import LiveTVIndexer
from entertainment.plugnplay import Plugin
from entertainment import common
class islam_channel(LiveTVIndexer):
implements = [LiveTVIndexer]
display_name = "Islam Channel"
name = "islam_channel"
... | [
"sokasoka@hotmail.com"
] | sokasoka@hotmail.com |
e73fbfaaa91a9301ec2a18d4f2a6130034fe5553 | d5b48163d236ca770be8e687f92192e2971397e8 | /116.py | d7870f37e24c92963d66021b29540135312aafc5 | [] | no_license | Kunal352000/python_program | 191f5d9c82980eb706e11457c2b5af54b0d2ae95 | 7a1c645f9eab87cc45a593955dcb61b35e2ce434 | refs/heads/main | 2023-07-12T19:06:19.121741 | 2021-08-21T11:58:41 | 2021-08-21T11:58:41 | 376,606,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | num=int(input("Enter a number: "))
for i in range(num):
for j in range(num-1-i):
print(" ",end="")
for j in range(num):
print("*",end="")
print()
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
dec76e7957ea062e6fdd0bc4d7e16cd9a404bade | 992d0d5e06813f6dff323e4b528cd39b4cbaa955 | /pytorch入门与实践/Fast-Neural-Style/utils.py | e07c2f6fef99b3c70c5e359c84229fa87699be98 | [] | no_license | happy-luck/pytorch-study | 9997d6b92785df4d6b4b0eb8c8f8ab9ee15bfc2b | 137a7eb0d76ad2bc3e731aade2bfda4586e7d21a | refs/heads/master | 2022-11-17T16:34:02.974645 | 2020-07-16T01:32:33 | 2020-07-16T01:32:33 | 279,233,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,629 | py | # coding:utf8
from itertools import chain
import visdom
import torch as t
import time
import torchvision as tv
import numpy as np
IMAGENET_MEAN = [0.485, 0.456, 0.406]
IMAGENET_STD = [0.229, 0.224, 0.225]
def gram_matrix(y):
'''
输入 b,c,h,w
输出 b,c,c
'''
(b, ch, h, w) = y.size()
features = y.vi... | [
"18813129242@163.com"
] | 18813129242@163.com |
27b844b352de333d17ec109d4f30f57512010ac0 | 8d2a124753905fb0455f624b7c76792c32fac070 | /pytnon-month01/month01-shibw-notes/day10-shibw/exercise01-定义类.py | abe7abecd735db16f3f2a77f7971105114d5bfaa | [] | no_license | Jeremy277/exercise | f38e4f19aae074c804d265f6a1c49709fd2cae15 | a72dd82eb2424e4ae18e2f3e9cc66fc4762ec8fa | refs/heads/master | 2020-07-27T09:14:00.286145 | 2019-09-17T11:31:44 | 2019-09-17T11:31:44 | 209,041,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | #定义 Dog类
#Dog中的数据有 name kinds color
#Dog的行为有
# eat 打印 狗吃xx
# run 打印 狗正在以xxkm/h的速度飞奔
class Dog:
def __init__(self,name,kinds,color):
self.name = name
self.kinds = kinds
self.color = color
def eat(self,food):
print('%s正在吃%s' % (self.name,food))
def run(self,speed):
... | [
"13572093824@163.com"
] | 13572093824@163.com |
02ce301afe155e8d1301e152c047e372786ae63a | 43852c47c9bf8f1d7d54f564a7130bb667df5110 | /python/ray/air/util/check_ingest.py | 79ea645049007a3275126cf71523096461375f9d | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | jon-chuang/ray | 654de3518b77a9b4285ef402053a3db3e341ec94 | adf2b92afcb4688251388838210e18b8721871b9 | refs/heads/master | 2023-05-26T09:04:24.349126 | 2023-02-20T02:33:40 | 2023-02-20T02:33:40 | 206,287,690 | 1 | 1 | Apache-2.0 | 2023-05-20T08:02:24 | 2019-09-04T09:55:00 | Python | UTF-8 | Python | false | false | 7,803 | py | #!/usr/bin/env python
import sys
import time
from typing import Optional
import numpy as np
import ray
from ray.air import session
from ray.air.config import DatasetConfig, ScalingConfig
from ray.data import Dataset, DatasetIterator, Preprocessor
from ray.data.preprocessors import BatchMapper, Chain
from ray.train._... | [
"noreply@github.com"
] | jon-chuang.noreply@github.com |
b73a6050107b0d880b9466a83b8d551cad4b616e | 1cca2891740d5ed6925f1ab0b1ade7ff814ff504 | /vcenter/migrations/0013_auto_20161108_1507.py | f4ad2c4c4c8dfb12d7d7e376945182a65457de56 | [] | no_license | sj741231/stockstar-vsa | bac5dd747e3ccfd4c36067b79ae30b1e88dc4597 | f5877567b6d7a0e3ab9895416ea95d02f3b572a4 | refs/heads/master | 2021-01-24T08:32:42.055321 | 2017-06-05T14:57:49 | 2017-06-12T03:15:55 | 93,385,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-11-08 07:07
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vcenter', '0012_racks'),
]
operations = [
migrations.RemoveField(
model_... | [
"shi.jin@126.com"
] | shi.jin@126.com |
5a921dd7bcd488ff6820ab9bfe93341267a5e720 | 6045075c734d65a3cec63d3ae15f8f9f13836559 | /solutions/0331_Verify_Preorder_Serialization_of_a_Binary_Tree/iter_by_degrees.py | e65ad1f91954b9fd44643c2c6c773ed853e9edd4 | [] | no_license | zh-wang/leetcode | c058470fdf84fb950e3d4f974b27826718942d05 | 6322be072e0f75e2da28b209c1dbb31593e5849f | refs/heads/master | 2021-12-28T02:49:11.964213 | 2021-08-25T06:29:21 | 2021-08-25T06:29:21 | 189,919,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | class Solution:
def isValidSerialization(self, preorder: str) -> bool:
arr = preorder.split(',')
# In a binary tree, if we consider null as leaves, then
# all non-null node provides 2 outdegree and 1 indegree (2 children and 1 parent), except root all null node provides 0 outdegree and 1 ind... | [
"viennakanon@gmail.com"
] | viennakanon@gmail.com |
fc72d5ac87d23dad96d62f98d314106ccd272a48 | 2b56aaec923a2e7939734c6743c934ad960aef38 | /Greedy/2847.py | b043bd8d61bc02bfaaa4f0e73e87d66a2974d15e | [] | no_license | SAE-HUN/Algorithms | 461757fd5167fed14d7b5aca88fe004a5892c91a | aa2cc4d04e506d762706ae62e93400f1b57c82f0 | refs/heads/master | 2023-05-11T22:42:32.125790 | 2021-06-01T05:21:06 | 2021-06-01T05:21:06 | 306,549,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | n = int(input())
scores = [int(input()) for _ in range(n)]
answer = 0
for i in range(n-1, 0, -1):
if scores[i-1]>scores[i]-1:
answer += scores[i-1] - (scores[i] - 1)
scores[i-1] = scores[i] - 1
print(answer)
| [
"noreply@github.com"
] | SAE-HUN.noreply@github.com |
c7cc71d2629e6981c09a205d398e0048180f2f04 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02628/s935095687.py | 13c1c31e7df5d777d0ddb3c50f0327140819f7c9 | [] | 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 | 174 | py | import itertools
[N, K] = [int(i) for i in input().split()]
price = [int(i) for i in input().split()]
price.sort()
sum = 0
for i in range(K):
sum += price[i]
print(sum) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1ce23d141a5c561f7101d4c1db3f247966d83ba3 | 22cec5da2b1fb83dcc9cf7c888f1e2078b05b62e | /flora/cmds/stop.py | 7c8e12aaf6e9946367cbd633d88b76f9ccb049fb | [
"Apache-2.0"
] | permissive | JuEnPeHa/flora-blockchain | 649d351e096e73222ab79759c71e191e42da5d34 | 656b5346752d43edb89d7f58aaf35b1cacc9a366 | refs/heads/main | 2023-07-18T08:52:51.353754 | 2021-09-07T08:13:35 | 2021-09-07T08:13:35 | 399,297,784 | 0 | 0 | Apache-2.0 | 2021-08-24T01:30:45 | 2021-08-24T01:30:44 | null | UTF-8 | Python | false | false | 1,402 | py | import sys
from pathlib import Path
import click
from flora.util.service_groups import all_groups, services_for_groups
async def async_stop(root_path: Path, group: str, stop_daemon: bool) -> int:
from flora.daemon.client import connect_to_daemon_and_validate
daemon = await connect_to_daemon_and_validate(ro... | [
"github@floracoin.farm"
] | github@floracoin.farm |
c5e03d03ec50a0095dff0e4e1b820f5760f7df64 | e121dcc5d23e225891420e730549b9cc7ebe8e88 | /python/lib/direct/test/ModelScreenShot.py | aa59a44301d37bea98c26ab6ca7d651b90d3a4ea | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | PlumpMath/panda3d-3 | 4f4cf7627eddae9b7f30795e0a0657b01fdf670d | 5c0be0e1cd46b422d28d5b81ffb1e8b28c3ac914 | refs/heads/master | 2021-01-25T06:55:36.209044 | 2014-09-29T14:24:53 | 2014-09-29T14:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | import direct
from panda3d.pandac import loadPrcFileData
from panda3d.direct.showbase.DirectObject import DirectObject
from panda3d.direct.directbase.DirectStart import *
from panda3d.pandac import *
import panda3d.direct.gui.DirectGuiGlobals as DGG
from panda3d.direct.gui.DirectGui import *
from panda3d.direct.task i... | [
"ralf.kaestner@gmail.com"
] | ralf.kaestner@gmail.com |
74dc0aa2f64c2ed5f40a01ad6b6f54b7cf178236 | 46563ccc5da11bb4b68bc2b27a40524af4d241b9 | /Dynamic_Routing_Between_Capsules/params.py | c8bc9eb8b09396b18606467f9d60a5aaed6ec2c2 | [
"MIT"
] | permissive | rahul-c1/Implementations-of-Deep-Learning-Models | e7e974b943782cb8b8afc5b6158ffee27f1a2248 | 4c1fe059b7c46c22790f716ca57d51bddc6248ac | refs/heads/master | 2020-03-24T09:58:46.521183 | 2018-01-20T05:22:55 | 2018-01-20T05:22:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | conv1_params = {
'filters': 256,
'kernel_size': 9,
'strides': 1,
'padding': 'valid',
'activation': 'relu'
}
conv2_params = {
'filters': 256,
'kernel_size': 9,
'strides': 2,
'padding': 'valid',
'activation': 'relu',
}
batch_size = 256
input_shape = [28, 28, 1]
primary_capsules_s... | [
"maxpanziyuan@gmail.com"
] | maxpanziyuan@gmail.com |
e4f81b86df0300aaaa88eb3081f241403e987142 | 183bb8e9998a3eeebdc6dd0a5bf77525ef005a1f | /ribbit/ribbit_app/migrations/0008_auto__del_field_bookpasser_content__del_field_bookpasser_location__add.py | 5124b0c9c3937fa7db6e75d1fb8c501b19ae4227 | [] | no_license | gzpgg3x/SEARSHackPresentable | dcc7d3187bc459af5e8c535af8644d5d0fba7b05 | 0a78b6555f6e126506fa4f684a6b1d93b106d69a | refs/heads/master | 2020-05-30T10:39:29.211767 | 2014-06-08T16:08:05 | 2014-06-08T16:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,167 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'bookPasser.content'
db.delete_column(u'ribbit_app_bookp... | [
"gzpgg3x@yahoo.com"
] | gzpgg3x@yahoo.com |
0465cbce511a108a717722c70a4f8a2073edcec1 | 988fc095bc5487fdbb2b293106e012efde4a35d8 | /tests/functional_tests.py | 4335907934dfd8743b63da981ba201b36988ebb1 | [
"MIT"
] | permissive | Nagasaki45/pathtag | d614ea77ab551be8bae22ce21ae5e65603f4a038 | dfd66186959715f71f6ecd583521f0cd03f2f17e | refs/heads/master | 2020-12-20T22:53:37.714411 | 2018-09-11T23:06:49 | 2018-09-11T23:06:49 | 28,537,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | import unittest
import shutil
import os
import tarfile
import subprocess
from mutagen.easyid3 import EasyID3
MATERIALS_DIR = 'tests/materials'
BACKUP = 'backup.tar'
class MainTest(unittest.TestCase):
def setUp(self):
# Backup MATERIALS_DIR
with tarfile.TarFile(BACKUP, 'w') as backup:
... | [
"nagasaki45@gmail.com"
] | nagasaki45@gmail.com |
e055d3f40ff6a4d1d3f8f95db9dc115b493d590d | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/logic/v20190501/list_integration_account_map_content_callback_url.py | 622e2572a913a2f8a5e4fcf62ea045a1208cb715 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 5,729 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
0124697bac9f6283a8e32edd133b7c0657ef6f02 | 1eb0213140ada1c48edc5fb97b439d6556e6c3a9 | /0x0A-python-inheritance/7-base_geometry.py | 06615bc37e1f43fbd3545438200a215ece54b58c | [] | no_license | HeimerR/holbertonschool-higher_level_programming | 53d2a3c536fd9976bb7fea76dd2ecf9a6ba3297e | 892c0f314611c0a30765cf673e8413dbee567a2d | refs/heads/master | 2020-05-18T02:24:11.829328 | 2020-04-30T03:59:04 | 2020-04-30T03:59:04 | 184,112,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | #!/usr/bin/python3
""" Module base geometry
"""
class BaseGeometry:
""" empty class"""
def area(self):
""" area not defined"""
raise Exception('area() is not implemented')
def integer_validator(self, name, value):
"""validates value"""
if type(value) is not int:
... | [
"ing.heimer.rojas@gmail.com"
] | ing.heimer.rojas@gmail.com |
8a5dca801b4ec186f2b749ce1e27347e1b1e1750 | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200912b_python2m6/day11_201121/sample/file_3_open.py | d6381dd6d88b7b7cebd514435788b08f725a6bd2 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
python file I/O
Opening Files
open()
first look
"""
# case 3. open file in specified full path
# different way to represent path in windows system
print("[info] open file in specified full path")
print("[info] opening file_open.txt ...")
f = open("D:/workspace/pycharm201803/ceit4101python/module_8_fileio/file_o... | [
"lada314@gmail.com"
] | lada314@gmail.com |
7cbe4efbda319a44a4a563e56cc6bc8cae7c5f04 | c7967ec500b210513aa0b1f540144c931ca687ac | /알고리즘 스터디/개인공부/TwoPointer/PermutationSummation.py | 576694b4fd00b0f800b32c15f1f8c4361e775e12 | [] | no_license | sunminky/algorythmStudy | 9a88e02c444b10904cebae94170eba456320f8e8 | 2ee1b5cf1f2e5f7ef87b44643210f407c4aa90e2 | refs/heads/master | 2023-08-17T01:49:43.528021 | 2023-08-13T08:11:37 | 2023-08-13T08:11:37 | 225,085,243 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | # https://www.acmicpc.net/problem/2143
import sys
# 누적합 구하기
def accumulation(number):
result = dict()
for i in range(len(number)):
total = 0
for j in range(i, len(number)):
total += number[j]
result[total] = result.get(total, 0) + 1 # 이 부분합이 나올 수 있는 경우의 수를 구함
... | [
"suns1502@gmail.com"
] | suns1502@gmail.com |
a36d671af009a8c76753ff5416319589a3318f3c | 1f08436bab6cd03bcfb257e8e49405cbc265195a | /3_list/Sample/list_ex20.py | a063117240f1387a45dd6d1559b3fcf38182856c | [] | no_license | kuchunbk/PythonBasic | e3ba6322f256d577e37deff09c814c3a374b93b2 | a87135d7a98be8830d30acd750d84bcbf777280b | refs/heads/master | 2020-03-10T04:28:42.947308 | 2018-04-17T04:25:51 | 2018-04-17T04:25:51 | 129,192,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | '''Question:
Write a Python program access the index of a list.
'''
# Python code:
nums = [5, 15, 35, 8, 98]
for num_index, num_val in enumerate(nums):
print(num_index, num_val)
'''Output sample:
0 5 ... | [
"kuchunbk@gmail.com"
] | kuchunbk@gmail.com |
c8feaa8ecfa5607b14bf76c8344255b16073b91b | 51ce07a419abe50f49e7bb6a6c036af291ea2ef5 | /3.Algorithm/04. Stack1/DFS.py | d2435fd628dfe83323c14e92d7e2adee161ae3b2 | [] | no_license | salee1023/TIL | c902869e1359246b6dd926166f5ac9209af7b1aa | 2905bd331e451673cbbe87a19e658510b4fd47da | refs/heads/master | 2023-03-10T09:48:41.377704 | 2021-02-24T10:47:27 | 2021-02-24T10:47:27 | 341,129,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | # 재귀
def dfs(v):
# 방문체크
visited[v] = 1
print(v, end=' ')
# v의 인접한 정점중에서 방문안한 정점을 재귀호출
for w in range(1, V+1):
if G[v][w] == 1 and visited[w] == 0:
dfs(w)
# --------------------------------------------
V, E = map(int, input().split()) # 정점, 간선
temp = list(map(int, input(... | [
"dltmddk1023@gmail.com"
] | dltmddk1023@gmail.com |
0a364178e1a3a1ca5c09b5d161d750af22a4a947 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20180101/get_virtual_network_gateway_advertised_routes.py | b50d1b09c509d3f5dc2c559d307478ea00d98982 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | 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, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
9f935df7a693a88e5ff198c8cdeb82c876498221 | 46404c77e04907225475e9d8be6e0fd33227c0b1 | /max value of exp.py | 97a9e0dd3173d1d935cda977191f6d3427639305 | [] | no_license | govardhananprabhu/DS-task- | 84b46e275406fde2d56c301fd1b425b256b29064 | bf54f3d527f52f61fefc241f955072f5ed9a6558 | refs/heads/master | 2023-01-16T07:41:27.064836 | 2020-11-27T11:52:50 | 2020-11-27T11:52:50 | 272,928,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | """
Given an algebraic expression of the form (x1 + x2 + x3 + . . . + xn) * (y1 + y2 + . . . + ym) and
(n + m) integers. Find the maximum value of the expression using the given
integers.
Consstraint :
n <= 50
m <= 50
-50 <= x1, x2, .. xn <= 50
H 6
T 2000
Tag cisco mathematics
In des
First line contai... | [
"noreply@github.com"
] | govardhananprabhu.noreply@github.com |
0b9eebfc0db17524b69f3646238b25cf55e6c715 | 714a8942a8a761d4ff1aa5cc38f68cd414da295d | /django_restful/wsgi.py | 5f86f0839de9ded1feb6f165af75437128cbd607 | [] | no_license | eliblurr/django-restful | 9e9a1188242439a2486a18a3d6f8dab3f9be4952 | 0fdf688d41ad32a5a63cf34680e6a96c572e5337 | refs/heads/main | 2023-06-04T08:18:25.286212 | 2021-06-23T20:36:39 | 2021-06-23T20:36:39 | 379,537,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for django_restful 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"segbawuel@aiti-kace.com"
] | segbawuel@aiti-kace.com |
3ef7f37ef8d1957487abd9ace0dad6904448428b | edd8ad3dcb6ee9b019c999b712f8ee0c468e2b81 | /Python 300/09. Function/227.py | 42218bd6f628a285d7163e3e929121048f5fcec1 | [] | no_license | narinn-star/Python | 575cba200de35b9edf3832c4e41ccce657075751 | 14eba211cd3a9e9708a30073ba5b31d21d39eeef | refs/heads/master | 2023-05-25T22:57:26.079294 | 2021-06-07T15:29:39 | 2021-06-07T15:29:39 | 331,647,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | #functions _ 함수 정의
def print_mxn(line, n):
num = int(len(line)/n)
for i in range(num + 1):
print(line[i * n : i * n + n])
print_mxn("가나다라마바사아자차", 3) | [
"skfls2618@naver.com"
] | skfls2618@naver.com |
f146ecaa2404f714b15e20fe8f193a13c2fd7061 | c6ed9aa97166d4778b89321b580af80c543bacc9 | /randoms/kthlargest.py | 8869a6258042894d7e85fa2c7e867ca9be147be2 | [] | no_license | bradyz/sandbox | 381bcaf2f3719dee142a00858f7062aeff98d1ab | ff90335b918886d5b5956c6c6546dbfde5e7f5b3 | refs/heads/master | 2021-01-23T09:03:54.697325 | 2018-02-27T20:47:48 | 2018-02-27T20:47:48 | 21,292,856 | 10 | 0 | null | 2015-09-03T16:53:15 | 2014-06-28T00:29:18 | Python | UTF-8 | Python | false | false | 1,059 | py | from random import randrange
def kth(a, k):
def pivot(s, e):
val = a[s]
left = s
right = e
while left < right:
while left < right and a[left] <= val:
left += 1
while a[right] > val:
right -= 1
if left < right:
... | [
"brady.zhou@utexas.edu"
] | brady.zhou@utexas.edu |
dc89937d05510bc33d593090df17b6f5fabdfb40 | ef0d8fd55fbdb526e20d6c2b05e601f1d86587c5 | /frappe/utils/bench_helper.py | b920347f7af0e8d5ce3bb5003349a9293c47e97f | [
"MIT"
] | permissive | indictranstech/v4_frappe | 8976e84c14346196b8895ad6274740dca7fd6504 | dba708c8aa83f503b9f4a264850307111a2b5f19 | refs/heads/master | 2021-09-26T12:26:29.994294 | 2018-10-30T06:09:36 | 2018-10-30T06:09:36 | 103,262,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from __future__ import unicode_literals
import click
import frappe
import importlib
def main():
click.Group(commands=get_app_groups())()
def get_cli_options():
pass
def get_app_groups():
ret = {}
for app in get_apps():
app_group = get_app_group(app)
if app_group:
ret[app] = app_group
return ret
def get_... | [
"sagarshiragawakar@gmail.com"
] | sagarshiragawakar@gmail.com |
263cb4742e4e6ddcd2bb7b0b9ffff06d93e4e06d | 3c6b3b0a92e5a290ba69d0f73af51ac82aff3509 | /assignments/development/chess-top-100-p2.py | a0f31d9eb1b9a23a30afa30fb6798ba02ba27b67 | [] | no_license | sarae17/2019-T-111-PROG | ba6c6db7075acba16bbcd23e4c0d3db6e2bb374f | 017287b3300ec4fe809bfc81fee856ffb17b4800 | refs/heads/master | 2020-09-10T14:36:53.715479 | 2019-11-13T13:41:04 | 2019-11-13T13:41:04 | 221,722,173 | 1 | 0 | null | 2019-11-14T14:54:15 | 2019-11-14T14:54:14 | null | UTF-8 | Python | false | false | 3,092 | py | # The following constants indicate the position of the respective
# fields in the tuple stored as the value for the key in the players dictionary
RANK = 0
COUNTRY = 1
RATING = 2
BYEAR = 3
def open_file(filename):
''' Open the given file name and returns the corresponding file stream, or None if the file cannot be ... | [
"hrafnl@gmail.com"
] | hrafnl@gmail.com |
2aee15990e576ff4d1f8ba52fe34188c61efc469 | 056adbbdfb968486ecc330f913f0de6f51deee33 | /277-find-the-celebrity/find-the-celebrity.py | 5d5b0edbef91abbf8d99870dd9924f1dea1c0472 | [] | no_license | privateHmmmm/leetcode | b84453a1a951cdece2dd629c127da59a4715e078 | cb303e610949e953b689fbed499f5bb0b79c4aea | refs/heads/master | 2021-05-12T06:21:07.727332 | 2018-01-12T08:54:52 | 2018-01-12T08:54:52 | 117,215,642 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | # -*- coding:utf-8 -*-
#
# Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is that all the other n - 1 people know him/her but he/she does not know any of them.
#
#
#
# Now you want to find out who the celebrity is or ver... | [
"hyan90@ucsc.edu"
] | hyan90@ucsc.edu |
3190629752516f8a00989529c3e5b4122ecccdc3 | c2c813717d1ab5df2e912d510595e71eb26d505a | /mineralization/clean code/test_M2-M2_convert.py | c9e69fda0456cdcb52c1b39fb8a98d84aba9b61d | [] | no_license | danielrgreen/toothmin | 7dfaa17dea34c6b42b8196652fb0d1ebcaf4b798 | 307d675225c69340745454ba220df1a5c4089d7a | refs/heads/master | 2020-12-24T16:34:07.595761 | 2017-11-08T19:07:15 | 2017-11-08T19:07:15 | 13,531,025 | 0 | 0 | null | 2014-07-25T19:47:58 | 2013-10-12T23:44:17 | Python | UTF-8 | Python | false | false | 5,230 | py | # Daniel Green, Gregory Green, 2014
# drgreen@fas.harvard.edu
# Human Evolutionary Biology
# Center for Astrophysics
# Harvard University
#
# Mineralization Model Re-Size:
# this code takes a larger mineralization model
# and produces images demonstrating mineral density
# increase over time, total density over time, o... | [
"drgreen@fas.harvard.edu"
] | drgreen@fas.harvard.edu |
6eae2990fa0e566303822d2384af4be325e85c9e | 8d49df8fd04ef5cc5123b956470ab70344d39cc7 | /crash_course/ch17/python_repos.py | cb63fa657aecd488a86f9c05b5e7f4f98cea46e5 | [
"BSD-3-Clause"
] | permissive | dantin/python-by-example | 314c1d97bb527f65e5ada59ee1a72d6df4d881b3 | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | refs/heads/master | 2022-12-10T04:49:52.771288 | 2019-03-05T03:41:02 | 2019-03-05T03:41:02 | 143,107,516 | 0 | 0 | BSD-3-Clause | 2022-12-08T02:47:35 | 2018-08-01T05:21:53 | Python | UTF-8 | Python | false | false | 1,487 | py | # -*- coding: utf-8 -*-
import pygal
import requests
from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS
# Make an API call and store the response.
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
r = requests.get(url)
print('Status code:', r.status_code)
# Store A... | [
"noreply@github.com"
] | dantin.noreply@github.com |
fa07e2b4fabebab106934800e1c21dbd1ebddb1a | abfa0fcab2bc9a9c3cccbc3a8142cdd4b2a66ee9 | /251-Flatten 2D Vector.py | f488e83697174a77d26799a5b6cad491014a04f2 | [] | no_license | JinnieJJ/leetcode | 20e8ccf3f8919028c53e0f0db86bcc2fbc7b6272 | 26c6ee936cdc1914dc3598c5dc74df64fa7960a1 | refs/heads/master | 2021-04-15T09:18:08.450426 | 2021-03-06T01:53:27 | 2021-03-06T01:53:27 | 126,275,814 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | class Vector2D(object):
def __init__(self, vec2d):
"""
Initialize your data structure here.
:type vec2d: List[List[int]]
"""
self.stack = vec2d
self.i = 0
self.j = -1
def next(self):
"""
:rtype: int
"""
return self.stack[s... | [
"noreply@github.com"
] | JinnieJJ.noreply@github.com |
b9462913cf8d146f69d2293389e30e4c52a4d3dc | 8e0f89612fb278c07cd871ea29685917caec4e0d | /second_trik_bubble_short.py | a3f219a8bac5489cd00249ab9006136a0bb42ad7 | [] | no_license | amritat123/list_Questions | 169836e87863f1d97776a9f9da0dd14e0512ac8a | d98982fd16a2165d7fd4bea8c89014897a1a0f72 | refs/heads/main | 2023-06-20T06:35:41.533536 | 2021-07-10T07:52:04 | 2021-07-10T07:52:04 | 369,066,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | num=[10,80,50,40,30,20]
l=len(num)
i=0
while i<l:
j=0
while j<i:
if num[i]>num[j]:
pass
j=j+1
i+=1
print(num[-j]) this is buble sort")) | [
"you@example.com"
] | you@example.com |
3671cea80cef5e56d1c8b1e9baab67b8c3992441 | a6803cfd1fad3e8ae7c5f6ee8a34302516f4f3ec | /640_extent/resnet_extent640_4layer_dropout25.py | 611f2d6ffd305f1d41ea5b6d72839634ffaf81d1 | [] | no_license | LasseGoransson/bachelor-code | 906ae4bbd22f6bb73b4727b62268115f186d922a | 016af73719792252bae58b11a2a43a674109abd7 | refs/heads/master | 2022-08-24T11:59:56.017903 | 2020-05-26T08:22:28 | 2020-05-26T08:22:28 | 238,145,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,002 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import neptune
import tensorflow as tf
import tensorflow.keras as keras
from tensorflow.keras.callbacks import Callback
from tensorflow.keras.models import Sequential
from tensorflow.keras import regularizers
from tensorflow.keras.layers... | [
"you@example.com"
] | you@example.com |
fd161207e0b369b7d7a6b1809a4cab6f575b57a7 | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sudo/settings.py | 82c6025fc5de974d3bcce10c3ee45c17c23f942a | [
"Apache-2.0",
"BUSL-1.1",
"BSD-3-Clause"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 1,881 | py | """
sudo.settings
~~~~~~~~~~~~~
:copyright: (c) 2020 by Matt Robenolt.
:license: BSD, see LICENSE for more details.
"""
from django.conf import settings
# Default url to be redirected to after elevating permissions
REDIRECT_URL = getattr(settings, "SUDO_REDIRECT_URL", "/")
# The querystring argument to be used for r... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
65b1050ec71da8aaaec7459c66e049e59bb12264 | b007d88e6726452ffa8fe80300614f311ae5b318 | /LeetCode/monthly_challenges/2021/march/27_palindrome_substring_count.py | 8d68e0b1d81402b18b72f054addcaa1466345fa8 | [] | no_license | jinurajan/Datastructures | ec332b12b8395f42cb769e771da3642f25ba7e7f | 647fea5d2c8122468a1c018c6829b1c08717d86a | refs/heads/master | 2023-07-06T14:42:55.168795 | 2023-07-04T13:23:22 | 2023-07-04T13:23:22 | 76,943,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """
Palindromic Substrings
Given a string, your task is to count how many palindromic substrings in this string.
The substrings with different start indexes or end indexes are counted as different substrings even they consist of same characters.
Example 1:
Input: "abc"
Output: 3
Explanation: Three palindromic strin... | [
"jinu.p.r@gmail.com"
] | jinu.p.r@gmail.com |
ac8191849d0491fd40e042225c0b9272cab1af55 | 1af5bbc95a39c505897be519841e02f4ebb0e4f9 | /jtyoui/neuralNetwork/paddle/ernie/run_msra.py | f0b5e8399e4e33de8a7b94c7348cda4d62c0c986 | [
"MIT"
] | permissive | BarryZM/Jtyoui | 037868f7211ee07ddbd4c9c5c3382e290c67fd25 | 08609671237bd5d83d98e1fa796d32ddfc92c274 | refs/heads/master | 2020-09-12T12:10:24.577574 | 2019-11-16T13:52:18 | 2019-11-16T13:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,661 | py | #!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time : 2019/4/11 11:44
# @Author: Jtyoui@qq.com
from jtyoui.neuralNetwork.paddle.ernie.transformer_encoder import encoder, pre_process_layer
from jtyoui.neuralNetwork.paddle.ernie.vocab import vocal
import os
import numpy as np
from paddle import fluid
ERNIE_MODEL_PARAM... | [
"jtyoui@qq.com"
] | jtyoui@qq.com |
d26161caf55999dd250bc6d91896d5ba2425d3d6 | 09912a852e0e20d6a475ef904724f80072a68359 | /eds/FrontEnd/server/openmtc-ngsi/lib/futile/string/__init__.py | bb3f869e1ce8737c0fb47dcff6b960676b61f2db | [
"Apache-2.0"
] | permissive | elastest/elastest-device-emulator-service | 034aa19438383df0975bf86d49e231342d63002f | f512355c5fde6bf027d23558e256b96e2296e0f2 | refs/heads/master | 2021-03-09T15:13:30.676138 | 2020-01-13T12:02:02 | 2020-01-13T12:02:02 | 91,440,225 | 3 | 9 | Apache-2.0 | 2018-12-03T14:59:27 | 2017-05-16T09:26:10 | Python | UTF-8 | Python | false | false | 414 | py | import string
letters_digits_underscore = string.letters + string.digits + "_"
class InvalidIdentifier(ValueError):
pass
def is_identifier(s):
if not s or s[0] not in string.letters:
return False
for c in s:
if c not in letters_digits_underscore:
return False
return Tr... | [
"sro"
] | sro |
d500b52694b7a8b3507cac32ae78b4c9b63e125c | 21e7753732296bfdfb6dd9a9b58c7c6b8d90a1e5 | /ArraysAndStrings/zSearch/zSearch_test.py | 8e6103cc3afa695d7c5b2498d27d8054250359c9 | [] | no_license | rongfeng-china/python-algorithms-and-data-structures | eb8514b44d7ff97dd7c4deda2d8ea888a5aa8d04 | a69241bb7b684bc7d00acdd46c2fc214f7b61887 | refs/heads/master | 2020-03-13T09:08:13.375870 | 2015-12-11T07:37:30 | 2015-12-11T07:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from zSearch import search
import pytest
def test_zSearch():
string = 'baabaa'
pattern = 'aab'
assert(search(string, pattern) == 1)
| [
"prathamt@outlook.com"
] | prathamt@outlook.com |
1ca9d2844fd7f25bef3d7f66f59a24fc318cab89 | 8da9d3c3e769ead17f5ad4a4cba6fb3e84a9e340 | /src/chila/codexGtk/base/app/connectors/gen/ConnectionPerformer.py | a1ae9d34245a5cb3b3994f97850b732c8cbcaa19 | [] | no_license | blockspacer/chila | 6884a540fafa73db37f2bf0117410c33044adbcf | b95290725b54696f7cefc1c430582f90542b1dec | refs/heads/master | 2021-06-05T10:22:53.536352 | 2016-08-24T15:07:49 | 2016-08-24T15:07:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | #!/usr/bin/env python
connInstanceSeq = [ ['Application', 'base.application'],
['MainWindow', 'base.mainWindow'],
['FileChooser', 'base.fileChooser.open'],
['FileChooser', 'base.fileChooser.saveAs'],
['ActionExecuter', 'base.actionExecuter... | [
"chilabot@gmail.com"
] | chilabot@gmail.com |
1d03ea638ca2af8b958398f4ea023c74b7a6fa67 | dfb6a80dda5882a1c2be87b0b6e1e7a87a7b4c20 | /test/test_task_status.py | 5a10bfb8adbc5c54b1f995ceca7541743c5b7690 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | artikcloud/artikcloud-python | a090201bea9fadbdf5dd57d94d9085b03b34f927 | c5489b2fca27fd9a8bcea99f309e02cb690dd349 | refs/heads/master | 2020-12-26T03:33:00.657575 | 2017-12-28T20:40:05 | 2017-12-28T20:40:05 | 55,102,598 | 13 | 11 | null | 2017-03-18T03:22:58 | 2016-03-30T22:38:07 | Python | UTF-8 | Python | false | false | 793 | py | # coding: utf-8
"""
ARTIK Cloud API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sy... | [
"jswattonjue@gmail.com"
] | jswattonjue@gmail.com |
548e856a0fa3281825d8b21721b32cb264401c73 | af3ff734866bca30f1821976649d197457f6f66a | /corpus_builder/spiders/newspaper/bhorerkagoj.py | 6f54a1479df963016770b2dd2f87afbaa691e9b6 | [
"MIT"
] | permissive | anwar03/corpus-builder | e69b26e3985ffdc27970117825069b9df2e4387e | 2c3e0d39a0a3dabacda0335d18779a0647bad118 | refs/heads/master | 2022-12-08T21:31:16.051904 | 2020-09-01T08:35:14 | 2020-09-01T08:35:14 | 280,804,773 | 0 | 0 | null | 2020-07-19T06:15:28 | 2020-07-19T06:15:27 | null | UTF-8 | Python | false | false | 1,897 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from corpus_builder.items import TextEntry
from corpus_builder.templates.spider import CommonSpider
class BhorerkagojSpider(CommonSpider):
name = 'bhorerkagoj'
allowed_domains = ... | [
"aniruddha@adhikary.net"
] | aniruddha@adhikary.net |
35715b56113b406fe9d97f7c6d4013cdd75747a5 | 6c2dbc8d4e536220fb3b1cc72aa8104aea8b0698 | /aiogram/methods/copy_message.py | b707580e2d3e903bc6c6470534da52b4c04b5823 | [
"MIT"
] | permissive | aiogram/aiogram | f8f98a0beb63bd4d93ea810638d5792569bf354b | 04bd0c9e7c5421c060183b90d515050f41377bc1 | refs/heads/dev-3.x | 2023-08-30T21:20:13.018174 | 2023-08-28T23:01:54 | 2023-08-28T23:01:54 | 111,210,856 | 4,287 | 1,250 | MIT | 2023-09-10T21:34:03 | 2017-11-18T14:11:13 | Python | UTF-8 | Python | false | false | 5,003 | py | from __future__ import annotations
from typing import TYPE_CHECKING, Any, List, Optional, Union
from ..types import (
UNSET_PARSE_MODE,
ForceReply,
InlineKeyboardMarkup,
MessageEntity,
MessageId,
ReplyKeyboardMarkup,
ReplyKeyboardRemove,
)
from ..types.base import UNSET_PROTECT_CONTENT
fro... | [
"noreply@github.com"
] | aiogram.noreply@github.com |
34f4866b56d43fe79f5e293b9d8e3990e176d8a2 | c3015c988450974e1ab5ea71eac4baf921d9bde7 | /Day_10/2_combination_sum_II.py | fba8d99e8b244e5f2dae28c6bd98d51c8253cc1b | [] | no_license | anoubhav/30-Day-SDE-Challenge | ce758c450e32d0c353e7ba00aaaf37771fe69d32 | 175edd6aba8a8b45482f485dddfafa43c267246c | refs/heads/master | 2023-01-20T09:54:26.685272 | 2020-11-23T18:39:40 | 2020-11-23T18:39:40 | 286,107,830 | 3 | 2 | null | 2020-10-01T16:51:49 | 2020-08-08T19:35:50 | Python | UTF-8 | Python | false | false | 1,301 | py | # Q: https://leetcode.com/problems/combination-sum-ii/
def combSumBackTrackDFS(candidates, target):
# Time complexity: O(2 ^ N), where N is length of candidate. Each element in candidate can be included or not.
ans = []
candidates.sort() # as duplicates are allowed in candidates
n = len(candidates... | [
"anoubhav.agarwaal@gmail.com"
] | anoubhav.agarwaal@gmail.com |
13b0b204500bf8394736ff1df09efa7565a20da4 | af55d33a21cda3e3b9fe10224105eef9f97ad8ec | /saseumn/util.py | 864b43487ac5e322bf4c6226fc1b59b7603e91b7 | [
"MIT"
] | permissive | saseumn/website | 7a06a4a6abafe7da0c5afb0fc4ba2226ab7ce0d7 | 34790dc7db0f7bbb1736761c5738e4d74066f518 | refs/heads/master | 2021-01-01T17:24:49.013633 | 2019-04-03T18:06:32 | 2019-04-03T18:06:32 | 98,065,352 | 3 | 1 | MIT | 2019-03-30T23:12:10 | 2017-07-23T00:26:26 | HTML | UTF-8 | Python | false | false | 2,246 | py | import logging
import random
import re
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from functools import wraps
import hashlib
from urllib.parse import urljoin, urlparse
from flask import abort, flash, redirect, request, url_for
from flask_login import current_user... | [
"failed.down@gmail.com"
] | failed.down@gmail.com |
e50d06dfd3630d296a367aa92bf4288a9c9d0649 | 2a2e503746bd2118047d830a3c2b1910ea7a7b0a | /第七章/1.py | 5efb312df1717a83226bf2a913c2d4fd5afedf0a | [] | no_license | hc973591409/python-auto | dabd1bfae7a5f24b49e25bd855ef8456494aa2b8 | c4182d81693ea93d27965c261ad7dffce2cd180a | refs/heads/master | 2020-04-01T10:53:23.490608 | 2018-10-16T12:58:30 | 2018-10-16T12:58:30 | 153,136,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | ?匹配零次或一次前面的分组。可以关闭贪婪模式
*匹配零次或多次前面的分组。
+匹配一次或多次前面的分组。
{n}匹配 n 次前面的分组。
{n,}匹配 n 次或更多前面的分组。
{,m}匹配零次到 m 次前面的分组。
{n,m}匹配至少 n 次、至多 m 次前面的分组。
{n,m}?或*?或+?对前面的分组进行非贪心匹配。
^spam 意味着字符串必须以 spam 开始。
spam$意味着字符串必须以 spam 结束。
.匹配所有字符,换行符除外。
\d、 \w 和\s 分别匹配数字、单词和空格。
\D、 \W 和\S 分别匹配出数字、单词和空格外的所有字符。
[abc]匹配方... | [
"973591409@qq.com"
] | 973591409@qq.com |
2b8ae9922a31196bcf079263540885dd6b9a5baf | c440ae324c8d5487679b066b62e64176487b4f6a | /mysite/mysite/views.py | 19b9b86888396084e221b42691a1a5db89fabcd3 | [] | no_license | gangyou/python_execrise | d19eef8acf9e6565e56b27204184ca018d0e7712 | 32afdd9b45a0ecc6c966471bda0d3e03ac632aea | refs/heads/master | 2021-01-23T05:35:21.659681 | 2014-02-20T01:24:26 | 2014-02-20T01:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | from django.http import HttpResponse
from django.shortcuts import render_to_response
import datetime
import MySQLdb
def hello(request):
return HttpResponse("Hello World")
def current_datetime(request):
now = datetime.datetime.now()
return render_to_response('dateapp/current_datetime.html', {'current_date': n... | [
"gangyou@gmail.com"
] | gangyou@gmail.com |
cef1ccebbe861a3c2822fb09619b360df1476b15 | 0af55951ccc6da45001bfdc80dad6a9607334849 | /pyvko/aspects/albums.py | d7b7e36da7beb53194a68a3763e99967e169a589 | [
"MIT"
] | permissive | djachenko/pyvko | a1e73095aaa88abc1786f3a1192b3b8ec9dcf85e | 4d2534bd392d073c9ade0ed7c51d021b1d8f6426 | refs/heads/master | 2022-11-14T05:46:30.038235 | 2022-10-08T15:05:31 | 2022-10-08T15:05:31 | 201,685,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | from abc import abstractmethod, ABC
from pathlib import Path
from typing import Dict, List
from vk import API
from pyvko.api_based import ApiMixin, ApiBased
from pyvko.attachment.attachment import Attachment
from pyvko.attachment.photo import Photo
from pyvko.shared.photos_uploader import AlbumPhotoUploader
from pyvk... | [
"i.s.djachenko@gmail.com"
] | i.s.djachenko@gmail.com |
81ae7d5d9cb2b61b86e720254a4097c66638524c | 72a58c62d62210e853ef09fdee65bf6ffb8972bd | /src/lib/telegram/utils/webhookhandler.py | 04fc127aaa8840233bc1901e805cff440e5c8e26 | [
"MIT"
] | permissive | thonkify/thonkify | 93ade2489f20fb80c5e8e27fe67b9b231ada62bd | 2cb4493d796746cb46c8519a100ef3ef128a761a | refs/heads/master | 2023-09-01T00:03:10.398583 | 2018-03-16T09:18:24 | 2018-03-16T09:18:24 | 99,354,595 | 17 | 3 | MIT | 2023-09-05T02:27:42 | 2017-08-04T15:10:50 | Python | UTF-8 | Python | false | false | 4,111 | py | import logging
from telegram import Update
from future.utils import bytes_to_native_str
from threading import Lock
try:
import ujson as json
except ImportError:
import json
try:
import BaseHTTPServer
except ImportError:
import http.server as BaseHTTPServer
logging.getLogger(__name__).addHandler(loggi... | [
"david.dellsperger@gmail.com"
] | david.dellsperger@gmail.com |
ba0dd254252f4869fbf6ee211fed3184068abb40 | 78ef0d7736075ee33ac4230f47c078bbf2b0e014 | /news/tests/factories.py | 260f2c6c40c3bea038e82e97e4b5815de433bef0 | [
"Apache-2.0"
] | permissive | PyAr/pyarweb | e22e9350bf107329e5a79c2368fb182958a134d2 | 5f88d1ea0cea9bd67547b70dc2c8bbaa3b8b9d03 | refs/heads/master | 2023-08-31T10:24:53.220031 | 2023-08-29T16:21:57 | 2023-08-29T16:21:57 | 17,032,696 | 64 | 108 | Apache-2.0 | 2023-09-07T04:02:53 | 2014-02-20T19:28:31 | Python | UTF-8 | Python | false | false | 757 | py | from factory import SubFactory, Sequence, post_generation
from factory.django import DjangoModelFactory
from events.tests.factories import UserFactory
from news.models import NewsArticle
class NewsArticleFactory(DjangoModelFactory):
class Meta:
model = NewsArticle
owner = SubFactory(UserFactory)
... | [
"noreply@github.com"
] | PyAr.noreply@github.com |
bdb367c22ca5a5d0cbfd7aeadad6fc5d05cd73de | 38d2ae7fd3ff660704bfeef51087454e6a52191e | /python/prob433/single/prob433.py | 21ef79f73b7c23492a384f457270093fff40d8f0 | [] | no_license | afraenkel/project-euler | 59e8083d4ab3931957e86231636c19ffbc7153d1 | 7db1869f77ca5e5c18f0537b814df2da8175b288 | refs/heads/master | 2020-04-15T17:30:06.586563 | 2016-08-29T22:38:02 | 2016-08-29T22:38:02 | 40,340,384 | 0 | 0 | null | 2015-11-01T09:10:56 | 2015-08-07T04:03:19 | C | UTF-8 | Python | false | false | 1,217 | py |
import itertools as it
# Let E(x0, y0) be the number of steps it takes to determine
# the greatest common divisor of x0 and y0 with Euclid's algorithm.
# Define S(N) as the sum of E(x,y) for 1 ≤ x,y ≤ N.
# We have S(1) = 1, S(10) = 221 and S(100) = 39826.
# Find S(5·10^6).
def E(a, b):
k = 0
while b:
... | [
"aaron.fraenkel@gmail.com"
] | aaron.fraenkel@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.