blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
705bb752a9258e3bc2c8ee9f16145cfd532bc894 | 60c0ca4ef3ad20bad04311473b2f4044f54739d2 | /store/api/migrations/0005_order_sold_at.py | af648d3a29d3d09976b8254d48088c4f4700c7c2 | [] | no_license | Jimiliani/rainforest | 361915024cc2a93a9bb8621372627b2d84176271 | b1bf65ee4441d1a4980a2e65ce2cfc629b9d6a7a | refs/heads/main | 2023-06-19T18:10:38.879924 | 2021-07-21T14:54:05 | 2021-07-21T14:54:05 | 387,679,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 3.1.5 on 2021-07-20 19:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20210720_2159'),
]
operations = [
migrations.AddField(
model_name='order',
name='sold_at',
... | [
"dikorolyov@mail.ru"
] | dikorolyov@mail.ru |
c724c19fb17cb22589d49e60505ecf79ee04e7c5 | d1742451b25705fc128acc245524659628ab3e7d | /Data Structure & Algorithm/Disjoint Set Union/10685 - Nature.py | b0b9ec8421bcfe7e9e623074eb4e6f6e4a873ba0 | [] | no_license | Shovon588/Programming | ebab793a3c97aedddfcad5ea06e7e22f5c54a86e | e4922c9138998358eed09a1be7598f9b060c685f | refs/heads/master | 2022-12-23T18:29:10.141117 | 2020-10-04T17:29:32 | 2020-10-04T17:29:32 | 256,915,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | def makeset(n):
par[n] = n
def find(r):
if par[r]==r:
return r
par[r] = find(par[r])
return find(par[r])
def joint(a,b):
u = find(a)
v = find(b)
if u!=v:
par[u] = v
def generate_result(dic):
res = -1
for i in range(1,n+1):
temp = find(i)
if temp ... | [
"mainulislam588@gmail.com"
] | mainulislam588@gmail.com |
76eb0ff4bccebf9ef628e4a625ec26945dffb10d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02573/s607211232.py | a15ccc098a97d0f2076b85071f021635d77845ac | [] | 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 | 735 | py | class UnionFind:
def __init__(self, n):
self.r = [-1] * n
def root(self, x):
if self.r[x] < 0:
return x
self.r[x] = self.root(self.r[x])
return self.r[x]
def merge(self, x, y):
x, y = self.root(x), self.root(y)
if x == y:
return F... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
762b1c64e435700c7347877040a1ae4aaaaabfe8 | f51a03fee097195911c1577e8510908d02784853 | /src/data/reg_ex/poker_888.py | 9df00e106415573e9384ed7598704598977a71a5 | [] | no_license | aaaaaa2493/poker-engine | fc04cc4b93ad73189adf99b2f864d12a99a34dce | 52aebf8572f87378fa78c999c252d60fcc80f5ce | refs/heads/master | 2020-08-31T17:38:28.477260 | 2019-10-31T12:16:40 | 2019-10-31T12:16:40 | 218,746,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py | from re import compile
class Poker888:
name = '[a-zA-Z0-9_\-@\'.,$*`áàåäãçéèêíîóöôõšüúžÄÁÃÅÉÍÖÔÓÜØø´<^>+&' \
'\\\/()Ѐ£¼ñ®™~#!%\[\]|°¿?:"=ß{}æ©«»¯²¡; ]+'
identifier = compile('^\*\*\*\*\* 888poker Hand History')
identifier_snap = compile('^Snap Poker Hand History')
hand_border = compile('... | [
"aaaaaa2493@yandex.ru"
] | aaaaaa2493@yandex.ru |
992d9b74e952ecd7516429a0554f8e5e86d3a855 | 6f594cc963795c69d8da3c30ca580c0405ef2d6e | /other/57InsertInterval.py | d1fb32163788f8998b4a82b8be2a45e9a2d0316a | [] | no_license | lo-tp/leetcode | 25933c5b25f64f881d43748d8b2763f69614a97f | 4cc4d76c64e9d9aa3f53c5e9574e488c93e10a50 | refs/heads/master | 2022-09-07T20:32:58.487759 | 2022-09-05T03:39:50 | 2022-09-07T13:39:50 | 116,555,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | class Solution(object):
def insert(self, intervals, newInterval):
res = []
if intervals:
start, end = newInterval
for s, e in intervals:
if start != -1:
# 1
if e < start:
res.append([s, e])
... | [
"regesteraccount@hotmail.com"
] | regesteraccount@hotmail.com |
7e072a572581f6627fca07bcdcad06f5612d2500 | 44990e9f4630aa9efc8e0fa56f2c5dbd836cddc6 | /nao_vacila/wsgi.py | b4a7dcfe74eda774e16c8596df6bc9f14e247473 | [] | no_license | kallebefelipe/webserver-nao-vacila | 33c61461d73b7f9e649a93406eb032014f3b983c | 57e972a44a4eb68e5253d38d320051723d33a924 | refs/heads/master | 2022-12-14T19:18:22.670018 | 2017-09-06T13:00:02 | 2017-09-06T13:00:02 | 95,972,976 | 0 | 0 | null | 2022-12-07T23:58:58 | 2017-07-01T15:40:23 | Python | UTF-8 | Python | false | false | 489 | py | """
WSGI config for nao_vacila 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import Dj... | [
"kallebefelipe@gmail.com"
] | kallebefelipe@gmail.com |
c2ea2cc2352bfd9d8b9ad888ff3c0fb82997b816 | 22954a0c13d7bf1824320802e802aa8166f16d76 | /web_scraping/rhiphopheads/items.py | ca9af6e29328930a755afe5a2a604dbaed917dd5 | [] | no_license | luke-zhu/cs1951a-data | e0c7a96c7e100c278722419ba3bc845f6a5326c4 | 925c3263988db1de815589c5e47ddd918c345b25 | refs/heads/master | 2021-01-20T07:40:21.372377 | 2017-05-02T21:47:08 | 2017-05-02T21:47:08 | 90,025,042 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class RhiphopheadsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"luke_zhu@brown.edu"
] | luke_zhu@brown.edu |
dc8835c6dec0140fcb1852faa09d8e70a7cdeaaf | c397d4899fbb5e34b90a2650be2e6aa6f5725972 | /blog/migrations/0037_reviewimage_thumbnail.py | 805c17f73adb43f3b5a343a908788a464aa1d064 | [] | no_license | CCCodes/ProConDuck | aa68e6e89c3c71ddf7832d35f51688fddc379b10 | c4ce19e62d5b50b3da9d258fa4e40831e159f2f7 | refs/heads/master | 2023-02-16T18:55:27.766465 | 2021-01-17T16:49:37 | 2021-01-17T16:49:37 | 96,048,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-23 00:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0036_auto_20170822_0803'),
]
operations = [
migrations.AddField(
... | [
"caitlinchou@gmail.com"
] | caitlinchou@gmail.com |
a91390c161f40656d0f323b1525d55125c72c02a | 0b279c246179bc6a76ad17f055ad1dce3402b045 | /private_production/eft/2018/crab_INT_MINIAODSIM.py | e9a3be5b74809d1efea5713aa88eb353e315e3d7 | [] | no_license | UniMiBAnalyses/CMSSWGeneration | a55e6ad840e4f7f9fae6b46a4bb939a288492f10 | a7acf1a780eeb30e14616fef90ccf389e4367668 | refs/heads/master | 2023-09-01T02:01:44.746469 | 2022-01-31T11:01:29 | 2022-01-31T11:01:29 | 212,852,677 | 0 | 2 | null | 2022-06-16T15:23:25 | 2019-10-04T15:57:27 | Python | UTF-8 | Python | false | false | 838 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'VBS_SSWW_INT_MINIAODSIM'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transferLogs = False
config.JobType.pluginName = 'Analysis'
config.JobType.psetName... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
8bc9ba267ab55211234f1b8531b5d213ec6c7238 | 2315afb8435de656afcc5789ec1ddde21135f658 | /todo_project/todo_app/models.py | dbe2eb3e5521a50750030086908baa842542c537 | [] | no_license | DeanDupalov/Front-End-Basics | 9754315cce8417cb86fbe33c76886df70e9d8ea4 | acac5b03f55aff03620bd2d527a96c0d453e07d9 | refs/heads/master | 2023-04-22T08:58:28.124375 | 2021-05-13T13:11:18 | 2021-05-13T13:11:18 | 357,648,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from django.db import models
# Create your models here.
class Todo(models.Model):
title = models.CharField(max_length=10)
description = models.TextField(max_length=100)
is_done = models.BooleanField(default=False)
def __str__(self):
return self.title
| [
"75751527+DeanDupalov@users.noreply.github.com"
] | 75751527+DeanDupalov@users.noreply.github.com |
48887c30ff50b09604e6af7c99af845d18f9c3aa | 8dca64dd11b23a7d59413ac8e28e92a0ab80c49c | /504. Base 7/solution.py | 298b59aa9f66b91ba715bc108c1bf1b2171775ae | [] | no_license | huangruihaocst/leetcode-python | f854498c0a1d257698e10889531c526299d47e39 | 8f88cae7cc982ab8495e185914b1baeceb294060 | refs/heads/master | 2020-03-21T20:52:17.668477 | 2018-10-08T20:29:35 | 2018-10-08T20:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | class Solution(object):
def convertToBase7(self, num):
"""
:type num: int
:rtype: str
"""
if -6 <= num <= 6:
return str(num)
def helper(n): # n >= 7
li = list()
while n >= 7:
li.append(n % 7)
n //= ... | [
"huangruihaocst@126.com"
] | huangruihaocst@126.com |
b059b880de3f859a5969b06be9518974df6aa833 | f6d08b29b76713165fcdb50f78bd9c74b6b38c22 | /Collect/S30/DataAccess.py | b4ea6f8e898d457761a400b8cb3c13d44347eeb3 | [
"Apache-2.0"
] | permissive | joan-gathu/watertools | b4b22071897e21d2fb306344f9ace42511e9f3ef | 55e383942ed3ddb3ba1d26596badc69922199300 | refs/heads/master | 2022-04-11T17:49:06.324478 | 2020-03-13T11:11:16 | 2020-03-13T11:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,459 | py | # -*- coding: utf-8 -*-
"""
WaterSat
author: Tim Martijn Hessels
Created on Sun Feb 10 18:26:30 2019
"""
import datetime
import pandas as pd
import numpy as np
import os
import urllib
import gdal
#S2_tile = "10SGE"
#output_folder = "F:\Project_Jain\Case_California\Input_Data\S30"
#Startdate = "2018-03-01"
#Enddate = "... | [
"timhessels@hotmail.com"
] | timhessels@hotmail.com |
6ce225b27e57b222c5803bee8ef647f9c9f5b6e1 | aaa762ce46fa0347cdff67464f56678ea932066d | /AppServer/lib/django-1.3/tests/regressiontests/test_client_regress/views.py | c40f34fe563a797d6d3a7c364eeb614697b044db | [
"Apache-2.0",
"BSD-3-Clause",
"LGPL-2.1-or-later",
"MIT",
"GPL-2.0-or-later",
"MPL-1.1"
] | permissive | obino/appscale | 3c8a9d8b45a6c889f7f44ef307a627c9a79794f8 | be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f | refs/heads/master | 2022-10-01T05:23:00.836840 | 2019-10-15T18:19:38 | 2019-10-15T18:19:38 | 16,622,826 | 1 | 0 | Apache-2.0 | 2022-09-23T22:56:17 | 2014-02-07T18:04:12 | Python | UTF-8 | Python | false | false | 4,115 | py | from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.core.exceptions import SuspiciousOperation
from django.shortcuts import render_to_response
from django.utils import simplejson
from django.utils.encoding impo... | [
"root@lucid64.hsd1.ca.comcast.net"
] | root@lucid64.hsd1.ca.comcast.net |
5f0505f36af2d39f955a7c0c374ddee7f52a9465 | 024ad288e3e8c4407c147d3e5a3cef9c97ddecce | /keras/keras98_randomsearch.py | 3188609d3745a71add73ce93d8b27576dc61a945 | [] | no_license | keumdohoon/STUDY | a17f62549e5dc59640875970b79b41ba8f62932c | 83a1369d8e93767ebc445a443d8f55921cd984ce | refs/heads/master | 2022-12-15T17:25:00.809774 | 2020-09-07T02:00:30 | 2020-09-07T02:00:30 | 264,050,749 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,264 | py | #원래는 randomizedSearchCV로 변환, 파일 keras97불러오기.
#score 을 추가해준다.
from keras.datasets import mnist
from keras.utils import np_utils
from keras.models import Sequential, Model
from keras.layers import Input, Dropout, Conv2D, Flatten, Dense
from keras.layers import MaxPooling2D
import numpy as np
#. 1. 데이터
(x_train, ... | [
"58944180+keumdohoon@users.noreply.github.com"
] | 58944180+keumdohoon@users.noreply.github.com |
ea0437398c5d2f0e423bd627eaa886ffd929f096 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/database/postgresql/postgresql_ext.py | 97bd549f21b13edb26860e7beac097a8cf22f526 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 5,700 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: Ansible Project
# 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',
... | [
"sifang@cisco.com"
] | sifang@cisco.com |
1657f962a8133600e36bf5a5651983e5160d9d34 | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/dygraph_group_sharded_stage3_offload.py | 5f9ec5c6e708e37b208ed07a321428f056f83a77 | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 6,441 | py | # -*- coding: UTF-8 -*-
# Copyright (c) 2022 PaddlePaddle 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
#... | [
"noreply@github.com"
] | sandyhouse.noreply@github.com |
edf52ab76db2cfd99a0af88763f296ce469be40c | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjShRightSide/YW_GGQQ_QLFSJHA_191.py | 7b402aecbf55309b2714b38ef26372383e256c92 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,954 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import json
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/option/service")
from OptMainService import *
from OptQueryStkPriceQty import *
sys.path.append("/home/yhl2/workspace/xt... | [
"418033945@qq.com"
] | 418033945@qq.com |
985a61e35a1166affcae13bcd6cc900782271bde | 9825db945e7bfe68319b086e9fb7091a63645d5c | /transcribe/mommy_recipes.py | 69965c1794946191d35991093b0493aa8e916c17 | [] | no_license | lupyanlab/telephone | e1ee095d5698dc228deec5ba5878a46b76d43f2d | 136f27fb2b41263f53fba6bd44711cf57598a1a4 | refs/heads/master | 2020-04-12T07:33:05.849287 | 2017-04-04T01:16:14 | 2017-04-04T01:16:14 | 41,316,823 | 1 | 1 | null | 2015-11-17T04:44:40 | 2015-08-24T17:20:23 | Python | UTF-8 | Python | false | false | 1,059 | py | from unipath import Path
from django.conf import settings
from django.core.files import File
from model_mommy.recipe import Recipe, foreign_key, related
import grunt.models as grunt_models
import ratings.models as ratings_models
import transcribe.models as transcribe_models
django_file_path = Path(settings.APP_DIR... | [
"pierce.edmiston@gmail.com"
] | pierce.edmiston@gmail.com |
48983f1ea96897668bf4f661b7f0605254dc330d | 02d1d89ed3c2a71a4f5a36f3a19f0683a0ae37e5 | /navigation/sonar/maxsonar_class.py~ | fbc039ae23b20329bb3f04d51f235e36260bfd38 | [] | no_license | lforet/robomow | 49dbb0a1c873f75e11228e24878b1e977073118b | eca69d000dc77681a30734b073b2383c97ccc02e | refs/heads/master | 2016-09-06T10:12:14.528565 | 2015-05-19T16:20:24 | 2015-05-19T16:20:24 | 820,388 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | #!/usr/bin/env python
import serial
import threading
import time
# need to find best way to search seria ports for find device
class MaxSonar(object):
def __init__(self):
self._isConnected = False
self._ser = self._open_serial_port()
self._should_stop = threading.Event()
self._start_reading()
self._data =... | [
"laird@isotope11.com"
] | laird@isotope11.com | |
e10f712169e012afe52d661cee1079d73d473cf5 | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /executale_binaries/register-variants/vpblendvb_xmm_xmm_xmm_xmm.gen.vex.py | 24114f1b5661dc25199fcafb0f1753e89bd770d4 | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import angr
proj = angr.Project('vpblendvb_xmm_xmm_xmm_xmm.exe')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
73f759e34e0bb373fed5832be2d79bf6a4727643 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/prime-193.py | a9022462728d26ffa25a7f481c9f9b2ca1f06f24 | [] | 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 | 571 | py | # Get the n-th prime starting from 2
def get_prime(n:int) -> int:
candidate:int = 2
found:int = 0
while True:
if is_prime(candidate):
found = found + 1
if found == n:
return candidate
candidate = candidate + 1
return 0 # Never happens
def is_prime... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
bceb5d5fd70239529410c669bae6ea96ca0148fd | dbaec1262c8966d66512cadd343249786a8c266d | /tests/test_scraper.py | 1d196eeb7ad9cd52a2a34f6599ba263fbe8d42da | [] | no_license | andreqi/django-manolo | 96e50021a843cff1c223692853993c5dbb685acd | 01552875a47c4da90c89db6f0b9c05a269fa07ca | refs/heads/master | 2020-04-01T18:00:59.213208 | 2014-11-20T21:28:04 | 2014-11-20T21:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # -*- coding: utf-8 -*-
"""
test_django-manolo
------------
Tests for `django-manolo` models module.
"""
import datetime
from datetime import timedelta as td
import unittest
import dataset
import sqlalchemy
from django.conf import settings
from manolo.models import Manolo
from manolo.management.commands.scraper im... | [
"aniversarioperu1@gmail.com"
] | aniversarioperu1@gmail.com |
15eb534642b2dbaf5eb98339e0cd15a18f7b59d6 | 4c228cca5bfdf3bd34dab2bedd7350ff501230b3 | /tools/ex_network.py | daaafecdccaa5dfaf16ca6adbc450de5273af72f | [] | no_license | gauenk/xi_uai18 | 3575b4b6db3393f4bc6a640a6b3c607a2d6bca6f | c24040f43e3d8779b7c2fff88f8ab787cf22c385 | refs/heads/master | 2022-02-24T04:29:14.037754 | 2020-04-04T16:57:17 | 2020-04-04T16:57:17 | 234,967,333 | 0 | 0 | null | 2021-03-29T23:13:54 | 2020-01-19T21:05:51 | Python | UTF-8 | Python | false | false | 2,877 | py | import plotly.graph_objects as go
import networkx as nx
def plot_network(G):
#
# plot the edges
#
edge_x = []
edge_y = []
for edge in G.edges():
x0, y0 = G.nodes[edge[0]]['pos']
x1, y1 = G.nodes[edge[1]]['pos']
edge_x.append(x0)
edge_x.append(x1)
edge_x... | [
"kent.gauen@gmail.com"
] | kent.gauen@gmail.com |
2627bc5bee346deeab204fa6ec44e5c9cc13abfc | 8b9e9de996cedd31561c14238fe655c202692c39 | /hackerrank/hackerrank_AntiPalindromic_Strings.py | e118373c79db90167cc964fa3d7cbc28599314dd | [] | no_license | monkeylyf/interviewjam | 0049bc1d79e6ae88ca6d746b05d07b9e65bc9983 | 33c623f226981942780751554f0593f2c71cf458 | refs/heads/master | 2021-07-20T18:25:37.537856 | 2021-02-19T03:26:16 | 2021-02-19T03:26:16 | 6,741,986 | 59 | 31 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | """hackerrank_AntiPalindromic_Strings.py
https://www.hackerrank.com/contests/101hack19/challenges/antipalindromic-strings
"""
def main():
"""if n == 1, then there is m antipalindromic string.
if n == 2, then there is m * (m - 1) antipalindromic string
if n >= 3, then there is m * (m - 1) * (m - 1)...
... | [
"laituan1986@gmail.com"
] | laituan1986@gmail.com |
fd9051b479df526f24d4937d65fc91e13c2b0021 | 837fcd0d7e40de15f52c73054709bd40264273d2 | /More_exercise-master/Repeated_element_list.py | db01da889fb9c8d678166fab52513a0e563108a2 | [] | no_license | NEHAISRANI/Python_Programs | dee9e05ac174a4fd4dd3ae5e96079e10205e18f9 | aa108a56a0b357ca43129e59377ac35609919667 | refs/heads/master | 2020-11-25T07:20:00.484973 | 2020-03-08T12:17:39 | 2020-03-08T12:17:39 | 228,554,399 | 0 | 1 | null | 2020-10-01T06:41:20 | 2019-12-17T07:04:31 | Python | UTF-8 | Python | false | false | 477 | py | list1 = [1, 342, 75, 23, 98]
list2 = [75, 23, 98, 12, 78, 10, 1]
index=0
new=[]
while index<len(list1):
if list1[index] in list2:
new.append(list1[index])
index=index+1
new.sort()
print new
#"-------------------"
# without in operator
index=0
new=[]
while index<len(list1):
var1=0
... | [
"nehai18@navgurukul.org"
] | nehai18@navgurukul.org |
e6c242f7656466c344365678cdf6869daa23683b | 8dbb2a3e2286c97b1baa3ee54210189f8470eb4d | /kubernetes-stubs/client/models/v2beta2_metric_target.pyi | e58a49afa7ff802b89fffd13f6b7a5441e8e92a4 | [] | no_license | foodpairing/kubernetes-stubs | e4b0f687254316e6f2954bacaa69ff898a88bde4 | f510dc3d350ec998787f543a280dd619449b5445 | refs/heads/master | 2023-08-21T21:00:54.485923 | 2021-08-25T03:53:07 | 2021-08-25T04:45:17 | 414,555,568 | 0 | 0 | null | 2021-10-07T10:26:08 | 2021-10-07T10:26:08 | null | UTF-8 | Python | false | false | 694 | pyi | import datetime
import typing
import kubernetes.client
class V2beta2MetricTarget:
average_utilization: typing.Optional[int]
average_value: typing.Optional[str]
type: str
value: typing.Optional[str]
def __init__(
self,
*,
average_utilization: typing.Optional[int] = ...,
... | [
"nikhil.benesch@gmail.com"
] | nikhil.benesch@gmail.com |
9f4ade293e4deed7bf08590e33fecbb9a8b287d9 | 35b58dedc97622b1973456d907ede6ab86c0d966 | /Test/2020年4月29日/001.py | c8895768d64c6ebb9f086308a28346ccff33c6e5 | [] | no_license | GithubLucasSong/PythonProject | 7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635 | e3602b4cb8af9391c6dbeaebb845829ffb7ab15f | refs/heads/master | 2022-11-23T05:32:44.622532 | 2020-07-24T08:27:12 | 2020-07-24T08:27:12 | 282,165,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # import re
# import json
# sss = '{"testfan-token": "${neeo_001>data>data}$"}'
#
# find = re.findall('\${.*?}\$',sss)
#
# for i in find:
# find = i
# print(find)
#
# print(re.sub(find,'1',sss))
import requests
# response = requests.request(method='get', url='http://www.neeo.cc:6002/pinter/bank/api/query2',params... | [
"1433880147@qq.com"
] | 1433880147@qq.com |
f373f7fb41cef8b368430594ebbdee6e8ea6d030 | 30ab9750e6ca334941934d1727c85ad59e6b9c8a | /zentral/contrib/nagios/events/__init__.py | 32a043fbbf1aebc95d5d5f0da9196c0e025d5d16 | [
"Apache-2.0"
] | permissive | ankurvaishley/zentral | 57e7961db65278a0e614975e484927f0391eeadd | a54769f18305c3fc71bae678ed823524aaa8bb06 | refs/heads/main | 2023-05-31T02:56:40.309854 | 2021-07-01T07:51:31 | 2021-07-01T14:15:34 | 382,346,360 | 1 | 0 | Apache-2.0 | 2021-07-02T12:55:47 | 2021-07-02T12:55:47 | null | UTF-8 | Python | false | false | 1,158 | py | import logging
from zentral.core.events import event_cls_from_type, register_event_type
from zentral.core.events.base import BaseEvent
logger = logging.getLogger('zentral.contrib.nagios.events')
ALL_EVENTS_SEARCH_DICT = {"tag": "nagios"}
class NagiosEvent(BaseEvent):
tags = ["nagios"]
class NagiosHostEvent(N... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
a5febbe7a5eedfbbabe6af1b6c0a253823fdc6b5 | 16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3 | /docs/jnpr_healthbot_swagger/test/test_topic_schema_variable.py | d8cf50a23cf30844a79d2a6d4c4d3e87e9c010c1 | [
"Apache-2.0"
] | permissive | Juniper/healthbot-py-client | e4e376b074920d745f68f19e9309ede0a4173064 | 0390dc5d194df19c5845b73cb1d6a54441a263bc | refs/heads/master | 2023-08-22T03:48:10.506847 | 2022-02-16T12:21:04 | 2022-02-16T12:21:04 | 210,760,509 | 10 | 5 | Apache-2.0 | 2022-05-25T05:48:55 | 2019-09-25T05:12:35 | Python | UTF-8 | Python | false | false | 955 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 3.1.0
Contact: healthbot-feedback@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagg... | [
"sharanyab@juniper.net"
] | sharanyab@juniper.net |
60154971e033303df3ec37c5af4870bd330cbc8c | aabcf7b509608af70ce9fa6e7665837f6b6984b0 | /bincrafters_envy/main.py | 14ef7546bb5c5216fd5a45f5e21aae151fb2df3d | [
"MIT"
] | permissive | bincrafters/bincrafters-envy | 2573177e83c8ec0687eff9c76cbc0c79b1a4135c | 584ea39c16927ca3d1ffc68b32ec8d77627c27e0 | refs/heads/develop | 2023-06-08T10:55:37.920810 | 2019-07-26T08:35:48 | 2019-07-26T08:35:48 | 113,282,817 | 1 | 0 | MIT | 2023-06-01T12:24:40 | 2017-12-06T07:21:00 | Python | UTF-8 | Python | false | false | 266 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
if sys.version_info.major == 3:
from bincrafters_envy import bincrafters_envy
else:
import bincrafters_envy
def run():
bincrafters_envy.main(sys.argv[1:])
if __name__ == '__main__':
run()
| [
"uilianries@gmail.com"
] | uilianries@gmail.com |
c867e8178c3e307027a310c680b5dc60c0a7aeba | 7395af9906200bb7135201ede8e238c0afb46c65 | /public_api/api_requests/create_transaction.py | 6edaac4ade0a40754dce2345e1b754c36cfb54fa | [] | no_license | bellomusodiq/public-api | 6fd21d91f9df4e1ef75d2f43f3d2ad59afc1f30c | 20b59ecc67ac6c969a9c47991f385e538762c2a6 | refs/heads/master | 2023-01-02T05:30:53.797873 | 2020-10-27T20:19:51 | 2020-10-27T20:19:51 | 305,782,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | import requests
import json
import random
import string
from .config import base_url
def generate_random_string():
choices = string.ascii_letters + string.digits
string_ = ''
for _ in range(20):
string_ += random.choice(choices)
return string_
url = "{}/test/transactions".format(base_url)
... | [
"bmayowa25@gmail.com"
] | bmayowa25@gmail.com |
77c35e61da685b86d7d099062b817c4d4650011c | aee144770c8f4ec5987777aebe5b064e558fc474 | /doc/integrations/pytorch/parlai/tasks/mnist_qa/agents.py | df1f01e28be9434fde8528ad3cb0ea9b583c46d5 | [
"CC-BY-SA-3.0",
"MIT",
"Apache-2.0",
"AGPL-3.0-only"
] | permissive | adgang/cortx | 1d8e6314643baae0e6ee93d4136013840ead9f3b | a73e1476833fa3b281124d2cb9231ee0ca89278d | refs/heads/main | 2023-04-22T04:54:43.836690 | 2021-05-11T00:39:34 | 2021-05-11T00:39:34 | 361,394,462 | 1 | 0 | Apache-2.0 | 2021-04-25T10:12:59 | 2021-04-25T10:12:59 | null | UTF-8 | Python | false | false | 2,362 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
This is a simple question answering task on the MNIST dataset. In each episode, agents
are presented with a ... | [
"noreply@github.com"
] | adgang.noreply@github.com |
0be675f1f85ba5f732fc877fca398ee196184613 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fibo_20200709155400.py | 3b16f98c3d18b786e0d8adc98afc754847029ae4 | [] | 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 | 191 | py | # solving the fibonaci sequence using recursion and dynamic programming
# Recursion
# Base case if n = 1 || n == 2 then fibo is 1
def fibo(n):
if n == 1:
result = 1
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
d6f72acbd5a87945e02e30a1fbc7fa53ce292903 | 724317c256e3c57e8573f74334be31f39ba34eb9 | /scripts/graphquestions/insert_to_db.py | 08cadc30d76f276e8821af87e44558d87e2df6ee | [
"Apache-2.0"
] | permissive | pkumar2618/UDepLambda | a36662014fc23465aff587761810b986e4dad6dd | 08f00b7dc99bb06c6912e9e83f47c32ebdd38eff | refs/heads/master | 2022-11-25T09:22:41.444891 | 2020-08-01T08:56:52 | 2020-08-01T08:56:52 | 282,916,873 | 0 | 0 | Apache-2.0 | 2020-07-27T14:09:32 | 2020-07-27T14:09:32 | null | UTF-8 | Python | false | false | 474 | py | #!/usr/bin/python
import MySQLdb
# connect
db = MySQLdb.connect(host="rudisha.inf.ed.ac.uk", user="root", passwd="ammuma1234", db="gq_german")
cursor = db.cursor()
# execute SQL select statement
cursor.execute("SELECT * FROM sentences")
# commit your changes
db.commit()
# get the number of rows in the resultset
nu... | [
"siva@sivareddy.in"
] | siva@sivareddy.in |
e019f16db7ba4fbd11cc190bd1425769fda97daa | 9d5b0bcc105f7a99e545dd194d776a8f37b08501 | /tf_quant_finance/math/integration/simpson.py | d011b774ef2f030af974719aec196bfd567db508 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | priyalorha/tf-quant-finance | ab082a9bd6d22fd3ea9a3adcf67a35dc23460588 | 72ce8231340b27b047279012ffe97aeb79117cdf | refs/heads/master | 2023-02-23T11:08:30.161283 | 2021-02-01T13:57:43 | 2021-02-01T13:58:14 | 334,980,881 | 1 | 0 | Apache-2.0 | 2021-02-01T14:45:14 | 2021-02-01T14:45:14 | null | UTF-8 | Python | false | false | 3,828 | py | # Lint as: python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"tf-quant-finance-robot@google.com"
] | tf-quant-finance-robot@google.com |
46914611421331bc8c3b99a2f18da0e2a7b11766 | eb3c6e228a05e773fad89b42da0f54a1febbd096 | /plenum/bls/bls_bft_utils.py | 67d709cfdbd21e7a593db606e4930394d7383904 | [
"Apache-2.0"
] | permissive | amitkumarj441/indy-plenum | 1f45e0c095b9aa27e8306e29c896aa1441a20229 | 7cbcdecd5e6e290530fe0d5e02d9ea70ab1c9516 | refs/heads/master | 2021-07-21T02:19:24.219993 | 2017-10-27T08:48:03 | 2017-10-27T08:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py |
def create_full_root_hash(root_hash, pool_root_hash):
"""
Utility method for creating full root hash that then can be signed
by multi signature
"""
return root_hash + pool_root_hash
| [
"alexander.sherbakov@dsr-company.com"
] | alexander.sherbakov@dsr-company.com |
5f3ef402e43e381527b710f81ee8970f9ac7c5a1 | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /tests/system/providers/google/marketing_platform/example_analytics.py | 0d8f94ec38e552ad8bfc9ef564376ae17a7b7d4e | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 3,724 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
f706c41962f21c4b764b0b4ccea05a2eed8290b9 | 881ca022fb16096610b4c7cec84910fbd304f52b | /libs/scapy/contrib/__init__.py | d1ce31ce09076bfc086bfb4b8be14c6235ba16f5 | [] | no_license | mdsakibur192/esp32_bluetooth_classic_sniffer | df54a898c9b4b3e2b5d85b1c00dd597d52844d9f | 7e8be27455f1d271fb92c074cb5118cc43854561 | refs/heads/master | 2023-07-31T14:29:22.989311 | 2021-09-08T11:18:21 | 2021-09-08T11:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <phil@secdev.org>
# This program is published under a GPLv2 license
"""
Package of contrib modules that have to be loaded explicitly.
"""
| [
"mgarbelix@gmail.com"
] | mgarbelix@gmail.com |
a693f848a13454a6cfa0984f201bdd2971733ff4 | a39d0d1f0e257d0fff5de58e3959906dafb45347 | /PythonTricks/DataStructures/arays.py | 4dd812657bd50c08d6dda6321c7d0a1f08ba79a0 | [] | no_license | Twishar/Python | 998d7b304070b621ca7cdec548156ca7750ef38e | 1d1afa79df1aae7b48ac690d9b930708767b6d41 | refs/heads/master | 2021-09-23T14:18:36.195494 | 2018-09-24T12:33:36 | 2018-09-24T12:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | import array
arr = ['one', 'two', 'three']
print(arr[0])
print(arr)
# Lists are mutable:
arr[1] = 'hello'
print(arr)
del arr[1]
print(arr)
# Lists can hold arbitrary data types:
arr.append(23)
print(arr)
# Tuple - immutable containers
arr = 'one', 'two', 'three'
print(arr[0])
print(arr)
# arr[1] = 'hello'
# del... | [
"stognienkovv@gmail.com"
] | stognienkovv@gmail.com |
f704cf61cb51810d863d902fd775d9cbbf0da782 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02238/s136410577.py | efae5c2b562906dd438512222d9cbfb70501d96a | [] | 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 | 744 | py | #coding: utf-8
n = int(input())
color = ["white" for i in range(n)]
d = [[] for i in range(n)]
global t
t = 0
M = [[False for i in range(n)] for j in range(n)]
for i in range(n):
data = list(map(int,input().split()))
u = data[0]
k = data[1]
if i == 0:
start = u
for v in data[2:2+k]:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
aa4a7a7bec6c8d765c3e813b46ac392fb2f243d9 | 98032c5363d0904ba44e1b5c1b7aa0d31ed1d3f2 | /Chapter10/ch10/race_with_lock.py | 5b939cb8db37805feba1ecc83d58524902c0916b | [
"MIT"
] | permissive | PacktPublishing/Learn-Python-Programming-Second-Edition | 7948b309f6e8b146a5eb5e8690b7865cb76136d5 | 54fee44ff1c696df0c7da1e3e84a6c2271a78904 | refs/heads/master | 2023-05-12T08:56:52.868686 | 2023-01-30T09:59:05 | 2023-01-30T09:59:05 | 138,018,499 | 65 | 44 | MIT | 2023-02-15T20:04:34 | 2018-06-20T10:41:13 | Jupyter Notebook | UTF-8 | Python | false | false | 576 | py | import threading
from time import sleep
from random import random
counter = 0
randsleep = lambda: sleep(0.1 * random())
def incr(n):
global counter
for count in range(n):
with incr_lock:
current = counter
randsleep()
counter = current + 1
randsleep()
... | [
"33118647+romydias@users.noreply.github.com"
] | 33118647+romydias@users.noreply.github.com |
d448574fb3725a8d6dc5fef6401a51fda2584702 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/googlecloudsdk/command_lib/error_reporting/exceptions.py | 0ff475910503910e5c0b0a043a2e41e2f0aa50de | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 1,036 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
91b849e900044ed54bf41ef89839d496d7edea56 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_gunslinger.py | 05089d95d9ae89b34ed5d0ce0aaa83ee93969be4 | [
"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 | 414 | py |
#calss header
class _GUNSLINGER():
def __init__(self,):
self.name = "GUNSLINGER"
self.definitions = [u'especially in the past in North America, someone who is good at shooting guns and is employed for protection or to kill people']
self.parents = []
self.childen = []
self.properties = []
self.jsondata ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
748ba57cf89dcdd66b898d345938928ec78c11b0 | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /32_best.py | 99e35e658b452b484a3f56877cf8d1ea52efde61 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | class Solution(object):
def longestValidParentheses(self, s):
"""
:type s: str
:rtype: int
"""
if len(s) == 0:
return 0
dp = [0] * len(s)
for i in range(len(s)):
if s[i] == "(":
dp[i] = 0
else:
... | [
"noelsun@mowennaierdeMacBook-Pro.local"
] | noelsun@mowennaierdeMacBook-Pro.local |
4888153745ea34d4c15768a4a8e942d57823c159 | 71e324d2e7c9557a9cfec01997a44a66539ac2e6 | /Chapter_08/object_3_seperate.py | bc01ecd017f07f5efe52cb0fb90a2fb4a449db82 | [] | no_license | ulillilu/Python_Practice | 2706a72b22243f4d76bf239f552bd7da2615c1ef | f2b238176f7e68b3fa0674ce4951aaa4206c15d3 | refs/heads/master | 2022-11-29T17:58:52.035022 | 2020-08-13T17:01:49 | 2020-08-13T17:01:49 | 287,334,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | #객체를 처리하는 함수
def create_student(name, korean, math, english, science):
return{
"name": name,
"korean": korean,
"math": math,
"english": english,
"science": science
}
def student_get_sum(student):
return student["korean"] + student["math"] + student["englis... | [
"noreply@github.com"
] | ulillilu.noreply@github.com |
d0fb24f28c2ec27cd9e6e2a7952e61012fa0dc50 | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_routetable.py | 1dc6180ba8335b5645e02e1f39d13a54a3e496bc | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 6,015 | py | #!/usr/bin/python
#
# Copyright (c) 2018 Yuwei Zhou, <yuwzho@microsoft.com>
#
# 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',
... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
afc8f2bf08df0703f759b13e99e9b4c3ff9e26a4 | e2255da9f41a3ca592f5042c96ec8dc1f5ceba21 | /google/appengine/ext/mapreduce/api/map_job/__init__.py | 9347a8bdc947888f6886b093371cbbe34aac3d61 | [
"Apache-2.0"
] | permissive | KronnyEC/cliques | 2a2b1eb0063017f3dbe7de6a42a98d21a7cffb37 | 2fd66c4c4ea4552ab8ef6d738613f618a1a74fc7 | refs/heads/master | 2021-01-24T05:05:49.142434 | 2014-08-18T06:30:32 | 2014-08-18T06:42:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# 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... | [
"josh@pcsforeducation.com"
] | josh@pcsforeducation.com |
8c18a2515beac0972d4760bcf73d68aec9f59e15 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02702/s763305864.py | c1f2a064512072f127149a2d43913b8cc8dc8cd7 | [] | 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 | 370 | py | S = input()
dp = [0]*(len(S)+1)
cur = int(S[len(S)-1])
mod_10 = 1
count_num = [0]*2019
count_num[0] += 1
for i in range(len(S)):
dp[len(S)-i-1] = cur
count_num[cur] += 1
mod_10 = (mod_10*10)%2019
if i <= len(S)-2:
cur = (cur+int(S[len(S)-i-2])*(mod_10))%2019
ans = 0
for i in range(2019):
ans... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e13fe5af3a9acaff486417fedd87270c31830d4c | 396f93d8e73c419ef82a94174815a2cecbb8334b | /.history/tester2_20200321232603.py | 3011254a2f67dbc34040fee7f27f648bd06eec26 | [] | no_license | mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch | 8c73d9448b916009c9431526864a4441fdeb682a | 90b2dca920c85cddd7c1b3335344ac7b10a9b061 | refs/heads/master | 2021-03-26T21:16:42.561068 | 2020-04-17T21:44:26 | 2020-04-17T21:44:26 | 247,750,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | import os
import subprocess
import re
from datetime import datetime
import time
from statistics import mean
numberOfTests = 10
tabuIteration = '10'
tabuDuration = '0'
numberOfCities = '50'
final_solution = []
list_coverage = []
print(f"\n\nTest for Tabu Search with this config: \n\tIterations : {tabuIteration} \n... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
10d81e12691ea7edbbac63eee7f183d1e0842d8a | fc746b644a2f4d07508e84b0d162c0f2ef07076d | /build/orocos_kinematics_dynamics/catkin_generated/generate_cached_setup.py | 174396b513f66f2b974b95d28716ad2d3160a197 | [] | no_license | andreatitti97/thesis_ws | d372146246b8c9b74d25e1310e6e79f9e0270cc4 | c59d380abe7be47ea2d7812e416dee7298c20db8 | refs/heads/main | 2023-03-16T12:26:17.676403 | 2021-03-15T13:22:59 | 2021-03-15T13:22:59 | 340,458,689 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"andrea.tiranti97@gmail.com"
] | andrea.tiranti97@gmail.com |
60fb4c4eb6e60fca24c3bb874dd487c384022e84 | e811662c890217c77b60aa2e1295dd0f5b2d4591 | /src/problem_145.py | da0952c5573f00aae6e48903d71a6426d47dd221 | [] | no_license | rewonderful/MLC | 95357f892f8cf76453178875bac99316c7583f84 | 7012572eb192c29327ede821c271ca082316ff2b | refs/heads/master | 2022-05-08T05:24:06.929245 | 2019-09-24T10:35:22 | 2019-09-24T10:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
from TreeNode import TreeNode
def postorderTraversal(self, root):
"""
记住得了= =
就访问当前root,然后左子树入栈,右子树入栈,最后逆序一下就好了,return output[::-1]
相当于是这么个思路:
目标:左右根
那么我就先求出来根右左,先根遍历是好访问的,根右左的话,因为是栈,所以先访问根,然后左孩子节点入栈,
再右孩子节点入栈,这样出栈的顺序就是跟右左了,其实可以联想一下,其实... | [
"457261336@qq.com"
] | 457261336@qq.com |
4a69e480891dda49ef8586ab48e9e957f44d391d | 327981aeef801fec08305d70270deab6f08bc122 | /19.网络编程/TCP编程/2.客户端与服务器端的数据交互/client.py | 659f33d99bf8eb92f58accb100300281589e8207 | [] | no_license | AWangHe/Python-basis | 2872db82187b169226271c509778c0798b151f50 | 2e3e9eb6da268f765c7ba04f1aefc644d50c0a29 | refs/heads/master | 2020-03-20T12:15:44.491323 | 2018-06-15T08:24:19 | 2018-06-15T08:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # -*- coding: utf-8 -*-
import socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(('192.168.43.240', 8083))
count = 0
while True:
count += 1
data = input("请输入给服务器发送的数据:")
client.send(data.encode("utf-8"))
info = client.recv(1024)
print("服务器说:", info.decode("utf-8"))
... | [
"huanji2209747841@foxmail.com"
] | huanji2209747841@foxmail.com |
95282fad8921847fbce1b8d8cf3e6b80655c0234 | d2f71636c17dc558e066d150fe496343b9055799 | /eventi/receipts/urls.py | adc4aac61ed9506ad430a00c7e224d076c9b8818 | [
"MIT"
] | permissive | klebercode/lionsclub | 9d8d11ad6083d25f6d8d92bfbae9a1bbfa6d2106 | 60db85d44214561d20f85673e8f6c047fab07ee9 | refs/heads/master | 2020-06-11T19:45:39.974945 | 2015-04-05T01:11:57 | 2015-04-05T01:11:57 | 33,409,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | # coding: utf-8
from django.conf.urls import patterns, url
urlpatterns = patterns(
'eventi.receipts.views',
url(r'^$', 'receipt', name='receipt'),
url(r'^(\d+)/$', 'detail', name='detail'),
)
| [
"kleberr@msn.com"
] | kleberr@msn.com |
777ff814dd92fd8c87e5d20a934a54207ca894cf | d3b7a7a922eb9999f22c99c0cc3908d7289ca27e | /tests/multi_processing/multi_process_queue.py | 907844ddda04cef496883f0bd2b010512fd7341b | [
"Apache-2.0"
] | permissive | g3l0o/plaso | b668203c2c7cf8799a1c12824ee1bdc8befd3980 | ae29d853a6bcdd1530ce9320a3af7b3f122941ac | refs/heads/master | 2020-12-25T20:31:08.928709 | 2016-07-22T20:00:33 | 2016-07-22T20:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests the multi-processing queue."""
import unittest
from plaso.multi_processing import multi_process_queue
from tests import test_lib as shared_test_lib
from tests.engine import test_lib as engine_test_lib
class MultiProcessingQueueTest(shared_test_lib.BaseTestCase):
... | [
"onager@deerpie.com"
] | onager@deerpie.com |
bd309d0b656942f65a5f6031b1475317b8f6cf1f | 79661312d54643ce9dcfe3474058f514b01bfbe6 | /ScikitLearn/ElasticNet_1f.py | 9591fda25cf74ca65630946558d5e9573e4ea026 | [] | no_license | davis-9fv/Project | 5c4c8ac03f5bf9db28704e63de9b004f56a52f10 | f2bd22b3ac440b91d1d1defc8da9e2ba2e67265e | refs/heads/master | 2020-03-20T22:24:07.244521 | 2019-02-28T16:58:04 | 2019-02-28T16:58:04 | 137,796,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.ElasticNet.html#sklearn.linear_model.ElasticNet
from sklearn import linear_model
from sklearn.linear_model import ElasticNet
import numpy as np
from pandas import read_csv
from sklearn.metrics import mean_squared_error
from sklearn.model_selection... | [
"francisco.vinueza@alterbios.com"
] | francisco.vinueza@alterbios.com |
872970618a04f2ca7f58bc8040f04ba42271524b | d8fd7f56537d3c4ad4c99965a0a451c5442b704f | /endlesshandsome/wsgi.py | 29a7d6b605fc1118dfa24a6ccc1d6d200ee9a31b | [] | no_license | EndlessHandsome/endless-handsome | 8febdc5edbaed973922b7c31d903d19d4361dc32 | 59f1c3e52bd43c765177288ced755b081db0c746 | refs/heads/master | 2020-04-06T06:57:24.027547 | 2016-08-19T03:51:55 | 2016-08-19T03:51:55 | 65,613,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for endlesshandsome 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
4a865beed91c9a8e8b4658315602570354bd4770 | f4b011992dd468290d319d078cbae4c015d18338 | /Array/counting_element_in_two_array.py | f63a8421ab898a5ab3b5dcbed4c726b0b2a93aef | [] | no_license | Neeraj-kaushik/Geeksforgeeks | deca074ca3b37dcb32c0136b96f67beb049f9592 | c56de368db5a6613d59d9534de749a70b9530f4c | refs/heads/master | 2023-08-06T05:00:43.469480 | 2021-10-07T13:37:33 | 2021-10-07T13:37:33 | 363,420,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | def counting_element(li, li1):
li3 = []
for i in range(len(li)):
count = 0
for j in range(len(li1)):
if li[i] >= li1[j]:
count = count+1
li3.append(count)
print(li3)
n = int(input())
m = int(input())
li = [int(x) for x in input().split()]
li1 = [int(x) f... | [
"nkthecoder@gmail.com"
] | nkthecoder@gmail.com |
8cb9fad16805ff1eef128d7408246c8350a45bdf | 5b683c7f0cc23b1a2b8927755f5831148f4f7e1c | /Python_Study/DataStructureAndAlgorithm/剑指Offer/Solution21py | 129b991defc62a3357595192e3b5ddc9ee1ac835 | [] | no_license | Shmilyqjj/Shmily-py | 970def5a53a77aa33b93404e18c57130f134772a | 770fc26607ad3e05a4d7774a769bc742582c7b64 | refs/heads/master | 2023-09-02T04:43:39.192052 | 2023-08-31T03:28:39 | 2023-08-31T03:28:39 | 199,372,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | #!/usr/bin/env python
# encoding: utf-8
"""
:Description:剑指Offer 21
:Author: 佳境Shmily
:Create Time: 2020/4/29 11:59
:File: Solution21
:Site: shmily-qjj.top
"""
class Solution:
def jumpFloor(self, number):
# write code here
pass
if __name__ == '__main__':
s = Solution()
| [
"710552907@qq.com"
] | 710552907@qq.com | |
d7857e8040c986cb578fcb3f8736cbe77f1ee7cb | d8cbc94a4207337d709a64447acb9c8fe501c75a | /evaluation/code/utils/checkpoint.py | 0ce4488ec35b22f34e1d615616e0b445ee73a941 | [
"MIT"
] | permissive | sripathisridhar/acav100m | 6f672384fa723a637d94accbbe11a9a962f5f87f | 13b438b6ce46d09ba6f79aebb84ad31dfa3a8e6f | refs/heads/master | 2023-09-06T01:05:21.188822 | 2021-11-18T08:08:08 | 2021-11-18T08:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | import os
import shutil
from collections import OrderedDict
import torch
import utils.logging as logging
logger = logging.get_logger(__name__)
def load_checkpoint(model, state_dict, data_parallel=False):
"""
Load the trained weights from the checkpoint.
Args:
model (model): model to load the we... | [
"sangho.lee@vision.snu.ac.kr"
] | sangho.lee@vision.snu.ac.kr |
702e2678b812860fd99d5d5961d919bb4fd981e8 | 6b033e3dddc280417bb97500f72e68d7378c69d6 | /V. Algorithm/ii. Site/D. BOJ/Dynamic Programming/2193.py | 4b960384965a4371013ee1182733e2531ed328a8 | [] | no_license | inyong37/Study | e5cb7c23f7b70fbd525066b6e53b92352a5f00bc | e36252a89b68a5b05289196c03e91291dc726bc1 | refs/heads/master | 2023-08-17T11:35:01.443213 | 2023-08-11T04:02:49 | 2023-08-11T04:02:49 | 128,149,085 | 11 | 0 | null | 2022-10-07T02:03:09 | 2018-04-05T02:17:17 | Jupyter Notebook | UTF-8 | Python | false | false | 267 | py | # n = 0: cnt = 0
# n = 1: 1 cnt = 1
# n = 2: 10 cnt = 1
# n = 3: 100, 101 cnt = 2
# n = 4: 1010, 1001, 1000 cnt =3
# n = 5: 10000, 10001, 10010, 10101, 10100 cnt =5
n = int(input())
dp = [0, 1, 1]
for i in range(3, n+1):
dp.append(dp[i-2] + dp[i-1])
print(dp[n])
| [
"inyong1020@gmail.com"
] | inyong1020@gmail.com |
6d6ea4a6da71a4dd55b9827ed63099c095f2893a | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/config/configurations/list.py | 31105c5866eaeddb88a441350c50f64724d0caa9 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 2,213 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
b72639fefb186348b900a58c7e765b4f198fea4c | f8d0e0358cfc7774e2ade30fb041a7227f72f696 | /Project/MNIST/Actual_Picture/mnist_generate_dataset.py | 7fad26b687d9e1f1ecda401e1fd57dbd54d78c55 | [] | no_license | KimDaeUng/DeepLearningPractice | e01c99d868e7a472ca5ec9c863990e0ab4b48529 | 811f26e0859f0f7cb73d9a0ce3529fb8db867442 | refs/heads/master | 2023-04-01T02:26:14.670687 | 2021-04-03T14:08:48 | 2021-04-03T14:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | import tensorflow as tf
import numpy as np
from PIL import Image
import os
# Generate standard tfrecord of training or testing set
image_train_path = './mnist_data_jpg/mnist_train_jpg_60000/'
label_train_path = './mnist_data_jpg/mnist_train_jpg_60000.txt'
image_test_path = './mnist_data_jpg/mnist_test_jpg_10000/'
labe... | [
"daviddwlee84@gmail.com"
] | daviddwlee84@gmail.com |
de2a5e9123899c4d2aa008f270bed4e1523f7c76 | 2ba65a65140e818787ab455ca374f99348ade844 | /hashmap_and_heap/q004_longest_consecutive_sequence.py | 30fea9fc4eba2b9a20ea220cdbe5bcb49156643d | [] | no_license | samyakjain101/DSA | 9e917f817a1cf69553b5f8ca5b739bc6f0c81307 | 632a605150704ceb5238cb77289785eb5a58201c | refs/heads/main | 2023-05-06T06:31:09.401315 | 2021-06-01T13:37:59 | 2021-06-01T13:37:59 | 340,645,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | def longest_consecutive_sequence(arr: list):
hashmap = dict()
for num in arr:
hashmap[num] = True
for key in hashmap.keys():
if key - 1 in hashmap:
hashmap[key] = False
max_streak_start_point = 0
max_streak = 0
for key, value in hashmap.items():
if value:
... | [
"samyakjain101@gmail.com"
] | samyakjain101@gmail.com |
a52be340b6e6941cb775fd9f43ea853958806772 | f0a44b63a385e1c0f1f5a15160b446c2a2ddd6fc | /examples/render/show_all_std_line_types.py | e9df274fed178676f291164a7d5210d8cc1bb535 | [
"MIT"
] | permissive | triroakenshield/ezdxf | 5652326710f2a24652605cdeae9dd6fc58e4f2eb | 82e964a574bcb86febc677bd63f1626318f51caf | refs/heads/master | 2023-08-17T12:17:02.583094 | 2021-10-09T08:23:36 | 2021-10-09T08:23:36 | 415,426,069 | 1 | 0 | MIT | 2021-10-09T21:31:25 | 2021-10-09T21:31:25 | null | UTF-8 | Python | false | false | 726 | py | # Copyright (c) 2019-2021, Manfred Moitzi
# License: MIT License
import ezdxf
from ezdxf.math import Vec3
from ezdxf.tools.standards import linetypes
doc = ezdxf.new("R2007", setup=True)
msp = doc.modelspace()
# How to change the global linetype scaling:
doc.header["$LTSCALE"] = 0.5
p1 = Vec3(0, 0)
p2 = Vec3(9, 0)
... | [
"me@mozman.at"
] | me@mozman.at |
2765443d9dab3cb470fb4a2a844eff84e6645762 | 3a51e7173c1b5a5088ac57f668ecb531e514e0fe | /m11_feature_importances5_diabets.py | e18b4753ce0bb3c9ed11c5bde334cc898d0c903c | [] | no_license | marattang/ml_basic | 83a167324317178701ae0ee0e2e2046293eafacc | e8e6b8c9ab7d866377eb01e50ac94ff5b1ea7a73 | refs/heads/main | 2023-07-05T03:30:24.663574 | 2021-08-22T07:06:58 | 2021-08-22T07:06:58 | 394,574,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # 피처 = 컬럼 = 열
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
from sklearn.datasets import load_iris, load_boston, load_diabetes
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import n... | [
"tlawlfp0322@gmail.com"
] | tlawlfp0322@gmail.com |
fcbd61892093b56028d5617ccab23d3aca729c0a | ed12b604e0626c1393406d3495ef5bbaef136e8a | /Iniciante/Python/exercises from 1000 to 1099/exercise_1038.py | 8acf7316aa83808418ceec78f9e872c26c2019c0 | [] | no_license | NikolasMatias/urionlinejudge-exercises | 70200edfd2f9fc3889e024dface2579b7531ba65 | ca658ee8b2100e2b687c3a081555fa0770b86198 | refs/heads/main | 2023-09-01T20:33:53.150414 | 2023-08-21T07:07:32 | 2023-08-21T07:07:32 | 361,160,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | class Lanche:
def __init__(self, codigo, especificacao, preco):
self.codigo = codigo
self.especificacao = especificacao
self.preco = preco
def getCodigo(self):
return self.codigo
def totalPorQtde(self, qtde):
return self.preco*qtde
lanches = [
Lanche(1, 'Cachor... | [
"nikolas.matias500@gmail.com"
] | nikolas.matias500@gmail.com |
a4c0f7cac515fab2dde43dae019bf1f9f9359d98 | e000416c89725db514ed5c01d7b9ef8e37c5355f | /backend/wallet/migrations/0001_initial.py | 42f6e380119fb0d9602b441bb339d9aa4929f923 | [] | no_license | crowdbotics-apps/click-time-28533 | 376f4d34b10ca3050fde3f43df51233e5b612c2d | 89f4f7e05bf04623b2822899677b6c3606968151 | refs/heads/master | 2023-06-19T06:37:55.564153 | 2021-07-07T06:12:26 | 2021-07-07T06:12:26 | 383,692,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # Generated by Django 2.2.20 on 2021-07-07 06:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('taxi_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
df398393aea5d0bd7445abc5140d3c360b258e60 | 973713f993166b1d0c2063f6e84361f05803886d | /Day01-15/02_variableTest_3.py | 0a1660b15ed013535066fbed5471a61876d4a6c4 | [
"MIT"
] | permissive | MaoningGuan/Python-100-Days | 20ad669bcc0876b5adfbf2c09b4d25fd4691061a | d36e49d67a134278455438348efc41ffb28b778a | refs/heads/master | 2022-11-17T12:24:45.436100 | 2020-07-18T02:24:42 | 2020-07-18T02:24:42 | 275,157,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
使用input()函数获取键盘输入(字符串)
使用int()函数将输入的字符串转换成整数
使用print()函数输出带占位符的字符串
"""
a = int(input('a = '))
b = int(input('b = '))
print('%d + %d = %d' % (a, b, a + b)) # 加
print('%d - %d = %d' % (a, b, a - b)) # 减
print('%d * %d = %d' % (a, b, a * b)) # 乘
print('%d / %d = %f' % ... | [
"1812711281@qq.com"
] | 1812711281@qq.com |
ed02706c8203b78c812b8159c71208e1e7196960 | 597b888dca4e9add7acdf449f8c3d8d716826ff2 | /gui/demos/listbox.py | 105c3d631bc9eb579543eeadf5002fcfc4aee71b | [
"MIT"
] | permissive | alsor62/micropython-micro-gui | a7cad669d69358599feb84011c23ac5d767adfda | 5c7d6c96b30e4936a2a4315b09e98a730f14c6db | refs/heads/main | 2023-09-04T09:54:10.946964 | 2021-11-09T11:46:59 | 2021-11-09T11:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | # listbox.py micro-gui demo of Listbox class
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2021 Peter Hinch
# hardware_setup must be imported before other modules because of RAM use.
from hardware_setup import ssd # Create a display instance
from gui.core.ugui import Screen
from gui.core.write... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
0cc430d7621bfaae1f6b6a655566642dd758c4bf | 1333a965058e926649652ea55154bd73b6f05edd | /4_advanced/modules/userinput.py | bf7135098c2c79a045d6ce0bbf207f42b97ecacc | [
"MIT"
] | permissive | grecoe/teals | 42ebf114388b9f3f1580a41d5d03da39eb083082 | ea00bab4e90d3f71e3ec2d202ce596abcf006f37 | refs/heads/main | 2021-06-21T20:12:03.108427 | 2021-05-10T19:34:40 | 2021-05-10T19:34:40 | 223,172,099 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | '''
This file allows you to hide all of the implementation details of asking
a user for input for your program. It will verify that the correct data is
returned.
Externally, we want to expose the getUserInput().
'''
'''
__parseInt
Parameters
userInput : Input string from user
... | [
"grecoe@microsoft.com"
] | grecoe@microsoft.com |
1ebb7382e258c4abf52348f5f8cdcbf3ae69437d | 1500fe9ea062152becc85a01577cced0465cde52 | /landacademy/urls.py | d6983faca141d85dce6130a0e3056d9ab11c126d | [] | no_license | Xednom/gpg-ams | afe4da92384f2de1b7b69ce28e13becb103009b3 | 7c87ab639b140873dfc90ac43c7aec349aec6436 | refs/heads/master | 2022-11-06T15:22:34.761321 | 2021-05-11T03:48:08 | 2021-05-11T03:48:08 | 239,904,632 | 0 | 1 | null | 2022-11-03T02:21:18 | 2020-02-12T01:50:16 | JavaScript | UTF-8 | Python | false | false | 465 | py | from django.urls import path
from . import views
app_name="landacademy"
urlpatterns = [
path('add-land-academy-inventory', views.AddLandAcademyView.as_view(), name="add_landacademy"),
path('view-land-academy-inventory', views.LandAcademyView.as_view(), name="view_landacademy"),
path('view-o2o-smart-pricin... | [
"monde.lacanlalay@gmail.com"
] | monde.lacanlalay@gmail.com |
27104a744c874c71d5916e37b398277acf2b845a | 0c427b2b8b7960bf3c1e727984532c6731328066 | /APP/forms.py | 1e073b90096a2c7b3a8ab029ca583f02c05bf928 | [] | no_license | Master-cai/flask_library | c7c3910c6f989b7f0f90a3b32eb53d421b7f431d | ebc86cbfbac67b199d06a3ec1e789b0d3fec1488 | refs/heads/master | 2020-11-24T03:34:42.063453 | 2019-12-20T09:30:01 | 2019-12-20T09:30:01 | 227,948,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField, TextAreaField, ValidationError, HiddenField, \
BooleanField, PasswordField, IntegerField, DateTimeField, DateField
from wtforms.validators import DataRequired, Email, Length, Optional, URL, EqualTo
class LoginForm(FlaskForm... | [
"719591339@qq.com"
] | 719591339@qq.com |
dc93b89f7e841b512d47ecff109941a4fd9c59cb | a7a13ca32072bb27ce2dceb87c414767b3751ec5 | /src/gthnk/__init__.py | f8ee1ab5a2ed24607ff10461411e9f764b139904 | [] | no_license | SocioProphet/gthnk | 36e50338d5f3df19f84620ff9a337f3cf8e9e362 | fc3d21090c2de10cfd74650436536999e5c65d7c | refs/heads/master | 2022-12-13T18:55:00.610073 | 2020-09-14T14:50:21 | 2020-09-14T14:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_bcrypt import Bcrypt
db = SQLAlchemy()
login_manager = LoginManager()
bcrypt = Bcrypt()
| [
"ian@iandennismiller.com"
] | ian@iandennismiller.com |
5ad1c174ef11481211eccd3c9a071aaebf6e217e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1268.py | 9e45fefd2245fc74e784ff57dba4a16de3dd55a5 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | def read_case(line):
return int(line)
def read_input(path):
f = open(path, 'r')
g = open(path + '_res.txt', 'w')
T = int(f.readline())
for i in xrange(T):
line = f.readline()
g.write('Case #%d: ' % (i+1))
n = read_case(line)
g.write(str(solve(n)))
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
00a7d4bb8e564e8e4d36756ce801d18ce4fdfecc | b87389aa0d6595c8b649ac899e8ade4226309739 | /manage.py | f53d707f83062edaaf89cd56b7fde370fb63af16 | [] | no_license | bussiere/ImageIp | be3797d2fdd57b78d35de2111eb67b269f7df104 | bc3e7b3d4edabde5353f9fadfc46253b7407ba5a | refs/heads/master | 2020-12-24T15:23:03.255370 | 2013-08-23T10:52:46 | 2013-08-23T10:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "imageip.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"bussiere@gmail.com"
] | bussiere@gmail.com |
e6ed56fd3df5070e61ae811df3ed3d5638f8db41 | e1312afff90dbe1cdcd500541e29097da19fee97 | /inference/infer_with_pb_1capture.py | 83e9ad60c4b8ca47ef4676152e1dd42c7059bd70 | [] | no_license | andreiqv/github_detector_scale | af6115caff6ca6c73c934dc1fa6673ccd69b71fa | 329d32a4d26b2bfb2f902f876bb9b8eb35bd9e2a | refs/heads/master | 2020-04-08T12:30:36.966069 | 2019-01-30T22:21:34 | 2019-01-30T22:21:34 | 159,350,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,509 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Using TF for inference, and TensorRT for compress a graph.
import sys
import os
import argparse
import tensorflow as tf
import numpy as np
from tensorflow.python.platform import gfile
from PIL import Image
import timer
from time import sleep
import io
from picamera imp... | [
"phxv@mail.ru"
] | phxv@mail.ru |
f3ad29a421a0cf868288fc6682c1a2f1460652b8 | 61ce57892c172f71286a39c8c863aa8a7b29484b | /stampede_results/efficiency.py | 819f43b7bee082e404a72cda5a0ee62105cfe01a | [] | no_license | bd-j/cetus | cfbb46aa2d94fdf982a7906bc8bdcbe9375df67c | c9f7e0972184a0c2fcc7add6e766733b7a46b149 | refs/heads/master | 2021-05-01T00:06:10.518322 | 2015-02-17T16:49:46 | 2015-02-17T16:49:46 | 21,367,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | import sys, os, glob
import numpy as np
import matplotlib.pyplot as pl
import bsfh.read_results as bread
def process_run(mcmc_file, model_file):
result, pr, model = bread.read_pickles(mcmc_file, model_file=model_file)
nburn = np.sum(result['run_params']['nburn'])
nw, niter, ndim = result['chain'].shape
... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
ea9cb6af6472d76c58d80685599298f8e4a6f15e | 439cda44ba6d5d8061a134875736a9efcd4bf22c | /trakt_tools/tasks/profile/backup/create/handlers/playback.py | 746491bfc433fc6a3dc4ee210ef1164e29330dbc | [] | no_license | fuzeman/trakt-tools | 28a0fcb2c2efe88371bba1892777be75236fdc5c | 8bdcb117b6092733cc50f87d4f943fc23340da90 | refs/heads/master | 2023-01-07T06:16:46.716517 | 2022-12-27T22:57:03 | 2022-12-27T22:57:03 | 68,256,616 | 31 | 4 | null | 2022-12-27T22:41:57 | 2016-09-15T01:11:54 | Python | UTF-8 | Python | false | false | 801 | py | from __future__ import print_function
import logging
log = logging.getLogger(__name__)
class PlaybackHandler(object):
def run(self, backup, profile):
print('Playback Progress')
# Request ratings
response = profile.get('/sync/playback')
if response.status_code != 200:
... | [
"me@dgardiner.net"
] | me@dgardiner.net |
5cdd8442cd814d0483be06189f1baa90c42bb382 | d2c92cfe95a60a12660f1a10c0b952f0df3f0e8e | /adminasto/adminasto/tongji.py | 698ac53c3172a4fe3beefb1a1fcf538a722beb21 | [] | no_license | snamper/zzpython | 71bf70ec3762289bda4bba80525c15a63156a3ae | 20415249fa930ccf66849abb5edca8ae41c81de6 | refs/heads/master | 2021-12-21T16:12:22.190085 | 2017-09-30T06:26:05 | 2017-09-30T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from sphinxapi import *
import os
import MySQLdb
import datetime
nowpath=os.path.dirname(__file__)
execfile("conn.py")
#产品数量
def getproductnum(nowday):
format="%Y-%m-%d";
nowday=strtodatetime(nowday,format)
oneday=datetime.timedelta(days=1)
sql="select count(0) from products where gmt_created>'"+str... | [
"2496256902@qq.com"
] | 2496256902@qq.com |
2a1ed3b591771dcef576f456adcb8a35894e6e42 | 7a3757a341fb1c5a06482e2e5cb066a967a6eff5 | /tests/apis/test_htmls.py | 8a62ed922151fdb0fb4d2da11af953142cdb52d2 | [
"MIT"
] | permissive | ninoseki/uzen | 4bff6080b9c0677dcf25abc0f104eca3fb92ed8a | 2a0065aa57fe3891c46e1174c1dc9aab673e52a8 | refs/heads/master | 2023-09-02T01:59:18.893712 | 2022-08-28T09:49:12 | 2022-08-28T09:49:12 | 241,092,872 | 87 | 9 | MIT | 2023-06-01T01:08:05 | 2020-02-17T11:37:59 | Python | UTF-8 | Python | false | false | 568 | py | from typing import List
from fastapi.testclient import TestClient
from app import models
def test_html(client: TestClient, snapshots: List[models.Snapshot]):
id_ = snapshots[0].id
response = client.get(f"/api/snapshots/{id_}")
snapshot = response.json()
sha256 = snapshot.get("html", {}).get("sha25... | [
"manabu.niseki@gmail.com"
] | manabu.niseki@gmail.com |
685279deb51b82c7913268989efa1ce91cda2791 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/effects/ShipSinkSplashes.py | 4efffec5639f34902279a1a506fbbbf5ba52d62c | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,226 | py | from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.particles import ParticleEffect
from direct.particles import Particles
from direct.particles import ForceGroup
from EffectController import EffectController
from PooledEffect import PooledEffect
import random
class ShipSinkSplas... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
f29845b4a7e41fd25e8f0aaf3a5e1216fa204a11 | 1db2e2238b4ef9c1b6ca3b99508693ee254d6904 | /develop/analyse_2D_matrix/analyse_2D_matrix.py | f46d66c680efd95275086ab37592a63a94f4224e | [] | no_license | pgreisen/pythonscripts | 8674e08095f76edf08ef2059300349218079724c | 0aadf8f96d19b306c1bc44a772e766a06fe3408b | refs/heads/master | 2021-07-06T23:54:57.774342 | 2021-06-08T19:36:36 | 2021-06-08T19:36:36 | 22,017,192 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | from numpy import mean,sqrt,var
import sys
from collections import defaultdict
from collections import OrderedDict
import os,shutil,sys,argparse
class Analyse2D:
def __init__(self):
self.scores = defaultdict(list)
self.scores_position_two = {}
self.aa = ['ALA','ARG','ASN','ASP','CYS','G... | [
"pgreisen@gmail.com"
] | pgreisen@gmail.com |
127340c6f50c34bb02f1678ec7d9f12c7ce76d64 | 04c41aca1f78ac617fe1573818b10fb0e12fbe40 | /tests/schemas/users/snapshots/snap_test_queries.py | 85793ffecaf3ec9d16884144152f71578d6c90f8 | [] | no_license | telephoneorg/orka-api | 619489ae17dfd850c74aa2c950e0d4385ba059d9 | 5693aff776b7a7649617915a0a8e0942d1228c24 | refs/heads/master | 2022-01-10T15:28:21.277746 | 2019-05-16T19:06:40 | 2019-05-16T19:06:40 | 186,914,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,718 | py | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['test_get_me_query 1'] = {
'data': {
'me': {
'cellPhone': '+14153334444',
'contexts': {
'c... | [
"me@joeblack.nyc"
] | me@joeblack.nyc |
ed7b59ea529505c039c84632f0c762b6e7687cd5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/29/usersdata/149/9337/submittedfiles/atividade.py | a129ae25b27b8413697e0322686088d89dc72a89 | [] | 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 | 5,309 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d83d17593a23cc734d5f3a70eba905a6d4cec639 | d780df6e068ab8a0f8007acb68bc88554a9d5b50 | /python/g1/asyncs/kernels/g1/asyncs/kernels/__init__.py | 14f907bb3747de8bcda48ebf1fa4c851b89d6562 | [
"MIT"
] | permissive | clchiou/garage | ed3d314ceea487b46568c14b51e96b990a50ed6f | 1d72863d3a5f5d620b170f4dd36f605e6b72054f | refs/heads/master | 2023-08-27T13:57:14.498182 | 2023-08-15T07:09:57 | 2023-08-15T19:53:52 | 32,647,497 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | __all__ = [
'KernelTimeout',
'call_with_kernel',
'get_kernel',
'run',
'with_kernel',
]
import contextlib
import contextvars
import functools
import logging
from . import contexts
from . import kernels
# Re-export errors.
from .errors import KernelTimeout
logging.getLogger(__name__).addHandler(lo... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
750b855466580ca336ef851454d85be2d5325ce7 | 5c099927aedc6fdbc515f40ff543c65b3bf4ec67 | /algorithms/find-and-replace-pattern/src/Solution2.py | 3baef0faeceac6fc78a718b61d8201ae9e97cf0a | [] | no_license | bingzhong-project/leetcode | 7a99cb6af1adfbd9bb1996a7f66a65679053c478 | ba82e7d94840b3fec272e4c5f82e3a2cfe4b0505 | refs/heads/master | 2020-04-15T09:27:33.979519 | 2020-03-10T03:43:07 | 2020-03-10T03:43:07 | 164,550,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | class Solution:
def findAndReplacePattern(self, words: list, pattern: str) -> list:
def match(word, pattern):
word_map = {}
pattern_map = {}
for i in range(len(pattern)):
if pattern[i] not in pattern_map:
pattern_map[pattern[i]] = word[... | [
"zhongyongbin@foxmail.com"
] | zhongyongbin@foxmail.com |
f95818b00f5f0d66c4279b5d1bba2ce0634bbc30 | 87209058bd5dd05ff0b3bd3ce2e5b5ed12671410 | /jiaoyu/apps/organizations/forms.py | 7fd39c13a1a60aab869309800b2a5a8761931593 | [] | no_license | keepingoner/django-Projects | 2a8a245b702a507efc27b4b5c6fb669bcf7d1846 | 8ca94559a31f82951a05dd8749c37d7595a8e298 | refs/heads/master | 2022-01-24T09:08:27.384731 | 2019-07-23T02:48:20 | 2019-07-23T02:48:20 | 109,779,078 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django import forms
from operations.models import UserAsk
class UserAskForm(forms.ModelForm):
class Meta:
model = UserAsk
fields = ['name', 'mobile', 'coursename']
| [
"keepingoner@163.com"
] | keepingoner@163.com |
d247e69e2008ceb52000bf94a9c402b65030dfbb | c84cee1abce6372a71314d28ca6a8681a6ad5cb5 | /chat/forms.py | adc3810f9a97a850edc84266b4d97bcd84337a87 | [] | no_license | SergeyLebidko/ChannelsTraining | 441477a14c6fe424ea11ba2e05aac0fef90151bc | 845a9b27f1d0bdb9424407c68e5051ec06d06cc9 | refs/heads/master | 2023-06-09T09:32:21.049921 | 2021-06-22T13:42:44 | 2021-06-22T13:42:44 | 376,584,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django import forms
from django.core.exceptions import ValidationError
from django.contrib.auth.models import User
from django.contrib.auth.password_validation import validate_password
class RegisterForm(forms.Form):
username = forms.CharField(label='Имя пользователя', required=True)
password = forms.Cha... | [
"it.sergeyler@mail.ru"
] | it.sergeyler@mail.ru |
91d8dc9cb2b95ee091580cbe4da673fa4fb4185c | 9c36503027aa6fc2fa2f841d60f70f2697ae60be | /pygraphc/similarity/LogTextSimilarity.py | 59263ee4a8088fff29f3a4c0e97edc18e48e95c9 | [
"MIT"
] | permissive | studiawan/pygraphc | bd5517478a6e1ad04220c13fa9f7aea6546225ac | 436aca13cfbb97e7543da61d38c8462da64343b5 | refs/heads/master | 2021-01-23T21:29:41.151025 | 2018-05-17T07:54:54 | 2018-05-17T07:54:54 | 58,362,965 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,451 | py | from pygraphc.preprocess.PreprocessLog import PreprocessLog
from pygraphc.similarity.StringSimilarity import StringSimilarity
from itertools import combinations
import csv
import multiprocessing
class LogTextSimilarity(object):
"""A class for calculating cosine similarity between a log pair. This class is intende... | [
"studiawan@gmail.com"
] | studiawan@gmail.com |
7997978962821fe9981f1e5e1415740d920bddbb | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /ENJTPoWCyEGgnXYjM_7.py | 6804f1adebe40875f04f9577628db7907b57414a | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | """
Create a function that calculates what percentage of the box is filled in.
Give your answer as a string percentage rounded to the nearest integer.
### Examples
percent_filled([
"####",
"# #",
"#o #",
"####"
]) ➞ "25%"
# One element out of four spaces.
percent_... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b7b79b8c36d18d972a46f2208026d965dae2afbd | 09cead98874a64d55b9e5c84b369d3523c890442 | /py210110d_python3a/day10_210314/homework/stem1403a_hw_9_0307_KevinLiu.py | b6e041e3e82b381854c864f058043ff9a5dc02eb | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | """
Date: 2021-03-08
1. Write a GUI program of clock
Requirements:
(Function)
Show current time in the pattern of HH:mm:ss.aaa
i.e.
10:12:45.369
(UI)
Display a title, main area for clock, and footer for the date
Due date: by the end of next Friday
Hint:
import datetime
strftime
"""
"""
score:
perfect
"""
# tkinter m... | [
"lada314@gmail.com"
] | lada314@gmail.com |
0ed0a470b8e20c51b15783399801293e4c38342f | 8fa1999cb8a973937d6629c553feca60dd3a73d7 | /Atividade E/fabio01_q06.py | 2f76792ccd7c7f87b12dc795ab7900fe3e71545e | [] | no_license | Isaias301/IFPI-ads2018.1 | 16cddbb278336a3e06738f9dc21d2d11053dcec4 | 026fe5c2ffbc8aed55c478b7544472c46b357e69 | refs/heads/master | 2020-03-22T20:15:13.789014 | 2018-08-09T03:14:48 | 2018-08-09T03:14:48 | 140,585,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """ Questão: Lista E 06
Descrição: Leia uma velocidade em km/h, calcule e escreva esta velocidade em m/s.
"""
def main():
# entrada
velocidade_em_km = float(input("Digite uma uma velocidade em Km/h: "))
# calculos, operacoes, processamento
velocidade_em_ms = velocidade_em_km * 3.6
# saida
print('Resultado: %... | [
"isaiassantana301@gmail.com"
] | isaiassantana301@gmail.com |
aa0f59f38a582475a55c56c36a78be79bab75599 | fe203d5c28e2010cdc78a4b29755e148d58045db | /p02/q07_miles_to_kilometres.py | 1e02355748970bfbdec15c9a409bb1cc807d34ef | [] | no_license | sp0002/cp2019 | d2a9aa5bfe7c82de3ed3f96f281c39be8704d3bd | 6c48528f948dad01f4d6571e3bb22dbf253c423c | refs/heads/master | 2020-04-24T23:24:21.324069 | 2019-04-13T11:13:01 | 2019-04-13T11:13:01 | 171,574,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | print("Miles Kilometers Kilometres Miles")
for i in range(10):
print(str(i+1) + (" "*(6-len(str(i+1)))) + "{:.3f}".format(round(((i+1)*1.60934), 3)) +
(" "*(11-len(str(round(((i+1)*1.60934), 3))))) + str(i*5+20) +
(" "*(11-len(str(i*5+20))) + "{:.3f}".format(round((i*5+20)/1.60934, 3)))) | [
"k"
] | k |
ca592bb99a1866b3bd5f87d00cf9884fb0e2e036 | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /nncf/torch/dynamic_graph/operation_address.py | f9fe1e55d976d86a8bab71816c910f10257af01d | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 1,715 | py | """
Copyright (c) 2021 Intel Corporation
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 writin... | [
"noreply@github.com"
] | dupeljan.noreply@github.com |
cdad51f5c22f7a1acdf954745aa1ca7cd922befa | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/network/ptp.py | 27fa36e319f1e78d559dded8881328498c85d2f6 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | #
# Copyright (c) 2008-2019 Citrix Systems, Inc.
#
# 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 l... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
71de8ab94c91d087323136dda99bddbbcd9ec73f | 73c01a3f052f8ef63890ec3c2e28403ad41e9a71 | /service/migrations/0007_ticket_photo.py | 806039291d087ae7c08ce662cfe1a5f5ce6385fb | [] | no_license | Jokey90/aho | 4c007c65c819efb726a732a8f36067c5a0226100 | 8bcd41e9ef7d40f07499429f385d4fec590636f6 | refs/heads/master | 2020-03-21T22:28:36.395996 | 2018-06-29T09:25:05 | 2018-06-29T09:25:05 | 139,128,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-08-16 12:57
from __future__ import unicode_literals
from django.db import migrations, models
import service.models.ticket
class Migration(migrations.Migration):
dependencies = [
('service', '0006_auto_20170804_1420'),
]
operations = [... | [
"Kishkurno_AS@dsdf.cds.ru"
] | Kishkurno_AS@dsdf.cds.ru |
fb24842332a1d4553a27ced6b2f8e60c9554ad3d | c50fb310d8c52284be2c636f951de796eededae9 | /47.py | f181b2c679dcf18046f30a11c88ec47c1b317684 | [] | no_license | Deepakdk7/Playerset3 | 6f46f638f22d894b9cc93d81b27c221f9dcdaad3 | 636e1feed0f97bbc9e9495a5dbb81a512ed980c5 | refs/heads/master | 2020-06-03T07:35:23.203780 | 2019-08-06T08:56:16 | 2019-08-06T08:56:16 | 191,497,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | ax=list(map(int,input().split()))
if ax[0]+ax[1]+ax[2]==180 and ax[0]!=0 and ax[1]!=0 and ax[2]!=0:
print('yes')
else:
print('no')
| [
"noreply@github.com"
] | Deepakdk7.noreply@github.com |
27d1a3c411b12208e8d4fb289eb2af4bf85cb440 | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part3/updated_part2_batch/jm/parser_errors_2/239061968.py | 6824dca6f32823cb12a5f3a0a45879a6c8761224 | [
"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 | 1,180 | 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: 239061968
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 2, 4)
assert board is... | [
"noreply@github.com"
] | kozakusek.noreply@github.com |
7a877964c195ba8b4611fc1c614aab2598a7d346 | b2301365d220ff0295b8beddbed38b0581f9610d | /Django/landscapes/landscapes/urls.py | 6bb380064f3a5011c960add9367daf6a83339d72 | [] | no_license | JoA-MoS/Python | db246a5ff2201c6ef1dfb9d9b0fd8a37e1d7c46d | 4547c2667f3eaf0a001532bb2b103aab3c344fbe | refs/heads/master | 2021-08-16T11:18:20.420868 | 2017-07-21T05:52:18 | 2017-07-21T05:52:18 | 96,125,892 | 0 | 0 | null | 2021-06-10T18:40:09 | 2017-07-03T15:34:52 | Python | UTF-8 | Python | false | false | 786 | py | """landscapes URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"justin.r.dietz@gmail.com"
] | justin.r.dietz@gmail.com |
06610cfadfa7b7f1355f379fc9b4d330bce025b0 | a1e7457b5d1ef03ea9d891a6886718b3029c2ba4 | /zoe_scheduler/state/blobs/__init__.py | 35e47533ccc22fcd06c1ecf2657d097af0742752 | [
"Apache-2.0"
] | permissive | ddcy/zoe | 06bd104b0d3b632ed18ff8a8cc5b580b1f140b1f | bd1ac8cdefeda3ebd1ccc941243b781cb7c0beb2 | refs/heads/master | 2020-12-26T21:46:17.128925 | 2016-02-26T17:52:20 | 2016-02-26T17:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # Copyright (c) 2016, Daniele Venzano
#
# 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 w... | [
"venza@brownhat.org"
] | venza@brownhat.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.