blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8f79e485a62acd559aacca26284916a6d7816cc | 30575ea2c63b40f5c578acc3dd3aa306c539f0b8 | /dialog/schema/factories/conditions/results_count.py | e13a9bbe9dd13e2689486c3cb6a17fd639f0ae58 | [] | no_license | robdefeo/dialog | 87b8cff9b48fd6980ab7ad167823de38a40c91bb | 1db84ca439d226e9d9222d76d825b6c92f56edd8 | refs/heads/master | 2021-05-30T11:39:58.053586 | 2016-02-07T22:22:55 | 2016-02-07T22:22:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | from dialog.elements import Condition
from dialog.schema.factories.variables import NAME_RESULTS_COUNT
class ResultsCountConditions:
@staticmethod
def equals_zero():
return Condition(name=NAME_RESULTS_COUNT, operator="EQUALS", root_text="0")
@staticmethod
def less_than(value):
return ... | [
"robertodefeo@hotmail.com"
] | robertodefeo@hotmail.com |
63bfbaf1cc2e5f3abf32344a9ebfe404aa6104e6 | 5bf4a43469b8f8ddeb924a1a7a1073a804151fef | /InputGUI/VideoPlayer.py | 8b4c11b2c13e174d2e23ae68bf7e7e89f2d82eb9 | [] | no_license | MSauerM/CVFouldetection | b52eee085a12630a8f32452edf6f6d86ec48b7d3 | 15d4fcbb1826d7fb9bb640b10981599fef627903 | refs/heads/master | 2023-07-25T14:41:00.179637 | 2021-09-01T20:53:56 | 2021-09-01T20:53:56 | 357,150,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | import sys
from PyQt5.QtCore import QDir, Qt, QUrl
from PyQt5.QtMultimedia import QMediaPlayer, QMediaContent
from PyQt5.QtMultimediaWidgets import QVideoWidget
from PyQt5.QtWidgets import QMainWindow, QStyle, QPushButton, QSlider, QWidget, QHBoxLayout, QVBoxLayout
'''angelehnt an https://pythonprogramminglanguage.co... | [
"matthias.sauer97@gmx.net"
] | matthias.sauer97@gmx.net |
12484dd307d23b9f54f7be7010d4772395a2d8c2 | 97118a484b20e188e6469fa8652f2a20f159745d | /haizhicommon/hzlib/api_zhidao_0627.py | cb9f6bf13b44a8fd9bfac2d4cc2e0b67124c4da8 | [] | no_license | Justinyj/ruyiwebcrawl | 7cf7805d2d1b4a6c3fc7341ab47a2aba096a5323 | 6f7205b00f1a105f4505cf4ee571f2c53762dc3e | refs/heads/master | 2020-07-13T07:24:23.531659 | 2016-11-16T02:18:02 | 2016-11-16T02:18:02 | 73,888,981 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 26,576 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import collections
import codecs
import datetime
import json
import re
import time
import random
import urllib
import difflib
#import distance
import libfile
from parsers.zhidao_parser import parse_search_json_v0615
def getTheFile(filename):
retur... | [
"lidingpku@gmail.com"
] | lidingpku@gmail.com |
e0fab741660cd79a9bb39662c41807ef1d654d98 | 168978c0d4e33f9a2e614c51e77a75cd6393def8 | /blog/migrations/0002_comment.py | 153650079fc199576b2a749ee91fe89c86e6be33 | [] | no_license | Faisal-Zamir/Online_Course | cbb548a9c98ba24c907be584dd2aa418235bd8a2 | 73a3c5f84af68acafc85d6762f28858900c688ef | refs/heads/master | 2022-12-06T08:32:45.940898 | 2020-08-24T03:15:19 | 2020-08-24T03:15:19 | 289,815,942 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | # Generated by Django 3.0.7 on 2020-08-23 08:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Comment',
fi... | [
"Jafriweb@gmail.com"
] | Jafriweb@gmail.com |
fd03335e59e081fdbdaab6e2a3b46cb34f7afd28 | 0903058aeac42ae40371f5a31978df8fdc838162 | /feature_engine/creation/mathematical_combination.py | fda42a6dc8c184102a96825077b8f9d93a5e2a87 | [
"BSD-3-Clause"
] | permissive | vasusuren/feature_engine | 5f852c229153dc6a5a2e4f7787152b1aa4c2ae6f | 24b8cbdc0aea1e8c266b805947f38e9f02369d69 | refs/heads/master | 2023-04-10T03:09:47.328514 | 2021-04-12T16:16:47 | 2021-04-12T16:16:47 | 358,562,154 | 0 | 0 | BSD-3-Clause | 2021-06-10T13:14:48 | 2021-04-16T10:28:45 | null | UTF-8 | Python | false | false | 10,885 | py | from typing import List, Optional, Union
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.utils.validation import check_is_fitted
from feature_engine.dataframe_checks import (
_check_contains_na,
_check_input_matches_training_df,
_is_dataframe,
)
from feature_engin... | [
"noreply@github.com"
] | vasusuren.noreply@github.com |
877389eadf5431f86cce9536338e7780b5b6f092 | 090324db0c04d8c30ad6688547cfea47858bf3af | /tests/test_sokorule.py | d0e02c22a7085d11f93f4eebbaa8548dce508f8b | [] | no_license | fidlej/sokobot | b82c4c36d73e224d0d0e1635021ca04485da589e | d3d04753a5043e6a22dafd132fa633d8bc66b9ea | refs/heads/master | 2021-01-21T13:14:29.523501 | 2011-06-12T07:34:14 | 2011-06-12T07:34:14 | 32,650,745 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py |
from nose.tools import assert_equal
from soko.struct.rules.sokorule import PushRule, SokobanGoalRule
from soko.struct import modeling
def test_get_children():
rule = PushRule()
s = (
"# #",
"#@. #",
" $ #",
" #",
"#####",
)
us... | [
"ivo@danihelka.net"
] | ivo@danihelka.net |
68d9ab65613c09fa8f9fb2cc9c777da8f5849f98 | bea556733142d4a41562f4c9e0d26418780f244e | /tools/cef_parser.py | d624358ad9ecb90298be67f31df591c9d7a548fa | [
"BSD-3-Clause"
] | permissive | EricTop3/cef | fd48f706b27a51951b830a6673be10a9e63030c5 | e83d8d6a131ad39b98c97c945ccf77bcd723378f | refs/heads/master | 2023-09-04T00:11:52.720554 | 2021-11-09T19:21:58 | 2021-11-09T19:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,664 | py | # Copyright (c) 2011 The Chromium Embedded Framework 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 __future__ import absolute_import
from date_util import *
from file_util import *
import os
import re
import shutil
import string... | [
"magreenblatt@gmail.com"
] | magreenblatt@gmail.com |
85670d26e24b6401659b0d9ff893326cd87d1fd6 | fd8024aa9d0995caf60b05ee8249340dda49479e | /dynamite-remote/dynamite_remote/utilities.py | 3d87506adedf349009df9400e77e7f9f09be2746 | [] | no_license | DynamiteAI/utilities | d8c5088aeea8d6e4cbc5f1656b1374362f6bd571 | 5cbfebd92b6376db20708d1363079d0974f6a029 | refs/heads/master | 2023-08-11T17:17:28.453094 | 2021-10-01T20:25:09 | 2021-10-01T20:25:09 | 358,475,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | import os
import tarfile
import subprocess
from typing import Optional, Tuple, Union
USER_HOME = os.environ.get("HOME")
LOCK_PATH = f'{USER_HOME}/.dynamite_remote/locks'
REMOTE_SSH_USER = 'dynamite-remote'
class NodeLocked(Exception):
"""
Thrown a remote node is already running a command
"""
def __... | [
"jamin@dynamite.ai"
] | jamin@dynamite.ai |
e1655716d0d948d2cb64544b273a2246f9206b96 | a239382d2752cb9d04979c1eebfbfb46bd11329a | /face_detection_project_.py | 996ac0c233f83db38ccc52cd44fec7b76207c98f | [] | no_license | Gurwinder-Kaur98/facial-recognition-system-project | c15988257ffbb563f18e50f0ec2bc6886a452c89 | fa660ab7dea2cb8162a1485d98c7aef2c9fb6378 | refs/heads/main | 2023-03-23T15:29:11.755162 | 2021-03-19T09:20:53 | 2021-03-19T09:20:53 | 349,356,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,459 | py | '''SINCE DATABASE IS GIVING US QUICK ACCESS TO PICTURES AND GETTING DATA IS MUCH EASIER IN DATABASE THAN LISTS
THAT'S WHY WE ARE USING MYSQL DATABSE TO STORE USERS DATA LIKE IMAGES,NAME,ID AND ATTENDENCE DATA'''
import mysql.connector as sql
import os
import cv2
import numpy as np
from datetime import da... | [
"noreply@github.com"
] | Gurwinder-Kaur98.noreply@github.com |
bcd0cf676cbc9d4bdeeca3cf67c6ecefb10024d2 | 4f12100a5f1d99a67e2119724b4f23bd54e4df3b | /sistemaDePersonasWS/sistemaDePersonasWS/sistemaDePersonasWS/wsgi.py | 06543e622952e5c6f424bb3010f5f01e611bf982 | [] | no_license | javierperini/SistemaDePersonas | d6adc21528fd057a1a6580008589b146f27446f0 | 65537e03dd088117901eb470e7a1dbf3046c2bcf | refs/heads/master | 2020-03-16T13:06:46.727122 | 2018-05-10T03:37:16 | 2018-05-13T23:41:57 | 132,681,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | """
WSGI config for sistemaDePersonasWS 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"javierperini90@gmail.com"
] | javierperini90@gmail.com |
e2ec8e1807b2ada32487f68445c59d81a1985ee4 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_update_material_bind_response_wrapper_body.py | 0b1aeca6da72b0508699b95f4a1b46ff5039dc1e | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 996 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.materialbindmod.model.material_bind_update_response import MaterialBindUpdateResponse
globals()['MaterialBindUpdateResponse'] = MaterialBin... | [
"v_wangzichen02@baidu.com"
] | v_wangzichen02@baidu.com |
c710a8f96c892727fa5bba29bf8a3a2db1cff76c | 9a07514a9942303d96031b002b4f28ef248fe689 | /app/page/main.py | 392ae1d6191abb895cd03f46c59ac479abb3ae25 | [] | no_license | zhousk/hogwarts | 58a257c162331b7e262db88fe308312e2d390101 | 93d38d33fb5b4cfa52649c5101d1a325c56d64ca | refs/heads/master | 2023-02-14T00:26:32.820142 | 2021-01-04T17:09:01 | 2021-01-04T17:09:01 | 307,015,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from appium.webdriver.common.mobileby import MobileBy
from app.page.contact_page import ContactPage
from app.page.base_page import BasePage
class Main(BasePage):
_contact_list = (MobileBy.XPATH, "//*[@text='通讯录']")
def goto_contact_page(self):
'''
进入到通讯录
'''
# 点击【通讯录】
#... | [
"980692186@qq.com"
] | 980692186@qq.com |
15de457978364d20c77a1b440c0744b05fc37897 | 79c2638dba0f7efe1530a08be0abd9ccc86de14a | /leagues/views.py | ce4bba6f5a98690911dbc3278fe9aebc4601045f | [] | no_license | cristianrdev/BD_teams_leagues_players | 06d0e505a264cc1492d87e61b362031baa0427f2 | 49868c90e5cf5437009c2fbe012efdcfaae83866 | refs/heads/main | 2023-04-14T20:31:52.968883 | 2021-04-30T04:51:10 | 2021-04-30T04:51:10 | 363,029,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,405 | py | from django.shortcuts import render, redirect
from .models import League, Team, Player
from . import team_maker
def index(request):
if request.method == 'GET':
print('------------es un GET-----------------')
context = {
"leagues": League.objects.all(),
"teams": Team.objects.all(),
"players": Player.obje... | [
"crrojasserrano@gmail.com"
] | crrojasserrano@gmail.com |
c94623fa4a303341d2a14bd2502ddbb12809ef67 | 75fa11b13ddab8fd987428376f5d9c42dff0ba44 | /metadata-ingestion/tests/integration/ldap/test_ldap.py | 3e76f13fc823d2cba27669df218aeac46589492f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | RyanHolstien/datahub | 163d0ff6b4636919ed223ee63a27cba6db2d0156 | 8cf299aeb43fa95afb22fefbc7728117c727f0b3 | refs/heads/master | 2023-09-04T10:59:12.931758 | 2023-08-21T18:33:10 | 2023-08-21T18:33:10 | 246,685,891 | 0 | 0 | Apache-2.0 | 2021-02-16T23:48:05 | 2020-03-11T21:43:58 | TypeScript | UTF-8 | Python | false | false | 5,662 | py | import time
import pytest
from datahub.ingestion.run.pipeline import Pipeline
from tests.test_helpers import mce_helpers
from tests.test_helpers.docker_helpers import wait_for_port
@pytest.mark.integration
def test_ldap_ingest(docker_compose_runner, pytestconfig, tmp_path, mock_time):
test_resources_dir = pytes... | [
"noreply@github.com"
] | RyanHolstien.noreply@github.com |
4c45f08b05b3d7602a124435f0b016247808ffc6 | 2ec75e8b2fce5b21f8df8944eb2c792b78743552 | /server.py | 4b334f45597809d3e274e5b4f73eb0593cce7e46 | [] | no_license | smilefufu/tornado-s | 6ea541bdf3795913c3df070cda38d70665997f90 | 19bd56b33e70e36c9cc0c1d9b4f253b657caaed0 | refs/heads/master | 2020-05-20T16:45:25.109800 | 2015-11-19T14:38:43 | 2015-11-19T14:38:43 | 42,692,516 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | #!/usr/bin/env python
# encoding: utf-8
from tornado.ioloop import IOLoop
from tornado.web import Application, url
from tornado.options import options, define, parse_command_line
from lib.core import HTTPServer, config_settings, RequestHandler, RestfulApiHandler, ModuleRouter, ProviderManager
import logging
import sys
... | [
"fufu.bluesand@gmail.com"
] | fufu.bluesand@gmail.com |
1bab096720a3d1db7ea403b4988e1744b8ee3cd9 | 541523537649b48a96eef475d6b66e8e8270978d | /fenci/web/test/test.py | 554e8d9c53702256b8d8ed584dbcc758e7f9ac4b | [] | no_license | HNU-MSC/fenci | 03720288e29b3dbf05eb408d8af164d1e3ed7813 | dc9218eae7e58bafda5d659a01b473eb57b63861 | refs/heads/master | 2020-12-27T04:31:25.202604 | 2020-02-02T12:28:11 | 2020-02-02T12:28:11 | 237,766,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | import json
with open('force_directed.json', 'r') as f:
res = f.read()
res = json.loads(res)
print(res['nodes']) | [
"noreply@github.com"
] | HNU-MSC.noreply@github.com |
8dc18ef2f8c1b9adeb021bbd1cc39ef1d13084b3 | 85ab4cc5e16e2e51fee8488f47f4ed1ecd043c61 | /examples/tracing/kvm_hypercall.py | 322bb8e50098e60cc6f8e678268741876e74d888 | [
"Apache-2.0"
] | permissive | polycube-network/bcc | 8fa018358f03fc2a3444910fade338de6933babf | b8158f43ceb884a9eef456d30f4f413604397a6a | refs/heads/master | 2022-06-25T14:00:23.852780 | 2020-01-27T11:16:21 | 2020-01-27T11:16:21 | 161,410,720 | 2 | 4 | Apache-2.0 | 2020-06-25T13:38:04 | 2018-12-12T00:26:32 | Python | UTF-8 | Python | false | false | 1,524 | py | #!/usr/bin/env python
#
# kvm_hypercall.py
#
# Demonstrates stateful kvm_entry and kvm_exit recording along with the
# associated hypercall when exit_reason is VMCALL. See kvm_hypercall.txt
# for usage
#
# REQUIRES: Linux 4.7+ (BPF_PROG_TYPE_TRACEPOINT support)
#
# Copyright (c) 2017 ShiftLeft Inc.
#
# Author(s):
# S... | [
"goldshtn@gmail.com"
] | goldshtn@gmail.com |
03159707aa89c1ada2d4e3e3109c8a8cff6de8ff | 9b3df22a5352484d7cab3f3d32b2404a951b9d53 | /server/test_python_client.py | e2cebaaca06ecb4ed7a2e851e729a6b4332d487b | [] | no_license | nickmoop/untitled_messenger | 24694b41f623ca42abab790d6569108cc3dba46b | 089c5c06f94aee9bf7273e8c56c35b0872e63f83 | refs/heads/master | 2021-08-06T10:00:45.859278 | 2017-11-04T21:55:04 | 2017-11-04T21:55:04 | 109,385,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | from socket import *
SERVER_HOSTNAME = 'localhost'
SERVER_PORT = 50007
def send(socket_object, message=None):
if message:
print('Encode message: {}'.format(message))
message = [message.encode()]
print('Send message')
for line in message:
socket_object.send(line)
el... | [
"nicolay.chirik@gmail.com"
] | nicolay.chirik@gmail.com |
b24113a5aef60eee13af9475c0f32a9ad3eb8856 | e9b0a4cbd4757a598fbc8b3973f69dfd76b2020d | /app_system/migrations/0002_userssconfig_user.py | 2062f4dd7f79ecb1b1bcae0300611f6e00bfc068 | [
"Apache-2.0"
] | permissive | visoon0012/plover.cloud | fa58cdc8b241183670a229ccf4db64f78ed023d1 | 04542628758d969085eb6172928165fddb5d2677 | refs/heads/master | 2022-12-14T08:08:10.099953 | 2018-08-01T10:08:14 | 2018-08-01T10:08:14 | 129,711,956 | 1 | 0 | Apache-2.0 | 2022-11-22T02:28:49 | 2018-04-16T08:41:44 | Python | UTF-8 | Python | false | false | 593 | py | # Generated by Django 2.0.2 on 2018-05-31 10:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('app_system', '0001_initial'),
migrations.swappable_dependency(s... | [
"visoon0012@hotmail.com"
] | visoon0012@hotmail.com |
6c84ccddbbd2a6110e5b60242adf271558d404ee | 83ed8b754703a1c9e661c90f0763bfebbc0f2606 | /爬虫/抓取动态Ajax请求的数据.py | 872e0b1c73089f5de87f161395db0e8837b3d7ad | [] | no_license | zbh123/hobby | 4ce267a20e1af7f2accd2bde8d39af269efa319b | 2215c406fe7700bf150fd536dd56823a2e4733d1 | refs/heads/master | 2021-08-02T10:31:34.683391 | 2021-07-26T07:26:16 | 2021-07-26T07:26:16 | 150,555,879 | 4 | 0 | null | 2021-07-27T07:34:28 | 2018-09-27T08:41:44 | Python | UTF-8 | Python | false | false | 1,199 | py | import urllib.request
import ssl
import json
import re
def ajaxCrawler(url):
headers = {
"User-Agent": "User-Agent:Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0"
}
req = urllib.request.Request(url, headers=headers)
#使用ssl创建未验证的版本
context = ssl._create_unverifie... | [
"noreply@github.com"
] | zbh123.noreply@github.com |
c15e0849f76eff4678bd60d201ed33b6738de563 | 3a0deef4feb62d9b0cee5c581cbc57233d356f9d | /ParkEasy/migrations/0001_initial.py | 4ab181853091171dd6fb4a862bbce2da2d69d75f | [] | no_license | sirwill98/William_Rodgers_Graded_Unit | d1d24edf2d78b7eb421e1f2307fd424e4a1c8426 | 94ce68bc97773a93c4c2b963b0252ea5c0830d2a | refs/heads/master | 2021-06-05T10:29:27.070287 | 2020-11-12T13:32:30 | 2020-11-12T13:32:30 | 131,712,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,506 | py | # Generated by Django 2.0.3 on 2018-05-24 12:40
import ParkEasy.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_... | [
"billyboy2410@hotmail.co.uk"
] | billyboy2410@hotmail.co.uk |
400ac17153480a63df98dda5dac0d88bf318c97e | 508321d683975b2339e5292202f3b7a51bfbe22d | /Userset.vim/ftplugin/python/CompletePack/PySide2/QtWidgets/QGraphicsPixmapItem.py | 0b913af111c321403b7dbad1da4f899c98fdb78f | [] | no_license | cundesi/vimSetSa | 4947d97bcfe89e27fd2727423112bb37aac402e2 | 0d3f9e5724b471ab21aa1199cc3b4676e30f8aab | refs/heads/master | 2020-03-28T05:54:44.721896 | 2018-08-31T07:23:41 | 2018-08-31T07:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | # encoding: utf-8
# module PySide2.QtWidgets
# from C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtWidgets.pyd
# by generator 1.145
# no doc
# imports
import PySide2.QtCore as __PySide2_QtCore
import PySide2.QtGui as __PySide2_QtGui
import Shiboken as __Shiboken
from QGraphicsItem ... | [
"noreply@github.com"
] | cundesi.noreply@github.com |
ee7907386d75d7bd896092d36804b4b05cab52d4 | b04b52614b31a5d77239d19b4259f84abb2cbea5 | /adminpanel/migrations/0023_album.py | 03b00f2f23fc6b2ecfeaed66b54429ce8761ca75 | [] | no_license | nawed-xigmapro/vibanote | ae348561d7c6b8b208a1b6a8f46db2c928e3df91 | 03f2f23497203e4dbfde43c5bb8898a5e77492fa | refs/heads/master | 2021-01-19T19:01:59.108160 | 2017-08-23T13:38:30 | 2017-08-23T13:38:30 | 101,181,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-03 14:11
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
... | [
"nawed@xigmapro.com"
] | nawed@xigmapro.com |
23d781e34d8d2f3ae61620fd43b6f47b75e59a5b | 5b0ff689a3e14f42bdf688864cae40c931a5f685 | /msa/core/armve/tests/test_multi_write.py | b2424dcb0537e0251c93404cf4c3107e15a472cd | [] | no_license | prometheus-ar/vot.ar | cd7012f2792a2504fb7f0ee43796a197fc82bd28 | 72d8fa1ea08fe417b64340b98dff68df8364afdf | refs/heads/2017-ago-salta | 2021-01-02T22:19:41.591077 | 2017-08-25T11:55:49 | 2017-08-25T11:55:49 | 37,735,555 | 171 | 110 | null | 2020-06-30T13:33:49 | 2015-06-19T17:15:52 | JavaScript | UTF-8 | Python | false | false | 1,712 | py | #!/usr/bin/env python
# coding: utf-8
from __future__ import division
from serial import Serial
from msa.core.armve.constants import DEV_PRINTER, CMD_PRINTER_PAPER_START, \
CMD_PRINTER_MOVE, EVT_PRINTER_PAPER_INSERTED, CMD_PRINTER_PRINT, \
CMD_PRINTER_PAPER_REMOVE, DEV_RFID, EVT_RFID_NEW_TAG,\
CMD_PRINTE... | [
"prometheus@olympus.org"
] | prometheus@olympus.org |
db2a2a1a31115c20f2aa9461c575fc65b4918eef | 9838d1b978bf34926c2f881b8e06ace732869997 | /assignment2/counter.py | 9a61e7e5efc846d762d3f0e7ae1ff8a8c7a9a3be | [] | no_license | thinkocapo/big-data-processing | 57678e9cca144c3e310aae82283062d95fe99147 | 5e417c08c7cd3cada732963b32624b6faa8a8d8d | refs/heads/master | 2023-04-15T12:27:08.028286 | 2019-11-12T04:27:41 | 2019-11-12T04:27:41 | 207,067,630 | 1 | 0 | null | 2023-03-31T14:51:22 | 2019-09-08T05:43:50 | Python | UTF-8 | Python | false | false | 7,330 | py | import argparse
import csv
import datetime
import json
import multiprocessing
from multiprocessing import Process, Value, Lock
import os
import pprint
import time
import threading
from random import randint
# Capture any exceptions and send to Sentry.io :)
if 'DSN_DATA_PIPELINE' in os.environ:
import sentry_sdk
... | [
"thinkocapo@gmail.com"
] | thinkocapo@gmail.com |
21c7744fe9bf965805efcb90210e003fbc603dfe | f4ea512b8a156abfaef83f25e044b94c37b6dedb | /questions/ABC194/C.py | fe4fe5952d374d1f02b2c0ed3a53e5bd84cd5e11 | [] | no_license | HubHikari/CompetitiveProgramming | 9d1483e0a964508e84ae233aba9cb4ade7ff88e3 | b7c471a80378183b2ed5fe86fa829ee89d26709f | refs/heads/main | 2023-04-13T07:00:13.812800 | 2021-04-24T13:51:27 | 2021-04-24T13:51:27 | 308,897,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from itertools import permutations
DEBUG_MODE = 0
MAX_NUM=2**63-1
def DBG(s):
if DEBUG_MODE == 1:
print("DEBUG: ")
print(s)
#入力変数の数がN個の場合
N=int(input())
A = list(map(int, input().split()))
s1=sum(A)
A2=[]
for i in range(0,N):
A2.append(A[i]*A[i])
s2=sum(A2)
Ai=(N-1)*s2
DBG(Ai)
kake... | [
"donhanya0321@gmail.com"
] | donhanya0321@gmail.com |
bbd3db53b09bf960e6e995204e2771897492d6dc | 599d569b586cb1414886b1a2454cf3c59c4362bd | /master_classifyNewcase.py | 1e11353691c3a1709fc3f692cee4905ea5ed08fd | [] | no_license | cgallego/master | 77511ff3330882f0c5456beaedd81468d7a99bb1 | 2a04d66ac783f5729413aecf9c66037fc8501c78 | refs/heads/master | 2016-09-07T19:02:40.537285 | 2014-07-28T16:05:01 | 2014-07-28T16:05:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,972 | py | # -*- coding: utf-8 -*-
"""
Master python script to run each module in sequence
Arguments:
============
sys.argv[1] = input text file with one case per line in the following format:
BenignNMaligNAnt StudyNumber DicomExamNumber LesionID StudyDate SeriesID BreastSide PathReportID PathoBreastSide
Created on Tu... | [
"admin@webdsdesign.com"
] | admin@webdsdesign.com |
ea6e913cfb0bfbdeae407ef6826a14197f46c3c5 | 805a795ea81ca8b5cee1dec638585011da3aa12f | /MAIN/2.79/python/lib/site-packages/OpenGL/GLES2/EXT/float_blend.py | b15df56ee4bf4fa5dd71042d1b67ad8dbacc6e7d | [
"Apache-2.0"
] | permissive | josipamrsa/Interactive3DAnimation | 5b3837382eb0cc2ebdee9ee69adcee632054c00a | a4b7be78514b38fb096ced5601f25486d2a1d3a4 | refs/heads/master | 2022-10-12T05:48:20.572061 | 2019-09-26T09:50:49 | 2019-09-26T09:50:49 | 210,919,746 | 0 | 1 | Apache-2.0 | 2022-10-11T01:53:36 | 2019-09-25T19:03:51 | Python | UTF-8 | Python | false | false | 750 | py | '''OpenGL extension EXT.float_blend
This module customises the behaviour of the
OpenGL.raw.GLES2.EXT.float_blend to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/float_blend.txt
'''
from OpenGL import platform, constant, arra... | [
"jmrsa21@gmail.com"
] | jmrsa21@gmail.com |
1ed4eb824895a8efbf8b5abcf633e22583dae17e | 802a34c7452f7035b3f3441169fb2e3c1743b2e9 | /Modelling/logistic_regression_pipeline.py | 3e07b150de7d5fe35ca90a48dc2fb65f9e5f1ee9 | [] | no_license | XingLLiu/ED_code | 6756a945c213df4676a7278aa89de0675afb87c9 | 79f6d680354a944a538a3d1983fbc898b0d1c097 | refs/heads/master | 2020-06-15T09:05:59.861517 | 2019-08-27T20:32:55 | 2019-08-27T20:32:55 | 195,255,510 | 0 | 0 | null | 2019-08-26T00:40:25 | 2019-07-04T14:22:05 | Python | UTF-8 | Python | false | false | 6,888 | py | # ----------------------------------------------------
# To run:
# 1. customize hyper-parameters and DATA_PATH in Section 0
# 2. in Terminal:
# python logistic_regression_pipeline.py
# ----------------------------------------------------
from ED_support_module import *
from ED_support_module import EPICPreprocess... | [
"liuxing971015@outlook.com"
] | liuxing971015@outlook.com |
6cb2260307d2f7c6cbf7b028abac70e25d96e6fd | 972322a06d74e90be88b32204d5a777b24c95a3c | /weatherVenv/lib/python3.8/site-packages/twilio/rest/preview/__init__.py | 667c76b23bd2cd834e13bb10628482bad99f6515 | [] | no_license | Ktailor34/weatherBot | 5ae95f0635d658ba7d8792afe882c01518bc7025 | ca6029b19e085d301b1358a38c70186d864215b5 | refs/heads/master | 2022-12-15T14:02:33.400798 | 2020-09-10T21:38:51 | 2020-09-10T21:38:51 | 240,813,256 | 2 | 0 | null | 2022-12-08T03:37:21 | 2020-02-16T01:27:21 | Python | UTF-8 | Python | false | false | 7,099 | py | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base.domain import Domain
from twilio.rest.preview.bulk_exports import BulkExports
from twilio.rest.preview.deployed_devices import DeployedDevices
from twilio.rest.preview.hosted_numbers... | [
"ktailor@Kishans-MacBook-Air.local"
] | ktailor@Kishans-MacBook-Air.local |
fb3123fc3cc659b25547cf2182f90805f6614142 | 9412f4ba84f6b54f67c0d6534ab3804fa621bee8 | /order/migrations/0011_auto__add_field_order_carrier.py | d7dad8989e163e5ead999ccf8f111e992c583e0f | [] | no_license | ruspython/adler-m | 5fbeb44d1a5187d481391e49d6cca86b69d14b7a | c9b27ee7c1794c4632742887599545893621a58d | refs/heads/master | 2020-12-24T14:45:16.535606 | 2014-12-01T10:55:34 | 2014-12-01T10:55:34 | 31,331,474 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,055 | 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):
# Adding field 'Order.carrier'
db.add_column(u'order_order', 'carrier',
... | [
"vlad0058@gmail.com"
] | vlad0058@gmail.com |
b0208119966e1fdb6ebb2df463fa9d87fbde71c4 | e479cf6650db5766ca8435c5a1165e8cb43de0b7 | /evaluate.py | 9cfef8c4942f289387614d90d2854c750e40f0aa | [] | no_license | WangGewu/2020-ai-road-segmentation | 531b9eaaa0a6038b77a5a5fe886748a1ccda42c3 | 5e5c0a161b1bc3424dd351738641c4a367a8c1cf | refs/heads/main | 2023-03-29T05:00:12.529475 | 2021-04-08T13:22:23 | 2021-04-08T13:22:23 | 355,915,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | import numpy as np
class Evaluator(object):
def __init__(self, num_class):
self.num_class = num_class
self.confusion_matrix = np.zeros((self.num_class,)*2)
def Pixel_Accuracy(self):
Acc = np.diag(self.confusion_matrix).sum() / self.confusion_matrix.sum()
return Acc
... | [
"noreply@github.com"
] | WangGewu.noreply@github.com |
62f85c84ce0341424f10db40157445ebc85a70e9 | 6b2af072847d22c17344856636054497d1f4f632 | /leetcode/448.find-all-numbers-disappeared-in-an-array.py | ecee2f006429567a5e6fc41126e55ec157ebeef3 | [] | no_license | iplay16/vscode | 2a2dde14550164cc36d76dee4a5bdba6e998f026 | 542626143c4eab527f6bc7143e8778619c8e4857 | refs/heads/master | 2020-04-25T01:55:23.972221 | 2019-10-05T08:40:31 | 2019-10-05T08:40:31 | 172,422,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | #
# @lc app=leetcode id=448 lang=python3
#
# [448] Find All Numbers Disappeared in an Array
#
class Solution:
def findDisappearedNumbers(self, nums: List[int]) -> List[int]:
for n in nums:
nums[abs(n)-1]=-abs(nums[abs(n)-1])
res=[]
for i in range(len(nums)):
if(nums[i... | [
"iplay16@163.com"
] | iplay16@163.com |
3d03ee4b346bb937bb87a78407998a3a3294ea25 | 83aa8b54f55eeeca3c58eb7cc59219fb2c9f6307 | /tests/test_preprocessing.py | 6f8f76c60bd5e75d5dbec29723d48b9ca37d1a36 | [
"MIT"
] | permissive | vftens/RocAlphaGo-aug25-keras2-py35 | 650e8321dfc82b0cfa922afa78e3dc0e92017e49 | 67ad5242ea7a8cdda60b9e10590f7bc9e91447c6 | refs/heads/master | 2023-01-04T07:10:31.509986 | 2020-10-24T18:17:50 | 2020-10-24T18:17:50 | 306,944,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,207 | py | import unittest
from . import parseboard
import numpy as np
import AlphaGo.go as go
from AlphaGo.go import GameState
from AlphaGo.preprocessing.preprocessing import Preprocess
def simple_board():
"""
"""
gs = GameState(size=7)
# make a tiny board for the sake of testing and hand-coding expected res... | [
"aico@ya.ru"
] | aico@ya.ru |
ca64375f7c116ff02f021ac13a54ca325742e802 | 56f9208443ae7f3dc6b06ee840e58b2edc74b627 | /ll_env/bin/django-admin.py | a6d719b9040c4d62203d5a90b9b2b9a4a5c4978e | [] | no_license | haruyamu/learing_log | d3891f2f66ff634feb36b52eaa04f251c4fdb571 | be85bff1ccb59f46c7ef332e8a0e4fd9c1530678 | refs/heads/main | 2023-02-24T18:53:40.675780 | 2021-01-27T02:34:23 | 2021-01-27T02:34:23 | 332,979,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #!/Users/haruya/projects/learing_log/ll_env/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was dep... | [
"haruya.20020331@icloud.com"
] | haruya.20020331@icloud.com |
d57958a6781674de72dcaadbfbe121da93e285e6 | b9499f3f235e5da9c3e83782d114ad41586e7bcd | /data_utils.py | 4b8623b9df9bd5b974c4a8d17e921d339690cdc7 | [
"MIT"
] | permissive | maremita/-fork-Phylo_structural_EM | 9e3e57e6bd5406996d52e77d01b69ff2c7340d61 | 609fdd94874e02b02101649033390335e34c43cb | refs/heads/master | 2023-08-30T04:55:49.227399 | 2020-03-19T10:44:58 | 2020-03-19T10:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | import numpy as np
import re
import networkx as nx
# define parameters
nuc_names = ['A', 'C', 'G', 'T']
transform = {'A': 0, 'C': 1, 'G': 2, 'T': 3}
regex = re.compile('[ACGT]')
def get_char_data(name='infile'):
"""
Returns numerical representation of dna sequences, number of sequences (N), length of sequen... | [
"okviman@kth.se"
] | okviman@kth.se |
7c9c32d90f97ed66f476c030951ca39cf376ba56 | dd5d54eb45b8993769310a679c14b20600005793 | /data/process_data.py | 338c21443b179bace0b3b4d1f8e2e8cada447d81 | [
"MIT"
] | permissive | amalpm-rog/Disaster-Response-Pipeline | b5d3653ac9741ea841b67c9f94486afb30766cf3 | 47688decc1d8d0daa2be3ab9edb8bb391a1d1661 | refs/heads/master | 2022-11-15T12:10:20.539038 | 2020-07-06T05:36:20 | 2020-07-06T05:36:20 | 277,448,793 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | #! /usr/bin/env python3
# coding=utf-8
# The Data processing module
import sys
import pandas as pd
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
"""Load two csv files into pandas dataframes and
merge them into one.
Parameters
----------
messages_f... | [
"noreply@github.com"
] | amalpm-rog.noreply@github.com |
83888354f0b783bb8f6c9e830474067926de5f17 | 7d4667ee455337014760a7e23b9556c30d358b25 | /Web2_0course/buyagrade/cardValidate.py | c0cc154f6d1542837d2e0826f1b482ece02bd129 | [] | no_license | joyeecheung/WebHWs | 786d6bfcfd3b0a0822a73f7b94b7d6673fd89568 | 9f9725187ef7ce6d496e3368a9c7acbd512f27f2 | refs/heads/master | 2020-12-25T17:05:30.659229 | 2015-02-11T19:17:41 | 2015-02-11T19:17:41 | 13,560,924 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | """ Functions for validating credit card numbers. """
import re
def IsValidChecksum(number):
""" Checks if the card number passes a luhn mod-10 checksum. """
numlist = [int(x) for x in reversed(str(number)) if x.isdigit()]
# digits that count once
count = sum(x for i, x in enumerate(numlist) if i % 2... | [
"joyeecheung@joyeecheung-virtual-machine.(none)"
] | joyeecheung@joyeecheung-virtual-machine.(none) |
da01705f525324f663168eb74c1a77e66c4cc174 | 417b516b7c15779a8f93511a09ca213017d22415 | /app/members/models.py | 86ca7fd32e3082d6975e7a69d35f8d72a7ef0fc5 | [
"MIT"
] | permissive | krakiun/chargeflask | 453f631cb5ba5a05ebeb1d318cce1b84e9637b18 | dabca234a07550889927dd308c7d4ef8923da943 | refs/heads/master | 2021-08-14T06:55:56.017209 | 2017-11-13T20:39:18 | 2017-11-13T20:39:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | """
filename: members.py
description: Model for Members in Committees.
created by: Omar De La Hoz (oed7416@rit.edu)
created on: 08/31/17
"""
from app import db
from itsdangerous import (TimedJSONWebSignatureSerializer
as Serializer, BadSignature, SignatureExpired)
members_table = db.Table('m... | [
"omar.dlhz@hotmail.com"
] | omar.dlhz@hotmail.com |
72c6b5820ec2373fc5c053015b127eae12ba7b5d | 74fb05c7b5eddf2b368e181f38b9423a711bf2e0 | /real_python_tutorails/iterators/iterators_example.py | ae43af08beec8d63c2765d453574e4ff98b5c5cb | [] | no_license | musram/python_progs | 426dcd4786e89b985e43284ab5a5b1ba79cb285e | ad1f7f2b87568ba653f839fe8fa45e90cbde5a63 | refs/heads/master | 2022-11-10T09:53:29.993436 | 2020-06-21T00:21:23 | 2020-06-21T00:21:23 | 264,607,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py |
if __name__ == "__main__":
names = ['sai', 'asi', 'isa']
for name in names:
print(name)
#what actuall happens internally is this:
it = names.__iter__()
print(next(it))
#similalry
f = open('/etc/passwd', 'r')
it = f.__iter__()
print(next(it))
#writing genera... | [
"musram@gmail.com"
] | musram@gmail.com |
6b91829cc22bc82d5f07ab40c654250f7a903fbb | dea24559930c75ed7fd6016464e6844644e7bf06 | /plot_kolmogorov.py | ad925c613472e1f535acd0edfc6a4c1ffb2a3f2f | [] | no_license | sheyma/fitzefatze | 45f8da30f9bf4403c27feac6529da2367c9a391b | 11c6839c86fe131ab803f9e39d4fe738b75e8b54 | refs/heads/master | 2021-01-11T22:19:01.351693 | 2017-01-26T14:56:18 | 2017-01-26T14:56:18 | 78,947,686 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | import numpy as np
import matplotlib as mpl
mpl.use('TkAgg')
import matplotlib.pyplot as pl
import sys, glob, os
from scipy import stats
import collections
from math import factorial, sqrt, ceil
# check the loaded matrix if it is symmetric
def load_matrix(file):
A = np.loadtxt(file, unpack=True)
AT = np.transpose... | [
"sheymaba@gmail.com"
] | sheymaba@gmail.com |
e0a10d5037f48480969cd86d793755f6b876565a | b2654c3003c7de93b24c84d6acce9bcdb2cad826 | /07_function_objects.py | 384c804218176b869e4385cd2bf0caf45d48041d | [] | no_license | sonicbrcm/dive-into-cpython | eef9ab16bb10aa82555c0221a17b28c578b34afd | 1e17fbaacdfb0d546fda1bbc6d79361de417caf0 | refs/heads/master | 2021-12-22T04:13:05.784313 | 2017-10-10T08:34:09 | 2017-10-10T08:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | PyCodeObject
cpython/Include/code.h
cpython/Objects/codeobject.c
PyFunctionObject
cpython/Include/funcobject.h
cpython/Objects/funcobject.c
| [
"hexiaowei91@163.com"
] | hexiaowei91@163.com |
f927f5c141a4938dceb50e383256385903c97b7d | 7e74dae3390c0dd2751c9353c6051350ab4f1d86 | /blog_python/blog/migrations/0014_auto_20201015_2350.py | 30bf6597ab55111815756e299f6211904d794eb1 | [] | no_license | Eugin-Paul/Blog | 70c327198fb93ef569246a02f9a56f2d57d0b53e | 7f562b3cd17f477e5ea97ba04132554262c3f9b5 | refs/heads/master | 2023-01-01T09:02:41.702171 | 2020-10-22T07:15:38 | 2020-10-22T07:15:38 | 305,793,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # Generated by Django 3.0.7 on 2020-10-15 18:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0013_auto_20201015_2341'),
]
operations = [
migrations.RenameField(
model_name='comment',
old_name='content',
... | [
"euginpaul1717@gmail.com"
] | euginpaul1717@gmail.com |
23ea96da8e03e7b4983c3084a4f0f423d4cca8a5 | 18f5c71436a22da1c3835b562f1538722114f2af | /backend/api/urls.py | a587b3e16148b0d73e2da279b169f27c4f01b4e0 | [
"MIT"
] | permissive | timakaryo/antrean | 54968fd960e8d886a6224d5d5a6f21c212f6acad | 8eab42a0a17092355adc9b56d2f29dbf53fa2a54 | refs/heads/master | 2021-01-20T21:09:17.098029 | 2017-10-23T13:00:42 | 2017-10-23T13:00:42 | 101,754,612 | 0 | 0 | null | 2017-10-23T13:00:43 | 2017-08-29T11:39:50 | Python | UTF-8 | Python | false | false | 144 | py | from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns = [
url(r'^token/', obtain_jwt_token)
]
| [
"chiputera@gmail.com"
] | chiputera@gmail.com |
dd5fbc68c39d3c24641b9f746e2812d44fa78e62 | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/destinationCity/destinationCity.py | 1b55d8c23b19986d5f6d1359d7af30216a4080a4 | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/destination-city/
# Author: Miao Zhang
# Date: 2021-05-06
class Solution:
def destCity(self, paths: List[List[str]]) -> str:
ind = collections.defaultdict(int)
out = collections.defaultdict(int)
for u... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
a516a1d9d6566da6c0e8403dbfd46b44eaa1bf43 | 5b3e4b9263c2fcbec1fc5890e4a6035aeb9637f7 | /case/test_cate_gory_second.py | ad6bc35d090a77b8d6c162699efc3033bd566863 | [] | no_license | cheng2020-G/fastapp | 68216bcba5860a51a765c64989b5e99dc53b2e3e | d55d7d3a53337a2bd1792093c39169b0e31f1cf8 | refs/heads/master | 2023-04-21T11:39:22.590349 | 2021-05-27T05:40:15 | 2021-05-27T05:40:15 | 365,464,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | import re
from basecase.basecase import BaseCase
class TestCateGorySecond(BaseCase):
def test_cate_gory_second(self):
res = self.cate_gory_second.cate_gory_second()
print('请求url:' + res.url)
print('requestId:' + res.headers['requestId'])
print(res.json())
# print(res.json(... | [
"1007884377@qq.com"
] | 1007884377@qq.com |
bbb6ba991cd66865d214bb9394d18bf5215976cd | 7bb1c8cabeda75bd7db913e2396da383a4e7ba83 | /smtpapi/send.py | 3299ba75e99343761e54794f47893946e7bb390d | [] | no_license | dlinsg/test | 273945d72a2d210e96ac441c1c8a60ab0bd5d7a0 | 4804381299797c4ff61bc23aa95b0cd306f93f5f | refs/heads/master | 2021-01-17T10:06:44.653743 | 2016-04-10T23:00:32 | 2016-04-10T23:00:32 | 23,331,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | #!/usr/bin/python
# coding: utf-8
import datetime
today = str(datetime.date.today().strftime('%m/%d/%Y'))
import sendgrid
sg = sendgrid.SendGridClient('dlintestapi', 'testingapi123')
message = sendgrid.Mail()
message.set_from('Dave Lin <david.lin@sendgrid.com>')
message.add_to('David Lin <david.lin@sendgrid.com>')
m... | [
"david.lin@sendgrid.com"
] | david.lin@sendgrid.com |
8aa6225c10b41ae45a7dcca40c4dab0d5f1bbe27 | 8652ad554a5fc6076ddae6a869576b6360438a0f | /boilerplate.py | f8d7b3708ef6a230941929700669295cddc6d494 | [] | no_license | dipamsen/Pygame-Intro-Code | b79bb2c554332275c5042efc44cffc32e1711da3 | f4316677d965f140c1ba38b6af26620bf2ddeae0 | refs/heads/main | 2023-06-17T11:01:34.632924 | 2021-07-16T07:17:19 | 2021-07-16T07:17:19 | 386,546,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | from colors import *
import pygame
# unnecessary imports for vscode intellisense
import pygame.display
import pygame.time
import pygame.draw
import pygame.mouse
import pygame.event
import pygame.image
import pygame.transform
import math
pygame.init()
FPS = 60
WIDTH = 400
HEIGHT = 400
pygame.display.set_caption("P... | [
"dipamdiptam@gmail.com"
] | dipamdiptam@gmail.com |
5fa12fe4e4a40d5f551f4cbcfc107b8a901841e6 | db774c9a29620e8374740f7a30bd27df40cd8da3 | /pars/bin/easy_install | 2f05c1d74e3ab9b64838db9f13794f43ed9943bd | [] | no_license | Rakhimzhan312/Part2Task19Parsinglalafo | 7330b79912d96c05f9b32a8adf08a628df587378 | 1f7edf5ce3e65164799f0f2dfcc137e33a1b0c7d | refs/heads/master | 2020-09-15T22:54:34.115603 | 2019-11-23T11:17:30 | 2019-11-23T11:17:30 | 223,576,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | #!/home/rakhimzhan/Desktop/Tasks/Chapterparsing/parsingtest/pars/bin/python3
# -*- 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())
| [
"rakhimzhan312@gmail.com git config --global user.name Rakhimzhangit push -u origin mastergit statusgit push origin mastergit config --global user.email rakhimzhan312@gmail.com"
] | rakhimzhan312@gmail.com git config --global user.name Rakhimzhangit push -u origin mastergit statusgit push origin mastergit config --global user.email rakhimzhan312@gmail.com | |
441e3e75fd6b5ef8cc403e0b4b73843eb432393c | 62c6e50d148f1ccd51001abedbfe748fda94427e | /backend/cookieapp/views.py | 65b7b4217bfa0991bcd696807104284c0951ead4 | [] | no_license | i7-Ryzen/django-jwt-httponly-cookie | be27936d0d7111688a0b2d5811edd891c2b5c925 | bb21ae75b05f7b42e98da6a69f9280c51a1171fd | refs/heads/main | 2023-05-06T15:30:01.870387 | 2021-05-24T05:35:10 | 2021-05-24T05:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | from rest_framework_simplejwt.tokens import RefreshToken
from django.middleware import csrf
from rest_framework.views import APIView
from rest_framework.response import Response
from django.contrib.auth import authenticate
from django.conf import settings
from rest_framework import status
def get_tokens_for_user(user... | [
"abhishekk580@gmail.com"
] | abhishekk580@gmail.com |
639425d836fa30470f16437a549f853bba95ed67 | b92d4895baa78683e328a32295114e70e47b7ff2 | /genetics/phasing/make_readbackPhasing_samplesheet.py | 6937323194973c13ce7b72758dc851164d21273d | [] | no_license | npklein/random_scripts | dcd367b465b6c32da90f7390372eee1da1d78c41 | 11eda8a4889ab533be7eff19e493fd66938ba3a3 | refs/heads/master | 2021-01-19T22:49:32.887873 | 2018-05-28T13:35:08 | 2018-05-28T13:35:08 | 88,863,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | import os
seen = []
with open('sample_individual_idLink.txt') as input_file, open('individual_bam_link.txt','w') as out:
out.write('individualID,sampleName,bam\n')
input_file.readline()
for line in input_file:
sample_id = line.split('\t')[0]
individual_id = line.strip().split('\t')[1]
... | [
"niekdeklein@gmail.com"
] | niekdeklein@gmail.com |
46bbf9daf0b61574b23a2631b6a78bc7caa69495 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/documentdb/v20210515/sql_resource_sql_trigger.py | 61599bbe3cb634dfa2ed1f8cf1d6c22dcfb144dd | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,020 | 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"
] | johnbirdau.noreply@github.com |
3ca302784c9b639fe76172e986949f7b16c5f686 | b5df9e66d292ed332d2164ad6e454e6c5b333968 | /fetch-text-gui.py | e816fd2902cd17b2da960c64d21cb6455f033786 | [] | no_license | ronandoolan2/python-gui | c3be55d34b9ca9e95451419acfa4cdda70bfdc90 | 84e935c1c06a22616224b1bab42a0c550502b467 | refs/heads/master | 2021-01-20T06:52:33.290336 | 2017-05-01T16:09:14 | 2017-05-01T16:09:14 | 89,939,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from Tkinter import *
root = Tk()
svalue = StringVar() # defines the widget state as string
w = Entry(root,textvariable=svalue) # adds a textarea widget
w.textbox.grid(column=0,row=0)
def act():
print("you entered")
print('%s' % svalue.get())
foo = Button(root,text="Press Me", command=act)
foo.textbox.grid(colu... | [
"ronandoolan@gmail.com"
] | ronandoolan@gmail.com |
01e60493883cfefce15b71a07e7676b42da9e91e | aedded4974138c7e510337cd5dd99144a2a388a6 | /Sentimental Analysis using Elastic Search and Python/load_elasticsearch.py | 3913516136c143abc375b1f7e2cfd0c768ee99b8 | [] | no_license | dalalbhargav07/Data-Warehousing-to-Data-Analytics | a1304b4e606d776a48b7b815b945f615c5571ef9 | 96ed04416e3db9012cbb3e9a1a2cf591bbb4a7c8 | refs/heads/master | 2020-04-02T16:07:23.922297 | 2018-10-25T03:06:15 | 2018-10-25T03:06:15 | 154,599,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 06 15:13:45 2018
@author: Hardik Galiawala, Bhargav Dalal
"""
import csv
from datetime import datetime
from elasticsearch_dsl import DocType, Date, Integer, Keyword, Text, connections
connections.create_connection(hosts=['team1.canadaeast.cloudapp.azure.com'])
class Tw... | [
"dalal.bhargav07@gmail.com"
] | dalal.bhargav07@gmail.com |
afa792b926c2ea3c9563b1ca60d34e69bc4fc2bc | b2ba78fb1e53f92efdc3b6e0be50c81e5dd036ed | /plot_f/plot_offline_mbl_5M_all.py | ef16bbcfd8943228d88a28c336263fa8c582ed91 | [
"MIT"
] | permissive | ShuoZ9379/Integration_SIL_and_MBL | 2dcfae10cb5929c4121a3a8bfceebae8c0b6ba08 | d7df6501a665d65eb791f7fd9b8e85fd660e6320 | refs/heads/master | 2020-07-23T20:04:17.304302 | 2019-09-23T18:58:57 | 2019-09-23T18:58:57 | 207,690,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | import os, argparse, subprocess
import matplotlib.pyplot as plt
import numpy as np
from baselines.common import plot_util as pu
def arg_parser():
return argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
def filt(results,name,name_2=''):
ls=[r for r in results if name in r.dirname a... | [
"zhangshuo19930709@gmail.com"
] | zhangshuo19930709@gmail.com |
0daaa4c643fd769852f1d89126fea5c9a7ff5325 | e4d441f9d9e743e685650b3aee1f09d09d7e4681 | /zad 1.py | d3e16f68a9089f76375a361dc0d1d5d4da03e0cd | [] | no_license | pstatkiewicz/lista-3 | b9f56f462365713dd49a908579f0315f31c49ee7 | d7133d7222928bcb35d7cfde1c004cc94d798ed7 | refs/heads/main | 2023-06-07T20:47:53.101174 | 2021-01-18T14:46:47 | 2021-01-18T14:46:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | import matplotlib.pyplot as plt
def how_many_letters(string):
string.lower()
counter=[0]*26
letters=[]
list1=[]
for i in range(26):
letters.append(chr(97+i))
for i in range(len(string)):
if ord(string[i])<123 and ord(string[i])>96:
counter[ord(string[i])-97]+=1
fo... | [
"patrykstatkiewicz1012@gmail.com"
] | patrykstatkiewicz1012@gmail.com |
0b459f2956f8b32f62c231644e0df079e662cadd | 5a82795c3860745112b7410d9060c5ef671adba0 | /leetcode/Network Delay Time.py | 0ead9c6fd14d36b87d1e6aaa9d1e5ac0d91d18eb | [] | no_license | ashishvista/geeks | 8e09d0f3a422c1c9a1c1b19d879ebafa31b62f44 | 1677a304fc7857a3054b574e8702491f5ce01a04 | refs/heads/master | 2023-03-05T12:01:03.911096 | 2021-02-15T03:00:56 | 2021-02-15T03:00:56 | 336,996,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | class Graph:
v = None
def __init__(self, V):
self.V = V
self.adj = [[] for i in range(V)]
self.weights = {}
def addEdge(self, u, v, w):
self.adj[u].append(v)
self.weights[str(u) + "-" + str(v)] = w
class Solution:
def networkDelayTime(self, times: List[List[in... | [
"ashish@groomefy.com"
] | ashish@groomefy.com |
307ab6fcace65005c39968f593e93497733e5f09 | caaf7723580684886559dedba9a0cfa19036243d | /autofocus.py | 6372eb067440d35876fbc6f9048db2bbfc5c9398 | [] | no_license | mike-fang/led_micro | 27214b5d9e67abd3dbc85c2962be13bb82c83723 | c08105b1cd84836fed2dea11074e1d47d13f099a | refs/heads/master | 2022-11-28T10:46:09.647242 | 2020-08-02T19:44:22 | 2020-08-02T19:44:22 | 275,946,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | from elp_usb_cam import ELP_Camera
from capture_msi import init_rb, STD_EXPOSURE
import numpy as np
from asi_controller import AsiController
from time import time, sleep
from get_sharpness import grad_sharp
import cv2
import matplotlib.pylab as plt
def get_sharpness(img):
gy, gx = np.gradient(img)
gnorm =... | [
"1michaelfang@gmail.com"
] | 1michaelfang@gmail.com |
3ad1be3f4021991b8dff98164ef3af62fb67b912 | d0fe3d0316aa90ef68c9a39f0335d53602d2be44 | /node_modules/socket.io-servicebus/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build/config.gypi | 11810bdab21d746e4e7e0b083659e41b147c5e81 | [
"MIT",
"Apache-2.0"
] | permissive | bitchwhocodes/photobooth | 98184bc8eb1ed17ad37176ff216b30ee42d471e6 | a8f8182d9d971333899b3c427f9182b607b3992a | refs/heads/master | 2020-12-24T17:17:49.726329 | 2015-04-11T06:46:31 | 2015-04-11T06:46:31 | 33,573,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,839 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"stacey.mulcahy@gmail.com"
] | stacey.mulcahy@gmail.com |
35501df946cd308d781d7730ff743efd5f3dc66a | fbb16a594e43cf57690c2ada793e8a8a9386caa7 | /okane.py | d18ccb6d6d37df30b2e5e262be14172fb0b0faff | [] | no_license | voyager42/okane | 20315a8bdb1ce923bd0a547d095b6b11d4e6913d | 7472399d2ab66f0962e8faf4d6768fb810727d61 | HEAD | 2016-09-01T16:54:51.881820 | 2014-01-12T16:11:37 | 2014-01-12T16:11:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,248 | py | '''
Created on Feb 8, 2012
@author: johan
'''
import sys
import os
import transaction
import wx
import random
import wx.html
import Controller
import Model
import View
import TransactionView
import TotalsView
import csv
import Shapes
import logging
import logging.config
import math
logging.basicConfig(level=logging.... | [
"johan.kohler@gmail.com"
] | johan.kohler@gmail.com |
e1d4c5491ac53c61a1a27e3e470c44305f3885f3 | 56bcef6090d53b43afb60240079d6c71ed01f808 | /kalakriti/customer_block/views.py | 1bdd9cf807b7f6d63fd9e418f0f3a454f3d6a9c3 | [] | no_license | hrs2203/soad_project_2020 | 1091da3b167c863a28229ddc95859fdd9396f637 | 067853dd52676062358b5841fdcca0feefaabfc4 | refs/heads/main | 2023-02-04T20:44:23.771516 | 2020-12-22T06:50:11 | 2020-12-22T06:50:11 | 308,274,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,119 | py | from django.shortcuts import render, redirect
from django.http import JsonResponse
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.models import User, AnonymousUser
from customer_block.forms import (
user_login_form,
business_login_form,
user_signup_form,
business_si... | [
"hrishabh2203@gmail.com"
] | hrishabh2203@gmail.com |
1cd6b2cde90dae2214ce5243b597fbe6393438cf | 15da36fb301d51425ce38e7af6e77a64e05e62d5 | /test_iterator.py | b0ef7cea978b72ad37b7c2383065723f86ad077b | [] | no_license | bassemhossam/Video-Summarization | 7375681d5d875d2644ad1f05d5ab66936db5a019 | 321cfb659e742a96407c57c6bcac101062c3cff0 | refs/heads/master | 2020-12-05T11:14:08.537642 | 2020-07-19T09:57:57 | 2020-07-19T09:57:57 | 232,091,949 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # Helper code used for testing and seeing the outputs from the iterator.
from data_iterator import *
import torch
device = torch.device("cpu")
iterator = SSIterator(64, 15, 20,"test", device,max_videos=200)
iterator.start()
batch = iterator.next()
counter = 0
while batch != None:
counter+=1
batch = iterator.nex... | [
"noreply@github.com"
] | bassemhossam.noreply@github.com |
e04c0bf21ef6ef4a8ce6e6a89f934139e335a5d8 | f098c361ee79bb8b7a8402fcf20b37f17fb36983 | /Back-End/Python/Basics/Part -1 - Functional/04 - First-Class-Functions/send_email_partial.py | f536c40a3c3798957ca6c45af1bfb96feb7036ee | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | rnsdoodi/Programming-CookBook | 4d619537a6875ffbcb42cbdaf01d80db1feba9b4 | 9bd9c105fdd823aea1c3f391f5018fd1f8f37182 | refs/heads/master | 2023-09-05T22:09:08.282385 | 2021-10-31T11:57:40 | 2021-10-31T11:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | from functools import partial
def sendmail(to, subject, body):
# code to send email
print('To:{0}, Subject:{1}, Body:{2}'.format(to, subject, body))
email_admin = 'palin@python.edu'
email_devteam = 'idle@python.edu;cleese@python.edu'
# Now when we want to send emails we would have to write things like:
# Em... | [
"58447627+Koubae@users.noreply.github.com"
] | 58447627+Koubae@users.noreply.github.com |
32d28d9915732158ab3594e0d09aa170fcda9791 | 8127f4197870cda55bdb064deef6412415844a10 | /manage.py | cc31fe6a73af46a194a920f177b85ce51bb70a2f | [] | no_license | mbaiye/django | a5480d529ef4e8abcd43e90587dcd1bb96d143e6 | ec665b577635285724c0ce5dca5f92ea344994a1 | refs/heads/main | 2023-08-12T23:50:03.200932 | 2021-09-13T20:30:42 | 2021-09-13T20:30:42 | 357,112,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DjangoP.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"moyosorebaiye@gmail.com"
] | moyosorebaiye@gmail.com |
3f01613eeb26d292392466fcaaaf61554c04e567 | 2b488c48c2d5a6996ead7ba34c99d8cd24c25052 | /api/getCreatedDate.py | 98d071724bae6717ba5239699d2de9bfcb9248ab | [
"MIT"
] | permissive | yashrastogi16/steemapi-django | 84f527ea918a48e7e7b6de2cd17d0b2e43109659 | 716455da839686e0305461e735119da9560e0a2d | refs/heads/master | 2020-03-17T13:38:36.653144 | 2018-05-05T17:51:05 | 2018-05-05T17:51:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from django.http import HttpResponse
from steem import Steem
def index(request):
try:
s = Steem(nodes=["https://api.steemit.com"])
try:
created = s.get_account(request.GET['a'])['created']
except:
created = None
return HttpResponse(created, content_type='text... | [
"moises@moises-studios.com"
] | moises@moises-studios.com |
bd373d5d4ad4b354c760abc092fd061bfaab15e3 | 777fa9edef9c1a88423762c85adaf6716244bcd5 | /app/api/v2/views/user_views.py | bf6b3b4d81eeea36ab3f84041b9bc1eeefa157af | [] | no_license | ansarisan/vigilant-spoon | 1f12c05a408ee36ab8c2371d595f48f4ec3f27ce | 50eaeac7e3f1748a8cbc2ae8fa0e4e4619a851aa | refs/heads/master | 2020-04-16T12:43:42.428369 | 2019-01-14T05:21:00 | 2019-01-14T05:21:00 | 165,593,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from flask import Flask, request, jsonify
from .. import version2
from .. models.user_model import UserModels
from werkzeug.security import check_password_hash
from werkzeug.exceptions import BadRequest
@version2.route("/users", methods=["GET"])
def hello():
""" List of all registered users """
resp = UserMod... | [
"Leewelkarani@gmail.com"
] | Leewelkarani@gmail.com |
54d30e07523c4b8a72948a31db878f4c25809cfc | 7b48cfecdf478bfffbf1cc9cb20c62100898eb6a | /mordred/mordred.py | b1a214096714b6e219f614269a6e2b424fbaef4c | [] | no_license | albertinisg/mordred | cc2cd17806cac208857f3e04b48b1cd13095e9b6 | e141e1c6ad09ea89f194c410285903542b6b557e | refs/heads/master | 2021-01-13T15:50:36.193316 | 2017-02-05T15:08:32 | 2017-02-05T15:08:32 | 76,866,269 | 0 | 0 | null | 2016-12-19T13:52:35 | 2016-12-19T13:52:35 | null | UTF-8 | Python | false | false | 12,992 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 Bitergia
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later ... | [
"acs@bitergia.com"
] | acs@bitergia.com |
300682d48f2cb716193d184532e5d3018b6188db | 8e69eee9b474587925e22413717eb82e4b024360 | /v2.5.7/toontown/shtiker/HtmlView.py | 6f65c5d143302ce38dc6ebb01cf2b6f26205dff4 | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 11,473 | py | import array, sys
from direct.showbase.DirectObject import DirectObject
from direct.task.Task import Task
from direct.directnotify import DirectNotifyGlobal
from panda3d.core import Texture
from panda3d.core import CardMaker
from panda3d.core import NodePath
from panda3d.core import Point3, Vec3, Vec4, VBase4D, Point2
... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
e9f959214d9f66ad9770deeda8fcf6daf9801267 | 11c3dc3f51ec2cab15ce0b8a3be8e8aa06f4686c | /backend/api/product/migrations/0008_auto_20200418_1644.py | bd446b559c6e9eead0c451222bd95f86e3b53465 | [
"MIT"
] | permissive | 0mri/GStore | b3797986473a211ab0581cd80948cfbec4a8a0f3 | 232cf03a6deab15ae4178933210a7431496d9dd0 | refs/heads/master | 2022-11-26T11:47:58.825764 | 2020-08-01T10:01:01 | 2020-08-01T10:01:01 | 259,165,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # Generated by Django 2.2 on 2020-04-18 13:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0007_auto_20200410_1743'),
]
operations = [
migrations.AlterField(
model_name='product',
name='price',
... | [
"omri@efra.im"
] | omri@efra.im |
8864c5625cee7be5cd7ac66b57768f555f562984 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /chrome/browser/resources/PRESUBMIT.py | e7a3e430986f0a2d2062a15497b6b5e3e4784501 | [
"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 | 5,423 | py | # Copyright 2014 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.
"""Presubmit script for files in chrome/browser/resources.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details abou... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com |
5be4e98dfe3ad8ffc97705d8d5603a2acd95de51 | 81b384655e970623333971ed063d85ebfe940ed5 | /hallo/test/modules/random/test_eight_ball.py | 09873ea43e78dbc223dba1ce75f8e3d48e17082f | [] | no_license | wirenic/Hallo | c3c8a3f11dd1f03729385f2761e0a6b216c6e1d2 | 68595816fd146c4af35e3f1bc91c58cdc6fa741c | refs/heads/master | 2023-03-18T06:50:14.111226 | 2021-02-26T07:59:33 | 2021-02-26T07:59:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | import unittest
from hallo.events import EventMessage
from hallo.inc.commons import Commons
from hallo.modules.random.eight_ball import EightBall
from hallo.test.test_base import TestBase
from hallo.test.modules.random.mock_chooser import MockChooser
class EightBallTest(TestBase, unittest.TestCase):
def setUp(se... | [
"joshua@coales.co.uk"
] | joshua@coales.co.uk |
d698a20dedf519aa173880d68d7f6e8ed00066a9 | 87e424de1cb55b221b2b5f7c239850ae81db1e5e | /venv/bin/pip | 1ae730144a641a60e28ae5ee1596bd9f20af2f23 | [] | no_license | aliu917/NetworkDesign | ac6029c6dd4a1843d946ed7f9636bf5f41aaff54 | 75441ffa27a6aab1ce5a8d20469d059dac8709c0 | refs/heads/master | 2022-11-23T10:36:35.036412 | 2020-05-02T21:19:02 | 2020-05-02T21:19:30 | 281,579,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | #!/Users/angelaliu/PycharmProjects/Angela-s-Friends-Become-Network-Designers/venv/bin/python
# 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\.py... | [
"aliu917@berkeley.edu"
] | aliu917@berkeley.edu | |
9a4f50681591049e468dde5df12c8247abf21f49 | 2e6cc4c6f5e3d532a83bc4ad2960b9ed6d9c6e5a | /releasenotes/source/conf.py | 4c6a1c415f03062d5860803d58bc5c5aef064c71 | [
"Apache-2.0"
] | permissive | Nexenta/manila | dba8cc9f18bf4ed54f2671fe8dc747bb4b7c2e38 | c7a044733b0be8b4aafd962f04a1a781b16a580b | refs/heads/master | 2023-07-22T09:14:13.728972 | 2023-07-10T16:14:47 | 2023-07-10T16:14:47 | 50,369,420 | 1 | 3 | Apache-2.0 | 2023-07-10T16:14:48 | 2016-01-25T17:55:21 | Python | UTF-8 | Python | false | false | 9,080 | py | # -*- coding: utf-8 -*-
# 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, software... | [
"tbechtold@suse.com"
] | tbechtold@suse.com |
7b0d198edd0ab71fba7c49944e970931a0dbc404 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/F5-BIGIP-APM-MIB.py | f32fb6c2ec66d59f08f2b797478be0cf5a1eb2d9 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 117,788 | py | #
# PySNMP MIB module F5-BIGIP-APM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/F5-BIGIP-APM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:57:38 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
35901516fe1969c53a2c4655c745d03c2b532bdb | 36aea5790cc01c652326f6f5a5722f13ee9d498b | /minihack/capname.py | 86b963c86d8403610ea7a9da222fde26542bfa71 | [] | no_license | kev158/NguyenTrongDuc-c4t | 2d9162a69dfa87e8ee24b93e4a72dc8811031cff | e1fba30f06c77bb7ab3271475d7ba6da9771ae09 | refs/heads/master | 2020-04-18T22:04:00.041524 | 2019-04-20T14:59:10 | 2019-04-20T14:59:10 | 167,783,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | x=input("Ho:")
y=input("Ten:")
print("ho va ten:", x,y)
| [
"trongduc811@gmail.com"
] | trongduc811@gmail.com |
c709879b1fee60eecdc644534c5f072428a76609 | 31eaed64b0caeda5c5fe3603609402034e6eb7be | /python_zumbi/py_functions/ler_e_gravar_arquivo_CSV.py | e8d6a926b35a01ceccefbd8155a6cdd818c3a912 | [] | no_license | RaphaelfsOliveira/workspace_python | 93657b581043176ecffb5783de208c0a00924832 | 90959697687b9398cc48146461750942802933b3 | refs/heads/master | 2021-01-11T17:39:49.574875 | 2017-06-28T20:55:43 | 2017-06-28T20:55:43 | 79,814,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import csv
arq_name = "test"
title = 'perfumes'
name_prod = 'perfume-feminino'
url_prod = 'http://www.epocacosmeticos.com.br/perfumes/perfume-feminino'
rows = ['teste','teste']
def save_urls(arq_name, rows):
arq = csv.writer(open(arq_name + '.csv', "w"))
arq.writerow(rows)
print(rows)
#print(arq)
| [
"raphaelbrf@gmail.com"
] | raphaelbrf@gmail.com |
3be5e6031a6351f732e4aa3e3ecf6dc74d11eb6c | f5c62bab2e95bb2dc6986ba271662ade8cae4da0 | /docs/PythonSAI/LineProperties.py | c3e7401f40524540e570646be946433183820cfd | [] | no_license | Has3ong/X3DViewer | d211b159c29523e61158eddc015bb320e4ba7c9d | c629305c24b5c25fd41d3a46816efbf1f74d0092 | refs/heads/master | 2021-06-25T16:36:46.278469 | 2021-01-03T11:26:02 | 2021-01-03T11:26:02 | 180,564,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | from . import *
# LineProperties defines a concrete node interface that extends interface X3DAppearanceChildNode.
class CLineProperties(CX3DAppearanceChildNode):
m_strNodeName = "LineProperties"
def __init__(self):
self.m_strNodeName = "LineProperties"
self.m_Parent = [None]
self.childr... | [
"khsh5592@naver.com"
] | khsh5592@naver.com |
4dc0710a308eb43121ff85c314929338cc1ad68d | f98c45d0079479b10c8276693dc31c704ccc087f | /api/apps/goods/models.py | 9f7696a669fbacebb0c26a81978d4226843c2828 | [
"MIT"
] | permissive | TasHole/tokyo | b78c84d31b5c459a8a508fd671151a825db55835 | d4e0b2cce2aae53d93cb2bbbd2ca12ff0aa6a219 | refs/heads/master | 2020-12-21T13:29:31.626154 | 2019-10-12T03:03:34 | 2019-10-12T03:03:34 | 236,445,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,857 | py | from datetime import datetime
from django.db import models
class GoodsCategory(models.Model):
"""
商品カテゴリー
"""
CATEGORY_TYPE = (
(1, "一級カテゴリー"),
(2, "二級カテゴリー"),
(3, "三級カテゴリー")
)
name = models.CharField(default="", max_length=50, verbose_name="カテゴリー名", help_text="カテゴリー名... | [
"txy1226052@gmail.com"
] | txy1226052@gmail.com |
518d0d93c4e09549a7524784f57e483f1929f267 | 59deb6307b1a55a043f944f00d9e929b97ca042c | /softdashdj/wsgi.py | c0672262f57c4bfc068f3db09f1f37cc97083d0a | [] | no_license | abykal/softdashdj | d0be04f4786bf1f72b8ea77e5875da9d104ab503 | e969d348461698f1e45392b3007952732361e9ce | refs/heads/main | 2023-06-17T10:15:19.536349 | 2021-07-09T09:16:55 | 2021-07-09T09:16:55 | 383,747,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for softdashdj 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('DJANGO_SE... | [
"abyabrkal@gmail.com"
] | abyabrkal@gmail.com |
bc7d6aaa70db83515dcb9be6218ae064862630e5 | b563e04d91dcd5169b83fbfba840c16a882f7357 | /filechanger.py | 4384db93fcb61bc1ec51600c25b56c4ab7ff7868 | [] | no_license | tomfa/filechanger | 7765d248799815f9980a3151a63f16738ef9c389 | e9d0f4e6543557eb4bb8fd84a5d3cc74466d81f5 | refs/heads/master | 2020-07-06T02:11:21.699066 | 2016-11-24T18:58:29 | 2016-11-24T18:58:29 | 73,969,133 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,591 | py | #coding: utf-8
import os, sys
IGNORED_FILE_ENDINGS = [".py", ".bat"]
VALID_ACTIONS = ["lower", "upper", "remove", "insert", "replace"]
def _get_file_ext(file):
"""
>>> _get_file_ext("C:\\Program Files\test.txt")
'.txt'
>>> _get_file_ext("/Users/tomas/.bash_rc")
''
"""
return os.path.splitext(file)[1]
def _con... | [
"tomas@webutvikling.org"
] | tomas@webutvikling.org |
7539bdceb81f567363b6d422c1297a92195ff9db | a17b81c68b9d6cba745f00aa6b1b26ca7dcd5cbc | /Final/Source Code/NBAstats/manage.py | 73181ca30d8ea012642eaf883fbd8527f97d1775 | [] | no_license | julianbcook/NBAStats | 2cd689a04c09cd66f1f6046bf087fd7721ed581e | 561c7e360fd12a2260f1b56f20bfd1d124550ff6 | refs/heads/master | 2020-04-09T06:14:34.077974 | 2019-08-09T02:36:30 | 2019-08-09T02:36:30 | 160,104,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "NBAstats.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the... | [
"jherrera1497@gmail.com"
] | jherrera1497@gmail.com |
d966c7041e447cabc4bf303ad9feffacf3c1e20b | 62902de8b202780ec95a63ea89667062fa8530ee | /2018_Fall/Data Structure/experiment 3/Huffmann Zipper.py | b0099316955a7a44062f8348f3716722c881a5cf | [] | no_license | ToniChopp/USTC-CS | 41af3cbc7aad57e6c1debbde840d1720e75b07c5 | 1cb8fd686e720fb7c98a95bcc4af7da5952c5e77 | refs/heads/master | 2023-08-28T03:59:15.172727 | 2021-06-08T15:40:30 | 2021-06-08T15:40:30 | 353,741,356 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,235 | py | import six
import tkinter as tk
import sys
window=tk.Tk()
window.title('Huffman Zipper')
window.geometry('500x400')
class HuffNode(object):
def get_wieght(self):
raise NotImplementedError(
"The Abstract Node Class doesn't define 'get_wieght'")
def isleaf(self):
raise NotImplemente... | [
"wrs792141579@mail.ustc.edu.cn"
] | wrs792141579@mail.ustc.edu.cn |
13291215a88b57ada0920e080d9c3b7a1ef0eb47 | 64e23db686e6d1e7edd74ca5952a16408d320ca8 | /daemon/lvm.py | 2369697565859ac07dea534a71bd4f106d3f2b1d | [] | no_license | pengxiaojun/ipsan | 37514472cb1a2306684c664adb41d49a685034b5 | 11b39f55417489d6c7be481f908c01dd6b75ca63 | refs/heads/master | 2021-01-18T21:34:17.533550 | 2016-03-30T08:26:29 | 2016-03-30T08:26:29 | 39,625,764 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # -*-coding: utf-8 -*-
import os
import sqlite3
import logging
import subprocess
from common import grgrant_prog
from common import database
def fetch_all_lvm():
with sqlite3.connect(database) as conn:
c = conn.cursor()
try:
c.execute('select name, path from lvms')
r = c.... | [
"pengxj@outlook.com"
] | pengxj@outlook.com |
1fc2d9f87296f7c77e0b2ba4b7fe8747035f1088 | a032cab55c78de1ca1e5b4a50a24a93b9fd67ceb | /proto/media/yuvfile.py | 572ad0000b1ce55e9b45600de65fc36af1548385 | [] | no_license | xinjuehu/ns3-study | 47a80545dedd4f1e0c663ef57d24ba67dc03574c | 994b80169058f6b14cf0d8659e7e3864274a90fd | refs/heads/master | 2021-08-29T12:27:51.373068 | 2017-12-14T00:57:15 | 2017-12-14T00:57:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,044 | py | #!/usr/bin/env python2.7
# -*- coding:utf-8 -*-
import numpy as np
from PIL import Image
import os
from jmenc import YUVEncode
class VmafComp(object):
def __init__(self, enc):
self._encoder = enc
self._root = os.path.split(os.path.realpath(__file__))[0] + os.sep
self._lib = self._root + '... | [
"zxyqwe_2004@126.com"
] | zxyqwe_2004@126.com |
d0c3ca61479d518272c9503a1c470f4db684357a | b1b45393aefc27f85d3fd3e454929b035c390be6 | /tests/func/test_bucket_it.py | b4351630ed79a6ae9ff4201d4ba9288d5a507d50 | [
"Apache-2.0"
] | permissive | Jiaming1999/baas-sdk-python | c5f579f2ae0ff591ab49af8c167845515f2c0019 | 83b0916af0e4f3167a232ac7eb06b82331adc172 | refs/heads/master | 2022-01-07T19:12:31.184660 | 2019-01-22T09:49:17 | 2019-01-22T09:49:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,954 | py | # -*- coding: utf-8 -*-
import pytest
from requests import HTTPError
import necbaas as baas
from . import util
class TestBucket(object):
service = None
# type: baas.Service
def setup(self):
self.masterService = util.create_service(master=True)
def teardown(self):
for b in self.bucke... | [
"tamura.jn@ncos.nec.co.jp"
] | tamura.jn@ncos.nec.co.jp |
88fd6306ddf23894d2552a4e2bc87e2b89a734df | e489172f6e49e1239db56c047a78a29a6ffc0b36 | /via_code_decode/code_category.py | ab1f0d754b5245b8d99d0e949b26421de5effc09 | [] | no_license | eksotama/prln-via-custom-addons | f05d0059353ae1de89ccc8d1625a896c0215cfc7 | f2b44a8af0e7bee87d52d258fca012bf44ca876f | refs/heads/master | 2020-03-25T19:49:08.117628 | 2015-12-01T07:29:43 | 2015-12-01T07:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Vikasa Infinity Anugrah, PT
# Copyright (c) 2011 - 2013 Vikasa Infinity Anugrah <http://www.infi-nity.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the ter... | [
"aero@aero.(none)"
] | aero@aero.(none) |
386d526236ceef1e4accd80ace256f69374c7b69 | 266f073facf1754763af372f3b4433337161f91a | /memegen/domain/template.py | 4c61cdbd88b6c6134c5c7f14b2935ed1e4fbc5d5 | [
"MIT"
] | permissive | jkloo/memegen | 7717104eedc0db1cad15673b426f1ebdb5119445 | 9360486066b52ede528f0c45671f81ebb168e3b3 | refs/heads/master | 2020-04-05T18:55:54.182899 | 2015-06-19T13:47:24 | 2015-06-19T13:47:24 | 37,665,345 | 0 | 0 | null | 2015-06-18T14:46:22 | 2015-06-18T14:46:22 | null | UTF-8 | Python | false | false | 950 | py | import os
from .text import Text
class Template:
"""Blank image to generate a meme."""
DEFAULTS = ("default.png", "default.jpg")
def __init__(self, key,
name=None, lines=None, aliases=None, link=None, root=None):
self.key = key
self.name = name or ""
self.lines ... | [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com |
b92f07f377e480c10c7ff21ab2ee63a1f3876c6c | 045b48b2e1a75bd45c87b5c352c3b6fc340b8902 | /Chapter06/bookmarks/images/urls.py | ca9fb60bc859d3e04c9aaa7944715a8c384e05c3 | [
"MIT"
] | permissive | fifo2019/Django-2-by-Example | c56bbad3a1c18242e832c452703619ec5e50caf4 | 1f8be1f5717e5c83feac8ded5d8c78a3b64ce864 | refs/heads/master | 2020-07-27T15:10:09.347076 | 2019-09-19T19:10:58 | 2019-09-19T19:10:58 | 209,136,653 | 1 | 0 | MIT | 2019-09-17T19:11:26 | 2019-09-17T19:11:26 | null | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from . import views
app_name = 'images'
urlpatterns = [
path('create/', views.image_create, name='create'),
path('detail/<int:id>/<slug:slug>/', views.image_detail, name='detail'),
path('like/', views.image_like, name='like'),
path('', views.image_list, name='list'),
p... | [
"prajaktam@packtpub.com"
] | prajaktam@packtpub.com |
0d2b5b6c9b8399006a452a9d38b656e956d77c3a | 9e86aa077e7d4f10e20d7bc7de1f53c5ad51716d | /t01/t01_05_e0925.py | 7cf9e40fd1f8b8795fc38c5a295fd99a94b24ae4 | [] | no_license | Klevtsovskyi/PythonAud1 | 16b77e7aaf6b7ce951cca56b8f1be386b9bb4864 | 2f6fb9dbd2960543f5a12ccca4a5bf99db21c835 | refs/heads/master | 2023-09-03T13:36:08.743459 | 2021-11-04T10:10:55 | 2021-11-04T10:10:55 | 296,278,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py |
import math
x1, y1, x2, y2, x3, y3 = [float(d) for d in input().split()]
a = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
b = ((x3 - x2) ** 2 + (y3 - y2) ** 2) ** 0.5
c = ((x3 - x1) ** 2 + (y3 - y1) ** 2) ** 0.5
P = a + b + c
p = P / 2
S = math.sqrt(p * (p - a) * (p - b) * (p - c))
print("%.4f %.4f" % (P, S))
| [
"avklevtsovskiy@gmail.com"
] | avklevtsovskiy@gmail.com |
b941f4fec6db3324f517391c833d36bd9deb602e | 1a114943c92a5db40034470ff31a79bcf8ddfc37 | /stdlib_exam/unicodedata-example-1.py | 8ab800f4c75d0ac65e9f6fbc5d28206808558553 | [] | no_license | renwl/mylinux | 1924918599efd6766c266231d66b2a7ed6f6cdd1 | 0602fc6d2b0d254a8503e57310f848fc3e1a73b4 | refs/heads/master | 2020-07-10T22:12:03.259349 | 2017-01-02T12:32:04 | 2017-01-02T12:32:04 | 66,467,007 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 396 | py | import unicodedata
for char in [u"A", u"-", u"1", u"\N{LATIN CAPITAL LETTER O WITH DIAERESIS}"]:
print repr(char),
print unicodedata.category(char),
print repr(unicodedata.decomposition(char)),
print unicodedata.decimal(char, None),
print unicodedata.numeric(char, None)
## u'A' Lu '' None None
## ... | [
"wenliang.ren@quanray.com"
] | wenliang.ren@quanray.com |
b73000ba07270793015730c3be257dec3a98ded0 | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /work/abc032_c2.py | 45cd9b0ea7fccb2e9ffe3042836077ee7d77a58a | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | n,k = map(int, input().split())
al = [int(input()) for _ in range(n)]
if 0 in al:
print(n)
exit()
r = 0
l = 0
m = 1
res = 0
while l<n:
while r<n and m*al[r]<=k:
m *= al[r]
r += 1
res = max(res, r-l)
if r==l:
r += 1
else:
m //= al[l]
l += 1
pr... | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
5f2a5eb29af62914d46eb9bdd3a8b12e5253115d | 8dd53a5d1820ae5a3efe799381a90c977afd32c4 | /contrib/devtools/copyright_header.py | 8ffcca9432a127d16002bcc5aa79aef9ddf47f4a | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | mulecore/mulecoin | 8b654817a1b78c9e98f96bfef5febaca23347f64 | e52131742938ae433463f32680837981a5cedc0f | refs/heads/master | 2023-03-28T05:37:53.552271 | 2021-03-27T03:22:13 | 2021-03-27T03:22:13 | 351,796,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,084 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Copyright (c) 2017-2019 The Raven Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import re
import fnmatch
import sys
import subprocess
impo... | [
"root@DESKTOP-AOBIGEQ.localdomain"
] | root@DESKTOP-AOBIGEQ.localdomain |
1ed13503cfc75a9de9161f83af19c119e4aa1a45 | baefe2e480adee987cf8e2b6be33da89931b0694 | /02练习/练习题01.py | f6b3b8e4a4f3c515b40976960dbf5d9c822243b5 | [] | no_license | KingTom1/StudyBySelf | d92963c606b79696f0a22a3d48c2bec707f4a653 | c6d5326c5b6a7fd74b55ac255ee8bf20cebd199b | refs/heads/master | 2020-04-04T22:08:49.617029 | 2019-01-29T06:00:37 | 2019-01-29T06:00:37 | 156,311,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | ##2.#计算一个12.5m*16.7m的矩形房间的面积和周长
a=12.5
b=16.7
mj=a*b
zc=2*(a+b)
print('面积=',mj,' 周长=',zc)
##3.#怎么得到9/2的小数结果
c=float(9/2)
print(c)
##4.#python计算中7*7*7*7.可以有多少种写法
print(pow(7,4))
print(7**4)
#写程序将温度从华氏温度转换为摄氏温度。转换公式为C=5/9*(F-32)
##F=input()
#C=5/9*(int(F)-32)
#print(C)
#一家商场在降价促销。如果购买金额50-100元(包含50元和100元)之间,会给10%的折扣,
# 如... | [
"38772091+KingTom1@users.noreply.github.com"
] | 38772091+KingTom1@users.noreply.github.com |
71619690ce1315a1467d2da14697223edb31bfb4 | 195915dab8406c2e934d0ffa8c500b1317c5e6f1 | /bestrestra/settings.py | 220f1de76ec4f3342e69561c80dc947ed02197e7 | [] | no_license | theparadoxer02/bestrestra | 28c2e46ae124a7496d889933daefe3c36dbbe9a2 | 13dccc988ee78eebc685111cb486a8c1342deb3c | refs/heads/master | 2020-12-24T19:51:07.521744 | 2017-03-26T08:09:18 | 2017-03-26T08:09:18 | 86,217,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py | """
Django settings for bestrestra project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"abhimanyu98986@gmail.com"
] | abhimanyu98986@gmail.com |
f2759daadeefa6b3f075de304b18660a2ca0c449 | 5b4c803f68e52849a1c1093aac503efc423ad132 | /UnPyc/tests/tests/CFG/2/pass/pass_try+finally_while_.py | 258bc6132acf68332fcb6f7045d21347c4336fcd | [] | no_license | Prashant-Jonny/UnPyc | 9ce5d63b1e0d2ec19c1faa48d932cc3f71f8599c | 4b9d4ab96dfc53a0b4e06972443e1402e9dc034f | refs/heads/master | 2021-01-17T12:03:17.314248 | 2013-02-22T07:22:35 | 2013-02-22T07:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | while 1:
try:
pass
finally:
pass
| [
"d.v.kornev@gmail.com"
] | d.v.kornev@gmail.com |
6e1a0f4eb1de8bb8c2e36e6c77fecf3cd02327e4 | 57237351cde7421ab42ca9a4acf563126e0c88b0 | /lianJiaProject/spiders/lianjia.py | e53e2a6f3d90178b7a64468eaa60eb15facec64a | [] | no_license | swarosky44/LianJiaSpider | 2a85d0dd22280223a6827169807115035fa9711e | 12855f4d0a8f7edd89f356eefe011891f2b5d29f | refs/heads/master | 2020-05-21T15:37:15.070565 | 2017-03-15T10:24:34 | 2017-03-15T10:24:34 | 84,630,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,033 | py | # -*- coding: utf-8 -*-
import scrapy
import requests
import re
import time
import pymysql
from BeautifulSoup import BeautifulSoup
from ..items import LianjiaprojectItem
class LianJiaProject(scrapy.Spider):
name = 'lianjiaspider'
start_urls = ['http://sh.lianjia.com/zufang/']
conn = pymysql.connect(
... | [
"swarosky44@gmail.com"
] | swarosky44@gmail.com |
65247a93f148848e738b1cc6e7f182c86c232c55 | 14bbd65228c3130676857a5023e9c1a1dd6485c9 | /env/bin/chardetect | c0db3b0948fc7827e9abcc6006729938092970b4 | [] | no_license | VadimShurhal/start_UI_automation | 087325833c53841cdddc5b47245401bd9e7271b2 | 7abd4cf3607d3a8193401b101823e54d54a333ef | refs/heads/master | 2020-03-07T01:21:14.660460 | 2018-03-28T18:41:05 | 2018-03-28T18:41:05 | 127,181,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/mastaforka/Desktop/city/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vadimshurhal@gmail.com"
] | vadimshurhal@gmail.com | |
53e45f6370195df23f3ec7adf095359fb79e466e | 478c4a01990f514813d4dd05faac39d18f0cdc9f | /clang/utils/creduce_crash_testcase.py | 7affc59f42ac64f487de68eb42f717b932ee9a5c | [
"Apache-2.0",
"LLVM-exception",
"NCSA"
] | permissive | capt-hb/llvm-project | 6632477ecc28c07244dfe961dd7b25143f84b51f | 3214ab1279d10920828877865b3286266600666d | refs/heads/master | 2022-10-09T04:24:03.973787 | 2020-06-08T14:12:29 | 2020-06-08T14:12:29 | 212,033,396 | 0 | 2 | null | 2019-10-01T07:08:10 | 2019-10-01T07:08:09 | null | UTF-8 | Python | false | false | 68,098 | py | #!/usr/bin/env python3
# PYTHON_ARGCOMPLETE_OK
import argparse
import re
import os
import tempfile
import shutil
import shlex
import subprocess
import sys
import resource
import typing
from abc import ABCMeta, abstractmethod
from enum import Enum
from pathlib import Path
lit_path = Path(__file__).parent.parent.parent ... | [
"Alexander.Richardson@cl.cam.ac.uk"
] | Alexander.Richardson@cl.cam.ac.uk |
b273a37fb3e2c9240e6ff15a4fa8e29276a8f2ed | ee878b70f2806253ca56fed05e4b81becf980b0e | /mondayweek3_inclass_palmer.py | 0b7eb6ddc5363e667b87d5021811760b8d275603 | [] | no_license | dpalmer4/clsm_palmer | b41aaf106dad06c34e5b0c54ff88caf7089de1ee | fcd48ec66f417b2cf5c35aec5b3ca5ae5bedc576 | refs/heads/master | 2020-12-19T06:52:34.698282 | 2020-06-01T20:13:34 | 2020-06-01T20:13:34 | 235,654,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 27 19:49:44 2020
@author: danpa
"""
import numpy as np
import matplotlib.pyplot as plt
x=np.random.rand(1000000)
K=1
T=1
A=1
m=1
z=1
#probability distribution of Energy
E=(-K*T*np.log(K*T*x/A))
plt.hist(E,100,density=1)
plt.xlabel("Energy")
plt.ylabel("probability")
plt... | [
"60151424+dpalmer4@users.noreply.github.com"
] | 60151424+dpalmer4@users.noreply.github.com |
7220d8b3f098d3920a210f0c1d7ea9868a3937a3 | 68ae37ca44da5bcd9e31655ad87bf5aff1385dce | /l_5/learning_user/learning_user/settings.py | 116a17c73ca70ade268ba660f317837e72b94855 | [] | no_license | Ashishprashar/django-example | b5d49902799dc1949719c9e33d15473db66c8b07 | 47970373167f4d0572961ba48af67d9fe4543e60 | refs/heads/main | 2023-04-11T04:54:03.499983 | 2021-04-11T09:45:36 | 2021-04-11T09:45:36 | 356,811,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,704 | py | """
Django settings for learning_user project.
Generated by 'django-admin startproject' using Django 3.1.7.
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 p... | [
"ak2917065@gmail.com"
] | ak2917065@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.