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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ea9cae42173bae1b6fd88abe2e029323cb284b9b | fe0017ae33385d7a2857d0aa39fa8861b40c8a88 | /env/lib/python3.8/site-packages/sklearn/manifold/spectral_embedding_.py | efa8372ddb519ebbe9f08ab3616ad83b8ebd6fad | [] | no_license | enriquemoncerrat/frasesback | eec60cc7f078f9d24d155713ca8aa86f401c61bf | e2c77f839c77f54e08a2f0930880cf423e66165b | refs/heads/main | 2023-01-03T23:21:05.968846 | 2020-10-18T21:20:27 | 2020-10-18T21:20:27 | 305,198,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py |
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py
import sys
# mypy error: Module X has no attribute y (typically for C extensions)
from . import _spectral_embedding # type: ignore
from ..externals._pep562 import Pep562
from ..utils.deprecation import _raise_dep_warning_if_not_pytest
deprecated_path ... | [
"enriquemoncerrat@gmail.com"
] | enriquemoncerrat@gmail.com |
22148b082fd05a86e771c13e027a987707f444a9 | 8f6cc0e8bd15067f1d9161a4b178383e62377bc7 | /__PPPPLLLLTTTT__LLLLOOOOGGGG/workspace/a3c/PPPPPPLLLLLLLOOOOOOTTTTTTT/trainer-family/plot_a3c_log3.py | 813665c694efb63fdab1081416eb186ed9292934 | [] | no_license | humorbeing/python_github | 9c4dfc61a3cefbb266fefff335f6b28d05797e5e | e4b4b49bee7e7e3843c6874717779ce8d619bd02 | refs/heads/master | 2023-01-22T21:51:20.193131 | 2020-01-26T21:47:23 | 2020-01-26T21:47:23 | 163,707,778 | 0 | 0 | null | 2022-12-27T15:37:48 | 2019-01-01T01:58:18 | Python | UTF-8 | Python | false | false | 3,330 | py | import numpy as np
import matplotlib.pyplot as plt
def xy(name, num=None):
with open(name) as f:
lines = [line for line in f]
log = []
count = 0
step_stack = []
reward_stack = []
for line in lines:
count += 1
# if count % 500 == 0:
reads = line.split(',')
... | [
"geemguang@gmail.com"
] | geemguang@gmail.com |
29a98f623108212df0f2f2577f6c897f848ea3db | 5ccfa68d2e26facc7dd51a65bdb80d3372903365 | /adventofcode.com/utils/color.py | 62053fdefbb2c92149bccb26a3ed5c8c19c363b9 | [] | no_license | ceasaro/ceasaro_py | 71b93165a48dce48b027c2a3c727f6fdeaf62f0f | a3e2c02140e2abc165cc522756a9bce1f422a9e2 | refs/heads/master | 2023-06-25T20:17:33.826726 | 2023-06-12T11:38:07 | 2023-06-12T11:38:07 | 12,404,093 | 0 | 0 | null | 2023-05-22T22:36:36 | 2013-08-27T11:18:46 | Python | UTF-8 | Python | false | false | 631 | py | BLACK = 30
RED = 31
GREEN = 32
YELLOW = 33
BLUE = 34
MAGENTA = 35
CYAN = 36
LIGHT_GRAY = 37
GRAY = 90
LIGHT_RED = 91
LIGHT_GREEN = 92
LIGHT_YELLOW = 93
LIGHT_BLUE = 94
LIGHT_MAGENTA = 95
LIGHT_CYAN = 96
WHITE = 97
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
def color_str(color, msg):
return f"\033[{c... | [
"ceesvw@gmail.com"
] | ceesvw@gmail.com |
52cc00f46994e1856562d91ec95b2bb010b70b6d | d0cb58e1658d4b5b88bdc07e497dc8092707ae02 | /2020/08August/24PandasDataFrame13.py | 0e993fe386a578073837a0851e831148ec09f103 | [] | no_license | June-fu/python365 | 27f9b753d38ade549d59aa8f2d8bda0fb8b1e20c | 242033a4b644a7566fbfa4dba9b60f60aa31fe91 | refs/heads/master | 2021-07-02T21:42:28.454091 | 2021-05-04T15:08:44 | 2021-05-04T15:08:44 | 233,629,713 | 0 | 0 | null | 2020-01-13T15:52:58 | 2020-01-13T15:36:53 | null | UTF-8 | Python | false | false | 734 | py | #!/usr/bin/python
'''
# @ Author: june-fu
# @ Create Time: 2020-12-20 21:49:51
# @ Modified by: june-fu
# @ Modified time: 2020-12-20 22:09:47
# @ Description:
calculate the sum of the examination attempts by the students.
'''
import pandas as pd
import numpy as np
dct1 = {'name': ['Anastasia', 'Dima', 'Katherine... | [
"fujun1990@gmail.com"
] | fujun1990@gmail.com |
80ca915f03a9b34dea6395041cf2e15786e0e031 | 91ff6fdf7b2ccc58869d6ad41842f230644952c1 | /ultratech_core/migrations/0001_initial.py | 4860a82e6b68f5421ad191cac9812d4f5cdc2779 | [] | no_license | KONASANI-0143/Dev | dd4564f54117f54ccfa003d1fcec4220e6cbe1f9 | 23d31fbeddcd303a7dc90ac9cfbe2c762d61c61e | refs/heads/master | 2023-08-14T15:59:59.012414 | 2021-10-13T14:54:49 | 2021-10-13T15:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | # Generated by Django 3.0.6 on 2020-05-21 06:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Preferences',
fields=[
('id', models.AutoFi... | [
"harinadhareddypython@gmail.com"
] | harinadhareddypython@gmail.com |
6d48e276f58017bdc4f368b3f92159159624a379 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv2/mmcv/mmcv/utils/__init__.py | f75168a74ed5087b90edea3d504a8a1a673eba24 | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 1,695 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
434f96c146f909870b57c3cc98deab45416581e2 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/costa_coffee_gg_gb_im_je.py | a4e2022daf006b70b9e6b2c80b60d7fc022e2027 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 5,603 | py | from scrapy import Spider
from scrapy.http import JsonRequest
from locations.categories import Categories, Extras, apply_category, apply_yes_no
from locations.dict_parser import DictParser
from locations.geo import point_locations
from locations.hours import OpeningHours
class CostaCoffeeGGGBIMJESpider(Spider):
... | [
"noreply@github.com"
] | alltheplaces.noreply@github.com |
7128fdf457058ab4d21c61a581c11328e4ce0797 | 02c394db353d996038c9bedbeaf91bb080c12ca2 | /dsm/epaxos/inst/store.py | 28229c7aa18c70adcccb274eb860057ec8542551 | [
"MIT"
] | permissive | Limber0117/python-epaxos | 0633752cffaca65c0d8b9c3aecf9c8bc6ca70f3e | e68bab50e7df32770103196c91d8708863691579 | refs/heads/master | 2021-08-23T22:31:47.283682 | 2017-12-06T22:16:21 | 2017-12-06T22:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,719 | py | import logging
from typing import NamedTuple, Dict, Optional, Tuple
from uuid import UUID
from dsm.epaxos.cmd.state import CommandID
from dsm.epaxos.inst.deps.cache import KeyedDepsCache
from dsm.epaxos.inst.state import State, Ballot, Slot, Stage
class InstanceStoreState(NamedTuple):
ballot: Ballot
state: S... | [
"acizov@gmail.com"
] | acizov@gmail.com |
42214b04b82a14043926515e9a9d0b506da81f74 | 98a359465e6e0620accede5b87b819aed663179d | /schol_library/migrations/0167_auto_20200526_1433.py | 0bcdcd0a3380ba4d95d05f24f178d1bf85eff7eb | [] | no_license | mustavfaa/back-end | 88f8674bd6c2f8d0c4984a2a3d34f2aece3ec8d1 | 6635e8f504c7a7ba9709121b4dd8d5ccecdf05ca | refs/heads/main | 2023-08-15T10:48:03.461138 | 2021-09-27T15:26:03 | 2021-09-27T15:26:03 | 410,938,832 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # Generated by Django 2.2 on 2020-05-26 08:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('schol_library', '0166_auto_20200526_1432'),
]
operations = [
migrations.AlterUniqueTogether(
name='checkidrequestedition',
uniq... | [
"72229762+mustavfaa@users.noreply.github.com"
] | 72229762+mustavfaa@users.noreply.github.com |
4009119be865df166884eaf6f38adf6113478806 | 3f1dab410b11b1f7b3979a2436bcc099edf3b9c1 | /src/graph_transpiler/webdnn/frontend/chainer/converter.py | d08dd2f7ae6a742adb81b3763fa4cf68b5489aeb | [
"Zlib",
"MIT"
] | permissive | qifu99/webdnn | c7386ee3db3adbb718e9c71771a77ffe839b892f | dbf6c22e2555988d098575595cbc37fc042bc713 | refs/heads/master | 2021-01-19T08:04:27.598406 | 2017-08-17T01:17:06 | 2017-08-17T01:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,401 | py | # -*- coding:utf-8 -*-
"""
Chainer Link -> Graph object converters
Assuming Chainer 1.23 or 2.0
"""
import warnings
from typing import List, Union, Sequence, Set
from chainer import Function
from webdnn.frontend.constraints import AxisVar
from webdnn.frontend.converter import Converter
from webdnn.graph.graph import... | [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
30197389acb3578590648bb805b98e79d74595bc | 573220da9574b1ca16b530b93eb6801838b38ee5 | /app.py | d18c2cd5260fb14e64a22287e9ee9df08a46bb0b | [] | no_license | nova-sangeeth/Flask__blog__main | 0810879d9ed09940e334f0fa5827c74acbcd5dfd | 15b95f180608d051e3deb4aaf8f3a4889fc3d381 | refs/heads/master | 2020-09-14T03:21:22.758857 | 2020-06-18T17:55:25 | 2020-06-18T17:55:25 | 223,000,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,186 | py | from flask import Flask, render_template, request, redirect
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
app = Flask(__name__)
app.config[
"SQLALCHEMY_DATABASE_URI"
] = "sqlite:///blog.db" # /// means a relative path, //// means it is a absolute path.
app.config["SQLALCHEMY_TRACK_MODI... | [
"novasangeeth@outlook.com"
] | novasangeeth@outlook.com |
871bd249f549b78762891781da0e7e74582e8d83 | 80be1fa4b81a78e1afafe5092634e8dc318010a9 | /yoggsaron/models/__init__.py | cffbbc69dc45919f05d008a10e9f275d9d8c1321 | [] | no_license | tonicbupt/c-thun | 10ad152e0ce034a1857c8f8d53041fae53cce3ab | e851bfc4fd3e733e038f6ceea90f7b347c3e77cc | refs/heads/master | 2021-01-22T05:28:22.364857 | 2014-08-26T15:30:18 | 2014-08-26T15:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | # coding: utf-8
from .dish import Dish
from .order import OrderDish, Order
from .restaurant import Restaurant
__all__ = ['Dish', 'Order', 'Restaurant']
| [
"tonicbupt@gmail.com"
] | tonicbupt@gmail.com |
b4cb7d1748afcca8c61756c46770aaefb3bc8952 | 8b6cd902deb20812fba07f1bd51a4460d22adc03 | /back-end/.history/djreact/users/serializers_20191221131333.py | 1e1bb2bcff5539a9496bdade983d74e2f31a8f90 | [] | no_license | vishaldenzil/Django-react- | f3a49d141e0b6882685b7eaa4dc43c84857f335a | 35b6d41f6dacb3bddcf7858aa4dc0d2fe039ff98 | refs/heads/master | 2022-11-08T09:27:02.938053 | 2020-05-29T04:53:52 | 2020-05-29T04:53:52 | 267,768,028 | 0 | 1 | null | 2022-10-15T14:08:30 | 2020-05-29T04:52:20 | Python | UTF-8 | Python | false | false | 191 | py | from rest_framework import serializers
from .models import User
class UserRegistrationSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__
| [
"vishal.denzil@ezedox.com"
] | vishal.denzil@ezedox.com |
f13c714b2b66ea392c8848f14cedd68993446987 | 852a91492a737e9a2c210df883029b684ca6a448 | /jade2/basic/structure/biopython_util.py | e507bcba04a299110c4659211203f75c5c837ef4 | [
"BSD-3-Clause"
] | permissive | jadolfbr/jade2 | cb33f4a8cbf560f5ebaef4de2789ff50f372ff5a | 91f18d6004f123d11ea8618171154aa25a7444e9 | refs/heads/main | 2022-09-12T06:23:23.356864 | 2022-03-24T20:15:13 | 2022-03-24T20:15:13 | 427,541,475 | 0 | 0 | NOASSERTION | 2021-11-13T01:34:34 | 2021-11-13T01:34:34 | null | UTF-8 | Python | false | false | 4,320 | py | import gzip
import os
import sys
import logging
from pathlib import Path
from typing import Union, List
from Bio.PDB.PDBParser import PDBParser
from Bio.PDB.MMCIFParser import MMCIFParser
from Bio.PDB.Residue import Residue
from Bio.PDB.Structure import Structure
from Bio.PDB.Chain import Chain
from Bio.PDB.Model impo... | [
"jadolfbr@gmail.com"
] | jadolfbr@gmail.com |
d66bef1246c571ddf493cf587902f23858053b58 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03785/s746303636.py | aef71741efdde9c3454a67489cef28a92a40bd56 | [] | 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 | 359 | py | n, c, k = map(int, input().split())
t_l = []
for _ in range(n):
t_l.append(int(input()))
t_l.sort()
ans = 0
cnt = 0
for t in t_l:
if cnt == 0:
t1 = t
if t <= t1 + k:
cnt += 1
if cnt == c:
cnt = 0
ans += 1
else:
cnt = 1
ans += 1
t1 =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
242d70d5677634496d3948cbd845413b2fdd04b8 | 6ecd1efd0af4b5ec05ddc70981387e54a55c424e | /grapy/core/__init__.py | c6ea1d60632ff6676b419d92c04f6a031ccc24ec | [] | no_license | oscar810429/grapy | ab8a3a2717b855c7f11d97a8c28fa3b9a0752591 | 725db528f01a50cc7f88fc3002148eb85d8da740 | refs/heads/master | 2021-05-03T23:15:06.933436 | 2017-12-07T09:03:31 | 2017-12-07T09:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from .engine import Engine
from .base_spider import BaseSpider
from .base_sched import BaseScheduler
from .base_request import BaseRequest
from .item import Item, dump_item, load_item
__all__ = ['Engine', 'BaseSpider', 'BaseScheduler', 'BaseRequest',
'Item', 'dump_item', 'load_item']
| [
"lmjubuntu@gmail.com"
] | lmjubuntu@gmail.com |
74d4e33203cc25c5e02beea9fc3531b76b8cb52e | a1f2df675cfc595b15f1ca9390b7517989f2d4e0 | /testCase/contacts/testUpdateContact.py | 3229d0b16fcaad3fb6eae0528dab1a62be7cb76c | [] | no_license | GGGYB/crm | d4def2f1abc89451e1c4b11b89ef100a842ed745 | 61932466dd0ac299adc661383d506389d5f0f8e7 | refs/heads/master | 2022-04-15T21:29:48.539311 | 2020-04-14T10:23:41 | 2020-04-14T10:23:41 | 255,575,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py | # -*- coding: utf-8 -*-
__author__ = 'Jun'
from bs4 import BeautifulSoup
import re
from commons import common
from commons.const import const
from testCase.users import testGetUser as users
class UpdateContacts:
def __init__(self, cookie, csrf):
self.common = common.Common(cookie, csrf)
self.user... | [
"nlnongling@163.com"
] | nlnongling@163.com |
41525bb975f3ec9ef593887575ca6510b54ed9d2 | fdf1e1f4efc51bc024311d44a2fa4524f9b88bce | /girleffect/people/migrations/0037_p1_changes.py | 86a336f4444657780412bce0cc2f7d95aec23acd | [] | no_license | girleffect/girleffect.org | 8327ffd6bbd1103033c92fbd4cbe5461aa1c7f03 | 55731b1c024f207211a161fd6d3ca796beea7a61 | refs/heads/master | 2023-04-07T21:40:43.910892 | 2022-06-14T11:50:21 | 2022-06-14T11:50:21 | 112,452,828 | 1 | 2 | null | 2023-04-01T12:05:55 | 2017-11-29T09:13:18 | Python | UTF-8 | Python | false | false | 16,328 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-01-18 12:13
from __future__ import unicode_literals
from django.db import migrations, models
import girleffect.utils.models
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields
import wagtail.wagtaildocs.blocks
import wagtail.wagtailembeds.blo... | [
"francesca.sargent@torchbox.com"
] | francesca.sargent@torchbox.com |
e0a8d3676179398cc36aa07dce632b41deb7b7a3 | 12abe02e205d3e8dabe78fb5a93ccca89e2c42c4 | /toontown/pets/DistributedPetProxyAI.py | 631ef5d03661d6e1496b796115e90b6cdfc834db | [] | no_license | nate97/toontown-src-py3.0 | 55092b2973b76e6b6d566887f44c52822684394c | f76c515801ae08c40b264b48365211fd44b137eb | refs/heads/master | 2022-07-07T05:23:22.071185 | 2022-06-22T16:36:10 | 2022-06-22T16:36:10 | 187,682,471 | 15 | 8 | null | null | null | null | UTF-8 | Python | false | false | 15,463 | py | from direct.showbase.PythonUtil import contains, lerp
from direct.distributed import DistributedObjectAI
from direct.directnotify import DirectNotifyGlobal
from toontown.pets import PetTraits, PetTricks
from toontown.pets import PetMood
from toontown.toonbase import ToontownGlobals
import random
import time
import copy... | [
"nathanielfuhr@gmail.com"
] | nathanielfuhr@gmail.com |
f1749ee208d511c587005cc25ad3e301acb39f2b | 2b8d4e22d10ca118fba0100cc87af04f3939448f | /ioud/founder_emp_loan/models/hr_loan.py | 90b500c4deff0237b2a3de75f17f118394033899 | [] | no_license | ahmed-amine-ellouze/personal | f10c0a161da709f689a3254ec20486411102a92d | 4fe19ca76523cf274a3a85c8bcad653100ff556f | refs/heads/master | 2023-03-28T23:17:05.402578 | 2021-03-25T13:33:18 | 2021-03-25T13:33:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,219 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api, _
from datetime import datetime
from dateutil.relativedelta import relativedelta
from odoo.exceptions import except_orm
from odoo.exceptions import UserError
class HrLoan(models.Model):
_name = 'hr.loan'
_inherit = ['mail.thread', 'mail.activity.mi... | [
"hussnainsajid08@gmail.com"
] | hussnainsajid08@gmail.com |
ecbf157c9dc7b470bcd997729fb7a638e168fd37 | bbbfc82402604389fb54136af421e3a41773b2e4 | /third_party/nucleus/io/python/bed_writer_wrap_test.py | d0e7ffc8c620b44786cc67879a21a5892e10812e | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | ruif2009/deepvariant | 0a75dcc66a09c3fb8dd5b40a3bf80a5ec610d2d2 | c7fd07016577c253f81ef253aed65c416e4c0ef7 | refs/heads/master | 2020-03-20T15:16:25.918599 | 2018-08-29T17:33:59 | 2018-08-29T17:33:59 | 137,508,815 | 0 | 0 | BSD-3-Clause | 2018-06-15T16:45:39 | 2018-06-15T16:17:25 | Python | UTF-8 | Python | false | false | 4,245 | py | # Copyright 2018 Google Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
#... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
b755c369082d791d6f7a3edce83be38b1fe2d9fc | 467bda4ef6b73138d5a55cad0a588021b337e4cb | /Built-inFunctions/lambda.py | af3c48cc6d800caed1560034d817a4e1d34c5927 | [] | no_license | eBLDR/MasterNotes_Python | c118c269de6d4880158382621c7a604e701c6101 | 0f6baadd5e7398c5e74f62ca45e44aa1ed85def0 | refs/heads/master | 2022-11-06T11:03:33.039026 | 2022-10-24T10:42:27 | 2022-10-24T10:42:27 | 143,124,690 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | """
map() and filter() work usually together with lambda functions.
lambda was considered was dropped from Python 2 when migrating to
Python 3, but they finally remained.
All functions created with lambda operator can also be created using the
normal way of defining a function.
"""
# lambda operator is a way to cre... | [
"ed.bldr@gmail.com"
] | ed.bldr@gmail.com |
74a70d271549abfa376c0130e321e0d731200223 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02859/s935054625.py | 63bcf2523f8e10da7b99ce4225db4db57c27ddd3 | [] | 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 | 780 | py | #from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations,permutations,accumulate # (string,3) 3回
#from collections import deque
from collections import deque,defaultdict,Counter
impo... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9200017a98fe4cc9d74ac5a65d9724c892c0caef | a3c8651bb991d7fd5ae575c8ce3020241fe15a4d | /venv/lib/python3.8/site-packages/virtualenv/create/debug.py | 38f0cc6211d97f92490ffb75a903b45ad2cb3973 | [] | no_license | chunyboy/test | fefff853c244657a5c33fe415d8552fdfcbb9eb7 | 44233736f86910fa934c4fd0f3e261df2f761a2d | refs/heads/master | 2022-12-13T11:33:06.176114 | 2022-11-29T15:32:01 | 2022-11-29T15:32:01 | 78,964,487 | 2 | 1 | null | 2017-01-14T22:34:28 | 2017-01-14T20:21:54 | Python | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/11/33/a4/7bcc3821bf1f8ae7c01d578e907defd33af3b658f0dd68c6bd9c84d0c9 | [
"chunyboy@users.noreply.github.com"
] | chunyboy@users.noreply.github.com |
de11da97a5d29e9dbb28648ff004e32c6becb80a | d1ea426d87f68e512df00a555ea10518372cc300 | /google/cloud/bigquery_storage_v1/services/big_query_write/client.py | d25dbfc6e5150e1ae7645519741ca9c99f6dab05 | [
"Apache-2.0"
] | permissive | googleapis/python-bigquery-storage | a3e1f21c926a2230700c00121ece087576d72b57 | 9550ea666721f5dac5b708e2537de29a9bef7cd9 | refs/heads/main | 2023-08-27T22:51:32.069495 | 2023-08-23T22:56:41 | 2023-08-23T22:56:41 | 226,992,483 | 89 | 40 | Apache-2.0 | 2023-09-14T13:41:24 | 2019-12-10T00:09:08 | Python | UTF-8 | Python | false | false | 47,563 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
4a2b0afd6a771da8a5184cdbf223111f516daaa0 | 4e8876d7b29cf9fb05849da77553b8a7e3783bdc | /src/plugins/processing/tools/dataobjects.py | 4b3e244e3fb0bcdc47fed71680ef34b08476f4c3 | [] | no_license | hydrology-tep/hep-qgis-plugin-lite | 48477f504b6fc1a9a9446c7c7f5666f4b2ccfee7 | 781cbaa1b3e9331de6741dd44a22322048ab176c | refs/heads/master | 2021-03-27T17:01:18.284421 | 2018-06-27T12:09:58 | 2018-06-27T12:09:58 | 70,825,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,292 | py | # -*- coding: utf-8 -*-
"""
***************************************************************************
dataobject.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
*******************... | [
"joaa@localhost.localdomain"
] | joaa@localhost.localdomain |
346dab3b4f521560c406a72391886bc26d742ca6 | febb7a4b889c2f40637e2b688eb770cf0809226f | /fython/test/importpec_fort/fort_slice_import_test.py | f267833fb682e1cdab2266b4ad94ed42a1be4a25 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nicolasessisbreton/fython | 68253552c626640b5efc2a7cea9384c8e0425c08 | 988f5a94cee8b16b0000501a22239195c73424a1 | refs/heads/master | 2021-01-10T07:10:06.793158 | 2017-08-25T17:27:05 | 2017-08-25T17:27:05 | 50,076,320 | 48 | 3 | null | 2016-08-21T17:16:12 | 2016-01-21T02:30:31 | Python | UTF-8 | Python | false | false | 351 | py | s="""
.a.f90
module a
integer :: x_a = 10
integer :: y_a = 20
end module
.b.fy
import .a(
x_a,
y_a = y,
)
int x = 1
print 'in b {:x} {:x_a} {:y}'
"""
from fython.test import *
shell('rm -rf a/ a.* b.* c.*')
writer(s)
w = load('.b', force=1, release=1, verbose=0, run_main=0)
# print(open(w.module.... | [
"contact@nicolasessisbreton.com"
] | contact@nicolasessisbreton.com |
f40d8834fbc04247849b75f9d35c610536b825fc | af7466d6abfcce9e02efe91abe1875fbcf8d04aa | /tests/test_handlers.py | 08958e97ccff36b29be6c13a70d7d8ae978fcf34 | [] | no_license | NYPL/sfr-oclc-catalog-lookup | eb1472d1a6cab85734b4c0ac6648de846e5b00fb | 4bf3bde518211870d6c20cde840c57bd83c1816c | refs/heads/development | 2020-04-15T07:45:59.184860 | 2020-02-05T21:22:32 | 2020-02-05T21:22:32 | 164,501,003 | 1 | 1 | null | 2020-02-05T21:22:34 | 2019-01-07T21:43:14 | Python | UTF-8 | Python | false | false | 2,023 | py | import json
import unittest
from unittest.mock import patch, mock_open, call
# Set this variable here as it gets checked at loadtime
import os
os.environ['OUTPUT_REGION'] = 'us-test-1'
from service import handler
from helpers.errorHelpers import NoRecordsReceived, OCLCError, DataError
from lib.outPutManager import Ou... | [
"mwbenowitz@gmail.com"
] | mwbenowitz@gmail.com |
4f89c0d7604b00adf91883ce24a5ba05046c75d8 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/powerplatform/enterprise_policy.py | c047284e41d10afb065e0322ff9338fa8b28705c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 16,325 | 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
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
9b2c0ade2bac3fb04dd982ba529d79dd7992559d | 5db0fab37c2b8a618d85d3b60fab9f806c416474 | /src/python/pants/backend/codegen/export_codegen_goal_test.py | 98f758e8e1525846c7e650945edeebd056882484 | [
"Apache-2.0"
] | permissive | pantsbuild/pants | 4988d1ac5474ec95f94ce2218aeb759401e4b011 | 98cbda8545f0d58c586ed2daa76fefd729d5e0d5 | refs/heads/main | 2023-09-05T03:44:17.646899 | 2023-09-01T19:52:09 | 2023-09-01T19:52:09 | 7,209,075 | 2,708 | 593 | Apache-2.0 | 2023-09-14T19:33:33 | 2012-12-17T17:39:04 | Python | UTF-8 | Python | false | false | 3,804 | py | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pathlib import Path
import pytest
from pants.backend.codegen.export_codegen_goal import ExportCodegen
from pants.backend.codegen.export_codegen_goal import rules as write_codegen_ru... | [
"noreply@github.com"
] | pantsbuild.noreply@github.com |
133365e71eb1d8396eba4ae1e26a95f054b6856d | bd5e611a2d177b3f3ca58965b53e8ce0e6d2000b | /assignments/A5/A5Part3.py | 1ae4028afbeec415b763cf726b263acd06b4652a | [] | no_license | jiemojiemo/audio_signal_processing_assignments | 680f921ad8984d1869f10fab0eae183ef19cb808 | 0d26ada375c3a54fe9dda3e490880168a17769a2 | refs/heads/master | 2020-04-04T14:07:36.649933 | 2018-11-09T13:50:26 | 2018-11-09T13:50:26 | 155,987,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,403 | py | import numpy as np
from scipy.signal import get_window
import sys, os
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../software/models/'))
import stft
import utilFunctions as UF
import sineModel as SM
import matplotlib.pyplot as plt
"""
A5-Part-3: Tracking sinusoids of different amplitu... | [
"460706836@qq.com"
] | 460706836@qq.com |
60cc252d5efc1565cc179eb8a6d0416f4faf6e6c | 422e3fb2aeaa9853ba6ac809bc3d0f1ee507ae27 | /funcionario/urls.py | 20fd28ee4e17eb598a1defa4a92c7f3292785a4c | [] | no_license | redcliver/oldRodao | e279343de24952b7b86df50ff07f34be83881db6 | 0acc4440f9b7f92599fe4ef7a1d1af5bed52a81b | refs/heads/master | 2020-03-07T19:12:14.066837 | 2018-07-25T20:15:50 | 2018-07-25T20:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.func),
url(r'^busca', views.busca),
url(r'^editar', views.editar),
] | [
"igor-peres@hotmail.com"
] | igor-peres@hotmail.com |
76f610cdb180210a08cc572c6227d53a33bab208 | fcde32709c62b8ee86da459bb7c8eee52c848118 | /爬虫1905/day07/京东.py | 564987878e9830e8db1ae8ffd2b55bd530e805a6 | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | from selenium import webdriver
import time
class JDSpider:
def __init__(self):
self.url = 'https://www.jd.com/'
self.browser = webdriver.Chrome()
def get_html(self):
so = '//*[@id="key"]'
button = '//*[@id="search"]/div/div[2]/button'
self.browser.get(self.url)
... | [
"598467866@qq.com"
] | 598467866@qq.com |
e145f42d9f464a5eefd91e30bdb2bcfe77fba0d7 | caaf1b0754db1e676c37a6f1e58f19183754e654 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2023_01_01/operations/_private_link_resources_operations.py | ee2978f9ad1fbe77a9f34143f1f9ed6b203ac70f | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | rdomenzain/azure-sdk-for-python | 45dfb39121a0abda048c22e7309733a56259f525 | 58984255aeb904346b6958c5ba742749a2cc7d1b | refs/heads/master | 2023-07-07T06:53:12.967120 | 2023-07-04T16:27:37 | 2023-07-04T16:27:37 | 258,050,134 | 0 | 0 | MIT | 2020-04-23T00:12:14 | 2020-04-23T00:12:13 | null | UTF-8 | Python | false | false | 6,733 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | rdomenzain.noreply@github.com |
836f58f4da328567c3d68ec5c6b81c8bb68ba7b9 | 7393ac624a6d6fda7d427ed58d6100a3e0fc8f53 | /workflows/launcher/launch_gruneisen_lammps_gan.py | b74df62c40fe577e7a1c3398e66569e85c688bb2 | [
"MIT"
] | permissive | abelcarreras/aiida_extensions | 9f460efe81bbf1817ccbd630ba253fbb2b074f3f | cce3fe537d041fdae87c5a60ce433e6de3fc30cf | refs/heads/master | 2020-12-30T14:20:16.919507 | 2017-10-12T10:19:29 | 2017-10-12T10:19:29 | 91,312,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,873 | py | from aiida import load_dbenv
load_dbenv()
from aiida.orm import Code, DataFactory, load_node, WorkflowFactory
StructureData = DataFactory('structure')
ParameterData = DataFactory('parameter')
import numpy as np
# GaN [-37000 bar <-> 23000 bar]
cell = [[ 3.1900000572, 0, 0],
[-1.5950000286, 2.7626... | [
"abelcarreras83@gmail.com"
] | abelcarreras83@gmail.com |
5642ee169b46ea3d6ea0401b70298635c483407b | 304033f60097c489cbc60aab639be45ccdbef1a5 | /algorithms/boj/backtracking/15654.py | 8c2f51d67360895663b0b2f353ca4a026687c41b | [] | no_license | pgw928/TIL | 3d0c47c07bd1f5c73826daf8579a2b0e3f93cb95 | 765906f1e6eecad4ad8ec9bf704041433d7eb304 | refs/heads/master | 2023-06-29T05:46:30.039815 | 2021-08-10T17:38:11 | 2021-08-10T17:38:11 | 288,923,095 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import sys
n, m = map(int, sys.stdin.readline().split())
nums = sorted(map(int, sys.stdin.readline().split()))
check = { i:None for i in range(1, m+1)}
def sol(count):
for j in nums:
if is_promising(check, j):
if count == m:
print(' '.join(tuple(map(str, check.values()))))
... | [
"pku928@naver.com"
] | pku928@naver.com |
42e0ee2ee493ebde7c93afaf2deefaac986dbdec | ac5d55e43eb2f1fb8c47d5d2a68336eda181d222 | /DynamicProgramming/97. Interleaving String.py | 0e401e739d87b2005763a77deaff14da8c93d611 | [] | no_license | tinkle1129/Leetcode_Solution | 7a68b86faa37a3a8019626e947d86582549374b3 | 1520e1e9bb0c428797a3e5234e5b328110472c20 | refs/heads/master | 2021-01-11T22:06:45.260616 | 2018-05-28T03:10:50 | 2018-05-28T03:10:50 | 78,925,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | # - * - coding:utf8 - * - -
###########################################
# Author: Tinkle
# E-mail: shutingnjupt@gmail.com
# Name: Interleaving String.py
# Creation Time: 2017/7/29
###########################################
'''
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.
For example,
... | [
"496047829@qq.com"
] | 496047829@qq.com |
f3bd4f44ced66abe1c50595c93e708d92e8a4c3d | d8fa0ed226e6dbc0f607961c8b711362942b120a | /maskrcnn_benchmark/layers/dcn/__init__.py | 5c6f9b3fefa0fdd9e778240fade7936f39573569 | [] | no_license | ltnghia/video-maskrcnn | 70d003f038f82156ec9a8dca4ce1b8ea1190792c | b0bc8eb8b43a8b45335625525eba620b389ba591 | refs/heads/master | 2021-06-19T11:13:29.058747 | 2021-04-01T02:19:07 | 2021-04-01T02:19:07 | 199,971,172 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | #
# Copied From [mmdetection](https://github.com/open-mmlab/mmdetection/tree/master/mmdet/ops/dcn)
# | [
"trungnghiadk@gmail.com"
] | trungnghiadk@gmail.com |
1befb1e6f1472bf9f42e6013cb12d0bdc26e42e5 | c92f43835821d8df2b93dfd781f890e56891f849 | /Python3/8. String to Integer (atoi).py | 1cee13b16a12801e2e6ea04e8dba1f0ee1846ad4 | [] | no_license | iamdoublewei/Leetcode | f4ae87ed8c31537098790842a72cafa5747d8588 | e36f343aab109b051a9c3a96956c50b5580c7c15 | refs/heads/master | 2022-11-06T01:31:56.181800 | 2022-11-04T20:07:35 | 2022-11-04T20:07:35 | 71,944,123 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | '''
Implement atoi which converts a string to an integer.
The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this character, takes an optional initial plus or minus sign followed by as many numerical digits as possible, and inte... | [
"iamdoublewei@gmail.com"
] | iamdoublewei@gmail.com |
e57044e23794af6adb39ae2d9931be5168ad2322 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/sympy/2017/8/test_numbers.py | a76459908eb0f939477bb65b03f7114c552993ea | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 57,354 | py | import decimal
from sympy import (Rational, Symbol, Float, I, sqrt, oo, nan, pi, E, Integer,
S, factorial, Catalan, EulerGamma, GoldenRatio, cos, exp,
Number, zoo, log, Mul, Pow, Tuple, latex, Gt, Lt, Ge, Le,
AlgebraicNumber, simplify, sin, fibonacci, RealField)
... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
58bb679db3a7eb38d6e8e0ecd200d684801d97e7 | 81d635211686b1bc87af5892bd9e0fb95cc2ddb8 | /adwords api/googleads-python-lib-master/examples/dfp/v201511/user_team_association_service/create_user_team_associations.py | e98d6a7766208d4ef56d9b401e19d87e3a2da24d | [
"Apache-2.0"
] | permissive | analyticsbot/Python-Code---Part-2 | de2f0581258b6c8b8808b4ef2884fe7e323876f0 | 12bdcfdef4472bcedc77ae61707c25a4a09cba8a | refs/heads/master | 2021-06-04T05:10:33.185766 | 2016-08-31T13:45:45 | 2016-08-31T13:45:45 | 66,679,512 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | #!/usr/bin/python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"ravi.shankar1788@gmail.com"
] | ravi.shankar1788@gmail.com |
d9ac40a91577793d0c1810e9bab0ba59b898beac | b6e5d86b1212103c41fed600c937afab6b19e438 | /setup.py | 2ff8a57dbf9db9e47d19b46a2cb9a77a8fe039aa | [
"MIT"
] | permissive | 4064w007/gamma_index | 42e59554f84c8af389679705cd94b7017f10e141 | 887d3d83ab8779fc9f4ec73090ad032edec7ea73 | refs/heads/master | 2020-04-09T16:59:02.745028 | 2017-07-22T06:34:18 | 2017-07-22T06:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #!/usr/bin/env python
from setuptools import setup, find_packages, Extension
import itertools
gamma_c = Extension('gamma', sources = ['gamma_index/gamma.c'])
options = dict(
name='gamma_index',
version='0.1.3',
packages=find_packages(),
license='MIT',
include_package_data = True,
description='... | [
"jan.pipek@gmail.com"
] | jan.pipek@gmail.com |
841412bbb38497468d17c4c073b67c60d60b2d67 | 48aa5cc42d4af35470a4ba0545dd55a0812986c7 | /mth5/groups/reports.py | 96261296b15466d3312fe39f881f1daee7142de8 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | kujaku11/mth5 | 4fb6e156bd93c13b558d69b866025a29abe8bae7 | ce814702c7116f5f0034f5d43a1392f61a2c3cd5 | refs/heads/master | 2023-08-03T17:27:37.074071 | 2023-04-18T00:22:27 | 2023-04-18T00:22:27 | 283,883,448 | 16 | 2 | MIT | 2023-09-12T23:44:45 | 2020-07-30T21:49:56 | Python | UTF-8 | Python | false | false | 1,607 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 23 17:03:53 2020
:copyright:
Jared Peacock (jpeacock@usgs.gov)
:license: MIT
"""
# =============================================================================
# Imports
# =============================================================================
import numpy ... | [
"peacock.jared@gmail.com"
] | peacock.jared@gmail.com |
71df871980ae414b88f015be80bace9bc42fcd93 | 51b630da92fe715af6d0b8d156c3492faa93a9c2 | /task.py | 26b8a23956729efd3ebde74fd98833c67773e71e | [
"MIT"
] | permissive | rezer0dai/rewheeler | 54dc12941e65b291388875197491c248468f8c8a | 548e5784999657199f1bc51d5a8b94d12cb27fce | refs/heads/master | 2020-06-03T00:15:27.327197 | 2019-06-18T09:09:30 | 2019-06-18T09:09:30 | 191,357,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,758 | py | import numpy as np
import random
CLOSE_ENOUGH = 1.15
def extract_goal(state):
return state[-4-3:-1-3]
# https://github.com/Unity-Technologies/ml-agents/blob/master/UnitySDK/Assets/ML-Agents/Examples/Reacher/Scripts/ReacherAgent.cs
def transform(obs):
return np.hstack([
obs[3+4+3+3:3+4+3+3+3], #pendul... | [
"aaa@bbb.ccc"
] | aaa@bbb.ccc |
3e4394a0646eda47d6f9ce72abd3a4216e14eb9e | 9d24ead596fd7a4135b3ed2ed840a85ceef1cd56 | /COVIDPandasUppgift/balls/new.py | 07b66f9613e31b55fc20047c6eb620171a4789ec | [] | no_license | blarpet/PRO-AXEL-JOBSON | 656daaf2cceabc4916312fa43d3f5c050fdd513a | dd9a073cdc6e8ba0cd0237b0a25945c31528a53e | refs/heads/master | 2023-05-08T19:56:44.803866 | 2021-05-31T11:29:07 | 2021-05-31T11:29:07 | 290,454,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import pandas as pd
import plotly.express as px
df = pd.read_csv("National_Total_Deaths_by_Age_Group.csv")
options = []
for age in df.Age_Group:
options.append(dict(label = age, value = age))
fig = px.bar(df,x = "Age_Group", y = "Total_Cases")
fig.write_html('first_figure.html', auto_open=True)
print(df.head())
... | [
"you@example.com"
] | you@example.com |
722d4642986e50ffbe82058abcf1195bc73e7946 | 5f51d41baa66867c48694e633d8ac1c757b385af | /0x00-python_variable_annotations/6-sum_mixed_list.py | 95b9903a8bb6235692db2cb5b3bdc725c94ceaa4 | [] | no_license | JuanOlivares1/holbertonschool-web_back_end | cd7f53fbaffc837b5c569ce740542a0ef22d2363 | 43dee7a118424d8e0a12f4c2a7109f331ac73d5c | refs/heads/main | 2023-08-20T14:16:28.028464 | 2021-10-07T22:55:33 | 2021-10-07T22:55:33 | 387,531,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python3
""" Module """
from typing import List, Union
def sum_mixed_list(mxd_lst: List[Union[int, float]]) -> float:
""" Returns the sum of all list's items """
sum: float = 0
for n in mxd_lst:
sum += n
return sum
| [
"jdop2000@gmail.com"
] | jdop2000@gmail.com |
af89d27822a95aad81e261d0a5997807ad93618b | d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189 | /tags/pyplusplus_dev_0.9.5/pyplusplus/module_creator/creator.py | 6b1699cf983a159a8044bc084e0af529bf9f74b8 | [
"BSL-1.0"
] | permissive | gatoatigrado/pyplusplusclone | 30af9065fb6ac3dcce527c79ed5151aade6a742f | a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede | refs/heads/master | 2016-09-05T23:32:08.595261 | 2010-05-16T10:53:45 | 2010-05-16T10:53:45 | 700,369 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 35,704 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import types_database
import creators_wizard
import sort_algorithms
import dependencies_manager
import opaque_types_ma... | [
"roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76"
] | roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76 |
29a8e3fae3cc14190dd745fda358b6adbedd3235 | 28de04457e8ebcd1b34494db07bde8a3f25d8cf1 | /easy/relative_ranks_506.py | dba84689bb3b4ada3bd233ad1d4f741db9778e21 | [] | no_license | YangXinNewlife/LeetCode | 1df4218eef6b81db81bf2f0548d0a18bc9a5d672 | 20d3d0aa325d79c716acfc75daef32f8d4f9f1ad | refs/heads/master | 2023-08-16T23:18:29.776539 | 2023-08-15T15:53:30 | 2023-08-15T15:53:30 | 70,552,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # -*- coding:utf-8 -*-
__author__ = 'yangxin_ryan'
"""
Solutions:
这里的处理办法是先将数据排序,默认的前三个元素分别是:
Gold Medal
Silver Medal
Bronze Medal
后面的用下标 + 1代替
"""
class RelativeRanks(object):
def findRelativeRanks(self, nums: List[int]) -> List[str]:
pos = {n: i + 1 for i, n in enumerate(sorted(nums, reverse=True))}
... | [
"yangxin03@youxin.com"
] | yangxin03@youxin.com |
48105e2c2eb93f33c63a7ae9e894b6c88b70494d | 16caebb320bb10499d3712bf0bdc07539a4d0007 | /objc/_ContactsUICore.py | dea39d4b0255acdcdd6be154fd08c31e13327e61 | [] | no_license | swosnick/Apple-Frameworks-Python | 876d30f308a7ac1471b98a9da2fabd22f30c0fa5 | 751510137e9fa35cc806543db4e4415861d4f252 | refs/heads/master | 2022-12-08T07:08:40.154553 | 2020-09-04T17:36:24 | 2020-09-04T17:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,948 | py | '''
Classes from the 'ContactsUICore' framework.
'''
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
_CNUILocalPhotoFuture = _Class('_CNUILocalPhotoFut... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
ca3048e417708c69249c76c57c3e868c4c8ba729 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00007/s006220863.py | cdaec1ff23fb635a4abf54da1e7866491a47bb12 | [] | 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 | 220 | py | from math import ceil
from functools import reduce
print(reduce(lambda x, y: int(ceil(int(ceil(100000 * 1.05 / 1000) * 1000) * 1.05 / 1000) * 1000) if x == 0 else int(ceil(x * 1.05 / 1000) * 1000) , range(int(input())))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e64374bbafac7b8b97a0251bdbbd43bf9e2035b7 | 82aada4592fc4fc8dfd6822bd37a1f6c79ee53c0 | /mainapp/daemons/vikidict/vikidict.py | 5cf68458abd9c82cd9e1ab610b1a5ab63d1f4ae0 | [] | no_license | Ancelada/canonizator | db79e9c16cdafb981e58dd933c03460a16803f90 | d5f14dddf3ed70dc8a0c10ecbb987fdf64eb682f | refs/heads/master | 2021-01-23T00:56:58.045369 | 2017-06-05T19:06:52 | 2017-06-05T19:06:52 | 85,855,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | import sys
import os
from bs4 import BeautifulSoup
import requests
import pymorphy2
import binascii
# path = os.path.dirname(sys.modules[__name__].__file__)
# path = os.path.join(path, '..')
# sys.path.insert(0, path)
# __path__ = os.path.dirname(os.path.abspath(__file__))
class Vikidict():
def __init__(self):
s... | [
"danydonatto@pochta.ru"
] | danydonatto@pochta.ru |
e07b156b01c9f1e08b27c8f6e63b732cad71f565 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /examples/account_management/reject_merchant_center_link.py | 92971480f07660b2cd66bdfdfeeac1e2397d9eed | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 6,207 | py | #!/usr/bin/env python
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
c80b24556a0be18f1c988d44226dd07ca53c1447 | ab9196b6356e3c0af7baf7b768d7eb8112243c06 | /Python&DataBase/5.21/HW02Pandas03_05_ClassEx05_김주현.py | 72383d87fa38906966d5ecf55a4a45b989d9756b | [] | no_license | wngus9056/Datascience | 561188000df74686f42f216cda2b4e7ca3d8eeaf | a2edf645febd138531d4b953afcffa872ece469b | refs/heads/main | 2023-07-01T00:08:00.642424 | 2021-08-07T02:10:25 | 2021-08-07T02:10:25 | 378,833,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py |
class FourCal:
def __init__(self,first,second):
self.first = first
self.second = second
def sum(self):
result = self.first + self.second
return result
def sub(self):
result = self.first - self.second
return result
def mul(self):
result = self.first * self.second
return result... | [
"noreply@github.com"
] | wngus9056.noreply@github.com |
e8dc3a1f5f2a3fdeec63fe5fd2a749367511e8ab | 5c2e0fe391f7c720d0a6c117a64f4c8e89fece93 | /research/object_detection/models/ssd_mobilenet_v1_feature_extractor.py | e64c966d5f72e27875bfa64f49a6f3ce45694522 | [
"Apache-2.0"
] | permissive | lyltencent/tf_models_v15 | e3bed9dfee42685118b0f3d21bb9de37d58cf500 | 0081dbe36831342051c09a2f94ef9ffa95da0e79 | refs/heads/master | 2022-10-20T20:00:26.594259 | 2020-09-19T05:37:22 | 2020-09-19T05:37:22 | 161,750,047 | 0 | 1 | Apache-2.0 | 2021-03-31T21:04:01 | 2018-12-14T07:47:33 | Python | UTF-8 | Python | false | false | 4,972 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"yxl7245@eng-4150-nix03.main.ad.rit.edu"
] | yxl7245@eng-4150-nix03.main.ad.rit.edu |
2dbd0c03e52beb11415376f65595220a7a52e734 | 29e1133741b339c2e6c4c0385a103f68baa32a11 | /Wos/crawle_spider.py | 8c53f1a85ff5ed5a1836f37dd9db86d8cfa3a4b6 | [] | no_license | Gscsd8527/AllProject | b406935dd1e969d1f45a62f870fb409f81ba4200 | 10b56c432b6f433e3a37967b7c717840e726765c | refs/heads/master | 2023-02-21T20:25:48.397668 | 2022-03-04T14:01:27 | 2022-03-04T14:01:27 | 199,461,253 | 13 | 6 | null | 2023-02-15T20:47:23 | 2019-07-29T13:45:25 | Python | UTF-8 | Python | false | false | 25,744 | py | import requests
from lxml import etree
import re
from lxml.html import tostring
import html
import uuid
import datetime
import pymongo
myclient = pymongo.MongoClient('mongodb://10.0.82.131:27017/')
mydb = myclient['Wos_Computer'] # 数据库
mydata = mydb['data2017'] # 表
from getCookies import getCookies, ... | [
"tan_gscsd@163.com"
] | tan_gscsd@163.com |
6a6cd80a80181a8fe1e845f57665f296dfaf7e0e | bf8ccfbe94fbf7d4d44cc2d44ce65f26560d008a | /virtupy/lib/python2.7/site-packages/botocore-0.33.0-py2.7.egg/botocore/hooks.py | 6e46ebf9402825ede0ecb3b19316970088e1714d | [] | no_license | yurmix/kupuestra2 | 921b2da933681f52a84c8c91bbd60ad964517a17 | aabeb7baa06b6d2a80e4ef495fa8fd6769ac76f9 | refs/heads/master | 2021-01-13T10:21:17.029635 | 2014-10-25T18:11:40 | 2014-10-25T18:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,542 | py | # Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file ac... | [
"grisha@alum.mit.edu"
] | grisha@alum.mit.edu |
5676800b14c8980248c0ab574043fba7b054977d | cacb2757d54aef112c43cc962b674582cbf1468e | /pumpp/core.py | 0db13b0e93d5301aac60fc44e8c0b7a720099169 | [
"ISC"
] | permissive | justinsalamon/pumpp | 9cf1ac6cf0dde1936b45c4d4c44728132a41d2b5 | c8d7be644f998721a841cb43e28c8e285af225a4 | refs/heads/master | 2021-01-01T15:37:38.949477 | 2017-07-18T19:31:07 | 2017-07-18T19:31:07 | 97,657,947 | 2 | 0 | null | 2017-07-19T01:10:14 | 2017-07-19T01:10:14 | null | UTF-8 | Python | false | false | 6,628 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
Core functionality
==================
.. autosummary::
:toctree: generated/
Pump
'''
import librosa
import jams
from .base import Slicer
from .exceptions import ParameterError
from .task import BaseTaskTransformer
from .feature import FeatureExtractor
from ... | [
"brian.mcfee@nyu.edu"
] | brian.mcfee@nyu.edu |
87ca3e048e36dae8645447b238f92ab0c3d924af | fe066cfd366f38e52fd779a437250001391d2de1 | /shortener_url/__init__.py | 9169fe6e8f3c003d35ba78c4b25ab63416fb6691 | [] | no_license | srault95/shortener-url | 708eb2c2f0d0b802362bd5846eb8bbe1dcf1b34b | 60255b9ccc86f9f59a95f04d49c14faacc7056c7 | refs/heads/master | 2021-01-21T10:45:40.155056 | 2017-03-01T07:07:25 | 2017-03-01T07:07:25 | 83,480,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | try:
from gevent import monkey
monkey.patch_all()
except:
pass
| [
"stephane.rault@radicalspam.org"
] | stephane.rault@radicalspam.org |
82a3aa46b605e8f17a99a67cb9b5993e4cac0a60 | 2bc7659be83178c43b1592efbe1d79c62fc4fa36 | /Python/1253 a부터 b까지 출력하기.py | 5543b4bb8d3d0ac5509cef8ba4a12eff8b847690 | [] | no_license | KIMSUBIN17/Code-Up-Algorithm | ede6f443fcf640ecf58282c582da43e124ca44af | 831180c28d234366a1d3cf118bd2a615dc404f00 | refs/heads/master | 2023-07-22T21:42:06.990542 | 2021-09-05T08:36:32 | 2021-09-05T08:36:32 | 286,932,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | a, b = input().split()
a = int(a)
b = int(b)
if(a > b):
for i in range(b, a+1):
print(i, end=' ')
else:
for i in range(a, b+1):
print(i, end=' ')
| [
"tnqls24860@naver.com"
] | tnqls24860@naver.com |
dc5d59c9621d108d4954db1465d6a8e5fee0b977 | 68ee9027d4f780e1e5248a661ccf08427ff8d106 | /extra/unused/LandsatPX_doc/get_landsat_pairs.py | a88d250ae60b9821006277c69db2c0e9ef8eebc0 | [
"MIT"
] | permissive | whyjz/CARST | 87fb9a6a62d39fd742bb140bddcb95a2c15a144c | 4fc48374f159e197fa5a9dbf8a867b0a8e0aad3b | refs/heads/master | 2023-05-26T20:27:38.105623 | 2023-04-16T06:34:44 | 2023-04-16T06:34:44 | 58,771,687 | 17 | 4 | MIT | 2021-03-10T01:26:04 | 2016-05-13T20:54:42 | Python | UTF-8 | Python | false | false | 2,628 | py | import os
import glob
import math
def makeParamFiles(A,B):
dayA = (A[13:16])
yearA = (A[9:13])
dayB = (B[13:16])
yearB = (B[9:13])
file1 = open("landsat8_" + yearB +"_"+dayA+"_"+dayB+".txt","w")
file1.write(os.path.realpath(A) +" "+ os.path.realpath(B))
file1.close()
file2 = open("params_landsat8_... | [
"wz278@cornell.edu"
] | wz278@cornell.edu |
596d04f0a09f737e1286f16c621b077b530e988b | aed18908f6cdf93774aac253273e47d6e3521003 | /runs/"res-30-deviation-as-0p01_loss--base10x46-scale-1.0.h5"/two_time_pad.py | f6a206ae98cac656207d3073a5e849774c74163f | [] | no_license | matthiasgoergens/TwoTimePad | cbd1e2cb081805baf503b0a4984e74e0508060f8 | 7dc3a276179e3c15b07b1ae2c3c8d31d34bf9a00 | refs/heads/master | 2021-07-03T22:59:06.211897 | 2021-06-13T09:03:33 | 2021-06-13T09:03:33 | 9,916,768 | 0 | 0 | null | 2013-07-04T05:25:17 | 2013-05-07T16:48:56 | Haskell | UTF-8 | Python | false | false | 38,620 | py | # -*- coding: utf-8 -*-
import functools as ft
import itertools as it
import math
import random
import re
import sys
from datetime import datetime
from pprint import pprint
import numpy as np
import tensorflow as tf
# import tensorflow_addons as tfa
from tensorflow.keras.callbacks import (
ModelCheckpoint,
T... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
5d52550b78b7a096a5f07042c2f7a901e73ada2b | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/accounts/views_20211013005944.py | b3778559b57bf3bf0425e1678a3cc6003745a10b | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from django.shortcuts import render
# Create your views here.
def register(register):
return render('register.html')
def login(register):
return render('register.html')
def log(register):
return render('register.html') | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
ac3cb9735acbbe7d612a9d4587f73eb38dc0804d | 14af6e17a596aa340f7a1700b213dc5d41771043 | /space/main.py | 63584e9f3b4a359761c6cf892ffe4d17c1d144dd | [
"BSD-3-Clause"
] | permissive | samdmarshall/space | 56d54d0da7a503cc1678786d0c2430ad20ebd194 | e9d9899d856c7c20d819e03357017dd07e1c8f23 | refs/heads/master | 2021-04-29T07:30:41.834581 | 2017-02-09T21:03:12 | 2017-02-09T21:03:12 | 77,950,055 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,477 | py | # Copyright (c) 2017, Samantha Marshall (http://pewpewthespells.com)
# All rights reserved.
#
# https://github.com/samdmarshall/space
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code... | [
"me@samdmarshall.com"
] | me@samdmarshall.com |
af0520a4722ea5f1f8dd0e65547fbf2701eaadfa | fd2aab479e164fc6334ba6de46e1e1a11a4eee37 | /pygamer/ugame.py | 99ea2ffce43b4f228bcad1c1ab36db100dcbd451 | [
"MIT"
] | permissive | cwalther/circuitpython-stage | 4286c61288e672da4249439518a03fae921bf2cf | 9596a5904ed757e6fbffcf03e7aa77ae9ecf5223 | refs/heads/master | 2023-07-13T23:05:10.034386 | 2020-07-18T12:47:18 | 2020-07-18T16:36:09 | 283,866,058 | 0 | 0 | MIT | 2020-07-30T20:01:11 | 2020-07-30T20:01:10 | null | UTF-8 | Python | false | false | 2,890 | py | """
A helper module that initializes the display and buttons for the uGame
game console. See https://hackaday.io/project/27629-game
"""
import board
import digitalio
import analogio
import gamepadshift
import stage
import displayio
import busio
import time
K_X = 0x01
K_O = 0x02
K_START = 0x04
K_SELECT = 0x08
K_DOWN ... | [
"openstack@sheep.art.pl"
] | openstack@sheep.art.pl |
9da2db5bfcfd595f9ceebece424d51f7ce16fdcb | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2823/60678/309534.py | ff9fc77e3106db7acaf5c0c5b11bbc5446c89c0d | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | a = input()
if a == '2 1':
print(2)
elif a == '1000 1':
print(1000)
elif a == '122 1310':
print(913060508)
elif a == '3 2':
print(5)
elif a == '247 394':
print(579515894)
elif a == '6 4':
print(39)
elif a == '6 4':
print(39)
elif a == '276 803':
print(472119642)
elif a == '141 1620'... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c91bc90b0cf1fad42a4e5dfed7b828e6b96f344c | 7f8bbf4b33f7ce03573f0a694fe9d44558805330 | /pos/models.py | 45b599ad9d3d9eb95756c4d88656c3cea2cc9b75 | [] | no_license | hashirharis/DjangoERP | 12b6937ea6f8664de80b43597a51388b116d0dfd | a70cc5980869c4d448f78bf06a8b0e876df6469e | refs/heads/master | 2021-01-02T09:20:29.739692 | 2014-12-14T01:24:49 | 2014-12-14T01:24:49 | 27,979,350 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,946 | py | #local imports
from users.models import Staff, Store, StoreLevelObject
from core.models import Product
#django imports
from django.db import models
from django.db.models import Sum
from django.conf import settings
#python imports
from decimal import Decimal as D
class LedgerAccount(models.Model): #for store/customer a... | [
"hashir.haris@gmail.com"
] | hashir.haris@gmail.com |
35524ae86beda78a5c68d1cabaf6999179bed782 | d2c87e3374e637a22f72ef050d0c868d634443e9 | /tournament.py | 378a79e6895a9e8d2e8a51bfaf4f922f99203636 | [] | no_license | Mec-iS/nanodegree-relationaldb | 64a5a3ca29b27ee52132c73b6c202ddbcaa56c89 | 02f18eb003b405fae24f55ef46fcb507522c829d | refs/heads/master | 2020-06-01T10:01:07.408243 | 2015-03-19T15:31:20 | 2015-03-19T15:31:20 | 32,499,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,383 | py | #!/usr/bin/env python
#
# tournament.py -- implementation of a Swiss-system tournament
#
import psycopg2
def connect():
"""Connect to the PostgreSQL database. Returns a database connection."""
return psycopg2.connect("dbname=tournament user=vagrant")
def deleteMatches():
"""Remove all the match recor... | [
"tunedconsulting@gmail.com"
] | tunedconsulting@gmail.com |
56090a90809fe8aa497d3bc52c32b42be2a07449 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/sync/syncable/DEPS | b0c904e40965a30b6f4ee6ae362b1d0d7dc40ede | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 259 | include_rules = [
"+net/base/escape.h",
"+sql",
"+sync/api/attachments",
"+sync/base",
"+sync/internal_api/public/base",
"+sync/internal_api/public/engine",
"+sync/internal_api/public/util",
"+sync/protocol",
"+sync/test",
"+sync/util",
]
| [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com | |
81c2e9fcbbd0b7dc64330d4b895b0b65f9cac825 | b4bc5fb10b0d498cb0d3e5ee2ce3473b10b553e5 | /fast_transformers/recurrent/attention/self_attention/fradamax_attention.py | 99342c8b72ae8ed6b8e5873ca2bced7ffb99fc31 | [] | no_license | minhtannguyen/momentum-transformer-code-submission | 2f0005028ab7e32957612f642330acd802bded8e | 68b11ce5564a8212cd91cb2093b457a00d511046 | refs/heads/master | 2023-05-31T19:20:57.380490 | 2021-06-04T15:08:26 | 2021-06-04T15:08:26 | 373,784,396 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,207 | py | """Implement the causally masked linear attention as a recurrent model."""
import torch
from torch.nn import Module
from ....attention_registry import RecurrentAttentionRegistry, Optional, Float, Int, \
Callable, EventDispatcherInstance
from ....events import EventDispatcher
from ....feature_maps import elu_featu... | [
"mn15@rice.edu"
] | mn15@rice.edu |
3f155324903843bae4304f1068687cdf92ed8338 | dba16143d8fa6aa73ca1d4df7bcfaca42824412c | /tests/src/year2021/test_day18a.py | 4a8bf87f8680744f81d6ef29b60953d7cddcb317 | [
"Unlicense"
] | permissive | lancelote/advent_of_code | 84559bf633189db3c3e4008b7777b1112f7ecd30 | 4b8ac6a97859b1320f77ba0ee91168b58db28cdb | refs/heads/master | 2023-02-03T14:13:07.674369 | 2023-01-24T20:06:43 | 2023-01-24T20:06:43 | 47,609,324 | 11 | 0 | null | 2019-10-07T07:06:42 | 2015-12-08T08:35:51 | Python | UTF-8 | Python | false | false | 3,719 | py | """2021 - Day 18 Part 1: Snailfish."""
import functools
from textwrap import dedent
import pytest
from src.year2021.day18a import explode
from src.year2021.day18a import Node
from src.year2021.day18a import reduce
from src.year2021.day18a import solve
from src.year2021.day18a import split
@pytest.mark.parametrize(
... | [
"lancelote.du.lac@gmail.com"
] | lancelote.du.lac@gmail.com |
d9ac7951c1faea6379410b63657b01be113355d3 | d0d94276979375dd0e2ce0629afdfc9e7a1ca52e | /program/agent/basic.py | fafd805dd273843147d87a5c31748f7f0716b756 | [] | no_license | haoxizhong/handy | 04f1abfe9855eb30531e51ad833b546438502a7c | e805dcabdb50d25f852d2eaec583fba7f6709e18 | refs/heads/master | 2020-03-08T10:20:09.245659 | 2018-05-03T08:38:57 | 2018-05-03T08:38:57 | 128,070,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | class BasicAgent:
def __init__(self, k, mod):
pass
def reinit(self):
pass
def next_step(self, l1, r1, l2, r2, action_list):
pass
| [
"zhonghaoxi@yeah.net"
] | zhonghaoxi@yeah.net |
9a9a722f51886c3fdb5a4a62aed3c8878ddfb36e | 8ccf2280a5b14e5003cf876692f99fad59d47d92 | /coding_corner/urls.py | 6f0326b80566c55784e65c3b1673feede0bd7ee1 | [] | no_license | Ngahu/coding-corner | aa746dc0cac84f91c4afee620a593b7745a31b20 | 199839d093f4261384282e687af00a6dc46ae7f2 | refs/heads/master | 2020-03-11T05:00:12.444649 | 2018-04-16T20:13:51 | 2018-04-16T20:13:51 | 129,790,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py |
from django.conf.urls import include,url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^api-auth/', include('rest_framework.urls')),
url(r'^todo/', include('todo.urls', namespace='todo')),
]
| [
"jamaalaraheem@gmail.com"
] | jamaalaraheem@gmail.com |
20338f57a39deabac94d80491f28c3f18bd949db | 90dfd9eba0103cbd44eb9e4f20d4d498a2509b41 | /appengine/django/conf/global_settings.py | adba93491251e09761cb14ed1fee633c777a6217 | [] | no_license | prestomation/SOSpy | 8303cb6cb157a6d66a1b2d3797ea3a48a7d189ac | 110310a21a2f3e17478910e7ab7bb05d3dad0419 | refs/heads/master | 2021-01-13T02:12:14.831471 | 2012-03-04T20:46:33 | 2012-03-04T20:46:33 | 3,180,852 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 21,677 | py | # Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
##########... | [
"prestomation@prestomation-ubuntu.(none)"
] | prestomation@prestomation-ubuntu.(none) |
9dc9d9fb1df3a21179180a6280037b1caa2c6bb4 | e7718e75201b5506206871da1239e1e49c0c438e | /djredcap/management/commands/redcap.py | 504014e946de7f547374d5fc0346750477f76f0d | [
"BSD-3-Clause"
] | permissive | dmegahan/django-redcap | aeca161f463ac5b69a8b6ae7beeb2d441bc18b26 | 9907bf8d35c02ab5937c60fdcd5c9bd88ccb24d8 | refs/heads/master | 2021-01-18T08:55:20.825128 | 2013-07-12T20:18:53 | 2013-07-12T20:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,862 | py | import sys
from optparse import NO_DEFAULT, OptionParser
from django.core.management.base import CommandError, BaseCommand, handle_default_options
from django.utils.importlib import import_module
class Command(BaseCommand):
help = "A wrapper for REDCap subcommands"
commands = ['inspect']
def print_subco... | [
"b@devel.io"
] | b@devel.io |
8118b5fbdb5b2009ee62c064de4350914636261b | 78d23de227a4c9f2ee6eb422e379b913c06dfcb8 | /LeetCode/205.py | 3bee43846ede99d934ea7b76898a58a5aed0797e | [] | no_license | siddharthcurious/Pythonic3-Feel | df145293a3f1a7627d08c4bedd7e22dfed9892c0 | 898b402b7a65073d58c280589342fc8c156a5cb1 | refs/heads/master | 2020-03-25T05:07:42.372477 | 2019-09-12T06:26:45 | 2019-09-12T06:26:45 | 143,430,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | class Solution:
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
s1 = set(s)
t1 = set(t)
if len(s1) != len(t1):
return False
hashmap = {}
for i, j in zip(s,t):
if i in hashmap:
... | [
"sandhyalalkumar@gmail.com"
] | sandhyalalkumar@gmail.com |
48627bb2a04d19b055aa36f14dabc49952e1c8a7 | e10422c540b3199cc5663c1c226ae2b8f24fd5cf | /OsComponents/mkdir_func.py | 7a3f21eb0fc810380d92f8b8716383523d149003 | [] | no_license | cccccsf/single_point | f014a9f0a18eb30ddd4a967a822eba3bd26ed53a | 61cc11b0c40e082b45c5458c8435dbea001af466 | refs/heads/master | 2020-05-09T10:10:05.035435 | 2019-05-07T12:44:30 | 2019-05-07T12:44:30 | 181,030,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/python3
import os
def mkdir(path):
folder = os.path.exists(path)
if not folder: #判断是否存在文件夹如果不存在则创建为文件夹
os.makedirs(path) #makedirs 创建文件时如果路径不存在会创建这个路径
print("--- new folder: ---")
print(os.path.split(os.path.split(os.path.split(path)[0])[0])[-1] + '/' + os.path.spli... | [
"cccccsf@hotmail.com"
] | cccccsf@hotmail.com |
7fc5ebfee57b2b9578b1c963127de47bf9d7bf00 | c5294a8e9a6aa7da37850443d3a5d366ee4b5c35 | /build/spencer_people_tracking/messages/spencer_vision_msgs/catkin_generated/pkg.installspace.context.pc.py | 44a3d4ad2ccc89c32276c0ffe532f9874abd3346 | [] | no_license | scutDavid/ros_gradution_project | 6eab9a5776ae090ae8999d31e840a12a99020c79 | fbbd83ada5aa223809615d55a48e632699afd4b5 | refs/heads/master | 2020-03-07T18:39:24.084619 | 2018-04-25T13:41:04 | 2018-04-25T13:41:04 | 127,647,113 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/wwh/qqq/install/include".split(';') if "/home/wwh/qqq/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;sensor_msgs;geometry_msgs;message_runtime".replace(';', ' ')
PKG_CON... | [
"1902828943@qq.com"
] | 1902828943@qq.com |
2de1274d7baaf6c2df45857c1c62f0be6aeb0e56 | e3c79bc77c660dd400e68ed498d876ec1b2a54f3 | /distances.py | 9686a61d7745b417ce403e8bcdcdd4ff25cde4cb | [] | no_license | rotolonico/image-regression | e3267e184b8ad30c3b8ce24d75b0a0b83eec9354 | edef7bf3aa9bc5b58c97e91fc4ffd3ac43ad9293 | refs/heads/master | 2022-09-11T02:23:20.387385 | 2020-06-02T17:26:08 | 2020-06-02T17:26:08 | 268,854,054 | 0 | 0 | null | 2020-06-02T16:35:45 | 2020-06-02T16:35:45 | null | UTF-8 | Python | false | false | 1,176 | py | from __future__ import division
import argparse
from skimage.io import imread
import numpy as np
from tsp_solver.greedy import solve_tsp
"""
Naively calculate a short path through the images
"""
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument(
'-i',
dest='image_filenames',
nargs='+',
... | [
"iver56@hotmail.com"
] | iver56@hotmail.com |
0c02dd809ad65b1b45b65187e2984797641b152a | 275a96a33ae1f89e7b2ee0ecdbac7d78abe6d6cc | /test/test_run_operation_result.py | 858116adc0976720fb2bb7ad92ca5198c0249495 | [] | no_license | cascadiarc/cyclos-python-client | 8029ce07174f2fe92350a92dda9a60976b2bb6c2 | a2e22a30e22944587293d51be2b8268bce808d70 | refs/heads/main | 2023-04-03T16:52:01.618444 | 2021-04-04T00:00:52 | 2021-04-04T00:00:52 | 354,419,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | # coding: utf-8
"""
Cyclos 4.11.5 API
The REST API for Cyclos 4.11.5 # noqa: E501
OpenAPI spec version: 4.11.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.run_ope... | [
"dan@leftcoastfs.com"
] | dan@leftcoastfs.com |
8ea9654512a97537bcda051c9e026e93673c53da | eee85a1ee54fa54e74b93bf3af8391c3f0c80b2a | /basic/python_izm01/joinpath.py | 15e64e79b249d6c2dbacd0b88e92f6391351436d | [] | no_license | ryu-0406/study-python | 8712a6e235e1ca92bb3c00ad053c8298f691108c | da10d5913de32569b2ba4bc98d9919a78e85d22a | refs/heads/master | 2022-12-14T22:43:45.236184 | 2020-09-13T03:55:36 | 2020-09-13T03:55:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # os.join.path
import os
PROJECT_DIR = 'C:\python-izm'
SETTING_FILE = 'setting.ini'
print(os.path.join(PROJECT_DIR, SETTING_FILE))
print(os.path.join(PROJECT_DIR, 'setting_dir', SETTING_FILE))
| [
"yoshi-da0406@outlook.jp"
] | yoshi-da0406@outlook.jp |
337304ee03e82971ba43476dce4568be927b4c77 | 44d1936bbc8e256534f3946f100bb0028e92fee5 | /backend/src/hatchling/builders/hooks/version.py | e139d19d9c3fdd6576fe6d2c89376873ed7d7b45 | [
"MIT"
] | permissive | pypa/hatch | aeb72e6a465a39073a020f63a931def16ce90ce8 | 7dac9856d2545393f7dd96d31fc8620dde0dc12d | refs/heads/master | 2023-09-04T04:04:25.079348 | 2023-09-03T23:48:21 | 2023-09-03T23:48:21 | 92,997,800 | 1,869 | 125 | MIT | 2023-09-13T19:39:25 | 2017-05-31T23:37:53 | Python | UTF-8 | Python | false | false | 2,362 | py | from __future__ import annotations
from typing import Any
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
from hatchling.version.core import VersionFile
class VersionBuildHook(BuildHookInterface):
PLUGIN_NAME = 'version'
def __init__(self, *args: Any, **kwargs: Any) -> None:
... | [
"noreply@github.com"
] | pypa.noreply@github.com |
922d426fc1139ee74ca4893cc71971950691e447 | cec68acfc0187b7d92fb7d6e5107058e3f8269ea | /OOPRehber.py | ca98535ddc792915a8aac56bbfe827b36e878c99 | [] | no_license | vektorelpython/Python8 | 441575224100a687467c4934f7c741aa0c4bd087 | d135fbf1444d56a0da38c42fd2e8feda48646f49 | refs/heads/master | 2022-01-18T12:17:40.387422 | 2019-09-07T13:47:55 | 2019-09-07T13:47:55 | 205,534,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,727 | py | from datetime import datetime
import os
class OOPDosya():
dosyaFormat = ".csv"
def __init__(self,**kwargs):
self.dosya = None
for key,value in kwargs.items():
if key == "dosya":
self.adres =os.getcwd()+os.sep+value+self.dosyaFormat
if key == "veriler":
... | [
"Kurs"
] | Kurs |
0077d6ec93d6be2f47c4029e0d2c475b5640c47f | 3a4fbde06794da1ec4c778055dcc5586eec4b7d2 | /@lib/12-13-2011-01/vyperlogix/ssl/__init__.py | eb74e37cfe6c8bc07909756a2517d38c03690188 | [] | no_license | raychorn/svn_python-django-projects | 27b3f367303d6254af55c645ea003276a5807798 | df0d90c72d482b8a1e1b87e484d7ad991248ecc8 | refs/heads/main | 2022-12-30T20:36:25.884400 | 2020-10-15T21:52:32 | 2020-10-15T21:52:32 | 304,455,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | __copyright__ = """\
(c). Copyright 2008-2014, Vyper Logix Corp., All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial educational use only.,
http://www.VyperLogix.com for details
THE AUTHOR VYPER LOGIX CORP DISCLAIMS ... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
3ecf8dfe7d9571bffd4b64faea23576dd474e7a9 | 14fc2ee47e1081416f0465e8afa18da33169095f | /src/PP4E/Internet/Other/http-getfile.py | 457616b78f1fe71aee22b13b3dcdf0b7839d82a9 | [] | no_license | madtyn/progPython | d95ea8021b1a54433e7b73de9d3b11d53a3096b7 | f3a1169149afdeb5191dd895462139f60d21d458 | refs/heads/master | 2021-07-09T13:35:27.519439 | 2017-10-04T14:46:57 | 2017-10-04T14:46:57 | 104,866,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | """
fetch a file from an HTTP (web) server over sockets via http.client; the filename
parameter may have a full directory path, and may name a CGI script with ? query
parameters on the end to invoke a remote program; fetched file data or remote
program output could be saved to a local file to mimic FTP, or parsed wit... | [
"madtyn@gmail.com"
] | madtyn@gmail.com |
c9a63f38eca1a4e6e50a9780623a331040a75f93 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/xuo.py | 1917c03cb3041115ab9ff752721092b0a98fb74e | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
e6de6fda316d44315778acf690209b6163af6b15 | dd3d31d48f1fae5fabc8355d83046c731e306612 | /google_api/google-cloud-sdk/lib/surface/compute/health_checks/update/ssl.py | d4bf2cbca6783ab1fbb8b4ef667588004dca5559 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | cjholz/Stutter_Classification | ea2aeea10c57a2525447285a37fe0735b89fd52c | 32cd5f793bf6cf8e231ae2048b7b2dbb0592b21a | refs/heads/master | 2020-06-04T02:11:08.252524 | 2019-06-13T20:40:09 | 2019-06-13T20:40:09 | 191,828,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,482 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cjholz@mit.edu"
] | cjholz@mit.edu |
a5c236042dbe21c66ff0f9cabec1cdaf04ff4535 | 24353bdd2695f7d277f00f1397b2fcc06a1413fe | /omsdk/http/sdkrestpdu.py | 1ef2eabd17449d6aab16f19fd08a9be4b26d8016 | [
"Apache-2.0",
"GPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | DanielFroehlich/omsdk | f129eb43a9335e29a9b1bb01b29a5c886138ea82 | 475d925e4033104957fdc64480fe8f9af0ab6b8a | refs/heads/master | 2020-04-10T00:16:48.223458 | 2018-12-06T14:00:33 | 2018-12-06T14:00:33 | 160,680,831 | 0 | 0 | Apache-2.0 | 2018-12-06T13:46:07 | 2018-12-06T13:46:07 | null | UTF-8 | Python | false | false | 4,655 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
# Copyright © 2018 Dell Inc. or its subsidiaries. All rights reserved.
# Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries.
# Other trademarks may be trademarks of their respective owners.
#
# Licensed under the Apache License, Ver... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
23e3531802e99bc3c6eea2f5b5c543aaa4bbbc7b | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/p_w.py | 08a9ccc7fea6e95530819e5611c84363b105e4b6 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
ecae9cbc32b6ec9ff2a4302c98197f778c67bb43 | b3d86713ed58e0b7fe3c1191324e36659c0d9d78 | /RegressionProgram/Testcode/kmeans/kmeans_test1.py | 6cd86f98bfc94b55fd5f3dc719af5851cedc2e96 | [] | no_license | Kose-i/machine_learning_tutorial | 3d6cb30a20d65c66aa6efcba0e693de75791507a | def223fecb459ad1a6e7f9f36b3d733a89efd378 | refs/heads/master | 2021-07-03T10:37:26.809388 | 2020-07-27T12:53:19 | 2020-07-27T12:53:19 | 174,057,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | #!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
import kmeans
np.random.seed(0)
points1 = np.random.randn(50,2)
points2 = np.random.randn(50,2) + np.array([5,0])
points3 = np.random.randn(50,2) + np.array([5,5])
points = np.r_[points1, points2, points3]
np.random.shuffle(points)
model = km... | [
"tamura.kosei905@mail.kyutech.jp"
] | tamura.kosei905@mail.kyutech.jp |
4e86b144cd367d4da2d02b1dfe5f04ed00b40944 | f97c13830f216cd58748bc78186634d02aed5e57 | /consolelogs/apps.py | 8d68002248fb77502bf33ed2554edc4a645fdde0 | [
"MIT"
] | permissive | stephanpoetschner/demo-whitehats | d835aa7fa1aa742519d368bb88ff685c97660756 | 0bd8ccd75f37129ac3ad82949a6899aa7b706b90 | refs/heads/master | 2020-03-13T20:20:00.726739 | 2018-05-04T07:40:45 | 2018-05-04T07:40:45 | 131,271,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class ConsolelogsConfig(AppConfig):
name = 'consolelogs'
| [
"stephan.poetschner@gmail.com"
] | stephan.poetschner@gmail.com |
a3275208520062eedf2819e57546d3a412078bde | f1a5905649c19688f2d01998da805dbdd5b73a5d | /supervised_learning/0x06-keras/7-train.py.bak | 834bd89ded9a75a8f806b9a74ca732608ed8c39f | [] | no_license | Aishaharrash/holbertonschool-machine_learning | 4d388daab993848b8c354af33478e14b04a6ef25 | 8a3792da58e6102293cd2b4aadc938c264ec3928 | refs/heads/main | 2023-06-07T07:16:37.643164 | 2021-07-09T19:14:47 | 2021-07-09T19:14:47 | 358,292,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,430 | bak | #!/usr/bin/env python3
"""
7-train.py
Module that defines a function called train_model
"""
import tensorflow.keras as K
def train_model(network, data, labels, batch_size, epochs,
validation_data=None, early_stopping=False,
patience=0, learning_rate_decay=False, alpha=0.1,
... | [
"vagrant@precise32.(none)"
] | vagrant@precise32.(none) |
cc1137e006408026a166b891fd18a04af1c92d3a | c0b10aa2dbb20d916cf77c31aab9f27c3003ecdb | /constructbinarysearchtreefrompreordertraversal1008.py | e8b70142385656e327035da093e1706b8af6380d | [] | no_license | cc13ny/LeetcodePractices | f6ba4881ebaa6d739cc01217d21653ae971f837d | 95f3344a14e10a8ba7816632a6d2177c6c81b8a3 | refs/heads/master | 2021-01-14T14:38:12.559455 | 2020-02-24T03:59:38 | 2020-02-24T03:59:38 | 242,645,175 | 0 | 0 | null | 2020-02-24T04:19:18 | 2020-02-24T04:19:17 | null | UTF-8 | Python | false | false | 2,259 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def bstFromPreorder(self, preorder):
#tree construction. insertion
if preorder == []:
return None
sel... | [
"yiq.shang@gmail.com"
] | yiq.shang@gmail.com |
4177d7077e1bed4f0b9976c80926b62327c04b29 | 62ccdb11daefaecc8e63f235c7519cc7594f705a | /images/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/compute/sole_tenancy/node_groups/flags.py | e1dc5a919cd87800bfb7e546356817c7a02ba3cf | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | hiday1979/kalabasa-mas | eccc869bfe259bb474f9d2a4dc4b8561a481f308 | 53a9818eb2a6f35ee57c4df655e7abaaa3e7ef5b | refs/heads/master | 2021-07-05T16:34:44.962142 | 2018-07-10T10:22:24 | 2018-07-10T10:22:24 | 129,709,974 | 0 | 1 | null | 2020-07-24T22:15:29 | 2018-04-16T08:27:13 | Python | UTF-8 | Python | false | false | 2,212 | py | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"accounts@wigitech.com"
] | accounts@wigitech.com |
362a7f37cbf41cc98839d61d62cb53d2eb8d9c2e | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/resolve/NumpyDocstringAttributeNameResolvesToInheritedClassAttribute.py | 63f5ca2af921064b5e58ab99eb759e16d26333fb | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 226 | py | class Foo:
"""
Attributes
----------
bar
Something cool
"""
bar = 1
class Baz(Foo):
"""
Attributes
----------
bar
<ref>
Re-documented but does exist still.
""" | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
84c352a89e220a60388723a844f438c3b940417c | caf8cbcafd448a301997770165b323438d119f5e | /.history/chapter01/python_05_if_condition_20201128215853.py | 959c6f854e6f730e5993c42e442d673bb15cbb06 | [
"MIT"
] | permissive | KustomApe/nerdape | 03e0691f675f13ce2aefa46ee230111247e90c72 | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | refs/heads/main | 2023-01-23T10:13:26.584386 | 2020-11-28T22:29:49 | 2020-11-28T22:29:49 | 309,897,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | """[if文について]
もし〜だったら、こうして
"""
# if 条件:
# 実行するブロック
# 条件によって処理を適応したい場合
# 3000kmごとにオイル交換しないといけない
distance = 3403
# if distance > 3000:
# print('オイル交換時期です')
# 文字列を比較する/リストを比較する
# if 'abc' == 'ABC':
# print('1同類です')
# if 'CDE' == 'CDE':
# print('2同類です')
# if 'あいうえお' == 'あいうえお':
# print('3同類です')
# if ... | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
8b09045d5961b139ce54084cacb2092c4503929d | 352b4d34a5d6f9b5fb6949f92f32cb1154c738c3 | /bin/quota-alignment/scripts/bed_utils.py | 52af9c802e37b56f44eb4667f6be7ef0494dfab8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | LyonsLab/coge | f03d812273a5ff18880c61663a4114f3cbc6d3d5 | 1d9a8e84a8572809ee3260ede44290e14de3bdd1 | refs/heads/master | 2022-01-21T22:29:57.269859 | 2021-12-21T19:56:46 | 2021-12-21T19:56:46 | 11,158,196 | 41 | 24 | null | 2017-02-03T20:57:44 | 2013-07-03T18:28:31 | Perl | UTF-8 | Python | false | false | 3,433 | py | """
Classes to handle the .bed file and .raw file
"""
# get the gene order given a Bed object
get_order = lambda bed: dict((f['accn'], (i, f)) for (i, f) in enumerate(bed))
class BedLine(object):
# the Bed format supports more columns. we only need
# the first 4, but keep the information in 'stuff'.
__slot... | [
"lyonsden@gmail.com"
] | lyonsden@gmail.com |
dfe9d224723292a459b863bc082a0024999c5ff6 | f971b59661f080752f5ff09daf1afc6eed855c25 | /genteams.py | da3c97bf653d54f382f847d46da7b92f8745b586 | [] | no_license | firstwiki/_scripts | ec11790e788e6627612711f018108d872e0edde0 | c7471955d4dc2368489c5270cbf05a8db714aec0 | refs/heads/master | 2020-04-06T04:24:33.468256 | 2018-05-12T06:52:12 | 2018-05-12T06:52:12 | 56,561,704 | 1 | 2 | null | 2016-12-18T00:13:13 | 2016-04-19T03:28:46 | Python | UTF-8 | Python | false | false | 4,972 | py | #!/usr/bin/env python
from collections import OrderedDict
import csv
import sys
import os
from os.path import abspath, dirname, exists, join
import optparse
import frontmatter
import code_from_gh
import yaml
def read_team_csv(csv_fname):
with open(csv_fname) as fp:
reader = csv.reader(fp)
for r... | [
"dustin@virtualroadside.com"
] | dustin@virtualroadside.com |
0bfc3d132f23f8bb46e283bf3c17aac860f485f1 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/errorlog_for_lts_request.py | 7d39c203c27e140395863f4f45c45340b5c45009 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 8,936 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ErrorlogForLtsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attrib... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
c06ba9ae8cbb221882a80e62e7997bda650aa489 | 3a69627c55058a4c0933d16b29d0d7a7c91e172c | /students/management/commands/enroll_reminder.py | 60b687eb6604cecdd298fc70012469af8e5fe88a | [] | no_license | xor0x/educa | bb3647eba80fbabd07cb3604dfb3bb76e3a7fe12 | 6b97146d2e9f412645ccf04b63bfaee246a43b9e | refs/heads/master | 2020-11-28T03:29:37.144939 | 2020-01-05T10:17:50 | 2020-01-05T10:17:50 | 229,693,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | import datetime
from django.conf import settings
from django.core.management.base import BaseCommand
from django.core.mail import send_mass_mail
from django.contrib.auth.models import User
from django.db.models import Count
"""
from django.core import management
management.call_command('enroll_reminder', days=20)
"""
... | [
"you@example.com"
] | you@example.com |
e08edfe5a814aa3fdc8decd50ddae5f935b47d4f | f462679e25ee5dbae2a761f0222bc547f7b9da65 | /backup/srcPython/srcPython_desk_100119/out_minxss_sma_average.py | 780a1e8e0761b427b46f5edd893a2329c3362ac5 | [
"Apache-2.0"
] | permissive | FengYongQ/spock | f31a2f9cac58fbb1912f8e7b066b5318e0223835 | 08c01c01521429a70b5387e8769558e788f7cd3e | refs/heads/master | 2021-06-13T03:09:23.903196 | 2020-01-25T03:32:41 | 2020-01-25T03:32:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | # Reads the output of minxss_sma_average.py
from read_input_file import *
from read_output_file import *
from orbit_average import *
def out_minxss_sma_average(main_input_filename_list, date_ini):
| [
"bussyvirat@gmail.com"
] | bussyvirat@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.