blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
774d14b2179139ab271f99c788c217d85202583e | f61db5940e29773aba8fc342a21de00e91a5ab2e | /base/day9/02python操作文件.py | a7f6d0023d40ea4faa5dadda9bbcdb01e1cb4462 | [] | no_license | liyaozr/project | c17a9dcbcda38fe9a15ec4c41a01242a13695991 | 0b0fc10e267ceb19f6792b490fede177035459fe | refs/heads/master | 2020-11-29T18:38:03.297369 | 2020-03-10T01:11:00 | 2020-03-10T01:11:00 | 230,190,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | """
============================
Author:柠檬班-木森
Time:2020/1/13 20:28
E-mail:[email protected]
Company:湖南零檬信息技术有限公司
============================
"""
"""
python操作文件
open的常用参数:
第一个:要打开的文件名字或者文件路径
第二个参数:文件打开的模式
r:只读模式
rb:只读模式,以二进制的编码格式去打开文件
第三个参数:
encoding:用来指定打开文件的编码格式(使用rb的时候,不需要加该参数)
"""
# 读取同级目录下的文件,... | [
"[email protected]"
] | |
de1275ebc2f6aa4b9161b36c637abba3cfb8339b | 055b7c4c2118e6e862cfae344d722e8e90534cb4 | /config.py | 5aa53ff4827b52082755f58b81f4fb855ebf1ae7 | [] | no_license | Omulosi/iReporter | 745b3194f5a06371ca01c4d790cac763a09cf89f | db80d76b84d786330fb389d94c2623cbbad13be9 | refs/heads/develop | 2022-12-09T13:42:32.856875 | 2019-04-23T04:14:27 | 2019-04-23T04:14:27 | 158,638,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py |
'''
instance.config
------------------
This module provides default configuration values.
'''
import os
from datetime import timedelta
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
class Config:
'''
Base configurat... | [
"[email protected]"
] | |
2355da4fe0a15ebbd2427a4c7f7b891e2e2ad149 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/pose_estimation/Hourglass_for_PyTorch/mmpose-master/demo/mmdetection_cfg/faster_rcnn_r50_fpn_1x_coco.py | 4fb90266f00299d6ac45e49f928e81c2c3eb7535 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,403 | py | # -*- coding: utf-8 -*-
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 app... | [
"[email protected]"
] | |
dabffd515b7dd2a0abf3bf15380ace94082f2145 | ed2a234be16e5ac95496cd959b531542a087faf6 | /Functions Advanced - Exercise/10. Keyword Arguments Length.py | 1b03e732297da99ed3703c06b09f393e7c4587db | [] | no_license | Spas52/Python_Advanced | efc73eda5d10707f1f1a7407cc697448a985f014 | 7082c8947abba9b348f8372f68d0fc10ffa57fc1 | refs/heads/main | 2023-06-04T13:05:46.394482 | 2021-06-24T00:01:37 | 2021-06-24T00:01:37 | 379,756,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | def kwargs_length(**kwargs):
return len(kwargs) | [
"[email protected]"
] | |
bc3798906716aa41be8beb4ecc2a2c58459a8f86 | dc767b48d46e2f6b9851ce61914e880fc95fe520 | /myshop/shop/migrations/0001_initial.py | cca6008d38c1c259f458a69c4f61f46f334c2252 | [] | no_license | EdmilsonSantana/django-by-example | c06081a1a3915aaf3996d017fea91c8273cbe2e0 | 7c895b55b8f6fcc05a2d5cd2181bf207dc9256fc | refs/heads/master | 2021-01-12T02:58:49.261515 | 2017-02-28T20:05:29 | 2017-02-28T20:05:29 | 78,144,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-16 23:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"[email protected]"
] | |
78a758b50b7c3ecb4bb6e5761d61565d2eb317a5 | 2c5b25d0b5d6ba66d013251f93ebf4c642fd787b | /wrong_answer_codes/Contiguous_Array/Contiguous Array_324757576.py | 1c620fdc45f25037006caf70d00f3c54a4797b19 | [] | no_license | abhinay-b/Leetcode-Submissions | da8099ac54b5d36ae23db42580064d0f9d9bc63b | d034705813f3f908f555f1d1677b827af751bf42 | refs/heads/master | 2022-10-15T22:09:36.328967 | 2020-06-14T15:39:17 | 2020-06-14T15:39:17 | 259,984,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | class Solution:
def findMaxLength(self, nums: List[int]) -> int:
count = [0]*2
start = end = 0
maxVal = 0
for idx,num in enumerate(nums):
count[num] += 1
diff = abs(count[0] - count[1])
# print(diff,start,end)
if diff > 1:
... | [
"[email protected]"
] | |
edcb724454b921fe8dc091a316470e10f89459df | 6cea6b8cfeef78b433e296c38ef11f4637609f20 | /src/collectors/ipmisensor/test/testipmisensor.py | 66a79164c5d9b0f45141583e0676c31a4b5b8902 | [
"MIT"
] | permissive | philipcristiano/Diamond | b659d577ec054c06ab99308d6c2ba3163de84e1a | 577270ea820af597458aa5d3325367608cd37845 | refs/heads/master | 2021-01-18T10:04:59.057835 | 2012-08-02T04:08:02 | 2012-08-02T04:08:02 | 3,140,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | #!/usr/bin/python
################################################################################
from test import *
from diamond.collector import Collector
from ipmisensor import IPMISensorCollector
################################################################################
class TestIPMISensorCollector(Coll... | [
"[email protected]"
] | |
5dfe38fc03c0375b3b51d023a6dd2aa1cca6b25d | ac42f1d918bdbd229968cea0954ed75250acd55c | /admin/dashboard/openstack_dashboard/dashboards/physical/hosts/compute/tests.py | 47aa906803025be9db313abb19823b19ec492fcc | [
"Apache-2.0"
] | permissive | naanal/product | 016e18fd2f35608a0d8b8e5d2f75b653bac7111a | bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7 | refs/heads/master | 2020-04-03T22:40:48.712243 | 2016-11-15T11:22:00 | 2016-11-15T11:22:00 | 57,004,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,056 | py | # 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
# distributed under th... | [
"[email protected]"
] | |
a4bcbc3ea13c6d7161096668057371a82bc97ec8 | e7ea544475ebfa70ebdf5d5949bde9e23edc60ba | /gbp/scripts/common/buildpackage.py | e1edfb29587dfad1895660c095e2fe13141cba7b | [] | no_license | dcoshea/git-buildpackage | 80cb7d890222488663a09e3d790fc5e985f791b9 | f4aa76bfcda1ded4649cd071b123ef8d7bf2344d | refs/heads/master | 2020-05-26T21:05:37.574986 | 2017-02-19T13:17:11 | 2017-02-19T13:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,061 | py | # vim: set fileencoding=utf-8 :
#
# (C) 2006-2011, 2016 Guido Guenther <[email protected]>
# (C) 2012 Intel Corporation <[email protected]>
# 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 Softwa... | [
"[email protected]"
] | |
a46afda8041485109144a60243600a990bd2b7d1 | c0d5b7f8e48a26c6ddc63c76c43ab5b397c00028 | /tests/columns/test_array.py | 731e15ff8b962d66534e989094fe5f8cbef23a93 | [
"MIT"
] | permissive | aminalaee/piccolo | f6c5e5e1c128568f7ccb9ad1dfb4746acedae262 | af8d2d45294dcd84f4f9b6028752aa45b699ec15 | refs/heads/master | 2023-07-14T09:44:04.160116 | 2021-07-11T22:56:27 | 2021-07-11T22:56:27 | 386,398,401 | 0 | 0 | MIT | 2021-07-15T19:32:50 | 2021-07-15T19:08:17 | null | UTF-8 | Python | false | false | 2,199 | py | from unittest import TestCase
from piccolo.table import Table
from piccolo.columns.column_types import Array, Integer
from tests.base import postgres_only
class MyTable(Table):
value = Array(base_column=Integer())
class TestArrayPostgres(TestCase):
"""
Make sure an Array column can be created.
"""
... | [
"[email protected]"
] | |
3f259779a113f38727e5e331c041593a3830edfe | caaf56727714f8c03be38710bc7d0434c3ec5b11 | /tests/components/telegram/test_notify.py | 7488db49d9ea58db8f78e93cab0842fa686ee119 | [
"Apache-2.0"
] | permissive | tchellomello/home-assistant | c8db86880619d7467901fd145f27e0f2f1a79acc | ed4ab403deaed9e8c95e0db728477fcb012bf4fa | refs/heads/dev | 2023-01-27T23:48:17.550374 | 2020-09-18T01:18:55 | 2020-09-18T01:18:55 | 62,690,461 | 8 | 1 | Apache-2.0 | 2023-01-13T06:02:03 | 2016-07-06T04:13:49 | Python | UTF-8 | Python | false | false | 1,598 | py | """The tests for the telegram.notify platform."""
from os import path
from homeassistant import config as hass_config
import homeassistant.components.notify as notify
from homeassistant.components.telegram import DOMAIN
from homeassistant.const import SERVICE_RELOAD
from homeassistant.setup import async_setup_componen... | [
"[email protected]"
] | |
3169f03ad1a82380f124de333e6a15857ecf1ae8 | 4fc21c3f8dca563ce8fe0975b5d60f68d882768d | /GodwillOnyewuchi/Phase 1/Python Basic 2/day 12 task/task10.py | a4924e40fbc8159a266fbfd0579729acab934db6 | [
"MIT"
] | permissive | Uche-Clare/python-challenge-solutions | 17e53dbedbff2f33e242cf8011696b3059cd96e9 | 49ede6204ee0a82d5507a19fbc7590a1ae10f058 | refs/heads/master | 2022-11-13T15:06:52.846937 | 2020-07-10T20:59:37 | 2020-07-10T20:59:37 | 266,404,840 | 1 | 0 | MIT | 2020-05-23T19:24:56 | 2020-05-23T19:24:55 | null | UTF-8 | Python | false | false | 290 | py | # Python program to get numbers divisible by fifteen from a list using an anonymous function
def divisibleby15(lists):
newList = []
for i in lists:
if i % 15 == 0:
newList.append(i)
return newList
print(divisibleby15([23, 56, 12, 15, 45, 23, 70, 678, 90])) | [
"[email protected]"
] | |
ce6667dc95fdefc8be193b41ae44902d4600a89a | 7a9c01f7029e74c697100e244d26c72d0e283d47 | /models/amenity.py | 9adbf8d9f5418e8b43eeb584cccd1acbde12617c | [] | no_license | toyugo/holbertonschool-AirBnB_clone | 63321296ecee98b1a0cda39c7b155cc2ea5ececb | 5edaeafb6516130f2027b505fe8b168f6f9de174 | refs/heads/main | 2023-03-21T06:32:18.728878 | 2021-03-04T13:08:56 | 2021-03-04T13:08:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #!/usr/bin/python3
""" Module Amenity """
from models.base_model import BaseModel
class Amenity(BaseModel):
""" Class Amenity base en BaseModel """
name = ""
| [
"[email protected]"
] | |
c4b2fcaa8f6499cdca69575ead3662b305b1ccd5 | 4ed33dba672aa6aaef42698ef8437c872b078d37 | /backend/home/migrations/0001_load_initial_data.py | e78b5b69ad3761f691200103468335142fc62434 | [] | no_license | crowdbotics-apps/flat-heart-27928 | aecb93c66e39e94e01cef7fe9506effe994cde18 | ce209de8910b1e9f006814b58a05aed1eeada32d | refs/heads/master | 2023-05-26T14:51:41.045373 | 2021-06-11T20:01:34 | 2021-06-11T20:01:34 | 376,130,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "flat-heart-27928.botics.co"
site_params = {
"name": "Flat Heart",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_cr... | [
"[email protected]"
] | |
6bc05f1c24acd83be18b9337a531c43c42f39d63 | 6e928e1651713f945c980bca6d6c02ac5dce249a | /task1/5.py | 64b92c59d071daed1a062f5bbc9c61742d9564d9 | [] | no_license | Akzhan12/pp2 | 97334158b442383df32583ee6c0b9cab92a3ef45 | 56e33fd9119955ea8349172bf3f2cc5fbd814142 | refs/heads/main | 2023-06-28T08:30:11.068397 | 2021-07-29T08:34:43 | 2021-07-29T08:34:43 | 337,359,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | a = list(map(int,input().split()))
n = int(input()) % len(a)
if n < 0:
n = abs(n)
print(*a[n:],end = " ")
print(*a[0:n])
else:
n = abs(n)
print(*a[-n:],end = " ")
print(*a[0:-n]) | [
"[email protected]"
] | |
b1571f62c847a20ecf7624a5be9945287afced54 | 704976ea552111c6a5af9cd7cb62b9d9abaf3996 | /pypy/module/zlib/test/test_zlib.py | 35fd7147de34051908c2d1acb58fc941e3703da9 | [
"BSD-3-Clause"
] | permissive | mesalock-linux/mesapy | 4f02c5819ce7f2f6e249d34840f1aa097577645d | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | refs/heads/mesapy2.7 | 2023-08-16T21:33:02.239581 | 2019-08-13T10:29:43 | 2019-08-13T18:06:45 | 136,080,721 | 396 | 33 | NOASSERTION | 2020-04-01T03:05:18 | 2018-06-04T20:45:17 | Python | UTF-8 | Python | false | false | 10,362 | py | """
Tests for the zlib module.
"""
import sys
try:
import zlib
except ImportError:
import py; py.test.skip("no zlib module on this host Python")
try:
from pypy.module.zlib import interp_zlib
except ImportError:
import py; py.test.skip("no zlib C library on this machine")
def test_unsigned_to_signed_3... | [
"[email protected]"
] | |
30d22e648e82216e843989a09b25df3c9431291e | 747f759311d404af31c0f80029e88098193f6269 | /addons/library/library_editor_supplier.py | d50451b7ea1eab1cf3f62f26950986f7861e6e54 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | /home/openerp/production/extra-addons/library/library_editor_supplier.py | [
"[email protected]"
] | |
e5ab44dc776222c231274dd703bcd5aebdb8b110 | f207586e34b37b13ee6012ea08f174e302fa0078 | /mimo/util/decorate.py | cf41979d6dfcac6b024ecd468df4e0901d8627e7 | [
"MIT"
] | permissive | pnickl/mimo | 92b7858108e077ff43082f15f635d1205120b143 | 81c4bbd2594e2136445009eae752ab8a1602a1cf | refs/heads/master | 2022-12-24T02:10:34.838878 | 2020-08-04T19:24:21 | 2020-08-04T19:24:21 | 302,394,694 | 2 | 0 | MIT | 2020-10-08T16:07:26 | 2020-10-08T16:07:25 | null | UTF-8 | Python | false | false | 1,796 | py | def pass_obs_arg(f):
def wrapper(self, obs=None, **kwargs):
if obs is None:
assert self.has_data()
obs = [_obs for _obs in self.obs]
else:
obs = obs if isinstance(obs, list) else [obs]
return f(self, obs, **kwargs)
return wrapper
def pass_obs_and_la... | [
"[email protected]"
] | |
b9c5ca1798fcaffb1707909fd79abe2418769bda | 04ac33f68827aeef7d5bc441d10979143828ef1a | /contactSpider.py | 037682c5a672fc9a935a9454eaef442e24e5a338 | [] | no_license | samshultz/realtor_agent_spider | a06e99af15fc78902c5f44fcb91dd6d55490b14f | 4550301a9e4733ad19bd6fd904e079037847bbf7 | refs/heads/master | 2021-07-05T04:28:17.703484 | 2017-09-30T02:22:34 | 2017-09-30T02:22:34 | 105,333,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | import scrapy
class ContactSpider(scrapy.Spider):
# name of the spider
name = "contacts"
# the url to start scraping from
start_urls = [
"https://www.realtor.com/realestateagents/Los-Angeles_CA"
]
def parse(self, response):
# check the page for the name of the agent...
... | [
"[email protected]"
] | |
43078cfccfee9f2bbde2f0af3de46006b564a128 | 0725ed7ab6be91dfc0b16fef12a8871c08917465 | /tree/is_bst.py | 26ed670c86a2703f7550da0fa62852b62ed81d7b | [] | no_license | siddhism/leetcode | 8cb194156893fd6e9681ef50c84f0355d09e9026 | 877933424e6d2c590d6ac53db18bee951a3d9de4 | refs/heads/master | 2023-03-28T08:14:12.927995 | 2021-03-24T10:46:20 | 2021-03-24T10:46:20 | 212,151,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # A binary tree node
import sys
class Node:
# Constructor to create a new node
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def is_bst(node, min_limit, max_limit):
if not node:
return True
if not (min_limit < node.data < max_limit):
... | [
"[email protected]"
] | |
3987405f70f48d91c8ac18c9912585cb8b9c44d3 | 5ba345bc16519d892fb533451eeface7c76a7d48 | /Classification/Logistic-Regression/LogisticRegression.py | 33ac92c5f131dde88d715d277e16cca84ae2164e | [] | no_license | sayands/machine-learning-projects | 337fd2aeb63814b6c47c9b2597bfe1ce4399a1f1 | 8e516c0ac3a96a4058d063b86559ded9be654c35 | refs/heads/master | 2021-05-06T16:26:37.008873 | 2018-08-02T20:27:20 | 2018-08-02T20:27:20 | 113,749,745 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | #Logistic Regression
#Importing libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, 2:4].values
Y = dataset.iloc[:, 4].values
#Splitting the dataset into the Training Set and Test set
from sklearn... | [
"[email protected]"
] | |
fc5d1edb3647e18a663c8c43b897809c51abbf89 | 4c2a391f2f4d7361f2c7111b6d63edf67056f327 | /model/oauth.py | 4c650a7683108b8d5c4e420c7b90b52c00c2172a | [] | no_license | niyoufa/tnd_server | 6d69db32ceb5a6a14417b3e8b0f021fdc0e7e79c | 59c9ac6769773573685be215b4674d77545fe127 | refs/heads/master | 2020-06-23T15:43:28.891619 | 2016-08-26T03:44:01 | 2016-08-26T03:44:01 | 66,613,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # -*- coding: utf-8 -*-
"""
author : youfaNi
date : 2016-07-13
"""
from bson.son import SON
import renren.model.model as model
import renren.libs.mongolib as mongo
import renren.consts as consts
import renren.libs.utils as utils
class OauthModel(model.BaseModel,model.Singleton):
__name = "renren.oauth_cl... | [
"[email protected]"
] | |
ea71dcf4271de4375a1cd100421e6cb04179b2a8 | ae1d96991a256b905ab8793ebc6063a9628cef02 | /muddery/combat/normal_combat_handler.py | f572690ce4f9a5ce3b3ed3411737fa890fdf193b | [
"BSD-3-Clause"
] | permissive | FWiner/muddery | bd2028e431dbeae16d6db9806cd2e9a7f4c5f22d | f6daa5fab6007e7c830e301718154fbc7b78b2bb | refs/heads/master | 2020-07-31T23:02:54.165362 | 2019-09-04T13:29:59 | 2019-09-04T13:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,083 | py | """
Combat handler.
"""
from django.conf import settings
from muddery.utils import defines
from muddery.utils.builder import delete_object
from muddery.combat.base_combat_handler import BaseCombatHandler
class NormalCombatHandler(BaseCombatHandler):
"""
This implements the normal combat handler.
"""
... | [
"[email protected]"
] | |
f3a56eab63df2e25ca7185b2b359bdc948581b9a | f20f3ab827eab5ad6a3f97b35d10d7afe2f118d5 | /__init__.py | e910486ed0e4b8b6f2fb6655c4441fbbf9959a91 | [
"MIT"
] | permissive | bradparks/Sprytile__blender_add_on_sprite_sheets_tile_maps | 9adb618bbd0e1f4e9334b8f4e534cff6fa9cc9d7 | 421c7efe3ea9ebd7e0f8dca7fb797eca597964d2 | refs/heads/master | 2021-05-08T04:37:22.745456 | 2017-10-12T15:59:17 | 2017-10-12T15:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,891 | py | bl_info = {
"name": "Sprytile Painter",
"author": "Jeiel Aranal",
"version": (0, 4, 24),
"blender": (2, 7, 7),
"description": "A utility for creating tile based low spec scenes with paint/map editor tools",
"location": "View3D > UI panel > Sprytile",
"wiki_url": "https://chemikhazi.github.io... | [
"[email protected]"
] | |
9aefb0ae5bd605c4dae7ca200d14f1508eb9fb11 | f0755c0ca52a0a278d75b76ee5d9b547d9668c0e | /atcoder.jp/abc084/abc084_d/Main.py | 672f72253da43a227e962b8055a0caa9001017ec | [] | no_license | nasama/procon | 7b70c9a67732d7d92775c40535fd54c0a5e91e25 | cd012065162650b8a5250a30a7acb1c853955b90 | refs/heads/master | 2022-07-28T12:37:21.113636 | 2020-05-19T14:11:30 | 2020-05-19T14:11:30 | 263,695,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | def primes(n):
is_prime = [1]*(n+1)
is_prime[0] = 0
is_prime[1] = 0
for i in range(2, int(n**0.5) + 1):
if not is_prime[i]:
continue
for j in range(i*2,n+1,i):
is_prime[j] = 0
return is_prime
max = 100001
prime = primes(max)
a = [0]*max
for i in range(max):
... | [
"[email protected]"
] | |
fb95a962370d7b4bb6c6d781611394a5ad69f45a | e3fe234510d19c120d56f9a2876b7d508d306212 | /17tensorflow/5_lm/ngram/ngram.py | 6146628f947c8ebec2603563c38c067b7d61b32d | [
"Apache-2.0"
] | permissive | KEVINYZY/python-tutorial | 78b348fb2fa2eb1c8c55d016affb6a9534332997 | ae43536908eb8af56c34865f52a6e8644edc4fa3 | refs/heads/master | 2020-03-30T02:11:03.394073 | 2019-12-03T00:52:10 | 2019-12-03T00:52:10 | 150,617,875 | 0 | 0 | Apache-2.0 | 2018-09-27T16:39:29 | 2018-09-27T16:39:28 | null | UTF-8 | Python | false | false | 3,057 | py | # -*- coding: utf-8 -*-
# Author: XuMing <[email protected]>
# Data: 17/11/29
# Brief:
"""读取语料 生成 n-gram 模型"""
from collections import Counter, defaultdict
from pprint import pprint
from random import random
import jieba
N = 2 # N元模型
START = '$$' # 句首的 token
BREAK = '。!?' # 作为句子结束的符号
IGNORE = '\n “”"《》〈〉()*' # ... | [
"[email protected]"
] | |
5630da04cc30441eabf72f420f1a24217fbaba01 | e2423781704811bf0a0ecc07f9cb29d0a044ac48 | /tensorflow_datasets/image/bccd/dummy_data_generation.py | bddde3b24d939e2a794def3d52ba9eee64bd8de6 | [
"Apache-2.0"
] | permissive | mbbessa/datasets | af2506a8cf5c46c33143d6e0266ba50d8b4c3fcc | 2a7e8e793197637948ea0e0be4aa02a6aa2f7f55 | refs/heads/master | 2021-11-30T22:28:55.825453 | 2021-11-19T20:49:49 | 2021-11-19T20:52:42 | 171,528,015 | 0 | 0 | Apache-2.0 | 2019-02-19T18:34:26 | 2019-02-19T18:34:26 | null | UTF-8 | Python | false | false | 5,387 | py | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets 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 appl... | [
"[email protected]"
] | |
a1cc5cf11e5624b2b3f89755554f97571fd1a25b | f759188e90610e08b4d85358abeaf27f2796964e | /tinyos-main/apps/PIR_Sensor/util/Listener.py | 464d97ddd4475819140e31d39a6f13222a0dc46e | [] | no_license | SoftwareDefinedBuildings/KetiMotes | 5555626231edb1cb76cb96bb4134a52d1d88bbb1 | b6dfea4b7d3dd384dd78a91ce62e7990cd337009 | refs/heads/master | 2020-04-06T23:55:42.151717 | 2014-09-11T18:25:17 | 2014-09-11T18:25:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py |
import socket
import UdpReport
import re
import sys
import time
import threading
port = 7000
stats = {}
class PrintStats(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.daemon = True
def run(self):
while True:
self.print_stats()
tim... | [
"[email protected]"
] | |
5f68224654afb98c99125e28a341ed8dd9de664a | 316c473d020f514ae81b7485b10f6556cf914fc0 | /scrapycrawlspidertest/scrapycrawlspidertest/spiders/universal.py | 38f44ee1edb89a378c243113f5a699a7ccc43884 | [
"Apache-2.0"
] | permissive | silianpan/seal-spider-demo | ca96b12d4b6fff8fe57f8e7822b7c0eb616fc7f3 | 7bdb77465a10a146c4cea8ad5d9ac589c16edd53 | refs/heads/master | 2023-06-20T03:47:04.572721 | 2023-05-24T06:27:13 | 2023-05-24T06:27:13 | 189,963,452 | 1 | 1 | Apache-2.0 | 2022-12-08T03:24:54 | 2019-06-03T08:15:56 | Python | UTF-8 | Python | false | false | 1,855 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from scrapycrawlspidertest.utils import get_config
from scrapycrawlspidertest.items import *
from scrapycrawlspidertest.wraps import *
from scrapycrawlspidertest import urls
class Univers... | [
"[email protected]"
] | |
a5d5b5d8d00dd3c8d9faee9c11aeea428df67616 | fd94ec2d4cfcdb8aa41c2ecf92504a6502987b54 | /scripts/EmuMarker.py | 27dad104e3e1fda0c3243804da0f8a2a8f3c2f84 | [
"LicenseRef-scancode-glut",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Unlicense",
"MIT",
"SGI-B-2.0"
] | permissive | greggman/regal | 70bccfd935c42f2a532471f84f164b9992886bce | 60d5f5f060dcbfa6ff2cdd5bf8823fd5a9cf11db | refs/heads/master | 2020-12-30T19:11:25.692166 | 2012-09-12T14:39:39 | 2012-09-12T14:39:39 | 5,432,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | #!/usr/bin/python -B
formulae = {
'Insert' : {
'entries' : [ 'glInsertEventMarkerEXT' ],
'impl' : [ '_context->marker->InsertEventMarker( _context, ${arg0plus} );',
'RegalAssert(_context->info);',
'if (!_context->info->gl_ext_debug_marker) return;' ]
},
... | [
"[email protected]"
] | |
f4acaf7682a9a1e14d09298963943cca14536cb0 | 7b38197bb4772724f5e875f9d3b79d61050a072b | /BioSTEAM 1.x.x/biorefineries/cornstover/_plot_spearman.py | 0c107226c916f5a7750fac6a89132a83827bf351 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yalinli2/Bioindustrial-Park | fac6d58d82af56f5081f529c3ee0c65a70fe7bd3 | 196e2d60ec9bf0466ef804d036c995b89bc72f72 | refs/heads/master | 2021-09-24T11:24:26.586458 | 2021-09-09T14:05:33 | 2021-09-09T14:05:33 | 232,337,200 | 2 | 0 | MIT | 2021-09-09T14:05:34 | 2020-01-07T14:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,749 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 16 00:02:57 2019
@author: yoelr
"""
import pandas as pd
from biosteam import colors
from biosteam.evaluation.evaluation_tools import plot_spearman
# %% Plot Spearman correlations
# Replacement parameter labels
replacement_labels = {
'Stream-Ethanol price': 'Ethanol... | [
"[email protected]"
] | |
507716ccdcdc0b231befe78143fdbf537dbd0212 | 64cee8c8f33ae6be8edf0daa7a3a83efee86c82c | /cemba_data/tools/hdf5/netndf.py | 81594d52043eb0370f2dfeaaea81a3b7c7138127 | [
"MIT"
] | permissive | shengyongniu/cemba_data | 52881061dac63c5dca4bbedf9bc7f1f345b13575 | 6d076ed7f19ac76650d91fe9172393cc6c10e686 | refs/heads/master | 2021-10-09T14:31:43.849987 | 2018-12-29T23:19:53 | 2018-12-29T23:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,259 | py | import numpy as np
import pandas as pd
import xarray as xr
from anndata import AnnData
def _calculate_posterior_mc_rate(mc_array, cov_array, var_dim='chrom100k',
normalize_per_cell=True, clip_norm_value=10):
raw_rate = mc_array / cov_array
cell_rate_mean = raw_rate.mean(dim=va... | [
"[email protected]"
] | |
9a1a1bdc04ee35d0744eed400f9333d11541d4ad | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /030_control_flow/003_for/_exercises/_templates/Python 3 Most Nessesary/4.3.Listing 4.7. Enumeration of elements of the list of tuples.py | 8299ab5805fc0af5d024b0635257ef3563f010f0 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 132 | py | # # -*- coding: utf-8 -*-
#
# arr = [(1, 2), (3, 4)] # Список кортежей
# ___ a, b __ ?
# print(a, b)
| [
"[email protected]"
] | |
5cc4b052f8af56030d1a18a236cfee198c0e14a0 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/gst/_gst/Date.py | b079f8261188a978cb48855b5781e2227e2dea1e | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | # encoding: utf-8
# module gst._gst
# from /usr/lib64/python2.6/site-packages/gst-0.10/gst/_gst.so
# by generator 1.136
# no doc
# imports
import gobject as __gobject
import gobject._gobject as __gobject__gobject
import gst as __gst
class Date(__gobject.GBoxed):
# no doc
def __init__(self, *args, **kwargs): ... | [
"[email protected]"
] | |
71f09344d33d23e6d19b7a1d9894d79eb5f34f8d | 986236feac0d098977dc3f98b705d68155048233 | /0x06-python-classes/100-singly_linked_list.py | 1e413ac97d382295ceaf0a64d2ca75f43de9041b | [] | no_license | Noeuclides/holbertonschool-higher_level_programming | 1f1ec5731840f39ab988593ace190403f701ee67 | fcf0d733b73904a848b5718266a644c4f6452166 | refs/heads/master | 2020-05-18T03:28:56.901071 | 2019-10-03T17:30:20 | 2019-10-03T17:30:20 | 184,145,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/python3
class Node:
def __init__(self, data=0):
if type(size) is not int:
raise TypeError("size must be an integer")
elif size < 0:
raise ValueError("size must be >= 0")
else:
self.__size = size
def data(self):
return(self.__size **... | [
"[email protected]"
] | |
823b24b4795ed11e530fa7bbbbd864226b91e019 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-4168.py | aaa834c9f7fe2dfdd97888d1a63ea8e948edcaf2 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,348 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"[email protected]"
] | |
4b3efe39bb0661581d9f7709df149ac517e2a194 | 292cec77b5003a2f80360d0aee77556d12d990f7 | /src/bentoml/_internal/resource.py | b1e467fceda9f9dc881734dfe05cc85bb1bd5c39 | [
"Apache-2.0"
] | permissive | yubozhao/BentoML | 194a6ec804cc1c6dbe7930c49948b6707cbc3c5f | d4bb5cbb90f9a8ad162a417103433b9c33b39c84 | refs/heads/master | 2022-12-17T00:18:55.555897 | 2022-12-06T00:11:39 | 2022-12-06T00:11:39 | 178,978,385 | 3 | 0 | Apache-2.0 | 2020-12-01T18:17:15 | 2019-04-02T01:53:53 | Python | UTF-8 | Python | false | false | 9,725 | py | from __future__ import annotations
import os
import re
import math
import typing as t
import logging
import functools
from abc import ABC
from abc import abstractmethod
import psutil
from ..exceptions import BentoMLConfigException
logger = logging.getLogger(__name__)
_RESOURCE_REGISTRY: dict[str, t.Type[Resource[t... | [
"[email protected]"
] | |
c2ef80a416cc1c202f00d685ef27f6d11b3faf08 | 4fed7ad67d3bb7da502acaf347dff542971c1c4c | /app.py | 24f400a3d432d02740af9391a5b196df5498a484 | [
"MIT"
] | permissive | coolsnake/WebFtp | b62437b895261f3083d3f7d3550b541116b30cef | d76bce2391d393d2eeb92be7700dd49a1663e696 | refs/heads/master | 2021-04-15T14:05:50.752335 | 2017-09-25T10:59:50 | 2017-09-25T10:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | #!/usr/bin/env python3
import tornado.ioloop
import tornado.web
from controllers import index
from controllers import account
settings = {
'template_path': 'template',
'static_path': 'static',
'static_url_prefix': '/static/',
'cookie_secret': '43809138f51b96f8ac24e79b3a2cb482',
'login_url': '/logi... | [
"[email protected]"
] | |
9c26acdd9f243cc659a6ae97ad61d70e3a774709 | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/src/programy/spelling/textblob_spelling.py | 17dce9132a295389213305638b9ac113ad1c6fc2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"[email protected]"
] | |
2146739f9834f0af7d112fc44b3b75d696d80c39 | f1a51bb6cb5810a2dfac27cbbe32f5c5761bd8ec | /angrmanagement/data/object_container.py | 63b931645b8e1c14d8a5902e8eb52b570ff38979 | [
"BSD-2-Clause"
] | permissive | sraboy/angr-management | 904848408e9eec6662e16d9b69a0991b0374d3c6 | 4c4c1df7bce7083547ae38a19709f33dd10b7e22 | refs/heads/master | 2020-04-30T17:23:24.427321 | 2019-09-21T09:34:21 | 2019-09-21T09:34:21 | 176,977,927 | 0 | 1 | BSD-2-Clause | 2019-03-21T15:52:06 | 2019-03-21T15:52:06 | null | UTF-8 | Python | false | false | 2,374 | py |
from ..utils.namegen import NameGenerator
class EventSentinel:
def __init__(self):
self.am_subscribers = []
def am_subscribe(self, listener):
if listener is not None:
self.am_subscribers.append(listener)
def am_unsubscribe(self, listener):
if listener is not None:
... | [
"[email protected]"
] | |
0d62359f4aa4b91e0b20b2e5dc8b3ae4daab4878 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03292/s123105438.py | 9c05d46bc0b47e9e16017b20ebf76cfb8fcba1cc | [] | 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 | 69 | py | a,b,c = sorted(map(int,input().split()))
print(max(a,b,c)-min(a,b,c)) | [
"[email protected]"
] | |
a4f282d077acf231c813e0781067964299e282f7 | 6f50d88145923deba55f5df5f88e872a46504f71 | /siteconfig/utils.py | e51be1affa4f0bc68f3bca34d399fc656a2d03cf | [] | no_license | vfxetc/siteconfig | ce85cff95a865a8ab6271f305b70643c364c1952 | 7124e941cf5068a70f07d0011902af797b74657e | refs/heads/master | 2021-09-12T13:00:40.933138 | 2017-08-04T15:08:42 | 2017-08-04T15:08:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import re
def normalize_key(input_):
input_ = re.sub(r'[^\w\[\]]+', '_', input_)
input_ = re.sub(r'^(\w+)', lambda m: m.group(1).upper(), input_)
return input_
def shell_escape(input_):
return str(input_).replace('"', '\\"')
def shell_quote(input_):
return '"%s"' % shell_escape(input_)
| [
"[email protected]"
] | |
30054b750cf65f48a5410dc67d6c9fd17cee69f1 | 53947441840357e3966eda580c6a5de3e0b92613 | /blaze/module/qualname.py | 65b9d324944ebfcc5fd2d0ce2f7ac4a97f5915c3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | jedbrown/blaze-core | 8b9eda6267253e1609a7382197ffdf67a41407f6 | b2f0d350f5cb7b802819ca46738bacdbe70db13a | refs/heads/master | 2021-01-17T06:24:38.307059 | 2013-04-04T18:24:36 | 2013-04-04T18:24:36 | 9,283,188 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | #------------------------------------------------------------------------
# Names
#------------------------------------------------------------------------
class Namespace(object):
def __init__(self, names):
self.names = names
def show(self):
return '.'.join(self.names)
class QualName(object)... | [
"[email protected]"
] | |
bcb660a70c23a57e06a129b7d5e0ac8a48ccc062 | 440736bf8cdfff0b5569105519204414414b455a | /reviewboard/hostingsvcs/tests/test_bitbucket.py | 17ebf6a31a0ba0b0ec1a00ab52f35359a3acad75 | [
"MIT"
] | permissive | bbbbbgit/reviewboard | ef456bbd848a26a0babe9bbf9d1ccfdf6cafcffc | f9cff6699ec387600d1d0540db32d1a0517c203d | refs/heads/master | 2022-07-17T01:38:12.774767 | 2020-05-12T02:43:03 | 2020-05-12T02:43:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,819 | py | """Unit tests for the Bitbucket hosting service."""
from __future__ import unicode_literals
import logging
from django.contrib.auth.models import User
from django.test.client import RequestFactory
from django.utils.safestring import SafeText
from djblets.testing.decorators import add_fixtures
from reviewboard.hosti... | [
"[email protected]"
] | |
b1b10f74c7b2b141fab2f67520ef2bafb047a1f3 | 051d25888b6a36e50714fa5940f6a31ee951ce77 | /gentb_website/tb_website/apps/dropbox_helper/dropbox_util.py | f43f6ff658915949644e878347d6b70ddd524912 | [
"MIT"
] | permissive | cchoirat/gentb-site | d0d627ffc160c53b61d92dc8f02a11f930a2b09a | 24ebce58cd5f5e0a2f1449e2f14b1f75b592f28f | refs/heads/master | 2021-01-21T02:20:55.909012 | 2015-11-25T18:27:23 | 2015-11-25T18:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | from os.path import join, isdir
import os
from apps.dropbox_helper.dropbox_retriever import DropboxRetriever
from apps.dropbox_helper.models import DropboxRetrievalLog
from django.conf import settings
def get_dropbox_metadata(predict_dataset):
"""
Wrap the DropboxRetriever function
- (True, DropboxRetriev... | [
"[email protected]"
] | |
c7733e0c97c99db3361255fd039f0965f67fe4ec | a70697ef62978117467695fd3507e4d08e186ab4 | /source/res/scripts/client/gui/Scaleform/locale/BOOTCAMP.py | 4e66b561503dd6a2e8f4fe0c3d1b2e0274984d50 | [] | no_license | chipsi007/WorldOfTanks-Decompiled | d208678a6f2f094b02281d09ecc30f3e32725ce9 | 3b9dc21321429e4dee146c23c7250f2c62757937 | refs/heads/master | 2020-03-19T01:21:09.883951 | 2018-05-04T13:19:56 | 2018-05-04T13:19:56 | 135,538,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,664 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/locale/BOOTCAMP.py
from debug_utils import LOG_WARNING
class BOOTCAMP(object):
WELLCOME_BOOTCAMP = '#bootcamp:wellcome/bootcamp'
WELLCOME_BOOTCAMP_DESCRIPTION = '#bootcamp:wellcome/bootcamp/description'
RE... | [
"[email protected]"
] | |
32f23cb372dfdf98567ae16228bdbb95e6934524 | 74549d7c57b4746ac2a9c275aa12bfc577b0e8af | /hogwartsEmailAdderss.py | 245b738aa52c6cc12e18274915c1042e79fc0fa9 | [] | no_license | abidkhan484/hackerrank_solution | af9dbf6ec1ead920dc18df233f40db0c867720b4 | b0a98e4bdfa71a4671999f16ab313cc5c76a1b7a | refs/heads/master | 2022-05-02T11:13:29.447127 | 2022-04-13T03:02:59 | 2022-04-13T03:02:59 | 99,207,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #!/bin/python3
import string
def isValid(email):
for i in range(5):
if email[i] not in string.ascii_lowercase:
return 'No'
else:
if email[5:] != '@hogwarts.com':
return 'No'
return 'Yes'
if __name__ == "__main__":
s = input().strip()
result... | [
"[email protected]"
] | |
f401333e5549b41f09b8c1318936448c3a83d737 | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part9-Manipulating-DataFrames-with-pandas/No08-Changing-index-of-a-DataFrame.py | c7f11201fbcc7e64a48481ca0e8a27f8c2375844 | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | #Changing index of a DataFrame
'''
As you saw in the previous exercise, indexes are immutable objects. This means that if you want to change or modify the index in a DataFrame, then you need to change the whole index. You will do this now, using a list comprehension to create the new index.
A list comprehension is a s... | [
"[email protected]"
] | |
0d788a1849f7407ed0c963a2f1ff2282a44211eb | a8599b7cb0f1deac1b8a62a35f3f1c95c6d0e7ba | /lookerapi/models/prefetch_access_filter_value.py | 57b4a9ca5a801c241765ae52b290b512cbe56f01 | [
"MIT"
] | permissive | llooker/python_sdk | b82b1dbe30a734b1cc1e1bcafd3d2ac7ce9fa705 | 8364839b1de0519771f2f749e45b4e6cb1c75577 | refs/heads/master | 2020-03-30T08:40:42.562469 | 2020-01-16T00:08:31 | 2020-01-16T00:08:31 | 151,030,473 | 13 | 10 | MIT | 2020-01-16T00:08:32 | 2018-10-01T03:07:09 | Python | UTF-8 | Python | false | false | 6,563 | py | # coding: utf-8
"""
Looker API 3.0 Reference
### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token.... | [
"[email protected]"
] | |
3d456ff2fdf7f69d9519317f0a9a47b44322d273 | f4b75e06e456dbd065dc57f07d55a2f5ec4ad688 | /openstates/data/migrations/0012_person_current_role.py | d9e866c1e3a313f007b32336097bd875c571590a | [
"MIT"
] | permissive | openstates/openstates-core | 19bf927a2e72c8808a5601f4454846acaf32218a | 3055632ea7ddab6432cc009989ffb437aed6e530 | refs/heads/main | 2023-09-05T10:30:58.866474 | 2023-09-01T15:43:59 | 2023-09-01T15:43:59 | 251,511,904 | 19 | 27 | MIT | 2023-09-06T19:30:03 | 2020-03-31T05:47:28 | Python | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.0.5 on 2020-08-04 15:24
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("data", "0011_auto_20200804_1108")]
operations = [
migrations.AddField(
model_name="person",
n... | [
"[email protected]"
] | |
2c876b1f1e1c38c15823f76a07a89de077f6621b | b6ba70e8535ccd4df1d14dc7c07a093642e281a0 | /examples/function_and_class/knn.py | f7a495bf0ea5c9b8a18579b30927ac40d3e3b7a3 | [
"MIT"
] | permissive | Obarads/torchpcp | 99b233c086617697dfc7e5f0c04ae16aff247daf | 86e19cc5c1196f22f609f2d98504b913272cbba8 | refs/heads/master | 2023-07-05T20:44:20.485218 | 2021-08-16T01:53:47 | 2021-08-16T01:53:47 | 293,244,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,451 | py | import numpy as np
import torch
from torch.utils.data import DataLoader
# local package
from libs import tpcpath
from libs.dataset import SimpleSceneDataset
from libs.three_nn import three_nn # PointRCNN
# torch-points-kernels
import torch_points_kernels as tpk
# torchpcp pacakage
from torchpcp.modules.functional.o... | [
"[email protected]"
] | |
497e345288a9d28536fdbaf5f67a2102b003849e | 7652b3d21519771aa073c4f4a9d66f4f4d5db013 | /creating-project/project/project_app/urls.py | de7fffc7ea068fde214f0d92d79c134b3e945a32 | [] | no_license | pavkozlov/NETOLOGY-Django-homeworks | 9c64cde294590c8a85c5f89fd2190fe989720c84 | c331fa10906470c974802932e9d7d7526841f6f1 | refs/heads/master | 2022-11-27T22:36:12.537296 | 2019-07-17T16:19:11 | 2019-07-17T16:19:11 | 189,250,824 | 0 | 1 | null | 2022-11-22T03:14:37 | 2019-05-29T15:20:09 | Python | UTF-8 | Python | false | false | 282 | py | from django.urls import path
from .views import stations_view
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('stations/', stations_view, name='stations_view')
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
| [
"[email protected]"
] | |
dcf60d425a75a5583dc890529bb1f1fffe42a262 | 428ee863e50fecfaedbbf64f3da95e9acb746ae4 | /src/tamsin/main.py | a9ea83fa097c8b5749742963afb74886d3b5d15a | [
"BSD-3-Clause",
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | catseye/Tamsin | ba53a0ee4ac882486a958e6ba7225f19eea763ef | 1c9e7ade052d734fa1753d612f2426ac067d5252 | refs/heads/master | 2021-01-17T09:21:25.202969 | 2016-03-31T15:00:14 | 2016-03-31T15:00:14 | 19,212,331 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,766 | py | # encoding: UTF-8
# Copyright (c)2014 Chris Pressey, Cat's Eye Technologies.
# Distributed under a BSD-style license; see LICENSE for more information.
import os
import subprocess
import sys
from tamsin.buffer import FileBuffer, StringBuffer
from tamsin.event import DebugEventListener
from tamsin.term import Atom
fr... | [
"[email protected]"
] | |
5b3e342ade56e396a3dfad0237f974e5082e1bc9 | 114b61513733083555924fc8ab347335e10471ae | /stackone/stackone/viewModel/MultipartPostHandler.py | df8c4aa526fbfe18ae6a303322624a6199dcffe3 | [] | no_license | smarkm/ovm | 6e3bea19816affdf919cbd0aa81688e6c56e7565 | cd30ad5926f933e6723805d380e57c638ee46bac | refs/heads/master | 2021-01-21T04:04:28.637901 | 2015-08-31T03:05:03 | 2015-08-31T03:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,033 | py | #!/usr/bin/python
####
# 02/2006 Will Holcomb <[email protected]>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later v... | [
"[email protected]"
] | |
2332d5c21dfd47be0eab2e6439fbacef32c5aeb3 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startPyquil199.py | b8ba1c63c355402f38a256e26772b3f9cb67ca75 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | # qubit number=2
# total number=33
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"[email protected]"
] | |
4fe20784e210003df990201f226915a4f8702cd0 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2021_10_01_dataplanepreview/operations/_code_containers_operations.py | 39304e6ffb704920562356f3609fa0b63f3eb4b9 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",... | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 19,903 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
f427572dcc294f2f278b1dc156e4b0e0c130a115 | a4c5a56ed6d3c4299213ff8fd0e4f37719e063ff | /tests/test_override.py | ec0ad1f2bfab03914d5df5c21408b1e52fcbb993 | [
"BSD-3-Clause"
] | permissive | pyecore/motra | 76add183cf2777bef5916b88e30dd2b3eef8cb06 | c0b3e8e54b46572c3bc10bb2b719102e267c371b | refs/heads/main | 2023-09-02T12:44:37.688979 | 2021-10-27T05:53:01 | 2021-10-27T05:53:01 | 395,357,398 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | import pytest
import inspect
import pyecore.ecore as ecore
from motra import m2m
@pytest.fixture(scope='module')
def t1():
# Define a transformation meta-data
t = m2m.Transformation('t1', inputs=['in_model'], outputs=['in_model'])
@t.mapping(when=lambda self: self.name.startswith('Egg'))
def r1(self:... | [
"[email protected]"
] | |
5dcc386e96726fe2001888a8096c2940980aae92 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/aphidivor.py | 488d7159a51c32e35a6a3d61bdf217023f68d3e4 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 63 | py | ii = [('RennJIT.py', 2), ('WestJIT2.py', 3), ('WestJIT.py', 2)] | [
"[email protected]"
] | |
cacff14e0b1b2678353ba2d462a5de00a04555a7 | 55ab4d0aecc49078e7a0f47a05457c9602327ed7 | /egs/madcat_arabic/v1/local/create_mask_from_page_image.py | b4147dcd3851a52f5a1a9319a6986519f66ac00b | [
"Apache-2.0"
] | permissive | aarora8/waldo | 56a171f0b2048d980023173ab38f5248db936eeb | ad08a05fa9e9890ad986f11d4bca3c773b228d87 | refs/heads/master | 2020-03-14T04:43:47.513263 | 2018-06-07T05:09:47 | 2018-06-07T05:09:47 | 131,447,076 | 0 | 0 | Apache-2.0 | 2018-04-28T22:00:19 | 2018-04-28T22:00:19 | null | UTF-8 | Python | false | false | 5,535 | py | #!/usr/bin/env python3
# Copyright 2018 Johns Hopkins University (author: Ashish Arora)
# Apache 2.0
""" This module will be used for creating text localization mask on page image.
Given the word segmentation (bounding box around a word) for every word, it will
extract line segmentation. To extract line segmentatio... | [
"[email protected]"
] | |
358e0825a1854b062e87d35611e52cd3c239266d | 21540ab033e180a3d94b270b7faffac7fe4af68f | /wordshop2/Project_01_10_page62-63/Project_05.py | e45ba58fc5058ea1e533a49592edf98b0103a792 | [] | no_license | tuan102081/wordshop1.2.3.5 | eaa344bdb04f565d1354b9476b4d4ecafc5cc7f3 | 70e75b56f48a2e5b1622d956f33831f80e64d368 | refs/heads/master | 2023-07-14T23:26:31.089484 | 2021-08-30T18:53:24 | 2021-08-30T18:53:24 | 401,411,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | """
Author: Nguyen Duy Tuan
Date: 29/08/2021
Program: project_05_page_62.py
Problem:
An object’s momentum is its mass multiplied by its velocity. Write a program
that accepts an object’s mass (in kilograms) and velocity (in meters per second) as
inputs and then outputs its momentum.
Solution:
Display:
... | [
"[email protected]"
] | |
1c0c27da1a5ffd2ada1e238f96d4179c01990331 | 2cb9d1bf6e674049dd03b04e5714d12a268425a4 | /sariq_dev/darslar/10_dars_uy_ishi_5_.py | eb5ae2c36841e0c7e64652eb8400aa8e43b095c9 | [] | no_license | RuzimovJavlonbek/anvar.nazrullayevning-mohirdev.uz-platformasidagi-dasturlash.asoslari.python-kursidagi-amaliyotlar | 02885608c40e9dd9ae0d13013619ef787240bcf6 | f999be39d0e3c7edb990f9c3c29edbeeb0e19c2d | refs/heads/main | 2023-07-02T20:16:56.146956 | 2021-08-06T03:12:49 | 2021-08-06T03:12:49 | 390,466,668 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | a = float(input("a="))
if a < 0:
print(" Manfiy son")
else:
print(" Musbat son")
input()
| [
"[email protected]"
] | |
6fd7363389f6b9bfc67823959049f44b95b6f19e | 83aa59c568d0b84eee76226776da7f1d49384f10 | /tccli/services/ape/ape_client.py | a2fa953563d4f64679515e3129265264be734748 | [
"Apache-2.0"
] | permissive | jjandnn/tencentcloud-cli | c492f5f19cacaee85fc2e7b0de0d8aa8ef5dd009 | ac3c697fb06acdd2e3e711b11069d33754889340 | refs/heads/master | 2023-05-05T00:27:54.406654 | 2021-05-27T00:40:52 | 2021-05-27T00:40:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,552 | py | # -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli import __version__
from tccli.utils import Utils
from tccli.exceptions import ConfigurationError
from tencentcloud.common import credential
from tencentcloud.common.profile.ht... | [
"[email protected]"
] | |
ec662f925b59e24fde024e4243aba389f33e0432 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-14.py | 52bce3a36228b57f2739edf857ed492498c0ab0c | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | # A resizable list of integers
class Vector(object):
items: [$ID] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"[email protected]"
] | |
d003323768ea7f4519c90921a33b9eb198732852 | 69033ac834a34f10df535f102197d3af05e5ee69 | /cmstack/codegen/tvmgen/tvm_translation.py | 94d23726e2acc6b4c753f6d6f9920df4d7801b75 | [
"Apache-2.0"
] | permissive | he-actlab/cdstack | 126c3699074bf6ef30f9f9246704069d27e9e614 | 38f605cfa299bf97b5875a19f9fd811a2671d56f | refs/heads/master | 2023-04-10T10:42:10.199207 | 2019-10-03T02:12:49 | 2019-10-03T02:12:49 | 354,713,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,582 | py | import tvm
import numpy as np
from hdfg import hdfgutils
from hdfg import load_store
from tvm.contrib import graph_runtime
from tvm.relay import op as _op
from hdfg.passes.flatten import flatten_graph, is_literal, is_number
from hdfg.passes.node_mapping import map_nodes
from codegen.codegen_utils import CMLANG_CAST_M... | [
"[email protected]"
] | |
ba1688de52c9aed52049beab16fcbf7d463add7d | a04296ba7b09f3a7b7540a14e8ef6fcf683ed392 | /common/mergelist.py | dac26a7dac26dd95d77cfed036796fb50f267e7f | [
"MIT"
] | permissive | Hasi-liu/FXTest | 0a3acf9d27d9f784f378fc9f9c13deb9e678adbe | 150012f87021b6b8204fd342c62538c10d8dfa85 | refs/heads/master | 2023-05-11T00:27:57.224448 | 2020-05-10T02:58:11 | 2020-05-10T02:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | """
@author: lileilei
@file: mergelist.py
@time: 2018/1/29 13:55
"""
"""
list的合并
"""
def hebinglist(list1:list):
new=[]
for m in list1:
for h in m:
new.append(h)
return new
def listmax(list2:list):
list_int=[]
for i in list2:
try:
list_int.append(float(i))
... | [
"[email protected]"
] | |
f0457b814ef72bf357cd55551afddde24bb8f179 | 9cbc458ae2fa1f2be6eeb6fb4f4dfc49db464f1b | /financial/productgroup/migrations/0001_initial.py | 14fd26e06c60016d2d9401b4c4f5ffac79deec65 | [] | no_license | reykennethdmolina/projectfinsys | 45f8bd3248ad4b11c78cee6beefab040e6d58343 | a8604b9450b890e26b8f59f6acd76d64c415ccce | refs/heads/master | 2021-01-11T17:36:01.648840 | 2017-01-23T11:21:04 | 2017-01-23T11:21:04 | 79,797,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2017-01-17 06:07
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"[email protected]"
] | |
eec679bc8e8a903c116e1c4a9cc0fcfed3bde0af | f38c30595023f4f272121576b9e62ed2adbed7de | /contact_list.py | 8c047db9d0fd3e5d8d18d73a7614d2fe2b25233d | [] | no_license | devArist/contact_app_project | f1f19ed2cb4a9261575e5f182e4dcb28ba44e082 | 81d1d639d2e7a362490397d334345ce24a154789 | refs/heads/main | 2023-07-12T22:49:19.816760 | 2021-08-30T15:56:44 | 2021-08-30T15:56:44 | 401,285,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from kivymd.uix.boxlayout import MDBoxLayout
from kivy.lang import Builder
Builder.load_file('contact_list.kv')
class ContactBoxLayout(MDBoxLayout):
pass | [
"[email protected]"
] | |
e2a354f7de78bb119094313ee9b25118e374ca6c | ba2d449486c58578581b8de7b2b6f21074be6274 | /02 Linked Lists/2-8-Loop-Detection.py | 6af5ea7f052ea96436e98812922ad1180e7fa7bb | [] | no_license | theoliao1998/Cracking-the-Coding-Interview | 4e0abef8659a0abf33e09ee78ce2f445f8b5d591 | 814b9163f68795238d17aad5b91327fbceadf49e | refs/heads/master | 2020-12-09T12:46:10.845579 | 2020-07-25T05:39:19 | 2020-07-25T05:39:19 | 233,306,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # Loop Detection: Given a circular linked list, implement an algorithm that returns the node at the
# beginning of the loop.
# DEFINITION
# Circular linked list: A (corrupt) linked list in which a node's next pointer points to an earlier node, so
# as to make a loop in the linked list.
# EXAMPLE
# Input: A -> B -> C ... | [
"[email protected]"
] | |
b26c45b8a0ae7b082b96599a14f020f230ee3eca | 8b16bd61c79113ff575def261e12f0e2125e4d90 | /browser/migrations/0004_search_history.py | 44305eecb73f1f97b11f14b0373386db7ecccd80 | [] | no_license | alvarantson/veebikaabits2.0 | 88f99e2fff8d0ef76daec3d3d3f4d6e19ed6d274 | 412d7d2fdc35582ba7210ea6108087a0d5ac9d7e | refs/heads/master | 2020-12-02T10:59:05.173248 | 2020-01-03T10:00:36 | 2020-01-03T10:00:36 | 230,990,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | # Generated by Django 2.1.3 on 2018-11-28 11:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('browser', '0003_blacklist'),
]
operations = [
migrations.CreateModel(
name='search_history',
fields=[
... | [
"[email protected]"
] | |
9337e099bf9ff81091912bb90e98f59afe773fe5 | d7ca36f20465870e67e7d6832f8e1b8348af12fc | /test/test_linear.py | ca9b35b8ac8886a9b4d3721c6f3eb6f8eb94d575 | [] | no_license | hlcr/LanguageNetworkAnalysis | c109e670534367c782fb71697a92a3ca95aba098 | 65f6c8086f3e4282b15359cc99cf57a682e6b814 | refs/heads/master | 2020-04-24T07:40:04.100213 | 2020-04-17T09:02:05 | 2020-04-17T09:02:05 | 171,805,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from sklearn import linear_model
import numpy as np
import matplotlib.pyplot as plt
# 线性回归
clf = linear_model.LinearRegression()
# 训练
np.array([1, 2, 3])
clf.fit(np.array([2, 4, 6]).reshape(-1,1), np.array([0, 2, 4]).reshape(-1,1))
# 表达式参数
a, b = clf.coef_, clf.intercept_
print(a)
print(b)
# # 画图
# # 1.真实的点
# plt.sca... | [
"[email protected]"
] | |
55be3d9790defafee827f8d11c0671d535c13396 | 302f142abcb9cd8cc9a6f87cda1a3580cce8ad21 | /.env/lib/python3.6/site-packages/pygments/lexers/unicon.py | c27b7fe0cf8f2b46b226365542c31220719cf12e | [
"Apache-2.0"
] | permissive | Najafova/hls4ml_test | 7229a85d5759eac4b177a47f9af7c6b4899dd006 | 21f9951b3f0ca88cc2312a8863977c1477b9233e | refs/heads/master | 2023-01-19T15:11:18.861261 | 2020-11-22T17:17:51 | 2020-11-22T17:17:51 | 289,086,269 | 0 | 0 | Apache-2.0 | 2020-11-22T17:17:52 | 2020-08-20T18:59:09 | Python | UTF-8 | Python | false | false | 17,817 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.unicon
~~~~~~~~~~~~~~~~~~~~~~
Lexers for the Icon and Unicon languages, including ucode VM.
:copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, ... | [
"[email protected]"
] | |
8dc206ecc05711beff9e20fc9c645ee81ed652dd | 1abcd4686acf314a044a533d2a541e83da835af7 | /backjoon_level_python/1701.py | 4112638d3382c51244a90f87bed9c9d769c2e387 | [] | no_license | HoYoung1/backjoon-Level | 166061b2801514b697c9ec9013db883929bec77e | f8e49c8d2552f6d62be5fb904c3d6548065c7cb2 | refs/heads/master | 2022-05-01T05:17:11.305204 | 2022-04-30T06:01:45 | 2022-04-30T06:01:45 | 145,084,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | def get_failure_array(text):
failure = [0] * len(text)
j = 0
for i in range(1, len(text)):
while j > 0 and text[i] != text[j]:
j = failure[j - 1]
if text[i] == text[j]:
failure[i] = j + 1
j += 1
return failure
def solve(input_text):
max_value = ... | [
"[email protected]"
] | |
7f559d2862ef1e3f93bcde50464d07a9767ac80e | 3d88748960deb31c674525df2bd9d79ba1d2db1a | /pythonlib/bin/pyfftr | 4127562195c91f40b757688d14d9e521c09d2ba6 | [
"BSD-2-Clause"
] | permissive | johnkerl/scripts-math | 1a0eb6ce86fd09d593c82540638252af5036c535 | cb29e52fec10dd00b33c3a697dec0267a87ab8bb | refs/heads/main | 2022-01-31T17:46:05.002494 | 2022-01-17T20:40:31 | 2022-01-17T20:40:31 | 13,338,494 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,546 | #!/usr/bin/python -Wall
# ----------------------------------------------------------------
# John Kerl
# [email protected]
# 2006-03-20
# (Ported to Python 2006-03-06)
#
# This is a radix-2 fast Fourier transform. Example:
#
# xxx cmts re real-to-complex transform; numerical recipes
# ----------------------------... | [
"[email protected]"
] | ||
0266fc2e290229ee4fb5b79ceec76bc0a22a0e42 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902TG/128-tideGauge.py | a22e221a52b78d90b03e7e76dfe5eb0acc6f5054 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,075 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 01 10:00:00 2020
MERRAv2 netCDF extraction script - template
To create an extraction script for each tide gauge
@author: Michael Tadesse
"""
import os
import pandas as pd
from d_merra_define_grid import Coordinate, findPixels, findindx
from c_merra_read_netcdf import r... | [
"[email protected]"
] | |
9886045608f2213f99a41a0af0b8b79aa8486538 | 69a4db25d9f7d4e67cf2bcfe005e5cba9915180a | /examprep.py | 4eae0ad01d13431e655ff277605755e813e07ef2 | [] | no_license | riley-csp-2019-20/final-exam-semester-1-taylor77205 | ca3211a606819eab48d118bb6e5dc08dcf190b9c | ee37ca47c1090b8a23a6d3ed01448ed1494d9183 | refs/heads/master | 2020-11-25T12:22:28.536638 | 2019-12-19T16:39:33 | 2019-12-19T16:39:33 | 228,657,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | import turtle as trtl
shape = "arrow"
player = trtl.Turtle(shape = shape)
player.speed(0)
player.penup()
shape = "circle"
circle = trtl.Turtle(shape = shape)
circle.penup()
def up():
player.setheading(90)
player.forward(10)
circle.setheading(90)
circle.forward(10)
def down(... | [
"[email protected]"
] | |
b7dc54b2539acc9351aa7b5e664d819614a5d304 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/debug/lib/profiling.py | 1d60d22ff7008d67f2fdc68c9e659f0c0474b8a5 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 181 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/debug/lib/profiling.py | [
"[email protected]"
] | |
85d0e15806dc792d31a9296899a3bdbc2c0db268 | 0f8909782b5150783b738df3875c91509a92a33b | /scena/c0450.bin.py | 94d0262c76e9b95ffec8999949ad301746850f0a | [] | no_license | uyjulian/ao_text | e40cd982bcdd5ea9ffd6f0f2e97ce9b92749b63a | 5cc5468aeb64fa97935f334a627357ec10e22307 | refs/heads/master | 2021-06-26T21:43:07.489898 | 2017-07-05T16:55:01 | 2017-07-05T16:55:01 | 96,562,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139,980 | py | from ScenarioHelper import *
def main():
CreateScenaFile(
"c0450.bin", # FileName
"c0450", # MapName
"c0450", # Location
0x0024, # MapIndex
"ed7113",
0x00002000, # Flag... | [
"[email protected]"
] | |
30723c2e851a6064831ceee31779a2e0923f132d | 8de2a78facbdedb033e349692c71e33ce6f47315 | /string_format.py | bda55de3713cf8d1cf8a87976aba26d564aa51b8 | [] | no_license | KshitjMaheshwari/python38-GLA | 230e4ce96c4416bbc7b11477772a827ee0d62a46 | 4d29d377ab38f75510f995293f62b7c59229423b | refs/heads/master | 2022-04-17T05:17:15.205216 | 2020-02-18T19:21:18 | 2020-02-18T19:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | '''
str.format() is one of the string formatting methods in Python3,
which allows multiple substitutions and value formatting.
This method lets us concatenate elements within a string through positional formatting.
'''
a = 10
b = 30
c = a + b
temp = 'result is %d of %d and %d'
f = temp % (c, a, b)
print(f)
# t... | [
"[email protected]"
] | |
3d635f23f15d180a8acda2ef07e91f7f9fb3984e | 9818262abff066b528a4c24333f40bdbe0ae9e21 | /Day 60/TheBomberMan.py | 46f6d9fdaed89da0f250aff715ff45b108c9a598 | [
"MIT"
] | permissive | skdonepudi/100DaysOfCode | 749f62eef5826cb2ec2a9ab890fa23e784072703 | af4594fb6933e4281d298fa921311ccc07295a7c | refs/heads/master | 2023-02-01T08:51:33.074538 | 2020-12-20T14:02:36 | 2020-12-20T14:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | ''''
Bomberman lives in a rectangular grid. Each cell in the grid either contains a bomb or nothing at all.
Each bomb can be planted in any cell of the grid but once planted, it will detonate after exactly 3 seconds. Once a bomb detonates, it's destroyed — along with anything in its four neighboring cells. This means... | [
"[email protected]"
] | |
6773f61b800ed243653848153717040551b46c5c | 56789f51d1feb757171b151b56c59143e74c6fe1 | /projects/examples/dragon_button_relay_push_only/pinButton.py | f0fc6e7fb8a5a84c6121ba1877377927a1833a31 | [] | no_license | aid402/micropython_project | 235926120e8a78033572386b9407a5eb6e7f473e | 9111398492f0cf511da8e6f83b34d8e4e4f90278 | refs/heads/master | 2020-07-21T10:29:16.935739 | 2018-11-02T22:07:14 | 2018-11-02T22:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py |
from machine import Pin
import time
import relay
class PinButton:
'''
B
'''
# init
def __init__(self, pinNum, Pull, debug=False, relay_control=None):
self._pin = Pin(pinNum, Pin.IN, Pull )
self.debug = debug
self.status = 0
self.value = None
self._value... | [
"[email protected]"
] | |
a293a4c0f1bef50f86231c141441a29c0ea77f66 | b51fcaacf7a43cfc4e378b27090c652ed5bd8ee2 | /pyfx/tests/test_spreadhandler.py | 4dad32859c0dafba258a980ee780e00e99c632b1 | [] | no_license | tetocode/fxarb | 56526308eb91616eb60b13152ad03dab73de7ca4 | 00261dc6832047375499363af2db44efa2d36008 | refs/heads/master | 2022-10-18T16:45:51.971435 | 2020-06-03T16:19:39 | 2020-06-03T16:19:39 | 269,136,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | import copy
from collections import deque
from datetime import datetime, timedelta
import gevent
import pytest
import pytz
from pyfx.pricehandler import PriceHandler, Price
from pyfx.spreadhandler import SpreadHandler, Spread
def test_spread_handler():
h = SpreadHandler(PriceHandler())
assert h.prices == {... | [
"_"
] | _ |
c950deb33595ab7513145a259c0dad0684cff22f | e5255d7588b117f000c8e11a57127d7bbb63a6e6 | /collection/j1/01_getImageJson.py | 6d1e626ddc17536930faed75ea9b0610302058d2 | [] | no_license | nakamura196/toyo_images | 4134e9ae7d5790e04c157195ecdea10f952dbbf2 | 60c71b23b6028c639c4f9b1ee3083c083421a336 | refs/heads/master | 2020-08-25T13:46:25.334222 | 2019-10-25T03:15:06 | 2019-10-25T03:15:06 | 216,973,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | import urllib.request
from bs4 import BeautifulSoup
from time import sleep
import json
import hashlib
import os
from PIL import Image
import requests
import shutil
import urllib.parse
def download_img(url, file_name):
print("img="+url)
r = requests.get(url, stream=True)
if r.status_code == 200:
wi... | [
"[email protected]"
] | |
c5025700fd6858b320117ab2a06db5014ae2496a | 0e94b21a64e01b992cdc0fff274af8d77b2ae430 | /python/022_Objective.py | 8b3d80fef29ab63035d097dd75d51e71daa5b828 | [] | no_license | yangnaGitHub/LearningProcess | 1aed2da306fd98f027dcca61309082f42b860975 | 250a8b791f7deda1e716f361a2f847f4d12846d3 | refs/heads/master | 2020-04-15T16:49:38.053846 | 2019-09-05T05:52:04 | 2019-09-05T05:52:04 | 164,852,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | #可以通过类名访问其属性
#类对象支持两种操作==>属性引用(obj.name)和实例化
#将对象创建为有初始状态的,定义一个名为__init__()的特殊方法(自动调用,构造方法)
#使用def关键字可以为类定义一个方法,类方法必须包含参数self,且为第一个参数
#支持类的继承,圆括号中基类的顺序,若是基类中有相同的方法名,从左到右查找基类中是否包含方法
#两个下划线开头声明该属和方法为私有,不能在类地外部被使用或直接访问
class people:
name = ""
age = 0
__weight = 0#私有属性,在类外部无法直接进行访问
def __init__(self, name,... | [
"[email protected]"
] | |
e5c95f65e2d375ab804087caa24c1424a0aba734 | 291f0aa9a40eeca26fb08106c952b9347db7dba7 | /nz_crawl_demo/day2/requests/biquge.py | 4436df5628c3550c69cfc0f0492fb0cc28404bae | [
"Apache-2.0"
] | permissive | gaohj/nzflask_bbs | fad10b93f8f495a94d5d6db6f5c60d85c1c85518 | 36a94c380b78241ed5d1e07edab9618c3e8d477b | refs/heads/master | 2022-12-12T21:43:17.417294 | 2020-03-20T10:28:22 | 2020-03-20T10:28:22 | 239,702,874 | 0 | 2 | Apache-2.0 | 2022-12-08T03:50:07 | 2020-02-11T07:34:01 | JavaScript | UTF-8 | Python | false | false | 569 | py | import requests
url = "http://www.xbiquge.la/login.php?jumpurl=http://www.xbiquge.la/"
data = {
"LoginForm[username]":"kangbazi666",
"LoginForm[password]":'kangbazi666',
}
headers = {
'User-Agent':"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Firefox/64.0"
}
#登录
session = requests.Session(... | [
"[email protected]"
] | |
4ad8fd01c03a6ae1a29510b7ddaba5625e4d100c | 2b398353f5b0529ac666ef180e9dc966474a70c0 | /vspk/v6/nunetworkperformancebinding.py | 0c35e1c30289cec4db7f7ef8fd9e2d6a7936ffec | [
"BSD-3-Clause"
] | permissive | nuagenetworks/vspk-python | e0c4570be81da2a4d8946299cb44eaf9559e0170 | 9a44d3015aa6424d0154c8c8a42297669cce11f9 | refs/heads/master | 2023-06-01T01:12:47.011489 | 2023-05-12T19:48:52 | 2023-05-12T19:48:52 | 53,171,411 | 21 | 18 | BSD-3-Clause | 2020-12-16T12:36:58 | 2016-03-04T23:10:58 | Python | UTF-8 | Python | false | false | 12,223 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrigh... | [
"[email protected]"
] | |
4edc4a4117a2f5785f06ed7c041ecc6251e057d3 | 13f900b9dc0c3e838ff788febaa59514b97d1128 | /Proyecto/apps.py | 40c7b3b40f6d31687e5ba04a1ee90b01b19feb2f | [] | no_license | JorgitoR/App-Proyectos-Slabcode | 68439c5fe0dbe58a004b9f04be807f6756d84a7f | 173ea655bf00f8b5ae7fb0eb4ee0cf0ed5e6f3a7 | refs/heads/main | 2023-04-12T21:52:16.339073 | 2021-04-10T21:02:57 | 2021-04-10T21:02:57 | 356,660,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django.apps import AppConfig
class ProyectoConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Proyecto'
| [
"[email protected]"
] | |
e9bb27222c38f40ffe7f88c5cf3722d5dd47c363 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/10/usersdata/124/24836/submittedfiles/testes.py | 5775a4b04ac6e07e20b13628e10307df3311b756 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
def vabsol(x):
if x < 0:
x = -1*x
return x
def calculopi(y):
c = 3
d = 2
for i in range (0, y, 1):
if i%2 != 0:
c = c - (4/(d*(d+1)*(d+2)))
elif i%2 == 0:
c = c + (4/(d*(d+1)*(d+... | [
"[email protected]"
] | |
aa293e1ff78c775da8ee0d65c93d61dbe77e9ece | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_212/ch38_2020_06_18_18_19_09_636520.py | a1acd720111d63b2d1b433ca15896300cc635a3a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | def quantos_uns (n):
soma = 0
i=0
num = str(n)
while i <= len(num):
if num[i] == '1':
soma += 1
i +=1
return soma
| [
"[email protected]"
] | |
9165fa645530445bd62b1dd6a0a62069ada7bff7 | 06e34e2dface0b87fa785cab7e65422a5f20ba18 | /Solutions/900-RLE-Iterator/python.py | df44e067f90f609efe109d47495f2673b48fe69d | [] | no_license | JerryHu1994/LeetCode-Practice | c9841b0ce70451c19c8a429a3898c05b6233e1d4 | b0ce69985c51a9a794397cd98a996fca0e91d7d1 | refs/heads/master | 2022-02-10T04:42:28.033364 | 2022-01-02T04:44:22 | 2022-01-02T04:44:22 | 117,118,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | class RLEIterator(object):
def __init__(self, A):
"""
:type A: List[int]
"""
self.li = A
def next(self, n):
"""
:type n: int
:rtype: int
"""
if len(self.li) == 0: return -1
cnt = n
while cnt > 0:
if len(self.... | [
"[email protected]"
] | |
818d347d5ad5029e8246fe46f97504bcf6646510 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/GeneralDb/Marathon/MarathonTests_3.5.2/HSQL_RecordEditor1/TestCases/SaveAs/SaveAsXml1.py | 7e17d8d59bd69361fc57951c63a851daf3fe52ae | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | #{{{ Marathon
from default import *
#}}} Marathon
from Modules import commonBits
def test():
set_java_recorded_version("1.6.0_22")
if frame(' - Open File:0'):
select('File', commonBits.sampleDir() + 'DTAR020_tst1.bin')
click('Edit')
close()
if window('Record Editor'):... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
6fd2f9cac3bf22b97948b2a190ce4a65f9c488ae | 4554f8d3ab1a6267b17dad2b4d2c47b0abe8d746 | /benchmarking/lab_driver.py | 03e7770f8347f387876b15dba21e7f83f446d948 | [
"Apache-2.0"
] | permissive | jteller/FAI-PEP | 44fead3ca26f4844067d455c86ac8c5bfaf79a14 | 73b8a08815675135e9da7d68375d1218cbd04eaa | refs/heads/master | 2020-04-29T06:04:19.197966 | 2019-03-15T23:32:54 | 2019-03-15T23:32:54 | 175,904,011 | 0 | 0 | Apache-2.0 | 2019-03-15T23:30:04 | 2019-03-15T23:30:04 | null | UTF-8 | Python | false | false | 5,441 | py | #!/usr/bin/env python
##############################################################################
# Copyright 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
################################... | [
"[email protected]"
] | |
9b1cc198ba049ed2a1e88ee56531681e0b4e438a | f4aec883b8073c4139046590d03907a751db6ab8 | /tests/snippets/pipeline/pipeline.py | 3d18442921f639077263c258ec8797f616f848ce | [] | no_license | turnhq/nucling | 1699d2a19154c4332c9836eace03ee21ae72ed41 | 56426954c6ca48e4f6d5314f9a7807dac986bce9 | refs/heads/master | 2020-03-28T06:56:30.360598 | 2019-04-10T21:10:33 | 2019-04-10T21:10:33 | 147,871,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | import unittest
from nucling.snippet.pipelines import (
Pipeline, Pipeline_manager, Transform_keys_camel_case_to_snake,
Remove_nones,
)
class Pipeline_with_FUN( Pipeline ):
def FUN( p, x ):
return x + 15
class Test_pipeline( unittest.TestCase ):
def setUp( self ):
self.p = Pipeline()... | [
"[email protected]"
] | |
dd6f5f85aed5431dcc5d6f54a167b1a3ad008d74 | 07daef15cc1cfe45712811c83a771a044dd03ebf | /myvenv/Scripts/django-admin.py | 98020e79406622606dcd802efa3e5ce85fc40b4c | [] | no_license | rkdtmddnjs97/kmu_likelion_lesson_8th | c29024ccac54f623cd6cbf7ee3921ded54204eb5 | e9b2992b233c1d8a2e00f33d6716a6042ac49a19 | refs/heads/master | 2022-06-20T05:56:33.998526 | 2020-05-14T06:37:55 | 2020-05-14T06:37:55 | 263,804,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #!c:\users\rkdtm\desktop\kmu_likelion8th\myvenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"[email protected]"
] | |
2cc6fe236c84cda705a1b8fec0493df1b53fd497 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03026/s973955145.py | a2924f6209bebcf3663a5e647cd0aaf7dd7eaa40 | [] | 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 | 440 | py | #実験用の写経
N = int(input())
g = {i: [] for i in range(N)}
for i in range(N - 1):
a, b = map(int, input().split())
g[a - 1].append(b - 1)
g[b - 1].append(a - 1)
c = list(map(int, input().split()))
c.sort()
print(sum(c[:-1]))
nums = [0] * N
stack = [0]
while stack:
d = stack.pop()
nums[d] = c.pop()
f... | [
"[email protected]"
] | |
3412bc422fb6235564f0b57b12435dcbc6b538bf | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/kms/v1/kms-v1-py/google/cloud/kms_v1/services/key_management_service/__init__.py | 728218e181e680e1d75ce85d1b9e2142874feb86 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # -*- coding: utf-8 -*-
# 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
de3e7c7a99d56bbcd47d532b61dd9abdb705c05a | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncuthbert.py | 68a51f0d1e582e2bf577eed1be5fba6c8208bebd | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 139 | py | ii = [('PettTHE.py', 1), ('ClarGE2.py', 2), ('BuckWGM.py', 2), ('DibdTRL2.py', 1), ('WadeJEB.py', 1), ('MartHRW.py', 1), ('BrewDTO.py', 1)] | [
"[email protected]"
] | |
01aba594e0438ffdd0367eefacb37bc81bbda437 | ff91e5f5815b97317f952038e19af5208ef12d84 | /square2.py | 98eb0412527458a11fcc5211790ef83d9f7ee25a | [] | no_license | BryanPachas-lpsr/class-samples | c119c7c1280ca2a86f24230d85f6c712f18d9be8 | a194201dce28299bd522295110814c045927ef5b | refs/heads/master | 2021-01-17T07:03:42.968452 | 2016-06-12T22:35:54 | 2016-06-12T22:35:54 | 48,007,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | #square.py
import turtle
#make out turtle
buzz = turtle.Turtle()
#buzz makes a square
lines = 0
while lines < 4:
buzz.forward(150)
buzz.left(90)
lines = lines + 1
turtle.exitonclick()
| [
"lps@lps-1011PX.(none)"
] | lps@lps-1011PX.(none) |
23603c3747093f0f01f514546c24ce3bad2ff880 | fe6f6d11dde2a3205ae9758c7d4eb1f824b84102 | /venv/lib/python2.7/site-packages/logilab/common/test/unittest_ureports_html.py | c849c4f82d85d7321cc94b30f3be83ecd578cec2 | [
"MIT"
] | permissive | mutaihillary/mycalculator | ebf12a5ac90cb97c268b05606c675d64e7ccf8a6 | 55685dd7c968861f18ae0701129f5af2bc682d67 | refs/heads/master | 2023-01-10T14:56:11.780045 | 2016-09-20T12:30:21 | 2016-09-20T12:30:21 | 68,580,251 | 0 | 0 | MIT | 2022-12-26T20:15:21 | 2016-09-19T07:27:48 | Python | UTF-8 | Python | false | false | 2,918 | py | # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:[email protected]
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publ... | [
"[email protected]"
] | |
f7ecb98c52d86587f015570263ac5a20bdfbe240 | 0567fcd808397a7024b5009cc290de1c414eff06 | /src/1658.minimum-operations-to-reduce-x-to-zero.py | 7f3176eb03955d6bbc0e2d39d5a8afa61e2fd290 | [] | no_license | tientheshy/leetcode-solutions | d3897035a7fd453b9f47647e95f0f92a03bff4f3 | 218a8a97e3926788bb6320dda889bd379083570a | refs/heads/master | 2023-08-23T17:06:52.538337 | 2021-10-03T01:47:50 | 2021-10-03T01:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | #
# @lc app=leetcode id=1658 lang=python3
#
# [1658] Minimum Operations to Reduce X to Zero
#
# @lc code=start
# TAGS: Greedy, Sliding Window
class Solution:
# LTE. Time and Space O(N^2).
def minOperations(self, nums: List[int], x: int) -> int:
q = [(x, 0, len(nums) - 1)]
visited = {}
... | [
"[email protected]"
] | |
61b401769d07af9b8953298be222d7c0e8eef4b8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch6_2020_03_09_20_09_01_051283.py | 43555c7f67b482084ac43022e30452bb1cd602a2 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | def celsius_para_fahrenheit(C):
F = 9/5*C+32
return F | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.