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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56aceb4af73c59684df5c5acbffce3711e16c735 | abcfd07772ce75f34e51592189c29cf84d1a3611 | /flask/lib/python3.6/site-packages/sqlparse/utils.py | a620f2d3c17fbfba4d56e6a4d8608c27420f4868 | [] | no_license | yuhaihui3435/p_mc | 66d89bcccf214e53729b26a0f80ddee8797e9e3e | 3039a5c691b649fc88e941a2553b1a7e0aac2a0a | refs/heads/master | 2021-06-28T18:52:00.111385 | 2017-09-15T00:26:02 | 2017-09-15T00:26:58 | 103,524,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2016 Andi Albrecht, albrecht.andi@gmail.com
#
# This module is part of python-sqlparse and is released under
# the BSD License: https://opensource.org/licenses/BSD-3-Clause
import itertools
import re
from collections import deque
from contextlib import contextmanager
from sql... | [
"125227112@qq.com"
] | 125227112@qq.com |
ca7fe2126b290de9c15044feaa402731564a284c | 846506a6c9023a21ff831c637f71cffd3b0aab62 | /Python/X_Archive/AddLabelSplits.py | 585014bdeeaa59c66a2eac711aee31123872d4e2 | [] | no_license | emonson/Weinfurt_DocFreq | b90378e57af7c17d32c72e5924a1b9af9f0f6584 | 1c9082d8ce4c0d002b6a65d446421840e24435fd | refs/heads/master | 2020-05-29T21:05:01.397101 | 2015-01-22T13:53:53 | 2015-01-22T13:53:53 | 29,681,004 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | # After changing data labels to new dataXXX scheme, automating
# some of the sentence splits based on the Datamap...xls sheet
import xlrd
book = xlrd.open_workbook('Datamap with Sentence IDs.xls')
sh = book.sheet_by_index(0)
ids = sh.col_values(0,12)
sentences = sh.col_values(1,12)
f = open('LongVer_newLabelsPrelim... | [
"emonson@cs.duke.edu"
] | emonson@cs.duke.edu |
75f33a50056f2286b145c44e8361185d4ff87561 | 16b4229a925a4e3b0e760f401d80c4d2adb793a9 | /models/real_nvp/coupling_layer.py | d8b2581f2febe1eaab92fecde288e1f539fd103a | [
"MIT"
] | permissive | ahmadkhajehnejad/real-nvp | 4fc5a6a5f23fe076304b5652277a8de70ab4f068 | 15f51eb91388fc232334123ac11467c4d3aa3d33 | refs/heads/master | 2022-08-11T09:37:32.353605 | 2020-05-18T12:24:39 | 2020-05-18T12:24:39 | 261,586,549 | 0 | 0 | MIT | 2020-05-05T21:25:51 | 2020-05-05T21:25:50 | null | UTF-8 | Python | false | false | 3,919 | py | import torch
import torch.nn as nn
from enum import IntEnum
from models.resnet import ResNet
from util import checkerboard_mask
class MaskType(IntEnum):
CHECKERBOARD = 0
CHANNEL_WISE = 1
class CouplingLayer(nn.Module):
"""Coupling layer in RealNVP.
Args:
in_channels (int): Number of channe... | [
"chutechristopher@gmail.com"
] | chutechristopher@gmail.com |
7f77fb3562993641b617a5b8f28eb60e5b4690d8 | 615f83418985b80f2a2a47200acb08dfa9418fc7 | /identities/widgets.py | f59c91e055afcef5e61baf70b159870a655016a6 | [
"MIT"
] | permissive | alejo8591/maker | a42b89ddc426da326a397765dc091db45dd50d8e | 001e85eaf489c93b565efe679eb159cfcfef4c67 | refs/heads/master | 2016-09-06T19:36:01.864526 | 2013-03-23T06:54:21 | 2013-03-23T06:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # encoding: utf-8
# Copyright 2013 maker
# License
"""
Identities module widgets
"""
WIDGETS = {'widget_contact_me': {'title': 'My Contact Card',
'size': "95%"}}
def get_widgets(request):
"Returns a set of all available widgets"
return WIDGETS | [
"alejo8591@gmail.com"
] | alejo8591@gmail.com |
9fa1eef441427dbc31a6b3821675d6bfcc0a7512 | da8adef15efbdacda32b19196b391f63d5026e3a | /ITMO/ML/Lab5/main.py | 5fbef8d876250cd8a74ae41ce03cc26e95b369ec | [] | no_license | rubcuadra/MachineLearning | 05da95c1f800e6acbce97f6ca825bd7a41d806a6 | aa13dd007a7954d50586cca6dd413a04db18ef77 | refs/heads/master | 2021-03-19T17:33:14.080691 | 2018-10-19T23:43:27 | 2018-10-19T23:43:27 | 100,544,903 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,440 | py | '''
You should implement the feature selection algorithm based on the utility metric (the Filter method).
Implement several utility metrics and compare their performance at classification tasks.
https://en.wikipedia.org/wiki/Feature_selection
https://machinelearningmastery.com/an-introduction-to-feature-selection/... | [
"rubcuadra@gmail.com"
] | rubcuadra@gmail.com |
be1f53665e8022b4ede91764bb78e101e375c601 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/inventory/manager.py | 070e01170b61f1d5f188966caf37738bde4fb084 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 23,674 | py | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | [
"sifang@cisco.com"
] | sifang@cisco.com |
fc03483fd51af21d7011aefcdb15b9eaf9d4d645 | 349dadbf45b7c12a3fe41c5e0421c0488b679919 | /transformers/tests/test_modeling_longformer.py | 2d30bd3ba4bcd77d8802388c40bc455a2be55d2c | [
"Apache-2.0",
"BSD-3-Clause",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense"
] | permissive | salesforce/CodeRL | c772e408bac690527759f416ea22add4c97e5bec | 51db4ff983d5376e62b9e7eba150316a651c80d9 | refs/heads/main | 2023-08-18T18:38:02.740995 | 2022-11-18T16:14:28 | 2022-11-18T16:14:28 | 508,912,853 | 412 | 52 | BSD-3-Clause | 2023-08-31T07:51:27 | 2022-06-30T02:54:36 | Python | UTF-8 | Python | false | false | 30,157 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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... | [
"hungle@salesforce.com"
] | hungle@salesforce.com |
09dc4b8c4826d5758b97747fe4b4d51aa543a01a | 5053116ea6876add7903bf9433a9cf5da6aa5cbb | /CI_final project/rbfnet/RBF.py | 37606ac2732850630bf4bcd555651a1ffac725a9 | [] | no_license | Yasaman1997/Computatioanal-Intelligence | 4c400643bc4eb8ab30e51fc1fe7e76cf2d2ca2e5 | 65607a5d3ff6e08269584f9055f4feba5358abe2 | refs/heads/master | 2020-12-27T07:41:18.100841 | 2020-02-02T19:29:28 | 2020-02-02T19:29:28 | 237,819,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,066 | py | import math
import matplotlib.pyplot as plt
import numpy as np
import FCM
import code
class RBF:
def __init__(self, path, clusters, fuzziness_parameter, gama, n_class):
path = path
self.dataset = code.prepare_data()
self.n_cluster = clusters
self.m = fuzziness_param... | [
"noreply@github.com"
] | Yasaman1997.noreply@github.com |
2a38b18643398080afdf4fbe89533401fdd3c67d | 4c300a18ba13bed9e0fa933a9f6d01187e005468 | /devrun/cmd/web.py | d2a193d5aa0a8dded14213a28127cad236a46f7a | [] | no_license | smurfix/devrun | 08def56eda1090e9489b2f3c33d2a26d9a143277 | d6098fafc79c81d65468a6cbdaaf0b8633ebde97 | refs/heads/master | 2021-01-25T01:22:05.091114 | 2017-06-22T10:54:40 | 2017-06-22T10:54:40 | 94,753,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division, unicode_literals
##
## This file is part of devrun, a comprehensive controller and monitor for
## various typed code.
##
## devrun is Copyright © 2016 by Matthias Urlichs <matthias@urlichs.de>,
## it is licensed under the GPLv3. S... | [
"matthias@urlichs.de"
] | matthias@urlichs.de |
485b464e4b94a31de2a1e612ab6f6c40411628a1 | 4de0c6d3a820d7669fcef5fd035416cf85b35f23 | /ITcoach/xlrd_xlwt处理数据/第1章 python基础/1.7 学Python,不愁没对象!/1.7.2.py | 41358a812e40297cbed3f5cf30e10307d8cf4862 | [
"AFL-3.0"
] | permissive | ww35133634/chenxusheng | 5e1b7391a94387b73bcd7c4d12f1247b79be8016 | 666e0eb3aedde46342faf0d4030f5c72b10c9732 | refs/heads/master | 2022-11-12T03:46:47.953680 | 2020-07-02T20:50:56 | 2020-07-02T20:50:56 | 275,168,080 | 0 | 0 | AFL-3.0 | 2020-07-02T20:58:37 | 2020-06-26T13:54:48 | HTML | UTF-8 | Python | false | false | 34 | py | print(type(99))
print(type('abc')) | [
"82516351@qq.com"
] | 82516351@qq.com |
a32077954feaaf66d2e4a23b6ccbfb1d5d8009ef | bcc199a7e71b97af6fbfd916d5a0e537369c04d9 | /leetcode/solved/53_Maximum_Subarray/solution.py | 4b9dd9a6ff3ffd63395f61fdf9315a2b1fb9c7b9 | [] | no_license | sungminoh/algorithms | 9c647e82472905a2c4e505c810b622b734d9d20d | 1389a009a02e90e8700a7a00e0b7f797c129cdf4 | refs/heads/master | 2023-05-01T23:12:53.372060 | 2023-04-24T06:34:12 | 2023-04-24T06:34:12 | 87,406,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 sungminoh <smoh2044@gmail.com>
#
# Distributed under terms of the MIT license.
"""
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
A subarray is... | [
"smoh2044@gmail.com"
] | smoh2044@gmail.com |
eeed637ae329962457dea76e8a46dd6381f588f2 | 1832a909b2c564bc623bca36dd3eea8c5587e2db | /server/core/migrations/0007_auto_20170206_0100.py | 30aa6f8b8b22f8af086a24dce4fe314c5837a1d1 | [] | no_license | bravesoftdz/tramsdaol | ea4370b93ccba6ba569e948d552bab89042fb337 | e726a00a0296454582f18d18956140c67be8cf8d | refs/heads/master | 2020-03-20T02:57:25.088779 | 2017-04-01T01:31:49 | 2017-04-01T01:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-06 01:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0006_geographiccoordinate_search_address'),
]
operations = [
migrations.Alt... | [
"johni.douglas.marangon@gmail.com"
] | johni.douglas.marangon@gmail.com |
9aa63aac3e6bf6b02a6ac01ef808c52247f95e0c | 649255f0d9b6d90be3d3f68263680081f893a089 | /test/test_excluded_scan_targets.py | 85f9366583d08f39747f863208b29caf424513f5 | [] | no_license | khantext/r7ivm3 | 611e1bbc988d9eb8fbb53294d3ed488130e46818 | bd9b25f511f9e7479ea7069d71929700bed09e87 | refs/heads/master | 2023-05-01T10:01:16.336656 | 2021-05-03T18:16:12 | 2021-05-03T18:16:12 | 237,514,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,254 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"justinlute@gmail.com"
] | justinlute@gmail.com |
fe74a07943cbbc198295913a72e0c97901d333e8 | 4bbb67ae8d51c29641b153371e1f404b9af404f0 | /tetris/tetris.py | d54e00fbee9dd349be46d1875ea764db646c4d88 | [] | no_license | timurbakibayev/python_advanced | e328dd3b26d4b94a05e9218be483e97b149fa8bf | da7beace64e2c17c447efec314d757f8181b6acf | refs/heads/master | 2023-01-30T04:07:19.296989 | 2020-12-08T12:47:34 | 2020-12-08T12:47:34 | 291,979,925 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,905 | py | import pygame
import random
pygame.init()
colors = [
(0, 0, 0),
(120, 37, 179),
(100, 179, 179),
(80, 34, 22),
(80, 134, 22),
(180, 34, 22),
(180, 34, 122),
]
transparent = (255,255,255,40)
figures = [
[[1, 5, 9, 13], [4, 5, 6, 7]],
[[4, 5, 9, 10], [2, 6, 5, 9]],
[... | [
"timurbakibayev@gmail.com"
] | timurbakibayev@gmail.com |
3a559961d460a100177dfb05a88dd44d35beacac | 17993dcca87d490bc9841437309f309a5592ab38 | /Codes/support_vector_machine/lib/svm_smo.py | 0e73fa2184ef4d2fcb86116b01efa95cec3c0255 | [] | no_license | dreamlikexin/machine_learning | bc86ea15ef8552ad1be78a5bc65fb74a2cdb274e | 850e87025270847210b6ad188d2da181983a72c7 | refs/heads/master | 2022-01-16T09:51:20.538340 | 2019-06-19T16:27:26 | 2019-06-19T16:27:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | import numpy as np
class SVM:
def get_H(self, Lambda, i, j, y):
if y[i]==y[j]:
return Lambda[i] + Lambda[j]
else:
return float("inf")
def get_L(self, Lambda, i, j, y):
if y[i]==y[j]:
return 0.0
else:
return max(0, Lambda[j] - ... | [
"wanglei@wanglei-mbp.local"
] | wanglei@wanglei-mbp.local |
5dc3bef4afd928a08151a42b378ae0cc9051a420 | a8062308fb3bf6c8952257504a50c3e97d801294 | /problems/N539_Minimum_Time_Difference.py | 606f46d1a86602b05472d086e54f47d8e7fe6dbb | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | class Solution(object):
def findMinDifference(self, timePoints):
"""
:type timePoints: List[str]
:rtype: int
"""
if not timePoints:
return
times = []
for point in timePoints:
times.append(int(point[:2])*60 + int(point[3:]))
time... | [
"rarry2012@gmail.com"
] | rarry2012@gmail.com |
91e4afe9a69b64b1252d3f879b3ec018d529bbad | 5dd190725aaaeb7287d935b3c99c20480b208816 | /object_detection/utils/np_mask_ops_test.py | a0ee46eff01f165f5ae94346b8a1b7fe2636149c | [
"MIT"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | 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... | [
"noreply@github.com"
] | DemonDamon.noreply@github.com |
e831296b955c4901d82f0f076e71adc6e4910c97 | 43dec81f8466acb925a9c4830fe274de9cd1f51e | /backend/home/migrations/0004_auto_20201124_1916.py | 31248f325cd782e66c1f5f5fd515ded3f3aaa5f0 | [] | no_license | crowdbotics-apps/lizz-11-10-mob2-22484 | 6cd2af76c92fb2f2c9047b70017b9e0c5adfbcdb | 61ab9254234534b8384ec2b64451cf5ba7d587de | refs/heads/master | 2023-02-03T02:07:07.406375 | 2020-12-22T18:53:04 | 2020-12-22T18:53:04 | 311,748,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # Generated by Django 2.2.17 on 2020-11-24 19:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0003_homepage_hello'),
]
operations = [
migrations.RemoveField(
model_name='homepage',
name='body',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bf29aac5c207544133fb68b24af753d74d7b9796 | a3746020cf091f433beb41bde1b62818b4de569b | /new_rule/ticket-rules/oracle/SQL_TO_CHANGE_TYPE.py | 1109b2501f3b147a116f67fc69a8723297cb7134 | [] | no_license | kk71/sqlaudit | 59bab5765a67f56f1dd2f3103812051c5acbbc49 | 747aaa02573a9c2b46a9e14415d27c0ab8e6158c | refs/heads/master | 2023-02-04T18:38:46.125746 | 2020-06-05T09:49:46 | 2020-06-05T09:49:46 | 323,559,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import re
def code(rule, entries, **kwargs):
sql_plan_qs = kwargs["sql_plan_qs"]
plans = sql_plan_qs.filter(
filter_predicates=re.compile(r"(SYS_OP|TO_NUMBER|INTERNAL_FUNCTION)", re.I)
)
for x in plans:
return -rule.weight, [
x.statement_id,
x.plan_id,
... | [
"kai.fang@kirintech.cn"
] | kai.fang@kirintech.cn |
d039f7c165307c3cab9557169d0d0820f5754329 | cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5 | /swea/D3/10570. 제곱 팰린드롬 수.py | 9345f0450146e6efeba20eb3d88dd2e9b24a99b9 | [] | no_license | jbsam2/algo_problem | 141c17003e88a69afdeea93a723e7f27c4626fdc | 18f2cab5a9af2dec57b7fd6f8218badd7de822e4 | refs/heads/master | 2023-05-18T10:03:00.408300 | 2021-06-02T10:36:50 | 2021-06-02T10:36:50 | 282,104,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | def c(num):return 1 if num==int(num**(0.5))**2 else 0
for t in range(int(input())):
a,b=map(int,input().split());ans=0
for i in range(a,b+1):
p=int(i**(0.5))
if c(i) and str(i)==str(i)[::-1] and str(p)==str(p)[::-1]:ans+=1
print(f'#{t+1}',ans) | [
"kbsam2@gmail.com"
] | kbsam2@gmail.com |
5634ebaa358971f4de28704f86ff95ab91d76915 | 22b93005b05aa4cbfa6287c42e07244b9bf83be9 | /mlflow/ml_package_versions.py | b5be01dffc43abf48dbe7e9ab8fc1f6dee71ebf8 | [
"Apache-2.0"
] | permissive | dbczumar/mlflow | 63ede1f21966def17ded0da9c8e92a207b34b90d | e293a73b510c924cbca50b6337b6d6f9fd9f8f1b | refs/heads/master | 2023-08-31T23:40:55.475707 | 2023-07-15T04:22:18 | 2023-07-15T04:22:18 | 138,797,518 | 1 | 3 | Apache-2.0 | 2023-08-23T23:01:08 | 2018-06-26T21:51:19 | Python | UTF-8 | Python | false | false | 5,987 | py | # This file was auto-generated by update_ml_package_versions.py.
# Please do not edit it manually.
_ML_PACKAGE_VERSIONS = {
"sklearn": {
"package_info": {
"pip_release": "scikit-learn"
},
"models": {
"minimum": "0.22.1",
"maximum": "1.3.0"
},
... | [
"noreply@github.com"
] | dbczumar.noreply@github.com |
615af758d32d2c1268ec81eea7298e8b8de7ef55 | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /demo01/demo04-resize.py | 7fe6931b6b3219fd8402aa1089ff29d446980c6a | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from matplotlib import pyplot as plt
import numpy as np
import cv2
img = cv2.imread("book01-.jpg")
img_cut = img[1000:,:]
img_resize = cv2.resize(img_cut,(600,600),interpolation=cv2.INTER_CUBIC)
#cv2.imwrite("book01resize-.jpg",img_resize)
cv2.imshow("origin",img)
cv2.imshow("reszie",img_resize)
cv2.waitKey()
cv2.destr... | [
"864773190@qq.com"
] | 864773190@qq.com |
2df9bb0f75e0aa888664ef8141109604c4fb80ce | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /DQMServices/Components/python/test/test_good_online_run_cfg.py | b7f1fc42e7ebfd7330bb6887869aa39da91b28bf | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | Python | false | false | 470 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TestDQMFileSaver")
process.load("DQMServices.Components.test.test_good_online_basic_cfi")
process.load("DQMServices.Components.test.MessageLogger_cfi")
process.load("DQMServices.Components.DQMEnvironment_cfi")
process.load("DQMServices.Core.DQM_cfg")
... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
9137f27ec4c8f050a41a19a14e938c78fb1cd0e9 | 3dd43ff0dab514a39f611487ab421256b3b5b13b | /scripts/client/gui/Scaleform/daapi/view/lobby/hangar/carousels/ranked/carousel_data_provider.py | 048d8fce65aedbf46febbd1c5c6f3b312913163c | [] | no_license | kusaku/wotscripts | 04ab289e3fec134e290355ecf81cf703af189f72 | a89c2f825d3c7dade7bc5163a6c04e7f5bab587d | refs/heads/master | 2023-08-20T00:17:36.852522 | 2018-02-26T14:53:44 | 2018-02-26T14:53:44 | 80,610,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/hangar/carousels/ranked/carousel_data_provider.py
from gui.Scaleform.daapi.view.lobby.hangar.carousels.basic.carousel_data_provider import HangarCarouselDataProvider
from gui.Scaleform.locale.RANKED_BATTLES import RANKED_BATTLES
from gui.shared.formatt... | [
"kirill.a@aggrostudios.com"
] | kirill.a@aggrostudios.com |
a0adb96467c96dad6dd4c36cc41e36636bc0d50b | b2625b1a1ef4a3a255ae88b6d77c425727187eeb | /.dev_scripts/github/update_copyright.py | 74320198598ed850edad4f2404605c54f1b4e17f | [
"Apache-2.0"
] | permissive | wojiazaiyugang/mmpose | acd4083d142c5c4c2dd87e6be94a5891a42d2797 | 8947b39294b037e8272c6cf2f53ae4aa7d22193b | refs/heads/master | 2023-09-01T23:45:43.857657 | 2021-11-23T03:03:02 | 2021-11-23T03:03:02 | 356,105,054 | 0 | 0 | Apache-2.0 | 2021-09-16T06:36:44 | 2021-04-09T02:08:50 | Python | UTF-8 | Python | false | false | 2,928 | py | #!/usr/bin/env python
# Copyright (c) OpenMMLab. All rights reserved.
import argparse
import os
import os.path as osp
import re
import sys
HEADER = 'Copyright (c) OpenMMLab. All rights reserved.\n'
HEADER_KEYWORDS = {'Copyright', 'License'}
def contains_header(lines, comment_symbol, max_header_lines):
for line ... | [
"noreply@github.com"
] | wojiazaiyugang.noreply@github.com |
3dc4fcb72c535bd5635233808c4b20178c15fe20 | c2849586a8f376cf96fcbdc1c7e5bce6522398ca | /ch39/interfacetracer.py | 033591fd7329b9bc42e2527b180411b9735c1e96 | [] | no_license | freebz/Learning-Python | 0559d7691517b4acb0228d1cc76de3e93915fb27 | 7f577edb6249f4bbcac4f590908b385192dbf308 | refs/heads/master | 2020-09-23T01:48:24.009383 | 2019-12-02T12:26:40 | 2019-12-02T12:26:40 | 225,371,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | def Tracer(aClass): # @ 데코레이션할 때
class Wrapper:
def __init__(self, *args, **kargs): # 인스턴스 생성할 때
self.fetches = 0
self.wrapped = aClass(*args, **kargs) # 유효 범위 이름 사용
def __getattr__(self, attrname):
print('Trace: ' + at... | [
"freebz@hananet.net"
] | freebz@hananet.net |
2b5dca7db0f58ee69e6318f2c079d184c1943643 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/python2.7/UserList.py | 873357b193bd393a87bea69e9ef416b43aad7303 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | /home/action/.parts/packages/python2/2.7.6/lib/python2.7/UserList.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
76884be84b73cffc74cbf5157ec534df610216e9 | 6a5ce7d885db1baa5a9d43b26f0ae623a5ef0f01 | /azure-mgmt-web/azure/mgmt/web/models/web_site_management_client_enums.py | fcb642b79aa76c81394fb900d1b60c22ede03d1c | [
"Apache-2.0"
] | permissive | JammyBrand82/azure-sdk-for-python | 333af194ff9143ec77f49203a5a71f15c399f278 | c65e189cd41bd3464556b17bfcdee1303867996c | refs/heads/master | 2021-01-17T18:31:10.661151 | 2016-03-17T21:03:08 | 2016-03-17T21:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,118 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
8d0a0b0dec63a2130b9ada6f938cfbddbaeeb4a8 | 10920b11a22a20f9a7f63157818327f3c4e41888 | /jibby_opencv/Object Recognition/two.py | 10e258ca8fedf5c5342ee07ae449937c19975227 | [] | no_license | dsall/computerv | e331b3d025c8cec0119b789107d1fef18d08f02a | 40671d618c31ad9d9b20fc902a218a8e281098bc | refs/heads/master | 2021-09-15T09:33:08.495580 | 2018-05-29T23:41:42 | 2018-05-29T23:41:42 | 135,363,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 5 00:23:15 2018
@author: djibrilsall
"""
import numpy as np
import cv2
# multiple cascades: https://github.com/Itseez/opencv/tree/master/data/haarcascades
#https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_frontalface_de... | [
"djiby45@outlook.com"
] | djiby45@outlook.com |
f01c9f4cb6e578f40f952d27a77dbdab38e9b181 | 0b5ab7349485da4ea40ca343bc50f4cab74c917c | /week09/tutorial/snippets/urls.py | 2dcc6decba1a0c26454d9a83c0f3e37011525c86 | [] | no_license | workherd/Python006-006 | 9bf2782ccda037de9af98eb7daa87fd1edeb3caf | 7aa176c3cf4effd015802b550edfb70f859e94d9 | refs/heads/main | 2023-04-29T14:37:43.545376 | 2021-05-16T04:13:08 | 2021-05-16T04:13:08 | 323,247,475 | 1 | 0 | null | 2020-12-21T06:13:42 | 2020-12-21T06:13:42 | null | UTF-8 | Python | false | false | 2,227 | py |
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from snippets import views
# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r'snippets', views.SnippetViewSet)
router.register(r'users', views.UserViewSet)
# The API URLs are now dete... | [
"1330430077@qq.com"
] | 1330430077@qq.com |
27686a5573582bba05fe1c037ddb797cb55f040b | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0216_Combination_Sum_III/solution.py | e332183e542f99042b9b4fe0e2ddce1af912459b | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 139 | py | class Solution:
# @param {integer} k
# @param {integer} n
# @return {integer[][]}
def combinationSum3(self, k, n):
| [
"romain_li@163.com"
] | romain_li@163.com |
0ef3a3afbb0a5ad1f607d1f4fa56b8207a2c978d | 857a9e588a04b40a66b6ca115063cb67ef0427ea | /timemachines/skaters/glu/glusimple.py | 45f7a1894d2d9f43387ba47e6408b68c40771bb8 | [
"MIT"
] | permissive | rambam613/timemachines | 81b88357498871f77efed0faf9c25b4c408d822c | cd243d4606b4ad9c1d419988fc6c04b0964af2e6 | refs/heads/main | 2023-07-03T07:06:24.421114 | 2021-08-07T17:42:40 | 2021-08-07T17:42:40 | 393,793,785 | 1 | 0 | MIT | 2021-08-07T21:13:35 | 2021-08-07T21:13:34 | null | UTF-8 | Python | false | false | 1,092 | py | from timemachines.skatertools.utilities.conventions import Y_TYPE, A_TYPE, R_TYPE, E_TYPE, T_TYPE, wrap
from typing import Any
from timemachines.skatertools.components.parade import parade
from timemachines.skatertools.utilities.nonemath import nonecast
from timemachines.skatertools.ensembling.ensemblefactory import pr... | [
"peter.cotton@microprediction.com"
] | peter.cotton@microprediction.com |
4d4fa4d95d6b0e2d819c40e250b7941f2d805da8 | 7ac506e9890ff3295541bdd00bc3c40a13b23826 | /sr/imsitu_scorer.py | 122bbe01b33b7def418dc9ba864a9d0f3ba9df79 | [] | no_license | thilinicooray/CARN | dd64cde17e5c9f0e68e94b340c9271ae2a79f58a | 7f5e85c98d3178a3fe9b9f1b5a93a39ace01ccc5 | refs/heads/master | 2020-07-25T05:42:38.988848 | 2020-04-07T03:43:01 | 2020-04-07T03:43:01 | 208,182,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,433 | py | import torch
import json
class imsitu_scorer():
def __init__(self, encoder,topk, nref, write_to_file=False):
self.score_cards = []
self.topk = topk
self.nref = nref
self.encoder = encoder
self.hico_pred = None
self.hico_target = None
self.write_to_file = writ... | [
"thilinicooray.ucsc@gmail.com"
] | thilinicooray.ucsc@gmail.com |
4febe8ed7ba4ae0ec44e162ddac26a0a35201331 | e73761fd861010f4dd2e2be09507d86bd905f4f5 | /scud/main/migrations/0002_sessionstouser.py | 78e5450bb8e12f64aa092230e4fccdbb5aac8446 | [] | no_license | BakdauletBolatE/rfid-system | a57ca2fbb3518f9df6683bf899be1d9455e55c2a | 24f023cc801dc0d24dedb4e7ecd27091c439c068 | refs/heads/main | 2023-03-13T05:14:37.043832 | 2021-02-22T06:12:31 | 2021-02-22T06:12:31 | 341,097,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # Generated by Django 3.1.6 on 2021-02-18 17:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='SessionsToUser',
... | [
"bakosh21345@gmail.com"
] | bakosh21345@gmail.com |
de41905ee008a0a8004b2f583f9b16d0ab569823 | 95e9ec4b3b0d86063da53a0e62e138cf794cce3a | /python/Django/20190523/test01/test01/settings.py | 199c6f60e7fba053de9340c0fb1a68759f7ad78a | [] | no_license | wjl626nice/1902 | c3d350d91925a01628c9402cbceb32ebf812e43c | 5a1a6dd59cdd903563389fa7c73a283e8657d731 | refs/heads/master | 2023-01-05T23:51:47.667675 | 2019-08-19T06:42:09 | 2019-08-19T06:42:09 | 180,686,044 | 4 | 1 | null | 2023-01-04T07:35:24 | 2019-04-11T00:46:43 | Python | UTF-8 | Python | false | false | 4,057 | py | """
Django settings for test01 project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bu... | [
"18537160262@qq.com"
] | 18537160262@qq.com |
a4f1eb5a73bb211daab14e6aac02273d7a07b9c7 | 093b9569be9d1c4e5daf92efbebc38f680917b2d | /.history/base/models_20210829142734.py | 4c98bfd01c1d244a8078fbe1666e967e01960773 | [] | no_license | Justin-Panagos/todoList | 95b1e97ff71af1b0be58e7f8937d726a687cea4d | 10539219b59fcea00f8b19a406db3d4c3f4d289e | refs/heads/master | 2023-08-04T13:27:13.309769 | 2021-08-29T14:06:43 | 2021-08-29T14:06:43 | 400,827,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Task(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, null = True, blank=True)
STATUS= [(,'P1'),(1,'P2'),(2,'P3'),]
priority = models.CharField(max_length=5, choices=STATUS... | [
"justpanagos@gmail.com"
] | justpanagos@gmail.com |
aca6239bb1902abcf69c2fa4ab44b62d104cc3ee | 78f43f8bd07ae0fc91738a63cd7bbca08ae26066 | /leetcode/interval/least_interval.py | b5418240bed39df4bf2a1b61baecf70e18b8cf95 | [] | no_license | hanrick2000/LeetcodePy | 2f3a841f696005e8f0bf4cd33fe586f97173731f | b24fb0e7403606127d26f91ff86ddf8d2b071318 | refs/heads/master | 2022-04-14T01:34:05.044542 | 2020-04-12T06:11:29 | 2020-04-12T06:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | class Solution(object):
def leastInterval(self, tasks, n):
"""
:type tasks: List[str]
:type n: int
:rtype: int
"""
LETTER_NUM = 26
freqs = [0] * LETTER_NUM
for c in tasks:
freqs[ord(c) - ord('A')] += 1
freqs.sort() # in-place sort
... | [
"dofu@ebay.com"
] | dofu@ebay.com |
434f2a4e5d4c626ba4768123e191fc6823872f15 | c9f1cc3a6715917d658a6e525b7c2d35b0380f9f | /Non_canonical_introns/Analisys/Join_final_tables_seq.py | cf7f3dde6d7fa321b0e71a9c47f123d3081f1b1d | [] | no_license | geparada/my_src | 4f84887130b985e84aad3d0d35e85911087d9b4f | 8d64f7ef51e1f74303ca88beb0ee964f546d8301 | refs/heads/master | 2021-01-17T01:50:50.414690 | 2017-03-14T10:01:50 | 2017-03-14T10:01:50 | 20,638,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | import sys
import csv
def main(hg19, SJ_hg19, hg19_reads_seq_tags, GM12878, SJ_GM12878_paternal, SJ_GM12878_maternal, GM12878_reads_seq_tags_paternal, GM12878_reads_seq_tags_maternal, TOTAL_final_table):
csv.field_size_limit(1000000000)
reader1 = csv.reader(open(hg19), delimiter = ' ')
reader2 = csv.reader(open... | [
"geparada@omics.(none)"
] | geparada@omics.(none) |
3fdea1ed28d82a773de42cb6859f5ce3fa0ceefd | aab2f6f5f673bf16424d592142ba3af414423adb | /kafkaconsumer.py | 5b972353177ac3b7eef951403c753ffb888eaab2 | [] | no_license | ashishjsharda/KafkaUsingPython | 75f46ba4df25f264e853615c8fde73ed59aa620e | cbd9aff94b9d896736e14befcb42dfa64efc1562 | refs/heads/master | 2020-12-19T11:07:08.891269 | 2020-01-23T03:22:39 | 2020-01-23T03:22:39 | 235,715,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | '''
Created on Jan 22, 2020
@author: ashish
'''
from kafka import KafkaConsumer
consumer=KafkaConsumer('sample')
for message in consumer:
print(message)
| [
"noreply@github.com"
] | ashishjsharda.noreply@github.com |
0d7c3cc6491bf482131fbbb00556b7368044d75d | 391d648132c1a05e7da575205eef89a7208a892a | /compare.py | 311165b27e102d591a5f36b47d2bd374e0a1c43b | [] | no_license | michaelbateman/DemographicInference | c3ceaf69f8b554f3973473607d6b5201cca423f9 | b1e2529b1ce0710f82d2867d08588ae4a6c72bb2 | refs/heads/master | 2021-01-10T06:28:43.698581 | 2015-10-06T18:25:45 | 2015-10-06T18:25:45 | 43,770,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | import sys
import matplotlib.pyplot as plt
import numpy as np
import subprocess
import time
import pylab
from scipy import stats
num_haps = int(sys.argv[1])
num_times = int(sys.argv[2])
def readfire(s): # reads the output of a fire file and
# returns the time vector and the population vector
# input file sh... | [
"bbeeefcake@gmail.com"
] | bbeeefcake@gmail.com |
c8ef2e7798953aa2231f6ae172d6891809e33e43 | c155d27bf74255b8315603518c5ab76d0638dfea | /uv/serpens/profiles/3sigma_cn_3.py | f6f8c1ebbcce36349089a536d0cded0167ff74b4 | [] | no_license | amirocha/doktorat | 406c2e4476a5a22c863c37eb5f581a369800e936 | 22c90228f6bca9d0b116c73457b7e86ae4462167 | refs/heads/master | 2021-07-05T14:18:26.324886 | 2020-08-03T19:28:50 | 2020-08-03T19:28:50 | 152,316,686 | 0 | 0 | null | 2020-04-03T20:22:37 | 2018-10-09T20:28:29 | Python | UTF-8 | Python | false | false | 7,857 | py | #-*-coding: utf-8-*-
'''
DESCRIPTION: This script displays the averaged and resampled spectrum (0.5 km/s)
DESCRIPTION: for a given region on map and plots 3*RMS and 1*RMS levels
DESCRIPTION: and shows X ranges for flux calculation
The averaged region is consistent with HCN 1-0 beam size after convolution (27.8"... | [
"mirochagnieszka@gmail.com"
] | mirochagnieszka@gmail.com |
31012c36efe1adf3e32c6e9600220d6f672511ec | 027f52cbbd4e9ccd52b73dcf9ed523137ec78815 | /python_language/Day_Base_Code/Day_07/lambda_function_2nd.py | b0b5df2ea3a317f5bc58267771c1524dd860305c | [] | no_license | Jade2290/bigdata_class | 0c851440852857ee44496b7112db580cf9b60d57 | 380ad58d56ea4fbcea81f78f9648b1edf27e0554 | refs/heads/master | 2022-04-11T05:05:25.429853 | 2020-03-27T14:30:36 | 2020-03-27T14:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 14 11:48:50 2019
@author: sundooedu
"""
list1=list(range(0,10))
list2=list(filter(lambda x:x%2==0,list1))
list2
list3=list(filter(lambda x:x%2==0 and x%3==0,list1))
def factorial(s):
factor=1
for i in list(range(1,s+1)):
factor *= i
... | [
"noreply@github.com"
] | Jade2290.noreply@github.com |
fbc6323c971bfc05403d49f31975f0959e172e9e | ae8a1d8f23ed08fcc14ecc9a6651cd738790ac00 | /tests/func/test_fetchdata.py | a4f6b1013135688f78c6a4ae54adee32aeb7ddcd | [] | no_license | murakami10/crawling-naist-lecture | 438ef9a6311630178641d2534b553e6ba20a8b5b | 7e4345983f452f20e9ba03495c42b2e922cb56f7 | refs/heads/main | 2023-05-19T10:45:34.863849 | 2021-06-08T09:17:47 | 2021-06-08T09:17:47 | 367,010,980 | 0 | 0 | null | 2021-06-08T09:17:48 | 2021-05-13T10:16:51 | Python | UTF-8 | Python | false | false | 4,696 | py | import threading
import time
from http.server import HTTPServer, SimpleHTTPRequestHandler
import pytest
import requests
from src.crawling_naist_syllabus.fetch import FetchData
from src.crawling_naist_syllabus.structure import Lecture
@pytest.fixture(scope="session")
def fetch_and_save_syllabus_html(tmpdir_factory):... | [
"m.kyoya777@gmail.com"
] | m.kyoya777@gmail.com |
809258fbebe5a4d58326b515a82977274a9a9cba | 0bcd128368e2de959ca648960ffd7944067fcf27 | /infra/bots/assets/protoc/create.py | e363cc5068230dadf10809450d4bff5a04c530b9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google/skia | ac6e39179cd33cf0c8a46d29c1a70bf78b4d74ee | bf6b239838d3eb56562fffd0856f4047867ae771 | refs/heads/main | 2023-08-31T21:03:04.620734 | 2023-08-31T18:24:15 | 2023-08-31T20:20:26 | 15,773,229 | 8,064 | 1,487 | BSD-3-Clause | 2023-09-11T13:42:07 | 2014-01-09T17:09:57 | C++ | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/env python
#
# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Create the asset."""
import argparse
import subprocess
ZIP_URL = ('https://github.com/google/protobuf/releases/download/v3.3.0/'
'protoc-3.3.0-... | [
"skia-commit-bot@chromium.org"
] | skia-commit-bot@chromium.org |
154bb8fc3ec4ecff7d4664dd60a36d89d9e9c287 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /atcoder/abc/abc034/d.py | 39cae32435a6c76186d919f097f04446d71aa1b3 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
N, K = map(int, raw_input().split())
w, p = [], []
for i in xrange(N):
wi, pi = map(int, raw_input().split())
w.append(wi)
p.append(pi)
wp = [[1.0*p[i]/w[i],i] for i in xrange(N)]
wp = sorted(wp, key... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
874a61ad25e6f5e3fb13dfdfa02f814cebfc737b | 631847fafbcfa07bf33eee078d9b59b464ce4b50 | /optimization/second_sdEta_mjj_optimization/lumi_and_kin_plots/four_cuts_lum3000/Output/Histos/MadAnalysis5job_0/selection_8.py | 63a5075a9c405cdb0b8114324ea73fc498ae8bb1 | [
"MIT"
] | permissive | sheride/axion_pheno | 7b46aeb7cc562800d78edd9048504fdbc0f5fa42 | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | refs/heads/master | 2021-07-01T08:47:59.981416 | 2021-02-03T23:03:50 | 2021-02-03T23:03:50 | 219,261,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,794 | py | def selection_8():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.lin... | [
"elijah.sheridan@vanderbilt.edu"
] | elijah.sheridan@vanderbilt.edu |
5293142db0238e500bc8e112bb402720c56a2c77 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/vse-naloge-brez-testov/DN5-Z-146.py | 9e28868b4bb26ff8e9f3184e25bbf744f394f63e | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | def unikati(s):
t = []
for i in s:
if i not in t:
t.append(i)
return t
def avtor(tvit):
a = tvit.split(": ")
return a[0]
def vsi_avtorji(tviti):
t = []
a = [i.split(': ')[0] for i in tviti]
for name in a:
if name not in t:
t.appen... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
7c7c490a043db3015b8dbbef12cc43020cbffd1a | 67dd5749b247915ce7a0d3d95964e30503c4aa0c | /dev/getting_indexing_right.py | 2c5e5b0945cafd7cd5a79d587531fd4bb7a72c15 | [] | no_license | yddream/timspy | d74d78825844b69ed9730373809e3f09ab52060c | 034788db83d85dfca01fa31281a6de391ea2fe23 | refs/heads/master | 2022-11-11T13:10:48.880175 | 2020-06-23T07:38:21 | 2020-06-23T07:38:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | """How to get the data."""
%load_ext autoreload
%autoreload 2
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from pathlib import Path
from timspy.timspy import TimsDIA
from timspy.plot import plot_spectrum
from timsdata import TimsData
# plt.style.use('dark_background')
pd.set_option('display.... | [
"matteo.lacki@gmail.com"
] | matteo.lacki@gmail.com |
153eaf590327a3928e4f39de1f87e5e3b6434798 | cb0e7d6493b23e870aa625eb362384a10f5ee657 | /solutions/python3/0200.py | bf259566a4c651f2576a82f375668f59e4e04686 | [] | no_license | sweetpand/LeetCode-1 | 0acfa603af254a3350d457803449a91322f2d1a7 | 65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94 | refs/heads/master | 2022-11-14T07:01:42.502172 | 2020-07-12T12:25:56 | 2020-07-12T12:25:56 | 279,088,171 | 1 | 0 | null | 2020-07-12T15:03:20 | 2020-07-12T15:03:19 | null | UTF-8 | Python | false | false | 739 | py | class Solution:
def numIslands(self, grid: List[List[str]]) -> int:
def dfs(i: int, j: int) -> None:
if i < 0 or j < 0 or i >= len(grid) or j >= len(grid[0]) or visited[i][j] or grid[i][j] == '0':
return
visited[i][j] = True
dfs(i + 1, j)
dfs... | [
"walkccray@gmail.com"
] | walkccray@gmail.com |
493149b85cd8f8ac097c095a5d003bc8d8250e26 | 2f44cecd8fc447c9e2f2d9f55abdea36ebb40cc5 | /84.py | ef3779fbdfec69cf469c9f29d365c5b3495f449a | [] | no_license | yuzumei/leetcode | 751a234b429131169e3eaf4594ffeb3b94f6ab34 | b6708b03c92ec92e89fc7ecf13f1995dee346657 | refs/heads/master | 2023-07-28T05:48:53.192948 | 2021-09-11T06:16:07 | 2021-09-11T06:16:07 | 365,780,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | heights=[6,7,5,2,4,5,9,3]
def search(heights):
leftstack=[]
leftnum=[]
for i,num in enumerate(heights):
if not leftstack:
leftstack.append([num,i])
leftnum.append(-1)
else:
while leftstack:
if num<=leftstack[-1][0]:
left... | [
"973802530@qq.com"
] | 973802530@qq.com |
0b1ea520891319bd3ec29901ce458c89203a9974 | 15a992391375efd487b6442daf4e9dd963167379 | /tests/runner.py | 7356581365e84bd1ae22e702cf2f4a2df1dc1e59 | [
"Apache-2.0"
] | permissive | Bala93/MONAI | b0e68e1b513adcd20eab5158d4a0e5c56347a2cd | e0a7eff5066da307a73df9145077f6f1fec7a514 | refs/heads/master | 2022-08-22T18:01:25.892982 | 2022-08-12T18:13:53 | 2022-08-12T18:13:53 | 259,398,958 | 2 | 0 | null | 2020-04-27T17:09:12 | 2020-04-27T17:09:11 | null | UTF-8 | Python | false | false | 5,491 | py | # Copyright (c) MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | [
"noreply@github.com"
] | Bala93.noreply@github.com |
1fc3b7b27452778c90b70cbaf2d0890cbc7c878c | 2ea61e98627dd6b170590b69ead79a828614dec0 | /youtrack_api/models/__init__.py | b32db78643832993e6d781eddcfd07e3509c2415 | [] | no_license | alpduez/youtrack_api | 55dc25465f027645525efe5296c5699f7d824f33 | 2450523d87e6bdbbd53ca4908042a701a1a867e6 | refs/heads/master | 2023-09-01T01:34:33.356354 | 2021-10-20T15:32:05 | 2021-10-20T15:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,174 | py | # flake8: noqa
# import all models into this package
# if you have many models here with many references from one model to another this may
# raise a RecursionError
# to avoid this, import only the models that you directly need like:
# from from youtrack_api.model.pet import Pet
# or import this package, but before do... | [
"hank@sellerlabs.com"
] | hank@sellerlabs.com |
4c130f1d7ab50ea7707adef47c427ff415ec9ec4 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_08_01/aio/operations/_vpn_sites_configuration_operations.py | 528c2beb6e372606f8298a7459a2824db3f21598 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 8,266 | 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 ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
988fcc3bad6c71902716794d5af98b5ed49ce94a | 1f936103af336af6bbd335f45d6baa55c426922b | /monatbx/test_cov.py | fed4bc94b6147527eeec78e5faf7cafd539bf891 | [] | no_license | monarin/monatbx | 2ec342d67f1fbccb82656218ffd136f2eb7d96ab | 43f56974f811e5b2b0dcc428d4f9b36043ed9d04 | refs/heads/master | 2020-06-18T13:08:58.893701 | 2016-11-30T00:58:18 | 2016-11-30T00:58:18 | 75,136,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import numpy as np
from cctbx.array_family import flex
G = [5, 6, 0.1, 20, 16, 12, 11, 10, 11.5, 15]
B = [100, 80, 200, 60, 70, 80, 85, 90, 70, 40]
rotx = [0.01, 0.002, 0.001, 0.05, 0.1, 0.025, 0.008, 0.01, 0.002, 0.001]
X = np.array([G, B, rotx])
print X
COV = np.cov(X)
print COV
CORR = np.correlate(X)
print CORR
| [
"monarin@gmail.com"
] | monarin@gmail.com |
f4e9e05d8f49cab8f597e4920e0ebf279ac1185a | 32274e14bce27331626f734aaf2e9074dec9bbf0 | /great_expectations/data_asset/__init__.py | 9de24563be3757e723d06cee5b996be4c8d615f5 | [
"Apache-2.0"
] | permissive | dataguage/great_expectations | 1036a3d20dc320ce2e9986ae18a84932bb1fad3b | dc94522ca9b6742c0c1844cf378b781f74dfc9b5 | refs/heads/master | 2022-07-04T18:38:21.332245 | 2020-05-04T17:56:02 | 2020-05-04T17:56:02 | 261,509,508 | 2 | 0 | Apache-2.0 | 2020-05-05T15:24:58 | 2020-05-05T15:24:57 | null | UTF-8 | Python | false | false | 76 | py | from .data_asset import DataAsset
from .file_data_asset import FileDataAsset | [
"james.p.campbell@gmail.com"
] | james.p.campbell@gmail.com |
706658a5ad3c0ba6ba13b0b90069ae2c6aca8d3d | 47deebe6fefedb01fdce5d4e82f58bb08f8e1e92 | /python core/Lesson_2/io_4.py | b4c12d1fa85d38f06e385bcd672cb795c9629322 | [] | no_license | developeryuldashev/python-core | 5bb162603bdb5782acf05e3fb25ca5dd6347067a | 08fca77c9cfde69d93a7875b3fb65b98f3dabd78 | refs/heads/main | 2023-08-21T03:33:12.160133 | 2021-10-19T04:56:53 | 2021-10-19T04:56:53 | 393,383,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | d=10
pi=3.14
l=pi*d
print(l) | [
"81365808+developeryuldashev@users.noreply.github.com"
] | 81365808+developeryuldashev@users.noreply.github.com |
dca8dd72172381372dcb94f00fbeecad81c8ddd6 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg_old/scg_Route/test_c37280.py | e1f0802b3947f00158ecb0ded8f58e68ea24a2c8 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,359 | py | import pytest
import time
import sys
from page_obj.common.rail import *
from os.path import dirname, abspath
from page_obj.common.ssh import *
from page_obj.scg.scg_def_static_route import *
from page_obj.scg.scg_def_interface import *
sys.path.insert(0, dirname(dirname(abspath(__file__))))
test_id = 37280... | [
"15501866985@163.com"
] | 15501866985@163.com |
dc4851b40cb641b66fe8f67c685289776001336a | 66fa0bcfe8fcd9e5087caf7e0b42e944ec636fc6 | /catalog/models.py | bcfdd700c38e2be4f0d8b7dac61af1245336ebd9 | [] | no_license | vintkor/for_prom | 899a7eb70978c1d4d77bf3a958d11423fd1bcda5 | 4b692c192d931e2ffb97dcd36bb7f31b242f848b | refs/heads/master | 2022-12-09T05:49:11.150879 | 2017-08-21T20:37:51 | 2017-08-21T20:37:51 | 99,605,489 | 0 | 0 | null | 2022-12-08T00:41:44 | 2017-08-07T18:02:53 | Python | UTF-8 | Python | false | false | 9,434 | py | from django.db import models
from testsite.baseModel import BaseModel
from ckeditor_uploader.fields import RichTextUploadingField
from mptt.models import MPTTModel, TreeForeignKey
from feature.models import Set, Feature, Unit, Value
from django.utils.crypto import get_random_string
from PIL import Image
from resizeimag... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
4605daa21593dccfe9560412c3fb87185a00fb91 | 726754863696235c66c8ed9aa184fc13ade33afe | /basics/rotation_count.py | 116e425096403014edc34a74e8a6695ac5528788 | [] | no_license | harshalms/python | ef6a3eeb93c5051528cb0b76fd600a2943e10616 | bfea8f00795c4308b09d80852cb995a8109c1568 | refs/heads/master | 2021-07-17T18:52:36.053780 | 2020-07-25T15:45:41 | 2020-07-25T15:45:41 | 189,624,661 | 0 | 0 | null | 2019-06-17T05:37:24 | 2019-05-31T16:20:52 | Python | UTF-8 | Python | false | false | 461 | py | '''GeeksForGeeks
Find the Rotation Count in Rotated Sorted array
Consider an array of distinct numbers sorted in increasing order.
The array has been rotated (clockwise) k number of times. Given such an array,
find the value of k.
Approch : Just find the index of minimum element.
'''
A = [15, 18, 2, 3, 6, 12]
def ind... | [
"harshal95iitk@gmail.com"
] | harshal95iitk@gmail.com |
f04cfa1c8e45c8afac3256b904185d5a59c54180 | f8e6234ff0b3a4f2a30ad8c6e09f7b6d40ba9f0e | /mcscf/mc_ao2mo.py | 40301c13da0721d768b95a01fdf64d76bc6ecf8e | [
"BSD-2-Clause"
] | permissive | armunoz/pyscf | b358b90cfea46e4527eed997eaf509a11a282551 | 258167cabf2101148feadd3bc0da2dd2eccd725a | refs/heads/master | 2020-06-26T10:08:25.454426 | 2017-07-12T15:05:21 | 2017-07-12T15:05:21 | 97,016,486 | 0 | 0 | null | 2017-07-12T14:19:35 | 2017-07-12T14:19:34 | null | UTF-8 | Python | false | false | 14,827 | py | #!/usr/bin/env python
import sys
import ctypes
import time
import tempfile
from functools import reduce
import numpy
import h5py
from pyscf import lib
from pyscf.lib import logger
from pyscf import ao2mo
from pyscf.ao2mo import _ao2mo
from pyscf.ao2mo import outcore
# least memory requirements:
# nmo ncore ncas ou... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
b7c6cb163f6f35915e4fd76d905f8bb4b2ff6646 | 23bdcb74f9c4d98ff790d140bea56fbb0fd7bbbd | /app/env/Lib/site-packages/sqlalchemy/dialects/mysql/base.py | 2bba2f81a7249980748bccf376d1a90900ce35f0 | [
"MIT"
] | permissive | OswaldoCaleone/transporte_uniescolar | 85c680c062fa14d0bc90afa60f7434b059fdf245 | 1ef10869358457a6a9d0f04df891ce4eb0905887 | refs/heads/main | 2023-08-30T18:37:11.496451 | 2021-11-12T13:35:45 | 2021-11-12T13:35:45 | 429,673,776 | 1 | 0 | MIT | 2021-11-19T04:53:24 | 2021-11-19T04:53:24 | null | UTF-8 | Python | false | false | 117,932 | py | # mysql/base.py
# Copyright (C) 2005-2021 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
r"""
.. dialect:: mysql
:name: MySQL / MariaDB
:full_support: 5.6, 5.7, 8.0 ... | [
"92728746+alexpls2021@users.noreply.github.com"
] | 92728746+alexpls2021@users.noreply.github.com |
c4194b35b0c4d19fbf61ada823bfe4a80aa83e71 | 40f4908483b98fc4f370ff4f2d520e1284d045b3 | /phase02/immortals_repo/harness/pymmortals/generated/com/securboration/immortals/ontology/resources/memory/physicalmemoryresource.py | 9be4f40b65705d8717bea20004f42fc927ec8dd1 | [] | no_license | TF-185/bbn-immortals | 7f70610bdbbcbf649f3d9021f087baaa76f0d8ca | e298540f7b5f201779213850291337a8bded66c7 | refs/heads/master | 2023-05-31T00:16:42.522840 | 2019-10-24T21:45:07 | 2019-10-24T21:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from pymmortals.generated.com.securboration.immortals.ontology.property.property import Property
from pymmortals.generated.com.securboration.immortals.ontology.resources.memory.memoryresource import MemoryResource
from pymmortals.generated.com.securboration.immortals.ontology.resources.memory.memorytype import MemoryTy... | [
"awellman@bbn.com"
] | awellman@bbn.com |
9229b2f555f79cbed6c76a6d4cd3c57907fe831f | 4e92106302c784431115cea8e822f56234e2684b | /lib/plot.py | 5c515658ec0f0625310cab69f0e794fed096ddaf | [] | no_license | CardiacModelling/cside-2018 | 950a7cd92c791fd1840e38ce1726d1c13f68b267 | d91df2bc71a6e2fb18e1d009a3f5722b1e0fc271 | refs/heads/master | 2020-04-15T17:09:13.118292 | 2019-03-12T11:51:01 | 2019-03-12T11:51:01 | 164,862,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,223 | py | #
# Quick diagnostic plots.
#
# This file is part of PINTS.
# Copyright (c) 2017-2018, University of Oxford.
# For licensing information, see the LICENSE file distributed with the PINTS
# software package.
#
from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
impo... | [
"chonloklei@gmail.com"
] | chonloklei@gmail.com |
9ebcfe440aadfcb8bf00181e22e0cfadd7c707ac | 9b6a8923e783bd2641d7af3b118ff83f38c1de31 | /review/list/list.py | db0572268d2cf805fbed1cf651fd1c590a2e4f44 | [] | no_license | mbrsagor/PyLearn | 1c625698802fc5325ea06b754dc9b80d716d9f31 | 94e68f10efd1f5b1a26d1fd965a29dbbe6c2253d | refs/heads/master | 2023-02-25T05:50:23.530150 | 2021-01-31T19:09:01 | 2021-01-31T19:09:01 | 263,316,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | students = [
{
"name": "Jacob Martin",
"father name": "Ros Martin",
"Address": "123 Hill Street",
}, {
"name": "Angela Stevens",
"father name": "Robert Stevens",
"Address": "3 Upper Street London",
}, {
"name": "Ricky Smart",
"father name": "Wi... | [
"mbrsagor@gmail.com"
] | mbrsagor@gmail.com |
4971148ded922aab1c7bcceb73ea4136e79c4e7f | c7cb4e768cbb4110c1995234bae2967fb92b0bd3 | /mySite/mySite/urls.py | 52c38cceaf3621feb74b8355d96a957b9a943ae3 | [] | no_license | backtobasic18/main_roni_site | d50f7418f8e6a48855746bb2229a840a2af7d7f8 | 06cabff9b960f762bb2ad64421cc8e2a3e5422a4 | refs/heads/master | 2020-07-06T13:44:34.805318 | 2016-09-10T17:34:16 | 2016-09-10T17:34:16 | 67,798,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """mySite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"test@gmail.com"
] | test@gmail.com |
544691d1ddac1a2ff9e0419bfc69e8b15f00a0b1 | a8c0867109974ff7586597fe2c58521277ab9d4d | /LC648.py | e3823a187d57e17a47a6641bfc77b27bfb8ab450 | [] | no_license | Qiao-Liang/LeetCode | 1491b01d2ddf11495fbc23a65bb6ecb74ac1cee2 | dbdb227e12f329e4ca064b338f1fbdca42f3a848 | refs/heads/master | 2023-05-06T15:00:58.939626 | 2021-04-21T06:30:33 | 2021-04-21T06:30:33 | 82,885,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | class Solution(object):
def replaceWords(self, dict, sentence):
"""
:type dict: List[str]
:type sentence: str
:rtype: str
"""
sen_list = sentence.split(' ')
for idx, word in enumerate(sen_list):
min_root = word
len_word = len(w... | [
"qiaoliang@Qiaos-MacBook-Pro.local"
] | qiaoliang@Qiaos-MacBook-Pro.local |
a8c5c7e3b1280c05481bf5cf00de1d61e37f5aa5 | 923d035a4762a19b30d5900db91143a83837ae70 | /ichnaea/async/config.py | 1fd35092f9eaed4de2aaf9188da99570999ed30d | [
"Apache-2.0"
] | permissive | voolitels/ichnaea | d5d5da34cb30b3e0c85675e32dab3972cc31d7b0 | bd0350fcba9efb0bad3957309ed3a471ae07e41b | refs/heads/master | 2021-01-17T14:21:16.056481 | 2015-11-10T16:38:22 | 2015-11-10T16:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,402 | py | """
Contains celery specific one time configuration code.
"""
import os
from kombu import Queue
from kombu.serialization import register
from ichnaea.async.schedule import CELERYBEAT_SCHEDULE
from ichnaea.cache import configure_redis
from ichnaea.config import read_config
from ichnaea import internaljson
from ichnae... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
be4e9e3a42b8c97562deeecd8c3b871fa6fb01c7 | f124cb2443577778d8708993c984eafbd1ae3ec3 | /saleor/account/migrations/0054_alter_user_language_code.py | c4843696a427a6c0f24f171c7feab251cf7eca57 | [
"BSD-3-Clause"
] | permissive | quangtynu/saleor | ac467193a7779fed93c80251828ac85d92d71d83 | 5b0e5206c5fd30d81438b6489d0441df51038a85 | refs/heads/master | 2023-03-07T19:41:20.361624 | 2022-10-20T13:19:25 | 2022-10-20T13:19:25 | 245,860,106 | 1 | 0 | BSD-3-Clause | 2023-03-06T05:46:25 | 2020-03-08T17:44:18 | Python | UTF-8 | Python | false | false | 40,337 | py | # Generated by Django 3.2.6 on 2021-08-17 11:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("account", "0053_auto_20210719_1048"),
]
operations = [
migrations.AlterField(
model_name="user",
name="language_code... | [
"noreply@github.com"
] | quangtynu.noreply@github.com |
39a78544f35be6ef9bef4d434c0609cc0f0f6d53 | 5eb29ce7104e10a399d9afd7e253f029bf8bc0ff | /workflows/images-incremental-update/image_dl.py | 642aff4941ac111e9fcba03ef642bc5941dbcc25 | [
"BSD-2-Clause"
] | permissive | svebk/DeepSentiBank_memex | 69789dc09316e97aad711edeb251837a60184e7e | 4e69ce66e3a177817ff360ddc263f55c6e0b63f7 | refs/heads/master | 2021-01-18T18:55:10.870052 | 2017-10-19T22:51:29 | 2017-10-19T22:51:29 | 36,091,024 | 22 | 1 | null | 2017-02-09T20:31:20 | 2015-05-22T19:20:54 | Python | UTF-8 | Python | false | false | 11,040 | py | import requests
imagedltimeout=3
class UnknownImageFormat(Exception):
pass
def get_image_size_and_format(input):
# adapted from https://github.com/scardine/image_size
"""
Return (width, height, format) for a given img file content stream.
No external dependencies except the struct modules from cor... | [
"svebor.karaman@gmail.com"
] | svebor.karaman@gmail.com |
c1763ba5175c207c332aa37cf46bb1aa24f588dd | a82aa8430e32eaf62df0f44b20afb0e7d50c3d7b | /ippon/group_phase/serializers.py | ed76683a6121808cf8e4196a5a8a7ebad298988f | [
"MIT"
] | permissive | morynicz/ippon_back | 314daac99f79247b749dc46d59a645a6eb840263 | dce901bfc649c6f8efbbf0907654e0860606b3e3 | refs/heads/master | 2022-12-20T23:33:10.898738 | 2021-10-17T09:25:39 | 2021-10-17T09:25:39 | 124,851,931 | 0 | 2 | MIT | 2022-12-08T12:37:26 | 2018-03-12T07:43:17 | Python | UTF-8 | Python | false | false | 307 | py | from rest_framework import serializers
import ippon.models
class GroupPhaseSerializer(serializers.ModelSerializer):
class Meta:
model = ippon.models.group_phase.GroupPhase
fields = (
'id',
'tournament',
'fight_length',
'name'
)
| [
"morynicz@gmail.com"
] | morynicz@gmail.com |
d9e361b8b4602c4fc876a19fa99b58a00dd92860 | d07432b9969c4bfa5b4e0d0d2ce7b74236d6a33d | /pygeodesy/gars.py | 28c68e4904de16df15b071f6765348679771ba8a | [
"MIT"
] | permissive | cwilder23/PyGeodesy | aeb8301a7134bc5c19b35335ac1aff1fa0933e02 | 6e2f989fb9040c525040270b5834b259b0b4d0d9 | refs/heads/master | 2022-11-12T00:25:26.253946 | 2020-06-24T17:39:54 | 2020-06-24T17:39:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,312 | py |
# -*- coding: utf-8 -*-
u'''Classes L{Garef} and L{GARSError} and several functions to encode,
decode and inspect I{Global Area Reference System} (GARS) references.
Transcribed from C++ class U{GARS
<https://GeographicLib.SourceForge.io/html/classGeographicLib_1_1GARS.html>}
by I{Charles Karney}. See also U{Global ... | [
"mrJean1@Gmail.com"
] | mrJean1@Gmail.com |
4f613303615c55d2729147ae5cb8c6cd97c4ca83 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02383/s686099688.py | 8350ca148ab207ab25ea1b72f0d85043ae5cfc38 | [] | 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 | 526 | py | dice = input().split()
direction = list(input())
dice2 = []
for i in range(len(direction)):
dice2 = dice
if direction[i] == 'E':
dice = [dice2[3],dice2[1],dice2[0],dice2[5],dice2[4],dice2[2]]
elif direction[i] == 'N':
dice = [dice2[1],dice2[5],dice2[2],dice2[3],dice2[0],dice2[4]]
elif di... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a778be45a738c428c09f03ec65096a832a8df811 | b66c83dbdb1181d3274cfb309637c0bdf590553f | /build/extrinsic_Industrial/intelligent_actuator/robo_cylinder/catkin_generated/pkg.develspace.context.pc.py | 50404616a97e27fc816577449f0fc4dc7749b87a | [] | no_license | Sinchiguano/repo_project | 9079c80f6544cbe39902c68f61f421bd7cfd55e6 | 666da1d6d91704302b69ec9e0b0d30db3a709f30 | refs/heads/master | 2020-04-30T18:06:16.162025 | 2019-04-25T18:47:58 | 2019-04-25T18:47:58 | 177,000,277 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/casch/yumi_depends_ws/devel/include".split(';') if "/home/casch/yumi_depends_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;rospy;std_msgs;message_runtime".replace(';', ' ')
PKG... | [
"cesarsinchiguano@hotmail.es"
] | cesarsinchiguano@hotmail.es |
330465e9c7046e35f6e9643ad0783b8b0f75b9e3 | 466912406272829982f75854cf0104c6ce8c9814 | /data/nlp/task/tn.py | 1f80c0f141aa16e10b8cdf4cd2f2570f501f9aef | [] | no_license | logonmy/Codes | 9631fa103fc499663361fa7eeccd7cedb9bb08e4 | 92723efdeccfc193f9ee5d0ab77203c254f34bc2 | refs/heads/master | 2021-09-21T18:07:22.985184 | 2018-08-30T05:53:26 | 2018-08-30T05:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,710 | py | # -*- coding: utf-8 -*-
__author__ = 'victor'
import os
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '..'))
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../util'))
import db as dbcon
from fundtag imp... | [
"hush_guo@163.com"
] | hush_guo@163.com |
c4228442ea7bb005562f42293f54db22ffd4a496 | 85738a4cacd2a6d93c4487cf856c883c3d9d314a | /tests/web/settings.py | 9a68dbff38a085e8bd59eb1e7053c05ef3ac066a | [
"Apache-2.0"
] | permissive | Kitware/tangelo | cc0cb1372bc5728e0585f739a9412a58a5069069 | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | refs/heads/develop | 2023-08-28T11:57:57.909917 | 2016-01-25T15:56:18 | 2016-01-25T15:56:18 | 6,885,877 | 40 | 21 | Apache-2.0 | 2018-03-05T01:24:16 | 2012-11-27T15:38:26 | JavaScript | UTF-8 | Python | false | false | 320 | py | import cherrypy
import tangelo
# This service reports the value of cherrypy's thread pool setting
def run(**kwargs):
if kwargs.get('pool'):
tangelo.util.set_server_setting('server.thread_pool', int(kwargs['pool']))
response = 'pool="%r"' % cherrypy.config.get('server.thread_pool')
return response
| [
"roni.choudhury@kitware.com"
] | roni.choudhury@kitware.com |
718d0f430682a0b47ec3c0d95755ecd74fa8612a | 7134e45563b2045837296cb5c4f1974a025e4f2b | /.history/MathmeticPracticeTimeLimit_20200411174234.py | 16d18819de876f7987bf70910f5d9fe1a1e15342 | [] | no_license | Nordenbox/Nordenbox_Python_Fundmental | dca175c471ac2c64453cc4bcf291dd0773be4add | 9c79fd5d0dada580072b523d5aa1d72f996e3a22 | refs/heads/master | 2022-01-21T06:37:15.084437 | 2022-01-06T13:55:30 | 2022-01-06T13:55:30 | 240,154,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | import random
import time
import os
import subprocess
def mode_choice():
print('请选用练习模式:\n1,选择练习题目数。\n')
print('2, 选择练习时间')
choice_num = int(input('您的选择: '))
if choice_num == 1:
multipile_issues()
else:
multipile_time()
def multipile_issues():
practicese_times = int(input('您要... | [
"nordenbox@gmail.com"
] | nordenbox@gmail.com |
6dcb30fec438ec2e9fff5f0b0626da1774055b61 | 653eaef652627b155569b5fe9ab9bb3607fc1e78 | /alg/discriminative-jackknife/models/BNN.py | 3a17799407f89d0061443791a187ff674aeeaeab | [
"BSD-3-Clause"
] | permissive | IlyaTrofimov/mlforhealthlabpub | 11ab86a83bd2ffd2574364a956b322b0c62406ae | 190cbad2faae9e559ffe7a68143df7f747d70adc | refs/heads/main | 2023-04-16T03:58:38.423288 | 2021-04-21T10:22:43 | 2021-04-21T10:22:43 | 358,528,623 | 0 | 0 | NOASSERTION | 2021-04-16T08:25:26 | 2021-04-16T08:25:25 | null | UTF-8 | Python | false | false | 1,534 | py | import torch
import torch.nn as nn
class BNN(nn.Module):
def __init__(self, *layers):
super(BNN, self).__init__()
self.layers, self.params = [], nn.ParameterList()
for layer in layers:
self.layers.append(layer)
self.params.extend([*layer.parameters()]) # register... | [
"e.s.saveliev@gmail.com"
] | e.s.saveliev@gmail.com |
59b111e7c48d6899e63795c608a24e3d51ca5fb3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02706/s901477236.py | e5cd388ef56bc4369f68551299e42a2e436c4640 | [] | 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 | 260 | py | #import numpy as np
#import math
#from decimal import *
#from numba import njit
#@njit
def main():
N,M = map(int, input().split())
A = list(map(int, input().split()))
s = sum(A)
if s > N:
print(-1)
else:
print(N-s)
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
010427a5856703a295156243fe70f85976250e8c | 2f17bb840634eab6f08a7bb488781f6951ce6b47 | /AOJ_courses/ITP1_4_D.py | 42e76330f54037ab4673edbc5a65b21db34f3da8 | [] | no_license | NHRD/Atcoderpractice | 3d5c1175e147a0bdbacf46f51b23db1a1b2dea22 | 958835069c84791afa36d119298b742d53e86ae0 | refs/heads/master | 2022-12-15T17:30:10.310049 | 2020-09-19T13:39:07 | 2020-09-19T13:39:07 | 279,771,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | n = int(input())
nums = list(map(int, input().split()))
nums = sorted(nums)
sumnum = sum(nums)
print("{} {} {}" .format(nums[0], nums[len(nums)-1], sumnum)) | [
"naohisa.harada@gmail.com"
] | naohisa.harada@gmail.com |
80e9eeda1efc064f19b56be3222ec30e6dd1564d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5744014401732608_1/Python/feigao/main.py | 9d1ebc3970ed5aa77f1c7df72eca82287fe1e3c1 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
from functools import wraps, lru_cache
def io_wrapper(func):
@wraps(func)
def _func(in_file=None, out_file=None, lines_per_case=1):
in_buffers = []
if in_file is None:
while True:
try:
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
e9880143e1cf66275f3cb00db8e80924fd0897d1 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_create_protocol_request.py | ad11aa561d4c11a287678808d35c64ee2c118655 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,463 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class KeystoneCreateProtocolRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dic... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
1f17b1b6a2c0bd4d5957fdf6884f06dc99a93f8a | 82c562bf2257c248fae968ad27876f840c98d5cc | /python_stack/django/django_orm/firstorm/firstorm/settings.py | f42135421e8b5e24068980b7988b67264548ecc7 | [] | no_license | tbkrft567/CodingDojo | 5175dbf5cae1e7b23ad1b91e6370bbf1467e2c31 | 142974abeffa0aef93f3761ffd3a9e2cc452e990 | refs/heads/master | 2023-02-19T09:03:26.644627 | 2021-02-21T22:06:54 | 2021-02-21T22:06:54 | 230,340,732 | 0 | 0 | null | 2023-01-19T16:39:50 | 2019-12-26T23:24:56 | Python | UTF-8 | Python | false | false | 3,100 | py | """
Django settings for firstorm project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"tbkrft@gmail.com"
] | tbkrft@gmail.com |
18772b128b050a7ff3d1dabdbdd5d2091d72921c | 2d94902e0367f364eabd038b4aa49ac34e1ebd47 | /config.py | 7e17e0f65019ab54b69a72e387746c5c258de67a | [
"Apache-2.0"
] | permissive | qitianchan/Patap | 25f642759698391c77527ed3f676a84fcf918023 | e71bd95300d94f7e26f9d87e5bdb9f4c73175383 | refs/heads/master | 2021-01-20T20:03:52.546735 | 2016-07-27T12:01:31 | 2016-07-27T12:01:31 | 64,106,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # Create dummy secrey key so we can use sessions
SECRET_KEY = '123456790'
# Create in-memory database
DATABASE_FILE = 'patap.sqlite'
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + DATABASE_FILE
SQLALCHEMY_ECHO = True
# Flask-Security config
# SECURITY_URL_PREFIX = "/admin"
SECURITY_PASSWORD_HASH = "pbkdf2_sha512"
SECURITY_... | [
"qitianchan@sina.com"
] | qitianchan@sina.com |
e87ad93a3d3dcdf7cfea8ea52573b0f8fcc1a35a | 54290d468f91a21f131458b136213354a3780a46 | /fabfile.py | 2f37bf95d517421a6878a2eb07b905c48515e92f | [
"WTFPL"
] | permissive | LaPosteSNA/addok | 9435cccd37e936c89c538caed08f5db04e6bd0eb | 22a4e407c5a94d412673d223a25a8a3651801a71 | refs/heads/master | 2021-01-22T13:13:37.465954 | 2016-01-26T17:02:01 | 2016-01-26T17:02:01 | 45,954,224 | 1 | 0 | null | 2015-11-11T02:15:32 | 2015-11-11T02:15:31 | null | UTF-8 | Python | true | false | 3,886 | py | from fabric.api import cd, env, execute, hide, puts, roles, sudo, task
env.project_name = 'addok'
env.repository = 'https://github.com/etalab/addok.git'
env.local_branch = 'master'
env.remote_ref = 'origin/master'
env.requirements_file = 'requirements.txt'
env.use_ssh_config = True
env.shell = "/bin/bash -c" # Defaul... | [
"yb@enix.org"
] | yb@enix.org |
b3b1665fb21f6233aa62577bc888715c6c87326f | e5a044708032b853f1cdf8906da63502716fd410 | /test/test_acs_response.py | 50ae8c13ac7310108d49f9d76f8061799b9c37d7 | [] | no_license | GBSEcom/Python | 4b93bab80476051fc99f379f018ac9fa109a8a6a | 5fa37dba8d0c3853686fdc726f863743376060c9 | refs/heads/master | 2021-12-04T12:55:29.605843 | 2021-11-19T22:01:03 | 2021-11-19T22:01:03 | 136,058,345 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
763b3c41f750dca1f47c7fdc416ee621be024e3c | 90cdae33e672b23a3ccb84dec0f281e78d3934ce | /auto_test_leke/web_test/src/common/method.py | 038feba19e8b7600635d53982ce2dd7eead0e753 | [] | no_license | kuangtao94/TestHome | dffdb3737ab60f6db435c770c33f423d814b5594 | 46acedadd225b07fe73f43feebd5c66d19c7eeac | refs/heads/master | 2020-06-29T07:38:37.316844 | 2019-11-24T02:14:25 | 2019-11-24T02:14:25 | 200,475,947 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | # coding:utf-8
from selenium import webdriver
import os
from selenium.webdriver.common.by import By #导入by定位
from selenium.webdriver.support.ui import WebDriverWait #导入显示等待包
from selenium.webdriver.support import expected_conditions as EC #导入期望条件
from logging import log ... | [
"1512500241@qq.com"
] | 1512500241@qq.com |
94be3ed0169b5b1a099858c6d26cca996a1e3f6c | ee7ca0fed1620c3426fdfd22e5a82bba2a515983 | /dsn_qc_pbsa/models/qc.py | 49236e76f3e03ea571e2b17105d32c21ef6826d9 | [] | no_license | disna-sistemas/odoo | 318d0e38d9b43bea56978fe85fc72850d597f033 | 0826091462cc10c9edc3cc29ea59c417f8e66c33 | refs/heads/8.0 | 2022-03-08T19:01:21.162717 | 2022-02-15T13:06:26 | 2022-02-15T13:06:26 | 99,210,381 | 0 | 5 | null | 2019-07-24T08:49:58 | 2017-08-03T08:36:55 | Python | UTF-8 | Python | false | false | 1,399 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2012 OpenERP SA (<http://openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"sistemas@disna.com"
] | sistemas@disna.com |
f2c256c323ba1cec97493ee8de823784aeb287cc | ac8779998b00a35b2fced864b007334a32873bf1 | /manage.py | cf1caf56512e01322d1767d71e4b7fce84a389b2 | [] | no_license | openmaker-eu/dsp-explorer | 5cb5ad4e7190dc8559b69a3154da9ae6383ef536 | 8a8b007ac6095ac6864e030641545724a6872f2e | refs/heads/master | 2022-12-09T13:50:47.218076 | 2019-02-14T20:21:53 | 2019-02-14T20:21:53 | 90,641,109 | 5 | 8 | null | 2022-12-08T02:06:16 | 2017-05-08T15:02:38 | Python | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dspexplorer.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"alex.comunian@gmail.com"
] | alex.comunian@gmail.com |
46823e51aef1425db664261b1bf8807eda1cf97f | ff21dd1b906db472584aa92a32c22fb9351c9ffd | /NOTE/02_PythonBase/day20/exercise/mycopy.py | 84c9355038bbc272ced2e384557d1676f5064f61 | [] | no_license | Bertram-Liu/Note | 0e176b2c9625f02e463b8f6be3587f1f0b873e9b | 60a30b03ff5d41ab6233e6fd30074de396703b68 | refs/heads/master | 2020-07-18T18:14:24.920528 | 2019-09-04T11:55:59 | 2019-09-04T11:55:59 | 206,290,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # 1. 写程序,实现复制文件的功能
# 要求:
# 1. 要考虑关闭文件的问题
# 2. 要考虑超大文件的问题
# 3. 要能复制二进制文件
def copy(src_file, dst_file):
'''src_file 源文件
dst_file 目标文件'''
# 以下实现复制
try:
with open(src_file, 'rb') as fr, \
open(dst_file, 'wb') as fw:
while True:
... | [
"bertram_liu@163.com"
] | bertram_liu@163.com |
1125be93d6bf6ec5f578a754b518db5452606a9d | 4d8f0c491943e0c688c11561c7f57d815b014b76 | /experiments/tf_vae_pixel/resnet_16.py | a289791f5c82669c58bc4a02e9871acbdb7e5406 | [] | no_license | kundan2510/nn | d5e434e9d6275a82a04c12df4d8e4be855c39ab5 | 39d247f3b64f9ac9400835dd72d3af7a84578449 | refs/heads/master | 2020-12-26T03:10:23.949984 | 2016-12-27T20:23:58 | 2016-12-27T20:23:58 | 64,513,518 | 0 | 1 | null | 2016-07-29T22:19:40 | 2016-07-29T22:19:39 | null | UTF-8 | Python | false | false | 42,905 | py | """
Multilayer VAE + Pixel CNN
Ishaan Gulrajani
"""
import os, sys
sys.path.append(os.getcwd())
N_GPUS = 1
try: # This only matters on Ishaan's computer
import experiment_tools
experiment_tools.wait_for_gpu(tf=True, n_gpus=N_GPUS)
except ImportError:
pass
import tflib as lib
import tflib.debug
import tf... | [
"kundankumar2510@gmail.com"
] | kundankumar2510@gmail.com |
b529d4e2ef137a416b1a7794a47c6e9eebffab3b | 01ac9e40052a468dd472a296df0003c4e629e2c9 | /news_all/spiders_ydyl/cppcc_all.py | 4081ec07efd2853fce653816d12c6835d575b706 | [] | no_license | Pintrue/news_all | b5cee16584ed92e6574edd825b574214df65d917 | eb8c32c79bdacd8e2f76b88f27871c3cd0118006 | refs/heads/master | 2022-03-23T13:34:10.354029 | 2019-11-22T07:40:50 | 2019-11-22T07:40:50 | 223,058,997 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | # -*- coding: utf-8 -*-
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import Rule
from news_all.spider_models import NewsRCSpider
class Zgzxw_allSpider(NewsRCSpider):
"""中国政协网"""
name = 'zgzxw'
mystart_urls = {
'http://www.cppcc.gov.cn/zxww/newcppcc/zxyw/index.shtml': 7642, ... | [
"py416@ic.ac.uk"
] | py416@ic.ac.uk |
22fe6252c1d33a331415ffaf644c9dbdb687b865 | 99b062cb9f5f3ff10c9f1fa00e43f6e8151a43a6 | /algorithm/IM/반나누기.py | 0f16cc1db1f921f7c87b424d4ce293b0641550ca | [] | no_license | HSx3/TIL | 92acc90758015c2e31660617bd927f7f100f5f64 | 981c9aaaf09c930d980205f68a28f2fc8006efcb | refs/heads/master | 2020-04-11T21:13:36.239246 | 2019-05-08T08:18:03 | 2019-05-08T08:18:03 | 162,099,042 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | import sys
sys.stdin = open("반나누기.txt")
T = int(input())
for tc in range(1, T+1):
N, Kmin, Kmax = map(int, input().split())
score = list(map(int, input().split()))
div_class = []
for T1 in range(1, 101):
for T2 in range(T1+1, 101):
A = []
B = []
C = []
... | [
"hs.ssafy@gmail.com"
] | hs.ssafy@gmail.com |
2294bcc3211c94ad16f0784191f9eb000b41fb76 | 23805cffc86ac4dfb5bcce672b8c7070b4616e41 | /Apprendre-Python/sum-1-n/scripts/feedback.py | 638e0fc434e034cca499389e17e3f7f853abd000 | [] | no_license | ukonline/pythia-tasks | f90ff90299fe0eedd0e2787bcf666df07c709a00 | 81a3731eb0cdfe16b26a4e75a165a5071fb48ff5 | refs/heads/master | 2021-01-25T03:26:33.915795 | 2016-01-04T20:03:24 | 2016-01-04T20:03:24 | 40,974,655 | 0 | 2 | null | 2016-12-21T13:12:14 | 2015-08-18T13:49:39 | Python | UTF-8 | Python | false | false | 1,247 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Course: Apprendre Python
# Problem: Somme de 1 à n
# Feedback script
import ast
import csv
import json
import os
import sys
sys.path.append('/task/static')
from lib import pythia
import math
def computesum(n):
result = 0
i = 1
while i <= n:
result += ... | [
"seb478@gmail.com"
] | seb478@gmail.com |
d7db13e9901dfdb2541b150c96b70055368e00ee | cf720b69d428b92186e84e52ff4f7eb39b8dd723 | /Probablity and Statistics/3. WAP to find the probability of drawing an ace after drawing an ace on the first draw.py | d831885a30876fdd223cd5f274b1fb19dbec87e6 | [] | no_license | bl-deepakchawla/ML-Followship-Program | b0fd2232f6dd2ea4356e4402be86cca84a5fbd60 | 41d88172ea226c42c1f56fd9e59769142575734c | refs/heads/master | 2020-04-01T13:56:11.595143 | 2018-10-31T10:28:19 | 2018-10-31T10:28:19 | 153,273,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | def pr_ace_after_ace_draw(l_ace_cards, l_total_cards):
l_pr_ace_card = (l_ace_cards/l_total_cards) * 100
return l_pr_ace_card
g_total_cards = 52
g_ace_draw = 1
g_total_cards = g_total_cards - g_ace_draw
g_ace_cards = 4 - g_ace_draw
g_pr_ace_card = pr_ace_after_ace_draw(g_ace_cards, g_total_cards)
print("Proba... | [
"deepakchawla35@gmail.com"
] | deepakchawla35@gmail.com |
af54c2b60779c31d1d0d83a753f2c43b38f14d77 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /mDzheHpwtqyXePEBE_1.py | ab0f5df7676101d833a8e557fffe7d8f9cbc98e4 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py |
def sum_polygon(n):
return (n - 2) * 180
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ce2c39c3477019baaa00ce42f360612cc208f501 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2283-2409/base-trunk-2283/exe/engine/path.py | 8c18ee779da2843b3377442bd070d39038cb31c2 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 29,655 | py | """ path.py - An object representing a path to a file or directory.
Example:
from path import Path
d = Path('/home/guido/bin')
for file_ in d.files('*.py'):
file_.chmod(0755)
This module requires Python 2.2 or later.
Licensed under GPL.
URL: http://www.jorendorff.com/articles/python/path
Author: Jason Orendorf... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
964f0f6d8e473b5059787827e5796aee63a0f3bf | 5e6ee5d0f840bf031bab13df120987dc31491034 | /restfulapicrud/restfulapicrud/urls.py | 31852b1d2f0d2de7f58a9906e25779311f8ea86f | [] | no_license | cal1log/heroku_api_rest | 9027d3b24c704ed8f15c6badd7dd8fca62894cfa | a800706ac5e24a26ef7c68dc039b6bba0448fce3 | refs/heads/main | 2023-06-28T00:11:14.578647 | 2021-07-26T21:03:12 | 2021-07-26T21:03:12 | 388,584,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """restfulapicrud URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"orlago250183@gmail.com"
] | orlago250183@gmail.com |
7d4e6bffda2aa0fba7162dcdddd61002522e4a74 | 5f408e5c43cf39a0ae6abf1c1309004f997cc7ee | /extras/benchmark/format_bench_results.py | 45065d4b7c14abb9180393e80434e2d0bf098081 | [
"Apache-2.0"
] | permissive | fran6co/fruit | 408e24385ded3c8d49e23f0c572e4ce4d7569622 | b34b703b4d50b49a658aeab227765bc3260d7d89 | refs/heads/master | 2021-01-19T10:34:32.890334 | 2017-05-09T08:42:15 | 2017-05-09T08:42:15 | 82,211,310 | 0 | 0 | null | 2017-02-16T18:14:59 | 2017-02-16T18:14:59 | null | UTF-8 | Python | false | false | 13,384 | py | #!/usr/bin/env python3
# Copyright 2016 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... | [
"poletti.marco@gmail.com"
] | poletti.marco@gmail.com |
cc93233f0b52c7d0783f65cc3716005438cc0fd3 | 164ffe077dde59373ad9fadcfd727f279a1cfe93 | /jni_build/jni/include/tensorflow/python/client/timeline.py | 03e07a27ad5cafa21dfe51e752b2a4f8cbfac7b7 | [] | no_license | Basofe/Community_Based_Repository_Traffic_Signs | 524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd | a20da440a21ed5160baae4d283c5880b8ba8e83c | refs/heads/master | 2021-01-22T21:17:37.392145 | 2017-09-28T21:35:58 | 2017-09-28T21:35:58 | 85,407,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 24,412 | py | # Copyright 2016 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... | [
"helder_m_p_novais@hotmail.com"
] | helder_m_p_novais@hotmail.com |
8138e1872ba83e8b4e5232c1d3cc450e30f9a153 | 527cc44efaa5a2d738d638d76cf4737b37a0e27d | /fiepipe.py | 3302504191367767067a54043f89092e1dc52f4e | [
"MIT"
] | permissive | leith-bartrich/fiepipe | c98a978d81a24013a98bbae97c65ca053e9af481 | 2f48054a349059ec5919ff9402a02c03b27b5915 | refs/heads/master | 2021-04-06T13:52:51.391039 | 2019-06-25T21:01:39 | 2019-06-25T21:01:39 | 125,394,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | #!/usr/local/bin/python
import fiepipelib.localplatform.routines.localplatform
import fiepipelib.localuser.routines.localuser
import fiepipedesktoplib.shells.fiepipe
def main():
# TODO register fie.us and populate the public key from somewhere authoritative.
platform = fiepipelib.localplatform.routines.local... | [
"brad@fie.us"
] | brad@fie.us |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.