blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00c0d530a5b0f65588d44f4fdf36cb651f4784c0 | c6a777a66d2959dfb51744e43727c07f5e256145 | /src/Crawler/Cookie/CrawlerCookie.py | 2cfd5ad2da6cec2d3d57f4e2a28c047351436fdf | [] | no_license | imarklei90/MyPythonProject | 46ef01ff0b05cf92085580ea551d95e8a6e53b0b | 0854f6b20f3432b780ef58906f6f89e499d48f50 | refs/heads/master | 2021-06-25T22:54:26.188844 | 2020-09-08T01:37:01 | 2020-09-08T01:37:01 | 90,716,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # -*- encoding:utf-8 -*-
import urllib2
import cookielib
'''
保存Cookie到变量
'''
#声明一个CookieJar对象实例来保存Cookie
cookie = cookielib.CookieJar()
#创建Cookie处理器
handler = urllib2.HTTPCookieProcessor(cookie)
#构建Opener
opener = urllib2.build_opener(handler)
response = opener.open("http://www.baidu.com")
for item in cookie:
... | [
"imarklei90@126.com"
] | imarklei90@126.com |
b6ed62cc68aadcab0458c7b448ea6bc26e94984c | a420a6c6af1afa44bf988ebaebc5b3aafa6cee9d | /items/admin.py | 97341721b4584aa2c74a4d06e294e24ff9e54eb8 | [] | no_license | fon-harry/crafter_django | c4365f1975d9aed6fd0d7f618e000cba399a0354 | f4ee046f99031221ceb958313ee80b4b48049d86 | refs/heads/master | 2021-06-25T09:11:29.177645 | 2017-09-12T04:50:38 | 2017-09-12T04:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from django.contrib import admin
from items.models import Item, ItemParam
class ParamInline(admin.TabularInline):
model = ItemParam
class ItemAdmin(admin.ModelAdmin):
inlines = [ParamInline]
admin.site.register(Item, ItemAdmin)
| [
"fon.harry@gmail.com"
] | fon.harry@gmail.com |
1118b60ecc4364aa073ecbde1360f49df0809525 | fef8fb0ee587e682b6ede434e6744526ce1e9c87 | /deepqlearning/plottrainresults.py | 2f8a31617f1483e39d405c8b70a6652c364aec3a | [] | no_license | MioNok/q-stock-exploring | a4cbe46cc5e45090fee3c482260bb3698813f4ea | 0de37623f093d95ba586f21f2753f8b73a6c9ef6 | refs/heads/master | 2022-12-11T00:39:31.453693 | 2020-03-23T12:10:59 | 2020-03-23T12:10:59 | 220,065,743 | 0 | 0 | null | 2022-12-08T03:23:38 | 2019-11-06T18:41:53 | Python | UTF-8 | Python | false | false | 1,588 | py | import matplotlib.pyplot as plt
import glob
import os
import pandas as pd
import numpy as np
#Latest log file
list_of_files = glob.glob('logdata/*')
latest_file = str(max(list_of_files, key=os.path.getctime))
#latest_file = "logdata/LogdataTest_256x256.20c_RewSha-0.5_test_serie.csv"
#Plots a bar graph showing the... | [
"nokelainen.m@gmail.com"
] | nokelainen.m@gmail.com |
ea2f5c0278cf81ce6a961011b597677d80605caa | c6588d0e7d361dba019743cacfde83f65fbf26b8 | /x12/5030/240005030.py | e169346e38e95704c267b8fa6401b8abee37c150 | [] | no_license | djfurman/bots-grammars | 64d3b3a3cd3bd95d625a82204c3d89db6934947c | a88a02355aa4ca900a7b527b16a1b0f78fbc220c | refs/heads/master | 2021-01-12T06:59:53.488468 | 2016-12-19T18:37:57 | 2016-12-19T18:37:57 | 76,887,027 | 0 | 0 | null | 2016-12-19T18:30:43 | 2016-12-19T18:30:43 | null | UTF-8 | Python | false | false | 1,585 | py | from bots.botsconfig import *
from records005030 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'MZ',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 0, MAX: 99999, LE... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
52481a8e4926b59a22f1e76782153122afa24d64 | fcdc5d3df5e947fc89ddb6ecb4c0cf73677a5213 | /blatt_2/MadGraph5_v1_3_20/tests/test_manager.py | eff53914e2bf5cdbfbc2233a9e2f1604ab320cc8 | [] | no_license | harrypuuter/tp1 | 382fb9efe503c69f0249c46a7870ede088d8291d | e576e483dc77f6dcd477c73018ca2ea3955cd0c7 | refs/heads/master | 2021-01-10T11:38:16.467278 | 2016-01-27T16:28:46 | 2016-01-27T16:28:46 | 45,135,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,530 | py | #!/usr/bin/env python
################################################################################
#
# Copyright (c) 2009 The MadGraph Development team and Contributors
#
# This file is a part of the MadGraph 5 project, an application which
# automatically generates Feynman diagrams and matrix elements for arbitr... | [
"brommer.sebastian@gmail.com"
] | brommer.sebastian@gmail.com |
ea04b23575df228493aa423e8c7d0d0551fbf78f | c56782d17af21274a4b7a8a44f4e5382abbd2e2d | /homeassistant/components/nest/climate_sdm.py | 6ee988b714f7ef5a6e6d28a552c6aee8b2c67010 | [
"Apache-2.0"
] | permissive | atetevoortwis/home-assistant | bc6ecc778862739dea0d34465c23b49b48741239 | 046d7d2a239e0eab370ff9d11b1885ee9c69dffe | refs/heads/dev | 2023-02-22T17:58:43.345572 | 2022-06-18T17:58:10 | 2022-06-18T17:58:10 | 160,043,546 | 0 | 0 | Apache-2.0 | 2023-02-22T06:22:31 | 2018-12-02T12:10:43 | Python | UTF-8 | Python | false | false | 12,822 | py | """Support for Google Nest SDM climate devices."""
from __future__ import annotations
from typing import Any, cast
from google_nest_sdm.device import Device
from google_nest_sdm.device_manager import DeviceManager
from google_nest_sdm.device_traits import FanTrait, TemperatureTrait
from google_nest_sdm.exceptions imp... | [
"noreply@github.com"
] | atetevoortwis.noreply@github.com |
fa12e96df5c231714ad31f68a8c115b1b98665ec | a2a49fe339b22feeda85000bed3313788ef4279f | /interface_project/interface/webtours.py | 19ee7f8c515ca6c9eb2c1a69abc230c0c62516dd | [] | no_license | guor911/interface_autotest_project | 980ef434b52b83597843312435870e7d2abdfe96 | eb1d6e23924c7eb9f97a0988551e2afcaffcd516 | refs/heads/master | 2021-01-22T21:21:55.726794 | 2017-08-18T03:51:35 | 2017-08-18T03:51:35 | 100,670,730 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'shouke'
import urllib.parse
import json
from globalpkg.log import logger
from htmlparser import MyHTMLParser
from unittesttestcase import MyUnittestTestCase
step_output = None
class WebTours(MyUnittestTestCase):
def setUp(self):
pass
# 测试访问W... | [
"guor911@users.noreply.github.com"
] | guor911@users.noreply.github.com |
2174eb348a13e069f56247f14210d3a3ae056b7a | 2d30c45f9da0f1016491208e7d0f9f0edc27b160 | /TensorFlow/variable.py | e6becc64f8154d708c8a90435fb198f674fc59c1 | [] | no_license | IFICL/Python | ab1b2f95233a23bbd942e3c3be30155f9c34a905 | 818effdeae38cb2d9407b5d2e61db49b1884bdbb | refs/heads/master | 2021-07-02T20:43:25.580733 | 2020-07-27T15:46:13 | 2020-07-27T15:46:13 | 101,303,287 | 0 | 0 | null | 2017-08-24T14:32:04 | 2017-08-24T14:21:33 | null | UTF-8 | Python | false | false | 384 | py | #!/usr/bin/python2.7
#Filename:variable.py
import tensorflow as tf
state = tf.Variable(0, name="counter")
one = tf.constant(1)
new_value = tf.add(state, one)
update = tf.assign(state, new_value)
init_op = tf.initialize_all_variables()
with tf.Session() as sess:
sess.run(init_op)
print sess.run(state)
fo... | [
"291474043@qq.com"
] | 291474043@qq.com |
c70a779cc10fd3ba3fe7aca2d9736f9bcb91c53f | d594f3926f6379ef7c382c608cb211f507240420 | /csunplugged/tests/utils/errors/test_ThumbnailPageNotFoundError.py | b73009b6a4421c213fecea7a8dec041baac543c4 | [
"LicenseRef-scancode-secret-labs-2011",
"MIT",
"OFL-1.1",
"LGPL-2.0-or-later",
"AGPL-3.0-only",
"CC-BY-4.0",
"Apache-2.0",
"BSD-3-Clause",
"CC-BY-SA-4.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | uccser/cs-unplugged | 0b9151f84dd490d5b90771a3706327a623d39edc | 363e281ff17cefdef0ec61078b1718eef2eaf71a | refs/heads/develop | 2023-08-25T08:45:29.833025 | 2023-08-22T02:58:35 | 2023-08-22T02:58:35 | 66,315,075 | 200 | 41 | MIT | 2023-09-14T02:15:40 | 2016-08-22T23:16:40 | Python | UTF-8 | Python | false | false | 958 | py | """Test class for ThumbnailPageNotFoundError error."""
from django.test import SimpleTestCase
from utils.errors.ThumbnailPageNotFoundError import ThumbnailPageNotFoundError
from unittest.mock import Mock
class ThumbnailPageNotFoundErrorTest(SimpleTestCase):
"""Test class for ThumbnailPageNotFoundError error.
... | [
"jackmorgannz@gmail.com"
] | jackmorgannz@gmail.com |
034e52336eae5d2e099249d72684781794fd0f7e | 2a76fb251735143db07d408ea7cf030fa0a63afd | /emimi by Mija/Auxiliares/plebicito.py | 6c59f8bec94e9f512eafd49c1b87214767e02468 | [] | no_license | MijaToka/Random3_1415 | 96c5b0f5fd19c01c12487cf6b41add0372ea3cc4 | 1b7780422529418a74a3885f64c1ff74aa147e61 | refs/heads/master | 2023-04-20T11:42:23.960514 | 2021-05-08T21:57:44 | 2021-05-08T21:57:44 | 329,778,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | import porcentaje as per
def plebicito(apruebo,rechazo,blanco,nulo):
total = apruebo + rechazo + blanco + nulo
totPar = apruebo + rechazo
# % c/u vs total
aTot = per.porcentaje(apruebo,total)
rTot = per.porcentaje(rechazo,total)
bTot = per.porcentaje(blanco,total)
nTot = per.porce... | [
"mijail.tokarev@ug.uchile.cl"
] | mijail.tokarev@ug.uchile.cl |
9aedd1dcef9bba603276f63a2461f08343919225 | 588e4587cac37b78ee4f00bb8d6f22f08445500e | /classify.py | 741ec6115bbc3e37c092639b29f9925f8db0b1ad | [
"MIT"
] | permissive | Bachir-Bouhafs/Integration-IA-In-App | 805794cf41a3120e9f1ec5a2848d25d6387cbf02 | 6d1888f1a207eb9e418607c30f10df4dcc39a303 | refs/heads/master | 2023-01-13T16:41:40.563166 | 2020-11-19T02:58:04 | 2020-11-19T02:58:04 | 279,342,113 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | import tensorflow as tf
import sys
import os
# Disable tensorflow compilation warnings
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf
def analyse(imageObj):
# Read the image_data
image_data = tf.io.gfile.GFile("/content/Plastic-Detection-Model/static/images/"+imageObj, 'rb').read()
# Loa... | [
"bbouhafs@dxc.com"
] | bbouhafs@dxc.com |
26a4deb38675a8c8a8ed12f89b75937b21c93aec | 62e240f67cd8f92ef41ce33dafdb38436f5a9c14 | /tests/parsers/bencode_parser.py | f012685073c77212fcc29cb216201a18d37e4779 | [
"Apache-2.0"
] | permissive | joshlemon/plaso | 5eb434772fa1037f22b10fa1bda3c3cc83183c3a | 9f8e05f21fa23793bfdade6af1d617e9dd092531 | refs/heads/master | 2022-10-14T18:29:57.211910 | 2020-06-08T13:08:31 | 2020-06-08T13:08:31 | 270,702,592 | 1 | 0 | Apache-2.0 | 2020-06-08T14:36:56 | 2020-06-08T14:36:56 | null | UTF-8 | Python | false | false | 839 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the Bencode file parser."""
from __future__ import unicode_literals
import unittest
from plaso.parsers import bencode_parser
# Register all plugins.
from plaso.parsers import bencode_plugins # pylint: disable=unused-import
from tests.parsers import test_l... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
20bb207a7f45ed8feba83492f4c9fc1e97d488ca | 59b67908c20267f033c600deecccda0d22d83ff1 | /PyBank/main.py | 65f1a9155a87639b91b982e0b7915a70cb1b484b | [] | no_license | 8135tao/python-challenge | 6ca4073dcdbb6101fc6e040a26f34b37b4eb8974 | 43a99c4609a4c68a994c87dc78015abcc2a895a3 | refs/heads/master | 2020-03-27T18:57:15.804154 | 2018-09-04T03:28:45 | 2018-09-04T03:28:45 | 146,955,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | import os
import csv
# define the average function, used to caculate the average in a list
def average(list):
average = sum(list)/len(list)
return average
open_bank_csv = os.path.join("Resources", "budget_data.csv")
output_bank_csv = os.path.join("Output", "bank_report.csv")
with open(open_bank_csv, newl... | [
"8135tao@gmail.com"
] | 8135tao@gmail.com |
8dfce7048c04d01ecfe51beabd1a5db76f678f55 | 8f7b120d62555db30cce59f3fae2265e940e45dd | /pwsh2python/recursion/palindrome.py | 6a002ebada0dcf87227261bee9e45252c7cabc78 | [] | no_license | carrba/python-stuff | 82861716a5cd32b23fba4d184ec07b4f8f5a9fa8 | 3b92505347d1135ed519f157b3a7c298b161c1f5 | refs/heads/master | 2023-03-31T13:42:31.148805 | 2021-04-06T11:04:57 | 2021-04-06T11:04:57 | 355,154,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!/usr/bin/python3.6
# To "dot source" these functions: "python -i iteration_v_recursion.py"
def isPalindrome(s):
def toChars(s):
s = s.lower()
ans = ''
for c in s:
if c in 'abcdefghijklmnopqrstuvwxyz':
ans = ans + c
return ans
def isPal(s):
... | [
"b.carr@btinternet.com"
] | b.carr@btinternet.com |
ad88385c51c5f4ddc6060cb87917f350ee2eb21a | 26ba5338c82b40bb8a55d42a5aa46e46b0793995 | /Codigo/Introducción_a_las_ciencias_de_la_computación/Proyecto/JuegoVidaProcessing.py | 20e4662b1605fdd6ca724d73bb526daa25da33c1 | [] | no_license | Miguelburitica/La-carpeta-compartida | c6b5a588b0e6984bbe01fea01bfe3dfd74f2c57e | 4ff007bec5fc6d49d25e9d2ac0992d4dbde51f5a | refs/heads/master | 2023-08-23T17:51:44.116999 | 2021-09-19T18:01:55 | 2021-09-19T18:01:55 | 364,123,821 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,824 | py | import pygame
import time
def zeros(n):
n1 = n[0]
n2 = n[1]
A = []
B = []
for i in range(0, n1):
A.append(0)
for j in range(0, n2):
B.append(A)
return B
def copy(A):
B = []
for i in A:
B.append(i)
return B
def flur(A):
cont = 0
B = []
if typ... | [
"79605328+Miguelburitica@users.noreply.github.com"
] | 79605328+Miguelburitica@users.noreply.github.com |
3de7f46bd8f298104d797f1472d4f3b509ac8a36 | 5e1c4ef03d4c6e78f5eba6927ed6398aa6f4ef15 | /dirganize/dirganize/main.py | d95fa54ed762abf4f329eaab8ca8cd6749db6c7f | [
"WTFPL"
] | permissive | DanKrt82/py-utility-pack | d2dd0e18d407b041e968f3b24cf69ea0ed194f15 | fb76c0e39f6cb3cbe9413779bc3273d4208208a6 | refs/heads/main | 2023-03-27T01:56:03.003943 | 2021-03-30T07:49:44 | 2021-03-30T07:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | ''' the main script to get the job done '''
import os
import logging
import yaml
from rich.progress import track
from rich.logging import RichHandler
import typer
app = typer.Typer()
@app.command()
def main(path: str = os.getcwd(), loud: bool = False):
''' Organizes files into folders
'''
if loud:
... | [
"66209958+aahnik@users.noreply.github.com"
] | 66209958+aahnik@users.noreply.github.com |
fafd0630281dead30fd586d58a20022f1dbf6a41 | c88f443442d50bc921f58e5a74268b095b7b260e | /ANN_cnn.py | 0fe6b27f79c1530f2a03ef6898d11d0430e494b4 | [] | no_license | ShiuLab/ANN_Pipeline | ee1f43d042de201cbbe072e62aff6da4f498a3d1 | 8e8ce322757c5f4465723a251734216539d06ab1 | refs/heads/master | 2020-05-15T07:56:48.413551 | 2019-02-22T19:03:18 | 2019-02-22T19:03:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,999 | py | """
PURPOSE: Run Parameter Sweep for Convolutional Neural Network Regressor using Tensorflow
cnn_a.py : Grid search through parameter space
cnn_b.py : Build CNN using provided parameters
INPUTS:
REQUIRED:
-x Option 1: File with input data. Images should be processed so all pixle data is in one line:
... | [
"azodichr@msu.edu"
] | azodichr@msu.edu |
e839ecd9be455305da0ddb3de1c37545ff326c83 | eae37356b50189eb846948a621bd680e981f23e5 | /dataloader/cocodataset/COCOBBox.py | 9caccac83cd3f3518ecee34b87a75fd7688f1743 | [] | no_license | PuAnysh/LightPoseEstimation | 63f0996029cec8d7259c085131e83c4ec846f7a6 | 905aa61a3e68b6e63304877cd08b9c5c16115a8f | refs/heads/master | 2020-05-15T03:55:47.515244 | 2019-05-03T15:01:49 | 2019-05-03T15:01:49 | 182,074,712 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,159 | py | import os
import cv2
import random
import imgaug as ia
from imgaug import augmenters as iaa
import numpy as np
from pycocotools.coco import COCO
from dataloader.cocodataset.coco_process_utils import *
from dataloader.cocodataset.process_utils import *
import torch
MIN_KEYPOINTS = 5
MIN_AREA = 32 * 32
class COCOBBox():... | [
"34938360+PuAnysh@users.noreply.github.com"
] | 34938360+PuAnysh@users.noreply.github.com |
d7113fb61d1221530d82a3c6c1499407ae4b16eb | f2e4235cf1f585983d9bfcde4b243be47f591931 | /python/turbodbc_test/test_data_types.py | eb1ecc9d322fe38babd51bdcea621513499ca960 | [
"MIT"
] | permissive | xhochy/turbodbc | 09e5d0a41fd5f366befd1c7f8f82ef5606c535d8 | 7f9c1ed9712212325acc0d09f01f37fda70689fa | refs/heads/master | 2021-01-12T09:44:45.149082 | 2016-12-02T10:32:51 | 2016-12-02T10:32:51 | 76,235,575 | 3 | 0 | null | 2016-12-12T08:10:26 | 2016-12-12T08:10:26 | null | UTF-8 | Python | false | false | 924 | py | import turbodbc.data_types
from turbodbc import STRING, BINARY, NUMBER, DATETIME, ROWID
ALL_TYPE_CODES = [turbodbc.data_types._BOOLEAN_CODE,
turbodbc.data_types._INTEGER_CODE,
turbodbc.data_types._FLOATING_POINT_CODE,
turbodbc.data_types._STRING_CODE,
... | [
"michael.koenig@blue-yonder.com"
] | michael.koenig@blue-yonder.com |
a3b9d0e4df5d91fa2810ce61bd6197ef16fe11f7 | 8b6d20bcfd8261e57f0e6a2e4ce663a1aaa80589 | /test/mpitest.py | 167074e90340b703f4f8b65a94310cb063277ff0 | [] | no_license | ulno/boxworld | 61b9c3b8232359d99ab7ca2c0526cf713f35f4c3 | d9a8dc75189af45150073ba13dd886179c71ca2c | refs/heads/master | 2020-04-17T08:22:53.782088 | 2011-10-11T08:47:38 | 2011-10-11T08:47:38 | 33,189,462 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | #! /usr/bin/python
'''
Run as
$mpirun -np X mpitest.py
where X is any integer > 0
'''
from mpi4py import MPI
from boxworld.MpiChannel import MpiChannel
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
print "World size = %d" % comm.Get_size()
print "My rank = %d" % rank
channel = MpiChannel((rank + 1) % 2)
channel.send... | [
"chris.willmore@yahoo.com@445e7b20-2786-1b12-35be-a1b6363c6c07"
] | chris.willmore@yahoo.com@445e7b20-2786-1b12-35be-a1b6363c6c07 |
a4751d4abd26f3fe4f502c5a17a59ff8645a749d | 26a41203694014098e96a7bdb38ef641439b68f2 | /machine-learning/adult-census-classification/scripts/common_classes.py | 680394b7bced4e882dcf1ca209e7bb04353050f6 | [
"Apache-2.0"
] | permissive | Kyledmw/student-projects | 42035d41cb4db04ef47e783d32424903436f5c8a | 766ef9d4b879c8c2d2086c2abe0fa224e2e051c6 | refs/heads/master | 2021-09-06T22:42:01.507696 | 2018-02-12T18:51:41 | 2018-02-12T18:51:41 | 100,615,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | class DataFrameWrapper:
def __init__(self, data_frame, classification_col):
self.data_frame = data_frame
self.target = data_frame[classification_col]
self.data = data_frame.drop([classification_col], axis=1)
| [
"kyle.williamson@mycit.ie"
] | kyle.williamson@mycit.ie |
818274c60e5102029821cbe724453034b68eb740 | ebb06a29a99f6ae4f820321a4bc03f401cf307df | /File5.2 Threshold.py | c83c1ede18c1d186a566a3592e5352cc32df5576 | [] | no_license | ed-word/OpenCV | 0201351868bb83cefe7bdadfca6375f6a8394932 | 7484b3a518eefb4cebf0b7288e7ac5ba831b0efc | refs/heads/master | 2021-01-19T16:02:03.656923 | 2017-04-14T06:38:05 | 2017-04-14T06:38:05 | 88,239,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | import cv2
import numpy as np
img = cv2.imread('bookpage.jpg')
grayscaled = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
retval, threshold = cv2.threshold(grayscaled, 10, 255, cv2.THRESH_BINARY)
cv2.imshow('original',img)
cv2.imshow('threshold',threshold)
cv2.waitKey(0)
cv2.destroyAllWindows()
| [
"noreply@github.com"
] | ed-word.noreply@github.com |
3d82aea556022fc260397c29a753c5ffa68f69ad | 815f70b6a6e1c58676de2def893baf4f70b0f72c | /apps/restapi/twee/serializers/tip.py | 54ce2848966860f92faa422cc2ccd5e4a37a538b | [
"MIT"
] | permissive | adepeter/pythondailytip | ed6e25578f84c985eea048f4bc711b411cdc4eff | 8b114b68d417e7631d139f1ee2267f6f0e061cdf | refs/heads/main | 2023-05-30T11:07:57.452009 | 2021-06-11T13:42:19 | 2021-06-11T13:42:19 | 375,838,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from rest_framework import serializers
from ....twee.models import PythonTip
class TipSerializer(serializers.ModelSerializer):
class Meta:
model = PythonTip
fields = '__all__'
extra_kwargs = {
'tip': {
'max_length': 140
}
}
| [
"adepeter26@gmail.com"
] | adepeter26@gmail.com |
6f5f72cfb9a38ad98b64f5045409d1e549053e0b | 1ad172412200d1d329f6ae4d9a15cb0c3552f3b8 | /test_cases/Order_query/OrderSearch_case.py | 3f5d4d418ccca6181c201e0c7e0e56d21e7d6996 | [] | no_license | RenAnt2020/MMC_Test | cb15682cba83b7e232fc3c67461052ac215e98c1 | 24ad8bc94a09213bdad95dc1b64cba714d26c86e | refs/heads/master | 2022-05-07T08:47:59.121063 | 2020-04-18T10:35:45 | 2020-04-18T10:35:45 | 255,606,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import os
import time
import unittest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from common import set_driver,config,login
class Orderquery_test(unittest.TestCase):
def setUp(self):
self.driver = set_driver.se... | [
"rensh_sh@ushareit.com"
] | rensh_sh@ushareit.com |
3b2d5bc2538d9e0b0e3a1a82073383ceeb399786 | c22ecfb26d050859200a94dd5e7f621ae7b90f56 | /store/admin.py | f08f23bdac7811385c3dec719bb48887665c748c | [] | no_license | egyping/greatkart-django | 781d97ccdbf137608999d0c7c33bef6cdbd38063 | be7c55f5dc5f5ed0ea90bc0af94bb50cf6eec024 | refs/heads/main | 2023-04-28T17:45:35.187057 | 2021-05-05T14:10:09 | 2021-05-05T14:10:09 | 368,433,292 | 1 | 0 | null | 2021-05-18T07:05:53 | 2021-05-18T07:05:52 | null | UTF-8 | Python | false | false | 580 | py | from django.contrib import admin
from .models import Product,Variation
class ProductAdmin(admin.ModelAdmin):
list_display = ('product_name', 'stock', 'category', 'modified_date', 'is_available')
prepopulated_fields = {'slug': ('product_name',)}
class VariationAdmin(admin.ModelAdmin):
list_display = ('pr... | [
"tniketsuryabhan40@gmail.com"
] | tniketsuryabhan40@gmail.com |
692efcfd69ad0780a0063b2fb0230e9fe0e34af1 | 5d434b255037add0268f73914cf3fa7e63f3a320 | /orchestra/migrations/0041_alter_payrate_fields.py | 63fb69bd571e21fa3cd4c5f67cdbd8e47ed20e1c | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | ksbek/orchestra | 781c7cc599ca85c347772a241330c7261203d25b | 07556717feb57efcf8fb29a1e2e98eebe2313b8c | refs/heads/master | 2021-01-01T18:52:43.068533 | 2017-07-19T18:45:19 | 2017-07-19T18:45:19 | 98,458,290 | 0 | 1 | null | 2017-07-26T19:24:48 | 2017-07-26T19:24:48 | null | UTF-8 | Python | false | false | 979 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-19 20:39
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('orchestra', '0040_timeentry_created_at'),
]
operations ... | [
"zhenya.gu@gmail.com"
] | zhenya.gu@gmail.com |
05e4769270b3841f5e381d31587a16fbd8d3d651 | ddd766ad2c618fe5029e8f3513cc2d118ebab297 | /自动化第二周/函数_02.py | 61a7b912c5abc3b1345b0fcb94cd3cf13e4ef5b2 | [] | no_license | zouzhuwen/PycharmProject | 12aa44c5c2774b603cae3e03182404d1007e7879 | 99b2da6469f086e60d17a080e42f465ae3c3148f | refs/heads/master | 2023-04-02T04:49:19.764297 | 2021-04-01T14:41:01 | 2021-04-01T14:41:01 | 353,390,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #2.写函数,用户传入修改的文件名,与要修改的内容,执行函数,完成整个文件的批量修改操作
import os
f_name = 'f_name'
f_new_name = 'f_new_name'
old_str = '2'
new_str = '*'
f = open(f_name, 'r', encoding='utf-8')
f_new = open(f_new_name, 'w', encoding='utf-8')
for line in f:
if old_str in line:#读取每一行内容 查看old_str是否在当前内容中
new_line = line.replace(old_... | [
"13543418221@163.com"
] | 13543418221@163.com |
fffb4050755f90b92c1d70fa81a6436320201dab | 74bc5d0205d96e1c97baca9daa4119d26d5c6c7c | /tictactoe.py | a2a8f3629866ae79ed09a15f597454a895ea88c0 | [] | no_license | Malidrisi/Tic-Tac-Toe | 44caa3b18f50b47c881dcc3d8a44c6374789e3a6 | e2042e82c2cd0c192b95f8fe196c57b51c726abb | refs/heads/master | 2021-09-05T14:36:10.354944 | 2018-01-28T23:09:51 | 2018-01-28T23:09:51 | 119,305,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | # -*- coding: utf-8 -*-
#Author:Maha Alidrisi
import random
import numpy as np
from prettytable import PrettyTable
class TicTactoe:
def __init__(self, n):
"""create a board of X's and O's of given size n"""
self.board = np.random.choice(a=['X', 'O'], size=(n, n))
def scan_lines(sel... | [
"noreply@github.com"
] | Malidrisi.noreply@github.com |
e7f4cc1a6a2cad26cc4bdadff3dd2dcffbc159a3 | da1ecce9a364a6fb9b70f1d62d2e3e896a800823 | /src/old_version/src/TextClassifier/business_logic/w2v_helper.py | 631cb81f3c07642b1f9e9f6b3d4663edd13c8159 | [] | no_license | Carried-by-Compiler/Text-Classification-Using-Neural-Networks | da6cd984039929404d946eeeb21cfeda9c44dcf5 | 171ceba986405565a9468decd8e3c48832c746f6 | refs/heads/master | 2022-01-15T06:17:35.822579 | 2019-06-06T18:35:29 | 2019-06-06T18:35:29 | 148,683,600 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from os import listdir, path
from gensim.utils import simple_preprocess
class Word2VecHelper:
def __init__(self):
self.__file_path = ""
def __iter__(self):
files = listdir(self.__file_path)
for file in files:
for line in open(path.join(self.__file_path, file), "r", encod... | [
"15167798@studentmail.ul.ie"
] | 15167798@studentmail.ul.ie |
c38cccf1ff61bbe5a597c326d2cabdb66a7189be | dff51e4a3bbcc464c0069a16f1394d36c31e2372 | /omaha_server/omaha/migrations/0032_auto_20170918_0418.py | 527d8d1fe68e6985f5c4df58504a44075d93c4de | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tuladhar/omaha-server | 3264de057221322038c7af704ea268c9e267d7da | 6cfd86e4319e03af0eb319fae6c867691ffc2c36 | refs/heads/master | 2022-11-21T19:38:50.335963 | 2020-06-09T14:14:03 | 2020-06-09T14:14:03 | 281,736,223 | 1 | 0 | NOASSERTION | 2020-07-22T17:02:48 | 2020-07-22T17:02:47 | null | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2017-09-18 04:18
from __future__ import unicode_literals
import django.core.files.storage
from django.db import migrations, models
import omaha.models
class Migration(migrations.Migration):
dependencies = [
('omaha', '0031_platform_verbose_name'),
... | [
"anmekin@gmail.com"
] | anmekin@gmail.com |
6f8c5602cdedb6aeec199294867b756d7b4aef58 | 372647ad5f8a40754116c2b79914708e46960aef | /ivi/agilent/agilentMSOX3024A.py | 612461f32a85d96ab8c7187f5deb332e6e19ab84 | [
"MIT"
] | permissive | edupo/python-ivi | 52392decb01bc89c6e1b42cbcbd1295a131e91f5 | 8105d8064503725dde781f0378d75db58defaecb | refs/heads/master | 2020-03-31T21:06:02.059885 | 2018-10-04T12:34:38 | 2018-10-04T12:34:38 | 152,567,486 | 0 | 0 | MIT | 2018-10-11T09:40:35 | 2018-10-11T09:40:32 | Python | UTF-8 | Python | false | false | 1,695 | py | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012-2016 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
2576b89ff2ae1242fbaefbd20eb4c1e8edd6d6d0 | fdf5afd24ad58068589a3d5947b7b5c958509ef9 | /spo-final/spo-final/purchaseorder/views.py | 46b24f2906369c55691938283cb7f8a3ed789e47 | [] | no_license | mpruitt441/Secure-Purchase-Order | 48a656e8748ae3d6be9c6a641e26100413e8ac2f | ae7b71753cdc2fca190b3a900cfe481b4565f4e4 | refs/heads/master | 2021-05-23T14:23:37.481853 | 2020-04-05T21:42:26 | 2020-04-05T21:42:26 | 253,337,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | py | from django.shortcuts import render
from .models import order
from django.contrib.auth.mixins import UserPassesTestMixin
from django.views.generic import (
ListView,
DetailView,
CreateView,
UpdateView,
DeleteView
)
from datetime import datetime
from Crypto.Hash import SHA256
from Crypto.Signature im... | [
"mpruitt441@gmail.com"
] | mpruitt441@gmail.com |
ef082f9bb3bf1cae4397163bfce43ab59d77dfac | 90e6860b5370b742f01c0664ac84f14dc1272155 | /examples/helloZiggurat/src/ziggHello/models/zigguratTest/ZigguratTestBase.py | 6f82ebfb51611a2d85ce9a0b6f6c0667be506880 | [] | no_license | sernst/Ziggurat | e63f876b8f2cb3f78c7a7a4dcf79af810a540722 | 4ae09bbd9c467b2ad740e117ed00354c04951e22 | refs/heads/master | 2021-01-17T07:20:17.138440 | 2016-05-27T14:27:43 | 2016-05-27T14:27:43 | 9,278,283 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # ZigguratTestBase.py
# (C)2013
# Scott Ernst
from ziggurat.sqlalchemy.ZigguratModelsBase import ZigguratModelsBase
#___________________________________________________________________________________________________ ZigguratTestBase
class ZigguratTestBase(ZigguratModelsBase):
"""A class for..."""
#=============... | [
"swernst@gmail.com"
] | swernst@gmail.com |
8388f8030a73aadaee38927b0b428af3eca40429 | 4713416e5ba6dde475ad5cc6df45a9e1ffbe55c6 | /model/plotter.py | 880405ad3898d2720a11b7d1c126f66de561e64a | [] | no_license | NicklasLallo/AnimatMath | 1fd2e6e48998f51e9eaa3925558b54c40988e988 | af982df71d51c52c5beefcfa6121e8970c736eff | refs/heads/master | 2021-09-14T23:47:41.063118 | 2018-05-22T13:59:05 | 2018-05-22T13:59:05 | 120,452,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | import matplotlib.pyplot as plt
import math
import numpy as np
def plot(xs, ys, xaxis = [0, 100], yaxis = [0, 100], title = "", xlabel = "", ylabel = "", figname = "untitled"):
plt.clf()
plt.plot(xs, ys)
plt.axis(xaxis+yaxis) #([0,int(training_iters/display_step),0,100])
#xLabels = range(0,training_ite... | [
"guspih@student.chalmers.se"
] | guspih@student.chalmers.se |
98de90d7168cb6b55b4790469f058e69491e8651 | 6e8b2b1141c21558f96a5f47c94f9999bf9c48ec | /01_celeb_base/utils/imgs.py | 99e8bd2390735839479908f9c920b7ec56ae81ac | [] | no_license | DigitalNegatives/DataScience-Celebrity_Image_Classification | 6eba11dc8a1a473c139727cc9e4f933b3c8d3c4e | 38363626f86a939e7e5fda093bcc9a6cd85764d5 | refs/heads/master | 2021-01-20T08:08:03.949579 | 2017-07-07T14:29:10 | 2017-07-07T14:29:10 | 90,104,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,851 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import matplotlib.animation as animation
# Taken from lab3
def montage(images, saveto='montage.png'):
"""Draw all images as a montage separated by 1 pixel borders.
Also saves the file to the destination specified by `saveto... | [
"Anton@ANTONs-MacBook-Pro.local"
] | Anton@ANTONs-MacBook-Pro.local |
181bea7d54fb0745488710e8786442854b224d20 | 0894f07a04ddaafd8ddec7f3fb6fdfdf03751c4f | /Week 4/Assignment 4/Lab_03_skeleton.py | fa28dd3e56a853256521ede22b88267eae1af077 | [] | no_license | tanyhb1/YSC2221-Intro-To-Python | f66a7fac1344610a3c69a6a5a55e1396c6d9f594 | 20168b85124bff73dff5e308ae2556831110b089 | refs/heads/master | 2020-04-12T14:44:33.937075 | 2019-01-11T10:04:40 | 2019-01-11T10:04:40 | 162,560,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,354 | py | '''
Full Name: TAN YAO HONG, BRYAN
Matric No.: A0171585X
Email: bryantanyh@u.yale-nus.edu.sg
'''
# Complete Q1 below
def describe_data(L):
for item in L:
print("The type of the element " + str(item) + " is " + str(type(item)))
# Complete Q2 below
# Remember NOT to use the "count" function!
# ... | [
"bryantanyh@gmail.com"
] | bryantanyh@gmail.com |
ce6ba4e14a0939871961f34fbb9541e478074c53 | 623cf714ea1046ccefa3978946be4341a4f5a8eb | /chapter6/6-5.py | 6345a93f5c988472ececa8230fb426f587311b35 | [] | no_license | Layla7120/think_python | a93358d9c02ca3dba57c1107fafa305db2b64690 | 102bed3f6085c368b00e9244415b86ca49780387 | refs/heads/main | 2023-03-10T22:27:22.554731 | 2021-03-01T11:26:46 | 2021-03-01T11:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | def gcd(a,b):
if b == 0:
return a
else:
r = a % b
return gcd(b, r)
print(gcd(10, 3))
print(gcd(16, 32))
print(gcd(42,49)) | [
"jenny7120@naver.com"
] | jenny7120@naver.com |
e3c099ce14720d63eda95a3524e002822cfee87f | 2417cdceb80e884ebc997c00a4203202e1e4bfe6 | /src/202.happy-number/202.happy-number.py | fb3333b1d8d791433ee60317f2a2768c98c93418 | [
"MIT"
] | permissive | AnestLarry/LeetCodeAnswer | 20a7aa78d1aaaa9b20a7149a72725889d0447017 | f15d1f8435cf7b6c7746b42139225e5102a2e401 | refs/heads/master | 2023-06-23T07:20:44.839587 | 2023-06-15T14:47:46 | 2023-06-15T14:47:46 | 191,561,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | #
# @lc app=leetcode id=202 lang=python3
#
# [202] Happy Number
#
# Write an algorithm to determine if a number is "happy".
# A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the num... | [
"anest@66ws.cc"
] | anest@66ws.cc |
e6d7612b2e6c8dcd4672e16d3ccc956d5f5c52d4 | 5f254feaaaccf72f888ee732c8251ebbecd31c0e | /posts/models.py | f83a03eaad4d678cd99edbd81c996c10bc3796f3 | [] | no_license | Iki-oops/hw04_tests | e8e6bbac024564dc8bdf9689ee2f573f674b4376 | 76d9ca64a9373922b52d20f84f0ae200e74a1a2b | refs/heads/master | 2023-07-07T01:53:54.899812 | 2021-03-13T13:03:01 | 2021-03-13T13:03:01 | 338,635,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | from django.db import models
from django.contrib.auth import get_user_model
User = get_user_model()
class Group(models.Model):
title = models.CharField(max_length=200, verbose_name='Оглавление',
help_text='Оглавление группы')
slug = models.SlugField(unique=True, verbose_name='UR... | [
"bambagaevdmitrij@gmail.com"
] | bambagaevdmitrij@gmail.com |
99b79165de6a81ea03820f1e6b825469ff8e643b | 85e007823fa2dbfb3791550ec99840df3087df7f | /PCソ・jungsanbot_PC.py | 93906a5578ebe3874a3012bd5fd6da0304641f43 | [
"MIT",
"Apache-2.0"
] | permissive | sikote/item | c41cce448b3b429e6d91a59c6939b9796d12f37f | 0950557435656916b445ea9d05f2d8c218f86289 | refs/heads/main | 2023-06-05T12:47:39.546683 | 2021-06-30T12:45:22 | 2021-06-30T12:45:22 | 381,698,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252,196 | py | # -*- coding: utf-8 -*-
##################################### PC V16 #############################################
#########################################################################################
#########################################################################################
##################... | [
"noreply@github.com"
] | sikote.noreply@github.com |
8de3381b4bf1330627995867f8533aa971e31273 | 8a77b3a993b5ad9aaa7da0eeca4e02462e336dcd | /IPTVPlayer/hosts/hosturllist.py | f20088c05a692f45a988dd1d1ea5115e84830f55 | [] | no_license | gorr2016/iptvplayer-for-e2 | cc6a6004ff04a5aca1145860abd09791d762ea20 | 74b4320feca9079293b19c837b14cfc402d77673 | refs/heads/master | 2021-01-01T05:00:41.155592 | 2016-04-27T09:28:41 | 2016-04-27T09:28:41 | 57,188,687 | 1 | 1 | null | 2016-04-27T09:28:42 | 2016-04-27T06:20:30 | Python | UTF-8 | Python | false | false | 15,857 | py | # -*- coding: utf-8 -*-
###################################################
# LOCAL import
###################################################
from Plugins.Extensions.IPTVPlayer.components.iptvplayerinit import TranslateTXT as _
from Plugins.Extensions.IPTVPlayer.components.ihost import CHostBase, CBaseHostClas... | [
"samsamsam@o2.pl"
] | samsamsam@o2.pl |
dcbce63a4f635b820872afd1af848c2461144de0 | e0c634e40dd267a78ea10beb7f5fe9c1f1c790a8 | /heuristics.py | 0b0f9887ca2f2cf76040bc52f7feb124230aeb1d | [] | no_license | IIT-Lab/distgcn | 0fdbae47813639d2001035e7afdfdcd70e006b7f | 42edc47d9a0967c478fcd1d74728da9dfac52530 | refs/heads/main | 2023-01-22T23:42:07.854165 | 2020-11-21T22:58:04 | 2020-11-21T22:58:04 | 315,986,061 | 1 | 0 | null | 2020-11-25T15:52:41 | 2020-11-25T15:52:41 | null | UTF-8 | Python | false | false | 12,687 | py | import networkx as nx
import dwave_networkx as dnx
import igraph as ig
import pulp as plp
from pulp import GLPK
import numpy as np
import pandas as pd
import scipy.sparse as sp
import time
print(nx.__version__)
def greedy_search(adj, wts):
'''
Return MWIS set and the total weights of MWIS
:param adj: adja... | [
"zhongyuan.zhao@rice.edu"
] | zhongyuan.zhao@rice.edu |
474ca8e491dd7c8a564d196843a5593c517b1619 | 7533acbcf36b196e5513fad2b3c9623411500f0f | /0x0F-python-object_relational_mapping/model_state.py | 9b22628ad72e4f2739e3630bec79c475e4db1008 | [] | no_license | AndrewKalil/holbertonschool-higher_level_programming | 97ce8af5ad7e8e9f0b1a25d7fa7dcb1a2b40810e | 9bef1f7c8ff9d8e90ec2aed7a29f37cec3a5e590 | refs/heads/master | 2022-12-17T19:02:12.096913 | 2020-09-23T00:00:44 | 2020-09-23T00:00:44 | 259,439,815 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!/usr/bin/python3
"""First state model"""
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String
Base = declarative_base()
class State(Base):
"""Class State"""
__tablename__ = 'states'
id = Column(Integer, autoincrement=True, primary_key=True,
... | [
"1541@holbertonschool.com"
] | 1541@holbertonschool.com |
b34c607bedf72bb9aa8b628f15795fddc255adb9 | fe1b7d3ea2b8996729354d87cca43defd7b2f194 | /exerc22.py | a7b68a57e164039c0ab2d7908bf813c5c6a18924 | [] | no_license | Raggiiz/Exercicios-repeti-o-python | 539df748a5b2299d6c10f5d448af331619d75b9b | 32221824205d830b504ff7a171bbbe43b09690a4 | refs/heads/master | 2021-05-24T16:21:44.126027 | 2020-04-07T01:12:37 | 2020-04-07T01:12:37 | 253,653,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | print("exercício 22")
numero = int(input("\nDigite um número: "))
lista = []
if numero % 2 != 0 or numero == 2:
print("primo")
else:
for i in range(numero):
if numero % (i + 1) == 0:
lista.append(i + 1)
print("Os números divisiveis por ", numero, " são ", lista) | [
"noreply@github.com"
] | Raggiiz.noreply@github.com |
bead46da9ad05509cdffb58698655e11cfcebd2c | 3f55706d4679e1c6d0f622de7f208b6c4efeba35 | /Round_1/437. Path Sum III/solution_1.py | d2e2c9e40f8b0c0402a19c25c6ca54d77608c378 | [] | no_license | buptwxd2/leetcode | 37649f95ea3eed6f02761e77f525e66e1f7c1379 | 3f5ad6164c147e7b51b7850dcd279150fa8a7600 | refs/heads/master | 2020-12-10T03:35:25.511610 | 2020-10-08T07:55:10 | 2020-10-08T07:55:10 | 233,490,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> int:
if root is None:
return 0
return sel... | [
"buptwxd@163.com"
] | buptwxd@163.com |
9afc4200eacafdbebe20217fe3f7491121e55325 | 06e51cd96f2788f87c7c426244167ddbfcc0d551 | /integer_solutions.py | cc8d955bf497fb094c54cccbe9ef48050297b32e | [] | no_license | Lisolo/ACM | 683724184dc2af31ef45073a9cd3ef7f2cdabfba | 231d80dd72768ca97c3e9795af94910f94cc0643 | refs/heads/master | 2016-09-06T16:04:11.910067 | 2014-11-26T12:25:50 | 2014-11-26T12:25:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # coding=utf-8
"""
给你两个整数a和b(-10000<a,b<10000),请你判断是否存在两个整数,他们的和为a,乘积为b。
若存在,输出Yes,否则输出No
例如:a=9,b=15, 此时不存在两个整数满足上述条件,所以应该输出No。
"""
a = 6
b = 9
divisors = []
flag = 0
if b >= 0:
for x in xrange(-b, b+1):
if x == 0:
pass
else:
b % x == 0
divisors.append([x, b/... | [
"iamsoloa@gmail.com"
] | iamsoloa@gmail.com |
c014798865331ef81d1e07c344df553a92294cac | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03031/s125157001.py | 4ac1006ad6aa89f188ff8caaa0a4a2b77a42ef94 | [] | 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 | 654 | py | n, m = map(int, input().split())
switch_list = []
for i in range(m):
s = list(map(int, input().split()))
s.pop(0)
switch_list.append(s)
p_list = list(map(int, input().split()))
#print(switch_list)
#print(p_list)
ans = 0
for bit in range(1 << n): #100・・0(n+1桁)-1 = 111・・・1(n桁)となりn桁のビット演算をfor文で回す
cnt ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a60350b213f426911d7492c6dfbd215092a9d023 | b65a4926083b3b951d12dcdc549fc64031f637cd | /InterfaceSimulator.py | 01275ca53024780fe2dbf086a5821a535b9bd420 | [] | no_license | leongersen/afstuderen | 94170c6c4f4284ee6839ce23114a6be77e492115 | 80f554eb17d02b62171d472d8e2611f4948ffa9f | refs/heads/master | 2023-08-26T14:47:39.082999 | 2015-06-22T06:42:13 | 2015-06-22T06:42:13 | 35,265,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | count = []
scount = []
data = []
SECTOR_COUNT = 150
SECTOR_SIZE = 32
CHUNK_SIZE = 8
def end():
print scount
for w in count:
print w
def keepCount ( a, b ):
global count
count[a][b] = count[a][b] + 1
for i in range(0, SECTOR_COUNT):
data.append([0xFF] * SECTOR_SIZE)
count.append([0] * SECTOR_SIZE)
scoun... | [
"leongersen@gmail.com"
] | leongersen@gmail.com |
39141509439abd9f0a6b15b5b4ff62a6ad30bd59 | db33d917da9de935e907b0f879733dcfd615bab0 | /AndilePackage/Setup.py | c75582047bffd0fd0c3cc1657da156feffea10fd | [] | no_license | AndileMasi/HandyAndiPkg | c97489864769d7d840ee81f5d80dc3287e8d4cdb | 892cd65e2ae0ca6d3f748ebc1796de97beabd924 | refs/heads/master | 2020-04-30T23:24:39.050836 | 2019-03-22T16:36:51 | 2019-03-22T16:36:51 | 177,143,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from setuptools import setup, find_packages
setup(
name='HandyAndi',
version='0.1',
packages=find_packages(exclude=['tests*']),
license='MIT',
description='Handy Andi is a project that Andi created for school.',
long_description=open('README.md').read(),
install_requires=['numpy'],
url=... | [
"msikamhlanga@gmail.com"
] | msikamhlanga@gmail.com |
534cc8440706e06fc068160b53f229350ac9b500 | 3c9ef8977c79c759e38024490eb48d3ef28156a1 | /homiechat/homiechat/settings/production.py | 06ac00b660240c642ae191490b44b29d847ec0da | [] | no_license | CdogDuBoss/HomieChat | e97cf285faa113c191d2ad81dd4c3502ddf5dd9d | 9797e18dcea4ffb54a04971cc4d54edaf858fdf1 | refs/heads/main | 2023-04-04T15:09:39.340227 | 2021-04-14T01:30:12 | 2021-04-14T01:30:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | from .base import *
DEBUG = False
ALLOWED_HOSTS = [config('HOST1')]
# Database
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': config('MYSQL_DB_NAME'),
'USER': config('MYSQL_DB_USERNAME'),
'PASSWORD': config('MYSQL_DB_PASSWORD'),
'HOST': config('M... | [
"tmakpk@gmail.com"
] | tmakpk@gmail.com |
1adaca04826c2a450f792d08797e3de2da6ea791 | 5714362f0b714c0010008620de7046c77e475924 | /Documentos/Sistema Cadastro/projetoalunossite/alunos/migrations/0011_auto_20150914_1614.py | cb08636fa84ee130da1735cc7783acb6f6fce743 | [] | no_license | nicholasqms/Sistema-Cadastro-LPS | 6d78588790a8b8116836093d4a8274acec38582c | 733dd5fc930cf183e973b5316be26c7a41ef50c2 | refs/heads/master | 2021-01-10T07:07:08.446653 | 2017-09-20T22:44:53 | 2017-09-20T22:44:53 | 46,052,692 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('alunos', '0010_auto_20150914_1222'),
]
operations = [
migrations.RemoveField(
model_name='teacheruser',
... | [
"nquagliani@poli.ufrj.br"
] | nquagliani@poli.ufrj.br |
78bd30b9f9da63a19232ab8b64f033c27041abab | 13c78dd8a97796d4027de75570c24bcab9ee57f9 | /0017/0017.py | f99d1974a8e762b4c8bd53dc3165dccc9c877c9b | [] | no_license | Magicwangs/show-me-the-code | b48f1ba9c845c0c17fb1f82127869dff22433edd | 5ad6b6b259f4f0f0f9e907549374de07abcb9185 | refs/heads/master | 2020-12-27T15:04:52.259544 | 2016-11-01T07:27:35 | 2016-11-01T07:27:35 | 67,112,421 | 1 | 0 | null | 2016-09-01T08:21:47 | 2016-09-01T08:21:47 | null | UTF-8 | Python | false | false | 1,210 | py | # -*- coding: utf-8 -*-
# python2.7
"""
Created on Thu Oct 27 20:31:11 2016
@author: MagicWang
"""
import json
import xlrd
from lxml import etree
def getConentOfExcel(xlsName):
xls = xlrd.open_workbook(xlsName)
sheet = xls.sheet_by_name('Student')
retDict = dict()
for i in range(sheet.nrows):
... | [
"752106129@qq.com"
] | 752106129@qq.com |
a8bfde75fc2cf284a72e5f69140fbf309caf8038 | 46c318dbfedfb95d38207431bbf14bacf12d185f | /NLP/II_Process/Matching/RegEx.py | d738c2ca0c9f6a0f8c5f444a610746577f70e4b9 | [] | no_license | miltonluaces/problem_solving | 2e92877ee736c0920ce6e94dcc73fd01a52e3e46 | bccb89d8aadef4a2e409fc6c66ccad2fb84b6976 | refs/heads/master | 2023-01-08T15:58:51.002478 | 2020-10-28T21:31:46 | 2020-10-28T21:31:46 | 308,143,277 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import regex
# Normal matching.
m1 = regex.search(r'Mr|Mrs', 'Mrs'); print(m1.expandf('{0}'))
m2 = regex.search(r'one(self)?(selfsufficient)?', 'oneselfsufficient'); print(m2.expandf('{0}'))
# POSIX matching.
m3 = regex.search(r'(?p)Mr|Mrs', 'Mrs'); print(m3.expandf('{0}'))
m4 = regex.search(r'(?p)one(self)?(selfsuff... | [
"miltonluacs@gmail.com"
] | miltonluacs@gmail.com |
ec4ec2e3c77321eb2a7abae34fafaa6174cbf408 | 18c8564e197df26d256297b2b25e55f4e68f90e6 | /practice/random_walk.py | eebd8a516999fa6cca3f73d3844a1f71a29b9a7b | [] | no_license | Emni194/Data_Visualization | a303d4a7f606836b36bac42bb03c2e2e060fcaa6 | facb8e1d1f47379873dee272ffa3197515a52686 | refs/heads/master | 2023-03-14T17:47:15.129103 | 2021-03-05T18:34:40 | 2021-03-05T18:34:40 | 344,900,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | from random import choice
class RandomWalk:
"""Initialize the random walk"""
def __init__(self, num_points=5000):
self.num_points = num_points
self.x_values = [0]
self.y_values = [0]
def fill_walk(self):
while len(self.x_values) < self.num_points:
x_direction ... | [
"emasladojevic@yahoo.com"
] | emasladojevic@yahoo.com |
bf6fab955be82cb8c2a81a65c3d6b12d35068493 | 3e1584f4bc2f1d4368b10d0f28fcba69d946eb00 | /core/apps/kubeops_api/migrations/0063_auto_20200221_0654.py | a552b6fac34d4eea6b6e19c7ad53a2cf039001be | [
"Apache-2.0"
] | permissive | azmove/KubeOperator | 80d102a41a0009ae85dd2d82c7dc164511de9a58 | 0561ddbc03eded5813a86693af7fc4ee9647f12d | refs/heads/master | 2021-01-08T22:40:51.267027 | 2020-02-21T08:47:43 | 2020-02-21T08:47:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # Generated by Django 2.2.10 on 2020-02-21 06:54
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('kubeops_api', '0062_auto_20200221_0510'),
]
ope... | [
"scydeai@qq.com"
] | scydeai@qq.com |
958bc639829a72e3edfb3b8bf551e0d39083e8e7 | 14a9be9ea1e2e3f0102a96c2be9b3a42ad803835 | /src/notabs/settings.py | 63b85861e98c35af7299ca143720c75406556faa | [] | no_license | nowells/notabs | ac5f5de1b42f39df11d394e05c5803e812e04ef8 | 781c066348e153c39d99bb2c50c84eb0c5982c76 | refs/heads/master | 2020-03-30T05:10:30.668757 | 2008-12-12T01:32:47 | 2008-12-12T01:32:47 | 88,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import os
SERVER_IDENTIFIER = os.getenv("SERVER_IDENTIFIER")
# import defaults
from notabs.config.base import *
# import overrides
overrides = __import__(
"notabs.config." + SERVER_IDENTIFIER,
globals(),
locals(),
["notabs.config"]
)
# apply imported overrides
for attr in dir(overrides):
# we onl... | [
"nowell@strite.org"
] | nowell@strite.org |
25e6685584de9491b8ae6d8bc05c1c8999b332a7 | 08a021d428a7dae2dfdc490685b02b6af5c889a2 | /suma.py | 06bfd7009a042344771b48dc56cc59bc268001cc | [] | no_license | denylsonroque/trabajo1 | 0785690b005fc3bedc9e7e2a0500456fd38ebf4a | e6ff459630bb878d11519263791fc266dab7d32c | refs/heads/master | 2021-01-10T11:55:39.349256 | 2016-03-05T17:58:38 | 2016-03-05T17:58:38 | 53,214,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | A = 53
B = 21
C = 18
D = 12
if A + C>= 100 :
print "mayor que 100"
else:
print "menor que 100"
| [
"csdgalcasa@gmail.com"
] | csdgalcasa@gmail.com |
a36515d1cca24d17b73be2b84c3ca3931489f8d9 | ab10071d226c5f6b9d9700715845d1641c9a99d4 | /report.py | ef000aeda42f6150a1cea3eb7604ce52de814fb4 | [
"MIT"
] | permissive | s0ko1ex/soc_recon | 62713a271209ef9acf8bf60eb34d0dfa6706890d | bb876d05d7b466c2cb7eef6b2f1f6280aeee8054 | refs/heads/master | 2021-10-16T15:00:34.561131 | 2019-01-10T13:05:56 | 2019-01-10T13:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | import os
from operator import itemgetter
import fpdf
def gen_report(target, rep):
print("[=] Creating PDF...")
class PPDF(fpdf.FPDF):
def footer(self):
self.set_y(-15)
self.set_font("Arial", style="I", size=8)
self.cell(0, 10, "soc_recon report", align="C")
... | [
"bakunin.t@protonmail.com"
] | bakunin.t@protonmail.com |
c1cb1a8d764cff27cf807edb91dbe3bbd2d2c376 | dd7e61a36fcafb117797553f9f6f2abdbe0c73f0 | /001_运算符/08_operator_precedence.py | 80caa68fbbcbc39472f8ddf5a1e70cda2bda759b | [] | no_license | wenotes/python_base_notes | 549adc5fcb8c2e120c69ad9faca1804b41ed95b8 | 4894282d364f4a7fdaee1f9dc1f343275e3c7718 | refs/heads/master | 2020-04-26T22:47:01.140921 | 2019-07-15T07:12:00 | 2019-07-15T07:12:00 | 173,883,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/6/21 23:47
# @Author : SNCKnight
# @File : 08_operator_precedence.py
# @Software: PyCharm
"""运算符优先级
一般用()控制运算优先级
** 指数 (最高优先级)
~ + - 按位翻转, 一元加号和减号 (最后两个的方法名为 +@ 和 -@)
* / % // 乘,除,取模和取整除
+ - 加法减法
>> << 右移,左移运算符
& 位 'AND'
^ | 位运算符
<= < > >= 比较运算符
<> == ... | [
"17875571919@163.com"
] | 17875571919@163.com |
d5878957969dab6e3b0c1396ba2694995bb6c42d | 05e81499a7d8f13cac52c4608d2103b47557baee | /SPECK/SPECK32/Model2/SPECK_Test_2.py | 5edc1a7ba32ac9d585b7715e672871fef9265146 | [] | no_license | mhgharieb/Speed_up_MILP_with_Matsui | 851a8cacdd1893edbffbd851daaaad69772363d0 | 62db0910837bbe915cd44327e310ec3276685b58 | refs/heads/master | 2020-03-28T13:23:12.603785 | 2018-08-28T02:16:04 | 2018-08-28T02:16:04 | 148,390,821 | 3 | 1 | null | 2018-09-11T23:02:39 | 2018-09-11T23:02:39 | null | UTF-8 | Python | false | false | 3,114 | py | '''
Created on 20180201
@author: Administrator
'''
from CryptoMIP import *
n = 16 # word size (one branch)
alpha = 7 # right cyclic rotation by alpha bits
beta = 2 # left cyclic rotation by beta bits
opti = [0, 1, 3, 5, 9, 13, 18, 24, 30]
class SPECK(Cipher):
def genVars_input_of_round(self, r):
asse... | [
"zhangyingjie@iie.ac.cn"
] | zhangyingjie@iie.ac.cn |
bf7c87602127e69b89708f20b431b391f0bf3a0e | f7b7fbada98ff1cc39629c1e694d80b2a458af64 | /Python/gestion.py | c55d1c09bcc2aefe9ab5065c52564c9750a5b98f | [] | no_license | josesureda/proyecto-integrador | 94f9da6d8bcaefc14d52033fff687e1cf66741ca | e471c808382423905fe60a5df4d95e6f5de45ab9 | refs/heads/master | 2021-01-20T11:16:58.290326 | 2015-10-15T13:14:30 | 2015-10-15T13:14:30 | 44,315,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py |
import csv
import numpy as np
with open('matrix.txt') as f:
base = [map(int, row) for row in csv.reader(f)]
with open('initialMarking.txt') as f:
marking = [map(int, row) for row in csv.reader(f)]
with open('backwards.txt') as f:
backwards = [map(int, row) for row in csv.reader(f)]
initialMarking = n... | [
"suredajose@gmail.com"
] | suredajose@gmail.com |
ac3914cafd19b139a71a626a0f464c9712214260 | 979db45722c36212c408d06c99bf8e0cd8dac102 | /propietapi/core/constants/__init__.py | 1278ba3867651b948b419ced9695eea6429d6c68 | [] | no_license | propiet/api.propiet.com | d8121d703a6096b05410b91b64907d912bae3fe8 | 8b125c60648eed9b8ee51915e31ca547157b0d8a | refs/heads/master | 2021-01-21T19:35:06.024751 | 2014-10-03T22:58:38 | 2014-10-03T22:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from core.constants.languages import *
from core.constants.property import * | [
"lionel@hoopemedia.com"
] | lionel@hoopemedia.com |
1a3f58ff72525025be7cb6efb9e648ea7861e2ad | d72b15489fd3758a69000f9eeacdc7b08064f418 | /profiles/models.py | ed103b5e7ccd9c849b9a8cc1552219455839b2af | [] | no_license | simpliciob/ebrains | 3f19339432e83c28a8fd4eb7c268005f3767afe1 | a65ae6d9644c4eb57556de6b3ad2e89dbfef7d00 | refs/heads/master | 2020-03-06T17:29:23.729542 | 2018-03-27T13:23:02 | 2018-03-27T13:23:02 | 126,796,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | from django.db import models
from django.db import models
from django.conf import settings
from .utils import code_generator
from django.core.mail import send_mail
from django.db.models.signals import post_save
from django.core.urlresolvers import reverse
from django.contrib.auth.models import AbstractUser
User=setting... | [
"bachelorsithole@gmail.com"
] | bachelorsithole@gmail.com |
d5e6e6a4462ba37760f7e0ca982a4d83c593ff39 | da603cd023341129a9ef4d74d860764b02631c3f | /disk_objectstore/__init__.py | d819f8f7affa99d27b85acdd568958c5ccf1a9bc | [
"MIT"
] | permissive | chrisjsewell/disk-objectstore | c800ad4267abe7c3975f93740727ea05b207d30d | c718ffdec3881653acb82beaeed69fadf3cd9e3d | refs/heads/master | 2023-07-18T12:20:02.391818 | 2020-07-20T17:46:14 | 2020-07-20T17:46:14 | 298,001,569 | 0 | 0 | MIT | 2020-09-23T14:45:37 | 2020-09-23T14:45:36 | null | UTF-8 | Python | false | false | 230 | py | """An implementation of an efficient object store that writes directly on disk.
It does not require a server running.
"""
from .container import Container, ObjectType
__all__ = ('Container', 'ObjectType')
__version__ = '0.4.0'
| [
"giovanni.pizzi@epfl.ch"
] | giovanni.pizzi@epfl.ch |
1e64d87dfe87a31900f768f82c81e0725aa124e2 | 1ed281b93e11a53ea4ae2a3798aeb9f58dd664de | /webapp/starter/config/settings/local.py | b7e7a63716f22047acb2f9e1c94ef1b10a5f6274 | [
"MIT"
] | permissive | bartkim0426/django-docker-seul | 5ae2a31f1004ae8292569bcafd2e66ce56f67c7e | 6a75605281403357514d7b30e65d2685bb907b31 | refs/heads/master | 2021-05-09T02:55:04.765647 | 2019-02-11T07:45:09 | 2019-02-11T07:45:09 | 119,226,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | import os
from .partials import *
DEBUG = True
INSTALLED_APPS += [
'debug_toolbar',
'django_extensions',
]
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ]
INTERNAL_IPS = ['127.0.0.1', ]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
... | [
"bartkim0426@gmail.com"
] | bartkim0426@gmail.com |
799f016f71a2e4a7a841bde9fd855d8d0f0f762a | 4aae9b8b520a35f0048597e8e2f8ca1d1e796d46 | /polls/twoFasset.py | 14fc5ec920c204408a5df3f0574a9942687f6fe1 | [] | no_license | abhi-portrait/Major-Project | 2f82e95b65669b6d1ae0598b1a91c10418ba3756 | 283d1ff2427b3cafb7aecf64c1800502d73cd7f5 | refs/heads/master | 2021-01-19T23:58:21.046284 | 2017-04-26T01:09:02 | 2017-04-26T01:09:02 | 89,058,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,612 | py | import sys
sys.path.append('/home/abhi/Desktop/Django_Projects/mysite/polls/')
import MySQLdb
import operator
from operator import itemgetter
from SQLHandler import sqlHandler
class twoFasets:
def getCount(self,query):
db = MySQLdb.connect("127.0.0.1","root","","Terrorism")
cursor = db.cursor()
... | [
"abhi.25101994@gmail.com"
] | abhi.25101994@gmail.com |
a316a3d8d491341794f77c6543c82c2f0dc91708 | 42efe9195603ab21240b7b64ea66d1cb6259b8df | /rsasecure_login/__init__.py | 3cc0be8d9084b07fdc13d4a00b428aef36aa20ee | [] | no_license | milljm/rsasecure_login | c1328212fc91a710803605e10e8280e45fff72c2 | 98573695d3c1519d27b5e4f9b512cc2eb9affaf8 | refs/heads/master | 2023-05-10T18:59:03.655740 | 2021-05-24T17:40:19 | 2021-05-24T17:40:19 | 367,440,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | from .__main__ import Client
| [
"jason.miller@inl.gov"
] | jason.miller@inl.gov |
9435b3d1732ef67e999ed2b20434f161d896706d | b1445f68fd8fee4fd3f8c4e2e2a8a5517d07233f | /C4E18 Sessions/Session_1/hello_world.py | 678a3bc12f4d6e271d028839070ba841c7072682 | [] | no_license | thedarkknight513v2/daohoangnam-codes | 4cf8010bca531adc8beda7ec8b8586e8b15ea7cc | 2b986ede3aa4b5855a287067ce903e688244d426 | refs/heads/master | 2020-03-21T10:59:50.338732 | 2018-10-10T10:58:02 | 2018-10-10T10:58:02 | 138,483,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | print("Hello everyone!")
name = input("What's your name?")
print("Hi", name)
| [
"allmaterials513@gmail.com"
] | allmaterials513@gmail.com |
ecfd17e47b80b4e3c73b5e2d35fd398c5287efa7 | e1a181fcb6bcf40cf447ac47097e4a97ac103e23 | /Práctica 7/Ejercicio5.py | d4e1a8edcdeec8c5070707187aa667a9e9cf50a6 | [] | no_license | SergiEduVila/PROGRAMACION | f0fa9e19441e335d3b62f644169dbabcadce8ff1 | edb9816e680bb3123c05803bfa592fa546301316 | refs/heads/master | 2020-09-14T02:25:02.389166 | 2019-11-20T17:08:27 | 2019-11-20T17:08:27 | 222,984,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | #Sergi Eduard Vila Sánchez# #Práctica 7 Ejercicio 5#
#Escribe un programa que te pida una frase y una vocal, y pase estos datos como parámetro a una función que se encargará de cambiar todas las vocales de la frase por la vocal seleccionada. Devolverá la función la frase modificada, y el programa principal la imprim... | [
"noreply@github.com"
] | SergiEduVila.noreply@github.com |
e3c51536fb709ace2edeb5d8f468e4d94fce447e | f18df31d4ba8569b420219f5d52da311a32581d6 | /cloudkittydashboard/enabled/_11_project_rating_panel.py | 7dd8f795c512b7d4e07021ce3f00e1c166a41769 | [
"Apache-2.0"
] | permissive | openstack/cloudkitty-dashboard | 418b54a59a93201c79e422ee4571c9f24b6234e5 | 4ed8863c1b15d489a2a78e767b737402647bc4da | refs/heads/master | 2023-08-23T06:09:10.473334 | 2023-07-12T15:40:17 | 2023-07-12T15:40:17 | 23,157,716 | 25 | 14 | Apache-2.0 | 2022-01-18T10:16:11 | 2014-08-20T17:35:14 | Python | UTF-8 | Python | false | false | 810 | py | # Copyright 2015 Objectif Libre
#
# 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 agr... | [
"sheeprine@nullplace.com"
] | sheeprine@nullplace.com |
d2bdb6384c85995a4d33d070cbe4bd13ccc229d3 | f7cb5e3c63779575b61cc00add8e3b79f20f8695 | /hello/serializers.py | 9124090aa4ca6dd370420ef4ae6422e07552079a | [] | no_license | 16francej/crypto-horses-data | 0d50c48069411918062fb5da20ea83550e059a98 | eda5694aaef66df9e2ddf5b031556d53c95c216c | refs/heads/main | 2023-08-22T00:23:19.192091 | 2021-10-23T20:46:04 | 2021-10-23T20:46:04 | 415,417,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from django.contrib.auth.models import User, Group
from .models import Horses
from rest_framework import serializers
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ['url', 'username', 'email', 'groups']
class GroupSerializer(serializers.Hyperlinke... | [
"francejoshuar1@gmail.com"
] | francejoshuar1@gmail.com |
498e00cf0c38fd2af13ab2a42b197babc1e6547b | c9601493765a63b8d2af99ab1b9c8d432d90f86c | /django/mysite/main/models.py | a4330acdedff02f92de5ee52806f73439365ec0d | [] | no_license | TiesHoenselaar/Projects | e724369fd2bbdc55f77f4f52856cc66d12828c1c | 4997e23812eaacd5d2c76aa2465831a3a760752a | refs/heads/master | 2021-04-09T10:42:53.926002 | 2020-10-10T18:28:45 | 2020-10-10T18:28:45 | 125,439,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.db import models
from datetime import datetime
# Create your models here.
class Tutorial(models.Model):
tutorial_title = models.CharField(max_length=200)
tutorial_content = models.TextField()
tutorial_published = models.DateTimeField("date published", default=datetime.now())
def __str__(sel... | [
"tieshoenselaar@gmail.com"
] | tieshoenselaar@gmail.com |
6bdb5beaafe32ee1f40cb067b31a6b248e501259 | c40becbc9dacac8119fdd8a6628d2d5dc48dc96f | /Wprowadzenie_do_Sztucznej_Inteligencji/Lista_2/mnist/mnist_softmax_old.py | c163ca973ba742da565e43f4486598d300d9f6d8 | [] | no_license | brzepkowski/college | 1313ef7e0db1c2f05bbf1589faf76cd2989948ce | a8bcc56eb35ffeb19760ad66b4973f5eb7936b09 | refs/heads/main | 2023-08-02T11:04:29.157599 | 2021-09-15T12:31:44 | 2021-09-15T12:31:44 | 406,747,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | # Copyright 2015 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... | [
"incidental.address@gmail.com"
] | incidental.address@gmail.com |
dc5df62772aa2776784f4a98884bd8e5b46d2056 | 5f2608d4a06e96c3a032ddb66a6d7e160080b5b0 | /week4/homework_w4_b1.py | e70dae9bdc972512e2e7c76f7fc0ae5ef2833a01 | [] | no_license | sheikhusmanshakeel/statistical-mechanics-ens | f3e150030073f3ca106a072b4774502b02b8f1d0 | ba483dc9ba291cbd6cd757edf5fc2ae362ff3df7 | refs/heads/master | 2020-04-08T21:40:33.580142 | 2014-04-28T21:10:19 | 2014-04-28T21:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | import math, random, pandas
def Vol1_s(dimension):
return (math.pi ** (dimension / 2.0)) / math.gamma(dimension / 2.0 + 1.0)
def Vol1_s_est(dimensions, trials):
n_hits = 0
for i in range(trials):
dists = [random.uniform(-1.0, 1.0) for _ in range(dimensions)]
sum_dist = sum(d ** 2 for ... | [
"noelevans@gmail.com"
] | noelevans@gmail.com |
8e34dc8454b9c5ff42c1d3ad371c7adfcf1bbbb9 | d98c47a2367c82a9a7af7b0ea21f5caca04b3417 | /project01.py | 0aff0c2da7532a04e9c9c9e25f4290b6587452ea | [] | no_license | jakubrozumek/engeto_pvni_projekt | a2bce6bb0135132e42e3f5226c6905fda1f899d1 | 706618997e751f18a6fdb67d5984d4cf13ecc125 | refs/heads/master | 2023-04-02T07:53:24.723012 | 2021-04-14T21:49:16 | 2021-04-14T21:49:16 | 354,520,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,972 | py | TEXTS = ['''
Situated about 10 miles west of Kemmerer,
Fossil Butte is a ruggedly impressive
topographic feature that rises sharply
some 1000 feet above Twin Creek Valley
to an elevation of more than 7500 feet
above sea level. The butte is located just
north of US 30N and the Union Pacific Railroad,
which traver... | [
"jakub.rozumek@hotmail.com"
] | jakub.rozumek@hotmail.com |
9893c7b1e2d409993936cf8a1bc833b58608c7f5 | 76f4b3b02d535bd1794760582cb1d2c89073105b | /testclient.py | b7ff06c23529c5ca800addcf646ed9df68b8912a | [] | no_license | jalexis91/tictactoeaiui | 4cf74a343d917b61036902498ce4bfd527e86377 | 69ce634c19686efc9e3117b0062899eb4e29ab29 | refs/heads/master | 2021-01-10T22:03:27.552461 | 2015-11-24T01:35:31 | 2015-11-24T01:35:31 | 35,315,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,657 | py | # ECEN 404
# Team 2
# Matthew Fischer
import socket
from threading import Thread
from Adafruit_PWM_Servo_Driver import PWM
from socketIO_client import SocketIO, BaseNamespace
import time
base = 15 # channel number for base
shld = 14 ... | [
"jalexis91@users.noreply.github.com"
] | jalexis91@users.noreply.github.com |
6b2c4292022e50ca3fd008d63133334d3a19ce05 | 4e657a4449e1fa07b03cfc12c7352d226cbb434a | /app/db/database.py | cafbe35b3734dcd0f62a756e6e883e24196f549a | [
"MIT"
] | permissive | jmonts/random-dose-of-knowledge | d190d9912e30b83a8fb5d2ffaa80fb324b7a26fe | da827ecb00b09a1d01a546a4950d63dc18e3ba95 | refs/heads/main | 2023-04-23T11:02:07.292941 | 2021-05-04T07:26:07 | 2021-05-04T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
SQLALCHEMY_DATABASE_URL = 'sqlite:///db/random-knowledge.db'
engine = create_engine(SQLALCHEMY_DATABASE_URL, connect_args={'check_same_thread': False})
SessionLocal = sessionmaker(bind... | [
"dimitris.effrosynidis@gmail.com"
] | dimitris.effrosynidis@gmail.com |
b577dd27a9532277f72cb9fe6c733b59a779cf15 | 30e65ac99e1e44e03b5dbbd6091539a8b947b91f | /main/views.py | d000db035decd8ceb88bc0c76c069d775bfe7db9 | [] | no_license | its-rose/BBoard_on_Django | 37aaa9c2a02bed56d4ed056b06b0ec6b42c7e1b6 | 96a1f328f53df2ceeedb3f3201193906d15750dc | refs/heads/master | 2023-02-10T08:28:53.935707 | 2021-01-12T05:42:13 | 2021-01-12T05:42:13 | 328,883,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,586 | py | from django.shortcuts import render, get_object_or_404, redirect, HttpResponseRedirect
from django. http import HttpResponse, Http404
from django.template import TemplateDoesNotExist
from django.template.loader import get_template
from django.contrib.auth.views import LoginView, LogoutView
from django.contrib.auth.deco... | [
"seitakhunova@gmail.com"
] | seitakhunova@gmail.com |
ce1d12f180f5431372d250abd42e79630dd28233 | 06f60140118911e917b81cd421e1c2e8af5e6c06 | /tests/__init__.py | e4df8b00f9b840ae87da7e1f43425910802a5f3f | [] | no_license | tf198/annex-librarian | b58a4b298891077fca4890bf850ecb8ec1ad86c5 | a730a817040b328284663be35a86e14a91e9edf0 | refs/heads/master | 2021-01-02T09:45:09.605568 | 2017-12-20T07:25:20 | 2017-12-20T07:25:20 | 99,289,033 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py | import os
import logging
import shutil
import subprocess
import tempfile
import sys
import unittest
from librarian import Librarian, progress
progress.ENABLED = False
PYTHON_VERSION = int(sys.version[0])
#from . import trace_resources
#trace_resources.enable()
debug = os.environ.get('DEBUG')
if debug is not None:
... | [
"tris.git@shoddynet.org"
] | tris.git@shoddynet.org |
06436cbb4348355e1508294f584296dbfbbbea71 | c7223040804a0750ecc4e8961de2a4fbb201a40a | /prime_number.py | 9dcfa447ec220d8060d9d7ca2e918601734c641b | [] | no_license | Resham1458/Prime_Numbers | ed47eb506164d0b0e2878a92416fd61f3a9612e8 | 7d8a6b0e9087d2186a11ccdb051aa37249138d3b | refs/heads/master | 2021-06-23T22:34:41.434973 | 2017-08-31T17:27:49 | 2017-08-31T17:27:49 | 102,026,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | print("List of prime numbers between 2 and 100: ")
#creating list of all numbers from 2 to 100:
for a in range(2, 101):
num = a
if num > 1:
# checking for factors
for i in range(2, num):
if (num % i) == 0:
break
else:
print(num, "is a prime numbe... | [
"noreply@github.com"
] | Resham1458.noreply@github.com |
40f0018b88acec9d2cd0ee9d0c21f120bd1b39f5 | ead829087d9c9908aefdc84ee83b6645fb1fa23f | /shop/urls.py | f884ee31b00649c3a5f66ce1452bbbe0766b9389 | [] | no_license | sofinetimihai/shopping_cart_python | ee6a67f757a4c13a0157a037a25c1ae8e32f769f | f38a744a6dab0ff2edd5f38b35495546a756954e | refs/heads/master | 2020-07-23T15:52:53.952448 | 2019-09-10T17:44:05 | 2019-09-10T17:44:05 | 207,619,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from django.urls import path, re_path
from django.conf.urls import url
from . import views
urlpatterns = [
#url(r'', views.product_list, name='product_list'),
url(r'^category/(?P<categoryid>\d+)/$', views.product_list_by_category, name='product_list_by_category'),
url(r'^produs/(?P<id>\d+)/$', views.produ... | [
"sofinetimihai@gmail.com"
] | sofinetimihai@gmail.com |
e28276b1a48f2713b95c9518fb95e2cb7d2b741f | 1ddf91e1e34f920fcd96885765346f1c755760a6 | /bi-kodovi/nedelje/9/kodovi/1.5.FindInsertionPoint.py | dad74ad67470c86bc22e91cf24010abe51bfd0a1 | [] | no_license | djinx/bioinformatika | e5952616c05bd3a535e54f0c84ddbd3d2b425d44 | e244bd38379cf22e7807ad687551c3ee3d35eb4c | refs/heads/master | 2020-03-25T11:04:29.814182 | 2018-08-30T11:07:43 | 2018-08-30T11:07:43 | 143,718,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | def find_insertion_point(path, distance):
current_distance = 0
previous_vertex = path[0][0]
for i in range(1, len(path)):
v = path[i][0]
e = path[i][1]
current_distance += e
next_vertex = v
if distance <= current_distance:
return (previous_vertex, next_vertex, e, current_distance - distance)
... | [
"key13043@gmail.com"
] | key13043@gmail.com |
c2642282ea51a48b961b7ef526e5151b32458b24 | a2a0a66861e1c2a49fc7e2253acc0923e9131b63 | /A Set/281A.py | a1f931f85abc256d7ad1736ffbb5e2d66d5e615c | [] | no_license | notmycall/codeforces-solutions | e94664822cce38b6fbc0ed6be93724177c6cbff1 | fe8d35affd65fe342856ed70a505296f33fc0e7d | refs/heads/master | 2023-06-23T09:42:44.710572 | 2021-07-20T22:54:23 | 2021-07-20T22:54:23 | 387,039,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | w = input()
nw = w[0].upper() + w[1:]
print(nw)
# https://codeforces.com/problemset/problem/281/A | [
"71604243+notmycall@users.noreply.github.com"
] | 71604243+notmycall@users.noreply.github.com |
921bac25f3b96353e1c99bf350af26b2ba46974d | cd8eac578e8402bd329dcf4d639fa1b8434a2772 | /app/extensions/api_docs/cms/banner.py | e0c8e579e6e82071eb8db62b9167c812a78cf813 | [] | no_license | kongkonger/flaskdemo | 1909fc3530c3200fea60a7cfd5d58f6deb5d2c05 | abe53dd4518a4c2cf6642185faf93f2abe54a55d | refs/heads/main | 2023-01-13T20:54:30.208748 | 2020-11-17T14:42:47 | 2020-11-17T14:42:47 | 313,073,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # _*_ coding: utf-8 _*_
"""
Created by Allen7D on 2020/6/30.
"""
__author__ = 'Allen7D' | [
"ming159357456@gmail.com"
] | ming159357456@gmail.com |
6f8902a49b355e37d33249b7427e800d12b7938f | ca83eb19e142faf8c57aca0f1f9ecf92e0930f84 | /siap_git/models/linearRegression.py | ccf12ff5e6e81e0882c3abb7738ccce72f5437d0 | [] | no_license | milicanikolic/siap | 8518baff17554de5a1ddadbff107f8a93c90a5da | 5373ef82cfbd91b6ede78226c966b087ba1b1e26 | refs/heads/master | 2020-05-02T08:53:59.278202 | 2019-03-26T21:00:11 | 2019-03-26T21:00:11 | 177,855,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | import pandas as pd
import matplotlib.pyplot as plt
from sklearn.metrics import mean_squared_error, r2_score
from sklearn import linear_model
import numpy as np
train = pd.read_csv('datasets/trainDummies.csv')
test = pd.read_csv('datasets/testDummies.csv')
tip_amountTRAIN = train['tip_amount']
tip_amountTES... | [
"noreply@github.com"
] | milicanikolic.noreply@github.com |
7af7b7b2b077c56d314c8a7de890790b7cd2a523 | 9972988c4f4ccd7fdbafea601782dae94b679e78 | /tests/test.py | 8f7fc6f16dc0d00289c64bafe01422ece4e4f123 | [
"MIT"
] | permissive | chenshoubiao/ButterSalt | b67e9dec730350e64520064940fe69621a927418 | 7120c5135448cb3c9760925f23d2efc8316458d8 | refs/heads/master | 2021-01-22T03:22:58.791300 | 2017-05-25T01:58:45 | 2017-05-25T01:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | import ButterSalt
import unittest
class ButterSaltTestCase(unittest.TestCase):
def setUp(self):
ButterSalt.app.config['TESTING'] = True
ButterSalt.app.config['WTF_CSRF_ENABLED'] = False
ButterSalt.app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite://'
ButterSalt.app.config['SQLALCHEM... | [
"lfzyx.me@gmail.com"
] | lfzyx.me@gmail.com |
b0dcb0c0e52e193bf5ff6a59c70f397782bba2cb | 24acfe3b34cec28c01c8ba3423cdada3ef667353 | /ConstrTable/application/migrations/0001_initial.py | 05bd0535d8c91076c2300317655eb65588463be2 | [] | no_license | Ordus161/Constract-v1-on-Django | 6ba8e0132080bebaa68c8283da191a82ffd79830 | 528382c31ab14d344b5453bc30af5c576c69c430 | refs/heads/master | 2023-09-04T11:53:07.094107 | 2021-08-25T17:43:03 | 2021-08-25T17:43:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | # Generated by Django 3.2.6 on 2021-08-25 16:44
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Construc... | [
"abond6600@gmail.com"
] | abond6600@gmail.com |
d3133b99a152d5f56731feb8fda1d1307d73b447 | 18041bb704499cdde8fe72f865613746400a5988 | /whoknowsCGI.py | 3c3e4fa7768c0d3929b6e94a1f980ae5b6635acf | [] | no_license | owen694/introweb | 2b0b98a1990fdec5d3c98bac83baab7bde30f811 | 8e40c06940bad5693563bc26e5354134290bfd71 | refs/heads/master | 2020-03-18T15:28:31.391585 | 2018-06-11T02:36:36 | 2018-06-11T02:36:36 | 134,910,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py |
#!/usr/bin/python
import cgi
import itertools
def htmlTop():
print '''Content-type:text/html\n\n
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title> Process Name </title>
</head>
... | [
"angel@Valeriyas-MacBook-Air.local"
] | angel@Valeriyas-MacBook-Air.local |
e7be49dbc740b1357c53555b1c8370e37846f83e | dbde9338e87117397c2a7c8969df614f4dd4eacc | /examples/tensorflow/qat_conversion/benchmark.py | e31fb0226a4869184f24d64386ded4940317fec9 | [
"Apache-2.0",
"MIT",
"Intel"
] | permissive | leonardozcm/neural-compressor | 9f83551007351e12df19e5fae3742696613067ad | 4a49eae281792d987f858a27ac9f83dffe810f4b | refs/heads/master | 2023-08-16T17:18:28.867898 | 2021-09-03T06:44:25 | 2021-09-03T06:54:30 | 407,043,747 | 0 | 0 | Apache-2.0 | 2021-09-16T07:57:10 | 2021-09-16T06:12:32 | null | UTF-8 | Python | false | false | 1,017 | py | import tensorflow as tf
from tensorflow import keras
import numpy as np
class dataloader(object):
def __init__(self, batch_size=100):
mnist = keras.datasets.mnist
(train_images, train_labels), (test_images, test_labels) = mnist.load_data()
# Normalize the input image so that each p... | [
"feng.tian@intel.com"
] | feng.tian@intel.com |
8cffae1caed4f348b156a25034e81b9c31782903 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/client/gui/battle_control/requestsavatarrequestscontroller.py | f867089a8ae0ffd0381a8948555605e3e5e292d7 | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,880 | py | # Embedded file name: scripts/client/gui/battle_control/requests/AvatarRequestsController.py
from collections import namedtuple
import BigWorld
import AccountCommands
from debug_utils import LOG_DEBUG, LOG_WARNING
from ids_generators import Int32IDGenerator
from helpers import i18n
from messenger import MessengerEntry,... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
89d47b2ad358b6d5ee042bbeabc1a06b5424b1d6 | 670432640f1b5ee99f8786e9e9af0d5c58201c6f | /MyTitanicSolution.py | 80643d746f1be2e84c0c439b143f2626d16a9445 | [] | no_license | ViruTyagi/MLBeginner | b10d314040f10e772bdc2f13d365b1f1e9f89882 | c9fb5fe6f05cdb376dee69214f6da41e4d953503 | refs/heads/master | 2022-11-30T00:17:24.663616 | 2020-08-02T14:26:15 | 2020-08-02T14:26:15 | 284,476,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | #importing libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#importing dataset's
train = pd.read_csv("/home/virutyagi/Projects/KaggleProjects/Titanic Problem/train.csv")
test = pd.read_csv("/home/virutyagi/Projects/KaggleProjects/Titanic Problem/test.csv")
train.head(5)
test.head(5)
#... | [
"noreply@github.com"
] | ViruTyagi.noreply@github.com |
b83df84070532acf73d7b9c8fa53c3568f2de255 | 016747529a09dd12ef9979e778d0bd700c6e54c6 | /Primitve_Scrapers/Old Scrapers/TW_Rescrape.py | f6b91a2717043d5a91cd38b85f656f3198e3f03e | [] | no_license | goobyme/WebScrapers | c8cdc1627c73ea8f86a64d510f7816b89898e7c4 | 5e6bbdd0761236ee4886db991b40d202347eb22c | refs/heads/master | 2021-09-07T07:56:01.236791 | 2018-02-19T18:36:58 | 2018-02-19T18:36:58 | 116,184,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | import requests
import bs4
import pandas
import threading
import os
import openpyxl
os.chdir('/mnt/c/Users/Liberty SBF/PycharmProjects')
# os.chdir('C:\\Users\\Liberty SBF\\PycharmProjects')
SEARCHPAGE = 'https://www.transwestern.com/bio?email='
THREADCOUNT = 20
employees = []
init_proto_profile_list = []
elist_lock =... | [
"goobyme@gmail.com"
] | goobyme@gmail.com |
eb60232c371e9145aaafc3825d814eda33f275f5 | c1bf05a038c892928d126fd5e48473757d10add8 | /python/bottage/module-2/python-env/write_to_a_file.py | d5c8d74a69a12ee51ddbd2721be01ee80717c280 | [] | no_license | heithof3/notes | b893f2ce1880c16b822f1cd710939f7e41f97fee | 0b224309b260cd23ecf30ff8e039f6fd75cf316d | refs/heads/main | 2023-06-20T10:49:18.682686 | 2021-07-13T17:22:13 | 2021-07-13T17:22:13 | 385,675,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | file_builder = open("logger.txt", "w+")
for i in range(100):
file_builder.write(f"I'm on line {i + 1}\n")
# file_builder.write("Hey, I'm in a file!")
file_builder.close() | [
"heith.robbins@gmail.com"
] | heith.robbins@gmail.com |
9dc8a590b4ee4efceec3e1f291cbcefaf98c0bc1 | a331d1ad87846738ddf2684f09008688c855fdd9 | /venv/Scripts/easy_install-script.py | 4b8fe8d9108f89ab119d600f27d14f8c9c6625dd | [
"MIT"
] | permissive | eyespied/Reincarnation | 086ae91b971be6ebd9f5dbf289f1a91a8afdee78 | d5dc819b9b9490764ace33f2ef89f9bc268c4ca5 | refs/heads/master | 2021-01-08T10:14:56.302820 | 2020-04-25T12:11:25 | 2020-04-25T12:11:25 | 241,999,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!C:\Users\James\Documents\GitHub\Reincarnation\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"jc704@kent.ac.uk"
] | jc704@kent.ac.uk |
1e322b9340bde3dac33558b3897bfef9ce871bd7 | 1ee10e1d42b59a95a64d860f0477a69b016d1781 | /Lecture_09/Lecture Code/3-pipeline_text_generation.py | c1c3ebf2a71d9e21e8fada4b70c2de73687de274 | [] | no_license | KushalIsmael/NLP | 5564070a573d251d7222dda85b8025ae1f9c3c6f | d4ce567a009e149b0cb1781d3a341d25aa438916 | refs/heads/master | 2023-08-18T14:07:48.646386 | 2021-10-28T19:09:25 | 2021-10-28T19:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from transformers import pipeline
generator = pipeline("text-generation")
print(generator("In this course, we will teach you how to"))
print(generator("I am tired of listening to this brownbag session about natural language processing.",
num_return_sequences = 1, max_length = 100 )) | [
"amir.h.jafari@okstate.edu"
] | amir.h.jafari@okstate.edu |
6f659e416c442bdd95e9e23a6436a0b97c3965d0 | bd71fd307eb1c8b62c7f0223e320cf9f8a2163e0 | /utils.py | 973881e78d70942cee9384babbd1e029c4816dc8 | [] | no_license | shaghayeghelc/moonshot-NLU | 0aeaf17a0063eab2e931e9259e65f1a59b6f0934 | fe22fe17c53b5c483aaaa40c6f813af14dd7d454 | refs/heads/master | 2022-12-14T06:07:17.678390 | 2019-02-03T17:15:23 | 2019-02-03T17:15:23 | 168,778,379 | 0 | 0 | null | 2022-12-08T01:34:55 | 2019-02-02T00:42:49 | Python | UTF-8 | Python | false | false | 1,967 | py | #!usr/bin/env python3
# Importing Packages
import nltk
import pickle
import re
import numpy as np
# nltk.download('stopwords')
nltk.download('stopwords', download_dir='/opt/python/current/app')
nltk.data.path.append('/opt/python/current/app')
from nltk.corpus import stopwords
def text_prepare_en(text):
""" Tokeni... | [
"SHARON.SHAHROKHI.TEHRANI@cbc.ca"
] | SHARON.SHAHROKHI.TEHRANI@cbc.ca |
419d31478ef06ebf26b599d043b4c191b73b935e | 35d79c16dba08ec78103ef52d0f49aed978d6efe | /main.py | 8bd8f5a1e612fb21c52bf9b899b18eb17b56c3c4 | [] | no_license | KaleabTessera/Mountain_Climbing_SARSA_Semi_Gradient | 60e4ecc61b9f242a3d3a4ee464e60f09a35c7801 | 2478144f07bdf1d9adf4e12c7c45c8ccd8e721f5 | refs/heads/master | 2022-12-13T23:03:34.649644 | 2019-09-17T09:40:36 | 2019-09-17T09:40:36 | 208,964,533 | 1 | 1 | null | 2022-12-08T06:10:11 | 2019-09-17T05:13:16 | Python | UTF-8 | Python | false | false | 3,687 | py | import gym
from gym import wrappers
import random
import numpy as np
from value_function import ValueFunction
from collections import defaultdict
from collections import namedtuple
import itertools
import matplotlib
import matplotlib.pyplot as plt
import pandas as pd
EpisodeStats = namedtuple("Stats", ["episode_length... | [
"kaleabtessera@gmail.com"
] | kaleabtessera@gmail.com |
179f9840aa26538a158c13d517312dc7f541b21f | 7dd5c83b626bb6090584dda4595b1f83d7f7ed50 | /API_for_Linux/image_2_style_gan/perceptual_model.py | 8114b015740b60d730f9f842d5827648a790b46d | [] | no_license | Scania-S730-8x4/2020_team_project | 3a5f82d0dc5983ae7978a1db9ac92921125c1c03 | 41ba7b890eeb407cdadd605d82b81505095468a0 | refs/heads/main | 2023-02-13T11:32:03.345259 | 2021-01-14T06:18:23 | 2021-01-14T06:18:23 | 328,287,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | import torch
from torchvision import models
class VGG16_for_Perceptual(torch.nn.Module):
def __init__(self,requires_grad=False,n_layers=[2,4,14,21]):
super(VGG16_for_Perceptual,self).__init__()
vgg_pretrained_features=models.vgg16(pretrained=True).features
self.slice0=torch.nn.Sequentia... | [
"noreply@github.com"
] | Scania-S730-8x4.noreply@github.com |
107d863547d1cb0701cdbcba7b81836f6e66fb62 | 4bfe9046ea7c14ef21b6a0a8d971830ba9e87769 | /test_01.py | 0f5aa83c3466e08c98d7b72fbf3d8cbd9352fcbb | [] | no_license | chenyanqa/example_tests_one | 8f0476b92a22dd55e5bf4b8d607f4170e78e6abc | fe61b2eb84e5bb96d1de274be02ec5675d46316d | refs/heads/master | 2021-09-07T00:12:46.625371 | 2018-02-14T00:15:21 | 2018-02-14T00:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
m = 0
for i in range(1,5):
for j in range(1,5):
for k in range(1,5):
if(i != j) and (j !=k) and (k != i): #三个数互不相等的表达式
a = 100*i + 10*j +k
print('无重复的三位数为:%s' %(a))
m= m+1
print('总个数为:%s' %(m)) | [
"879167367@qq.com"
] | 879167367@qq.com |
283ba6ade2023d49e634443512795246d7363fa6 | 10eac9cb1196996a895026d955497d7f962c2f16 | /projects/comapny_profiles/apps.py | c6e2472eab09fd0ba013dadcd981a5700daef345 | [] | no_license | naresh143naresh/W2S | d784b32290ad87626735e78006f2d7980730ad83 | c2110a313e21f11f7751e63a4695d8767b29778c | refs/heads/master | 2023-07-13T10:47:39.891423 | 2021-08-17T17:32:25 | 2021-08-17T17:32:25 | 397,334,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.apps import AppConfig
class ComapnyProfilesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'comapny_profiles'
| [
"joldrasinaresh143@gmail.com"
] | joldrasinaresh143@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.