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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb1a661133c33eaf551a08afdfd05ef3914d6918 | 81c344b8df43ed550cb9496c664a8de2687eda3e | /venv/lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_automation_action.py | 5d2db17e7394837c69a0e71c53860408572e99ad | [] | no_license | anhdoan-ntt/cisco-aci | dc0e52b6d19ee0bafb2b24e0febe955952bf39ef | 185be6d6f13eabd65fb0ff328ea54f6507ccf0d4 | refs/heads/main | 2022-12-20T00:07:27.465096 | 2020-10-05T08:15:29 | 2020-10-05T08:15:29 | 300,500,699 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,738 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# 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 3 of th... | [
"dc.anh.doan@gmail.com"
] | dc.anh.doan@gmail.com |
4200f765302918b7968c0ffb8fb1ecd08fb5a3d2 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /experiments/ashvin/rss/pusher1/original/rig.py | f5567d978b116ae2f1a750700054d307eb2dc341 | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,934 | py | import railrl.misc.hyperparameter as hyp
from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in
from railrl.launchers.launcher_util import run_experiment
from railrl.launchers.arglauncher import run_variants
from railrl.torch.grill.launcher import grill_her_td3_full_experiment
from multiworld.envs.muj... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
0b1d4abb0845ce3fe3f03bf81345ace35b4413e8 | d68a5968315ac482ed2cf334c054c685f0d34694 | /UUID.py | 6a80f55be509895062987f7251cef11025bf641d | [] | no_license | stixaw/PythonScripts | 2aad71992d275cd5835715e51f970370a756aebc | 04d0f8f538f76a82ae711de3db80c5e626d95cf1 | refs/heads/master | 2021-04-28T12:57:55.642316 | 2020-10-08T16:02:22 | 2020-10-08T16:02:22 | 122,090,737 | 0 | 0 | null | 2018-02-20T19:18:39 | 2018-02-19T16:37:19 | Python | UTF-8 | Python | false | false | 624 | py | # Generate a UUID (GUID)
import uuid
def GenUUID():
GUID = uuid.uuid1()
def guid( *args ):
"""
Generates a universally unique ID.
Any arguments only create more randomness.
"""
t = long( time.time() * 1000 )
r = long( random.random()*100000000000000000L )
try:
... | [
"noreply@github.com"
] | stixaw.noreply@github.com |
9d3fee101a635b4bc3d9c6aed0972f43cea1c641 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/MuonSpectrometer/MuonDigitization/RPC_Digitization/share/prerun_RPCdb_from_sqlite.py | b6fddf198b1fa3cc21549eb252f4da245a1e1f28 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | useLocalSql = True
if useLocalSql:
from IOVDbSvc.IOVDbSvcConf import IOVDbSvc
from IOVDbSvc.CondDB import conddb
include("RegistrationServices/IOVRegistrationSvc_jobOptions.py")
from MuonCondSvc.MuonCondSvcConf import RPC_STATUSConditionsSvc
ServiceMgr +=RPC_STATUSConditionsSvc()
from MuonCond... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
684b5ede6788fdc4469df7f9f81e43d34fde5a0f | 5ce266cfea0abde4dd8e1e8b8808ef9ed95b53e9 | /tests/directory_test.py | 0f0b0780da388c5b169168a456dd4bac968bb3f3 | [
"Apache-2.0"
] | permissive | cdeepakroy/girder_worker | 6d59fd3363bf103ec65fdd0a14210685f740cb7a | d3146ad5d342256943000cf28e780f2ab4186e60 | refs/heads/master | 2021-01-16T18:59:25.990253 | 2016-02-15T20:51:57 | 2016-02-15T20:51:57 | 51,942,920 | 0 | 0 | null | 2016-02-17T17:54:47 | 2016-02-17T17:54:47 | null | UTF-8 | Python | false | false | 4,928 | py | import girder_worker
import os
import shutil
import tarfile
import unittest
import zipfile
DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data')
class TestDirectory(unittest.TestCase):
"""
Tests the conversions for the directory type formats.
"""
extractTask = {
"inputs... | [
"zach.mullen@kitware.com"
] | zach.mullen@kitware.com |
7c9812f2e670eb67b83d361063ae6d2a43b9a918 | 0a243c63bb70655a7251d1e0ad82201ae48a0880 | /mjoy.py | 137638cd29b31a3b9eb8af6248355caeb79d80b5 | [
"MIT"
] | permissive | wupanhao/LepiPupper | cc666be5c75014eb2b1b866f407bbf15ed95dd37 | cd5463ccf4ea3c038234df56d8270acd7fe65b26 | refs/heads/main | 2023-06-16T15:52:13.530199 | 2021-07-08T06:15:43 | 2021-07-08T06:15:43 | 321,314,333 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | #!coding:utf-8
import struct
import time
BUTTON = 129
AXIS = 130
EVENT_BUTTON = 1
EVENT_AXIS = 2
class MyJoy(object):
"""docstring for MyJoy"""
def __init__(self,callback=None):
super(MyJoy, self).__init__()
self.active = True
self.callback = callback
self.axes = {0:0,1:0,2:0,3:0,4:0,5:0,6:... | [
"wupanhao@qq.com"
] | wupanhao@qq.com |
cab48da9656b07d676def88e5067cc9ee1d77080 | c5a921726a3805663d26a2dbaa47e49497931d4e | /TDD_Python/superlists/lists/tests.py | ac1a0890b01c7de62de6e2433fb128dd29a8e6a8 | [] | no_license | snowdj/cs_course | a50d07548198b4202e8abde01ec572e2cce38ab3 | fa6504cb5145d10952f4615478fa745f4b35ba13 | refs/heads/master | 2020-03-17T15:18:52.190747 | 2018-05-13T08:08:51 | 2018-05-13T08:08:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | from django.core.urlresolvers import resolve
from django.test import TestCase
from django.http import HttpRequest
from django.template.loader import render_to_string
from lists.views import home_page
# Create your tests here.
class HomePageTest(TestCase):
def test_root_url_resolves_to_home_page_view(self):
... | [
"jesse@liu.onl"
] | jesse@liu.onl |
28f305fd2e2ed0ca3af502975a460c7d26be77eb | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/166a5c909c8404693a3e281e82c7807d7f89a237-<build_entity>-fix.py | d169d928c5a3b738371e480c27fc505361759599 | [] | 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 | 5,531 | py |
def build_entity(self):
template = self.__get_template_with_version()
cluster = self.__get_cluster()
snapshot = self.__get_snapshot()
disk_attachments = self.__get_storage_domain_and_all_template_disks(template)
return otypes.Vm(id=self.param('id'), name=self.param('name'), cluster=(otypes.Cluster... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c52818db55a20526db0ede0ba671fa579dc68b11 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.14/_downloads/plot_compute_covariance.py | 124dcc6b57829c1e4ca941b5911411c5c71263b3 | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 6,767 | py | """
.. _tut_compute_covariance:
Computing covariance matrix
===========================
"""
import os.path as op
import mne
from mne.datasets import sample
###############################################################################
# Source estimation method such as MNE require a noise estimations from the
# rec... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
db83d6bb926203b554bf7aa8dda9a1d1651c31a3 | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/notification/tutorial_helper.py | 7ab5feeeed13f15ed97f1e5e1dfa9f723f6c3b5e | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 875 | py | # 2017.08.29 21:51:34 Střední Evropa (letní čas)
# Embedded file name: scripts/client/notification/tutorial_helper.py
try:
from tutorial import GlobalStorage as TutorialGlobalStorage
from tutorial.control.context import GLOBAL_VAR as TUTORIAL_GLOBAL_VAR
except ImportError:
class TutorialGlobalStorage(objec... | [
"info@webium.sk"
] | info@webium.sk |
2a4f7c765968e5239ee88d718e0fde67a51bb373 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/proc/cpu.py | df83c21f44fd2ad54df710acfd74b3715e28f2aa | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 11,247 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
7a9901fd61e90c1d8727ab39b19bba6947a918fa | ecf249c916eead8f166fd1bf95211c74616cc64a | /homeblog/admin.py | 82e2dae303c4a895a8847ba5c27e0c5f9388b3c5 | [] | no_license | techcentaur/blog | 1fbd2090106577fdaceb5fb33dc019ce960fda9b | c781a4d20ce381e92856ffa8080e563e81ceea01 | refs/heads/master | 2021-01-17T14:38:54.982374 | 2017-03-31T14:24:42 | 2017-03-31T14:24:42 | 84,094,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from django.contrib import admin
from .models import Blog
class BlogAdmin(admin.ModelAdmin):
exclude = ['posted']
prepopulated_fields = {'slug': ('title',)}
admin.site.register(Blog, BlogAdmin)
| [
"ankit03june@gmail.com"
] | ankit03june@gmail.com |
2f19392e9baf771fdab9587ee030d52da25ce307 | 2ca1236835e80cefb01df0345d4e5a21ecaf7e83 | /ApplicationExample.py | c558c2a307a64dcf039ee4cdd72b2181e297f308 | [] | no_license | yangyuexiong/AirCurrencyWeb | 5ca527791182daa75e086d7e2fd9c7821a0d9e21 | b7464f2c59a802ae0a8be5172fe5d686ed2207bd | refs/heads/master | 2020-09-04T10:59:22.431115 | 2019-11-27T08:07:40 | 2019-11-27T08:07:40 | 219,715,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | # -*- coding: utf-8 -*-
# @Time : 2019-11-05 18:19
# @Author : ShaHeTop-Almighty-ares
# @Email : yang6333yyx@126.com
# @File : ApplicationExample.py
# @Software: PyCharm
import os
from flask import Flask as _Flask
from flask.json import JSONEncoder as _JSONEncoder
from ExtendRegister.bp_register import regi... | [
"yang6333yyx@126.com"
] | yang6333yyx@126.com |
fac0f13718b8a4aa22764f1334b033d4f983e821 | f6b4b33490cb76760cbf676dd7f0222aac19e10c | /main/apps/categories/migrations/0002_category_order.py | 9ed9b1181e1806007695760679808c996d7be1b8 | [] | no_license | truhlik/finapp | 5ca681bae9dc8c3d4fa0a329719479477ffa0061 | 7c8ea667b62e8771e62b131e620f095a8b3073a8 | refs/heads/main | 2023-08-03T22:33:24.576756 | 2021-10-06T19:03:24 | 2021-10-06T19:03:24 | 414,334,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 3.1.4 on 2021-01-14 16:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('categories', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='category',
name='order',
... | [
"lubos@endevel.cz"
] | lubos@endevel.cz |
07de3bd6e05c1cc50f62daec540d81f09a07d4ba | 3a642fa1fc158d3289358b53770cdb39e5893711 | /src/xlsxwriter/test/comparison/test_chart_format18.py | 8b357bd1ae934e36171e2a40ab70889560247295 | [] | no_license | andbar-ru/traceyourself.appspot.com | d461277a3e6f8c27a651a1435f3206d7b9307d9f | 5f0af16ba2727faceb6b7e1b98073cd7d3c60d4c | refs/heads/master | 2020-07-23T14:58:21.511328 | 2016-12-26T22:03:01 | 2016-12-26T22:03:01 | 73,806,841 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
import os
from ...workbook import Workbook
from ..helperfunctions import _compare_xlsx_files
class TestCompareXLSXFiles(unittest.TestC... | [
"andrey@voktd-andbar.int.kronshtadt.ru"
] | andrey@voktd-andbar.int.kronshtadt.ru |
850248d48f0881eccd304ad93920269d942360a3 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/com_adobe_granite_bundles_hc_impl_sling_java_script_handler_health_check_info.py | 9cf3b8533a870cc4902606a040b637200dae252f | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 5,638 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.com_adobe_granite_bundles_hc_impl_sling_java_script_handler_health_check_properties impor... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
8314dbcec637762b963a9528d1740799e53e484f | 06dc09e27db8e005008cc1b7c498f89e264a7d92 | /基础代码/tkinter/11 Listbox控件中.py | c2e21d596bc4a737ffb2ce1e95bf7e98de1d7d8d | [] | no_license | july0426/Python3 | f44ca3266a3b56ae91bf90805b883a03a47cfca6 | 2bec6bb7f02d6562ceff92ca1d91f69da76fa7bb | refs/heads/master | 2020-06-19T23:51:39.818018 | 2019-06-14T10:45:25 | 2019-06-14T10:45:25 | 196,918,072 | 1 | 0 | null | 2019-07-15T03:34:30 | 2019-07-15T03:34:30 | null | UTF-8 | Python | false | false | 577 | py | import tkinter
win = tkinter.Tk()
win.title("qianxiao")
win.geometry("400x400+800+400")
#绑定变量
lbv = tkinter.StringVar()
#与BORWSE相似,但他不支持鼠标按下后移动位置
lb =tkinter.Listbox(win,selectmode = tkinter.SINGLE,listvariable = lbv)
lb.pack()
for item in ["good","nice","ku","hhh"]:
#按顺序添加
lb.insert(tkinter.END,item)
#打印当前列表中的... | [
"qianxiao996@126.com"
] | qianxiao996@126.com |
bd3c33bb66763f086df949d8aee25949c77ce04c | c239486d2884f03591e20c1e9419156e27805aa1 | /이것이코딩테스트다/이진탐색/정렬된배열에서_특정수갯수구하기.py | b947d2f8460a76002d4e13bb0f2daa592d5bddcb | [] | no_license | ynsseon07/Coding_with_Python | ba1fda42534e6134b58d742dc02dc204f447f57a | 4e2041198b3720d97934becdcc2603486dfb5564 | refs/heads/master | 2023-08-25T19:57:44.657541 | 2021-10-28T14:11:24 | 2021-10-28T14:11:24 | 364,128,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from bisect import bisect_left, bisect_right
N, x = map(int, input().split())
array = list(map(int, input().split()))
array.sort()
left_index = bisect_left(array, x)
right_index = bisect_right(array, x)
count = right_index - left_index
if count == 0:
print(-1)
else:
print(count) | [
"ynsseon@gmail.com"
] | ynsseon@gmail.com |
0e54ec18178b9cad1c873f28184f1573475df837 | aeffe203012d9f2d0e530139e1f120c4422fdcee | /config/urls.py | 925999b29881b2a25ad71b853166eaa6351e1148 | [
"MIT"
] | permissive | Shirhussain/Find-my-match | 2ee338f2d287137ae2f9cad8a3c03810ec80c49d | f11f64ebb0f2145d8cd9a352bd2c29bf30c85088 | refs/heads/main | 2023-02-20T16:25:48.127865 | 2021-01-24T00:41:55 | 2021-01-24T00:41:55 | 327,584,708 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from dashboard import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.home, name='home'),
path('contact/', views.contact, name='contac... | [
"sh.danishyar@gmail.com"
] | sh.danishyar@gmail.com |
1cab5aca4cfc6b62dc0a8d8a4d1fdd6c312a3a76 | 9ab08b6e6dbe33879286717794b99a9afc5cc29e | /Day05/code/exit.py | 53b5b209188065f0cbb1e181d43273b9edeba452 | [] | no_license | supremepoison/PythonNet | 2ca2a84391e277f8471d287ba6d584e1bf6efb42 | 18d8cfb9b672dd359e972c745242d36568c014b0 | refs/heads/master | 2020-04-05T07:23:59.787350 | 2018-11-08T08:26:58 | 2018-11-08T08:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | import os, sys
# os._exit(0)
sys.exit('1')
print('Process exit') | [
"897550138@qq.com"
] | 897550138@qq.com |
75d72f1819c7ebab78d4dc043d2dd68298225d23 | 2822a5b93730e4bb0b5c8536321b0111df02b904 | /src/comparison_across_consensus_rounds_625.py | 7e8fae3e655db5f4841e8ad5d2c2437f298a9e68 | [] | no_license | ahmedcs/Federated2Fog | f4e0c3c341ad03e2373000d377a610f1009c9578 | 3d0411bfd5aa5b6c2d48ee5e53e7454bd9dc3e06 | refs/heads/master | 2023-01-01T23:24:00.540444 | 2020-10-17T22:54:15 | 2020-10-17T22:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,954 | py | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pickle as pkl
matplotlib.rcParams.update({'font.size': 37})
matplotlib.rcParams['lines.linewidth'] = 2.0
matplotlib.rcParams['lines.markersize'] = 8
dataset = 'fmnist'
clf = 'svm'
lr = 0.01
b = 96
n = 625
radius = 'graph_multi'
d2d = 1.0
no... | [
"anonymous"
] | anonymous |
fd22abc305c87ea4aaaaf54465d36379dc431944 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/pose_estimation/HRNet_MMPose_for_PyTorch/configs/animal/2d_kpt_sview_rgb_img/topdown_heatmap/zebra/res152_zebra_160x160.py | 0f0eab87403673d0817f181a2255ab1d21e12f53 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,754 | py | _base_ = [
'../../../../_base_/default_runtime.py',
'../../../../_base_/datasets/zebra.py'
]
evaluation = dict(interval=10, metric=['PCK', 'AUC', 'EPE'], save_best='AUC')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config = dict(grad_clip=None)
# learning policy
lr_config = dict(
policy='st... | [
"zhangjunyi8@huawei.com"
] | zhangjunyi8@huawei.com |
4f334a880a763210167f0d98952609a076e5a15b | e5b5726d078c77aa889d4ca22c01e6c94635be2f | /week_02/반복문자 지우기.py | 0050585f98623088b780c01f0852775f1366fb13 | [] | no_license | seunggue/algorithm | ce6cd3d5f6ba1344c578fb593dab3505c439c947 | 58f039a0e14d3dd4d91ce91b6fd4e5a1ad986dec | refs/heads/master | 2020-07-06T19:36:20.204048 | 2019-11-14T14:25:47 | 2019-11-14T14:25:47 | 203,119,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | def delete(test):
test_list = []
for i in (test):
if i not in test_list :
test_list.append(i)
elif i != test_list[-1]:
test_list.append(i)
elif i in test_list and i == test_list[-1]:
test_list.pop()
return len(test_list)
for t_c in range(1, int(in... | [
"seungue1687@gmail.com"
] | seungue1687@gmail.com |
685f3407cdb8557e7b543b821d0ea9aeac3626b9 | 5c8361d0eceee00015471a7e2db0af231ee4732b | /Basic Data Structure/Stack/stackLink.py | 8f00438d8e9b953f1bba76484764e1b15524ab8b | [] | no_license | xiaojkql/Algorithm-Data-Structure | 292e267ef52dfa64116f690f7ad7051f245a74a0 | a13e7faaf55cd68249267e46a91e93c97e3190c2 | refs/heads/master | 2020-04-05T08:40:22.062209 | 2019-06-04T08:14:35 | 2019-06-04T08:14:35 | 156,724,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | # -*- coding: utf-8 -*-
'''
Author: Qin Yuan
E-mail: xiaojkql@163.com
Time: 2019-02-16 22:17:36
'''
from node import Node
from abstractStack import AbstractStack
class StackLink(AbstractStack):
def __init__(self, sourceCollections=None):
self._items = None
AbstractStack.__init__(self, sourceColle... | [
"xiaojkql@163.com"
] | xiaojkql@163.com |
2cc925ca80503c7c5e15dbb643a61f5f3738301d | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/tensorflow-1.2.1_for_boss/tensorflow/python/debug/lib/stepper_test.py | 825c5593120e431a796959ee80934d5a3fab6143 | [
"Apache-2.0",
"MIT"
] | permissive | koobonil/Boss2D | 09ca948823e0df5a5a53b64a10033c4f3665483a | e5eb355b57228a701495f2660f137bd05628c202 | refs/heads/master | 2022-10-20T09:02:51.341143 | 2019-07-18T02:13:44 | 2019-07-18T02:13:44 | 105,999,368 | 7 | 2 | MIT | 2022-10-04T23:31:12 | 2017-10-06T11:57:07 | C++ | UTF-8 | Python | false | false | 45,190 | 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 applica... | [
"slacealic@gmail.com"
] | slacealic@gmail.com |
b2858fb8e376543b59af308e2c0d39b2098dad04 | c424ea17c3415a0d2634b62bea7292903eea2343 | /nnd_plot.py | 1536ad1170fe37ba2eebf5c63890c396431326fd | [
"CC-BY-4.0"
] | permissive | eufmike/storm_image_processing | 211031e7939e68652a97266b2e51d02bc99c9ee9 | 076335519be0be3b66d289a180421d36770ab820 | refs/heads/master | 2021-07-24T07:47:16.339337 | 2020-04-20T02:42:50 | 2020-04-20T02:42:50 | 146,665,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,473 | py | # %%
# %load_ext autoreload
# %autoreload 2
import os, sys
import pandas as pd
import numpy as np
import re
import pprint
import matplotlib
matplotlib.use("TkAgg")
from matplotlib import pyplot as plt
from matplotlib import style as styl
import matplotlib.image as mpimg
styl.use('default')
from core.fileop import Di... | [
"sc2.shih@gmail.com"
] | sc2.shih@gmail.com |
5a0c9d51a4988fd14f35d38fcc5ee11c2391c8d9 | 0abb7ed0c85e32e50d340aa4a57840e416c05959 | /milvus-example/milvus_example.py | 38b13d8012a6d4b19eb2240484cd672291250b4f | [] | no_license | zengzhiying/bigdata | 333e06f5c9e8f9609b56ed5d225a24855f1ee999 | 1d6efffaec23425a8c1d05c0a2578e3c13bcbe64 | refs/heads/main | 2023-01-19T05:48:11.836889 | 2023-01-09T13:25:09 | 2023-01-09T13:25:09 | 93,918,601 | 3 | 2 | null | 2023-01-09T13:31:35 | 2017-06-10T05:46:00 | Java | UTF-8 | Python | false | false | 5,078 | py | #!/usr/bin/env python3
# coding: utf-8
"""milvus 相似计算测试代码
milvus版本: 2.0.2
"""
import sys
import time
import random
import numpy
from pymilvus import (
connections,
utility,
FieldSchema,
CollectionSchema,
DataType,
Collection,
)
def unitization(f):
return f / numpy.linalg.norm(f)
if __name... | [
"yingzhi_zeng@126.com"
] | yingzhi_zeng@126.com |
56814b0b3030ae772769a56e845ea6a1ee57c81f | 8bdce915174678a90a6be811ea91b50930b9d26a | /py3_web_frame/DjangoDev/e_shop/apps/trade/models.py | be4180bc8ffbd40e8305405bb7165e504dfcf4fe | [] | no_license | CharlesBird/Resources | daefffef8fb3735e656cd0a3bf400d5e2ff85cc0 | 517ac7b7992a686fa5370b6fda8b62663735853c | refs/heads/master | 2022-12-15T02:54:56.530940 | 2020-02-29T14:33:43 | 2020-02-29T14:33:43 | 109,668,108 | 1 | 1 | null | 2022-12-08T05:04:25 | 2017-11-06T08:34:30 | Jupyter Notebook | UTF-8 | Python | false | false | 3,374 | py | from django.db import models
from goods.models import Goods
from datetime import datetime
from django.contrib.auth import get_user_model
User = get_user_model()
class ShoppingCart(models.Model):
"""
购物车
"""
user = models.ForeignKey(User, on_delete=models.CASCADE, verbose_name="用户")
goods = models.... | [
"1016784928@qq.com"
] | 1016784928@qq.com |
930a7109238d3c754a7e3a2ad80b35e4e4e98977 | c392c7e91bc33ce421f5d395a742d311196d29b0 | /code_bases/python_coding_practice/convert_binary_search_tree_to_sorted_doubly_linked_list.py | 459504ae012298a1041bd5fee9641026d5f6a690 | [] | no_license | sgarg87/sahilgarg.github.io | edf0d0a2235e9cdc7fdce8bfd271fe25ed8ddb55 | 5e48a72a20456d5c6ecbefe776a1c5e08d2c7e46 | refs/heads/master | 2020-06-25T07:16:40.111225 | 2020-02-05T06:37:41 | 2020-02-05T06:37:41 | 199,242,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | """
# Definition for a Node.
class Node(object):
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
"""
class Solution(object):
def inorder_traveral(self, root):
if root is None:
return []
left_subtree_nodes ... | [
"sahilgarg@sahils-mbp.home"
] | sahilgarg@sahils-mbp.home |
a1d3368f514a7654bb91a7025735b4f851dcb1fa | 904d7d50f22447a0803da412bae719a7cfa04392 | /reinforcement_learning/0x01-deep_q_learning/play.py | a61e8f79fddfaf15c8edab0c52cdc6227b6ce527 | [] | no_license | dbaroli/holbertonschool-machine_learning | 354b57932b8882598bc3ba304fd2004ba4bca169 | 7f9a040f23eda32c5aa154c991c930a01b490f0f | refs/heads/master | 2023-01-21T11:50:59.796803 | 2020-11-24T02:03:51 | 2020-11-24T02:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | #!/usr/bin/env python3
from PIL import Image
import gym
from rl.agents.dqn import DQNAgent
from rl.memory import SequentialMemory
import tensorflow.keras as K
INPUT_SHAPE = (84, 84)
WINDOW_LENGTH = 4
build_model = __import__('train').build_model
AtariProcessor = __import__('train').AtariProcessor
if __name__ == '_... | [
"931@holbertonschool.com"
] | 931@holbertonschool.com |
f151c2fd570f5d7fa76dfbbfaa7929fcd1338df3 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20201121/example_python/04contextmanager-ast.py | a268ad4351ac2765bf15079c1ad87fb29d119ed6 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 649 | py | import sys
from functools import partial
import pdb # noqa
import readline # noqa
sys.addaudithook(partial(print, "**", file=sys.stderr))
class Foo:
def __enter__(self):
print("start")
def __exit__(self, typ, val, tb):
print("end")
def my_trace(*args, **kwargs):
print("##", args, kwa... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
6d58d8f39b546ac69eb8a4e02282cdaec184633d | 36931f23be2afadaee6a047bb3e86309f64b5e99 | /Devs_vsSum/datasets/datasets_analysis/SVMs/SVM_train_within.py | dabdf6c883ca1d1e87acb2010154313cd1f24e26 | [] | no_license | cvlab-stonybrook/S2N_Release | 13cf4df6b2c8ef65bdbf6163266eb5c55080ebe9 | bc32142d059add14d550c8980adf3672485d4a98 | refs/heads/master | 2022-06-26T23:46:40.490222 | 2018-12-25T13:41:02 | 2018-12-25T13:41:02 | 235,153,446 | 0 | 0 | null | 2022-06-22T00:52:01 | 2020-01-20T17:06:09 | Python | UTF-8 | Python | false | false | 2,487 | py | import os
import sys
import numpy as np
import datasets.SumMe.path_vars as dataset_pathvars
project_root = os.path.join(os.path.expanduser('~'), 'Dev/NetModules')
sys.path.append(project_root)
from scipy.stats.stats import pearsonr
from sklearn import svm
import datasets.getShotBoundariesECCV2016 as getSegs
from vsS... | [
"zijwei@cs.stonybrook.edu"
] | zijwei@cs.stonybrook.edu |
95a969e6957bf705b69de18af84055170033f942 | 4539b71e48ec47526f7f3834098e491383096fcd | /DemoUIonly-PythonQt/chap08Graphics/Demo8_2PaintPath/myWidget.py | dc6f5f26fd7d828753bb977218bcc1ebc544c006 | [] | no_license | likeke201/qt_code | e4d5ae8894153ae7a92e4ffdc01612c0aeb7510b | e0244558764bbbcc3646e828a907cdb1cdee6225 | refs/heads/master | 2022-12-06T11:23:38.068457 | 2020-08-30T05:16:12 | 2020-08-30T05:16:12 | 291,404,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | import sys, math
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtCore import Qt,QRect,QPoint
##from PyQt5.QtWidgets import
from PyQt5.QtGui import (QPainter, QPen, QBrush,QPalette,
QFont,QPainterPath)
##from ui_Widget import Ui_Widget
class QmyWidget(QWidget... | [
"316790607@qq.com"
] | 316790607@qq.com |
7901862767d1a1783f825c5ccefdad61ef2007cf | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /DBq7SALYAgQASLcC4_4.py | f9b5704392f95a8e5a6baaad99043e882bee2c36 | [] | 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 | 35 | py |
char_count=lambda a,b:b.count(a)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
aa85081b7ca16dbbd421507a4b8b344c08782b17 | 25ef80b7e56e5594e417aef1dde64efdd5f9e9ee | /apps/accounts/migrations/0006_auto_20171206_1057.py | 42e6d10447d6cfc51de354ddec6fd8630c61cf93 | [] | no_license | HadleyLab/drmoonlight_api | 0cd1b73cd3b0b5b8e1ee33b0a210f7024f5f8be4 | 60d8d9b6d2a5beafee60e03343915ec52b0555eb | refs/heads/master | 2022-04-17T11:40:28.972056 | 2018-03-01T11:45:33 | 2018-03-01T11:45:33 | 253,760,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-12-06 10:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20171204_0816'),
]
operation... | [
"rusmiligamer@gmail.com"
] | rusmiligamer@gmail.com |
4788b31328c86d134cd168d2d5890221d723d45b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/2695.py | d8bfaa60ab889e72beab594e2817dc6e8273f173 | [] | 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 | 499 | py | case = int(raw_input())
for j in range(case):
first_answer = int(raw_input())
a = []
for i in range(4):
a.append(map(int,raw_input().split()))
second_answer = int(raw_input())
b = []
for i in range(4):
b.append(map(int,raw_input().split()))
final = list(set(a[first_answer-1])&set(b[second_answer-1]))
if l... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6b7209a1f1f4005533a7162f610365f6f30164e2 | 6089a45e9e02807fb142b855d1bfe7f3834f5bf4 | /Volume_1-Supervised_Deep_Learning/Part_2-Convolutional_Neural_Networks-CNN/Section_10-Building_a_CNN/cnn_init.py | effb81e1b758d8029d212680a5f742d36abb59e1 | [] | no_license | balajich/deep_learning_A-Z | 3417f0b99e9e94dfab08c8e49bd32f4784ff113a | 7047727159ebb46defeeb7f8b0a670b13405a7f0 | refs/heads/master | 2022-04-21T06:02:17.169149 | 2020-04-21T10:39:49 | 2020-04-21T10:39:49 | 255,046,016 | 0 | 0 | null | 2020-04-12T09:10:13 | 2020-04-12T09:10:12 | null | UTF-8 | Python | false | false | 2,001 | py | # Importing the Keras libraries and packages
import os
from keras.layers import Dense, Conv2D, MaxPooling2D, Flatten
from keras.models import Sequential
from keras_preprocessing.image import ImageDataGenerator
script_dir = os.path.dirname(__file__)
training_set_path = os.path.join(script_dir, '../dataset/training_set... | [
"balaji.chopparapu@gmail.com"
] | balaji.chopparapu@gmail.com |
afc9ce7a821c05678cfe6b8ae0cba25d7401f198 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_galleryimage_info.py | 0a1d4adfd5467b876f06b0042edfe638246df32f | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 15,331 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
ba87fd1c25a1cee12d5337cae477c0ba40cda97b | 9a3e6faa0bfca9b4a9c119bb8b7063f74d95a342 | /tests/__init__.py | 89c8f840dab489116354f089efe2572b61e52e39 | [
"BSD-3-Clause"
] | permissive | derks/drest | 7bdf624d17823cdda8bd12b27f46f9317536ea1d | 7e35375ffd884c3c124dc800f94c2f271d788e0f | refs/heads/master | 2021-01-17T07:38:50.377201 | 2013-06-14T21:11:00 | 2013-06-14T21:11:00 | 2,936,314 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 42 | py |
import os
os.environ['DREST_DEBUG'] = '1' | [
"wdierkes@rackspace.com"
] | wdierkes@rackspace.com |
f0feeb4b27a964016d4227fd520525f5f051583b | 3c9e26f68ce816c93a654232bdfa14ead0ffa836 | /quakes/hewl/hewl_rmsd_vs_prop.py | 9c4c7213b98973f42a4453aaeec2bea2b1056163 | [] | no_license | tommycarstensen/sandbox | ea96fbcad927f0cad8fe14c1358cc31349257c66 | 9bef770251bf7bd2f22703fc01188bc78a71b69a | refs/heads/master | 2021-06-09T05:57:29.694528 | 2017-08-17T17:09:48 | 2017-08-17T17:09:48 | 6,844,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,037 | py | ## HEWL scatter plots of RMSD vs misc properties (pH diff, T diff, max resol)
## imports
import os,numpy
import core
import sys
sys.path.append('/home/people/tc/svn/tc_sandbox/pdb')
import parse_mmCIF
sys.path.append('/home/people/tc/svn/tc_sandbox/misc/')
import gnuplot, statistics
sys.path.append('/home/people/tc/sv... | [
"tommy.carstensen@gmail.com"
] | tommy.carstensen@gmail.com |
90115a656975261918f2998a192fd73f8e358395 | 9784a90cac667e8e0aaba0ca599b4255b215ec67 | /keras_/kerascv/models/shufflenetv2b.py | d8f12ab626cafe6f324e9764f37b3f1081d0c8e4 | [
"MIT"
] | permissive | osmr/imgclsmob | d2f48f01ca541b20119871393eca383001a96019 | f2993d3ce73a2f7ddba05da3891defb08547d504 | refs/heads/master | 2022-07-09T14:24:37.591824 | 2021-12-14T10:15:31 | 2021-12-14T10:15:31 | 140,285,687 | 3,017 | 624 | MIT | 2022-07-04T15:18:37 | 2018-07-09T12:57:46 | Python | UTF-8 | Python | false | false | 11,952 | py | """
ShuffleNet V2 for ImageNet-1K, implemented in Keras. The alternative variant.
Original paper: 'ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design,'
https://arxiv.org/abs/1807.11164.
"""
__all__ = ['shufflenetv2b', 'shufflenetv2b_wd2', 'shufflenetv2b_w1', 'shufflenetv2b_w3d2', 'sh... | [
"osemery@gmail.com"
] | osemery@gmail.com |
45821610dd7020436c1d0650b00f28d59cd63a6e | 11e3ca0f8332835bd28ed69b20729079d071289c | /devel/lib/python2.7/dist-packages/custom_sys_msgs/msg/_AgvTrajectoryMsg2.py | 73e6d1cb9f92c873b2a354d955f76bff76e4a4b3 | [] | no_license | huan-holmes/roswrok | 7d90cdb97f3b8af849968de0e498df64448454bd | 3d7b15cd53a5f14e40538c1b8fc330e96ae8d379 | refs/heads/master | 2022-12-08T13:12:31.850804 | 2020-09-08T01:47:38 | 2020-09-08T01:47:38 | 293,672,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,899 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from custom_sys_msgs/AgvTrajectoryMsg2.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import custom_sys_msgs.msg
class AgvTrajectoryMsg2(genpy.M... | [
"1124782663@qq.com"
] | 1124782663@qq.com |
7ca9905ab390869fc420bfb8cd790484254e81ba | 8ed80561e1b3c0bcdb6201cae8af845d5da23edc | /guppe/tipo_none.py | d39268d73f1d7d23dbb24d06fcff86415f4abb6e | [] | no_license | Fulvio7/curso-python-guppe | 42d5a1ecd80c1f3b27dc3f5dad074a51c9b774eb | 98966963f698eb33e65ed58a84f96e28f675848a | refs/heads/main | 2023-08-28T13:31:12.916407 | 2021-10-09T19:03:17 | 2021-10-09T19:03:17 | 415,393,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
None
Em Python, None é um tipo de dado sem tipo.
É especificado sempre com a inicial maiúscula.
Certo: None
Errado: none
Utilizamos quando queremos criar uma variável e inicializá-la,
mas ainda não sabemos o seu tipo final.
Sempre é considerado como False.
"""
numeros = None
print(numeros)
print(type(numeros... | [
"fulvio.barichello@gmail.com"
] | fulvio.barichello@gmail.com |
d44d470fea502a0c363124a500e38a9c06cbb119 | a63fa3205ccb1920e2acf24c551789567c29d7d1 | /getting_started/super.py | 0265ddfabcf67cef6ed3c1ceca8e24e2e58930a0 | [
"MIT"
] | permissive | AoEiuV020/LearningPython | 16753efa113820fb9136c8a5c20082769a4b1263 | aac0f3f99cfd3d03a96a3c0e41da8f82ea0b8c70 | refs/heads/master | 2021-06-01T10:45:29.464592 | 2021-01-27T16:46:14 | 2021-01-27T16:46:14 | 95,938,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class CA:
def __init__(self):
self.n = 0
def fca(self):
self.n += 1
class CB(CA):
def fca(self):
super().fca()
self.n += 2
b = CB()
b.fca()
assert b.n == 3
super(CB, b).fca()
assert b.n == 4
| [
"aoeiuv020@gmail.com"
] | aoeiuv020@gmail.com |
4c824cb384095d695dd6914dab6c61de3f110690 | 2f55769e4d6bc71bb8ca29399d3809b6d368cf28 | /Miniconda2/Lib/site-packages/menuinst/knownfolders.py | 4e2c2ea2cdeee7b079acc198700a9ebb18b8c849 | [] | no_license | jian9695/GSV2SVF | e5ec08b2d37dbc64a461449f73eb7388de8ef233 | 6ed92dac13ea13dfca80f2c0336ea7006a6fce87 | refs/heads/master | 2023-03-02T03:35:17.033360 | 2023-02-27T02:01:48 | 2023-02-27T02:01:48 | 199,570,103 | 9 | 16 | null | 2022-10-28T14:31:05 | 2019-07-30T03:47:41 | Python | UTF-8 | Python | false | false | 11,271 | py | """
This code obtained from
https://gist.github.com/mkropat/7550097
The MIT License (MIT)
Copyright (c) 2014 Michael Kropat
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, i... | [
"JLiang@esri.com"
] | JLiang@esri.com |
0c0d75e367e0e15cf5e4b5212bbce34089d7a70b | 05b80d92bb2efec76f898c527cc803f931031266 | /Load Balancing/Config.py | e1ece38cee19a9cc5566e11f48d03b9c81027553 | [] | no_license | PriyankaKhire/ProgrammingPracticePython | b5a6af118f3d4ec19de6fcccb7933d84f7522d1a | 8dd152413dce2df66957363ff85f0f4cefa836e8 | refs/heads/master | 2022-08-28T00:44:34.595282 | 2022-08-12T19:08:32 | 2022-08-12T19:08:32 | 91,215,578 | 18 | 11 | null | null | null | null | UTF-8 | Python | false | false | 9,825 | py | #Config file specifing which server has what port number
class ServerConfig(object):
def __init__(self):
#key is server name and value is port number
self.port = {
'Server1':1041,
'Server2':2002,
'Server3':3003,
'Server4':4004,
'Se... | [
"priyanka.khire@gmail.com"
] | priyanka.khire@gmail.com |
f6c568c0ef124bc47bc2c3e8f99b9f4da1ff91c5 | c33496682b760deac61fedecba3e82ce4e41dfde | /scripts/e289.py | baa2322fcfaef303698bd44271c2b876cdd977ff | [
"MIT"
] | permissive | ferasalsaab/neuralnilm_prototype | c5e9cde02d475ac499b15fea62143e76adff07d0 | 2119292e7d5c8a137797ad3c9abf9f37e7f749af | refs/heads/master | 2020-04-16T14:38:03.615279 | 2018-01-29T15:30:43 | 2018-01-29T15:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,029 | py | from __future__ import print_function, division
import matplotlib
import logging
from sys import stdout
matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab!
from neuralnilm import (Net, RealApplianceSource,
BLSTMLayer, DimshuffleLayer,
Bidirectio... | [
"jack-list@xlk.org.uk"
] | jack-list@xlk.org.uk |
950d2ddb59262ac16d6030e219c34a77bbe753b2 | d5dc25ff3fc4f9c4d2a4084a65e8572844cdf298 | /crb.py | e5df5a1ab829763b8dbff95e1ad9785eb77571ef | [] | no_license | mckib2/toeplitz-cov-estimator | 1da647dfd83f25e785cb603a241cac2e82363d78 | b061ccd5a23e154407d5c23ef7f13c09bfde5c68 | refs/heads/master | 2020-05-01T14:14:07.888404 | 2019-04-18T04:17:37 | 2019-04-18T04:17:37 | 177,513,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | '''Get the CRB limit for our model.'''
import numpy as np
def getCRB(M, N, Ri):
'''Cramer-Rao bound class for Toeplitz covariance matrix.
Parameters
----------
M : int
Length of random vector, X.
N : int
Number of observations.
Ri : array_like
Inverse covariance matrix... | [
"nicholas.bgp@gmail.com"
] | nicholas.bgp@gmail.com |
cc16f7705bf2f2065e9b9599a1111189551541e2 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/op_cmp_int-98.py | a93f85da4512dcf107bc76f67fea57a9a5536b70 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | x:int = 42
y:int = 7
print(x == y)
print(x != y)
print(x < y)
print(x <= y)
print(x > y)
print($Var >= y)
print(x == x)
print(x != x)
print(x < x)
print(x <= x)
print(x > x)
print(x >= x)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
d7490b6a4774964f0ffe515724ccfc13bcde0c43 | e6f0b705a768229c160a2603393709b4b8a683be | /.history/books/views_20210423221056.py | b99da8051343b1b3a86d359c4d6cf346f396abf1 | [] | no_license | walaaElbasha/bookstore_django_basics | 0741e16e3fe69d4460c095bb8afc964f52d96f1d | 2037a434d7bdb0ca1954ca3de9f56655b77ec64e | refs/heads/main | 2023-04-19T07:01:05.416800 | 2021-04-28T15:04:15 | 2021-04-28T15:04:15 | 361,507,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from .forms import BookForm
from .models import Book
from django.contrib.auth.decorators import login_required, permission_required
@login_required
@permission_required(["books.view_book"],raise_exception=True)
def index(request):
... | [
"walaaelbasha40@yahoo.com"
] | walaaelbasha40@yahoo.com |
69325a52840bcae21a98198fc398bc14f0f5b380 | 397f69848fdaa76661e4de84c5210d44f8924f8e | /src/pybel/examples/statin_example.py | 228c70bab22c4dbaa12a1c3e44ecdfcf3bdf920d | [
"Apache-2.0"
] | permissive | bgyori/pybel | d2f9bc87c97e36c71a42942a33aa71c12e5d7d7f | 0d0f536d55ebe35750c6ab2362c0a540df3b8f1d | refs/heads/master | 2020-03-16T17:17:22.332476 | 2018-02-19T13:48:13 | 2018-02-19T13:48:13 | 132,825,399 | 0 | 0 | null | 2018-05-10T00:01:45 | 2018-05-10T00:01:45 | null | UTF-8 | Python | false | false | 2,379 | py | # -*- coding: utf-8 -*-
"""This example has some stuff about statins"""
from ..constants import *
from ..dsl.nodes import abundance, protein
from ..struct.graph import BELGraph
__all__ = [
'statin_graph'
]
statin_graph = BELGraph(
name='Statin Graph',
version='1.0.0',
description="The effects of sta... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
ea223393e160fb218ed7b822bf6ffe93f3ecda87 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/420/usersdata/329/88128/submittedfiles/exe11.py | 8f59b5115cafba735f6087c24fc572a5f543826a | [] | 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 | 320 | py | # -*- coding: utf-8 -*-
n = int(input("digite um numero com 8 algarismos: "))
soma = 0
while n < 100000000 and n > 9999999 :
for i in range (0,8,1):
resto = n % 10
n = (n - resto)/10
soma = soma + resto
print ('%d' % soma)
break
else:
print('NAO SEI')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
67bf4fe366d56746be8f2dd63623798ebdf7518d | 77ae7c76d36009daa01b2317439c1f975f7932b2 | /exercicios/ex056.py | fc0ca15bbfe15992881fa5571e0c7159de17023e | [] | 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 | 781 | py | totalidade = 0
nomemaisvelho = ''
quantidade = 0
maisvelho = 0
for a in range(0, 4):
nome = str(input('Digite seu nome: '))
idade = int(input('Digite sua idade: '))
sexo = str(input('Digite seu sexo: ')).upper()
totalidade += idade
if idade > maisvelho and sexo == 'MASCULINO' or sexo == 'M':
... | [
"matheustavares1165@gmail.com"
] | matheustavares1165@gmail.com |
ed3c47becde7fc41632fa2ec383487587a84fea4 | bfda299c39a03f10f1a3bff76e413f6523cf6d2e | /pypilot/autopilot.py | 835461b855286ff093e11e232a5f3f254990d4d9 | [] | no_license | Vrijheid13/pypilot | b4e6a6fcc206dbd89855368179a87eecf579f17e | 8b9c31df1ef263bc64447b29319916786a8a557a | refs/heads/master | 2020-08-14T20:05:39.868840 | 2019-09-26T08:03:53 | 2019-09-26T08:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,810 | py | #!/usr/bin/env python
#
# Copyright (C) 2018 Sean D'Epagnier
#
# 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 3 of the License, or (at your option) any later version.
# au... | [
"seandepagnier@gmail.com"
] | seandepagnier@gmail.com |
235af61e17b0849fa1499898680af9e357159e82 | 9c9d67b86f06b554f609ed7b58d29aadcc6451d0 | /groupdocs_comparison_cloud/models/files_list.py | 8306c1d9a1476276d6c4fe797c246f3510befde9 | [
"MIT"
] | permissive | rizwanniazigroupdocs/groupdocs-comparison-cloud-python | 3841fc0993b13b473a13c7051614fced834260ee | ddc2ec9bd93976b01552c6c139fd2d577c1ef7e8 | refs/heads/master | 2023-01-22T17:51:52.439680 | 2020-12-02T10:53:24 | 2020-12-02T10:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,045 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose Pty Ltd" file="FilesList.py">
# Copyright (c) 2003-2020 Aspose Pty Ltd
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of t... | [
"product.team@groupdocs.com"
] | product.team@groupdocs.com |
843acd1182c316c5c4d1c36f94ee2defc0a9cfb0 | 5095047656d0c2e64f65d1236dbdd3e30ee091eb | /lintcode/medium/1645_least_subsequences.py | 097abde4902f9f3e6fac3dd1ca8ab0b5bb9df4b5 | [] | no_license | simonfqy/SimonfqyGitHub | 3799fa9e868010864973700fdb8be5d37f6c2560 | fa3704af37d9e04ab6fd13b7b17cc83c239946f7 | refs/heads/master | 2023-04-05T00:33:00.989677 | 2023-03-29T06:58:21 | 2023-03-29T06:58:21 | 33,021,240 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | '''
Link: https://www.lintcode.com/problem/1645
'''
# Solution from jiuzhang.com. Uses dynamic programming. Has O(n^2) time complexity.
class Solution:
"""
@param arrayIn: The original array.
@return: Count the minimum number of subarrays.
"""
def LeastSubsequences(self, arrayIn):
n = len(... | [
"noreply@github.com"
] | simonfqy.noreply@github.com |
6ebeb7ba3b462684ed64fb97e84afed21dc2365e | 370bcd596051652f893ca1776123eaf27e7813ed | /OFFICIAL EXAM/project/project/easter_shop.py | 9582ecf4cd11da67f6db06ffceeea629ae030327 | [] | no_license | zdravkob98/Python-OOP-November-2020 | 130eb711fc06cd39da0c9b9112f0dad867867f8c | ed0abdbff32a9afcb904bc08e53bee1584e1b0d3 | refs/heads/main | 2023-02-04T10:34:36.959141 | 2020-12-23T15:39:37 | 2020-12-23T15:39:37 | 323,936,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | class EasterShop:
def __init__(self, name, chocolate_factory, egg_factory, paint_factory):
self.name = name
self.chocolate_factory = chocolate_factory
self.egg_factory = egg_factory
self.paint_factory = paint_factory
self.storage = {}
def add_chocolate_ingredient(self, t... | [
"zdravkobonev@abv.bg"
] | zdravkobonev@abv.bg |
bf20bba1175b4a8c10bdec2a1cf24187374a2e17 | 92ced2afc0647e1dff4be19a3f86235b8f6c5c9c | /setup.py | b25fca537f5201829b9e84d2ed462e573a4e068a | [
"MIT",
"Python-2.0"
] | permissive | orbingol/NURBS-Python | 3d644cacf57d6164c31617c4c3443340b46d8b5d | 8ae8b127eb0b130a25a6c81e98e90f319733bca0 | refs/heads/5.x | 2023-08-04T08:24:25.770876 | 2021-01-23T06:37:04 | 2021-01-23T06:37:23 | 58,094,079 | 526 | 153 | MIT | 2023-03-04T19:28:13 | 2016-05-05T01:04:52 | Python | UTF-8 | Python | false | false | 10,441 | py | #!/usr/bin/env python
# NURBS-Python - Copyright (c) 2016-2018 Onur Rauf Bingol
# geomdl - Copyright (c) 2018-2019 Onur Rauf Bingol
#
# 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 ... | [
"orbingol@gmail.com"
] | orbingol@gmail.com |
2c89730ebf9fe56fb4f1ae19114af1c170b5dd38 | 5cb15491182c8272fe2acfcf0ec59d5d7141f6aa | /BRuteforceHack.py | e176986bb4fe4ceab4173c1b4728970ef179b113 | [] | no_license | fun-personal-projects/VOLSBB_Brute | c52f7962a45bdf9827d3ec6378b770253c262dc9 | 1c45d2f1e18313c811d669f15f65c044b5064404 | refs/heads/master | 2022-01-14T04:33:18.904928 | 2019-03-17T10:23:45 | 2019-03-17T10:23:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from selenium import webdriver
import time
d = []
for a in range(2218, 1000, -1):
d.append('18BMA' + str(a))
browser = webdriver.Safari()
browser.get('http://phc.prontonetworks.com/cgi-bin/authlogout?URI=http://phc.prontonetworks.com/')
browser.get('http://phc.prontonetworks.com/cgi-bin/authlogin?URI=http://www.m... | [
"msubhaditya@gmail.com"
] | msubhaditya@gmail.com |
9531b03ea41cbbc5fc815ce044a35e61ace48770 | f89b95dba0e1ee5c7a5f7d13ba661db122eced68 | /plugins/Scanning/dir_scan.py | e15672f701e4c4462755aabbfdf9e187cd4fe81b | [
"Apache-2.0"
] | permissive | 1870387/Vxscan | bdafe694d27b78b00c36621b821afa753357c7d4 | 33564bac2ad5365339f55b1190aeb8e410783f85 | refs/heads/master | 2022-01-16T12:58:56.489523 | 2019-07-19T11:59:34 | 2019-07-19T11:59:34 | 197,913,823 | 1 | 0 | Apache-2.0 | 2019-07-20T10:15:39 | 2019-07-20T10:15:39 | null | UTF-8 | Python | false | false | 9,693 | py | # coding=utf-8
import re
import random
import base64
import itertools
import concurrent.futures
import difflib
import logging
from urllib import parse
from lib.sqldb import Sqldb
from lib.settings import *
from lib.cli_output import *
from lib.Requests import Requests
class Cartesian(object):
def __init__(self):... | [
"13449320+al0ne@users.noreply.github.com"
] | 13449320+al0ne@users.noreply.github.com |
9da494c0ffca5a56e57e5f1b5bfa1b5ab89bbad9 | e0bd2e00cbdfb758872a2603b0ccf68d4c882309 | /vid_addons/sale_previous_product_cost/__openerp__.py | 9c834c604283aa14cc4fce9aa2a8aa4190b22f33 | [] | no_license | vineeth993/NiceBackUp | 58fdc5cc11df50ec5baf20bce2806e1a5b617475 | 303e26a9b7e4e731ba13033cd15e754578dfab08 | refs/heads/master | 2021-07-16T23:12:22.909970 | 2021-06-19T09:20:28 | 2021-06-19T09:20:28 | 111,262,234 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 401 | py |
# -*- encoding: utf-8 -*-
{
"name": "Sale Order Customer Previous Product Rates",
"version": "1.0",
"description": """
This module allows to know the product last prices in a sale order.
""",
"author": "",
'website': "",
"depends": ['sale', 'purchase', 'stock'],
"category": "Sales M... | [
"vineeth@vidts.in"
] | vineeth@vidts.in |
171b2b42b3cd432f26429d22f3850264d2740d03 | 8f9ea3f14bdf2187de759939b2bbc87fe68ccfc0 | /tensorflow/python/kernel_tests/linalg/linear_operator_kronecker_test.py | 784c730bbc8179dd1302294b2d558e8a0c532c0c | [
"Apache-2.0"
] | permissive | davidstanke/bazel-mvn-demo | 4ea43f0ba293a28b916a27eab5f0812e9b753c2c | cff14dddce15ea7152988da576673bd15bab6c6e | refs/heads/master | 2022-10-20T07:52:29.651851 | 2018-11-22T13:17:51 | 2018-11-22T13:17:51 | 157,782,756 | 2 | 0 | Apache-2.0 | 2022-10-04T23:47:05 | 2018-11-15T22:54:09 | C++ | UTF-8 | Python | false | false | 7,520 | py | # Copyright 2018 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... | [
"davidstanke@gmail.com"
] | davidstanke@gmail.com |
62fd87acd5854113077de660d66362543154bb11 | 504a5e7c9319bda04e3d33978f64404bba47392a | /Python 200/195.py | d7fb24b579db8980dd5590c13a1923145dcfaab8 | [] | no_license | Ani-Gil/Python | 9fd02d321a7e21c07ea5fa30ae0f0336cae15861 | 5bb019bfbe19f10f20f6c5883299011717d20f55 | refs/heads/main | 2023-03-15T02:21:07.467329 | 2021-02-24T01:20:00 | 2021-02-24T01:20:00 | 324,080,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | # 195.py - 에코 서버 만들기[2]
import socketserver
HOST = ''
PORT = 9009
class MyTcpHandler(socketserver.BaseRequestHandler):
# 이 클래스는 서버 하나당 단 한 번 초기화됩니다.
# handle() 메소드에 클라이언트 연결 처리를 위한 로직을 구현합니다.
def handle(self):
print('[%s] 연결됨' % self.client_address[0])
try:
while True:
... | [
"dlatldn426@gmail.com"
] | dlatldn426@gmail.com |
13e155d7ed5724a2eb1b42b3fcc009a3396c7dd3 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_6124.py | 35c1936f425345f199be705d53fa2ec028e131be | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,844 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
98beb3fe6c0d6c5050ac7d70fffc1dce7f1605a3 | cfafa9dee053a1365be4af2caec726b94407e9a0 | /sfa/sfa/rspecs/elements/versions/iotlabv1Lease.py | eebb1ae27a76e37f8e388eb717763788d9ad0e54 | [] | no_license | gnogueras/sfa | ec0cf8f5459738d50e6d96011032c79244ba39fc | 424616cc2d392aacc0c066fb989406fe2eb8d44d | refs/heads/master | 2021-01-01T18:55:28.713935 | 2014-12-03T12:22:57 | 2014-12-03T12:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | from sfa.util.sfalogging import logger
from sfa.util.xml import XpathFilter
from sfa.util.xrn import Xrn
from sfa.rspecs.elements.lease import Lease
class Iotlabv1Lease:
@staticmethod
def add_leases(xml, leases):
network_elems = xml.xpath('//network')
if len(network_elems) > 0:
... | [
"gerard.marin.nogueras@gmail.com"
] | gerard.marin.nogueras@gmail.com |
171fd4747656a195587a45eba1633ebbcdf90e19 | 947f6edd0858aa40d159fa1e285ec5cc3805f753 | /web_scrape.py | ba80908d7e9311b6a8141b48b294dd75a183d7f5 | [] | no_license | pvcraven/networking_down_under | ff2cefeddb14d4f86cf00bcd599260c3802162d6 | c2ef4d6d2b5675a9a321502ebec0474309371590 | refs/heads/master | 2022-06-01T05:30:40.697155 | 2022-05-27T14:27:34 | 2022-05-27T14:27:34 | 166,278,649 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | """
Example showing how to read in from a web page
"""
from bs4 import BeautifulSoup
import urllib.request
# Read in the web page
url_address = "http://thehill.com"
page = urllib.request.urlopen(url_address)
# Parse the web page
soup = BeautifulSoup(page.read(), "html.parser")
# Get a list of level 4 ... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
576d91198e0b1babc0a8a4816884ae02501b73c6 | b0d7d91ccb7e388829abddb31b4aa04a2f9365cd | /archive-20200922/arrays/remove_element.py | cedb96885a3d6074c6e9bac4c4bd73cf16a4f05c | [] | no_license | clarkngo/python-projects | fe0e0aa02896debe82d1e9de84b1ae7d00932607 | 139a20063476f9847652b334a8495b7df1e80e27 | refs/heads/master | 2021-07-02T10:45:31.242041 | 2020-10-25T08:59:23 | 2020-10-25T08:59:23 | 188,570,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # Source: https://leetcode.com/problems/remove-element/
# Given an array nums and a value val, remove all instances of that value in-place and return the new length.
# Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
# The order of elements c... | [
"clarkngo@gmail.com"
] | clarkngo@gmail.com |
ccf56fd509f01dd9202e548a772262824a079ab0 | c76378caae7b98df7ac5f98d9bf22058fb8d4dc7 | /sample001/bin/easy_install | 451a7bb0362ad2fb031acbbc9c4206a998494d22 | [] | no_license | rnrn-1234/my-first-blog | 3a8d97c5d97fdeebcb235ec17e2c83973e910183 | f94009cad164c2323fc111d24dca3bd73c9c5ac7 | refs/heads/master | 2023-01-04T13:59:21.872342 | 2020-10-27T09:01:03 | 2020-10-27T09:01:03 | 306,551,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/home/rwduser/djangogirls/sample001/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com | |
5e7c5ef536832565383d06ca5952ccdb4356a803 | db49a627cdb91e951b0deec91ebb070f09065ecc | /config-identity.py | eff42a19cf289e42401b87d6e32bbdb2c4ccc316 | [] | no_license | Tehsmash/fopenstack | f7cafad1a7b0ce7bbb3d3e52c4a2419ca4c81a3f | d6f989dbd1ede0db2ce8902e5d94f1d5ecfdff12 | refs/heads/master | 2021-01-15T08:27:16.513299 | 2015-01-21T01:39:36 | 2015-01-21T01:39:36 | 27,264,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | # Server Specific Configurations
server = {
'port': '5000',
'host': '0.0.0.0'
}
# Pecan Application Configurations
app = {
'root': 'fopenstack.controllers.fidentity.root.RootController',
'modules': ['fopenstack'],
'static_root': '%(confdir)s/public',
'template_path': '%(confdir)s/fopenstack/tem... | [
"sam@code-smash.net"
] | sam@code-smash.net |
ef7636531f432f05295a3e77333e4bc5268de339 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2609/60774/274611.py | fc01adb19047f4074168258f29a259733e37bab6 | [] | 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 | 335 | py | t = int(input())
for i in range(0,t):
instr = list(map(int,input().split(' ')))
numLst = list(map(int,input().split(' ')))
k = instr[1]
cur = 0
for num in numLst:
if(numLst.count(num) == 1):
cur = cur + 1
if(cur == k):
print(num)
break
else:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7b7038ca380a3b4b271fdfdcb655ad31bf73c359 | afacf418e4013444b6e0d5e33efdbb7dbb789a01 | /Q5_볼링공 고르기.py | 3fd5b8c45afd06fb3f679304b14e8ef5e426860a | [] | no_license | kim-kiwon/re_solve | 1a63623440571da488b284dace80c27310381018 | 925571517b7369a884bdf81b498f3904f79849aa | refs/heads/main | 2023-03-26T13:30:57.263332 | 2021-03-22T13:12:15 | 2021-03-22T13:12:15 | 345,052,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | n, m = map(int, input().split())
data = list(map(int, input().split())) #각 공별 수
balls = [0] * (11)
for i in data:
balls[i] += 1
count = 0
for i in range(m+1):
n -= balls[i] #같은 무게, 이전 무게 제외
count += (n * balls[i]) #해당 수 곱해줌(같은 무게 다른공으로 치므로)
print(count) | [
"76721493+kim-kiwon@users.noreply.github.com"
] | 76721493+kim-kiwon@users.noreply.github.com |
b5a1dcd433f55c75fa9e044d4164749a97104512 | f835f3b65a8256e4d671e4f6bb364b289517ec05 | /apicultur/apicultur_io/freeling_ner_es.py | b2b0e4bfed1c778be8b252318879594cb225d63f | [] | no_license | jgsogo/apicultur-python | 67ccb26f35504093aa099b1847c4c853ec5dc493 | 15064ecaece976b6c34d3a5d6f541588c129da5c | refs/heads/master | 2016-09-06T05:44:15.188388 | 2015-09-16T15:12:10 | 2015-09-16T15:12:10 | 39,192,163 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from apicultur.service import Service
class FreelingNER(Service):
"""
Named entity recognition API (Spanish): This API returns all named entities
(people, places, organizations, institutions, etc) mentioned in a given text
written in Spanish.
+Info: h... | [
"jgsogo@gmail.com"
] | jgsogo@gmail.com |
ad5513af200c44d2838d8515f7e2e2bfc9033e17 | 80487dedb0192ca070939088974e0438085547a8 | /test_haystack/multipleindex/__init__.py | 7b73b57e4a0be0a793f9384c422abcc251137594 | [
"BSD-3-Clause",
"MIT"
] | permissive | yuang1516/django-haystack | e9bd9932a1d7f35d64ef948b1b1adbab87f12ecd | 49eacb33e3162242dc2c40b4836e8820a9dd17bf | refs/heads/master | 2020-09-22T11:26:22.869009 | 2019-10-15T13:49:57 | 2019-10-15T13:49:57 | 225,174,886 | 1 | 0 | NOASSERTION | 2019-12-01T14:27:43 | 2019-12-01T14:27:43 | null | UTF-8 | Python | false | false | 642 | py | # encoding: utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
import haystack
from haystack.signals import RealtimeSignalProcessor
from django.apps import apps
from ..utils import check_solr
_old_sp = None
def setup():
check_solr()
global _old_sp
config = apps.g... | [
"chris@improbable.org"
] | chris@improbable.org |
a3ab2fb88272213b47384eed34ee5ddc7a00b097 | c0578b14ebaef889ffc75551ebcc7e5c80b6069e | /src/392_is_subsequence.py | efac4f55ee83d3edd9a136a9ede6021f3e446d8b | [] | no_license | BrianQcq/LeetCode | 88ee122aa2b358c61d6980c159008e8ccac6cc8c | 127ca7d82fa15214da8d5e9fbc461831cdb6b60b | refs/heads/master | 2020-06-10T04:20:33.798787 | 2019-11-12T07:56:58 | 2019-11-12T07:56:58 | 193,580,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import collections
import bisect
class Solution(object):
def isSubseq(self, s, t):
i = j = 0
while i < len(s) and j < len(t):
if s[i] == t[j]:
i += 1
j += 1
return i == len(s)
# binary search Solution
class Sol(object):
def createMap(self, s):
posMap = collections.defaultdict(list)
for i, char... | [
"qiuchuanqin@gmail.com"
] | qiuchuanqin@gmail.com |
6ae1f4e1ae32b9b875365f511a6bb2e0141ed21a | 17b6820befa1a99d930cc167382cd66c2f1aeb10 | /tests/conftest.py | fcdddc826a06124ad6fc2cfde912e62a58a4be9a | [
"MIT",
"BSD-2-Clause"
] | permissive | benbovy/scikit-build | d7e867037ee3a5dc042641b371981c579fc72e85 | 078a74e08f5b6e9a39cd8bec3a8d238a684ec450 | refs/heads/master | 2023-04-03T17:52:02.046333 | 2021-12-28T17:39:03 | 2021-12-28T17:39:03 | 215,044,793 | 0 | 0 | NOASSERTION | 2019-10-14T12:59:01 | 2019-10-14T12:59:00 | null | UTF-8 | Python | false | false | 70 | py | import pytest
pytest.register_assert_rewrite('tests.pytest_helpers')
| [
"jchris.fillionr@kitware.com"
] | jchris.fillionr@kitware.com |
ba5fedfbfdfa88487c23405b432a1788c703b2fe | b85e34315815c6deae6aa0b4a64f2bd6c14da2cf | /pytorch3d/renderer/mesh/rasterizer.py | 13ffe184551217b4bcb8218aefd0ed1b32db7aed | [
"BSD-3-Clause"
] | permissive | sailab-code/pytorch3d | 1a0ecf4beae74d5c5aacaf7491a472fe4483673f | d5d1c3a6415e9566ff008d0ad9ff48bff78b3a1e | refs/heads/master | 2023-02-26T00:37:31.802902 | 2021-02-03T16:05:11 | 2021-02-03T16:05:11 | 316,558,238 | 0 | 0 | NOASSERTION | 2021-01-15T17:47:50 | 2020-11-27T17:06:29 | Python | UTF-8 | Python | false | false | 5,826 | py | # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
from typing import NamedTuple, Optional, Tuple, Union
import torch
import torch.nn as nn
from .rasterize_meshes import rasterize_meshes
# Class to store the outputs of mesh rasterization
class Fragments(NamedTuple):
pix_to_face: torch.Tens... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b7b98d4db514718356bf5b447dec6974ba160e4b | 722af8e6fa81960a6119c2e45ba6795771bad595 | /agents/migrations/0022_visited.py | f7f65870180383f020204a87fd35e4b91cb37d58 | [] | no_license | witty-technologies-empowerment/pmc | 85d21fa3c360d40adeec7ca93792b5bc68c258e5 | 201bee60197240eec911637e136cf14bc5814eec | refs/heads/master | 2023-05-27T12:37:48.894933 | 2021-06-13T04:34:57 | 2021-06-13T04:34:57 | 376,439,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # Generated by Django 2.2.6 on 2019-10-08 12:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('agents', '0021_auto_20191008_1136'),
]
operations = [
migrations.CreateModel(
name='visited',
fields=[
... | [
"www.spbiology@gmail.com"
] | www.spbiology@gmail.com |
62acaa52a3f91d72a18756795452c7737275e53c | a07bd66f90e2fc23d9f4cd8831f5bc51e3e49e2b | /Doodle/model/resnet_50.py | cfa2b77de4a997f492e72db1d04eb77d42447030 | [] | no_license | rainingDesert/Research | 197c5ddc334f2538ddc4bb026b1d0df9a4059a44 | d9b24392836e015da007acfed0ae32259674ef18 | refs/heads/master | 2020-04-17T09:37:26.924277 | 2019-01-21T00:00:52 | 2019-01-21T00:00:52 | 166,465,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,366 | py | import torch.nn as nn
from torchvision import models
import torch
class FC_Resnet(nn.Module):
def __init__(self, model, num_classes):
super(FC_Resnet, self).__init__()
# feature encoding
self.features = nn.Sequential(
model.conv1,
model.bn1,
model.relu,... | [
"602052254@qq.com"
] | 602052254@qq.com |
ee2b27d26b1ec338f87a06be8e680fd12483d596 | 9cf934fd420946510a7fd0e4b90849219c89e0ed | /YourNotes/urls.py | 92b5874ad8f249c3d897a771a10d1934354c6c6b | [] | no_license | sabal202/YourNotes | 3624a9c90ae5da5c453d1baa5df8b36fafb4aa5d | d2ad2a727ffb9ed3a5d3dd36562067615ff4eab5 | refs/heads/master | 2020-04-26T04:28:12.419339 | 2019-03-01T13:04:49 | 2019-03-01T13:04:49 | 173,303,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | """YourNotes URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"sabal2000@mail.ru"
] | sabal2000@mail.ru |
05d145c42c9f50f78b9d153e637c9b8b95027dd8 | 81cac5d646fc14e52b3941279d59fdd957b10f7e | /homeassistant/components/fritz/sensor.py | d264d4b66030da57a616f55a4f89fab47de21c3c | [
"Apache-2.0"
] | permissive | arsaboo/home-assistant | 6b6617f296408a42874a67a71ad9bc6074acd000 | 554e51017e7b1b6949783d9684c4a0e8ca21e466 | refs/heads/dev | 2023-07-27T20:56:52.656891 | 2022-01-19T19:30:57 | 2022-01-19T19:30:57 | 207,046,472 | 2 | 0 | Apache-2.0 | 2019-09-08T01:35:16 | 2019-09-08T01:35:16 | null | UTF-8 | Python | false | false | 11,429 | py | """AVM FRITZ!Box binary sensors."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from datetime import datetime, timedelta
import logging
from typing import Any, Literal
from fritzconnection.core.exceptions import FritzConnectionException
from fritzconnectio... | [
"noreply@github.com"
] | arsaboo.noreply@github.com |
e9ee6c283557fe783a9c93a2d444c18db338d659 | 03c1aaf5a8bbccb5631b69cabc79fb9e804cddc8 | /challenge/celery.py | cbee20cef0041be24b45adc577a37f9ae24315a3 | [] | no_license | thatsokay/coding-challenge | 48e9fd5d12e0f8e8a46994833f3d24b77235157d | bc6d233a54bc27ba1bdeb4532a7cba13f6976cc8 | refs/heads/master | 2020-04-23T07:47:56.279551 | 2019-02-17T07:31:06 | 2019-02-17T07:31:06 | 171,016,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'challenge.settings')
app = Celery('challenge')
# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
# - n... | [
"andre@andre-wong.com"
] | andre@andre-wong.com |
b30adb4f255b64a83b15c95c299fd2876bf5995e | dc47d02bf18e4c303fdd6805b242dbd909acdc24 | /first_stage/practice/practice_47.py | 29729a530d0cd60f33e2d4ce9e9b3cbafe4fc3ac | [] | no_license | SilveryM/studypython | 192c9f860e907ab4635b8f540a96e9ce5d45b70b | d0d807f3a6e4691efb9a72b9e64ebc4a510a6f72 | refs/heads/master | 2021-03-01T03:55:07.963444 | 2020-07-17T03:13:45 | 2020-07-17T03:13:45 | 245,751,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #两个变量值互换。
'''
#!/usr/bin/python
# -*- coding: UTF-8 -*-
def exchange ( a , b )
a , b = b , a
return ( a , b )
if __name__ == ' __main__ '
x = 10
y = 20
print ' x = %d,y = %d ' % ( x , y )
x , y = exchange ( x , y )
print ' x = %d,y = %d ' % ( x , y )
''' | [
"="
] | = |
32d9029d14bef755f8d68b0bf5d55cfd012f15fa | 782bf2c8ec5994cbd56f1b7323612751e8964736 | /biostar/server/management/commands/patch.py | 992d9cc9f5f4822e3c34cfe0d6093d2063de7391 | [
"MIT"
] | permissive | tvvocold/biostar-central | 6f00fdb3c034000061b60bedacddc8cefce177a1 | d4300f0b622af9f14666068cad31e3c20bc94a2d | refs/heads/master | 2022-08-28T22:01:54.294752 | 2015-03-16T02:39:50 | 2015-03-16T02:39:50 | 32,296,985 | 1 | 0 | NOASSERTION | 2022-07-06T20:24:12 | 2015-03-16T02:37:15 | Python | UTF-8 | Python | false | false | 7,278 | py | __author__ = 'ialbert'
from django.core.management import call_command
from django.conf import settings
from django.db import connection, transaction
from django.db.models.loading import get_app
from StringIO import StringIO
from django.core.management.base import BaseCommand, CommandError
import os, re
from optparse ... | [
"istvan.albert@gmail.com"
] | istvan.albert@gmail.com |
8af235c82052593fea3fd62ee53073004c7a90cb | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1547.001-3.py | 156f5e1b2ed3a6ba290370a7a50b7a0c8b7f292e | [] | 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 | 2,894 | 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 = 'Privesc/T1547.001-3'
self.controller_type = ''
self.external_id = 'T1547.001'
... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
5c914a2bae5de8f7f217f48c158a6ec87d35208b | fe9cf190440659374fa26a70d27c60ebc0895064 | /session-2/3-string-slices.py | efbbbab7b4179c1ba401c25d536169c4de7a9a5f | [] | no_license | djrrb/Python-For-Visual-Designers-2020 | 59cb33709e2d87c691fd9943c2634da15df79246 | 3ec006f30613b1d4cf34fe832d7d66c104bd0c45 | refs/heads/main | 2023-02-26T13:04:20.663920 | 2021-01-29T03:19:26 | 2021-01-29T03:19:26 | 294,243,994 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | myString = 'hello world'
# get the first letter of a string
print(myString[0])
# get the second letter of a string
print(myString[1])
# get the last letter of a string
print(myString[-1])
# get the first four letters
print(myString[:4])
# get the last four letters
print(myString[-4:]) | [
"david@djr.com"
] | david@djr.com |
fc6493a31b8c123ba2ff1464a3745a786eadfe34 | 13851d880174dc49e39c72b9b0e7f1b0984f123a | /django-manipulation/data_mining/data_mining/settings.py | d62b2a4ecb23925d603b841e3d6922d90a996c4d | [] | no_license | bopopescu/django-3 | e02a6692a6e93610b2132fbb1ed991039c0dcc4e | deec45f1880fd8315cb85e307555269f5022d885 | refs/heads/master | 2022-11-29T06:56:31.772422 | 2015-05-28T09:06:21 | 2015-05-28T09:06:21 | 282,467,182 | 0 | 0 | null | 2020-07-25T15:05:51 | 2020-07-25T15:05:50 | null | UTF-8 | Python | false | false | 3,039 | py | """
Django settings for data_mining project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pa... | [
"deanarmada@gmail.com"
] | deanarmada@gmail.com |
cefb731829887a31e505b5d3cca234eed516ed00 | 45b159e64114d8759c0e2987bd0a6f02f60daf4d | /Python/APL/ch9/shortestUniquePrefix.py | d30e4dd808f774f302325e5dc9b6daaa6a204c23 | [] | no_license | afcarl/Coding_Interview_Problems | 45b24b849a90581db5327811c5ab78237f4d5ac0 | 1256d4394d506aec875e9e19300404a9b32a4eb1 | refs/heads/master | 2020-03-16T20:16:54.706152 | 2015-02-11T05:51:56 | 2015-02-11T05:51:56 | 132,953,286 | 1 | 0 | null | 2018-05-10T20:54:14 | 2018-05-10T20:54:14 | null | UTF-8 | Python | false | false | 1,601 | py | '''
Finding the shortest prefix of s which is not a prefix of any string in D
tested - works
Created on Oct 26, 2014
@author: Ben Athiwaratkun (pa338)
'''
#from __future__ import division
#import numpy as np
def buildTrie(dictionary):
# 1. construct a trie based on the dictionary
chPosition = 0
trie = {... | [
"ben.athiwaratkun@gmail.com"
] | ben.athiwaratkun@gmail.com |
0202f572bce20ab796a0cd2cc0267fa39b2a52a2 | 4a36849188747a1e3cc4b052eb6bc3a21e3e53bb | /BlueBridgeCup/Subject/2020-/National_Java_B/A/code.py | ea499853bf298ec1d0618d381c82e8a355c181f5 | [] | no_license | koking0/Algorithm | 88f69a26f424d1b60a8440c09dd51c8563a86309 | 2828811ae2f905865b4f391672693375c124c185 | refs/heads/master | 2022-07-06T17:10:07.440930 | 2022-06-24T14:59:40 | 2022-06-24T14:59:40 | 216,952,717 | 35 | 48 | null | 2020-07-21T02:46:26 | 2019-10-23T02:41:09 | Java | UTF-8 | Python | false | false | 83 | py | cnt = 0
for i in range(1, 2021):
if 'B' in str(i):
cnt += 1
print(cnt)
| [
"alex18812649207@gmail.com"
] | alex18812649207@gmail.com |
771022a0b7662de646514116fc6b98420782de39 | c77148a25435b50a35fceab36112fba18dbb0866 | /backup/Jun17/units/Sentinel.py | 54c05fb288b6a565620038802e60c9269c1eade4 | [] | no_license | SozBroz/PrismataBot | 51fbecf90950d13eb52606a5b18984b5474746ba | f375ca8dc396abbca4134f70cb262fc78b90a17e | refs/heads/master | 2020-05-31T13:37:50.102010 | 2019-06-06T02:48:01 | 2019-06-06T02:48:01 | 136,826,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | #!/usr/bin.python3.6
class Sentinel:
def __init__(self,owner):
self.owner=owner
self.lifespan=-1
self.frontline=False
self.stamina=3
self.cooldown=1
self.defaultBlocking=True
self.assignedBlocking=False
self.health=4
self.fragile=True
self.attack=1
self.startTurnDict={
}
self.onClickDict={
... | [
"Phil@oc1140302110.ibm.com"
] | Phil@oc1140302110.ibm.com |
7ab07c53381c5d3d9b0a625071f1b8a0bb0c3d74 | e2c120b55ab149557679e554c1b0c55126e70593 | /python/imagej/IsoView-GCaMP/tests/test_features_plus_asm.py | f4431a71fcb5f89594ae522f736f8450549f48a0 | [] | no_license | acardona/scripts | 30e4ca2ac87b9463e594beaecd6da74a791f2c22 | 72a18b70f9a25619b2dbf33699a7dc1421ad22c6 | refs/heads/master | 2023-07-27T14:07:37.457914 | 2023-07-07T23:13:40 | 2023-07-07T23:14:00 | 120,363,431 | 4 | 5 | null | 2023-05-02T11:20:49 | 2018-02-05T21:21:13 | Python | UTF-8 | Python | false | false | 4,873 | py | import sys, os
sys.path.append("/home/albert/lab/scripts/python/imagej/IsoView-GCaMP/")
from lib.features_plus_asm import initNativeClasses
from lib.features import makeRadiusSearch
from lib.dogpeaks import getDoGPeaks
from lib.util import numCPUs, nativeArray
from lib.registration import fit
from net.imglib2.view im... | [
"sapristi@gmail.com"
] | sapristi@gmail.com |
1e8a9a374fdc3a3d8fbce233b58bfc05d8aa8f08 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/17/usersdata/98/6991/submittedfiles/lecker.py | 56f1fb7e0595457a3e0eb442633e4f82fdd79e5d | [] | 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 | 432 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a=input('Digite o valor de a: ')
b=input('Digite o valor de b: ')
c=input('Digite o valor de c: ')
d=input('Digite o valor de d: ')
if a>=b and b>=c and c>=d:
print('S')
elif b>=a and b>=c and c>=d:
print('S')
elif c>=b and c>=d and b>=a:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
66d7eac475750887fa7c6ea3f1c38cf8bd27cf85 | 039b7c37fa526962632bfbc577252bec74fb6acb | /longest_non_repeating.py | 37ac985ce3f36a335d1a5755e4f2a5fd8a1b6a12 | [] | no_license | shahakshay11/Strings-1 | 722cc71f3b70896e117bed8fe6b859f01cd4e06b | 234def3c9518af43f75e676c834b193b31d4f315 | refs/heads/master | 2022-06-07T18:17:10.343078 | 2020-05-05T21:08:04 | 2020-05-05T21:08:04 | 261,581,302 | 0 | 0 | null | 2020-05-05T20:56:16 | 2020-05-05T20:56:15 | null | UTF-8 | Python | false | false | 1,956 | py | """
// Time Complexity : O(n)
// Space Complexity : O(n)
// Did this code successfully run on Leetcode : Yes
// Any problem you faced while coding this : No
// Your code here along with comments explaining your approach
Algorithm Explanation
Idea is to keep track of the non repeating char index and span/window of the... | [
"akshay.vjti11@gmail.com"
] | akshay.vjti11@gmail.com |
4f500cf1d29a3ed5179af3649ac152e55e99d73c | 06ba99cba77c58a9c8793bcce28aaacbc70a1dd8 | /toyClassification/Ensemble-MAP-SGDMOM/datasets.py | 485a2204a37fed07c5a4c9b93027a0d2cf4a10f3 | [
"MIT"
] | permissive | frezaeix/evaluating_bdl | 7a551ecfd2e917cfc709b6a6e3b826a01b2da5da | bd0a464981c18de8479b6be2d91867527016c8d3 | refs/heads/master | 2021-01-01T20:54:24.942602 | 2020-02-09T16:24:36 | 2020-02-09T17:04:19 | 239,334,758 | 0 | 0 | MIT | 2020-02-09T16:21:54 | 2020-02-09T16:21:54 | null | UTF-8 | Python | false | false | 2,192 | py | # code-checked
# server-checked
import torch
import torch.utils.data
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import pickle
class ToyDataset(torch.utils.data.Dataset):
def __init__(self):
... | [
"fregu856@gmail.com"
] | fregu856@gmail.com |
a5e53dca396da59eec0de17f2fc7adbb37fc0c73 | 95a566040ff1f008c3a33b7a86adc4b0abd1cf38 | /microflack_common/requests.py | 54eb1fb31ee3019fa6a86499ab3f38aaa02b43ec | [
"MIT"
] | permissive | zwotzie/microflack_common | c50f8bb20519bd350dd98e8aeb921a8944568ab0 | f755029b08dcecc84e5c297591e66cef26edd91b | refs/heads/master | 2021-05-05T21:09:26.050098 | 2018-02-13T06:04:38 | 2018-02-13T06:04:38 | 115,509,349 | 0 | 0 | null | 2017-12-27T10:20:15 | 2017-12-27T10:20:15 | null | UTF-8 | Python | false | false | 3,930 | py | """Replacement requests functions.
The get(), post(), put() and delete() functions in this module can be used as
a drop-in replacement for the ones in python-requests. These functions
optionally accept relative URLs (for example /api/users), which are sent to
the load balancer configured for the service. The functions... | [
"miguel.grinberg@gmail.com"
] | miguel.grinberg@gmail.com |
b2c494840ca1cc657f54ecf234a9d4cb8ccd2a16 | 2baeb9965f64214e5a1478ab5139c53bb363ff50 | /torch/fx/experimental/fx2trt/passes/fuse_permute_matmul.py | 5bc2a3f5fe6c485f002fb2f44df47b8bf31ad18c | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | Dithn/pytorch | b327d9a7434a0dbadb7bbf148b22cef7d2e4bc1c | 86399d8e0cb72dfd1501fb9be870ac29af38e241 | refs/heads/master | 2023-04-26T12:01:26.043128 | 2021-11-16T19:54:14 | 2021-11-16T19:55:40 | 207,961,157 | 1 | 0 | NOASSERTION | 2021-11-17T02:14:51 | 2019-09-12T03:58:02 | C++ | UTF-8 | Python | false | false | 5,514 | py | import warnings
import torch
import torch.fx
import torch.fx.experimental.fx_acc.acc_ops as acc_ops
def trt_transposed_matmul(lhs: torch.Tensor, rhs: torch.Tensor, lhs_transposed: bool, rhs_transposed: bool):
if lhs_transposed:
lhs = lhs.transpose(-1, -2)
if rhs_transposed:
rhs = rhs.transpos... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8cd7d483b99d38af4e54644f6c475d39ee197dc1 | 1719920a92f7194766624474b98d59ef8d6eddaf | /models/workbook_chart_title.py | 27c75baecd0b4b9445a0f3ca37106dd9e666bdee | [
"MIT"
] | permissive | MIchaelMainer/msgraph-v10-models-python | cfa5e3a65ba675383975a99779763211ed9fa0a9 | adad66363ebe151be2332f3ef74a664584385748 | refs/heads/master | 2020-03-19T12:51:06.370673 | 2018-06-08T00:16:12 | 2018-06-08T00:16:12 | 136,544,573 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | # -*- coding: utf-8 -*-
'''
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
#
# This file was generated and any changes will be overwritten.
'''
from __future__ import unicode_literals
from ..model.workbook_chart... | [
"mmainer@microsoft.com"
] | mmainer@microsoft.com |
7711a996b5732328ddc1dc1be40f3e6212b156ad | 7646f7fbef187fab287282bbade6accd88b90aac | /re_born_ver2.0/APISERVERdev/RebornAPI/local/serializers.py | 09ad31dd8cc1292f74e27489fe2f1b02b4278a79 | [] | no_license | leeiopd/Re-born | b37e95a7279201c347d4d664b326429e470b4aad | 5268f73b22f9e3ff972edcd1b25478b69e318ee3 | refs/heads/master | 2023-01-10T19:10:20.007205 | 2019-12-07T06:10:01 | 2019-12-07T06:10:01 | 219,390,477 | 2 | 0 | null | 2023-01-05T02:19:26 | 2019-11-04T01:12:07 | Jupyter Notebook | UTF-8 | Python | false | false | 366 | py | from django.contrib.auth.models import User
from rest_framework import serializers
from .models import Place, TrashInfo
class PlaceSerializer(serializers.ModelSerializer):
class Meta:
model = Place
fields = "__all__"
class TrashInfoSerializer(serializers.ModelSerializer):
class Meta:
... | [
"leeiopd@hanmail.net"
] | leeiopd@hanmail.net |
226da772aa3dbcafa413f0cd06320e4e5431473f | e41633a4816260be9e138e3460c3971716765544 | /FuntionReturn_LuasPersegiPanjang.py | d891dd94de432cad5d04919e5db3deab5130f176 | [
"MIT"
] | permissive | pawarspeaks/Python-Projects | c608ed8cc8c938a922b16ff8d4bd03b5f009b5ba | 9ba2f21a40e9d2297395cb4e9453687a0de4d754 | refs/heads/main | 2023-08-22T23:38:41.708153 | 2021-10-29T19:13:48 | 2021-10-29T19:13:48 | 422,687,844 | 4 | 0 | null | 2021-10-29T19:13:20 | 2021-10-29T19:13:20 | null | UTF-8 | Python | false | false | 338 | py | print("====LUAS PERSEGI PANJANG====")
def Luas_Persegi_Panjang():
panjang = int(input("Masukan Panjang: "))
lebar = int(input("Masukan Lebar: "))
return (panjang * lebar)
luas = Luas_Persegi_Panjang()
print("Luas Persegi Panjang: {}".format(luas))
luas = Luas_Persegi_Panjang()
print("Luas Persegi Panjang: ... | [
"noreply@github.com"
] | pawarspeaks.noreply@github.com |
f157fcf06624ce111a9932c0973832a2becf59e0 | 4cb8c8f11c2a19a75495771b1d6b53881cd67b58 | /Production/python/Run2016H-03Feb2017_ver3-v1/SinglePhoton_cff.py | 3a160b9e8eb2ed99f9d3516e50d8e4ad10c03dbb | [] | no_license | kpedro88/TreeMaker | d7498274106067e56aebbed7f086fbee8bf46f7e | 0260dc10392e4828452e559beb3b6dc8fa765df5 | refs/heads/upgrade2017 | 2023-07-06T13:24:04.465706 | 2018-04-03T17:56:48 | 2018-04-03T17:56:48 | 38,841,239 | 0 | 1 | null | 2021-11-11T17:20:57 | 2015-07-09T19:35:41 | Python | UTF-8 | Python | false | false | 1,589 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/data/Run2016H/Sing... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
f74009c0605b54d9a0106b0908d09d26f7091d47 | 01932366dd322ec3459db9dd85a2fd8d22a82fcb | /tf114/tf02_eager.py | 76d1b86ed1359a7810b72230cc872fd504b25e6c | [] | no_license | Jeong-Kyu/A_study | 653f5fd695109639badfa9e99fd5643d2e9ff1ac | 6866c88fcc25841ceae2cd278dcb5ad5654c2a69 | refs/heads/master | 2023-06-11T02:44:20.574147 | 2021-07-05T08:59:43 | 2021-07-05T08:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #즉시 실행 모드
# from tensorflow.python.framework.ops import disable_eager_execution
import tensorflow as tf
print(tf.executing_eagerly()) # False
tf.compat.v1.disable_eager_execution()
print(tf.executing_eagerly()) # False
print(tf.__version__) #2.3.1
hello = tf.constant("Hello World")
print(hello)
# Tensor("Const:0", s... | [
"jare92n@gmail.com"
] | jare92n@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.