blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04db934a2227b0e0493e4782b11be24203bb3bc6 | 9611399580fa78b0b1c2d1f887fe8f07766e7587 | /pyget_online_data/__init__.py | 77ef6a1a167831abc44fbe18986a8f497d2bbdf5 | [] | no_license | agknaton/pyget_online_data | 10a183194fa920e6e6fea62d213666e00b9977b1 | cd4d516ddd9563cbe47e08c817cf35a31dcb8bee | refs/heads/master | 2022-11-11T03:29:34.328688 | 2020-06-28T19:49:32 | 2020-06-28T19:49:32 | 269,443,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from . __version__ import __version__
from .get_ecb_quote import *
from .get_bcb_quote import *
| [
"agknaton@Agknatons-MacBook-Pro.local"
] | agknaton@Agknatons-MacBook-Pro.local |
ccb3568b44b01ed67be10d4b58548bd3d0c3c8db | 06906ba89b9b7a28d9e32e8ba3fbc0c6ad41299f | /supervised_learning_code/feature_scaling.py | b957264d56a397c85ad5658523ac22998c7a3a14 | [] | no_license | amrutakulkarni9812/Data-Scientist-Nanodegree-Term-1 | 60714130a21ab72bb97c9f1238f20d9e69868608 | ee3ae9112b3cc21263050362addc1ab2dfc82124 | refs/heads/master | 2020-06-16T20:34:07.343463 | 2019-10-31T17:59:50 | 2019-10-31T17:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 2 22:28:09 2019
@author: amruta.kulkarni
"""
# TODO: Add import statements
import pandas as pd
import numpy as np
from sklearn.linear_model import Lasso
from sklearn.preprocessing import StandardScaler
# Assign the data to predictor and outcome variables
... | [
"amrutakulkarni9812@gmail.com"
] | amrutakulkarni9812@gmail.com |
1fef8ab332729af9d23f7901f71989a537b315f8 | c612c96317c902cbd8e8d0c4067296b51da4be0b | /GameofThronesApp/apps.py | 5e46b3369998f0403fc8fb06aba93382dac77126 | [] | no_license | csanjeev25/GameofThrones | ce5f4aec6e19097cf5016ee8f6c9e10df2f0529a | e2f1e4538045f973580f3c3709f59e09b9d8b458 | refs/heads/master | 2020-03-12T02:28:36.855813 | 2018-06-30T17:19:27 | 2018-06-30T17:19:27 | 130,403,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from django.apps import AppConfig
class GameofthronesappConfig(AppConfig):
name = 'GameofThronesApp'
| [
"sanjeevkumarchintakindi@gmail.com"
] | sanjeevkumarchintakindi@gmail.com |
39d583bc485e10f5bad1be3592965ac77c0aa29a | bb8be55bf37e59d918af5406538a05560bdeaa8a | /gendiff/tree_builder.py | 27dfaf9ee9b5a1852ace4a733ec1254422e8291e | [] | no_license | mnogom/python-project-lvl2 | a321ed6459d72d1b0bfd89a49cd16e5e57ee9f4d | 7152ab7c90cb1b35572c51580c7da2acead4773a | refs/heads/main | 2023-04-15T20:09:54.858025 | 2021-04-30T12:09:05 | 2021-04-30T12:09:05 | 333,052,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | """Diff tree builder."""
ADDED = "added"
REMOVED = "removed"
UNCHANGED = "unchanged"
CHANGED = "changed"
NESTED = "nested"
def build_tree(data1: dict, data2: dict) -> dict: # noqa: C901
"""Build diff tree.
:param data1: data #1
:param data2: data #2
:return: difference between two nodes
"""
... | [
"freidlinks@ya.ru"
] | freidlinks@ya.ru |
f01edb32723b46bc8bb782db3619264971f12a00 | 383f6af87df71826218db68b1637b5a9d198865f | /gan_git-02/gan_git/compare_gan/metrics/ms_ssim_score.py | caffb83e16f9209e29016560259cd27b982a9c8c | [
"Apache-2.0"
] | permissive | youbin-jia/jyb_paper | 59a2c2517f366799109e3a0ae306d4a43b160dfa | cdff5c8214b8895ac31d519458ad626d24a5ca9b | refs/heads/master | 2022-04-19T23:13:22.772166 | 2020-04-20T00:11:20 | 2020-04-20T00:11:20 | 255,092,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,924 | py | # coding=utf-8
# Copyright 2018 Google LLC & Hwalsuk Lee.
#
# 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 ... | [
"2448396171@qq.com"
] | 2448396171@qq.com |
66104fe97132726b60c2f701bacf9c99cd1ec030 | 18005cdb8727e649811a3104bf9d5bc1fe6915b2 | /scratch_1.py | e0bbb34d40ae8fed0e4804a5249cb69d0ece4543 | [] | no_license | zhuzhile08/python_games | ff0eefbe5ca8abcf63393e86f61c1136acfb3f31 | f0d591726cd51923a3eadfa4f4946825241e6697 | refs/heads/master | 2020-06-15T22:42:29.643731 | 2019-07-05T13:16:22 | 2019-07-05T13:16:22 | 195,411,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | import pygame
pygame.init()
win = pygame.display.set_mode((500, 500))
pygame.display.set_caption("First Game")
x = 50
y = 425
width = 40
height = 60
vel = 5
isJump = False
jumpCount = 10
run = True
while run:
pygame.time.delay(100)
for event in pygame.event.get():
if event.type == pygame.QUIT:
... | [
"zhuzhile08@gmail.com"
] | zhuzhile08@gmail.com |
56f89cd80eb4bfe71dae266e3224ed10db0f4de0 | 9da4de06c0589de66e498d13421fe578a61c67e6 | /lambda-echo-sqs-dynamodb/src/process.py | 35e29b670072a1b9626a3053ea423bdce21bd06d | [] | no_license | GeorgeArubi/it-590-aws | f0e40997b0d09df35fefe8d3d887d322b64b0c04 | 6951bd7cf3cf447a7e77a455c4a9bbd7e6a3004f | refs/heads/main | 2023-06-23T00:54:16.181762 | 2021-07-22T01:58:47 | 2021-07-22T01:58:47 | 373,655,039 | 0 | 0 | null | 2021-06-17T15:34:25 | 2021-06-03T22:17:18 | Shell | UTF-8 | Python | false | false | 783 | py | import boto3
import json
import os
dynamodb = boto3.resource('dynamodb')
table_name = os.environ.get('dynamodb_table_name')
table = dynamodb.Table(table_name)
def lambda_handler(event, context):
print("******* Begin Execution *********")
print('***** Another line of debug statements *****')
print("EVENT:... | [
"rick@pulpfreepress.com"
] | rick@pulpfreepress.com |
d14f400d7cb6a38ec86427c746f0251aa6fa1c75 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3721.py | dba02cd6001ae165033db26d67139aa3e7a13aa6 | [] | 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 | 13,348 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
8bf293c005f935f5d50f9c3ea364f519367ed39e | 3a0993650cbb064daa137f349d53a1c5519b7e81 | /_modules/rundeck.py | 11f678fa37619124fa692c036e3812ed54ca8f5e | [] | no_license | rmeleromira/salt-formula-rundeck | a3c6f56839a1a248a7187cbfce58b6d932d7a397 | f00ea6909cbb3d206b7b4fae5045d9ab12db6efc | refs/heads/master | 2021-06-24T03:02:19.437838 | 2017-09-01T09:38:03 | 2017-09-01T09:38:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,615 | py | import logging
import salt.exceptions
import requests
from requests.compat import urljoin
LOG = logging.getLogger(__name__)
# Project
def get_project(name):
session, make_url = get_session()
resp = session.get(make_url("/api/18/project/{}".format(name)))
status_code = resp.status_code
if status_co... | [
"ikharin@mirantis.com"
] | ikharin@mirantis.com |
5288f681fc3c92373b624da66f5ae7fc4925b98a | 9aa7549c2d66bec6132c1eced1e08252c8e03c0f | /Pong/options.py | 359bffc162e8cbdf85ce7115f3a2a7bbe1e2782c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | wooandrew/TheBoredomProject | fb096cecd0fd20b37a3c91b5229288b09b8ce309 | 7969a7424fa3e1859a3b00f4ac6cd744906a6537 | refs/heads/master | 2020-05-29T17:34:02.726908 | 2019-06-23T02:33:34 | 2019-06-23T02:33:34 | 189,275,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # Pong : options.py
# Boredom Project
import random
class Options:
def __init__(self):
self.oneplayer = False
self.twoplayer = True
self.cpulevel = 0
# Paddle Options
self.pSpeed = 3
self.c_paddle1 = [ 0, 255, 255]
self.c_paddle2 = [255, 0, 255]
... | [
"seungminleader@gmail.com"
] | seungminleader@gmail.com |
73f4d76a584672cda147735c5df3bdde4a35322d | 36b231d97d2f5d69321b3b1dcc51425c01400286 | /notebooks/dataloader.py | ec36a30aa0c52a80cbad3a19868002a193f368ad | [
"MIT"
] | permissive | Shrey-WadhwaniAI/LineList-Dashboard | 5fa5ec2b7bbe72aa7ca69ab99d3a91626f52240c | 5937d3fb0f0c2e525952e509e52d7e30bf51dabb | refs/heads/main | 2023-07-17T08:01:00.349855 | 2021-09-01T18:12:56 | 2021-09-01T18:12:56 | 399,144,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py | import pandas as pd
import numpy as np
import sys
import streamlit as st
import datetime
from pyathena.connection import Connection
from pyathena.pandas_cursor import PandasCursor
@st.cache
def load_athena(location):
sql = "SELECT * FROM test_linelist where partition_0='"+location+"' limit 10000"
cursor = Connect... | [
"shrey.shah@wadhwaniai.org"
] | shrey.shah@wadhwaniai.org |
bb270df61a849d8d9df962a3863d23ca9132e0b4 | aa6a2da9c83eb3185e9e40923fec4e5289f3c30f | /general_Projeckt.py | 130a7b69940187168732c5670538f802830b6b90 | [] | no_license | Mauter25/Case_5 | 671c7588f00542a96a85d16828be3fff709402c8 | 08d7477293ed449755fe128b8c3ab2532bc7349e | refs/heads/master | 2020-09-29T02:13:14.061478 | 2019-12-09T17:14:18 | 2019-12-09T17:14:18 | 226,924,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | #Developers: Kuzmin.E: 50%
# Mauter.A: 50%
import urllib.request
import re as r
file_out = open('output.txt','w')
file_out.close()
with open('input.txt') as inp_file:
for line in inp_file.readlines():
url = line
f = urllib.request.urlopen(url)
s = f.read()
... | [
"noreply@github.com"
] | noreply@github.com |
cc8e1c43c0bf95349b51135167335a5e3db0b875 | cc99bdca333480317187298061d99a7ebaba3186 | /src/misitio/utilities/testing.py | 105dfd47645c184eff603fff549f7405ee457025 | [] | no_license | ejgarcialearning/misitio.utilities | 1637fc219e6cc97a1600df0783d10b1e03bf5cbd | 90792c15cf806eba195571db70392b6a4146c943 | refs/heads/master | 2020-04-11T08:44:09.793319 | 2012-07-11T23:51:58 | 2012-07-11T23:51:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import PloneSandboxLayer
from plone.app.testing import IntegrationTesting
from plone.app.testing import FunctionalTesting
from plone.app.testing import applyProfile
from zope.configuration import xmlconfig
class MisitioUtilities(PloneSandboxLayer):
... | [
"elvisjonasg@gmail.com"
] | elvisjonasg@gmail.com |
ecad99a07312379715f64a3e39b3ea5577d254ee | c5746efe18a5406764c041d149d89c0e0564c5a5 | /1. Python语言核心编程/1. Python核心/Day07/exercise11.py | a656871fe2f7a823083003ada2bd5ae8242e8c9c | [] | no_license | ShaoxiongYuan/PycharmProjects | fc7d9eeaf833d3711211cd2fafb81dd277d4e4a3 | 5111d4c0a7644c246f96e2d038c1a10b0648e4bf | refs/heads/master | 2021-12-15T05:45:42.117000 | 2021-11-23T06:45:16 | 2021-11-23T06:45:16 | 241,294,858 | 3 | 1 | null | 2021-02-20T15:29:07 | 2020-02-18T07:06:08 | Jupyter Notebook | UTF-8 | Python | false | false | 175 | py | def sum_digit(num):
"""
:param num:
:return:
"""
count = 0
for item in str(num):
count += int(item)
return count
print(sum_digit(1234))
| [
"ysxstevenpp123@gmail.com"
] | ysxstevenpp123@gmail.com |
704ee3613dcaca94ae0faaaf25a14aebad2bfdbd | b28178767c14e211d3e0ba631aaf2f180b524634 | /test_file.py | 8a48531eff9e738ad38b8bb3359cb81a69d5f47f | [] | no_license | jjpak88/starting_git | 1d3bcf3edb41a45d994c4fe7663be3f1d8468d38 | ce706737a0249def404ed158a9388623eec9dcf0 | refs/heads/master | 2020-07-03T21:50:51.718781 | 2016-11-19T20:59:59 | 2016-11-19T20:59:59 | 74,230,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | print("My name is Jean")
| [
"jean.pak@gmail.com"
] | jean.pak@gmail.com |
62a5f33290269f463f14f1fc03d0faca939829f8 | 73c1d4599f39e32b2cd65c9ef7e4300adc52888a | /nondjango/storages/files.py | a1f8c6a5acadd645ea874c640be3eb16e095e197 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | alanjds/nondjango-storages | 94161eccbb0709ebec4062ba6bddd8b26a65cbc6 | beeece4b880efd8cff5d940b635e066ac8d9fbcb | refs/heads/master | 2020-12-15T18:48:44.023449 | 2020-05-21T18:55:06 | 2020-05-21T18:55:06 | 235,215,330 | 1 | 1 | NOASSERTION | 2020-05-21T16:07:52 | 2020-01-20T23:03:59 | Python | UTF-8 | Python | false | false | 2,122 | py | import logging
import io
import codecs
import difflib
from tempfile import NamedTemporaryFile
from contextlib import ContextDecorator
from . import utils
logger = logging.getLogger(__name__)
__escape_decoder = codecs.getdecoder('unicode_escape')
class File(ContextDecorator):
def __init__(self, name, storage=Non... | [
"alan.justino@yahoo.com.br"
] | alan.justino@yahoo.com.br |
1dd90bca0b0c44c73c8438576097bc4ed0e824dc | 5f45e5538cd1cbc087c5e74c9f9a74406dc82399 | /Stages.py | c594cce7c0900fb3b642fa8149a32ac12b574e54 | [] | no_license | CptnReef/pyGame | 1407b51f69279c5b5d1e31391f80f4cf534f7dd1 | c4ea3630b9ab726b7730289f9498a29f0cb56662 | refs/heads/main | 2023-03-19T02:02:17.091870 | 2021-03-23T23:49:52 | 2021-03-23T23:49:52 | 348,111,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | import pygame, sys, random
CHUNK_SIZE = 8 # generating a grid
def generate_chunk(x,y):
chunk_data = []
for y_pos in range(CHUNK_SIZE):
for x_pos in range(CHUNK_SIZE):
target_x = x * CHUNK_SIZE + x_pos
target_y = y * CHUNK_SIZE + y_pos
tile_type = 0 # nothing
... | [
"sharif.staffordbz@gmail.com"
] | sharif.staffordbz@gmail.com |
1ab900afdd8a30718248c5f9fd3fd0a706356dcd | 31a00bb934ef9a0437af840d5a4e429a39f1dd3d | /find_long_lines.py | 3941c622eb1d1ab6ddc6b7e72527ba54890102ab | [] | no_license | aabzel/find-long-lines-in-file | cb0cafd9ff4b0fd011f66568f73d600c1623ae34 | 17d69b084c5efacc8f6fb4a1de5e6ac848ba4118 | refs/heads/master | 2020-05-27T11:38:26.719094 | 2019-05-27T10:09:41 | 2019-05-27T10:09:41 | 188,603,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | #!/usr/bin/python
from sys import argv
import os
import sys
scriptName, firstArg, secondArg = argv
inFileName = str(firstArg)
maxLineLen = int(secondArg)# 110
def exists(path):
try:
f = open(path)
f.close()
return True
except IOError:
return False
if False==exists(inFileName... | [
"noreply@github.com"
] | noreply@github.com |
410277cd70a7e62f6f22bb066078442924338781 | bd0ff4195d8e5e95a4697f414b42557ce5739326 | /Nano.py | 990a2ab346e018b0dc3f76f76808b38eb6f79416 | [] | no_license | mlightvn/NanoCoin | b6bad8fc805a7fd3eff87f492feb6f0f104808da | 18eb9f664d96b4b05d82e67b42ba56394299cef0 | refs/heads/master | 2022-11-22T23:33:19.061206 | 2019-09-02T11:09:59 | 2019-09-02T11:09:59 | 205,834,434 | 0 | 1 | null | 2022-11-15T04:44:52 | 2019-09-02T10:39:32 | Python | UTF-8 | Python | false | false | 4,689 | py | import hashlib, json, os
from hashlib import sha256
from web3 import Web3, HTTPProvider
# from web3.auto import w3
# from interface import ContractInterface
from flask import Flask, escape, request
from datetime import datetime
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
NANO_COIN_DIR = os.path.abspath('./... | [
"thietlalung@yahoo.com.vn"
] | thietlalung@yahoo.com.vn |
fbd797fcc3fe8ff6cdf6e02662be33ad9daad9ec | 26d3b2fcfc81aab9023f82a5b0415949c10de551 | /editor/lib/python3.6/codecs.py | 9b2c03cc17d8533e2f6338afb749a29b25774183 | [] | no_license | ptrbates/misc | b69583917a9b9294c421bed05f2782022c5ea54d | 12892dc71e33d6c8f405abd3acdd2a18c44e01fe | refs/heads/master | 2021-09-16T06:03:54.185403 | 2018-06-17T18:01:34 | 2018-06-17T18:01:34 | 111,362,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /home/craawww/anaconda3/lib/python3.6/codecs.py | [
"peterbates@protonmail.com"
] | peterbates@protonmail.com |
b5cd5ae84ecd201a844593be1dd57f3db72296b8 | 0ae1025d290daf564daf7f366e4e6cdc779c00ef | /Python -user_impersonate/user_app/admin.py | d230fd13246ba32708bdf7d3f6042c8b15af2e29 | [] | no_license | 1986webdeveloper/mailingsystemdemo | 080ab6843939b34855265b3a9354a4b220a60ff0 | eef1f78c081382c2fe12abeeeb60f9b4767bea23 | refs/heads/master | 2023-02-25T16:22:18.188041 | 2021-01-28T13:31:54 | 2021-01-28T13:31:54 | 327,616,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from django.contrib import admin
from user_app.models import UserProfile
admin.site.register(UserProfile)
| [
"1986webdeveloper@gmail.com"
] | 1986webdeveloper@gmail.com |
5cba1f0868139ce0c845ec54513cd620c6e715ea | 1a8b37490f93ea96efa14f43124b9891af83ed6c | /Gimnazium/migrations/0002_auto_20201016_2014.py | 190a6b7db2c84c221136a410eb079fabdf4d247d | [] | no_license | Forumbit/my-gimnasium-app | e3140ff3de92f0c84361e31c2330440bcb124943 | ec40843ee3b3dfa073e021ff72ee312e2ca8204f | refs/heads/master | 2023-03-15T22:57:58.146904 | 2021-03-07T11:39:38 | 2021-03-07T11:39:38 | 345,299,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # Generated by Django 3.1 on 2020-10-16 17:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Gimnazium', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='zamena',
name='lesson',
f... | [
"amirkharisov545@gmail.com"
] | amirkharisov545@gmail.com |
825f6ccaee5f5912163c36e767b88ed23e0e1a49 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/snmp/src.py | b6b8d307181045b63a79b7469c70f940f94421de | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 8,786 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
e070be46f67e3398ca29d11d059a79c496d8c1a9 | b31246c235d0f272155520db8b7b2c05fb68054c | /diccionarios.py | 457abf855b30cb695513d0a36f98f001a83bca55 | [] | no_license | DanyGuerra/introduccion-python | 0ce4dd9a70f4c814539b284101982006f7e0325d | eb1759462bd8117e2fec6c795b2f8dcbfdc5f5f0 | refs/heads/main | 2023-06-12T09:50:26.827656 | 2021-07-11T16:46:05 | 2021-07-11T16:46:05 | 381,758,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | elementos={'a':1,'b':2,'c':3,'a':4} #no se permiten las llaves duplicadas
# elementos={}
# elementos['nombre']='Cody' #crea la llave ya que no existe
# elementos[(1,2,3)]='la llave es una tupla'
# elementos['nombre']='CodigoFacilito' #como si existe la llave actualiza el valor de la llave
print(elementos)
print(len(... | [
"luis_daniel.grra15@hotmail.com"
] | luis_daniel.grra15@hotmail.com |
aaa48bfe083f63e3027f18caf96e0fe57c7f90b5 | d131f5dd561ace7d3e410b5bdb7cf78e0bce83e5 | /Django/session_words/session_words/settings.py | 075fd7a7f56cee109aa2c7d45f535c1f89028d48 | [] | no_license | jradtkey/Python2 | b0557992c01f18365f7d14fa2898905b5c397f6a | 55920039c59407ff8a6b8c033dbe2071f71d8f68 | refs/heads/master | 2021-01-23T13:30:13.274077 | 2017-09-22T18:28:22 | 2017-09-22T18:28:22 | 102,662,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | """
Django settings for session_words project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"jradtkey@gmail.com"
] | jradtkey@gmail.com |
d763ad10c8c3c6351988ea3cfb3adbe407aa383d | f2f6e4dcd7fcbebf59592bb4caba03e0f6779773 | /simpLIinReg.py | a38f304ddc6819ec40365d05bb396aab8f721fa4 | [] | no_license | BenDevo20/DataScience | 47815dbba5b5d63473d1e1cdad2d9f8a85ae1cf6 | 079fc9600060b414c5278805ded5b21160f92a20 | refs/heads/main | 2023-03-04T20:51:00.824034 | 2021-02-15T20:02:44 | 2021-02-15T20:02:44 | 339,191,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | """
simple linear regression - regression function with only one feature
create best fit line to map out linear relationship
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# importing excel file that has data for regression function
df = pd.read_csv('UNZIP_ME_FOR_NOTE... | [
"noreply@github.com"
] | noreply@github.com |
b868473d9f97ff610c70c151d9513907930574f5 | cb6dd50eca3d65c1ce34299cd71c4c5a17dbe186 | /vivado/2017.2/module/MulSubCell/sim/test/makeData.py | 0611c1d238a0e959cbe73a3340da789b42353b62 | [
"MIT"
] | permissive | kino2718/InverceMatrixIP | f54063d6cde3008a227364882ab8d5ad3d4d1930 | 0cf56d54ee663db69891a2f4835bde4d0e89bdd9 | refs/heads/master | 2021-01-01T17:45:24.303858 | 2017-10-10T04:08:08 | 2017-10-10T04:08:08 | 98,147,966 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | #! /usr/bin/env python3
import random
PACKET_LEN = 4
REPEAT = 4
RANDRANGE = 10
# 入力ファイル
fy = open('y.txt', 'w')
ffrom_right = open('from_right.txt', 'w')
fx = open('x.txt', 'w')
fr = open('r.txt', 'w')
fref = open('ref.txt', 'w') # 比較ファイル
for i in range(REPEAT):
for packet_no in range(PACKET_LEN):
a = ra... | [
"kino2718@gmail.com"
] | kino2718@gmail.com |
fe08de446db91af310d979c631ab7fd26537e457 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_121/ch9_2020_08_31_17_12_51_131522.py | f0d648d01a9c7d5c599714f7d8705d12d95bfed3 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import math
def calcula_volume_da_esfera(r):
volume_esfera = 4 / 3 * math.pi * r ** 3
return volume_esfera | [
"you@example.com"
] | you@example.com |
a9554176ffb946e3eae4be5fe2e32acf29a9fca2 | e77c48f5ec800e757c0aed4d85e4935984e13657 | /VirtualMouse.py | 2c2110aa29aa1e9da60ad07ff9faee6e5a1da815 | [] | no_license | Lakshya123-cyber/AI-Virtual-Mouse | 425584bd92f1a3a6f8fb4d11447869bc9b1bf987 | 1953ac8bc7b53782527337d1dc24bdc9aa51ef88 | refs/heads/main | 2023-09-04T06:13:40.203839 | 2021-11-07T13:49:34 | 2021-11-07T13:49:34 | 425,515,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py |
import cv2
import numpy as np
import HandTrackingModule as htm
import time
import pyautogui
import requests
cap = cv2.VideoCapture(0)
ret, imgOriginalScene = cap.read()
# wCam, hCam = 640, 480
url = "http://192.168.1.73:8888/shot.jpg"
img_resp = requests.get(url)
img_arr = np.array(bytearray(img_resp.content), ... | [
"noreply@github.com"
] | noreply@github.com |
32275f30d3edfcdfabbae11c0e0d3061a353a050 | 33f9056de72ea429774cdf42d3f813a4cd33a255 | /backend/takeout/admin/models/admin.py | 803776d2c167a36a3dde181c74e8d18c7d90e965 | [
"MIT"
] | permissive | alex159s/Take-out | a566e35d5c05c6e8456beb449c08b6c6479f4e79 | 27c66dcc4f0e045ae060255679a2aa68c0f744d2 | refs/heads/master | 2020-04-06T06:36:51.806309 | 2016-07-15T14:27:06 | 2016-07-15T14:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # coding: utf-8
from lib.models.userbase import UserBase
class Admin(UserBase):
def to_string(self):
return {
"id": self.id,
"username": self.username,
"nickname": self.nickname,
}
def to_detail_string(self):
return self.to_string()
| [
"billo@qq.com"
] | billo@qq.com |
904accd2539767b15763cd55082659294465b998 | a2e11ec88ef3c83b9f07129e76a3681a676d164f | /demo8apr/testapp/urls.py | 612a33b0ec158d2795dc24c6b407ab4fabc9dc74 | [] | no_license | qwertypool/lofo | dadd7cd5b149a3a200b7111d803b1d0195d76642 | 3bc7bd125e7ea5a67f51dd6dd654e38a5f218055 | refs/heads/master | 2022-05-18T09:31:11.456634 | 2020-04-18T14:47:44 | 2020-04-18T14:47:44 | 256,773,858 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from testapp import views
urlpatterns = [
path('form/',views.form_view,name='forms'),
path('thankyou/',views.thankyou_view,name='thankyou'),
path('list/',views.list_view,name='list'),
path('elist/',views.elist_view,name='elist'),
path('eform/',views.eform_view,name='efo... | [
"deepapandey364@gmail.com"
] | deepapandey364@gmail.com |
a34438233e511e251214305e4b546f45cd76cc39 | fd4fbf4f94220fe5e1c2e354be101d23f6faf7ef | /node_modules/node-sass/build/config.gypi | 1935d79f54fa4ef3670783eb861165b4f8da11ca | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Charliechin/charliechin.github.io | 3903be364bb94f58d61a88371a34017b61c47776 | 310019e8a51d004b158563dccf5c0c05bcce66d5 | refs/heads/source_codebase | 2022-12-10T06:37:39.528332 | 2020-11-06T21:32:19 | 2020-11-06T21:32:19 | 245,626,138 | 0 | 0 | null | 2022-12-06T02:58:36 | 2020-03-07T12:09:38 | SCSS | UTF-8 | Python | false | false | 5,557 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"charliedn@gmail.com"
] | charliedn@gmail.com |
96d6d1fa4aeb87e1962be113d3b27b2fdd49b79f | 5b8582d50160b663535259cadbd133b8e74330ab | /vrepcvtest.py | 0a7b261b63c66adfb534b10e04a71dd182540844 | [] | no_license | heartworm/Hwasong15GuidanceSystem | 18ad8007de0fcd8e2cb0fee0110dcf31be010513 | b600617297c314fc6a10b6496535f1822a831fea | refs/heads/master | 2021-03-19T17:48:21.525361 | 2017-10-22T23:57:27 | 2017-10-22T23:57:27 | 98,952,274 | 0 | 0 | null | 2023-08-26T05:19:36 | 2017-08-01T02:51:29 | Python | UTF-8 | Python | false | false | 2,780 | py | import vrep
import cv2
import numpy as np
from vision import ImageAnalyser
from ai import AI
import yaml
import math
print ('Program started')
vrep.simxFinish(-1) # just in case, close all opened connections
deltaT = 0.05
clientID = vrep.simxStart('127.0.0.1', 12345, True, True, 5000, 5) # Connect to V-REP
with open... | [
"shravanlal98@gmail.com"
] | shravanlal98@gmail.com |
5aea7f13df6c73b42a3806aa21f3c0ef84ea9696 | 72523af4a307f81313b6dcd0302f87032c86e447 | /venv/lib/python3.7/token.py | 8fac16561ddb9735a5a6a0b044f17271906db138 | [
"MIT"
] | permissive | sanchitcop19/math-place-scheduler | fd7e792c602199ad455e4aad6a14cea9b4f6a478 | e494da59fac1e25b58cd8fd6c9da72f705a6af09 | refs/heads/master | 2020-04-13T10:52:07.319065 | 2019-02-03T23:49:07 | 2019-02-03T23:49:07 | 163,155,801 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /Users/SanchitBatra/anaconda3/lib/python3.7/token.py | [
"sanchitb@buffalo.edu"
] | sanchitb@buffalo.edu |
ac783f452a3778212ea850661c86cdd726c17183 | 2180ffdc38323df203e8f29a7a4ec2932b1e0a92 | /models/Inception_v3.py | cf696af5b0099583f53ff0e4636c107935b527c7 | [
"MIT"
] | permissive | Zhu-Renjie/TinyImageNet-Benchmarks | 3a4c17099f8c1582bcd7aa9f1a8067eb20756d9c | d0becc2d4536326e86e4ffa28df013f236fbdf2b | refs/heads/master | 2022-04-10T06:47:28.020522 | 2020-03-24T09:52:56 | 2020-03-24T09:52:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,445 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 03 21:43:01 2020
@author: Meet
"""
### Note: This implementation has been inspired and taken from : https://github.com/tensorflow/models/blob/master/research/slim/nets/inception_v3.py
import tensorflow as tf
import models.Inception_v3_config as Inception_v3_config
fro... | [
"patelmeet2012@gmail.com"
] | patelmeet2012@gmail.com |
52f53a80f792f0820f903cf7027b49ca801b6944 | 9f541271263dceb0b7b0134ab6cff5ed324c6444 | /vscode/conf.py | bba16e86bc2a677bb2e8fd7e52903d2fc363fd9f | [] | no_license | shannondec/bonaventureli.github.io | bd0fa5286ab4077b690f2621425ddd78f16e72dc | ab442ff704dc539b5c9da1d7cacb826256392c17 | refs/heads/main | 2023-06-04T10:34:40.224571 | 2021-06-29T08:38:53 | 2021-06-29T08:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"lfwendula@msn.cn"
] | lfwendula@msn.cn |
f1465a35d603c77c06d13139a1c9d8a9efdc40b5 | b285ceb5c18d7e6e6b3b02558a3f404dde642734 | /ship_o_cereal/main/migrations/0009_userimage.py | 1b30d782d94b8764b29e90d8db141a40ca960c74 | [] | no_license | kveldhaugur/verklegt-2 | 5ead2f29eb6985cc0f3b50edb61d72f6989dfe85 | 224c1009e16bb59e1bd97f0cfda7143c6b3b8d1f | refs/heads/master | 2023-04-29T09:30:00.716108 | 2021-05-16T04:43:54 | 2021-05-16T04:43:54 | 361,720,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # Generated by Django 3.2 on 2021-05-09 23:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main', '0008_auto_20210509... | [
"prp@palli.org"
] | prp@palli.org |
4b3e72d7ab3276e6fc20cf6ab76361690d271e97 | 455ee192baad3dfa649cb1cce0a342167b0f857e | /migration/faces_config/script_facesConfig.py | 6f010a8b70c177cc01f4fbde7bc227276dada10e | [] | no_license | yassinekarim/Script | c87a61854c819b0227f6533fdafdbb1f99822ca5 | f7de5a8ea6704402c82cb156b6a26ccf803caa05 | refs/heads/master | 2020-03-29T15:44:36.003191 | 2014-09-15T09:31:54 | 2014-09-15T09:31:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | """faces-config.xml migration module"""
#!/usr/bin/python3
# -*-coding:utf-8 -*
from lxml import etree as ET
from migration.utils.change_definition import ChangeDefinition
class FaceConfigMigration:
"""faces config migration class"""
def parse_xml(cls, file_path):
"""parse the web.xml update definition ... | [
"yassine.karim@gmail.com"
] | yassine.karim@gmail.com |
25bec75d335fd19663fb549bac3f111228adcee2 | f3e51466d00510f1dae58f1cb87dd53244ce4e70 | /LeetCodes/facebook/ReverseLinkedList.py | 9184e30348f7f6739d047928f0e48937973b5b12 | [] | no_license | chutianwen/LeetCodes | 40d18e7aa270f8235342f0485bfda2bd1ed960e1 | 11d6bf2ba7b50c07e048df37c4e05c8f46b92241 | refs/heads/master | 2022-08-27T10:28:16.594258 | 2022-07-24T21:23:56 | 2022-07-24T21:23:56 | 96,836,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | '''
Reverse a singly linked list.
Example:
Input: 1->2->3->4->5->NULL
Output: 5->4->3->2->1->NULL
Follow up:
A linked list can be reversed either iteratively or recursively. Could you implement both?
'''
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.ne... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
d9557a94d789d81754209070b91182d44bae2261 | 20f951bd927e4e5cde8ef7781813fcf0d51cc3ea | /fossir/modules/events/settings.py | 45ce014e97b50016de412b5d7b4e562a48cc8776 | [] | no_license | HodardCodeclub/SoftwareDevelopment | 60a0fbab045cb1802925d4dd5012d5b030c272e0 | 6300f2fae830c0c2c73fe0afd9c684383bce63e5 | refs/heads/master | 2021-01-20T00:30:02.800383 | 2018-04-27T09:28:25 | 2018-04-27T09:28:25 | 101,277,325 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,847 | py |
from __future__ import unicode_literals
import os
import re
from functools import wraps
import yaml
from flask.helpers import get_root_path
from fossir.core import signals
from fossir.core.settings import ACLProxyBase, SettingProperty, SettingsProxyBase
from fossir.core.settings.converters import DatetimeConverter... | [
"hodardhazwinayo@gmail.com"
] | hodardhazwinayo@gmail.com |
44324b1f7d70e357e98b7462489d90e6c7795e09 | d819a5e4005dcfd7785ba285d026d5fa2956085d | /python_2.7/sniffer.py | 5a3dbb212eba8a92eebf9f88df06c74fc0a0dafd | [] | no_license | chengsluo/code-python | 1296c67283777c2cab57dddde4e5e7d04e6b2dbc | 7ff32066a82221049ae3ddb7c2958c459788dfd7 | refs/heads/master | 2021-07-20T14:14:10.621997 | 2017-12-04T02:51:03 | 2017-12-04T02:51:03 | 96,668,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py |
import socket
# the public network interface
HOST = socket.gethostbyname(socket.gethostname())
# create a raw socket and bind it to the public interface
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
s.bind((HOST,0))
# include IP headers
s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL,... | [
"chengsluo@gmail.com"
] | chengsluo@gmail.com |
437afe33b6283348caa869919bc2a3282f458467 | 44ff5bea98876d93cce9d9c4c96d0d0c4a33e7b3 | /Implementation/Implementation_B3_2460.py | 8845786b8a7fdf0a0daee8382545bda5edbc7063 | [] | no_license | jungwoohan72/coding_test | 6a0982aed9c563d992e469be5e1766281bbe10fc | 17d6d7c825de6ac7300453957489912b6adf6da2 | refs/heads/main | 2023-07-16T10:29:26.505100 | 2021-08-30T13:40:01 | 2021-08-30T13:40:01 | 384,112,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | history = []
for i in range(10):
history.append(list(map(int, input().split())))
curr = 0
ans = 0
for out_, in_ in history:
curr -= out_
curr += in_
if ans < curr:
ans = curr
print(ans) | [
"jungwoohan72@kaist.ac.kr"
] | jungwoohan72@kaist.ac.kr |
d586c956770379709d8f8bc14fc77f874f8058ba | 6fa4a3ef13f7418d660daea829649124c130599c | /dianping_robot/pipelines.py | 41ec30fc0dd749f3661868f7169e84aac1bbef14 | [] | no_license | god99me/dianping_robot | 802ad530d12020fc1cd5b78853c2626d13b3e6e9 | a3c6de20f90cd6389c59ddcbcc2656c7c91fff1c | refs/heads/master | 2020-05-30T07:13:43.933927 | 2017-04-28T17:02:58 | 2017-04-28T17:02:58 | 69,142,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # -*- coding: utf-8 -*-
import json
from scrapy.exceptions import DropItem
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class DianpingRobotPipeline(object):
def process_item(self, item, spide... | [
"343936465@qq.com"
] | 343936465@qq.com |
a2d79d5c777ea3b5861c85f6f8b40fb30b07c4ea | 86a7ab3a80f0a31631e158e4cb569f2919580a01 | /Humidity.py | 633179dd25d4a1edeabb89d214f1e1ad9518eb74 | [] | no_license | shantanukawale/IoT-Smart-Village | 4a352c28b624d0d042fec678f5594312be76454d | 8385fcee77ef46485fa96d628fce0cb02e77e2ec | refs/heads/master | 2021-04-28T10:31:02.307916 | 2018-02-19T14:24:29 | 2018-02-19T14:24:29 | 122,066,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | #!/usr/bin/python
import sys
import json
import Adafruit_DHT
from twilio.rest import Client
import requests
#gpio pin no. 4
ACCOUNT_SID = 'hidden'
AUTH_TOKEN = 'hidden'
TWILIO_PHONE ='hidden'
RECEIVER_PHONE = 'hidden'
client1 = Client(ACCOUNT_SID,AUTH_TOKEN)
msgcounter=0
temperature0=0
humidity0=0
while True:
humi... | [
"noreply@github.com"
] | noreply@github.com |
a006631c4dab14b3214fd98d5e5768fdb65b199b | 4d1996e575dd68e98aecd43f425c6fb17d969089 | /chap_04/08_linear_regression.py | 67109a6d2731f5439a578edd037bf74543e1754e | [] | no_license | jaeyong1/deeplearningforus | 58cb1b4d82ba95f087add262efc4db8b659fecad | c5e7ac8152bca48ba3feb81f752ed664c83b1d4f | refs/heads/master | 2020-03-27T11:11:36.896866 | 2019-11-11T14:20:04 | 2019-11-11T14:20:04 | 146,471,184 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import tensorflow as tf
# 학습데이터 (X, Y)
x_train = [1, 2, 3, 4]
y_train = [6, 5, 7, 10]
# 변수 선언
W = tf.Variable(tf.random_normal([1]), name='weight')
b = tf.Variable(tf.random_normal([1]), name='bias')
# 가설식 정의 H(x) = Wx+b
hypothesis = x_train * W + b
# cost/loss function
cost = tf.reduce_mean(tf.square(hypothesis - ... | [
"bjpublic@bjpublic.co.kr"
] | bjpublic@bjpublic.co.kr |
62d5c24f0840174a493b4036c242af7859a52887 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/ICalGLib/__init__.py | 75c6283ac12886f54d25efafcb89d88f2ef41f10 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 12,903 | py | # encoding: utf-8
# module gi.repository.ICalGLib
# from /usr/lib64/girepository-1.0/ICalGLib-3.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes o... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
cd88f83ee9f8fb73fc93451d35fdc1274430f2a7 | ce433c31c984aed6bf6b9b01b00a2d03071dd0e5 | /codeforces/118A.py | 386cf26d6800928c5d3593f451373986f553f71f | [] | no_license | codexetreme/competitivecoding | 4210c58d96bee6c114ebcafa818273c80cec7d54 | aed39b13d86271225f6f8dcd3563ff8cdc7725d2 | refs/heads/master | 2023-06-25T09:26:42.890452 | 2021-07-21T15:37:40 | 2021-07-21T15:37:40 | 372,023,615 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | s = input()
s = s.lower()
k = ['a','e','i','o','u','y']
p = ''
for i in s:
if i not in k:
p+='.' +i
print (p) | [
"yashodhanghadge@gmail.com"
] | yashodhanghadge@gmail.com |
f1050dd00829735601b13a46b8123ff00a1457bb | 77d013e5d31e352c2a3f013739b61758cea79822 | /Actions/RestoreHP.py | 1404db901ce35ccb1f8f509254ff5d13566456e7 | [] | no_license | TAEB/Eeek | 27ab4d5a4cdc46a94e02e67f75dd7aed93e899fd | 62c8e8a729a10333a4545f3168dd94f2946d7871 | refs/heads/master | 2020-05-21T11:56:14.102703 | 2013-06-26T23:17:52 | 2013-06-26T23:17:52 | 10,981,810 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from Kernel import *
class RestoreHP:
def __init__(self):
pass
def can(self):
if Kernel.instance.Hero.curhp <= (Kernel.instance.Hero.maxhp/2):
return True
def execute(self):
Kernel.instance.log("Searching for 10 turns becuase my HP is low")
Kernel.instance.Hero... | [
"code@sartak.org"
] | code@sartak.org |
565df021d3fe8a822029ba5cab3c3c201b932587 | 5c3d304ec46afa2e35033857d505b9d37403e5d2 | /hourglass/test.py | 4209eb9db18329b353715bb09fdcfd2f7a3da8fb | [] | no_license | tankche1/Deep-Learning | 8b32b11b0ad37471aa1195867547427231cc7080 | 7fe7469e15fecc22ce17b93a247179dd03fced72 | refs/heads/master | 2020-04-06T04:06:32.126195 | 2017-02-25T12:00:26 | 2017-02-25T12:00:26 | 83,036,998 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,765 | py | import re
import os
import scipy.io as sio
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import torch
import torch.optim as optim
currentPath=os.getcwd()
#torch.setdefaulttensortype("torch.FloatTensor"... | [
"15307130191@fudan.edu.cn"
] | 15307130191@fudan.edu.cn |
da0c3ef33974d59429749db9ddb2ca3d448e380c | ac648b3529b5422aabf93f35b7349fef51bb69b5 | /python/gbpPy/gbpPy/log.py | 6cb346ef12fec75613c58fb462a9627f3f3de4c4 | [] | no_license | gbpoole/gbpPy | 75027911eeb7fe95976318bc852cd800e67f7757 | 4c07e4cf4e546b3164556a237f6f8c205d6d5827 | refs/heads/master | 2021-05-13T20:35:55.069302 | 2018-02-16T00:15:47 | 2018-02-16T00:15:47 | 116,915,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | """Code for generating log messages
Developed with the following library versions:
python: 3.5.2
"""
import sys
import time
class log_stream(object):
"""This class manages the formatting of log output."""
def __init__(self):
self.t_start = time.time()
self.t_last = sel... | [
"gbpoole@gmail.com"
] | gbpoole@gmail.com |
3c47295ce5b2396c62c27e21565747fab07a5bac | c138cddfd19fe8e312a501d3e51d74f6bb1ba6b3 | /analytics/execution/quality.py | b41b708f39311f22b801778d3c3d910b8f24e4c5 | [] | no_license | andreas-koukorinis/example_nbs | a15d3ef5392f04fe9d371367d1b0d82582653fcd | 0bc87ab8dd94c5173030ab42c8515b233a2b9a82 | refs/heads/master | 2020-06-24T13:31:52.698432 | 2019-07-31T16:31:12 | 2019-07-31T16:31:12 | 198,975,320 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,111 | py | import logging
from calendar import monthrange, month_name
from datetime import datetime, timedelta
import pandas as pd
from jinja2 import Template
from sgmtradingcore.analytics.commissions import get_commission_rates_for_user
from sgmtradingcore.analytics.execution.tennis_sip import execution_data_tennis_sip
from sg... | [
"akoukorinis@gmail.com"
] | akoukorinis@gmail.com |
bb48e7c4bfc20aec2a22275c04f2ea172f932099 | 178085f725183e982304177bb47639568c1cee5b | /app.py | 0c7ab9527be44556e8a86c21df695c2ab20a912e | [] | no_license | kruthik-jt/Signzy | ed10acee97ed67dc0e59b63ed80c982fcff9466d | 5da3303888fda315e2032fe5eb56db2cd344f62a | refs/heads/master | 2022-07-06T06:44:14.188306 | 2020-05-17T05:52:55 | 2020-05-17T05:52:55 | 264,396,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from project import app,db
#Run the application
if __name__=='__main__':
app.run(debug=True,port=5000) | [
"jt.kruthik@gmail.com"
] | jt.kruthik@gmail.com |
77aedfed99236427961ec32a6562e29b523d3931 | 1f1ef729e0f51b868b3ccfadfc952b0cbc9035e6 | /main.py | 685302eff0556d31e7e7562143d13491a5b029c9 | [] | no_license | jeremymelamed/Network-Hub-Disruption-Probabilities | ee5597d3fdce024cac3be4bed5e40c298ebb2b19 | e6d5181fab2d026697700aa2d13c55b85d868d3e | refs/heads/master | 2021-01-22T17:29:33.344622 | 2017-05-30T15:31:44 | 2017-05-30T15:31:44 | 85,022,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | import os
import numpy as np
import datetime
from generate_network import generate_network
# Read parameters from txt file
path = os.getcwd()
with open(path + '\Params.txt', 'r') as f:
Params = []
for line in f:
Params.append(line)
# Store parameter values. Ask user if parameters are co... | [
"noreply@github.com"
] | noreply@github.com |
922a6e467dc879c0f3802ab8435d16806647e508 | 3cff59d750c02bf6cc0908eacfdee85272b21a36 | /bigquery/samples/update_dataset_description.py | 70be80b7507e448235ebe87355fcb8f9df7bf7c2 | [
"Apache-2.0"
] | permissive | nthon/google-cloud-python | f42036035805e7fd83b53ec1702da56406fc87a6 | fc4590bcceac8ee154556fd1b6c7d436be8ea53c | refs/heads/master | 2022-01-08T01:29:15.162175 | 2019-06-13T19:32:10 | 2019-06-13T19:32:10 | 191,901,204 | 1 | 0 | Apache-2.0 | 2019-06-14T07:58:00 | 2019-06-14T07:58:00 | null | UTF-8 | Python | false | false | 1,350 | py | # 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 agreed to in writing, ... | [
"noreply@github.com"
] | noreply@github.com |
4840db2601751c36e94afdfc88d606f8aa5ae89e | 5f47b5f882cd4111d877d153cbef4f43c74e012f | /index/urls.py | e6e2b9c4f634d8bed8568d2458f2f11a9df7a05c | [] | no_license | Zeelcon/music | 99e7f9334fa66df8db2f913ffec8f6204b22c677 | 3eebab4ace8d3cdeb2dfbd4710ef5610ff997494 | refs/heads/master | 2022-06-06T19:16:55.092617 | 2020-05-07T18:41:38 | 2020-05-07T18:41:38 | 259,558,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from django.urls import path
from .views import *
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('', indexView, name='index'),
]+static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT) | [
"15217458846@163.com"
] | 15217458846@163.com |
4b878072771083675c1ef9fd929b431bcf3ce12b | 1e516d45c6462aefdd468c4a725fa8ac1f096ea0 | /AlumniPortal/manage.py | 6de3703531f6b6e010be92137720a1578f6ede0b | [] | no_license | prateek-iiitd/IIITDAlumniPortal | 04ddae57618679cc02c119b0fc49652e1f1ad49f | 1e90935a6cd52e892e9acd3ba689e0a4066ba55f | refs/heads/master | 2020-09-24T11:38:23.191730 | 2015-06-10T23:12:02 | 2015-06-10T23:12:02 | 23,381,379 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "AlumniPortal.settings_dev")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"prateek11077@iiitd.ac.in"
] | prateek11077@iiitd.ac.in |
01d827f8a69e98d1591a4d481705d1001bde1a7f | 48f8f80d7c08fc167801de78097ec116b9a0e392 | /lak.py | e0760187aa47e8a02969db0753b6758858d0cc70 | [] | no_license | Lakshaygrvr/-Task | 9c59d91a6ac591adfd3094c4c16b5b650b46c68e | 9b0d067ddfb599ecc1f836d1a2a44daa6d19c310 | refs/heads/master | 2022-04-21T23:46:49.090328 | 2020-04-12T18:04:39 | 2020-04-12T18:04:39 | 255,131,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | list2 = [12, 14, -95, 3]
for num in list2:
if num >=0:
print(num, end =" ")
| [
"noreply@github.com"
] | noreply@github.com |
5b6c295ae5563e56ae9eebb3ff72abaa78917abe | eff669b78809d6b3ce479402e8a301bb0e458929 | /apps/goods/models.py | 7664808629988afe44280fef4b67f2b17e901157 | [] | no_license | tsozh/FreshShop-1 | 59f31dfe8f1a56c837cccadc33c3aefb18841a13 | 71650ad663624c4419e89923ef5e9e2003c9ddc3 | refs/heads/master | 2020-03-21T20:09:58.258575 | 2018-04-19T12:37:29 | 2018-04-19T12:37:29 | 138,990,989 | 1 | 0 | null | 2018-06-28T08:41:29 | 2018-06-28T08:41:28 | null | UTF-8 | Python | false | false | 5,312 | py | from datetime import datetime
from django.db import models
from DjangoUeditor.models import UEditorField
# Create your models here.
class GoodsCategory(models.Model):
CATEGORY_TYPE = (
(1, '一级类'),
(2, '二级类'),
(3, '三级类')
)
name = models.CharField(max_length=20, default='', verbose... | [
"sp726129246@gmail.com"
] | sp726129246@gmail.com |
01dca87891811dc9c80df4ec667f35a0d253a385 | 2d997384a86f0d9c0cdb80a1141908abfdf674cc | /ML_homework8/task.py | 3a7d666193d64500051f875d33be8500c66db5a8 | [] | no_license | Alice-Avetisyan/Machine_Learning | 1ddc91fad066f3abf0457d036aa783f0fc40a46f | 9a0cc83c6d90ef58703a383f066ef857bb124334 | refs/heads/master | 2021-01-16T09:07:20.435898 | 2020-06-18T08:44:17 | 2020-06-18T08:44:17 | 243,054,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | from sklearn.datasets import make_classification
# Generate a random n-class classification problem
X, y = make_classification(100, 3, 2, 1, class_sep=0.5) # 2 of 3 features are informative and 1 is redundant
# 100 -> number of samples/rows,
# 3 -> number of features/columns,
# 2 -> number of informative features... | [
"noreply@github.com"
] | noreply@github.com |
8e34a2e597940d4b033ab178c33dd25722a67540 | fc25d8a6d20b2b9dd78df754b53067e4a6c255d8 | /step01a_seaIce_monthlyaveraging_RCP45.py | eaf54dd5e6d74de9ac04cfb70b5d4a8a03153cd3 | [] | no_license | weilin2018/cesmEnsembleSeaIce | 5195bbec3b4c717d4a990e814b0a8aefa1b46857 | 7dfeac61d421951560b1562c107ffd3b72a292c9 | refs/heads/master | 2020-09-04T19:31:53.099776 | 2015-09-29T17:33:19 | 2015-09-29T17:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,864 | py | # code written by K. Barnhart in 2014 and 2015 in support of
# Barnhart et al., TITLE, YEAR
#
# this code represents the first step in analysing the CESMLE sea ice output
# it creates monthly averages of the sea ice concentration and sea ice extent.
#
# to run it, please verify that all the modules listed below are i... | [
"katy.barnhart@gmail.com"
] | katy.barnhart@gmail.com |
9e30f6dd5e43574bbc8c96b3976c5ed164f00864 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/vehicle_systems/components/__init__.py | 057145a5b192b33ecbef57d0bc595f52f45d7640 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 132 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/vehicle_systems/components/__init__.py
pass
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
373a27235958fdefb11425b7fd3ab72a084d1118 | e880b714a62d25d51a02a20e7fe725e050ba8012 | /Challenge/app.py | c60f9820780ff3bd7d759cc05553c21eb2ce8fba | [] | no_license | kaileymd/Mission-to-Mars | 8408902787f2e3644b5c1fc607231ba5cf2a4d21 | d1b0fc695378835a2e1eb350dec7c7bc5a15afd9 | refs/heads/main | 2023-04-26T00:16:56.031101 | 2021-05-10T00:10:43 | 2021-05-10T00:10:43 | 363,551,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | #import dependencies
from flask import Flask, render_template, redirect, url_for
from flask_pymongo import PyMongo
import scraping
#set up Flask
app = Flask(__name__)
#use flask_pymongo to set up mongo connection
app.config["MONGO_URI"] = "mongodb://localhost:27017/mars_app"
mongo = PyMongo(app)
#set up Flask routes... | [
"kaileymichelledavis@gmail.com"
] | kaileymichelledavis@gmail.com |
10ebb5a33de3a78479eeeeab0075a4ed9b9b5b16 | bcb56cc126ea1885eb5ecc920884e2e331def045 | /Part B/Letter.py | 5536de9080655ae9b4a8c2bdfc7f925462a11551 | [] | no_license | priyanshkedia04/Codeforces-Solutions | 2d11cb7b8329fe658f983b7212c17fc89fd784f0 | a5197c633bf4c3238f48bfb5b308144c2ffba473 | refs/heads/main | 2023-06-06T13:10:13.787843 | 2021-07-01T14:06:52 | 2021-07-01T14:06:52 | 382,000,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from collections import Counter
s1 = dict(Counter(list(input())))
s2 = dict(Counter(list(input())))
count = 0
if ' ' in s2:
del s2[' ']
for i in s2:
if i in s1 and i:
if s1[i] >= s2[i]:
count += 1
if count == len(s2):
print("YES")
else:
print("NO") | [
"noreply@github.com"
] | noreply@github.com |
cbd95a08af52867605dec93bb7e52c3b596fa13f | 4cc0252f4b7c4a41e1749f3f7227fdf30fc50dd9 | /main_app/migrations/0003_auto_20200624_0305.py | d82516da9f33d7d209a6bfa38ed5f7601d42b409 | [] | no_license | jsohnfile/Issues-That-Matter | 90f05721256d08471fdbcc84a1a61a5c2e7b10ee | 209d494c708374ab6d37c97e17723796e567fe88 | refs/heads/master | 2022-11-13T03:11:49.003043 | 2020-06-25T22:58:56 | 2020-06-25T22:58:56 | 274,191,967 | 0 | 0 | null | 2020-06-22T16:42:25 | 2020-06-22T16:42:25 | null | UTF-8 | Python | false | false | 399 | py | # Generated by Django 3.0.5 on 2020-06-24 03:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0002_auto_20200623_2225'),
]
operations = [
migrations.AlterField(
model_name='resource',
name='og_descr... | [
"macuser@Mac-User.local"
] | macuser@Mac-User.local |
faa73d709c2e0e1f15d70e64fb2dd202e389c91c | 047da0d824ab7f2f558b1cc8a147a0f0901949ef | /wave.py | b517bab3557d43a16718970b11980c1f873690ad | [] | no_license | rjwebb/responsive_term | 177c51a8d4f284c9987da4f979573f0bb120409f | 805fe5afc43d175df40565da613231c45b979680 | refs/heads/master | 2021-01-12T17:06:43.871627 | 2016-10-20T22:17:58 | 2016-10-20T22:17:58 | 71,508,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,237 | py | from __future__ import division
import math
import os
import sys
import time
class ResponsiveTerminalApplication:
i = 0
rows = 80
columns = 50
def __init__(self, fps=30, timeout=float('+inf')):
self.quantum = 1 / fps
self.timeout = timeout
def update_dims(self):
o = os.p... | [
"bob.wbb@googlemail.com"
] | bob.wbb@googlemail.com |
a3e27e2adfe18ab3cc1701b83a04e19c80dcd52b | 80973ca24a1ad29f987cc5c31c94fbf53a24eef0 | /setup.py | cc143f950b1a26ac1dbc3f4dd05ae5d9eb09c691 | [
"Apache-2.0"
] | permissive | stephb9959/pybalboa | 54ebd38553d29884d537f49f076f82fad3d997b8 | fc88084c06137d153429dfc5b018d1e3f62b2f9b | refs/heads/master | 2020-11-27T17:21:55.408979 | 2019-12-21T17:11:39 | 2019-12-21T17:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(name='pybalboa',
version='0.2',
description='Module to communicate with a Balboa spa wifi adapter',
long_description='Module to communicate with a Balboa spa wifi adapter',
url='https:/... | [
"root@garbled.net"
] | root@garbled.net |
cd516af85e41b530c393daa6389eb10fe040fd0f | 47c740d7f980ecb6d3bfa5fcaf36f6cc3dd8310e | /Project1c/InstTable.py | 5384344625bfb2587225850758035f202af43e06 | [] | no_license | blackbeaver37/2020_SystemProgramming | df9e0d78c69361bb719f269fd0eab4fcede848ef | 79a238a698c97494ea3258f746f72a5daf1efdb7 | refs/heads/master | 2023-04-21T07:48:46.911823 | 2021-04-28T09:14:30 | 2021-04-28T09:14:30 | 265,632,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | class InstTable:
# inst.data 파일을 불러와 저장하는 공간
instMap = dict()
# 클래스 초기화. 파싱을 동시에 처리한다.
# @param instFile : instuction에 대한 명세가 저장된 파일 이름
def __init__(self, instFile):
self.openFile(instFile)
# 입력받은 이름의 파일을 열고 해당 내용을 파싱하여 instMap에 저장한다.
def openFile(self, fileName):
... | [
"noreply@github.com"
] | noreply@github.com |
ea26519fb92e19680ae2bc0f914b45e5e8ff0384 | c3f85fb71b61856aabbc2b30c92c494809b78395 | /html.py | e9ba066d7ff9ae87ff632cd7eb167a693468151d | [] | no_license | fabianmichaelis/pythonspielerein | a874d957aded9983710bcf3a71e9a0433edf23cc | 23a5080686dceb1c8a5a952a9edeb4cc604da349 | refs/heads/master | 2020-05-31T14:51:57.419617 | 2014-01-10T13:17:58 | 2014-01-10T13:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import urllib2
from bs4 import BeautifulSoup
page = urllib2.urlopen('http://www.google.de/')
soup = BeautifulSoup(page)
#print(soup)
print(soup.title)
for link in soup.find_all('a'):
print(link.get('href')) | [
"info@fabianmichaelis.de"
] | info@fabianmichaelis.de |
e4a5976bee9335018a7918727925e58e25fcdaa3 | 4345278aecf350ccfe5c529c63ad534b8ab98e95 | /experiment/FlexibleImplementation/experiments on smallpresent-4/SMALLPESENT-4_T_variable_a_variable_phi_of_increasing_size_with_replacement/T_variable_a_variable_phi_increasing_size_round_15.py | 596a7993298f7758782155f4de80df17bf65fc37 | [] | no_license | mdmohsinalikhan/MastersThesis | fc1caa1565f60a54d1f06edeab0a22331d4e8112 | 5ac4a06b20491c7a7e6dec2dd7113f83550a6724 | refs/heads/master | 2020-12-24T06:24:18.275156 | 2016-11-10T17:02:32 | 2016-11-10T17:02:32 | 73,401,475 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,220 | py | import numpy as np
import matplotlib.pyplot as plt
import math
t = [5,6,7,8,9,10,11,12]
#Creating the list. Logorithm of sample size. Will be plotted in x-axist_0 = [28.000000,35.000000,28.000000,33.875000,21.937500,26.468750,25.031250,35.648438]
t_1 = [12.000000,19.000000,14.750000,8.750000,16.562500,13.281250,16.... | [
"mdmkhan@dhcp-asv-72.helsinki.fi"
] | mdmkhan@dhcp-asv-72.helsinki.fi |
2d87cfb2050dc123dda3a9e59dec3db88a7322cd | cf03974cf92b11db7c52d7aec87b4c856feba215 | /hungry.py | 7a043473d6bca288b13395ad5e69c900846611e1 | [] | no_license | kkirankumar9/test | 80164594d4f1df97effa3df8b7a19e8f79817c76 | 166e77e17675bfa873c38ade145aa115a786be55 | refs/heads/main | 2023-06-21T10:27:55.815853 | 2021-07-31T13:59:12 | 2021-07-31T13:59:12 | 387,144,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | i=input("are you hungry")
if i=='yes':
print("eat pizza")
else:
print("do work") | [
"you@example.com"
] | you@example.com |
c00e81fe9d2d5771eec4201710d185ab21e1154e | 31068d3fde12a6c5b6eeb9d11b312b9f91f74871 | /inputs/data_gen.py | ffa56fd73a9fbd31f7e47ea147e02445e38aa7c3 | [] | no_license | Irlyue/FCN-2.0 | 4e1114ac1aca37effbf003d8adbb92b235109147 | 890bc4b3d65f1405489e21686b6dc216f9a18374 | refs/heads/master | 2020-03-12T04:09:12.246463 | 2018-08-09T01:56:59 | 2018-08-09T01:56:59 | 130,439,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,168 | py | import numpy as np
import tensorflow as tf
from inputs import voc
from scipy.misc import imresize
class DataGen:
def __init__(self, name='NoName'):
self.name = name
def __repr__(self):
return '{}(n_examples={})'.format(self.name, len(self))
def __len__(self):
raise NotImplemente... | [
"Irlyue@outlook.com"
] | Irlyue@outlook.com |
3c16f4fd4eb2b2ed9e5b192841d2b02fba0a8391 | c72de5218b40cbd27c60d13b0969d44aaa8302f3 | /expression.py | 63c3f49dfc9898d537f3a1feaffdfe976444fd8f | [] | no_license | raghutit/MyProject | 5b220d0d39dd513ec9669dab94cfa7481b6397d9 | 3e864bacb464b19ab25f02bc71fc6afabfb866b0 | refs/heads/master | 2021-02-14T22:38:09.327399 | 2020-03-04T09:08:11 | 2020-03-04T09:08:11 | 244,841,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | n=int(input("Enter the value: "))
def fun(n):
y = 1
for i in range(1,20):
y = y * n
result = 1 / y
print("%.3f" %result,end=' ')
print("%.3f" %(1/n**i),end=' ')
fun(n)
| [
"raghvendrakr92@gmail.com"
] | raghvendrakr92@gmail.com |
29b5f00ae463653e1e8860432fabef8e89d78d2d | e3308bebae862c1da8d218a56e50ac980c589e38 | /DecisionTree.py | 0b2b60a633d43761b9891565bb50772b601a8c39 | [] | no_license | ChickenBreakfast/Titanic-AI-2017 | 170a4aa571a9a3a2648c8355392d14306b7dab7a | 0f2ae3cd13bd176ad80cc67c266d488dedb6da6f | refs/heads/master | 2020-03-22T08:01:22.155773 | 2018-07-04T15:46:53 | 2018-07-04T15:46:53 | 139,739,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | import numpy as np
# 导入pandas用于数据分析。
import pandas as pd
train_data = pd.read_csv('data/train.csv')
test_data= pd.read_csv('data/test.csv')
test_data['Survived']=0
# combined_train_test=train_data.append(test_data)
#查看字段属性有哪些
# train_data.info()
# test_data.info()
#机器学习有一个不太被初学者重视,并且耗时,但是十分重要的一环,特征的选择... | [
"noreply@github.com"
] | noreply@github.com |
befc728e9aeb78df4d9d41a1b4e437ba3ab786b6 | a092fa8ec913bc1fe0119c68b875c5aeb7045337 | /linux/Observers/ObserverBase.py | 8cea461c4f1e2ea5bc1da244fd7b67214a2cb1d5 | [] | no_license | loserpenguin15/UCSBsketch | 1e0275a980893714e0aebf33c74caf5aaa31c491 | 92f1e146b79d32c7938c0b8b92277dedde363e3b | refs/heads/master | 2021-01-20T07:54:06.139833 | 2011-10-04T16:54:11 | 2011-10-04T16:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,761 | py | """
filename: ObserverBase.py
description:
Doctest Examples:
>>> class MyVisualizer(Visualizer):
... def drawAnno(self,anno):
... pass
...
>>> m = MyVisualizer(Annotation)
>>> class MyCollector(Collector):
... def mergeCollections(self,anno):
... pass
...
>>> class Annotation2(Annot... | [
"jbrowne@cs.ucsb.edu"
] | jbrowne@cs.ucsb.edu |
dab8b347c67f8225bb55fa6570fe28846ab87f79 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/101/usersdata/227/49714/submittedfiles/av1_m3.py | 24617831cbcfc8ae60100af176c4d6c910776e9e | [] | 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 | 178 | py | # -*- coding: utf-8 -*-
import math
m=int(input('digite o número de termos:'))
a=4
pi=0
for i in range(2,m+1,2):
b=i+1
c=b+1
pi=3+(a/(i*b*c)
print('%.6d'%pi)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1e8a99b3c001d5967372d533454dcc6c64dc0402 | 8779f82469c230d9f21c6c256d8f70228be8add8 | /sql.py | 09f3a5eca3b40a1f1c2f38c1d0a4cc4fcfcb6f40 | [] | no_license | sdiazroa/netlearn | 64772b44763e16fc76d84dc2a77849e099033085 | 1ed3b078ef9d5b8fef3e8e6e9393ca29747fa113 | refs/heads/main | 2023-01-24T10:34:19.627303 | 2020-12-08T03:43:11 | 2020-12-08T03:43:11 | 318,657,922 | 0 | 1 | null | 2020-12-07T00:20:50 | 2020-12-04T23:22:59 | HTML | UTF-8 | Python | false | false | 270 | py | from cs50 import SQL
# Create SQL db
open("crm.db", "w").close()
db = SQL("sqlite:///crm.db")
#Create table within database
db.execute("CREATE TABLE network (id INTEGER, name TEXT, cohort TEXT, hometown TEXT, past_industry TEXT, goal_industry TEXT, PRIMARY KEY(id))")
| [
"bader.lindsay@gmail.com"
] | bader.lindsay@gmail.com |
97c35e072c4cc0cd0979ee5dd7e65d6dd9a56c3c | 6d33d1100ffeec7c831a8f74f5ae0a253c80e5dc | /turing_library/__init__.py | f5990f1bfae0f06f1ab69fae20f7e2da39a76397 | [] | no_license | webclinic017/turing_trade | 6d39aa7f002d9e06957997e5f29641112aadb14f | e2e4d70abdbba27b51783ee8cab9ea1665f2f8d3 | refs/heads/master | 2023-06-01T22:17:23.988511 | 2021-06-22T04:40:46 | 2021-06-22T04:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from .alice_blue import AliceBlue, TransactionType, OrderType, ProductType, LiveFeedType, Instrument
__all__ = ['AliceBlue', 'TransactionType', 'OrderType', 'ProductType', 'LiveFeedType', 'Instrument'] | [
"sai.kiran0901@gmail.com"
] | sai.kiran0901@gmail.com |
2a278b7f06c76977aa19d5d200d846cf998aaf01 | 4e653ae47c8dc5e2be5cade2a9550507dbb2f9d2 | /public_html/hw05/hw05script.cgi | 334fe1abfe6df3af0e7f44a26456c59598e12f9c | [] | no_license | sdevagup/Scripting-for-Network-Management | d3d24cd20fcda33ee548055e92dec74585b3135c | f686c57a408cc2a4708c781dbbd3497aa02a8be5 | refs/heads/main | 2023-03-27T05:34:02.266291 | 2021-03-23T02:35:41 | 2021-03-23T02:35:41 | 350,553,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,537 | cgi | #!/usr/bin/python
# Import modules for CGI handling
import cgi, cgitb
import sys
import datetime as dt
from datetime import datetime
def report(report_type,sdate,edate):
op = report_type
if op == "1":
opcode = 1
elif op == "2":
opcode = 2
elif op == "3":
opcode = 3
else:
... | [
"SDEVAGUP@mail.depaul.edu"
] | SDEVAGUP@mail.depaul.edu |
b9bae1d7f91bf21ba8f7f0aec349e45fa46594db | f28bf55c1d811b4dbdc370c6f7e949564b3b6bae | /maggieapp/serializers.py | d111355dc258a248371cf7e9027db03cc4db70d6 | [] | no_license | ericdai/Pethome | 6e205bb17c856b00c04dcb7e58f87babad82e2a3 | 5f1ac2e4e6f4125acf837c5c2999ece756c61c66 | refs/heads/master | 2022-10-17T04:13:35.869229 | 2019-07-17T07:18:18 | 2019-07-17T07:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,114 | py | from django.core.cache import caches
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
from common.models import User, Role, UserRole, CatDisease, Medicine, DogDisease
from maggieapp.utils import USERNAME_PATTERN, EMAIL_PATTERN, TEL_PATTERN, to_md5_hex, PASSWORD_PATTERN
cla... | [
"2412555159@qq.com"
] | 2412555159@qq.com |
9e42a246a8cfadd2836f2c8c0988dabbdf3c197f | 296941a2bdd8f673f1d234570d8271fe60c0ef34 | /ex010.py | b13866f87a9295c1ae6f98a3c881c155127ef409 | [] | no_license | ivovilar1/exercicios | a7d7accfcb6c1e4aab7d17217a659de0cccb61e6 | 9d5a0ac7f0498bc48c8841272279977633ba2514 | refs/heads/master | 2021-05-21T04:53:24.491283 | 2020-08-26T12:26:09 | 2020-08-26T12:26:09 | 252,551,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | carteira = float(input('Quanto dinheiro voce tem na carteira?R$'))
dol = carteira/3.27
print('Com R${:.2f} voce pode comprar US${:.2f}'.format(carteira, dol))
| [
"ivo_vilar@hotmail.com"
] | ivo_vilar@hotmail.com |
8de01ef64c3c3adc7120ccccb7a1473d9d12b985 | 5aa8ba68c04c82eb9bd1431367554487fb3279fd | /client.py | d0adf6f8c47ef87658cb2af1f1bb408bf8b7bfb1 | [] | no_license | DushyanthaHerath/python-smpp | 0ce9f453c167656271420738a0d7da72cfb03dd9 | dd0c1eb06e95373efe03b1cc0019c2a6f36c9cb9 | refs/heads/master | 2022-12-31T14:28:59.217906 | 2020-10-17T06:32:03 | 2020-10-17T06:32:03 | 304,813,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | import logging
import sys
import smpplib.gsm
import smpplib.client
import smpplib.consts
# if you want to know what's happening
logging.basicConfig(level='DEBUG')
# Two parts, UCS2, SMS with UDH
parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(u'Sample Text\n'*10)
client = smpplib.client.Client('172.17.... | [
"dushyantha.solomoit@gmail.com"
] | dushyantha.solomoit@gmail.com |
db45e08a17f6c02bff701d617a28020a756d61d6 | 6dc7535d8f6249b8f9d74dd0f49bfa27d84ae58b | /6_1_simple_fixed-point_iteration.py | 8c732b32862947018f52c6413285f034d91a9074 | [] | no_license | lyndadream/Numerical_analysis | 48dc80332b03ef50107af8d3952b7541062213ff | dbcd85266a12a310aee05bc845ffbaac2faa0cbf | refs/heads/master | 2022-11-29T10:58:47.112783 | 2020-08-01T05:58:08 | 2020-08-01T05:58:08 | 280,153,603 | 0 | 0 | null | 2020-07-21T04:20:11 | 2020-07-16T12:53:39 | Python | UTF-8 | Python | false | false | 617 | py | #fixed-point iteration:
# f(x)=0 → x=g(x)
# x[i+1]=g(x[i])
#use simple fixed-point iteration to locate the root of f(x)=e**(-x)-x
#starting with an initial guess of x[0]=0
from numpy import *
from pandas import *
i=arange(11)
x=zeros(11)
ea=[' ']
et=zeros(11)
et_et=[' ']
true_value=0.56714329
for n in i:
if... | [
"noreply@github.com"
] | noreply@github.com |
68f60302cdb0d1b7770b1cf62026a26cf05f802c | 4b8d0d414f63ab574250569a65c8827b04dd4536 | /src/core/adding.py | 742d95a4f102f06a28c127b122a086461ffea9be | [] | no_license | Bilaalbash/Brew-App | 93d45ff21d11361801d14a555975f48451b6e54b | dff539dd04fb2d55495b5d0eeb29d81e9887c10d | refs/heads/master | 2022-12-28T16:28:53.304347 | 2020-10-15T11:06:11 | 2020-10-15T11:06:11 | 298,540,883 | 0 | 0 | null | 2020-10-15T12:32:08 | 2020-09-25T10:26:32 | Python | UTF-8 | Python | false | false | 1,884 | py | from src.core.class_ import Test_drink, Test_person
from src.core.functions import number_selection
from src.core.printing import table
def add_name(list_, object_list):
firstname_input = input(f"First Name: ")
surname_input = input(f"Surname: ")
age_input = int(input(f"Age: "))
if firstname_input == ... | [
"bilaalbashir@Bilaals-MacBook-Pro.local"
] | bilaalbashir@Bilaals-MacBook-Pro.local |
476780ccd527b04fd47d9c54b6442042f5ce3c3b | c7f7477fc9b1c2cc0f29135ddacf6ca4a2263132 | /ohr/config/settings/common.py | 04a658ea2127236ed482b2fed50759502f43f3b2 | [
"BSD-3-Clause"
] | permissive | gipi/OHR | 2a6270f3adfdf9f174e1a74b21d2a2c6002df062 | 14a8cf143c74aa71af3331e6945bbe839d6fbbd8 | refs/heads/master | 2020-12-24T06:14:05.041866 | 2016-07-26T14:13:45 | 2016-07-26T14:13:45 | 42,853,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,806 | py | # -*- coding: utf-8 -*-
"""
Django settings for Open Hardware Repository project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
from __future__ import absolute_im... | [
"gianluca.pacchiella@ktln2.org"
] | gianluca.pacchiella@ktln2.org |
c0ab4a620ffc11689ca8531ce9d495eb77be8358 | 8f13153d423f2b9239f68a37d1040cef7cf0ee63 | /example3/main.py | f157cf09aa72f02d51ff43d29cdc841a1d693395 | [] | no_license | pmgbergen/arXiv_1810_12761 | fc70b9d310f6a47114313fc7903736a197975463 | 896a1158d3d15b7d32681f73077333c5f9fd1647 | refs/heads/master | 2020-07-04T13:47:47.701552 | 2020-03-29T13:48:23 | 2020-03-29T18:55:57 | 202,303,158 | 0 | 1 | null | 2020-03-29T18:55:59 | 2019-08-14T07:59:56 | Python | UTF-8 | Python | false | false | 8,234 | py | import numpy as np
import os
import scipy.sparse as sps
import porepy as pp
from data import Data
from examples.papers.multiscale.multiscale import Multiscale
from examples.papers.multiscale.domain_decomposition import DomainDecomposition
# ----------------------------------------------------------------------------... | [
"Eirik.Keilegavlen@uib.no"
] | Eirik.Keilegavlen@uib.no |
464aca6bdb71bea101e69f9172bcaeea0fdf5dee | a485f01fd697721356d4405dfef569c50499d652 | /SipMask-mmdetection/configs/sipmask/sipmask++_r101_caffe_fpn_ssd_6x.py | dabccfd91bdc17e15ea79c812b84436a3eeb3192 | [
"MIT",
"Apache-2.0"
] | permissive | Borda/SipMask | 653333c1c7a7b5e9d0779c28f1b86d17b623aa5f | bc63fa93f9291d7b664c065f41d937a65d3c72fd | refs/heads/master | 2023-05-25T11:11:44.452534 | 2021-03-26T02:47:49 | 2021-03-26T02:47:49 | 299,910,001 | 1 | 0 | MIT | 2020-09-30T12:22:24 | 2020-09-30T12:22:23 | null | UTF-8 | Python | false | false | 4,553 | py | # model settings
model = dict(
type='SipMask',
pretrained='open-mmlab://resnet101_caffe',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=False),
style='caffe',
... | [
"connor@tju.edu.cn"
] | connor@tju.edu.cn |
fee69e6f8a1547c4cd64e1d522c78ab5fdc7c2d4 | abe9657ac4260face59f20acec0d61be932e090e | /Configuration/TotemCommon/python/LoggerMax_cfi.py | 3cabee4cfad1b6f5df77b44c0a580a14b383b943 | [] | no_license | CTPPS/ctpps-offline | 82b3fd745c958dae5fbb99757713c78b8b865545 | 47cf59d75acf27d5098988fe480aac174e002f7a | refs/heads/develop | 2021-01-21T04:35:33.421339 | 2016-07-04T13:04:50 | 2016-07-04T13:04:50 | 53,874,184 | 2 | 9 | null | 2016-07-11T14:25:11 | 2016-03-14T16:48:53 | C++ | UTF-8 | Python | false | false | 1,065 | py | import FWCore.ParameterSet.Config as cms
MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('warnings',
'errors',
'infos',
'debugs'),
categories = cms.untracked.vstring('ForwardSim',
'TotemRP'),
debugModules = cms.untracked.vstring('*'),
... | [
"sfonseca@Sandro-Fonseca-de-Souza-macbook-pro-2.local"
] | sfonseca@Sandro-Fonseca-de-Souza-macbook-pro-2.local |
d8e6b3c458eadfb083e064a0e5c72a5c4c6ec600 | 1f5efe2ca436816a2705c434e4bd42dfe8712030 | /tests/test_protlibtcpserver.py | b7da3f0b8bc0f1c50bca2f3817ea7c80531ca74d | [
"Apache-2.0"
] | permissive | idanshimon/protlibtcpserver | 143d7a5903ae6064a0871a64f83ceef16bf91b15 | 0b9b9f3daed971c53779e9beb7166e33fc666045 | refs/heads/master | 2021-01-10T10:16:13.891867 | 2017-01-01T13:10:29 | 2017-01-01T13:10:29 | 43,354,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | __author__ = 'idans'
# class PyTest(TestCommand):
# def finalize_options(self):
# TestCommand.finalize_options(self)
# self.test_args = []
# self.test_suite = True
#
# def run_tests(self):
# import pytest
# errcode = pytest.main(self.test_args)
# sys.exit(errcode... | [
"idans@oggii.com"
] | idans@oggii.com |
f1089e8283bf6ef3416226ce279c6d214d5d825b | 5ff12b8402f45a945ef1d33235ecb9c85fb20fe1 | /assignment2/cs231n/classifiers/fc_net.py | 86b2053377b423a96411375ec289b26feb92ac93 | [
"MIT"
] | permissive | strategist922/cs231n | 6cc5c82d6df210828f1a3004c964941ae2775fd1 | 592aa76417341728759900b580141df333a5b46c | refs/heads/master | 2020-04-01T09:17:02.570479 | 2018-08-08T05:32:16 | 2018-08-08T05:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,156 | py | from builtins import range
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dim... | [
"sherlockliao01@gmail.com"
] | sherlockliao01@gmail.com |
6e7149e247c8f81d48d3ce398806f0f7cc164ab0 | d874eccec9ab8be35ee8eb583e4f24342c7d8cf0 | /week4/subsets.py | 551210ae34373497087c7ae21745d85fdae8580b | [] | no_license | tensae12/wallbreakersProblems | 7cb827028b58f713e24e35f7accff70856280986 | e5d26b21e59ab7e49d1cb7012d70a347a335a46d | refs/heads/master | 2020-06-16T05:41:35.063717 | 2019-08-08T06:16:32 | 2019-08-08T06:16:32 | 195,493,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | class Solution:
def subsets(self, nums: List[int]) -> List[List[int]]:
output = [[]]
for num in nums:
l = len(output)
for i in range(l):
output.append(output[i] + [num])
return output | [
"tensaewerkeye224@gmail.com"
] | tensaewerkeye224@gmail.com |
2db6977dca535d5afe938e793c847f237c81c582 | f73023f887763e8568a8c1a6c9d66c88abc92d04 | /users_auth/admin.py | 55615d24328ff42d01ad0324b07ffad7e893e9f5 | [] | no_license | prajjyadav/Complaint-Portal | fe8a28b2e8975c22bf13af7366a1213043b774eb | 2d18d614119a96201f77d09a018a99a3f8e6cd1e | refs/heads/master | 2021-06-28T14:35:03.408986 | 2019-01-17T11:13:22 | 2019-01-17T11:13:22 | 165,886,336 | 4 | 2 | null | 2020-10-02T04:15:21 | 2019-01-15T16:36:34 | Python | UTF-8 | Python | false | false | 4,502 | py | from .models import CustomUser
from django import forms
from django.contrib import admin
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.contrib.auth.password_validation import valid... | [
"prajjyadav0904@gmail.com"
] | prajjyadav0904@gmail.com |
ca327e457ec7f42a6c57e110658e84f20d9eec67 | f8412101e0093f37cc6f9118385d2c5f2abde01c | /script.py | 953e2f1bf0a1ffc85b3ba4fba6eb2bde2722a9d2 | [] | no_license | Adityabaxi/texttranslator | 5131a4339a453e01eb5c9258ca668c0f6d5574dc | 0561a6cb164eb0a29a1f10e061c2f09ac05f5245 | refs/heads/master | 2022-10-08T03:50:38.850636 | 2020-06-06T19:08:23 | 2020-06-06T19:08:23 | 270,054,891 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from translate import Translator
translator= Translator(to_lang="ja")
try:
with open('./text.txt', mode='r')as my_file:
text= my_file.read()
translation = translator.translate(text)
with open('./text-ja.txt',mode='w')as my_file2:
my_file2.write(translation)
except FileNotFoundError as e:
pri... | [
"noreply@github.com"
] | noreply@github.com |
8d09c7578019ad5f22cf3b2ab7e4e74eaa4c0bbe | f3ccd2cf5c1819cf6b2b296a134a59a58deb87a6 | /03img_classify/classify.py | a1bbe880c582e1d737c4fb08b515be56ded6347b | [] | no_license | leebinjun/gaze_tracking_ARglasses | 195120a17a0e4858f4cdfc9516e781567f091fb0 | 63841b565f6fbb16f788268fb1ef991df0142b6b | refs/heads/master | 2020-07-27T01:50:35.800129 | 2019-12-18T03:05:15 | 2019-12-18T03:05:15 | 208,825,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | import tensorflow as tf
import numpy as np
import cv2
uid_to_human = {}
for line in tf.gfile.GFile('imagenet_synset_to_human_label_map.txt').readlines():
items = line.strip().split('\t')
uid_to_human[items[0]] = items[1]
node_id_to_uid = {}
for line in tf.gfile.GFile('imagenet_2012_challenge_label_map_proto.pbtxt')... | [
"296735774@qq.com"
] | 296735774@qq.com |
5eac6ecc64dc1dde16206ba27739d57f6bb1c7e9 | 21176da2f3ff9e42108ebef1fb61d698cc27cae5 | /Temeller/matematik.py | 257586fda6029d76001620869c572ad5bdeec000 | [] | no_license | polatemre/PythonKamp | 08de5b5d2a2d2c81bf019cad69de9539d06b2881 | ccd1e55f927470b75e8ff958d7babf8a7cdd38b3 | refs/heads/main | 2023-05-30T23:42:33.046534 | 2021-07-11T09:52:35 | 2021-07-11T09:52:35 | 384,364,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | class Matematik:
def __init__(self, sayi1, sayi2): # constructor
self.s1 = sayi1
self.s2 = sayi2
def topla(self):
return self.s1 + self.s2
def cikar(self):
return self.s1 - self.s2
def bol(self):
return self.s1 / self.s2
def carp(self):
return sel... | [
"41800395+polatemre@users.noreply.github.com"
] | 41800395+polatemre@users.noreply.github.com |
dfce2e36e00f6072dad0dd1363e621c2a3ac5e08 | 2635c2e2c31a7badb8b188306c3cdfc61dc1ecc8 | /versiones_anteriores_historico/ihm_ant_historico_precios/models/purchase_order_lines.py | 58305e8b480fabd0953f97d4aaea24313293aa7c | [] | no_license | rosalesdc/ihm_testing | ec4ebf26c3c7602267a04fd183de4064f9d16bc1 | d91ebeac5504c9f29a21b2b0f05bc16ed240ff48 | refs/heads/master | 2020-04-17T01:21:03.214595 | 2019-10-29T23:05:52 | 2019-10-29T23:05:52 | 166,088,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | class purchaseOrderLines(models.Model):
_inherit = "purchase.order.lines"
def genera_reporte | [
"rosales9146@gmail.com"
] | rosales9146@gmail.com |
19ff89562761114d01b45841b665a251bde67aa4 | d8c23284a8ddc62d69297e6cb0531ce698a8afd9 | /build/mavros_msgs/catkin_generated/pkg.develspace.context.pc.py | ba4632425603bd7b3641653b2533932a603eee8a | [] | no_license | rohit1607/Autonomous_Navigation | b772390c0dad35926ecbf4ba71694cb92a8f1341 | fb18c836ddc143bfc17fd2915b1e88a013c36688 | refs/heads/master | 2020-08-22T18:46:53.135725 | 2019-10-21T02:07:18 | 2019-10-21T02:07:18 | 216,457,773 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/rohit/catkin_ws/devel/.private/mavros_msgs/include;/home/rohit/catkin_ws/src/mavros/mavros_msgs/include".split(';') if "/home/rohit/catkin_ws/devel/.private/mavros_msgs/include;/home/rohit/catkin... | [
"rohitchowdhury@iisc.ac.in"
] | rohitchowdhury@iisc.ac.in |
36604dbea917a2f02ac4051b7c26e46fecb300b0 | 13805509fb2ead8429541308b90066adc0b48f1c | /wiki/urls.py | 07e5255e4e8c1dd13a8586f8a8456230b34cc63f | [] | no_license | lisa-health/lisa-health-backend | 40e7bd04e86737782405e8ac977c38b87776b42e | b2030181ac2a6f8882fe688b3735c76d91f5d896 | refs/heads/master | 2020-12-23T12:16:58.028093 | 2020-02-04T13:33:38 | 2020-02-04T13:33:38 | 237,146,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from django.urls import path
from wiki.views import *
urlpatterns = [
path('disease/', disease_info, name='disease'),
path('search/', search_disease, name='search')
]
| [
"somainer@gmail.com"
] | somainer@gmail.com |
4cbbc8616a600058c184f711b2e71766118ee132 | 2c8c7617d98f0349e560291960ecc5fb831bc0af | /programmers/level1/min/최대공약수와최소공배수.py | 67ebc70fa0b925142de49537b9ce963b435f15d2 | [] | no_license | BU-PS/coding_test | e53d9680ae80f32bfb5238795e868d3b37e5dd71 | c4fbd5034c8f507a858ca021cc7f6cfcf43f402a | refs/heads/master | 2023-03-15T05:26:36.566092 | 2021-03-25T12:36:40 | 2021-03-25T12:36:40 | 316,865,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | # 최대 공약수 (GCD) : 두 개 이상의 자연수의 공통인 약수 중 가장 큰 수
# 1. 최대 공약수를 구하는 법
# - 두수의 약수들을 구한다
# - 두수의 약수들을 집합(set)에 넣는다
# - 교집합을 통해 공약수를 찾는다
# - 교집합을 중 가장 큰 수를 찾는다
# 최소 공배수 (LCM) : 두 수의 공배수가 최소인
# 1. 최소 공배수를 구하는 법
# - N * M = L * C 의 식을 통해 값을 구한
def solution(n: int, m: int):
gcd_value = gcd(n=n, m=m)
lcm_value = lcm(n=n... | [
"kjhm0607@gmail.com"
] | kjhm0607@gmail.com |
3bec992595116b04adc9b11ce51ab2e1693e2a4b | 38c8cca903432a88a6141dab4b9ac24740ae9e39 | /src/crike_django/manage.py | 8937161661f10d2505a8b82f54ecd20f227091b2 | [
"Apache-2.0"
] | permissive | mxwww/crike | 3d37882e75a4f7170d183d2050d6a643a72f381b | 141bd1c9b37882f0369dd8231cdf3576eeb7a5e1 | refs/heads/master | 2023-07-19T08:09:25.806263 | 2016-06-11T05:30:46 | 2016-06-11T05:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "crike_django.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"geekan@foxmail.com"
] | geekan@foxmail.com |
7317d280924190685c4886b7eafd4a336adf418e | 69210707f3d8c0cca93c62e5760f3b004e8b394a | /01.How_Google_Does_Machine_Learning/01.Lab_Rent_A_VM_To_Process_Earthquake_Data/transform.py | 95d2c5b9eeb7830288fdd7305dd7df08c3108acd | [] | no_license | mujahid7292/ML_With_TensorFlow_On_GCP | b22285463ffabbe201f3c494ddb6b0040827f1ac | 713a588cf8ee05dcb06ace6659953afd1079fe87 | refs/heads/master | 2023-04-08T09:28:06.103151 | 2020-11-19T06:17:13 | 2020-11-19T06:17:13 | 244,292,498 | 1 | 0 | null | 2023-03-25T00:11:58 | 2020-03-02T05:59:59 | Jupyter Notebook | UTF-8 | Python | false | false | 3,078 | py | #!/usr/bin/env python3
# Copyright 2016 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 or agreed ... | [
"mujahid7292@gmail.com"
] | mujahid7292@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.