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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d695cc61ae23487113b749728f9546a02e5966b9 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/bc44175d8dd288af7c940fa060ab4e1b90f3737e-<exec_command>-fix.py | dfddb3f84c3ee7f8f4f7688703bee9f684ada3ce | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | def exec_command(self, cmd, in_data=None, sudoable=True):
' run a command on the remote host '
super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable)
if in_data:
raise AnsibleError('Internal Error: this module does not support optimized module pipelining')
bufsize = 4096
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
d653dfa0cd9d0079499e8437c5c79a2e9a7ea059 | b8441dc1987be9e64fa3081d456b2a3060ec44d1 | /mars/tensor/special/bessel.py | d2e25534402687d9ba9f11a9150333ea0f9dcb6d | [
"BSD-3-Clause",
"MIT",
"ISC",
"Apache-2.0",
"CC0-1.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mars-project/mars | f99fefbce999d58a9249bc72046787a9731c9c73 | c36c53fa22e10ef9477d9c454401a2f281375f31 | refs/heads/master | 2023-07-23T00:23:55.133015 | 2023-07-03T11:44:54 | 2023-07-03T11:44:54 | 160,543,708 | 2,704 | 362 | Apache-2.0 | 2023-09-11T07:57:35 | 2018-12-05T16:04:03 | Python | UTF-8 | Python | false | false | 4,586 | py | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | mars-project.noreply@github.com |
70657243e798d291ee787ba590eb0414f17505e5 | 293d7ab59c9e7ff4e1341fb8e6504a89f3384666 | /python/src/nnabla/backward_function/minimum2.py | 6c275ef07014210c49540673c211a2de9c347f51 | [
"Apache-2.0"
] | permissive | CrimsonTuna/nnabla | 903423b8eb3617c3623952605bcdd77bb5ab2a56 | 36328e574d77f1cc9ee0051f33159a2dc4f03013 | refs/heads/master | 2023-03-29T07:12:33.444996 | 2021-04-11T09:33:21 | 2021-04-11T09:33:21 | 356,857,925 | 0 | 0 | Apache-2.0 | 2021-04-11T13:09:02 | 2021-04-11T12:10:47 | null | UTF-8 | Python | false | false | 1,185 | py | # Copyright (c) 2017 Sony Corporation. 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 ... | [
"Kazuki.Yoshiyama@sony.com"
] | Kazuki.Yoshiyama@sony.com |
5a7399e42ab477b72d29a8afd33751660f12d44e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /P7vMuQgQaA5DutThN_18.py | 8815acf341fb978c342f5f447e41a6566a1ae7c9 | [] | 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 | 54 | py |
def negate(lst):
return [ -item for item in lst ]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6afc6c02bc448554d1a044c3374dc97cb4e1a3e5 | f286557dd5654dd6b111f3313a56fa6496f4ddf3 | /sort/sort_test.py | 4c55b4047fc55ecde0f0ce37ee3d6ea0cdbfb1f1 | [] | no_license | Albino1995/algorithms | 35b9b539053d9954a5eb8825949ba0a716f6e94e | 99758833364645d243adfa3620967ae2f33ef0cb | refs/heads/master | 2021-05-04T15:49:31.350373 | 2018-03-01T06:22:54 | 2018-03-01T06:22:54 | 120,239,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | #!/usr/bin/env python
__author__ = 'Albino'
import random
from sort.insertion_sort import InsertionSort
from sort.selection_sort import SelectionSort
from sort.bubble_sort import BubbleSort
from sort.merge_sort import MergeSort
from sort.quick_sort import QuickSort
from sort.quick_sort_3_ways import QuickSort3Ways
fr... | [
"763968024@qq.com"
] | 763968024@qq.com |
5bd9532ec15d3bb0dee13f51dd4cd35a069ceac6 | 62b5bf3ec2e873fc5b7da7821115f51a5eb93c01 | /ch01/Bayesian_regression.py | c9713de502ae2a4639f7d181d0b5dbab797cda0f | [] | no_license | gjwei/PRML | 8825dbc17d351dd956dbfe8ecdb3c2c3049a9597 | 57c38180c50868d9cda7d89ced171cd7e0db1e43 | refs/heads/master | 2021-08-11T08:23:05.252955 | 2017-11-13T11:39:10 | 2017-11-13T11:39:10 | 108,715,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,233 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
created by gjwei on 2017/10/29
看了半天还是没有看懂什么事贝叶斯回归
Orz
留下代码,今后慢慢琢磨吧
"""
import numpy as np
from ch01.regression import Regression
class BayesianRegressor(Regression):
"""
Bayesian Regression
w ~ N(w|0, alpha^(-1)I)
y = X @ w
t ~ N(t|X @ ... | [
"1449894353@qq.com"
] | 1449894353@qq.com |
7cf59e616514df5279e0c929bf07227df4c1a751 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/angle/scripts/bmp_to_nv12.py | facb43e9bf5aad449e1f2112245cf575ceb22718 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 3,062 | py | #!/usr/bin/python
#
# Copyright 2016 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# bmp_to_nv12.py:
# Script to convert a simple BMP file to an NV12 format. Used to create
# test images for the NV12 texture st... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
0b584ccec620493bc70bef5cf57649ffe6ee0efb | df01b59063ff08ca998995a2801d242c670691e6 | /luxon/models/users.py | 83399595c1c18d1c6099e7025183b16e47173eee | [
"BSD-3-Clause"
] | permissive | WarpSec/luxon | 7c8bd02784b899c1927f934dd76b25301f685c52 | 37ecfc268069a1c535e6253f3d4d270f755a80c7 | refs/heads/master | 2021-04-29T13:57:31.677632 | 2018-02-08T14:12:12 | 2018-02-08T14:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,882 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018 Christiaan Frans Rademan.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, ... | [
"christiaan.rademan@gmail.com"
] | christiaan.rademan@gmail.com |
b26b26d9d7ae6e15743128975807f5c869da1f08 | 666898bf873aa812f5dcc66e67617668c3dcfe2b | /plugins/effects/SphereFade.py | 0286f027dcb40ac63b59a29f384be723c34d422b | [] | no_license | ISRAELAVLIS33/vb30 | 752b31c6e8cb9f7690c4c568c832a0cbe9c1347f | ac5278a2ec28c704f0c3e73ad338d910ab3a7330 | refs/heads/master | 2021-01-20T21:19:32.096384 | 2014-08-22T14:38:50 | 2014-08-22T14:38:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | #
# V-Ray For Blender
#
# http://chaosgroup.com
#
# Author: Andrei Izrantcev
# E-Mail: andrei.izrantcev@chaosgroup.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the... | [
"andrei.izrantcev@chaosgroup.com"
] | andrei.izrantcev@chaosgroup.com |
407977d8b271c4b2be4862815e268e484cd575aa | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/main/resources/stacks/HDPWIN/2.3/services/stack_advisor.py | 3631c88449f30894349d9679586e2d61f823613c | [
"Apache-2.0",
"MIT",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 3,844 | py | #!/usr/bin/env ambari-python-wrap
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
3b95851f343a457ec485b60cd43ec08bd304170b | c6760258b3ad3dd912f0842b8ae03cbea188a8c4 | /fsleyes/displaycontext/scene3dopts.py | a31f55be1fc23def5e55568855c90bfac0073bd1 | [
"BSD-3-Clause",
"CC-BY-3.0",
"Apache-2.0"
] | permissive | sanjayankur31/fsleyes | aa822f627cde38ec766180fb591c9af7d18d2126 | 46ccb4fe2b2346eb57576247f49714032b61307a | refs/heads/master | 2020-04-09T08:41:18.380424 | 2018-12-03T11:44:51 | 2018-12-03T11:44:51 | 160,204,259 | 1 | 0 | null | 2018-12-03T14:31:31 | 2018-12-03T14:31:31 | null | UTF-8 | Python | false | false | 1,984 | py | #!/usr/bin/env python
#
# scene3dopts.py - The Scene3DOpts class.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module provides the :class:`Scene3DOpts` class, which is used
by :class:`.Scene3DPanel` instances for managing their display settings.
"""
import copy
from . import sceneopts
from . import ... | [
"pauldmccarthy@gmail.com"
] | pauldmccarthy@gmail.com |
66df47ceffeff3ad35fba824fad9bde9bbb8dbba | 4ef31d0f04f4d6d7725a530bffb1a4b115283d6f | /site/_build/jupyter_execute/notebooks/08-intro-nlp/04-what-cooking-python.py | 94e340323f39c4c3bc0e6a242983ef4b273fb779 | [
"MIT"
] | permissive | rpi-techfundamentals/introml_website_fall_2020 | 98bb1cc4712f416b393b996b849f39c660167057 | b85e5c297954bcaae565a8d25a18d2904d40f543 | refs/heads/master | 2023-07-14T16:49:21.625260 | 2020-12-10T17:51:34 | 2020-12-10T17:51:34 | 287,033,509 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,087 | py | [](http://rpi.analyticsdojo.com)
<center><h1> What's Cooking in Python</h1></center>
<center><h3><a href = 'http://rpi.analyticsdojo.com'>rpi.analyticsdojo.com</a></h3></center>
# What's Cooking in Pytho... | [
"jkuruzovich@gmail.com"
] | jkuruzovich@gmail.com |
0ba2f216902c7a6bbb046db9f0a9b8c3d9e6db11 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/2124. Check if All A's Appears Before All B's/2124.py | 2c3c2419d2a2cf87a1739464b237eb16e49fd948 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 82 | py | class Solution:
def checkString(self, s: str) -> bool:
return 'ba' not in s
| [
"me@pengyuc.com"
] | me@pengyuc.com |
01524294cf5b8cf27b289fe21c0f55e71df64310 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_209/640.py | 1ec7a84083cbd5e13ca12e42e33f7c4a3476a9cf | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | #!/usr/bin/env python3
"""
Needs K pancakes
Has N pancakes.
N ≥ K
Choose K, sort them by radii
"""
import sys
import math
from collections import namedtuple
import itertools
def surface_of_a_sorted_stack(pancakes_stack):
"""Biggest at the end.
"""
sides = 0
for pancake in pancakes_stack:
si... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
bffb3df6ac09d2d3d1572eb04b2d407b6cbb7294 | d94cee4f626dad044f6c67424db91d0c7f9e5bc4 | /pyBlackScholesAnalytics/example_options_IV_plot.py | b6fec122ea248344dbd4bb86eef99796509ef4af | [] | no_license | FidelAlberto/IT-For-Business-And-Finance-2019-20 | 07d69d5ed9cd73d1ad6ce3ea5037c7371cfa4103 | ce89e25cf6386f4320bb5d430f7e602b4d31567c | refs/heads/master | 2022-11-10T07:05:24.910183 | 2020-07-07T17:16:24 | 2020-07-07T17:16:24 | 277,997,727 | 1 | 0 | null | 2020-07-08T05:26:41 | 2020-07-08T05:26:41 | null | UTF-8 | Python | false | false | 2,964 | py | import pandas as pd
from market.market import MarketEnvironment
from options.options import PlainVanillaOption, DigitalOption
from plotter.plotter import OptionPlotter
def option_factory(mkt_env, plain_or_digital, option_type):
option_dispatcher = {
"plain_vanilla": {"call": PlainVanillaOption(mkt_en... | [
"gabriele.pompa@gmail.com"
] | gabriele.pompa@gmail.com |
628d32a921e90b24bc4138101a63a41b619c6782 | 78a4978be0a7461b29051ce23598ad947c720e74 | /socialaccount/providers/twitch/provider.py | d6b87a7ce1d87c1eac28b178162c81521abcb2cc | [] | no_license | yingchauhuang/allauth | 444bf5c23d5cae09646f7c9bf0d4b0573eaa5f45 | ebe70c6aff94cf3f5695d65c88cf022686ad69e3 | refs/heads/master | 2021-01-20T08:43:48.264694 | 2013-04-25T08:12:38 | 2013-04-25T08:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | from allauth.socialaccount import providers
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider
class TwitchAccount(ProviderAccount):
def get_profile_url(self):
return 'http://twitch.tv/' + self.account.extra_data.get(... | [
"yingchauhuang@gmail.com"
] | yingchauhuang@gmail.com |
244a225c084a8819ffd72ac4f6e573be52d8ab2f | 1284718203be50b23dcd1f6159746cfa42a04163 | /tensorflow_data/clean_tensorflowdata.py | c4f227f913fa18b2ea29018b08476f2c16b8a0eb | [] | no_license | febert/robustness_via_retrying | 8fe4106d7705228ff339f9643518a80c0a243d36 | 1def282dc22f24b72c51ff1ef9ea1a7a83291369 | refs/heads/master | 2020-03-31T19:33:39.664525 | 2018-11-07T21:52:56 | 2018-11-07T21:52:56 | 152,502,702 | 17 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | # go through modeldata directories and delete model* files which are have smaller iterations
#than the maximum one
import os
import re
import numpy as np
import pdb
current_dir = os.path.dirname(os.path.realpath(__file__))
dryrun = False
for path, subdirs, files in os.walk(current_dir):
# print path
# print ... | [
"sdasari@berkeley.edu"
] | sdasari@berkeley.edu |
a49b564f0edb92b8eacbfb1b265c3b676a4b460e | 7b7d9758c750a3c976100a286be9d84bbd0b10ef | /mars/dataframe/tests/test_initializer.py | 737f55acf45a97b9a70d48c1be47ea6d79018700 | [
"BSD-3-Clause",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"ISC",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | Alfa-Shashank/mars | 4e91cd640c799b0583504f23dc140d067c9f265b | a75499185d0e533dd532a34515adefb3065f33cc | refs/heads/master | 2023-07-17T02:49:07.271772 | 2021-08-28T12:54:22 | 2021-08-28T12:54:22 | 400,260,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,912 | py | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | Alfa-Shashank.noreply@github.com |
bc5a9033a2489cc4a2a2b63f399dec083fd63419 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayMarketingUserulePidQueryRequest.py | e51564a0f5cb5a74be40fe76c5831a7f6d00da77 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,979 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMarketingUserulePidQueryModel import AlipayMarketingUserulePidQueryModel
class AlipayMarketingUserulePidQueryRequest(object):
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
efee1b60658e931869be1effeebc71cc57c36ef1 | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /clean_code/clean_code_submissions/clean_code_assignment_002/tests/test_car_init.py | ad70746ced51945be7583f548dfbbd1975ed7e59 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,217 | py | import pytest
from car import Car
@pytest.mark.parametrize(
"color, max_speed, acceleration, tyre_friction",
[("red", -100, 10, 3), ("red", 0, 10, 3)])
def test_object_creation_with_invalid_max_speed_raise_value_error(color,
max_speed,
... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
d6c7d6c8329aaee73e9c689d0c81e0f664a6d655 | 03f942566dbfcca04174e908a67d2ff00486c8ee | /scrapy/normattiva.py | 2b906a8f11f2576dd5c57847ac92ec779f365742 | [
"BSD-3-Clause"
] | permissive | spuliz/normattiva-cad-formatter | 68c927e50462be66256ff5db46a9c8d72de8192b | 33c465a6af1bbc067d865bce86cecff7389ee1cc | refs/heads/master | 2023-02-20T15:44:00.119685 | 2021-01-13T15:21:51 | 2021-01-13T15:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | import logging
from pathlib import Path
import scrapy
from scrapy import FormRequest
from scrapy.http import Request
from scrapy.utils.response import open_in_browser
logging.basicConfig(level=logging.DEBUG)
class BasicSpider(scrapy.Spider):
name = "basic"
allowed_domains = ["www.normattiva.it"]
start_... | [
"robipolli@gmail.com"
] | robipolli@gmail.com |
ddc4765fb189996ed5df5bddbbd54498a4126b26 | 6b96a11195094a0023a059ba7d5df95ce58c56f1 | /1157A.py | 55237c73354c6ac9d18d3460d8970ae3f3e033ad | [] | no_license | ldfdev/CodeForces-Div2-Problems | d932b09ee14a430fd0054d5b295f6016553be2b7 | d18824a4330a4593099d249496ae22f3f69d5f44 | refs/heads/master | 2021-08-11T03:29:18.772870 | 2021-07-25T07:21:09 | 2021-07-29T20:09:43 | 72,371,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py |
def reduceTrailing0(n, counter):
while (n == (10 * (n // 10))):
# counter = counter + 1 # new local variable counter is created
# counter += 1 # augmented assigment operator
n //= 10
# print ("n= ", n)
return n;
def foundSecondTime(n):
if ((foundSecondTime.boolean == True... | [
"ldf.develop@gmail.com"
] | ldf.develop@gmail.com |
c32a06118224e888d17f43637a046c0deef42bbb | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/client/tutorial/gui/Scaleform/quests/__init__.py | d8213cf2ac2a9f831906b2446b14712ccc543366 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 474 | py | # 2017.02.03 21:54:26 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/tutorial/gui/Scaleform/quests/__init__.py
from tutorial.gui.Scaleform.quests.proxy import SfQuestsProxy
__all__ = ('SfQuestsProxy',)
# okay decompyling c:\Users\PC\wotsources\files\originals\res\packages\scripts\scripts\client\tutoria... | [
"info@webium.sk"
] | info@webium.sk |
c1d276f44c566e89024451054acbb0fa9e6c865d | afc102cf1883cc314ae0c11a0e9f9145897d2d43 | /tests/test_time_pdfs.py | 84b8455e243aac6d33c03f2d192cf724a87b5a5a | [
"MIT"
] | permissive | bhishmapitamah/flarestack | ea027f92cf8601b3180c49c593e9e439336b67c6 | ba02e81c94609fca131a4e487ee328c969186afd | refs/heads/master | 2020-12-05T16:24:33.611785 | 2019-12-03T14:38:32 | 2019-12-03T14:38:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | """A standard time-integrated analysis is performed, using one year of
IceCube data (IC86_1).
"""
import logging
import unittest
from flarestack.data.public import icecube_ps_3_year
from flarestack import create_unblinder
from flarestack.analyses.tde.shared_TDE import tde_catalogue_name
from flarestack import Minimisat... | [
"robert.stein@desy.de"
] | robert.stein@desy.de |
b27bcd1cefcdb95402f1d17ad51df65c2cbf65f4 | 9351fbd0c75c8835ed4e7a1e93865f698c91f8ee | /server/scripts/run_flask.py | ba6e2522d4872ccdbefd5bf79490d0ea3331576e | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | tongpi/DeepVideoAnalytics | c80c7374620f2c82ef91dac06ce5c782e1872827 | e4163f53607fced12561f8f89086bb5c3db1f550 | refs/heads/master | 2021-05-14T14:51:36.301788 | 2019-01-11T07:26:39 | 2019-01-11T07:26:39 | 115,978,445 | 1 | 0 | null | 2018-01-02T05:34:30 | 2018-01-02T05:34:30 | null | UTF-8 | Python | false | false | 1,415 | py | #!/usr/bin/env python
import django
import sys, os, logging
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
datefmt='%m-%d %H:%M',
filename='../logs/flask.log',
filemode='a')
sys.path.ap... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
7addb3fc9e32a47f7ff5ca2e0521d981a52f2c1e | a5698f82064aade6af0f1da21f504a9ef8c9ac6e | /huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_req.py | c9875bba0d6726567eaf9e554eb8246b0ced3a64 | [
"Apache-2.0"
] | permissive | qizhidong/huaweicloud-sdk-python-v3 | 82a2046fbb7d62810984399abb2ca72b3b47fac6 | 6cdcf1da8b098427e58fc3335a387c14df7776d0 | refs/heads/master | 2023-04-06T02:58:15.175373 | 2021-03-30T10:47:29 | 2021-03-30T10:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,948 | py | # coding: utf-8
import pprint
import re
import six
class AutoClassificationReq:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the va... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
94ffe684e192b8ba188b7c6767d2bc026419ac06 | 925b899cff2fa37e8af46a365f561e083a8818d6 | /helpdesk/views/kb.py | d850fd195f9b96b4bf28c0aff2e2af238455e729 | [] | no_license | zaiyankhan/djangonew | f2d6ef9ef73ca0fcd0cda14082a20973c93368ce | 31e4bd9d3432a260273fac7c3ae08137983ea106 | refs/heads/master | 2022-12-08T11:57:25.662206 | 2020-04-05T19:34:59 | 2020-04-05T19:34:59 | 253,313,050 | 0 | 0 | null | 2022-11-22T01:59:55 | 2020-04-05T19:15:58 | Python | UTF-8 | Python | false | false | 1,763 | py | """
django-helpdesk - A Django powered ticket tracker for small enterprise.
(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.
views/kb.py - Public-facing knowledgebase views. The knowledgebase is a
simple categorised question/answer system to show common
resolutions t... | [
"zaiyanwebadda@gmail.com"
] | zaiyanwebadda@gmail.com |
55877bb028552264fa68213e8532e762ac398a82 | 0fcb8fc03ae378c56b7bd9d539e83ebe64adaf04 | /264UglyNumberII.py | 31209ea2a3ca1977eb8623e1db95fb86135d89c3 | [] | no_license | kklook/leetcode | b8aa4c5fb33f009e8c708e2516f3e922a2ab7603 | 89a29b1b05afcfe61820d90a0b4d250d3af22419 | refs/heads/master | 2021-01-21T13:49:45.446296 | 2016-06-02T04:48:35 | 2016-06-02T04:48:35 | 55,401,422 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | class Solution(object):
def nthUglyNumber(self, n):
result = [1]
u2 = u3 = u5 = 0
while len(result) < n:
min2, min3, min5 = result[u2] * 2, result[u3] * 3, result[u5] * 5
m = min(min2, min3, min5)
if m == min2:
u2 += 1
if m... | [
"714779883@qq.com"
] | 714779883@qq.com |
a32d472f275190bf99b32c2241cde517accb2414 | d3a9c3abf1821cb7e5326eeb272773f6649ba6a5 | /python/ray/tune/tuner.py | 1658188b9530c6318111d939cddff6e438080e65 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | vishalbelsare/ray | 692739f5865f5c50254ad9367b9c236526fedf8c | a0e318ba784d4cd5a53ed0e94bb21f299e2bdd5a | refs/heads/master | 2023-08-31T06:14:39.421512 | 2023-05-15T17:21:20 | 2023-05-15T17:21:20 | 120,221,098 | 0 | 1 | Apache-2.0 | 2023-07-01T07:27:57 | 2018-02-04T20:37:56 | Python | UTF-8 | Python | false | false | 15,376 | py | import logging
from pathlib import Path
from typing import Any, Callable, Dict, Optional, Type, Union, TYPE_CHECKING
import ray
from ray.air.config import RunConfig
from ray.air._internal.remote_storage import list_at_uri
from ray.air.util.node import _force_on_current_node
from ray.tune import TuneError
from ray.tun... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
86444a1947cabc376a9ddb79f2bc28d1cc7ed525 | 7a1b08c64b29522d4bbb913475275c1bc8ad61a4 | /ttt/patienttt11.py | aa8fe1171331c9a6234591e270d9ca41f71f6c41 | [
"MIT"
] | permissive | erichilarysmithsr/time-track | 8f84d4cc92cebaedce550b3741982d204e734a6c | dc0a7b63c937d561309f9b1c84af65fb581a8e18 | refs/heads/master | 2023-03-27T08:07:46.717221 | 2021-03-30T16:45:50 | 2021-03-30T16:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,791 | py | #!/usr/bin/python3
# -*-encoding:Utf-8-*-
import tkinter as tk
from tkinter import ttk
from tkinter import messagebox
import time
import os
import json
import subprocess
def callbackDay(event):
print(comboDay.get())
def callbackMonth(event):
print(comboMonth.get())
def callbackYear(event):
print(combo... | [
"philogenie@protonmail.com"
] | philogenie@protonmail.com |
d7d14c19adf27cf997f111e36fa3dc2613f41cc1 | 9af61335bd9ad90cef67e5b79d4616f09e35ad45 | /devel/lib/python2.7/dist-packages/can_msgs/msg/_MagRuler32Data.py | 15ab93a975fedfb0e498080e0318b7e94ce5f754 | [] | no_license | hel4859/back_end | 96fac122e774b7bfce32eef140711e316e327a58 | 03618e0bfcc6fa66591be1eac49cdf1215fdcf30 | refs/heads/master | 2021-09-14T20:04:19.739686 | 2018-02-27T15:27:21 | 2018-02-27T15:27:21 | 120,080,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,585 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from can_msgs/MagRuler32Data.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class MagRuler32Data(genpy.Message):
_md5sum = "c00f87ffaa1e5c5e9bcb9ae... | [
"helei20132014@gmail.com"
] | helei20132014@gmail.com |
abd9f38ee532aabd464c897451c3cfa8c116f49a | 49f5c6164d83dcb808ed2b24e3c42e0fc166956f | /rpiWebServer/del_log_sqlite.py | c09f61b6e1e760a6c9d14e48399bbdcfc4a7ecc1 | [] | no_license | rmarabini/ElectronMicroscopeMonitor | cb61a7314ceaa0774d7601a29deb3fc917db4acd | 480da7a6c21623c3b81d4b94bbe48d80a5422b3d | refs/heads/master | 2022-12-09T02:51:56.840525 | 2020-08-07T14:06:43 | 2020-08-07T14:06:43 | 212,605,876 | 1 | 0 | null | 2022-06-22T00:58:29 | 2019-10-03T14:51:37 | Jupyter Notebook | UTF-8 | Python | false | false | 575 | py | #!/usr/bin/env python3
# this file is executed by a crontab delete
# entries older than 90 days from databse sqliteDbName
#
# crontab command
# start everyday at 1:00
#0 1 * * * python3 /home/pi/temp_sensor/rpiWebServer/del_log.py
import sqlite3
from constants import sqliteDbName, tableName
conn = sqlite3.connect(s... | [
"you@example.com"
] | you@example.com |
73d03720a2abc509edc70cf56d8d757ec27dfb26 | 11e3e34ef257eb3888230a8ad7fc6c922b28af6b | /hpdf/apps.py | 6db1375a92706aca1d254db584e11529d4ea496f | [] | no_license | ProsenjitKumar/html_to_pdf | eb44c1573b7132020f9c385b01823367e292dfbe | 161dae1ba1194881f540ffee141b32193e2ff0b6 | refs/heads/master | 2021-04-03T08:37:38.804326 | 2018-03-13T06:44:26 | 2018-03-13T06:44:26 | 124,867,386 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class HpdfConfig(AppConfig):
name = 'hpdf'
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f596eed0b0715802f2480c6a85cbd4252f70dbbe | 04740a66d98730afca496eb0cf5e7b5edea5f6e6 | /backend/dataset/myPow/pow_18.py | 0e4b65e70bec4e7968a4f7a6d22ee3baf0edee61 | [] | no_license | mehulthakral/logic_detector | 0c06fbd12d77a02c888d0bbe3e6776a18f2f46e3 | f7a07a6d229b250da9e02d3fac1a12fa51be97e8 | refs/heads/master | 2023-04-12T12:45:29.370502 | 2021-05-05T17:15:02 | 2021-05-05T17:15:02 | 323,953,099 | 2 | 0 | null | 2021-05-03T16:50:44 | 2020-12-23T16:39:28 | null | UTF-8 | Python | false | false | 382 | py | class Solution:
def myPow(self, x: float, n: int) -> float:
myres = 1
if n == 0: return 1
elif n < 0:
x = 1/x
n = -n
curProd = x
k = n
while (k > 0):
if k%2 == 1: myres *= curProd
... | [
"mehul.thakral@gmail.com"
] | mehul.thakral@gmail.com |
5633757517fa5eb7fdbe56c815c64c240a79ae98 | f4dd8aa4e5476ffde24e27273dd47913c7f9177a | /Dlv2_safe2/tests/parser/aggregates.count.propagation.1.test.py | 0eb003383aa203b95d9c5e03476d4a548f170701 | [
"Apache-2.0"
] | permissive | dave90/Dlv_safe2 | e56071ec1b07c45defda571cb721852e2391abfb | f127f413e3f35d599554e64aaa918bc1629985bc | refs/heads/master | 2020-05-30T10:44:13.473537 | 2015-07-12T12:35:22 | 2015-07-12T12:35:22 | 38,256,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | input = """
a(1) | a(2).
% Count up the IDB predicates during the propagation.
b(X) :- a(X).
% If the count value is correct, the 'ok' predicate should be true.
ok :- #count{V : b(V)} = 1.
"""
output = """
a(1) | a(2).
% Count up the IDB predicates during the propagation.
b(X) :- a(X).
% If the count valu... | [
"davide@davide-All-Series"
] | davide@davide-All-Series |
5ceaba0d7b5c08d2aef4b7c32bac0ebeabe88737 | 6febd920ced70cbb19695801a163c437e7be44d4 | /searching/pairSumToS.py | dab3ae83c6f1f83536e9d25026b47fdf133b8f92 | [] | no_license | AngryBird3/gotta_code | b0ab47e846b424107dbd3b03e0c0f3afbd239c60 | b9975fef5fa4843bf95d067bea6d064723484289 | refs/heads/master | 2021-01-20T16:47:35.098125 | 2018-03-24T21:31:01 | 2018-03-24T21:31:01 | 53,180,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | '''
Created on Dec 16, 2012
@author: dharadarji
Search for a pair which sums to S from an array
O(n)
'''
def pairSum(arr, K):
h = {}
for i in range(len(arr)):
complement = K - arr[i]
'store num and its index'
h[arr[i]] = i
if complement in h:
'which 2 indexes sum ... | [
"dhaaraa.darji@gmail.com"
] | dhaaraa.darji@gmail.com |
4d4ef93132ec25984c28d408f5c7cab30da14944 | 13b237307614428ceb5ab002106683bf9845625e | /tests/unit/test_util.py | 266f24ece78351b4eec84cd486d261c6b7e376a9 | [] | no_license | jawilson/pmxbot | 8538b2a64f9b2ace083411125bd930b9a3d12c1a | 5afeff6f86c8999c9004f5eb4677fb828eb62c35 | refs/heads/master | 2021-01-01T17:58:13.910973 | 2013-07-04T17:35:43 | 2013-07-04T17:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | import pytest
from pmxbot import util
@pytest.has_wordnik
def test_lookup():
assert util.lookup('dachshund') is not None
| [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
4c0f08607273f5e8d2ec3848fe5a7b52e42b398b | eb61d62ca1f6f0123e3771105f5dfbbd6115138d | /.history/calculadora_20210905234924.py | 124088a7dd162939a55a8033e9e4e6c90f81c6c3 | [] | no_license | Alopezm5/CORRECTO-2 | e0f14bcc3a88c0e222d10e3261e68532008bc42e | 223613f1fb04dce3fac9f82f243cb2f22fe100f3 | refs/heads/main | 2023-07-29T06:52:48.147424 | 2021-09-12T20:33:27 | 2021-09-12T20:33:27 | 388,995,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | class Calculadora:
def __init__(self,) | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
4efe6681fac8f35a08f472147fc7947169bb6dc4 | 4e353bf7035eec30e5ad861e119b03c5cafc762d | /QtXml/QXmlContentHandler.py | d46663e9469f27f93a64a44821c3c970b6bae95e | [] | no_license | daym/PyQt4-Stubs | fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5 | 57d880c0d453641e31e1e846be4087865fe793a9 | refs/heads/master | 2022-02-11T16:47:31.128023 | 2017-10-06T15:32:21 | 2017-10-06T15:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,872 | py | # encoding: utf-8
# module PyQt4.QtXml
# from C:\Python27\lib\site-packages\PyQt4\QtXml.pyd
# by generator 1.145
# no doc
# no imports
class QXmlContentHandler(): # skipped bases: <type 'sip.simplewrapper'>
"""
QXmlContentHandler()
QXmlContentHandler(QXmlContentHandler)
"""
def characte... | [
"thekewlstore@gmail.com"
] | thekewlstore@gmail.com |
971fd76fae5e067b08133a517d4a165e3b6acd24 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/jedi/third_party/typeshed/third_party/2/concurrent/futures/thread.pyi | fa5720024cfb84409b0ed423290406ec87e2879c | [
"MIT",
"Apache-2.0"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 574 | pyi | from typing import Any, Callable, Generic, Iterable, Mapping, Optional, Tuple, TypeVar
from ._base import Executor, Future
_S = TypeVar("_S")
class ThreadPoolExecutor(Executor):
def __init__(self, max_workers: Optional[int] = ..., thread_name_prefix: str = ...) -> None: ...
class _WorkItem(Generic[_S]):
fut... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
a0a78515b0543462d123997dd21c5567cbf1562a | 6a14d1f0fcb07e0a1bbd07372b57d3c4b349d961 | /setup.py | e454166026c5eecb4b25e32e7204a067aa1e19f6 | [] | no_license | jlqzzz/Cascasde-3D | 847603d46a4056bec54877d385d9aca92f5727e2 | 81ace3d7c43fe17a6ecaee7917f746c57f9a6be3 | refs/heads/main | 2023-07-02T05:52:30.353437 | 2021-08-10T13:36:41 | 2021-08-10T13:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,692 | py | import os
import subprocess
from setuptools import find_packages, setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
def get_git_commit_number():
if not os.path.exists('.git'):
return '0000000'
cmd_out = subprocess.run(['git', 'rev-parse', 'HEAD'], stdout=subprocess... | [
"cqcaiqi@gmail.com"
] | cqcaiqi@gmail.com |
fb71486614bd73e9fc0ac93d776053774537ef60 | c1c600184f332e6e4b8eeffeb69c135e64f48caf | /code/summary_results.py | 39727576dd85561a2bcc1fefa8e030b1f0b626d2 | [] | no_license | DamienIrving/resbaz-posters | 2dbec1a0376ae446ca0e0587a7d65936c0b944d1 | a5fed371dbd48cf3a8233c2ff84bb2a354bbff7b | refs/heads/master | 2021-01-21T11:27:16.122252 | 2018-05-04T01:56:53 | 2018-05-04T01:56:53 | 91,741,649 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,940 | py | import argparse
import pandas
import pdb
def filter_data(df, groups):
"""Filter by research group.
Args:
groups (list)
"""
if groups:
df = df[df['research_group'].isin(groups)]
return df
def get_demographics(selected_groups):
"""Get the demograph... | [
"irving.damien@gmail.com"
] | irving.damien@gmail.com |
81e9b56f528b1dacbe0a7726c6a747973ed684d3 | 0a5b036dd4c2ab1cfb6089eca2f0195c250c7472 | /week5/count0.py | 21e86f61e31a708dd525e456f5b21415f1cb363f | [] | no_license | RussianJulliet/python_coursera | 57092655ee3d8a2c653fbc1d4d182b655988223d | 98fdc3b2e92a587dbe710058836ab26c09c7b126 | refs/heads/master | 2020-08-19T05:06:46.477061 | 2019-12-15T14:48:29 | 2019-12-15T14:48:29 | 215,881,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | N = int(input())
count = 0
for i in range(1, N + 1):
x = int(input())
if x == 0:
count += 1
print(count)
| [
"noreply@github.com"
] | RussianJulliet.noreply@github.com |
11c9b83589a909bf942363dd251cb4dac3226fea | 2c5b1a444b67ed97586e091fa124629f725773d5 | /code/http.client example, IMAGE Crawling.py | c02b517859713fcce89deb2ebf0df1982ff90de6 | [] | no_license | MyaGya/Django_Practice | 30a79f50860ac6c8590f3a7e38da6e5fc147555d | 00dbae17838d4820599ff330ad6fbf6bf9be6515 | refs/heads/master | 2022-12-20T10:53:07.266554 | 2020-10-11T16:16:04 | 2020-10-11T16:16:04 | 298,262,626 | 0 | 0 | null | 2020-10-11T16:14:11 | 2020-09-24T11:49:21 | Python | UTF-8 | Python | false | false | 1,582 | py | import os
from http.client import HTTPConnection
from urllib.parse import urljoin, urlunparse
from urllib.request import urlretrieve
from html.parser import HTMLParser
import re
os.chdir("C:/Users/kirin/Desktop/tmp")
class ImageParser(HTMLParser):
def handle_starttag(self, tag, attrs):
if tag != 'img':
... | [
"38939015+MyaGya@users.noreply.github.com"
] | 38939015+MyaGya@users.noreply.github.com |
53fab80aa32cdd6f01d30f2d7ee71052aa928562 | 95767c1e942bfd2317ee054456114ebbe79504ba | /v16.py | 3c7d57093ca81ffeaaafed1de036dce40c279412 | [] | no_license | daiyeyue/spider | 18bfe067fb2c165ce6680afcaa81a7f3294745e0 | a644de5280591b6148da0333a2764db6d8234441 | refs/heads/master | 2020-08-17T16:51:17.795115 | 2019-12-11T09:53:44 | 2019-12-11T09:53:44 | 215,689,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py |
from urllib import request, parse
from http import cookiejar
# 创建cookiejar的实例
cookie = cookiejar.MozillaCookieJar()
cookie.load('cookie.txt', ignore_discard=True, ignore_expires=True)
# 生成 cookie的管理器
cookie_handler = request.HTTPCookieProcessor(cookie)
# 创建http请求管理器
http_handler = request.HTTPHandler()
# 生成https管理... | [
"150064328@qq.com"
] | 150064328@qq.com |
b6cb1f80d9fa94463f5f59ede3ee3383787bf5a3 | 3ace18551fdcd8d27d5e1542e24889c54b1de3a6 | /tests/test_extpickle.py | 75ad4fde1e04f8df8897ab20a1fac12fc0362717 | [
"BSD-2-Clause"
] | permissive | albertz/extpickle | 9d7436d140af1373c88c755c7a53b38d525a6a58 | 4727fa8957e66472f77ae411198c56bceee5091e | refs/heads/master | 2021-01-19T04:52:22.706548 | 2016-06-17T17:07:36 | 2016-06-17T17:07:36 | 60,965,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py |
from nose.tools import assert_equal, assert_is, assert_is_not
import extpickle
if extpickle.PY3:
from io import BytesIO as StringIO
else:
# noinspection PyUnresolvedReferences
from StringIO import StringIO
import better_exchook
better_exchook.replace_traceback_format_tb()
def pickle(o):
f = StringIO... | [
"albert.zeyer@rwth-aachen.de"
] | albert.zeyer@rwth-aachen.de |
07d917b302496ab210b685675c954fd770631c90 | 3485ceeca2dcb96e5fc10d353a8ca18a9b0d54af | /openrec/legacy/modules/__init__.py | 6e656771b8412c9d2b5f407edfc325f3f708015e | [
"Apache-2.0"
] | permissive | Yuan-T-Xuan/openrec | 2d82cfa7ee4448744e70aa607d981ddb312f74ee | 925cff19225874144f839aae30c304df32cc4b1d | refs/heads/master | 2020-03-11T17:46:07.472963 | 2018-10-16T01:53:31 | 2018-10-16T01:53:31 | 116,905,600 | 1 | 0 | Apache-2.0 | 2018-03-06T00:44:03 | 2018-01-10T03:54:54 | Python | UTF-8 | Python | false | false | 49 | py | from openrec.legacy.modules.module import Module
| [
"ylongqi@gmail.com"
] | ylongqi@gmail.com |
e40d7819b6893cfabb7dcd0593cd79d5e290254c | c80aae4a3d0f3536640995ed1f8b791b52a0a631 | /app/v1/component/transaction/schema/card_schema.py | 745411a3bd2f9ca47b91fc518bc4ee9f069504b0 | [] | no_license | vking34/two-football | 1ad0388a2c946d6910d27a76a0848349ac958db8 | c24919dd7cd1b1fd797f8e540d94488a35c1d354 | refs/heads/master | 2022-12-13T23:42:49.304373 | 2019-05-29T05:25:57 | 2019-05-29T05:25:57 | 179,089,662 | 0 | 0 | null | 2022-12-08T05:03:23 | 2019-04-02T13:57:49 | Python | UTF-8 | Python | false | false | 241 | py | from marshmallow import Schema, fields, validate
class CardSchema(Schema):
code = fields.String(validate=validate.Regexp('^[a-zA-Z0-9]{16}$'), required=True)
password = fields.String(validate=validate.Length(min=6), required=True)
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
73d56d4576ddc6adcecb287d5b66cd18903dc4fc | 00f3468d8917ac0c1b4df8b4dc50e82c0d9be3fa | /bpg/tools/pg_sync.py | a316c6947a4cebabf2635618326cb07270a22dd7 | [] | no_license | berkeleyphylogenomics/BPG_utilities | 4e332bb401b8c057502a1a0a1d532396bfff9542 | bbf5df137a0a459598c3f9073d80f0086e5f7550 | refs/heads/master | 2021-01-01T19:21:13.740575 | 2014-11-05T18:40:31 | 2014-11-05T18:40:31 | 24,867,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,177 | py | """SyncDB comparison
Django's syncdb doesn't really 'syncronize' the database. We manually
change our postgres instance all of the time. This scripts helps us find
how different our database is from the database that Django creates.
One needs to create a new Django database by altering the DATABASE_NAME
in the Django... | [
"afrasiabi@berkeley.edu"
] | afrasiabi@berkeley.edu |
dbc663573d3c7cf277601af8217997e4ac167abb | 993bdf8973c0f4a6261c1ee101ac0bdb915e1980 | /CompareArrays.py | 078109f2894f068440914f0dd592019764a7f103 | [] | no_license | kevinpav/Python | 95ce3f70bd057454894deb906e456a967a79781c | ddc98820d2616b95eb9a66372f2b3a438289e176 | refs/heads/master | 2020-12-25T18:32:16.486795 | 2017-06-15T21:28:35 | 2017-06-15T21:28:35 | 93,956,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # Assignment: Compare Arrays
# Write a program that compares two lists and prints a message depending
# on if the inputs are identical or not.
#
# Your program should be able to accept and compare two lists: list_one
# and list_two. If both lists are identical print "The lists are the same".
# If they are not identical... | [
"pavdog@gmail.com"
] | pavdog@gmail.com |
17887290cabbb51598e2715d230bc00831e1a4d1 | d359fe1fb1e3824b9411d86d33e91eeb6325aa93 | /h/agent_bee_v2.2.4.10.py | eb09fc510f404deb97e2f63023c603e775afa3bf | [] | no_license | flynnwang/kaggle_halite4 | 9c14e82899ee3ae469ac1ed47e095ab6635b5b21 | 453ca80a6fec5a346629e21e9449af571f52e5ef | refs/heads/master | 2023-03-18T19:43:59.920892 | 2020-09-16T02:41:25 | 2020-09-16T02:41:25 | 275,327,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,100 | py | #!/usr/bin/env python
"""
v2.2.4.9 => v2.2.4.10
* Use lower penality only in initial phrase (S<=40).
Total Matches: 945 | Matches Queued: 55
Name | ID | Score=(μ - 3σ) | Mu: μ, Sigma: σ | Matches
bee v2.2.4.10 | Or1iJgmJvRqJ | 26.4665039 | μ=28.525, σ=... | [
"flynnwang@didiglobal.com"
] | flynnwang@didiglobal.com |
c3ec93f56238eba010df74283766a1150e77c51f | 82033c3582f67b98375fc284ffa1e5441d6b28e5 | /authentication/urls.py | ff7067ec43659f2a0650be2f5afde2a754ad16c4 | [] | no_license | mnogoruk/smola20 | 6f609e1281d8383081d0bd498da686996418060d | a831497e5a9d5fe1d10286b185b071f4aa62bfd8 | refs/heads/master | 2023-04-11T06:56:35.181507 | 2021-04-07T23:21:34 | 2021-04-07T23:21:34 | 355,673,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | from django.urls import path
from rest_framework_simplejwt.views import (
TokenRefreshView,
)
from .views import UserCreateView, UserListView, UserEditView, UserChangePasswordView, UserDeleteView, \
CheckView, AccountDetailView, TokenObtainPairWithRoleView
urlpatterns = [
path('token/', TokenObtainPairWith... | [
"lionless072@gmail.com"
] | lionless072@gmail.com |
0eed8d41d2a1cce38408a2fa634b530d61b5519a | bea2c1ad58a1d45705ba8f9e4527e4ffac4969cb | /tests/test_eigenvalue_solvers.py | dcd1bae2e2d184c4f72ea0988891975f39334b96 | [
"BSD-3-Clause"
] | permissive | fethio/sfepy | 8423e9083e3144e1fd97d24c31eda1646167ff5b | 78efe51d6038dc92f5bfeac4c57614746fe28117 | refs/heads/master | 2021-01-16T20:59:29.459626 | 2016-07-01T15:06:11 | 2016-07-01T15:06:11 | 61,715,917 | 1 | 1 | null | 2016-07-01T15:06:11 | 2016-06-22T12:06:07 | Python | UTF-8 | Python | false | false | 3,274 | py | import time
import numpy as nm
from sfepy.discrete.fem.meshio import UserMeshIO
from sfepy.mesh.mesh_generators import gen_block_mesh
from sfepy.solvers import Solver
# Mesh dimensions.
dims = nm.array([1, 1])
# Mesh resolution.
shape = [21, 21]
def mesh_hook(mesh, mode):
"""
Generate the block mesh.
"... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
10b93f7cd9c9775719ab290688c61403e162039a | 4ea758f8fe6455941d76ac78a8e4732b8809b252 | /Decisions/migrations/0002_auto_20170125_0100.py | 5e7ab5a969bff1aba02803dd14ae86fceee312f2 | [] | no_license | pscrv/DecisionBibliography | 4599032b7ad99415b44ec921c0951cd0ebdfd0fd | b6b0e2799ed1c7b7eb9f111bf4c68e153d015947 | refs/heads/master | 2020-04-10T17:28:35.468125 | 2017-02-28T23:28:51 | 2017-02-28T23:28:51 | 68,334,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-01-25 00:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Decisions', '0001_initial'),
]
operations = [
... | [
"scrv.pscrv@googlemail.com"
] | scrv.pscrv@googlemail.com |
d125d424a8f383afe162657060a1a8fd0b682242 | 82c73b70c2002f647bdc254125f0bdb18f0b79d2 | /nova/policies/snapshot.py | 0eddfd7ccad18ff4195576b3afc63f5f63288a20 | [
"Apache-2.0"
] | permissive | xuweiliang/Codelibrary | cfb5755ced54c65cacdb3e35ab2b98385f8d5f8e | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | refs/heads/master | 2021-05-04T00:31:42.025238 | 2018-03-20T07:05:20 | 2018-03-20T07:05:20 | 71,852,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # Copyright 2016 Cloudbase Solutions Srl
# 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 r... | [
"root@newton.com"
] | root@newton.com |
e368949da98fb4f8d8acc62aea23eebae796c74b | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/oop_submissions/many_to_many_factories.py | 2e64d5c5529b8965eed9d00d8b70407e0fd728cf | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,899 | py | {"filter":false,"title":"many_to_many_factories.py","tooltip":"/oop_submissions/many_to_many_factories.py","undoManager":{"mark":16,"position":16,"stack":[[{"start":{"row":0,"column":0},"end":{"row":25,"column":89},"action":"insert","lines":["class UserFactory(factory.django.DjangoModelFactory):"," class Meta:"," ... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
19172069775fd1dcbc8e1b6b53882a5e716cf316 | 6f2ae9f16b405f1fdbbb8ca63f7b336151ffb978 | /paper_metachange/stat_utils.py | 07cfb6f56b9268a0067e91d1857f72eac3193f68 | [] | no_license | yarden/paper_metachange | d71cb415250d8d566dc60869ed2cd67c3d30e5df | 3588e7c096466adc6f36fdcfc27bc66dae546b07 | refs/heads/master | 2020-12-11T07:33:15.427984 | 2016-12-16T14:07:40 | 2016-12-16T14:07:40 | 63,733,070 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import scipy
import scipy.interpolate
import numpy
def get_spline_fit(x, y, k=4, s=1):
"""
Get spline fit.
"""
spl = scipy.interpolate.UnivariateSpline(x, y, k=k, s=s)
return spl(x)
def get_spline_derivs_fit(x, y, k=4, s=1):
"""
Get spline derivatives fit.
"""
spl = scipy.interpol... | [
"yarden.katz@gmail.com"
] | yarden.katz@gmail.com |
b1b6e060183f769a4eeadcba6ac1df9c52285659 | a0cde41c20d4ffdcc1ace0e217e3338f1cd93cde | /src/batchDefinition/slanTour/batchDefSTContextDHondtINF.py | a493774199de66ce27bebe6c354a9a5d15bfb16e | [] | no_license | sbalcar/HeterRecomPortfolio | ea15a3277774d1b37d69b527406e5a8558cc3cbf | a8714902a1f45b5e9bfe0f9af40cce87e36c7471 | refs/heads/master | 2022-05-30T00:59:36.693858 | 2022-04-09T16:12:34 | 2022-04-09T16:12:34 | 219,495,240 | 1 | 3 | null | 2021-01-17T12:44:59 | 2019-11-04T12:21:41 | Jupyter Notebook | UTF-8 | Python | false | false | 4,385 | py | #!/usr/bin/python3
import os
from typing import List #class
from typing import Dict #class
from pandas.core.frame import DataFrame #class
from portfolioDescription.portfolio1AggrDescription import Portfolio1AggrDescription #class
from evaluationTool.aEvalTool import AEvalTool #class
from evaluationTool.evalToolDHo... | [
"bc.stepan.balcar@gmail.com"
] | bc.stepan.balcar@gmail.com |
222e3053fe5abead7edca21a46dd7cd614fe902c | 355cc90c530fe1710240821f253d29d208343170 | /natalies_second_chance_project/dogs/migrations/0001_initial.py | 1cee0842aad1dc309123553c71b4e1602067bfe3 | [] | no_license | Abepena/natalies-second-chance | 82a51ec322ff3b3760cac6401b29fa93f059733c | bec56c793944c79a8ce8802083275b6ef30a198f | refs/heads/master | 2022-12-09T07:58:59.936961 | 2018-11-19T18:09:03 | 2018-11-19T18:09:03 | 145,348,372 | 0 | 0 | null | 2022-12-08T02:50:32 | 2018-08-20T00:43:25 | CSS | UTF-8 | Python | false | false | 1,230 | py | # Generated by Django 2.1 on 2018-08-29 16:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Dog',
fields=[
('id', models.AutoField(auto_c... | [
"pena.abe@gmail.com"
] | pena.abe@gmail.com |
8b174ad9e3264042e436626d711d656db684921c | f516b7561b93f640bcb376766a7ecc3440dcbb99 | /contests/codeforces/div2-537/b.py | 150bf9de33e9ea0a855ca9edd7c35b30add70951 | [
"Apache-2.0"
] | permissive | vtemian/interviews-prep | c41e1399cdaac9653c76d09598612f7450e6d302 | ddef96b5ecc699a590376a892a804c143fe18034 | refs/heads/master | 2020-04-30T15:44:42.116286 | 2019-09-10T19:41:41 | 2019-09-10T19:41:41 | 176,928,167 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | from decimal import Decimal as D
from statistics import mean
n, k, m = map(int, input().split())
heroes = sorted(map(D, input().split()))[::-1]
max_avg = 0
count = 0
buffed_heroes = []
while m:
hero = new_hero = heroes[count]
buff_me = False
trim_me = False
if m - k >= 0:
new_hero = hero + ... | [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
a4290ed11eea35f9676eb8098994c2998d031f91 | f9b4dc06315d437d996de611aac246a1d737c78a | /docs/source/conf.py | ef46c7ef1c1d4423bd6e78df9fd6ddcc389fedc7 | [
"BSD-3-Clause"
] | permissive | gitter-badger/pyflux | f9355c5427e91b82e224cf3f36f239b36ad0f1b0 | 49e9aea6f2d0383152f9cdbc713d272b2197b3e5 | refs/heads/master | 2020-12-03T10:27:43.129487 | 2016-04-25T17:08:14 | 2016-04-25T17:08:14 | 57,894,379 | 0 | 0 | null | 2016-05-02T14:03:31 | 2016-05-02T14:03:31 | null | UTF-8 | Python | false | false | 9,229 | py | # -*- coding: utf-8 -*-
#
# PyFlux documentation build configuration file, created by
# sphinx-quickstart on Wed Mar 23 19:29:17 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"rj-taylor@live.co.uk"
] | rj-taylor@live.co.uk |
76ee727aabbd67b9c1f7f68202e7036e250b262e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02845/s301140124.py | 85f5381c2fbde93ba37f85759e1514039c226b21 | [] | 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 | 1,072 | py | #!/usr/bin/env pytho3
n = int(input())
a = list(map(int,input().split()))
# 3種類の値をもち、自分より前に同じ色の人がa[i]となる組み合わせ
# コーナーケースとして、全部同じ色なら3通り、あとは*6したらいい
# n<=10**5
# 先頭を色1、次にa[i] == 0になった点を色2,3にしてしていい。前から埋める
# 前から見ていって、それぞれの色の今の人数をcolorとして
# color.count(a[i]) == 2 ならans *= 2, ==3 ans *= 3
# 2ケースのみRE
mod = 10**9 + 7
if a == lis... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
69402d524c67c02e637632bc93c5db4219714e84 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /L4HM6uMHDCnepz5HK_20.py | 7e2c50c6dee9e60b9867ccc6aec07c797f0f13a8 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | """
Create a function that takes date in the format **yyyy/mm/dd** as an input and
returns `"Bonfire toffee"` if the date is October 31, else return `"toffee"`.
### Examples
halloween("2013/10/31") ➞ "Bonfire toffee"
halloween("2012/07/31") ➞ "toffee"
halloween("2011/10/12") ➞ "toffee"
### N... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e058c3d74fc829fbc2df310a39abc35926f285c0 | 94c0a2173d58c8657b85a7f3a80a5d08064adc66 | /removestopword.py | c589d93b6f070ac264580bc6f32edd5c1a86fe41 | [] | no_license | CodedQuen/Machine-learning-with-cookbook_Chris-Abon | 791558edd7b22f3dd677605d0bee30f88df77cc5 | 3d69de9357dda4a9ff2c71fe0232841e018c502e | refs/heads/master | 2022-06-06T06:05:28.399904 | 2020-04-25T03:45:51 | 2020-04-25T03:45:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # Load library
from nltk.corpus import stopwords
# You will have to download the set of stop words the first time
# import nltk
# nltk.download('stopwords')
# Create word tokens
tokenized_words = ['i',
'am',
'going',
'to',
'go',... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
bc01a98e760cab56290c0875389214290512a88c | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/android_sdk/public/platform-tools/systrace/catapult/devil/devil/utils/find_usb_devices.py | 8822add27f11dbc2b86c59a93ec39f778669189f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 123 | py | ../../../../../../../../../../.cipd/pkgs/82/_current/platform-tools/systrace/catapult/devil/devil/utils/find_usb_devices.py | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
0bf2f7334cdd81debbf2d59b3bb0ce7113fee560 | 41ad3529ff9b6357d57468641b21d4ac02a6c0b5 | /dftest.py | bd0322992d5463c7292d87117a1ab7f0c964eecb | [] | no_license | gitpNser/learndata | 9153a3c305cf07904d5006059489c72c2388cee0 | a5059ae3346a17b833132e9295a0e73482b4a386 | refs/heads/master | 2020-06-13T11:25:56.676610 | 2019-11-28T14:47:43 | 2019-11-28T14:47:43 | 194,638,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 13 13:50:02 2019
@author: pNser
"""
import pandas as pd
music_data = [("the rollinng stones","Satisfication"),("Beatles","Let It Be"),("Guns N Roses","Don't cry"),("Metallica","Nothing Else Matters")]
columns = ['Singer','Song_name']
music_df = pd.DataFrame(music_data,... | [
"gitknt@outlook.com"
] | gitknt@outlook.com |
d12ceb5a5df98bddecb4fe93575bbf32b03d1c55 | 663c108dca9c4a30b7dfdc825a8f147ba873da52 | /venv/oops/137OperatorOverloadingBookNesting.py | aab799a55eaf0a2f8d0b29af5e847cc771e86f71 | [] | no_license | ksrntheja/08-Python-Core | 54c5a1e6e42548c10914f747ef64e61335e5f428 | b5fe25eead8a0fcbab0757b118d15eba09b891ba | refs/heads/master | 2022-10-02T04:11:07.845269 | 2020-06-02T15:23:18 | 2020-06-02T15:23:18 | 261,644,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | class Book:
def __init__(self, pages):
self.pages = pages
def __add__(self, other):
print('self.pages :', self.pages)
print('other.pages :', other.pages)
return Book(self.pages + other.pages)
book01 = Book(100)
book02 = Book(200)
book03 = Book(500)
print('The total number of ... | [
"srntkolla@gmail.com"
] | srntkolla@gmail.com |
311ce84d7eb9cdc22fe9fa3acaf9fe570e0f953c | 9c73dd3043f7db7c9ec76d560484e99ad134fdb6 | /students/douglas_klos/lesson06/assignment/trials/data/generate_data.py | c339840e5616940e6edab186469ae36a6cd8d14c | [] | no_license | UWPCE-PythonCert-ClassRepos/py220-online-201904-V2 | 546b316025b680ca28d24b523663095398616b13 | ac12beeae8aa57135bbcd03ac7a4f977fa3bdb56 | refs/heads/master | 2022-12-10T03:14:25.514630 | 2019-06-11T02:14:17 | 2019-06-11T02:14:17 | 179,139,181 | 1 | 19 | null | 2022-12-08T01:43:38 | 2019-04-02T18:49:10 | Python | UTF-8 | Python | false | false | 1,526 | py | #!/usr/bin/env python3
import time
import uuid
from random import randint, random
from essential_generators import (
DocumentGenerator,
StatisticTextGenerator,
MarkovTextGenerator,
MarkovWordGenerator
)
RECORDS = 1000000
def generate_rows():
""" Generate a row of random data
"""
range_st... | [
"dougklos@gmail.com"
] | dougklos@gmail.com |
7cad565491c05bd9f702ea0086106c0e8aa5f28e | 664eaaf3ce1329637966ee85752a4bf792f93d64 | /carthandler/migrations/0001_initial.py | 00d61848af11c88ab0160e5de25d6c64a243cf0d | [] | no_license | rajinder-mohan/thelunchbox | 6fb9f7228490e22da58f59a29601aebec9c8fd35 | 54e3a14229fd72d24152671fb8f0bc13ae83be8c | refs/heads/master | 2021-05-04T16:25:33.015292 | 2018-02-05T03:43:34 | 2018-02-05T03:43:34 | 120,251,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-17 03:55
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"rajinder_mohan@esferasoft.com"
] | rajinder_mohan@esferasoft.com |
28cc10276b0c47a5929c62e787b1dbb853db8e6c | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/rottenOranges_20200810202432.py | 07af0348e57cdc2884bd2eeafa9ec227d98c632a | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | def oranges(grid):
if len(grid) == 0:
return 0
rottenQueue = []
row = len(grid)
col = len(grid[i])
fresh = 0
for i in range(len(grid)):
for j in range(len(grid[i])):
if grid[i][j] == 2:
rottenQueue.append([i,j])
elif grid[i][j] ==1:
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
76a3eecaffbfd7cd6f64cf425ccbcfd0c62fd106 | c1b4425d2ccd32444a33169c0cc25863149fdceb | /POE Project Camera Tracking/FaceTracking.py | f8cc976d59f1d4cb384eb52f7a787419692bad56 | [] | no_license | Marius-Juston/POE-Robot-Project | aee063698fbd230b050c8c24553bdb4556afe46a | f755b460dbb9cb08a9db5432aeabc2230228073b | refs/heads/master | 2021-09-04T04:54:25.294336 | 2018-01-16T02:30:53 | 2018-01-16T02:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,273 | py | import glob
import os
from datetime import datetime
import cv2
import numpy as np
class Camera:
def __init__(self, cameraPort) -> None:
self.camera_port = cameraPort
self.camera = cv2.VideoCapture(cameraPort)
self.photo_folder = "./Camera{0:d} Photos/".format(self.camera_port)
sel... | [
"Marius.juston@hotmail.fr"
] | Marius.juston@hotmail.fr |
4c24bf9f9308072ae833e8bfa1eb7cb32df6aa34 | b51fcaacf7a43cfc4e378b27090c652ed5bd8ee2 | /chromepy/chromepy/chromedriver.py | 34344c430703eebfadd992b85e518e3465c4b291 | [] | no_license | tetocode/fxarb | 56526308eb91616eb60b13152ad03dab73de7ca4 | 00261dc6832047375499363af2db44efa2d36008 | refs/heads/master | 2022-10-18T16:45:51.971435 | 2020-06-03T16:19:39 | 2020-06-03T16:19:39 | 269,136,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,534 | py | import json
import logging
import os
import re
import shutil
import subprocess
from typing import Dict, Iterator, Sequence
from typing import List
import requests
from .connection import Connection
class ChromeDriver:
TIMEOUT = 5.0
def __init__(self, *,
logger: logging.Logger = None,
... | [
"_"
] | _ |
c1b44f28b00aff1992ab7bc4f5d4627350263bcd | a5b9fa2cdec92916229cf114a42bb921a0db94e8 | /Chapter1/scripts/old/wimp_functions.py | 9ff6685c47e4c7391d9250cfb29fe39f0b25cd51 | [] | no_license | mdanthony17/Thesis | 7adf36016056236cc63032a402cf567623a87b5a | b626bfd35157facd31e3d90aae5b0140f7985bc8 | refs/heads/master | 2018-09-08T17:03:10.030884 | 2018-06-05T00:29:00 | 2018-06-05T00:29:00 | 103,183,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,784 | py | """This code is no longer used directly.
This file contains code necessary to create WIMP energy spectra.
Use the wimp_recoil_spectrum function defined at the end, which gives the wimp spectrum (in rate /kg /day /keV)
for Xenon detectors using the standard Halo model.
Almost all of this is "borrowed" from:
* Andrew's... | [
"mda2149@columbia.edu"
] | mda2149@columbia.edu |
2f7cb5167d43dd44a79eb606ba4494c6b891a41c | 7bd4506d1ef5b2e9d7049a716bc8dc0f1a0aeef4 | /Com/condor/Wprime2500Right_1_el.py | ace14d7184879fccf3a2a9cfc52ff6720a6dd2dc | [] | no_license | drankincms/David_bak | 1c9034fe009ef2a18ea203f1c2a6eeb817f37060 | 4c8deab24a38e776c7149e4518626c0108261113 | refs/heads/master | 2021-01-01T19:38:37.366848 | 2015-06-23T10:35:31 | 2015-06-23T10:35:31 | 22,979,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,046 | py | import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import FWCore.ParameterSet.Types as CfgTypes
process = cms.Process("LJMetCom")
############################################################
#
# FWLite application options
process.load('LJMet.Com.ljmet_cfi')
process.ljmet.isMc ... | [
"drankin@bu.edu"
] | drankin@bu.edu |
d34c75591d7e37e1d95cab482aaabc64d858c96b | 571a89f94f3ebd9ec8e6b618cddb7d05811e0d62 | /abc189/b/main.py | c681b8843408f7fde9578fd97d8835be1d6fc989 | [] | no_license | ryu19-1/atcoder_python | 57de9e1db8ff13a107b5861f8f6a231e40366313 | cc24b3c2895aad71d40cefbb8e2893dc397b8f4f | refs/heads/master | 2023-05-10T05:32:16.507207 | 2021-05-19T17:48:10 | 2021-05-19T17:48:10 | 368,954,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | #!/usr/bin/env python3
import sys
from collections import deque, Counter
from heapq import heappop, heappush
from bisect import bisect_right
from itertools import accumulate
sys.setrecursionlimit(10**6)
INF = 10**12
m = 10**9 + 7
def main():
N, X = map(int, input().split())
now = 0
ans = -1
for i in ... | [
"ryu1007kami@gmail.com"
] | ryu1007kami@gmail.com |
9aafb782f80697590a912df6e3d306c874571607 | 67a95330832e8bb83d65b22c6a58badaf416c043 | /01_examples/hidden_menubar_2.py | cb85b99d2d53e19e75cd1d51a4ce3f87e9784b97 | [
"MIT"
] | permissive | jabbalaci/GUI-Dev-with-Python | af57fdccd59cd48cd2172988fdaa4074d4ac8c09 | a4ac137965156621f3cf418018ef28f2c20541d9 | refs/heads/master | 2020-09-07T04:41:18.920856 | 2019-11-09T15:56:20 | 2019-11-09T15:56:20 | 220,657,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | #!/usr/bin/env python3
import sys
from PyQt5.QtGui import QKeySequence
from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, QShortcut
class Shortcuts:
def __init__(self):
self.window_shortcuts = {}
self.menubar_actions = {}
def enable_all_window_shortcuts(self):
for short... | [
"jabba.laci@gmail.com"
] | jabba.laci@gmail.com |
068a48d7ea49d8df5703c539988d1a935322ab4a | 77ae7c76d36009daa01b2317439c1f975f7932b2 | /exercicios/ex066att.py | edcbb45fdd7202c905748628f0874de75facd82d | [] | no_license | MatheusOldAccount/Exerc-cios-de-Python-do-Curso-em-Video | 5f26b5a2867fa1a2e36b486a809dfbe8b107b8c2 | 5696c49d3caf5cae817217a2da0598d1cf794f5b | refs/heads/master | 2022-03-22T10:49:33.666660 | 2019-11-25T21:24:43 | 2019-11-25T21:24:43 | 224,052,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | tot = soma = 0
while True:
val = int(input('Digite um valor (999 para parar): '))
if val == 999:
break
'''else: não precisa do else
tot += 1
soma += val'''
tot += 1
soma += val
print(f'A soma dos {tot} valores foi {soma}!')
| [
"matheustavares1165@gmail.com"
] | matheustavares1165@gmail.com |
e11e85329cb5b3c32cd698e6a707939f0bf6d588 | 2ed20cee3ab04ee22b262afa6e392da6c52ff60c | /src/magicmethods/arithmetic_operators.py | 25ced198a0c75d1378a7db078816e3e81aceee46 | [] | no_license | icejoywoo/HelloPython | 66f2e33232a02bf0ac07f84f50af20a514c0af63 | aefc32c56625f5b18336357b6616f03b7c35fc20 | refs/heads/master | 2021-01-23T11:48:22.413684 | 2015-10-13T03:37:09 | 2015-10-13T03:37:09 | 15,417,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | #!/bin/env python
# ^_^ encoding: utf-8 ^_^
# @author: icejoywoo
# @date: 14-1-7
class AccessCounter(object):
""" A class that contains a value and implements an access counter.
The counter increments each time the value is changed.
"""
def __init__(self, val):
super(AccessCounter, self).... | [
"icejoywoo@gmail.com"
] | icejoywoo@gmail.com |
d50e7a14a020a08d6d3796af4e334b5fc508b167 | c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6 | /keras/keras08_split.py | ec907f5cf3913ac9c856e3150c5a1c1b35d5d9e0 | [] | no_license | sswwd95/Study | caf45bc3c8c4301260aaac6608042e53e60210b6 | 3c189090c76a68fb827cf8d6807ee1a5195d2b8b | refs/heads/master | 2023-06-02T21:44:00.518810 | 2021-06-26T03:01:26 | 2021-06-26T03:01:26 | 324,061,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
import numpy as np
from numpy import array
# 1. 데이터
# x = np.array(range(1,101)) -> 0~100
# x = np.array(range(100)) -> 0~99
x= np.array(range(1,101))
y= np.array(range(101, 201))
# w = 1, b = 100
# 리스트의 슬라이싱 -> 일반적으로 train : val... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
b938f5196a9c68a648b98ccc3bc4287374c5efff | 3ecd552a0a14a45c9f8038cb8afbc4d4cfb3a42f | /python/processingfw/pfwlog.py | 8590efe269e2b57fde51e3a80f63caf12b2ecdd9 | [
"NCSA"
] | permissive | DarkEnergySurvey/DESPipeline | e8aea773f8f8fb9ff09a6fa5d33405f5627260cc | 88d4a70843b3c8d015b2219854f61c0f31d4165c | refs/heads/master | 2022-06-27T04:30:40.424297 | 2019-10-04T15:12:23 | 2019-10-04T15:12:23 | 211,892,351 | 0 | 0 | NOASSERTION | 2022-06-21T22:56:49 | 2019-09-30T15:28:07 | Python | UTF-8 | Python | false | false | 1,508 | py | """
.. _processingfw-pfwlog:
**pfwlog**
----------
Functions that handle a processing framework execution event
"""
import os
import time
#######################################################################
def get_timestamp():
"""Create timestamp in a particular format"""
tstamp = time.s... | [
"friedel@illinois.edu"
] | friedel@illinois.edu |
97e4bdaeaefb5a232f680b0119ec281bb88a4769 | 169f34d329339f40b3712db12b8f5384d8954e17 | /src/scripts/radar.py | a1c980eddbb60769587df69a528dc596b04712cd | [
"BSD-3-Clause"
] | permissive | antoine-tran/pyksc | 4d2f26ca8b4e087331fe00e363b217f4cffc85a2 | f4004afd925c1a7ef1f3e791d556275070d373b3 | refs/heads/master | 2021-01-22T16:44:39.728603 | 2015-04-23T15:25:04 | 2015-04-23T15:25:04 | 36,066,113 | 1 | 0 | null | 2015-05-22T10:16:45 | 2015-05-22T10:16:44 | Python | UTF-8 | Python | false | false | 2,417 | py | # -*- coding: utf8
from __future__ import division, print_function
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.projections.polar import PolarAxes
from matplotlib.projections import register_projection
def radar_factory(num_vars, frame='circle'):
"""Create a radar chart with `num_vars... | [
"flaviovdf@gmail.com"
] | flaviovdf@gmail.com |
c465d2e201ae582a235c9a79a9281c1d4b0daa5d | 68e23b2d14e0c7db45c54e1f7c8d15f85771f68c | /cymbology/__init__.py | e1bfb1610a21c0c687f462c45d95033fe77c4ff4 | [
"BSD-2-Clause"
] | permissive | pmart123/cymbology | 99d5aa9122d5e59f9501a6824f57e63697fb708d | 95087be9525ab8d2fd47baa93f83aaa30e76bb54 | refs/heads/master | 2021-09-06T06:59:34.564868 | 2017-09-20T19:45:21 | 2017-09-20T19:45:21 | 41,342,257 | 3 | 1 | BSD-2-Clause | 2021-08-19T09:15:36 | 2015-08-25T04:05:49 | Python | UTF-8 | Python | false | false | 187 | py | from cymbology.identifiers import (Sedol, Cusip, cusip_from_isin, Isin)
from cymbology._version import version_info, __version__
__all__ = ('Cusip', 'cusip_from_isin', 'Sedol', 'Isin')
| [
"philip.martin2007@gmail.com"
] | philip.martin2007@gmail.com |
29e0d8b124270e59382b6d5139856e6fc7878ff6 | 9f440599da392a55d7d5b2b7ce571bc3f2dc881e | /rhea/models/spi/__init__.py | b0814a2324b6ad587fe7b53f72b14695032e5e96 | [
"MIT"
] | permissive | zignig/rhea | 713559f688f85e1304ab43c2b871553da3bf01ae | e0d04ff4fcbd57dfeb6f84fa8f87d6b03caee590 | refs/heads/master | 2020-04-06T06:53:33.541215 | 2016-03-15T12:45:23 | 2016-03-15T12:45:23 | 53,943,632 | 1 | 0 | null | 2016-03-15T12:42:06 | 2016-03-15T12:42:06 | null | UTF-8 | Python | false | false | 76 | py |
from __future__ import absolute_import
from ._spi_eeprom import SPIEEPROM
| [
"chris.felton@gmail.com"
] | chris.felton@gmail.com |
aa59a00c03e5c186acb98d1c8c32dc1002691eb9 | 9099ed0407521ac40b88f3b92872307f66c57bf9 | /codes/contest/leetcode/first-unique-character-in-a-string.py | 953ae680159bce0b34b9c3c56d11e3b924759af8 | [] | no_license | jiluhu/dirtysalt.github.io | 0cea3f52d2c4adf2bbf5c23b74f4cb1070025816 | c026f2969c784827fac702b34b07a9268b70b62a | refs/heads/master | 2020-08-31T09:32:05.273168 | 2019-10-29T01:53:45 | 2019-10-29T01:53:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | #!/usr/bin/env python
# coding:utf-8
# Copyright (C) dirlt
class Solution(object):
def firstUniqChar(self, s):
"""
:type s: str
:rtype: int
"""
mark = [-1] * 26
for i, c in enumerate(s):
idx = ord(c) - ord('a')
if mark[idx] == -2: # dup
... | [
"dirtysalt1987@gmail.com"
] | dirtysalt1987@gmail.com |
18a4cd23b392cfc6ce437e9b6a0c69d5e89d0058 | 788b086c31f112c0dc01d0b8dec9e7187e22aa21 | /test/run_websocket_server.py | 8b323fa3e04d0edf6f847423d02d122b2a05d270 | [
"Apache-2.0"
] | permissive | ZumrutMuftuoglu/PySyft | 35c7f349ce4fdc2506b8d690e1c49fa0d0d9875b | c47c96283e5b3545d2b6d3f6f4c724a9d3146e94 | refs/heads/master | 2021-01-06T09:06:20.470390 | 2020-03-31T16:55:55 | 2020-03-31T16:55:55 | 242,603,155 | 1 | 0 | Apache-2.0 | 2020-02-23T22:44:21 | 2020-02-23T22:44:20 | null | UTF-8 | Python | false | false | 4,581 | py | import logging
import syft as sy
from syft.workers import WebsocketServerWorker
import torch
import argparse
from torchvision import datasets
from torchvision import transforms
import numpy as np
from syft.frameworks.torch.federated import utils
KEEP_LABELS_DICT = {
"alice": [0, 1, 2, 3],
"bob": [4, 5, 6],
... | [
"liamtrask@gmail.com"
] | liamtrask@gmail.com |
fe6a1bc75a9bd28aaf5d7ccb0ecf7b1536076244 | 787400353cfe06920799fb407a699cdfc15eb6c3 | /code/Name Entity Recognition/getThemeUsingNER.py | 330f990537227ccd61f4ee89353f761efb71db5b | [] | no_license | JialinLiOSU/MapElementDetection | 6d2eaf992c12ba22b4142caca9a754406fd2be32 | 396e51d1b4c4e100e2c5e516a8507f789c432f6e | refs/heads/master | 2023-07-14T06:10:32.013815 | 2021-08-25T14:02:03 | 2021-08-25T14:02:03 | 197,423,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,841 | py | from __future__ import unicode_literals, print_function
import random
import numpy as np
import os
from spacy.util import minibatch, compounding
import spacy
from pathlib import Path
import plac
import en_core_web_sm
from spacy.gold import GoldParse
from spacy.scorer import Scorer
# new entity label
theme = "THEME"
r... | [
"32602256+JialinLiOSU@users.noreply.github.com"
] | 32602256+JialinLiOSU@users.noreply.github.com |
ab292413d79b880574c6ddfb9cb72a252d9be716 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/components/stronghold_battles_list_view.py | 72d59773478ccbb83afe45d850e2260fb87bbe54 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 3,788 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/components/stronghold_battles_list_view.py
import BigWorld
from adisp import process
from frameworks.wulf import WindowLayer
from helpers import dependency
from skeletons.gui.game_contro... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
04977a670a05d54ae55f3bd61b8c86d9b93df7c9 | dbf3b31e2e135dbf870c03275c39b8944506716c | /django01/users/views.py | 633efeaea2af9beace5450bf7d23244d4d48f2c8 | [] | no_license | shenguweiling/Djangoproject | 9e123598633662510ef48ce3913ba1332e7b2519 | a2bf7938c9d7c45a0b202200e91822f297fffe61 | refs/heads/master | 2020-03-23T12:02:55.685879 | 2018-07-19T06:45:10 | 2018-07-19T06:45:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,811 | py | import json
from django.http import JsonResponse
from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
from django.utils.decorators import method_decorator
from django.views import View
from users.decoreters import check_ip
def index(request):
"""
:param requ... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
25e056694447755ca1478b34fc19d4186b1f59a4 | 4bbd9fb9cbe4e5dd0e2672524c12932b9d6ed040 | /env/lib/python3.7/site-packages/mpesa_api/core/views.py | c9bb9428525fa9b083bdb171677554e26e29bb1f | [] | no_license | wisemiro/zedu | b85365ebf9c17d55c9a2bcb13f8138ee01ae470e | b280d40b593161f7910e289d6c94257c5b0a57d0 | refs/heads/master | 2022-03-20T07:37:49.344879 | 2019-12-03T09:11:53 | 2019-12-03T09:11:53 | 225,577,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | from django.views.decorators.csrf import csrf_exempt
from rest_framework.response import Response
from rest_framework.views import APIView
from mpesa_api.core.tasks import process_b2c_result_response_task, \
process_c2b_confirmation_task, process_c2b_validation_task, \
handle_online_checkout_callback_task
cl... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
fa9a3a5234e77736bc11c215967ecfc81fe2de4a | 49d904eda93c11c4563d6d9b257246d5907b562c | /food_platform/views/food_platform.py | dcc44ca8bff8139ec4c770cc0cfb25c5b5ce5d72 | [] | no_license | abrusebas1997/realreal | b182586e31051b5a1e8e8f8e7010c98f0b4033d1 | 3f3771e44cd0c6e7150bc986e2b38eff404bff11 | refs/heads/master | 2022-11-18T04:49:53.218561 | 2020-07-20T07:50:40 | 2020-07-20T07:50:40 | 278,265,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from django.shortcuts import redirect, render
from django.views.generic import TemplateView
class SignUpView(TemplateView):
template_name = 'registration/signup.html'
def home(request):
if request.user.is_authenticated:
if request.user.is_foodonator:
# change = update
# picku... | [
"sebastianabarca@Sebastians-MacBook-Pro.local"
] | sebastianabarca@Sebastians-MacBook-Pro.local |
2b23f345b61eec0b94c54cd56dbf2f577dc71d8c | 43565f8a5723b5fcaa052a01b021682e030687c6 | /coursebuilder/modules/usage_reporting/messaging.py | a44a8b9ad673bc2ff320dc8c876add522ce718ab | [
"CC-BY-3.0",
"Apache-2.0"
] | permissive | ehiller/course-builder | 272ac9ce625f9f23bfc8946f785145bed4ca5e65 | 96841818ecb3250e8449ceea86ccadf053ab6720 | refs/heads/master | 2020-05-17T19:23:06.533159 | 2015-08-23T23:41:44 | 2015-08-23T23:41:44 | 35,251,420 | 0 | 2 | null | 2015-08-23T23:41:44 | 2015-05-08T01:09:19 | Python | UTF-8 | Python | false | false | 10,829 | py | # 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 by applicable law or ... | [
"psimakov@google.com"
] | psimakov@google.com |
58b2ba805ca9b0db698024860e6a4d8f02cc0f2c | 199e169ea257aa22b26d7fa7a6415c9dc51abde7 | /skbio/diversity/tests/test_driver.py | d7a7ba5a5413cc9b50a33e5e1a3f3f4b7f99e313 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | liupfskygre/scikit-bio | 15613ef23b45c1b52f60b6a040911a12338cfd95 | 01a8132d0c6554b186ad969ae6ce273efc3b350c | refs/heads/master | 2020-12-11T03:50:49.587563 | 2015-11-25T22:10:26 | 2015-11-25T22:10:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,686 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | [
"gregcaporaso@gmail.com"
] | gregcaporaso@gmail.com |
63dfb9c25525a88893376f83178d62681090f831 | fcdce57c1bd0cc4f52679fd0f3f82532550083fa | /168/rankings.py | 20731ccb802dab4d60d08233fa67033ce3552429 | [] | no_license | nishanthegde/bitesofpy | a16a8b5fb99ab18dc1566e606170464a4df3ace0 | c28aa88e1366ab65f031695959d7cd0b3d08be6b | refs/heads/master | 2023-08-08T16:53:17.107905 | 2023-07-22T19:07:51 | 2023-07-22T19:07:51 | 183,959,400 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,766 | py | from dataclasses import dataclass
from typing import List, Tuple
bites: List[int] = [283, 282, 281, 263, 255, 230, 216, 204, 197, 196, 195]
names: List[str] = [
"snow",
"natalia",
"alex",
"maquina",
"maria",
"tim",
"kenneth",
"fred",
"james",
"sara",
"sam",
]... | [
"nhegde@netflix.com"
] | nhegde@netflix.com |
1b42b4ad97cc24da11fdb73efdb5dc409141ed73 | 70263abbb3c7efabf4039f5861e4d417926c13af | /nova/nova/tests/api/openstack/compute/contrib/test_aggregates.py | 775447ccf181c2ed71facd6b562bd569ecbcc82c | [
"Apache-2.0"
] | permissive | bopopescu/keystone_hierarchical_projects | 9b272be1e3069a8ad1875103a1b7231257c90d9c | bf5cbb2e1c58dae17e77c2ec32ed171ec3104725 | refs/heads/master | 2022-11-21T04:33:35.089778 | 2014-02-24T19:23:47 | 2014-02-24T19:23:47 | 282,174,859 | 0 | 0 | null | 2020-07-24T09:12:32 | 2020-07-24T09:12:31 | null | UTF-8 | Python | false | false | 18,751 | py | # Copyright (c) 2012 Citrix Systems, 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 ... | [
"tellesnobrega@gmail.com"
] | tellesnobrega@gmail.com |
a63be6d4e78e6135315d711aa0ece47693d8db00 | dcb0404e78604577e37ad744611c175da74fe3a0 | /lib/tests/streamlit/elements/audio_test.py | 70dbc482c936be69f73fb4f61a22899cbc4cb823 | [
"Apache-2.0"
] | permissive | Pandinosaurus/streamlit | 7844ebfead4559dfb3130d5fe667c3fb9d40fc1e | ddfcd3df09f57ea3ee7d1a6350c5d422464f3182 | refs/heads/develop | 2023-08-31T11:51:26.547224 | 2022-09-30T17:32:50 | 2022-09-30T17:32:50 | 230,114,501 | 0 | 0 | Apache-2.0 | 2022-10-20T23:58:13 | 2019-12-25T14:33:17 | Python | UTF-8 | Python | false | false | 3,952 | py | # Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"noreply@github.com"
] | Pandinosaurus.noreply@github.com |
f5cb5e072407d8fda294883140805ad4d9653026 | 51bfc14cbf1ac713f5c24e62aeb30a3d0a4ce86a | /ML-Base/logistics/__init__.py | 4aaf357c0dec9b24c1c4c3aba27fe020335d2aea | [] | no_license | icesx/IML | 2c6d2e6ff8a703a1ea7798bcb3e59e37a518ff0a | 1fd8251f1e010a7dd0720f695f4a7493b44a8510 | refs/heads/master | 2022-02-15T07:06:21.186556 | 2022-02-01T06:00:54 | 2022-02-01T06:00:54 | 176,037,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | # coding:utf-8
# Copyright (C)
# Author: I
# Contact: 12157724@qq.com
| [
"icesxrun@gmail.com"
] | icesxrun@gmail.com |
091eaf718e96ef2cf5b12bfff10c8cffcbbbbf7c | b26c41926fa3a7c2c061132d80e91a2750f2f468 | /tensorflow_probability/python/bijectors/shift_test.py | 9ea8c5ad4374b8f17c5f2097acb461f72d29dbe5 | [
"Apache-2.0"
] | permissive | tensorflow/probability | 22e679a4a883e408f8ef237cda56e3e3dfa42b17 | 42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5 | refs/heads/main | 2023-09-04T02:06:08.174935 | 2023-08-31T20:30:00 | 2023-08-31T20:31:33 | 108,053,674 | 4,055 | 1,269 | Apache-2.0 | 2023-09-13T21:49:49 | 2017-10-23T23:50:54 | Jupyter Notebook | UTF-8 | Python | false | false | 1,985 | py | # Copyright 2019 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5e3281497d12253c2bd1f4a3f9100c5f16f715e8 | b588a14e13972495a1d2575b8df9e902e7c51200 | /tests/test_index.py | 2fc5d12bb3f9ffef8cc2af67e1bcf7890f2612ed | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | faisalrahman36/TreeCorr | a12f1d333ff48a1fad6a3ba1b8aeb453e58322ac | 0cd4b62af01bac0c61ad28d222ac12a1a2f20a8b | refs/heads/master | 2022-11-22T07:21:00.184293 | 2020-07-23T18:19:03 | 2020-07-23T18:19:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,208 | py | # Copyright (c) 2003-2019 by Mike Jarvis
#
# TreeCorr is free software: 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 condi... | [
"michael@jarvis.net"
] | michael@jarvis.net |
784f33afcd1461370843f63c0f046b0378894c88 | 2df0b1b7160cd58f02190b86ae245f2f5a9d2232 | /dhdp/ds_link_cpp.py | 4919753fd4fa82b66e8493560277f64dfcbfdb28 | [
"Apache-2.0"
] | permissive | gareth1brown/hainesfork | 1e3085f65494bc80b0516862555b1e333d81b11d | bcddc22c2a97050d8e7a07021097388d447cf914 | refs/heads/master | 2021-01-21T00:16:24.943605 | 2013-10-06T22:39:12 | 2013-10-06T22:39:12 | 13,342,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,905 | py | # Copyright 2011 Tom SF Haines
# 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, softwar... | [
"gareth1.brown@googlemail.com"
] | gareth1.brown@googlemail.com |
adbd937747e1434dbe2957b5b0b2cbca07a7fba0 | f34469944b9e6299683f8cda1a3e984ab481fc11 | /tests/test_app/controllers/test_users.py | 446330946914ca90e8a7d2a3c61620f84ab72049 | [] | no_license | jay-s-Study-Group/SNS_BackEnd | b07871a967c142cf5ad5763cf1e1a75f92ed8ec9 | c057e122dd9e1b84b2a287902d6823686cc5ae96 | refs/heads/staging | 2023-06-24T12:13:23.410434 | 2021-06-09T06:16:46 | 2021-06-09T06:16:46 | 355,742,339 | 0 | 0 | null | 2021-06-09T06:16:47 | 2021-04-08T02:37:16 | Python | UTF-8 | Python | false | false | 916 | py | from app.controllers.users import UserController
from unittest import TestCase
from unittest.mock import patch
from fastapi import HTTPException
class TestUserController(TestCase):
@patch("app.models.users.User.update")
@patch("app.models.users.MentoringField.filter")
def test_update_user_successful(
... | [
"hanbin8269@gmail.com"
] | hanbin8269@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.