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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c652224d40330b5181acf6e6862ac9e8922dea0c | 250003a344e5cb974579d67daeeed7ea6b51f620 | /day2/unlucky.py | 8b586620e6c46c8b487aea321468add293ea13a4 | [] | no_license | lakshsharma07/training2019 | 540cace993859f06b4f402fc5a7849b26fb11ce8 | d8ae0b0e1e567525e806834379713003a676ec06 | refs/heads/master | 2020-05-24T07:11:25.613107 | 2019-06-25T03:27:58 | 2019-06-25T03:27:58 | 187,154,851 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 8 18:31:09 2019
@author: Lakshay
"""
"""
Code Challenge
Name:
Unlucky 13
Filename:
unlucky.py
Problem Statement:
Return the sum of the numbers in the array, returning 0 for an empty array.
Except the number 13 is very unlucky, so it does not cou... | [
"sharma1997lak@gmail.com"
] | sharma1997lak@gmail.com |
7bc98ea6792ebae7a302ad49d997a00cb5bbdebd | 5716d0f8e3b707661bc373403b26e244f119ba87 | /lab/sandbox.py | 317ed04cf16d28d4709c80eced3c3cef7745904d | [
"MIT"
] | permissive | Vikassharma232/hindkit | 158dcda357d0fdb397ca4fc4f15918748f2d0af0 | d5341dd1cd81acc7b1a69e569754e51ed149b2c2 | refs/heads/master | 2020-06-05T17:08:34.798815 | 2019-05-15T03:23:07 | 2019-05-15T03:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!/usr/bin/env AFDKOPython
# encoding: UTF-8
from __future__ import division, absolute_import, print_function, unicode_literals
import hindkit
U_SCALAR_TO_U_NAME = hindkit.constants.get_u_scalar_to_u_name()
for production_name, u_scalar in hindkit.constants.get_adobe_latin(4).items():
# print(
# "{0} {0}... | [
"lianghai@gmail.com"
] | lianghai@gmail.com |
ee6710d06950f6e6417d2b5aa0e4a6add10ef065 | a2d44f3c89acb7424cc2771f5c0a926e2d902c77 | /improved-diffusion/improved_diffusion/fp16_util.py | 23e0418153143200a718f56077b3360f30f4c663 | [
"Apache-2.0"
] | permissive | amazon-science/masked-diffusion-lm | 94845ff123eb586fca0247b0db7baf12dfee6a6d | 16b0294398d596198bc9f75375eaa6814f792dcb | refs/heads/main | 2023-08-03T02:23:14.301531 | 2023-05-04T19:54:58 | 2023-05-04T19:54:58 | 626,021,474 | 38 | 0 | Apache-2.0 | 2023-08-14T22:24:30 | 2023-04-10T16:19:44 | Python | UTF-8 | Python | false | false | 2,282 | py | """
Helpers to train with 16-bit precision.
"""
import torch.nn as nn
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
def convert_module_to_f16(l):
"""
Convert primitive modules to float16.
"""
if isinstance(l, (nn.Conv1d, nn.Conv2d, nn.Conv3d)):
l.weight.data = l.we... | [
"astonz@amazon.com"
] | astonz@amazon.com |
49786cd1dfc458644186b0f47a3f0fe488346694 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/automl/image/image_instance_segmentation_job.py | 23f539b206eefa3dd71f2a01c4c994d1fb29dcf8 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-python-cwi",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
... | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 10,038 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
# pylint: disable=protected-access,no-member
from typing import Dict, Optional, Union
from azure.ai.ml._restclient.v2022_10_01_preview.mo... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
63ddac18954feb78b395d89fc73365926cff1d95 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnwhipper.py | 22fe743aac456b13371e7e6b9c014f348853be98 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 45 | py | ii = [('CookGHP3.py', 1), ('WilbRLW2.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
39cef81a2900e12fc7ad6da5df2253d823f4e850 | 650aed41de2191565dce812a3c4d2b049928f5a4 | /tornado_overview/chapter05/server.py | 5df233e2eddd63d36a0d0d00f8bd5cc463523c66 | [
"Apache-2.0"
] | permissive | mtianyan/TornadoForum | a41dfc57f1a9ca60a0991dcaa4374cd4a8b6ba93 | 5698dd5cc0e399d3d0ec53e159b8e1f1cddfbe71 | refs/heads/master | 2022-04-23T09:48:25.933781 | 2020-04-20T17:06:23 | 2020-04-20T17:06:23 | 168,485,700 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | # 1. 什么是模板
from tornado.web import StaticFileHandler, RedirectHandler
from aiomysql import create_pool
# 1. RedirectHandler
# 1. 301是永久重定向, 302是临时重定向,获取用户个人信息, http://www.baidu.com https
# StaticFileHandler
import time
from tornado import web
import tornado
from tornado.web import template
from chapter05.forms import... | [
"1147727180@qq.com"
] | 1147727180@qq.com |
2f0ff70ad76f05f37f74d7aeae0e27c4e098b8b4 | f854ef28002a3931a8d8b8d0b9cc691b8a449db3 | /home-assistant/custom_components/browser_mod/sensor.py | 596b525e94f6a245dca6a04d62550b2728dfd802 | [
"MIT"
] | permissive | Burningstone91/smart-home-setup | 030cdaa13d05fb19a82b28ea455614d3276522ab | c2f34cc8b8243bc6ce620b3f03e3e44ff28150ca | refs/heads/master | 2023-02-23T06:25:04.476657 | 2022-02-26T16:05:02 | 2022-02-26T16:05:02 | 239,319,680 | 421 | 36 | MIT | 2023-02-08T01:16:54 | 2020-02-09T14:39:06 | JavaScript | UTF-8 | Python | false | false | 1,173 | py | from datetime import datetime
from homeassistant.const import STATE_UNAVAILABLE
from .helpers import setup_platform, BrowserModEntity
PLATFORM = "sensor"
async def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
return setup_platform(hass, config, async_add_devices, PLATFORM, Browse... | [
"dimitri.steiner.gl@gmail.com"
] | dimitri.steiner.gl@gmail.com |
7cf7279cbabb7b7c45d6e022115fa9f2209fc720 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_reconquered.py | 125f1782584034430be925a279c37b2c6780ae3b | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py |
from xai.brain.wordbase.verbs._reconquer import _RECONQUER
#calss header
class _RECONQUERED(_RECONQUER, ):
def __init__(self,):
_RECONQUER.__init__(self)
self.name = "RECONQUERED"
self.specie = 'verbs'
self.basic = "reconquer"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9e32582d6035eab859e12f73a788def12ec1655a | 89a90707983bdd1ae253f7c59cd4b7543c9eda7e | /python_patterns/tests/test_decorator.py | 38dcc2e5c08f32b549ad0fc5bdf1bc44f7ee3cc0 | [] | no_license | timothyshull/python_reference_code | 692a7c29608cadfd46a6cc409a000023e95b9458 | f3e2205dd070fd3210316f5f470d371950945028 | refs/heads/master | 2021-01-22T20:44:07.018811 | 2017-03-17T19:17:22 | 2017-03-17T19:17:22 | 85,346,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from structural.decorator import TextTag, BoldWrapper, ItalicWrapper
class TestTextWrapping(unittest.TestCase):
def setUp(self):
self.raw_string = TextTag('raw but not cruel')
def test_italic(self):
self.assertEqual(ItalicWrapper(s... | [
"timothyshull@gmail.com"
] | timothyshull@gmail.com |
6442719190118b0a90d687630c54423380121833 | e4829c2f8370975ef94485d7a7eb9d18df8a908f | /trust/forms.py | c790fc3ebae429fb41d4a089712eeaeb6df2c034 | [] | no_license | albelix/newtrustproj | 329a2de8d5cb5385f4dc51fe36d6f8bf1dbdee3a | e3172e6917c6b9220a96e99fb207f1696b2db660 | refs/heads/master | 2021-02-13T01:38:31.293995 | 2020-03-06T05:39:49 | 2020-03-06T05:39:49 | 244,650,104 | 0 | 0 | null | 2020-03-06T05:39:51 | 2020-03-03T13:58:15 | Python | UTF-8 | Python | false | false | 3,029 | py | import django.forms as forms
from .models import Player, Decision, Constants
from django.forms import inlineformset_factory
from otree.api import widgets
class SenderForm(forms.ModelForm):
CHOICES = Constants.sender_choices
answer = forms.ChoiceField(widget=widgets.RadioSelectHorizontal(attrs={'required': Tru... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
981be90549f53f444b62dff40cbc422784156072 | f82728b6f868a2275e63848f936d2c22354dc024 | /Basic/Check if A Number is Prime or Not/SolutionBySomya.py | b654c4c055cacb0fc1883d4e0ecc0e20836cd1a6 | [
"MIT"
] | permissive | shoaibrayeen/Programmers-Community | 0b0fa4ba1427fa472126e640cda52dff3416b939 | cd0855e604cfd54101aaa9118f01a3e3b4c48c1c | refs/heads/master | 2023-03-16T03:13:48.980900 | 2023-03-12T00:25:37 | 2023-03-12T00:25:37 | 209,997,598 | 285 | 424 | MIT | 2023-03-12T00:25:38 | 2019-09-21T14:17:24 | C++ | UTF-8 | Python | false | false | 366 | py | #Check if the number is prime or not
def prime(n):
if n>1:
for i in range(2, n):
if(n%i) == 0:
print(n," is not a prime number")
break
else:
print(n, " is a prime number")
else:
print(n," is neither prime nor composite")
... | [
"noreply@github.com"
] | shoaibrayeen.noreply@github.com |
59355c9c43dfc8780a63eecd6a4f17696f03fd22 | b78d509fea622982640a397aa5c58ed6f9e57364 | /src/Python/InteractorStyleTrackballCamera.py | de06b8c3fdc034ec41fb37df4faaf31a6ee0354f | [
"Apache-2.0"
] | permissive | cquammen/VTKExamples | c7d7fc5eb8e594f3ddf17116150e588f7bc966c7 | c4d7559db8d1aa85d263e87d14a8c5bf67ecdbcc | refs/heads/master | 2021-07-12T05:42:23.842532 | 2017-10-13T14:15:04 | 2017-10-13T14:15:04 | 106,834,895 | 0 | 0 | null | 2017-10-13T14:30:12 | 2017-10-13T14:30:12 | null | UTF-8 | Python | false | false | 711 | py | import vtk
# create a rendering window and renderer
ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren)
# create a renderwindowinteractor
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
style = vtk.vtkInteractorStyleTrackballCamera()
iren.SetInteractorStyle(style)
... | [
"bill.lorensen@gmail.com"
] | bill.lorensen@gmail.com |
4fcefdfd36364399b164f8be31f9d34cff7443df | 7b259cd4297c7797e39f22c8a35afccbcd412418 | /acme/agents/tf/mompo/learning.py | 5876185117e4f00c5b57be15c5d4a2a013ba5c84 | [
"Apache-2.0"
] | permissive | khushjammu/acme | f8bce4339e465f93e2dce6c57ebdfa599eb510a9 | 0f50cdffb5a076bdae00e2497ac8f115e0d749d9 | refs/heads/master | 2023-07-08T10:51:58.291560 | 2021-08-09T11:48:37 | 2021-08-09T11:48:37 | 383,331,767 | 0 | 0 | Apache-2.0 | 2021-08-08T07:59:04 | 2021-07-06T03:48:34 | Python | UTF-8 | Python | false | false | 18,648 | py | # python3
# Copyright 2018 DeepMind Technologies Limited. 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 re... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0249f8dfc1c65a874b3ee40844d69b0cd2ee0189 | cb8b261f11c7cde10f03cb06a480a7581c8cf66d | /pygame_menu/widgets/widget/__init__.py | 5d2dc4b0da2160f41d6947a43806bbeddfc9870f | [
"MIT"
] | permissive | Mandringo02/pygame-menu | 29dc9eb72ff4cb911b7f41746ba32d8cf514ec56 | 149b69e24ef63947b5e23062e29d58ea9eba7ecd | refs/heads/master | 2023-03-21T04:29:21.823858 | 2021-03-02T16:58:51 | 2021-03-02T16:58:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py | """
pygame-menu
https://github.com/ppizarror/pygame-menu
WIDGET
This module contains the widgets of pygame-menu.
License:
-------------------------------------------------------------------------------
The MIT License (MIT)
Copyright 2017-2021 Pablo Pizarro R. @ppizarror
Permission is hereby granted, free of charge,... | [
"pablo.pizarro@ing.uchile.cl"
] | pablo.pizarro@ing.uchile.cl |
f32f8284b91e47a4c1a9127fc58665946ce55f48 | 5cc204e2ecb9a756127e7c71633a1edcdb3e989b | /DB/pyflask1.py | 3e5245b64f929c2288c6b4ec4e49b7275f21385f | [] | no_license | hopefulp/sandbox | 1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8 | 4d26767f287be6abc88dc74374003b04d509bebf | refs/heads/master | 2023-06-27T17:50:16.637851 | 2023-06-15T03:53:39 | 2023-06-15T03:53:39 | 218,209,112 | 1 | 0 | null | 2022-09-13T13:22:34 | 2019-10-29T05:14:02 | C++ | UTF-8 | Python | false | false | 342 | py | #!/home/joonho/anaconda3/bin/python
from flask import Flask
app = Flask(__name__)
@app.route('/')
#@app.route('/user/<user_name>/<int:user_id>')
def home():
return 'Hello, World!'
#def user(user_name, user_id):
# return f'Hello, {user_name}({user_id})!'
if __name__ == '__main__':
app.run(host='143.248.... | [
"hopefulp@gmail.com"
] | hopefulp@gmail.com |
d3eca0a5cb8817e675b07439138574c776e9ad9d | 21bb0aaf8db6947a93842f80679f13db5b202dcd | /app/config.py | 875a4e3e69e7fbd5cd46424f74d9c4555845ffe2 | [] | no_license | shmilyoo/s-status-backend | 446a6a0de2d8cfef78ea4d424b2738a3872fca3e | 77e6f4426de06d3af299cf0949855114229a4786 | refs/heads/master | 2022-12-09T21:48:44.726641 | 2018-02-08T08:25:01 | 2018-02-08T08:25:01 | 116,486,827 | 0 | 0 | null | 2022-09-16T17:44:54 | 2018-01-06T13:53:56 | Python | UTF-8 | Python | false | false | 1,584 | py | # coding:utf8
import os
SECRET_KEY = '^s-local$'
# INTERFACE_NAME = 'enp7s0'
INTERFACE_NAME = 'wlp8s0' # 存入数据库的接口名称,按照接口名称获取流量状况
HOST = '0.0.0.0'
PORT = 5000
DEBUG = True
DB_USER = 'root'
DB_PASSWORD = 'root'
DB_HOST = 'localhost'
DB_DB = 'ss_status'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = ... | [
"fighter_yy@qq.com"
] | fighter_yy@qq.com |
89ecd806931a0dc1c71e98d55d61d16f2b4d38d3 | 363440b85fdb89fbeaa02047d774bba21b39dc61 | /tester/rt/check.py | fcd7b55aa30af48fadbbb6f8d5eceefe54194e7d | [] | no_license | vivek9191/rtems-tools | 2e3d48af296a3b16aaf5e37a6805af37f7028e76 | b8cbe24ed4dc8deb0b7c0665994177bb6b1c5619 | refs/heads/master | 2021-01-14T12:58:15.643733 | 2016-07-23T13:04:24 | 2016-07-23T13:04:24 | 55,540,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,666 | py | #
# RTEMS Tools Project (http://www.rtems.org/)
# Copyright 2016 Chris Johns (chrisj@rtems.org)
# All rights reserved.
#
# This file is part of the RTEMS Tools package in 'rtems-tools'.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following condi... | [
"chrisj@rtems.org"
] | chrisj@rtems.org |
aee47c61a5946137b3e3cff01b94fc2a1206f6ac | 5deca81ecb729fdb1e14511b7fdb65e5f3b277de | /4_blackjack/submission_v4.py | 24d068be605d8849ed77ff38cf2a5b8aa2e5d690 | [] | no_license | anatu/CS221-Fall2018 | 6a0e170ada7ba8794d9e93dee875fc1a072e4692 | 03dbcf7cb7da953877171b311be9d0e2aacec30c | refs/heads/master | 2021-03-20T06:01:52.122056 | 2020-03-14T00:22:10 | 2020-03-14T00:22:10 | 247,183,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,199 | py | import util, math, random
from collections import defaultdict
from util import ValueIteration
############################################################
# Problem 2a
# If you decide 2a is true, prove it in blackjack.pdf and put "return None" for
# the code blocks below. If you decide that 2a is false, construct a ... | [
"natu.anand@gmail.com"
] | natu.anand@gmail.com |
050e39d3c26bd0edac14f62fc52658a5bd9e381d | b9ba28cede24b6662228c6379f52f2396d8879c0 | /myproject/settings.py | a8cdb829be166118ce1fa6b98a5acf7e5889e46e | [] | no_license | Prachi0203/prachi_bindal | 6d4e67dffecaf3c50c0ff7dc6bd5c79effb37d90 | af9fe3d792b0b4d8dd44f86b9fae8f257517d3ca | refs/heads/main | 2022-12-31T11:10:30.251043 | 2020-10-22T08:56:44 | 2020-10-22T08:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | """
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"coderrohanpahwa@gmail.com"
] | coderrohanpahwa@gmail.com |
15255e66a6c49db58680722156db5300ba9e1608 | a312020063ed0d0c029e98b4596a9506cd7b6651 | /OOP/Attributes_and_methods/movie_world/project/movie_world.py | b5fca3d05b6f2ec265dee780b6cfbeb114068533 | [] | no_license | DeyanGrigorov/Python-Advanced | a9515e37025f2f638b61c935a7cb37bd5ee626bd | b3c3607504898dd174bf2884d1b72d5cab9ae1b1 | refs/heads/master | 2023-01-31T11:35:44.320541 | 2020-12-17T16:31:04 | 2020-12-17T16:31:04 | 309,117,583 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | from project.customer import Customer
from project.dvd import DVD
class MovieWorld:
def __init__(self, name):
self.name = name
self.customers = []
self.dvds = []
self.dvd_ids = {}
self.customer_ids = {}
@staticmethod
def dvd_capacity():
return 15
@stat... | [
"deian1998@abv.bg"
] | deian1998@abv.bg |
8a01455bcfca6a88225b3acbfd17c5b8783dee78 | 47d75780751f820ccf6a350caa94a5605be5ac80 | /pySDC/projects/Hamiltonian/stop_at_error_hook.py | b7a6615e0307232e847a8ab8ca8721bba500721b | [
"BSD-2-Clause"
] | permissive | ruthschoebel/pySDC | 1e8484efc89eaaf9bb71f350790a4bc08b0f2127 | de2cd523411276083355389d7e7993106cedf93d | refs/heads/master | 2022-06-07T19:50:57.181584 | 2022-05-11T12:50:29 | 2022-05-11T12:50:29 | 146,288,756 | 0 | 1 | BSD-2-Clause | 2021-08-11T12:54:48 | 2018-08-27T11:34:15 | Python | UTF-8 | Python | false | false | 735 | py | from pySDC.core.Hooks import hooks
class stop_at_error_hook(hooks):
def post_sweep(self, step, level_number):
"""
Overwrite standard post iteration hook
Args:
step (pySDC.Step.step): the current step
level_number (int): the current level number
"""
... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
d43a15ac2056235b7ec38c3cbd521936b2f42d11 | 23b333449524887594530f73c0079ce60cb8eefb | /python_module/examples/249_Group_Shifted_Strings.py | 048a478ce3d1d01971cb639a4214172d72a7a798 | [] | no_license | benbendaisy/CommunicationCodes | 9deb371095f5d67e260030d3d8abf211c90e7642 | 444cc502ef26810b46115797f2e26ab305a4ebdf | refs/heads/master | 2023-08-09T21:46:58.691987 | 2023-07-20T05:11:39 | 2023-07-20T05:11:39 | 27,856,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | from collections import defaultdict
from typing import List
class Solution:
def getHashKey(self, string: str):
nums = [ord(ch) for ch in string]
idx = 0
key = ""
while idx + 1 < len(nums):
key += chr((nums[idx + 1] - nums[idx]) % 26 + ord('a'))
idx += 1
... | [
"benbendaisy@users.noreply.github.com"
] | benbendaisy@users.noreply.github.com |
37cff09a3d88a579a18a36bf01e0f532455e688d | 1630e52ade6236029e6419071139c85e6e7a1665 | /step2.py | 97daf8c104b825ff6c238a19d2c5c08ac891a8a1 | [
"MIT"
] | permissive | muzudho/practice-pillow | 3f17abe6da71bcbf814d0894f508c8de9c2c9c39 | c6d4405ce1aef95b3768f41ca22cd676ac0dc189 | refs/heads/main | 2023-03-20T10:49:12.980346 | 2021-03-13T22:26:15 | 2021-03-13T22:26:15 | 347,024,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | from PIL import Image, ImageDraw
import math
# black = (0, 0, 0)
red = (0xff, 0x33, 0x66)
green = (0x66, 0xff, 0x33)
blue = (0x33, 0x66, 0xff)
white = (255, 255, 255)
im = Image.new('RGB', (500, 500), white)
draw = ImageDraw.Draw(im)
def main():
top = 160
left = 160
range = 160
theta_list = [90, 75... | [
"muzudho1@gmail.com"
] | muzudho1@gmail.com |
e853e4b23ffea8a0df37f6904c086dafe5b70031 | a1657a0c5c8f3f8b51b98074293e2f2e9b16e6f4 | /stream/tensorflow_kafka_test.py | 01fee89640b54cda2dcdf28ee97d8e772f2561ef | [
"Apache-2.0"
] | permissive | PipelineAI/pipeline | e8067636f5844dea0653aef84bd894ca2e700fc6 | 0f26e3eaad727c1d10950f592fe1949ece8153aa | refs/heads/master | 2023-01-07T15:27:33.741088 | 2022-10-25T23:01:51 | 2022-10-25T23:01:51 | 38,730,494 | 2,596 | 512 | Apache-2.0 | 2020-01-30T23:00:08 | 2015-07-08T03:49:23 | Jsonnet | UTF-8 | Python | false | false | 3,952 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.contrib.kafka.python.ops import kafka_dataset_ops
from tensorflow.python.data.ops import iterator_ops
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import error... | [
"chris@fregly.com"
] | chris@fregly.com |
b9b237043483e90831afdee9c7fd990e206d0372 | 81e2839e01937c2dcd681a402cc42e55cd265a32 | /numpy and pandas study/groph.py | 65b9942298b498afa708f4649f05bdc1910ff85c | [] | no_license | fanweiya/NNstudy | 88d10d977a884df429de833a2abd58958e607705 | 935820efd4637a436cce48ad7559d64e069ab801 | refs/heads/master | 2021-08-11T05:05:34.718174 | 2017-11-11T16:30:50 | 2017-11-11T16:30:50 | 110,360,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,071 | py | from pylab import *
import matplotlib.pyplot as plt
import numpy as np
X = np.linspace(-np.pi, np.pi, 256,endpoint=True)
C,S = np.cos(X), np.sin(X)
plot(X,C)
plot(X,S)
show()
# 自己测试
from pylab import *
a=arange(0,2*pi,0.01,float)
plot(a,sin(a))
show()
# 导入 matplotlib 的所有内容(nympy 可以用 np 这个名字来使用)
from pylab import *
... | [
"f845952804@gmail.com"
] | f845952804@gmail.com |
4b957a738128b700a4d4a97c4a5d4a51e5b3ec29 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/third_party/catapult/devil/devil/android/sdk/keyevent.py | 732a7dc9565d812e22044579024102131c5ffb3f | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 369 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Android KeyEvent constants.
http://developer.android.com/reference/android/view/KeyEvent.html
"""
KEYCODE_BACK = 4
KEYCODE_DPAD_RIGHT = 22
KEYCODE_ENTER... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
ed09d3b8b9b4420c8bbb35636b98695ca8ee3bc3 | be1907ef4b4eb56567d8df5703a98a7a6a34c88a | /modules/lmc/lmc_decoder.py | 6b4d03a0daf753bc9aa5c780e0190f33f0e7e9b3 | [] | no_license | griff4692/LMC | f9bd4803c5b37bbae98cbe5014a719d3c9ea7a2f | f07dfa472d3f6bfd7ce7f7ac7168687beb8efdaf | refs/heads/master | 2023-01-30T00:37:53.505757 | 2020-12-08T17:35:48 | 2020-12-08T17:35:48 | 223,016,633 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | import os
import sys
import torch
from torch import nn
from torch.nn import functional as F
import torch.utils.data
from transformers import AlbertConfig, AlbertModel
from albert_encode import encode
class LMCDecoderBERT(nn.Module):
def __init__(self, args, token_vocab_size, output_dim=100):
super(LMCDe... | [
"griff4692@gmail.com"
] | griff4692@gmail.com |
0da8cb378bf671d7e44fcf1cb013f96266f23178 | a96769d260a948c605f3625055f2be31fc0fc26f | /models.py | ae607561b95c0cc2569a0c6be5384172ca96a166 | [] | no_license | chris-baby/student_management_system | 620ba68e1e4540060429e7f2b6e3ab8ed5ca26d6 | 7098c25e7928f32b046b5a046eb99effad9d185e | refs/heads/master | 2022-12-04T12:34:39.065934 | 2020-08-15T16:58:25 | 2020-08-15T16:58:25 | 287,529,846 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from exts import db
import pymysql
pymysql.install_as_MySQLdb()
class student(db.Model):
id = db.Column(db.Integer,primary_key=True,autoincrement=True)
#学号
name = db.Column(db.String(20),default="请输入完整信息")
# 姓名
grade = db.Column(db.String(20),default="请输入完整信息")
#年级
gender = db.Column(db.Str... | [
"918128078@qq.com"
] | 918128078@qq.com |
0599816ed477d9527a532f10737b201ca61b1df0 | 0f8a25824fdead1c6b416f9a408dfecef118fb81 | /dsc_blog/wsgi.py | 1d027da77b120bdb6d13d33907131e9b530eb6b4 | [
"MIT"
] | permissive | jkuatdsc/dsc-blog | bb38d694d1db29c9ace7cb6030d6d4e997aa8714 | 189004ad822038e7ff58d1536e17f118e7d3afb2 | refs/heads/master | 2023-08-27T23:23:35.026037 | 2021-11-11T17:25:09 | 2021-11-11T17:25:09 | 421,957,330 | 0 | 12 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for dsc_blog project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"jimmywilliamotieno@gmail.com"
] | jimmywilliamotieno@gmail.com |
be9721ebb8ea3bb6dc16a83751a2ae51461a19d5 | 508321d683975b2339e5292202f3b7a51bfbe22d | /Userset.vim/ftplugin/python/CompletePack/maya/app/renderSetup/model/typeIDs.py | 7ec5fe0e6cc4ef5f5bba6fbd608f811bc462ef1c | [] | no_license | cundesi/vimSetSa | 4947d97bcfe89e27fd2727423112bb37aac402e2 | 0d3f9e5724b471ab21aa1199cc3b4676e30f8aab | refs/heads/master | 2020-03-28T05:54:44.721896 | 2018-08-31T07:23:41 | 2018-08-31T07:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | """Node type IDs for render setup model nodes.
This module centralizes type IDs for all render setup nodes. The
range of reserved node type IDs for render setup is 0x58000370 to
0x580003FF, inclusive. See file Maya/src/Plugins/NodeIdList.txt.
"""
import maya.api.OpenMaya as OpenMaya
override ... | [
"noreply@github.com"
] | cundesi.noreply@github.com |
f8451a989967c58bcdd7ed4473ae284315dd729f | 30150c7f6ed7a10ac50eee3f40101bc3165ebf9e | /src/town/TownBattle.py | c20e9c9676fb701a5ecaa736d229e9ddf145b959 | [] | no_license | toontown-restoration-project/toontown | c2ad0d552cb9d5d3232ae6941e28f00c11ca3aa8 | 9bef6d9f823b2c12a176b33518eaa51ddbe3fd2f | refs/heads/master | 2022-12-23T19:46:16.697036 | 2020-10-02T20:17:09 | 2020-10-02T20:17:09 | 300,672,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,831 | py | from toontown.toonbase.ToontownBattleGlobals import *
import types
from direct.fsm import StateData
from direct.fsm import ClassicFSM, State
from direct.fsm import State
from . import TownBattleAttackPanel
from . import TownBattleWaitPanel
from . import TownBattleChooseAvatarPanel
from . import TownBattleSOSPanel
from... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
d38d772b9ca852e1ebcad91cf1d8ef4aa855b508 | daff7ea823b19072854d49ee443b5d3af38dae27 | /docs/conf.py | 9b3e2d1189150c00498c47ecba0002a19225e201 | [
"BSD-3-Clause"
] | permissive | asweigart/pytweening | eb4ab5eb0a04fa9ac16080dcc7102873aeeb2184 | 808d3a7b5e2e974c4d7637a8e2600a05879915e2 | refs/heads/master | 2023-09-02T15:38:18.982127 | 2023-05-09T16:52:01 | 2023-05-09T16:52:01 | 22,593,243 | 102 | 22 | BSD-3-Clause | 2023-04-25T21:47:00 | 2014-08-04T05:38:39 | Jupyter Notebook | UTF-8 | Python | false | false | 8,184 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# PyTweening documentation build configuration file, created by
# sphinx-quickstart on Mon Aug 4 01:42:22 2014.
#
# 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
#... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
b3429c71987f4dd8b38d18a7e90ff44d6a572118 | c6fda07da04dcfddb0c26156b2a165fccbc1cdfe | /tsv_extractor.py | f12280e655ffc72eee449a730be8d279349f60e5 | [] | no_license | modanesh/MS-Celeb-Aligned-Extractor | 9311f3adef6e2131363a42c85b077f49ce143b2d | 8d37aabfb17ae6f07df0845d4677ca86b22eea9e | refs/heads/master | 2021-08-06T05:38:03.664746 | 2017-11-03T12:23:31 | 2017-11-03T12:23:31 | 109,392,272 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | import os
import base64
import struct
fid = open("/media/deepface/983ADA463ADA2154/face/MsCelebV1-Faces-Aligned/MsCelebV1-Faces-Aligned.tsv", "r")
base_path = '/home/deepface/users/danesh/ms-celeb-extracted/data/'
if not os.path.exists(base_path):
os.mkdir(base_path)
bbox_file = open(base_path + '/bboxes.txt', 'w')
... | [
"mohamad4danesh@gmail.com"
] | mohamad4danesh@gmail.com |
3b49ed3ef938246fbb844ea0ffb841768a0ae7d4 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binaryReversal_20200612124323.py | 1edb4409ce2bffde8d3fe2b4615a8f2f8bff1eeb | [] | 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 | 315 | py | def BinaryReversal(s):
n = bin(int(s))
print(n[2:])
n=n[2:]
if len(n)%8 == 0:
N = len(n)//8
print('N',N)
else:
N = len(n)//8+1
k=str()
for i in range(len(n)):
k+=n[-i-1]
while len(k)<N*8:
k+="0"
print(int(k,2))
# code goes here
return int(k,2)
BinaryReversal("4567")
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
231fd08a8c9e4f6996e111a43a4f17016ba44415 | d07834620562760dda49a03bbd2da88d7b2b8b6a | /Tutorial/jjj9c.py | c78a5fa6cf8d9c8accb151209a8f4542fc931da1 | [] | no_license | ebylaska/ML_Potentials | d2eb888ed94fa9a36aeabd00fb721a5653e89bda | fd1b8fd5bd18763b000a121d60da5fd920926875 | refs/heads/master | 2022-04-30T09:44:41.269965 | 2022-04-11T16:22:20 | 2022-04-11T16:22:20 | 159,248,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,934 | py | import myfeedforward5 as myfeedforward
import math,random
import xyplotter
def plote(plot,xdat,edat,machine,weights):
x1 = []
y = []
y1 = []
de = 0.1
xmin = 99999.99
xmax = -9999.99
emin = 99999.99
emax = -9999.99
for i in range(len(xdat)):
x = xdat[i]
e = edat[i]
e1 = ma... | [
"bylaska@gmail.com"
] | bylaska@gmail.com |
a430d26c38c84815c2bd8a818c649391f4598425 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/recommender/v1/recommender-v1-py/docs/conf.py | c2eb89ff7b8644c7ccd98adbf62ad6944b93585f | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,515 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
73029623e739ef5503fad37942ba178de874390d | 296be95a9c012d1e6546ace03e8d3a3da5039974 | /Decomposable_attention/Utils.py | 0948bc052122a691aeea3abe5f424aeaf367ffff | [] | no_license | jxz542189/sentence_match | 148f8c605e641a1be6429806649aec112ec28a9e | 84ffc057d017662a716ef96767f6ee34d00232e0 | refs/heads/master | 2021-07-20T18:08:29.057575 | 2020-06-05T09:00:49 | 2020-06-05T09:00:49 | 173,389,748 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,967 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import functools
import tensorflow as tf
import numpy as np
import os
from datetime import timedelta
from keras.preprocessing.sequence import pad_sequences
from sklearn.preprocessing import OneHotEncoder
from c... | [
"1318394945@qq.com"
] | 1318394945@qq.com |
290c5fbf059319947cd05cac995af77764c7d316 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_193/ch10_2019_08_22_19_38_50_787937.py | 4014be4887838728ca9bc67e16499f6f4927507a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | def libras_para_kg(lbs):
a=lbs/2.205
return a
x=0
b=libras_para_kg(x)
print (b) | [
"you@example.com"
] | you@example.com |
925e70fd47a5c95a1acc511bea619f7885a52eff | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2792/60755/282418.py | 6932e708fef0f7c17fe905e8f2e4428e41ec33ef | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | input()
s = input().split(" ")
num = 0
res = ""
for i in range(len(s)):
if s[i]=="1":
num = num+1
if i==len(s)-1 or s[i+1]=="1" :
res = res + s[i]+" "
print(num)
print(res[:-1]) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f63ab0d162bf4add6a2d3ef94336d50c0a3097b3 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform/metadata/artifact.py | b3ef6e09a24e83c4d96f3224dc4e72afabf975e1 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 3,073 | py | # -*- coding: utf-8 -*-
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
0d50193aae4b8bd3c456c673f32ef2100c527207 | 11c3b29667d82319e8f889852f5a6e18780c1267 | /tests/contrib/grpc/grpc_app/__init__.py | 286063a324104991dd3780f6f4839d0061fc3e92 | [
"BSD-3-Clause",
"MIT",
"MPL-2.0",
"BSD-2-Clause"
] | permissive | elastic/apm-agent-python | 6ee4da3dfa6ad34e5909c6ec2ddc00c567c9ad10 | bea1b4688791f60df32672c28623f578a0936df2 | refs/heads/main | 2023-08-22T05:30:16.294659 | 2023-08-16T17:47:22 | 2023-08-16T17:47:22 | 97,101,009 | 395 | 226 | BSD-3-Clause | 2023-09-08T16:26:43 | 2017-07-13T08:48:10 | Python | UTF-8 | Python | false | false | 1,591 | py | # BSD 3-Clause License
#
# Copyright (c) 2022, Elasticsearch BV
# 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, t... | [
"noreply@github.com"
] | elastic.noreply@github.com |
13ce3ef6ce019a4a869df5259d8737ce759f4f07 | 1dce03e6f3f5b23d1e5c599678624638943b9422 | /classwork/2/2.py | 9694c75ca8018e0a28af04f5807f48f70cad69b5 | [] | no_license | volat1977/byte_of_python | 76ec958bdc51c7538bb24e5d152b456feab603ca | 60b58ca3927ef5e2801c93dd676d5f8b4c03d9fc | refs/heads/master | 2020-12-26T07:23:10.562537 | 2020-03-24T05:31:03 | 2020-03-24T05:31:03 | 237,431,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | l = [1,2,3,4,5,6,7]
for i in l:
print("item""-", i)
print("done", "-", i)
a = 10
while a > 0:
print(a)
a = a - 1
#a -= 1 | [
"alex@pop-os.localdomain"
] | alex@pop-os.localdomain |
d4e1a7beee1c958e8a9709672e32cc74adb791c9 | d79565e764955aeca6311b3527af03e05efcce8b | /Euler 009.py | 51dff5877beaeee897a406bf111abb288a1aa78e | [] | no_license | stephenroche/Project-Euler | cab6d6983fc8c0c05343ea42fdfe0971ed2ba232 | 010eb47733aa5a8418affeb74efb02b7afa1e489 | refs/heads/master | 2022-07-23T22:29:50.673340 | 2020-05-20T00:31:41 | 2020-05-20T00:31:41 | 234,994,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | for a in range(1, 1000):
for b in range(1, a):
c = 1000 - a - b
if a**2 + b**2 == c**2:
print('%d * %d * %d = %d' % (a, b, c, a * b * c)) | [
"stephen.roche00@gmail.com"
] | stephen.roche00@gmail.com |
ba23a44f8ce61882fcfa86bbba580084d5f44cf7 | 5130754859e274cd06f63260439e5203c2000a11 | /core/jobs/transforms/validation/user_validation.py | 22b1103fe3148289a660f3f8d259dcf421baa0c0 | [
"Apache-2.0"
] | permissive | oppia/oppia | 8ebc9c7c7f2b336e9a79ce04533abe3956f48cbe | d16fdf23d790eafd63812bd7239532256e30a21d | refs/heads/develop | 2023-09-04T07:50:13.661276 | 2023-09-03T09:21:32 | 2023-09-03T09:21:32 | 40,687,563 | 6,172 | 4,666 | Apache-2.0 | 2023-09-14T18:25:11 | 2015-08-14T00:16:14 | Python | UTF-8 | Python | false | false | 16,215 | py | # coding: utf-8
#
# Copyright 2021 The Oppia 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 requi... | [
"noreply@github.com"
] | oppia.noreply@github.com |
7a9dc939070a228ca4b827f617b2c00d41fe85df | bdfc11f05f373ac2cd7b39fd0976e852a05f58c3 | /python3/XBOSDriver/drivers/echola_spdu108l.py | 8e3cf28a2ad8f5424bab47bcb47d85ed207719d4 | [] | no_license | gtfierro/XBOSDriver | d7e506179c41729525cad46cf91aeb7b8f9573c1 | d18ed7b44370ae7d4d6c7420e06d3c1e7643897e | refs/heads/master | 2020-04-09T21:23:30.547013 | 2016-03-03T01:51:46 | 2016-03-03T01:51:46 | 40,542,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | echola_spdu108l/driver.py | [
"gtfierro225@gmail.com"
] | gtfierro225@gmail.com |
1edfc21a4a8f21396198f33c3dfbf5a57fdd8922 | ecd27923efba50703a7bfbfa2ba37a8cc78560ea | /automatic_scraper/config/bid/huangtaiwu/gansu_gszxzb_config.py | b2cf2c85e3a2a9ed6f772b7a4de84dc3114377d9 | [] | no_license | yougecn/work | fb691b072a736731083777e489712dee199e6c75 | 1b58525e5ee8a3bdecca87fdee35a80e93d89856 | refs/heads/master | 2022-03-03T19:14:17.234929 | 2018-04-17T12:29:19 | 2018-04-17T12:29:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | # coding: utf-8
import time
import logging
from bs4 import BeautifulSoup
import hashlib
import re
import requests
import urlparse
logger = logging.getLogger(__name__)
author = "huangtaiwu"
web_title = u"甘肃正信招标代理有限公司"
data_source = 'http://www.gszxzb.com'
start_urls = [
"http://www.gszxzb.com/zhaoblist.asp",#1
... | [
"iwechen123@gmail.com"
] | iwechen123@gmail.com |
354f4e35ce2dd2afa9d71bff3b47b0b80f509219 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories/156296/kaggle_otto-master/otto/model/model_06_xgboost/xgboost.py | 147acd3a87e7c541f6da6193d7f8dc8d50751b7d | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,006 | py | import graphlab as gl
import numpy as np
import logging
import os
from hyperopt import fmin, hp, tpe
from sklearn.base import BaseEstimator
from sklearn import preprocessing
from otto_utils import consts, utils
MODEL_NAME = 'model_06_xgboost'
MODE = 'holdout' # cv|submission|holdout|tune
logging.disable(logging.... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
577b83531b44b1d4ea654c0291394f9d91de0bf5 | 9848a719ddfdd21b5fe1fa2f55da290c0f6952dc | /missing-number.py | 8b05f47e71602af32e837e9c572a47c55d1c7b16 | [] | no_license | maomao905/algo | 725f7fe27bb13e08049693765e4814b98fb0065a | 84b35ec9a4e4319b29eb5f0f226543c9f3f47630 | refs/heads/master | 2023-03-13T12:38:55.401373 | 2021-03-25T01:55:48 | 2021-03-25T01:55:48 | 351,278,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | """
xor twice -> 0
xor once -> remain
"""
from typing import List
class Solution:
def missingNumber(self, nums: List[int]) -> int:
r = 0
for n in nums:
r ^= n
for n in range(len(nums)+1):
r ^= n
return r
s = Solution()
print(s.missingNumbe... | [
"maoya.sato@gmail.com"
] | maoya.sato@gmail.com |
6bf4f2bb5f8eb31f3866cfbf826ade7aedd485fe | 542d6c7a1303916a60bf0d7d24c8499a02f961c1 | /lib/python3.7/site-packages/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource_paged.py | 99faf00b3f4524d044f8ec578d930496f98a4926 | [] | no_license | jim-minter/azhack | e9918a916d2b71f3adcc4f1ea208312ad9c59210 | 0e8631fd067014a9f3000101a886e7a9a94acc95 | refs/heads/master | 2020-05-07T19:50:43.980332 | 2019-04-11T15:37:43 | 2019-04-11T22:20:29 | 180,830,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | 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.
# C... | [
"jminter@redhat.com"
] | jminter@redhat.com |
ace21d5b1590cf93cd731c9cee769dfda2bc41b4 | 413ce352f1fff3c969c15e7c7aa5326d7f138072 | /xenia_python_client_library/models/organization_user_update.py | f71190292a7421e463a92607ba0d07147a7f68d5 | [
"Apache-2.0"
] | permissive | DutchAnalytics/xenia-python-client-library | 63b160424ca5b9d2722118e653217ce3f9de2358 | 60dc3e21094086124b552ff5bed5895fee826b57 | refs/heads/master | 2022-12-16T10:13:37.434563 | 2020-09-16T07:01:12 | 2020-09-16T07:01:12 | 257,844,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | # coding: utf-8
"""
Xenia Python Client Library
Python Client Library to interact with the Xenia API. # noqa: E501
The version of the OpenAPI document: v2.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from xenia_python_client_library.configur... | [
"sascha.vanweerdenburg@dutchanalytics.com"
] | sascha.vanweerdenburg@dutchanalytics.com |
91909ff0be3193d24cfd6a436dea0f63e1412d66 | 031bd4a16fbbc47e2ce0c62a5a8c90db8073fcc7 | /src/modules/mails/spamassassin_analysis.py | 3f13bb7836706f33df0ae23c8f1d6d003d4eb877 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | sitedata/spamscope | 2eb25f1b5649efb27e06f88d9cec4c5b11817b99 | ffbfc53b9a3503ef3041cee94c6726c8b899118d | refs/heads/develop | 2023-07-17T05:29:26.185657 | 2021-04-15T07:29:23 | 2021-04-15T07:29:23 | 405,273,980 | 0 | 0 | Apache-2.0 | 2021-09-11T05:46:53 | 2021-09-11T03:32:58 | null | UTF-8 | Python | false | false | 3,950 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2017 Fedele Mantuano (https://www.linkedin.com/in/fmantuano/)
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/... | [
"mantuano.fedele@gmail.com"
] | mantuano.fedele@gmail.com |
ce61a7aa68ceedbea108f1d01b2f7c9f98d97ac7 | a1e3e7cf1d27b85d9472c6353e7646d37528b241 | /q72.py | 1dd930274295c5f5a343af1f1ac3c8217bdcc6e6 | [] | no_license | osama1998H/standerdLearnd-string | 421148f81c2c604f6c75dac568ff1faeb20922ce | 0af39cd2fd43be45bb54aca2826bc8bf56e399ed | refs/heads/main | 2023-09-01T04:21:52.499680 | 2021-05-15T19:54:50 | 2021-05-15T19:54:50 | 365,533,408 | 0 | 0 | null | 2023-08-29T08:31:40 | 2021-05-08T14:21:53 | Python | UTF-8 | Python | false | false | 279 | py | string = input('enter sonme text: ')
char = input('enter char: ')
a = [i for i in string]
b = [i for i in string]
for i in b:
if i != char:
a.remove(i)
# string = string.replace(" ", "")
text = ''
# print(" " * count + string)
for i in a:
text += i
print(text)
| [
"osamamuhammed555@gmail.com"
] | osamamuhammed555@gmail.com |
9208a9b8d09e2e4344e7aa05a2ebf35c5ea9c12b | ef14bdf6628c35fdd4d826fcc4839f6bc6f27a0e | /craftr/lib/craftr.ext.python.py | 7c2a8fc5f6d9d1fd2aca7820e15baadb5a118b51 | [
"MIT"
] | permissive | dfroger/craftr | 96736769f164637e4d8a6d4d82aa1732aa8ba084 | 9504b89521cc6423fa5089557913c95aaaca576b | refs/heads/master | 2020-12-01T13:07:55.155984 | 2016-05-21T15:41:58 | 2016-05-21T15:41:58 | 59,434,317 | 0 | 0 | null | 2016-05-22T21:04:45 | 2016-05-22T21:04:45 | null | UTF-8 | Python | false | false | 2,891 | py | # Copyright (C) 2016 Niklas Rosenstein
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, ... | [
"rosensteinniklas@gmail.com"
] | rosensteinniklas@gmail.com |
9d2c9a446892fe2e987cbabb2c81435bae3fd61e | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part3/updated_part2_batch/jm/parser_errors_2/299495107.py | c8fbd714b21022815484dd471797ba0de01598ea | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 2,376 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 299495107
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 4, 2, 15)
assert board i... | [
"noreply@github.com"
] | kozakusek.noreply@github.com |
7ed9f3c344e5423e0a198489ceb7537a84280db4 | 164ffe077dde59373ad9fadcfd727f279a1cfe93 | /jni_build/jni/include/tensorflow/contrib/tensor_forest/python/kernel_tests/finished_nodes_op_test.py | e06376616f8ec133046d10e5a9c1f3525615bb0a | [] | 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 | 3,975 | 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 |
e26e6bc412a5ade4f7c30ea8d76002220b56b347 | f9b15917cad61ac91801ccee29fb0f9f0d6d526d | /fedjax/core/dataclasses.py | 0dec97fb783736c9e475c90496a57b0b7dba20ac | [
"Apache-2.0"
] | permissive | Methimpact/fedjax | 793663cd145b71a8c20994c37171421124b8e0c2 | 5943a421491b8cb15bd28e61ca565de9ca8eb260 | refs/heads/main | 2023-04-03T20:02:29.917057 | 2021-04-16T23:38:57 | 2021-04-16T23:39:16 | 359,015,966 | 1 | 0 | Apache-2.0 | 2021-04-18T01:07:04 | 2021-04-18T01:07:04 | null | UTF-8 | Python | false | false | 1,864 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"no-reply@google.com"
] | no-reply@google.com |
6fde62198c2d793a8870fa0c95cd1002619d23a7 | adf76b6855bf614a977e77521e343b0af0743c1a | /src/tools/build/version.py | fae4a5250840cd481d0d9ac4c1ae6c0043291251 | [] | no_license | tbinetruy/CIL4SYS | 0d5a01478087500279c5c6f522049c30d91f3c13 | ee41343aaea4fdd5662388a0ee07c46d51101ca9 | refs/heads/master | 2022-12-11T13:00:27.456518 | 2020-01-19T22:12:45 | 2020-01-19T22:12:51 | 157,378,216 | 9 | 2 | null | 2022-11-21T21:48:39 | 2018-11-13T12:39:38 | Python | UTF-8 | Python | false | false | 4,830 | py | #!/usr/bin/env python
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2008-2017 German Aerospace Center (DLR) and others.
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution... | [
"tbinetruy@gmail.com"
] | tbinetruy@gmail.com |
8d4e031cd6b1dd560a249d8b5598a086c52ba6ce | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_instance_resp_item.py | 3b5fafddc3dcdb20ee5783f12ca22c28151b2625 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 23,786 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateInstanceRespItem:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attri... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
05bcd1e925520a7cc9d16fba226f27119c9284c2 | bf75cf5bcf0ad9702cdcbf72ec1f5073950de852 | /tests/test_ilock.py | 000bdc1a72562a317b25796c862d4c1ef62aca00 | [
"MIT"
] | permissive | Cologler/ilock2-python | 3b25b27fb44c3602ea4861032b6da81ee1c077d7 | 8c158b2a1afb50ef72c2c07c4b703e9756376424 | refs/heads/main | 2023-01-13T04:29:18.799980 | 2020-11-22T01:54:25 | 2020-11-22T01:54:25 | 314,939,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com>
# ----------
#
# ----------
import os
from tempfile import TemporaryDirectory
import multiprocessing as mp
import ilock
import time
import pathlib
from ctypes import c_wchar_p
def f1(path: str):
lock = ilock.ILock('196de887-cec7-46... | [
"skyoflw@gmail.com"
] | skyoflw@gmail.com |
2b3e27d041c6194b12bfa574e93b6031894f59ec | 9f387c703dbf4d970d0259424c7b299108c369f5 | /dd_sdk_1_0/test/test_data_movement_stats_recall_api.py | 8bb38d6c3c246bdd1faf29ba5acb9844200535c5 | [] | no_license | gcezaralmeida/datadomain_sdk_python | c989e6846bae9435c523ab09e230fc12d020f7f1 | e102ec85cea5d888c8329626892347571832e079 | refs/heads/main | 2023-08-23T22:42:47.083754 | 2021-10-25T21:52:49 | 2021-10-25T21:52:49 | 370,805,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | # coding: utf-8
"""
DataDomain Rest API Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolu... | [
"root@s6006st157.petrobras.biz"
] | root@s6006st157.petrobras.biz |
23ad09bb7afd85f459d4bde4c4d5cb9d6ef29298 | adea9fc9697f5201f4cb215571025b0493e96b25 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_ipv4_reachability/prefixes/prefix/__init__.py | 7a06759de852aefc70d96f1f905da1a66581ab06 | [
"Apache-2.0"
] | permissive | andyjsharp/napalm-yang | d8a8b51896ef7c6490f011fe265db46f63f54248 | ef80ebbfb50e188f09486380c88b058db673c896 | refs/heads/develop | 2021-09-09T02:09:36.151629 | 2018-03-08T22:44:04 | 2018-03-08T22:44:04 | 114,273,455 | 0 | 0 | null | 2018-03-08T22:44:05 | 2017-12-14T16:33:35 | Python | UTF-8 | Python | false | false | 21,998 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
3731a79ad3bc803e3b5854f8272a11df0383338f | 7bf51d5550195a7fae26bd626ed82c5f2b5d9737 | /mlwork/stats/stats_ex03.py | 3b02a3a18951a2ed7013753c31ca02759d1bf5f7 | [] | no_license | venkatram64/python_ml | 9fcadc380c2a56856f590b40a7c3b015c19c62a0 | b0b40fec4547f3675a500af24878cddacc4c270c | refs/heads/master | 2020-04-08T05:07:28.993601 | 2018-12-26T08:30:28 | 2018-12-26T08:30:28 | 159,047,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | import numpy as np
from scipy.stats import norm
from scipy.stats import expon
from scipy.stats import binom
from scipy.stats import poisson
import matplotlib.pyplot as plt
#uniform distribution
values = np.random.uniform(-10.0, 10.0, 10000) #27000-> centered around, std = 150000 with 10000 data points
plt.hist(valu... | [
"venkat.veerareddy@hotmail.com"
] | venkat.veerareddy@hotmail.com |
8f128f63460cb8cc0a2f650a0ec3c4a3f06eaa0e | 00351bb010d92004ca9f6c7ed0220df5f998c1ee | /Break and continue in python.py | 9bbfb765e5e21a2936d0319bb386eddd82387739 | [] | no_license | DharmendraB/Python_Code | 18aab845707f2f6eefd33617369617479e1ebd54 | f55651f40dfed19edab17b0ec3a2cf3821b5cc5e | refs/heads/master | 2021-02-08T16:49:42.160890 | 2020-03-02T04:57:58 | 2020-03-02T04:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | print("Jai Mataji")
i = 0
while(True):
if i+1 < 5:
i = i+1
continue
print(i+1, end=" ")
if(i==44):
break
i = i +1
while(True):
inp = int(input("Enter a Number\n"))
if inp > 100:
print("Congraulation Number greater thnen 100\n")
break
else:
pr... | [
"ghldharmendra@gmail.com"
] | ghldharmendra@gmail.com |
20aa732ebab8d6f090c36daed31ea112413a398e | 79c5dfb7c9ded39b10099281632f8b99af1998f0 | /gaphor/SysML/blocks/datatype.py | c33ac9b83c6a2ae68a2bdaa7bad7a55093942552 | [
"Apache-2.0"
] | permissive | amolenaar/gaphor | a27ee0edafb0621eb2ed623a94b755b85fa59c00 | c7c0c8a7e0b8fd37c8a7aa288593b28c136155b0 | refs/heads/master | 2023-08-11T21:44:26.825718 | 2023-07-22T15:49:25 | 2023-07-22T15:49:25 | 411,586,551 | 0 | 0 | Apache-2.0 | 2021-09-29T08:13:47 | 2021-09-29T08:13:46 | null | UTF-8 | Python | false | false | 173 | py | from gaphor.diagram.support import represents
from gaphor.SysML import sysml
from gaphor.UML.classes.datatype import DataTypeItem
represents(sysml.ValueType)(DataTypeItem)
| [
"gaphor@gmail.com"
] | gaphor@gmail.com |
bf1d0b7c6dddfdf6a05635a2f375174b408478ab | 258ff61df12b88fdd5eebc2576c4e1870c6a818b | /tools/regtxt2c.py | 43f7ce98f7d701c8c8cf1e05b321e2b441991a83 | [
"0BSD"
] | permissive | xuhui/libfx2 | d4c4802e44b93677c3d89eceb307a8d6123c413f | ae4ba023f3d834a56b95a751694906a5cbcf7120 | refs/heads/master | 2020-03-29T14:07:18.341486 | 2018-08-15T10:46:31 | 2018-08-15T10:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,676 | py | import sys
import re
from collections import defaultdict
hidebit = r"""
.+:EP\d+$|.+:PKTS\d+$| # too ambiguous
(?!IO|ACC|B).+:([AD]|BC|PFC)\d+$| # address/data/counter regs
USBFRAME.|MICROFRAME|ERRCNTLIM|EP.AUTOINLEN.|EP.ISOINPKTS:INPPF.|GPIFTCB.| # counter reg
INT.IVEC|FNADDR|SUDPTR.$|XAUTODAT.|GPIFADR.| # address r... | [
"whitequark@whitequark.org"
] | whitequark@whitequark.org |
a2d1c0fd291a52c9965439847e4beb46369a9720 | 0b358a0d64eb03655c030b36c0ae87880b153951 | /projects/configs/_base_/datasets/lvis_v0.5_instance.py | 7282291f086dd83bbf3ac78ffa4da1917951dfd7 | [] | permissive | jshilong/DDQ | db05ff309d63316c62faa59b28c66d65eef973d1 | de9331e4579aaafab4d69e3a9a3c6638efc5392c | refs/heads/main | 2023-06-03T15:02:09.949907 | 2023-05-24T03:32:12 | 2023-05-24T03:32:12 | 498,974,099 | 199 | 6 | Apache-2.0 | 2022-06-02T05:01:53 | 2022-06-02T03:10:25 | null | UTF-8 | Python | false | false | 956 | py | # dataset settings
_base_ = 'coco_instance.py'
dataset_type = 'LVISV05Dataset'
data_root = 'data/lvis_v0.5/'
data = dict(samples_per_gpu=2,
workers_per_gpu=2,
train=dict(_delete_=True,
type='ClassBalancedDataset',
oversample_thr=1e-3,
... | [
"2392587229zsl@gmail.com"
] | 2392587229zsl@gmail.com |
af3e9c98c3ccb27c23b4ca0748690cc1f7381d41 | ec2aae88dac078dc18842ecbb4bfc55307117a8a | /app/search_indexes.py | 8ca7c0b9868704c51dd39b2005d0385e709575da | [] | no_license | Drapegnik/Mini-Wiki | 63711b64d9368c6b7653c78f5c158ed626015c3a | 7c61f35e7e7f70a6d37c4aa6ba00eace643f4368 | refs/heads/master | 2020-12-31T06:09:05.314994 | 2019-10-21T15:36:17 | 2019-10-21T16:41:35 | 72,734,246 | 2 | 0 | null | 2019-10-21T16:51:02 | 2016-11-03T10:27:21 | HTML | UTF-8 | Python | false | false | 650 | py | from haystack import indexes
from app.models import Publication, Comment
class CommentIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
author = indexes.CharField(model_attr='author')
publication = indexes.CharField(model_attr='publication')
def... | [
"ivan.pazhitnykh@gmail.com"
] | ivan.pazhitnykh@gmail.com |
5aba3cbd4b5be1545dae96f01ac071973286ef42 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/4/usersdata/66/2824/submittedfiles/swamee.py | 51cf3c1675bedb48a5c415c3bf0fa2a245fb40ea | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#COMECE SEU CÓDIGO AQUI
f=imput("digite f")
L-input("digite o valor de L)"
Q=input("digite q")
DELTAH=input("digite o valor de dh")
v=input("digite o valor de v")
g=9.81
e=0.000002
math.pi=3.1415
D=((8*f*l*(Q**2))/((math.PI**2)*9*DH))**0.2
Rey=(4*Q)/(... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c45640cbbf7d18532ea17fe950c98ad95b623d1d | e7208f2e6c03c171b18708991b30829095284d1c | /class8/ex7_processes_show_ver.py | 0c244e2e95f558aee0ed7e5a17a8b4216df233d8 | [
"Apache-2.0"
] | permissive | TechButton/python_course | 409a333fad447c1803d4f483e9bff00bafaf7473 | db288d2978b3d244a0d7d51a79dfbb5afc5dcbe8 | refs/heads/master | 2020-03-30T21:06:28.724938 | 2018-09-19T18:15:49 | 2018-09-19T18:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | #!/usr/bin/env python
'''
Use processes and Netmiko to connect to each of the devices in the database. Execute
'show version' on each device. Record the amount of time required to do this.
'''
from __future__ import print_function, unicode_literals
from netmiko import ConnectHandler
from datetime import datetime
from m... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
1342f7fd618c1c79110eeb0de7142bd55e1d507f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /030_control_flow/003_for/_exercises/_templates/Learning Python/013_013_Dictionary construction with zip.py | 1a6ce8a40a3cf68c745f3fd2b73be4f00531f31d | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 385 | py | # __author__ = 'sergejyurskyj'
#
# D1 = spam 1 eggs 3 toast 5
# D1
#
# D1 _
# ? spam = 1
# ? eggs = 3
# ? toast = 5
#
# keys = ['spam', 'eggs', 'toast']
# vals = [1, 3, 5]
#
# print li.. z.. k.. v..
#
# D2 _
# ____ k, v __ z.. k.. v.. _2 ? = v
#
# print ?
#
# keys = ['spam', 'eggs', 'toast']
# vals = [1, 3, 5]
#
# D3 ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6584d89e190504e8de8006bbc144c942f46a622a | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/algorithm-master/lintcode/519_consistent_hashing.py | 8a9801fa4c9de4d10f38ca42979f697008983b8b | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 973 | py | c_ Solution:
"""
@param: n: a positive integer
@return: n x 3 matrix
"""
___ consistentHashing n
res [[0, 359, 1]]
__ n.. isi..(n, i..) \
o. n < 2:
r.. res
ti 0 # ti: target_index for the **upcoming** machine in results
# mi: machine_index for... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
97c63b84b9e1cd343d0e671c07fe0f7d67a2cccd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02705/s622319229.py | c5488d162afe93d2ea29c4eea42f2683bdc4a6d7 | [] | 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 | 57 | py | #from math import PI
print(int(input()) * 2 * 3.14159265) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5d7408f777f092dcd0dedbf86b29299a53f9ebe6 | 407c6f47116c32c909e353b41b88b42eae7a0873 | /cloudmesh/cloud/__version__.py | 26464c44462f1d5578d7a0e5e41e4c23c360c3ef | [
"Apache-2.0",
"Python-2.0"
] | permissive | cloudmesh/cloudmesh-cloud | 29132f95beb665ff6fd7f5baf14c2c5fc26d528a | cef0c22a3b89a11a838da1ae6734344dd5415277 | refs/heads/main | 2022-12-11T16:09:36.136775 | 2021-04-21T15:03:27 | 2021-04-21T15:03:27 | 147,824,315 | 5 | 27 | Apache-2.0 | 2022-12-08T01:20:52 | 2018-09-07T13:03:38 | Python | UTF-8 | Python | false | false | 18 | py | version = "4.4.1"
| [
"laszewski@gmail.com"
] | laszewski@gmail.com |
88b280ce3307778e4b8c2b0524ea732245185872 | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /tests/sentry/utils/test_sentryappwebhookrequests.py | f10bf68295e02b0da2376599d703a4ebc623ab2b | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 2,398 | py | from sentry.testutils import TestCase
from sentry.utils.sentry_apps import SentryAppWebhookRequestsBuffer
class TestSentryAppWebhookRequests(TestCase):
def setUp(self):
self.sentry_app = self.create_sentry_app(
name="Test App", events=["issue.resolved", "issue.ignored", "issue.assigned"]
... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
22a49e3866505933be896d0e9ddf89c51bac428e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_lashed.py | c90893ec1d8190646ca64d1e32a356ce203e9d4f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py |
#calss header
class _LASHED():
def __init__(self,):
self.name = "LASHED"
self.definitions = lash
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['lash']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
847b7b4bf8b9b41ecbe1ca6011589f82b46de92d | a4753147801dbabfec45f6f9f47572cda77efb81 | /fault-localization/utils/fl_datasets.py | 59b925e44024b698b63d3c4bd1868813ac4df044 | [
"MIT"
] | permissive | SEED-VT/FedDebug | e1ec1f798dab603bd208b286c4c094614bb8c71d | 64ffa2ee2e906b1bd6b3dd6aabcf6fc3de862608 | refs/heads/main | 2023-05-23T09:40:51.881998 | 2023-02-13T21:52:25 | 2023-02-13T21:52:25 | 584,879,212 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,105 | py | import torchvision
import torch
from pytorch_lightning.core.datamodule import LightningDataModule
from torch.utils.data import DataLoader, random_split
# from torch.utils.data import Dataset
import random
import numpy as np
# from .niid_datasets import load_femnist_data
from .niid_utils import partition_data, get_datal... | [
"waris@vt.edu"
] | waris@vt.edu |
83b5fa88b2df209c11780481943eb5ad38685e44 | 4142b8c513d87361da196631f7edd82f11465abb | /python/599A.py | 30369c9b30a0eebfacf268f5c57c65ffa55860dd | [] | no_license | npkhanhh/codeforces | b52b66780426682ea1a3d72c66aedbe6dc71d7fe | 107acd623b0e99ef0a635dfce3e87041347e36df | refs/heads/master | 2022-02-08T17:01:01.731524 | 2022-02-07T10:29:52 | 2022-02-07T10:29:52 | 228,027,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | a, b, c = list(map(int, input().split()))
print(min([2*a+2*b, a+b+c, 2*b+2*c, 2*a+2*c]))
| [
"npkhanh93@gmail.com"
] | npkhanh93@gmail.com |
c6c6c999595d5227edd1b5d084fdf1dcaff539d9 | 7c4878b4881d79dd4daa3291e9c498e0706a7603 | /lessons19/HomeWork/task1.py | 77b3abaf403bedf3e0c0eb4561246408f338f22a | [
"MIT"
] | permissive | zainllw0w/skillbox | 4cbdbb44762439c1aa1793a07683d7620500ddd7 | 896287b6f7f5612cf589094131fd1a12b0b192ba | refs/heads/main | 2023-04-27T16:07:16.613359 | 2021-05-20T14:12:11 | 2021-05-20T14:12:11 | 329,755,030 | 0 | 0 | null | 2021-05-20T14:06:42 | 2021-01-14T23:01:15 | Python | UTF-8 | Python | false | false | 538 | py | violator_songs = {
'World in My Eyes': 4.86,
'Sweetest Perfection': 4.43,
'Personal Jesus': 4.56,
'Halo': 4.9,
'Waiting for the Night': 6.07,
'Enjoy the Silence': 4.20,
'Policy of Truth': 4.76,
'Blue Dress': 4.29,
'Clean': 5.83
}
time = float(0)
ask = int(input('Сколько песен запр... | [
"77465388+zainllw0w@users.noreply.github.com"
] | 77465388+zainllw0w@users.noreply.github.com |
82114456c5b41d5317e2221312bff8939e0c21a5 | 24532cc3eb0e489415a08457b454c454abf66525 | /object-maker/edit_objects.py | 95f52c176f06760ba0b33dc834abde036e5c6429 | [] | no_license | glygener/glygen-backend-integration | 7a4c8e45dd9af6b0424946fcc7e11e9aef39d9a6 | 526775496f860680df2dbfdfc42b3ba35c69cfea | refs/heads/master | 2022-09-22T03:56:35.116497 | 2022-09-09T16:56:59 | 2022-09-09T16:56:59 | 151,144,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | import os,sys
import string
import subprocess
from optparse import OptionParser
import glob
import json
import libgly
def main():
tr_dict = {"ln2releases":"ln2data/releases","ln2wwwdata":"ln2data/releases/data/REL"}
in_file = "generated/misc/bco_changes_1.csv"
changes_dict = {}
data_frame = {}
... | [
"rykahsay@gwu.edu"
] | rykahsay@gwu.edu |
e2b067557bb8ebeb4bcc4040169ce9405a65934c | 859be935f70ff2784f152ff77b77bb9a70c537c4 | /cloudmesh_vagrant/cm_vbox.py | 07738bdbd6dc4b97700b9c1c1f135402d4d6f641 | [
"Apache-2.0"
] | permissive | narlasekhar/vagrant | 25b738e2300d3c260d68b5108ed0aabe88ba97a1 | 37b9c0b31c020d312a79d88164c69f79d376e898 | refs/heads/master | 2020-06-24T01:59:28.821847 | 2018-12-05T15:29:03 | 2018-12-05T15:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,612 | py | from __future__ import print_function
from docopt import docopt
import cloudmesh_vagrant as vagrant
from cloudmesh_client.common.dotdict import dotdict
from pprint import pprint
from cloudmesh_client.common.Printer import Printer
from cloudmesh_client.common.Shell import Shell
import sys
import os
from cloudmesh_vagra... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
613e81e898ade73c58bfdd4f8467d07e19dba2df | 613a1452c5e11987ad630746614bfd00eba26f24 | /eggy/commands/__init__.py | 151a9fbfd4abe6b59cb8393334a5c2182664db0c | [
"MIT"
] | permissive | Alakala/eggpy | a9fb1e8faf28e3ee5385896fc1a267a934f326e7 | a49fddfc3cb088a6e5dede5dd96faf54d6ed5441 | refs/heads/master | 2021-01-25T08:54:01.995653 | 2013-05-29T14:52:59 | 2013-05-29T14:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | from .quotes import *
from .misc import *
from .tell import *
| [
"rav@cs.au.dk"
] | rav@cs.au.dk |
6ec04c227036b019ad0355fbb4a79f7d1e65e606 | 11aac6edab131293027add959b697127bf3042a4 | /partition2.py | 489510238850d5dcaada46ae9b2f6ffc5bae0cd2 | [] | no_license | jdanray/leetcode | a76b3436002b31865967b757b73c85992636383b | fd736af3e79899b86dac89d4d925d5bd985944ad | refs/heads/master | 2023-08-15T01:20:05.110565 | 2023-08-14T00:25:58 | 2023-08-14T00:25:58 | 148,686,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # https://leetcode.com/problems/palindrome-partitioning/
class Solution(object):
def isPalindrome(self, p):
i = 0
j = len(p) - 1
while i < j:
if p[i] != p[j]:
return False
i += 1
j -= 1
return True
def helper(self, s, start, part):
if start >= len(s):
self.res.append(part)
return True
... | [
"jdanray@users.noreply.github.com"
] | jdanray@users.noreply.github.com |
dda9b58ab83ccc5d6040b9fd7aaee1610422588b | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=77/sched.py | 6c2aebfe9eb8d8d791548be549c86a86e119d015 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | -X FMLP -Q 0 -L 3 92 400
-X FMLP -Q 0 -L 3 72 400
-X FMLP -Q 0 -L 3 57 200
-X FMLP -Q 1 -L 3 57 250
-X FMLP -Q 1 -L 3 51 400
-X FMLP -Q 2 -L 2 48 200
-X FMLP -Q 2 -L 2 45 300
-X FMLP -Q 3 -L 2 43 150
-X FMLP -Q 3 -L 2 41 150
31 300
31 100
30 250
28 125
23 125
22 175
17 100
14 100
12 100
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
2075b1f077521ff24a18f70b591fa627ff4045e4 | a1d30d667cbf814db1809c31cf68ba75c01f819c | /tags/Heap/Merge K Sorted Lists.py | d9a797677eb52a24a21bc3df3de6aca0d714c5e6 | [] | no_license | yemao616/summer18 | adb5f0e04e6f1e1da6894b0b99a61da3c5cba8ee | 8bb17099be02d997d554519be360ef4aa1c028e3 | refs/heads/master | 2021-06-02T04:32:07.703198 | 2020-01-09T17:45:29 | 2020-01-09T17:45:29 | 110,744,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | # Merge k sorted linked lists and return it as one sorted list.
# Example :
# 1 -> 10 -> 20
# 4 -> 11 -> 13
# 3 -> 8 -> 9
# will result in
# 1 -> 3 -> 4 -> 8 -> 9 -> 10 -> 11 -> 13 -> 20
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.ne... | [
"ymao4@ncsu.edu"
] | ymao4@ncsu.edu |
09ad9f947f0d07e641499911885387ab368dd9b5 | e9cbc085a8389adbc0a26c4e4d0766034302622d | /douban/test.py | da57605884e816685c28e6ed2fafab4e39008d17 | [] | no_license | pipoted/my_spider | 175eb75c79c5f6f2e5c723ae192315e9f070d24a | f67ed0cf9aa90d66f26a211de5c0e77e66a0f321 | refs/heads/master | 2020-04-25T23:48:23.309655 | 2019-02-28T17:30:39 | 2019-02-28T17:30:39 | 173,150,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | tem_dict = {
'name': 'xiao',
'age': '18',
'hello': 'world',
}
for i in tem_dict:
print(i, tem_dict[i])
test = [tem_dict[i] for i in tem_dict]
print(test) | [
"32660879+pipoted@users.noreply.github.com"
] | 32660879+pipoted@users.noreply.github.com |
8653a217ce015bafd890fa1db92a08ed3a7f98ac | fc4718c75a259c7878970916f33bc420e82562d0 | /MyProject/kuaishou/分析/test.py | 9b433558d143bc133c2a7599b6f2241b4bb04ae7 | [] | no_license | DzrJob/spider | b2f15405caa93ecf185296a2a4ed8b9b4c5123c3 | cd4b105433a6a83def2bf11c046a3769204cd44e | refs/heads/master | 2020-05-04T00:24:48.535406 | 2019-05-07T14:52:18 | 2019-05-07T14:52:18 | 178,880,953 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 980 | py | #-*-coding:utf-8-*-
# @File : test.py
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import time
# 驱动谷歌浏览器,实例对象
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
chrome_op... | [
"dzr_job@163.com"
] | dzr_job@163.com |
4fb7eadf4ec50775ed47ddb17d414884b7ce34b9 | b45964fd4f1ede6ba82bda121e0524da73c84318 | /app01/migrations/0001_initial.py | 101f2a5e021dc8ed2cf6df692682298a6afaae67 | [] | no_license | cs4224485/STARK | b3d62afbc14d9aa121fc5ae9ea2b48a94447a397 | 9e275be0b80c6003893af39f03482429c1d9f722 | refs/heads/master | 2020-03-27T06:54:31.321379 | 2018-08-26T02:41:16 | 2018-08-26T02:41:16 | 146,145,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | # Generated by Django 2.0.5 on 2018-08-13 14:18
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
('id', models.AutoField(a... | [
"414804000@qq.com"
] | 414804000@qq.com |
b9f605f3d595ec74698a15e7d6c85c52102e8bb5 | bd19afde47c92c1b7031d1b0d2c31ca9d47c3b01 | /OpticalFlow_Python_vs_Matlab.py | b2d23f6b179b8a011945f0505467e896a8711412 | [
"MIT"
] | permissive | toddrme2178/morecvutils | 3c822056ca5138f0ab6fe7af0a5d83504305b7e7 | de86c93e1faef7f5a438d1a65de1184cb2ba8a88 | refs/heads/master | 2020-09-13T09:53:55.980953 | 2019-08-29T19:14:05 | 2019-08-29T19:14:05 | 222,733,256 | 0 | 0 | MIT | 2019-11-19T15:53:20 | 2019-11-19T15:53:20 | null | UTF-8 | Python | false | false | 2,011 | py | #!/usr/bin/env python
from pathlib import Path
import imageio
from typing import Sequence
import numpy as np
from matplotlib.pyplot import figure, draw, pause, show
#
from morecvutils.calcOptFlow import setupuv, optflowHornSchunk
def plotflow(mag, matmag):
fg = figure(figsize=(12, 5))
ax = fg.subplots(1, 2)
... | [
"scivision@users.noreply.github.com"
] | scivision@users.noreply.github.com |
39b1428a406f74d9798307f67f3ab2041d5430a7 | 78c41e28d9718b5d043078f984352d9643aa18ac | /Powerful Integers.py | f990a660491f9051c740ae8fde4c23108fff913c | [] | no_license | vyshor/LeetCode | 43c772e249d57b6e23649e73b99e7ace09dd6278 | c19713ffee5c2919c293b5680bd3d3dfc8345414 | refs/heads/master | 2023-08-03T04:37:27.846968 | 2023-08-02T17:54:35 | 2023-08-02T17:54:35 | 336,757,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | import math as m
class Solution:
def powerfulIntegers(self, x: int, y: int, bound: int) -> List[int]:
if not bound:
return []
ans = set([])
if x > 1:
_x = [x**i for i in range(int(m.log(bound, x))+1)]
else:
_x = [1]
if y > 1:
_y... | [
"vyshornehc@gmail.com"
] | vyshornehc@gmail.com |
599663687bb03155e51e105c33b7df38fd51d3c9 | 42b13e3ee09bc8eba46e288e149dcc1d5a0a4a83 | /beginner-projects-solutions/ArmstrongNumber.py | 8e72f77c39547a4fc8d701b86d0c473adfcfc6e6 | [
"Unlicense"
] | permissive | asher-lab/beginner-projects | b860bd7635241f6b9169270ec381b52955c8df42 | 68c56bc513514d3d6b2fed9448758517d9af06b0 | refs/heads/master | 2022-12-06T21:30:39.237398 | 2020-08-29T12:00:11 | 2020-08-29T12:00:11 | 285,540,932 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | number = int (input ("Enter a number: "))
tempNumber = number
sum = 0
while (number > 0):
mod = int(number % 10)
sum = int(sum + (mod*mod*mod))
number = int(number / 10)
print (sum)
if (tempNumber == sum):
print(f"{tempNumber} is an Armstrong Number")
else :
print(f"{tempNumber} is not an Armstrong... | [
"noreply@github.com"
] | asher-lab.noreply@github.com |
04f4d416b93bb04126eeee8c2a453f564842c369 | fc629dba07e98bfd44a671112f47091ad8935631 | /read_books/introduction_to_computation_and_programming_using_python/demos/sample840.py | 23d81885fe4be378d0c98b3cf3debd024ffd8f70 | [] | no_license | lostsquirrel/python_test | c990e0c29bdf2eecae9411983b68d1f984afac84 | eb171b45bbf2f29cd1307aefd8e4609b683773d8 | refs/heads/master | 2022-09-01T11:30:16.847626 | 2022-05-18T07:43:49 | 2022-05-18T07:43:49 | 9,890,003 | 0 | 1 | null | 2022-05-18T07:43:49 | 2013-05-06T15:35:24 | Python | UTF-8 | Python | false | false | 2,457 | py | def findPayment(loan, r, m):
"""loan, r为浮点数,m为整数
返回贷款loan,利率为r,时间为m, 每月的支付数量"""
return loan * ((r * (r + 1) ** m) / ((1 + r) ** m - 1))
class Mortgage(object):
def __init__(self, loan, annRate, months):
self.loan = loan
self.rate = annRate /12.0
self.months = months
self.paid = [0.0]
self.owe... | [
"songli1988@gmail.com"
] | songli1988@gmail.com |
919d346ddb2aa4322b9cafc4538d06e639aa654f | 8889b1d96280fbec4149331e4cb93e5f1da79f8b | /google/cloud/monitoring_v3/services/metric_service/transports/__init__.py | 943ac0a8938018e65a94cd3aa209d811ec8cfb06 | [
"Apache-2.0"
] | permissive | Tryweirder/python-monitoring | 3e83b6c8480c0f3f470c14d01adb3057ed6743d2 | 800bde926634aa010e1b1fbb449bcf4cb34201a0 | refs/heads/master | 2023-04-06T00:01:59.695685 | 2021-04-13T17:17:52 | 2021-04-13T17:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | Tryweirder.noreply@github.com |
6ab77292b98875d71ed14990c123fc6625b2a737 | 93684882400d0249ad733249f5b2c8dbd230110f | /ClassExercise & studio/Turtle/flower 05.py | 77fec96870069d2c73e59b7de4daee721dc09f3b | [] | no_license | SmileShmily/LaunchCode-summerofcode-Unit1 | c492bbed966547cc8c1be7f15d7a23cb989d407b | 03474cf77b0dae2bcfaf8513711d3fec72bd4166 | refs/heads/master | 2021-01-16T23:19:23.413010 | 2017-06-29T02:49:19 | 2017-06-29T02:49:19 | 95,730,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | import turtle
def petal(t, r, angle):
"""Use the Turtle (t) to draw a petal using two arcs
with the radius (r) and angle.
"""
for i in range(2):
t.circle(r,angle)
t.left(180-angle)
def flower(t, n, r, angle):
"""Use the Turtle (t) to draw a flower with (n) petals,
each with the... | [
"zyxjyaya@gmail.com"
] | zyxjyaya@gmail.com |
fcbd5665b3f53dad72c3aacf083ef531756db4d8 | b3c17f6b3b1c5322a5bf8dd262d01a85e6de2849 | /train/train.py | 346ca708595d0d883d7361561846a37f7d9a7025 | [] | no_license | arxrean/CelebRecognition | 6e65a76e984e54ef6a34e9b3dc44e0d19b79bcd6 | b202c6ef8bd6314b9c43a02b5afdbad64522f5ee | refs/heads/master | 2022-11-23T07:42:13.584305 | 2019-09-02T08:03:05 | 2019-09-02T08:03:05 | 204,247,279 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,052 | py | import os
from PIL import Image
import argparse
import torchvision
from torchvision import transforms
import torch.nn as nn
import torch
import torch.optim as optim
from torch.utils.data.sampler import SubsetRandomSampler
from torch.utils.data import Dataset, DataLoader
import pandas as pd
from PIL import Image
import ... | [
"602052254@qq.com"
] | 602052254@qq.com |
fc3d5d11459628416006b73cc2c0eef22b0f3ca9 | 861f634276da15a11c40e3eeca21e852efc74444 | /async_io/threads_producer.py | d576adbedbf6c74dd78291d595e240b6c331c991 | [] | no_license | kylebebak/asyncio | dddbf7f9d0c6149a39d9d56c9d549b84407b21fa | c058f9b85de9f4d2e727d17dd3bb788256425e81 | refs/heads/master | 2023-08-21T11:14:06.979995 | 2021-10-31T18:07:22 | 2021-10-31T18:29:00 | 422,983,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # Producer-consumer problem
import queue
import time
import threading
def producer(q, count):
for n in range(count):
print("Producing", n)
q.put(n)
time.sleep(1)
q.put(None) # Insert sentinel value as signal to consumer to shut down when producer is done
def consumer(q):
while... | [
"kylebebak@gmail.com"
] | kylebebak@gmail.com |
f56ab1deed48597fa13b0a779b8bba19697925c6 | 51d65cbed3df1e9e3a0d51f79590ee12f88291d1 | /object_detection/builders/matcher_builder.py | 3204022140c3348eeb2c939e3ce7fe52a01d483d | [
"MIT"
] | permissive | apacha/Mensural-Detector | f9332c23854263c6a3f89e8b92f3f666f8377ed8 | 05c91204cf268feaae84cd079dbe7a1852fba216 | refs/heads/master | 2022-09-23T21:20:53.376367 | 2022-08-31T08:36:35 | 2022-08-31T08:36:35 | 137,372,669 | 12 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
14bf7e472042cbfd449d2b80126f5adf93b44f92 | 854bf3649552aeda06573b7e7fea38e3a14332a1 | /libapi/urls.py | f2236d001fe81da6d6edc72abf249eeaa071fc72 | [] | no_license | mehulchopradev/charles-django-thirdapp | a90d88034c4233f175d3828f81811105f9eaeb56 | ea2ea37830393a0fbf437cb517129c13fddf696c | refs/heads/master | 2020-04-03T16:48:37.782132 | 2018-10-30T16:30:07 | 2018-10-30T16:30:07 | 155,420,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | from django.urls import path, include
from libapi.views import BookViewset, AuthorCreateView, LoginView, ContactUsView, AuthorListView, AuthorCreateListView
from rest_framework import routers
router = routers.DefaultRouter()
router.register('books', BookViewset)
'''path('books/', BookList.as_view()),
path('books/<in... | [
"mehul.chopra.dev@gmail.com"
] | mehul.chopra.dev@gmail.com |
78c34caecbb7d24b9009179fa5a63ae9a0b9f420 | a5e8ca9bd56c99347ab7f3de237805ba00688964 | /2019/01/fuel_calculator.py | 4cfa8be7a3d960b9796c39997abaf51891b7efe9 | [] | no_license | Crossroadsman/advent-of-code | 01bc931cf33291e290f6be4b910e39e87db31450 | ea3ebbf736b99521eed9cd3da04f0f4e2e471a09 | refs/heads/master | 2022-03-29T19:29:31.968967 | 2019-12-14T04:31:54 | 2019-12-14T04:31:54 | 114,278,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from file_handling import file_to_list, strs_to_ints
def calculate_from_mass(mass: int, fuel_so_far: int=0) -> int:
"""recursive computation because fuel also has mass"""
fuel_from_mass = (mass // 3) - 2
if fuel_from_mass < 0:
return fuel_so_far
return calculate_from_mass(
mass=fuel_... | [
"crossroadsman@gmail.com"
] | crossroadsman@gmail.com |
b28a462f16ca7bf79fe2ae9f26b6cde517c2dfdd | 7d553e7371c7974ef7950ccb6351c7081073c265 | /thirdparty/telnetsrv/telnetsrvlib.py | d45b714ba299345be584febc8c6c901bc4b031ca | [
"MIT"
] | permissive | paralax/hontel | 1e3900d8a925ff236b7a6b5b61a5bf9c3a3c0c77 | 9f343c7d56fc6e101f0401c1fa76085780db18e9 | refs/heads/master | 2020-04-26T05:49:02.569811 | 2017-11-30T01:36:31 | 2017-11-30T01:36:44 | 173,345,283 | 0 | 0 | MIT | 2019-03-01T17:52:26 | 2019-03-01T17:52:26 | null | UTF-8 | Python | false | false | 37,767 | py | # license: LGPL
# For distribution, see the COPYING.txt file that accompanies this file.
"""TELNET server class
Based on the telnet client in telnetlib.py
Presents a command line interface to the telnet client.
Various settings can affect the operation of the server:
authCallback = Reference to authentication fu... | [
"miroslav.stampar@gmail.com"
] | miroslav.stampar@gmail.com |
c4406ffd5efe68db50f293bf5af20a63cbd34ebf | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1012-1.py | 2ddfd1de41afc9ad59e45bf1350a1ab3bc24a0c8 | [] | no_license | ammasajan/Atomic-Red-Team-Intelligence-C2 | 78d1ed2de49af71d4c3c74db484e63c7e093809f | 5919804f0bdeb15ea724cd32a48f377bce208277 | refs/heads/master | 2023-07-17T12:48:15.249921 | 2021-08-21T20:10:30 | 2021-08-21T20:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'Discovery/T1012-1'
self.controller_type = ''
self.external_id = 'T1012'
... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.