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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90bc1bde27330e94fc612e4da753803e61b9d6f6 | eb5c9aa97ecaded5f68167fc0220539ba3e4b1b7 | /Q28_Implement strStr()_ver2.py | d005f2e4cecbac082c5effc5dc5c19dfeb793a03 | [] | no_license | Annie-Chu/practice-weekly | 27e7b518a08f7a69f07a1c1592050cbad014bddc | 07c7dbbfa1465eae650d3b58e99bbcc2ef211226 | refs/heads/master | 2022-10-20T00:09:35.275016 | 2020-06-11T06:58:08 | 2020-06-11T06:58:08 | 263,295,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | def strStr(haystack: str, needle: str) -> int:
if needle == '':
return 0
elif needle not in haystack:
print(-1)
else:
string = haystack.split(needle)
print(len(string[0]))
if __name__ == '__main__':
strStr("hello", "ll") | [
"anniechu65@gmail.com"
] | anniechu65@gmail.com |
a69567cb312181e925b480f018bcfda89912d788 | 28642c0afd5a78640b713c4562d950ea40e0147a | /scripts/common.py | 1e929bbe059b4d552b5c6f55549fcaef6dfad70b | [
"Apache-2.0"
] | permissive | Kevin-Mok/kogito-images | e4764327f36983fd3f545089d83b35549b304121 | a814fe35e4a8c7bd32849bef934c7f6f57faf1b3 | refs/heads/master | 2023-06-12T09:24:35.854019 | 2021-07-05T12:59:09 | 2021-07-05T12:59:09 | 269,133,713 | 0 | 1 | Apache-2.0 | 2020-06-03T16:04:24 | 2020-06-03T16:04:23 | null | UTF-8 | Python | false | false | 13,810 | py | #!/usr/bin/python3
# This script defines some common function that are used by manage-kogito-version.py and push-staging.py script
import os
import re
from ruamel.yaml import YAML
# All kogito-image modules that have the kogito version.
MODULES = {"kogito-data-index-common", "kogito-data-index-mongodb",
... | [
"noreply@github.com"
] | Kevin-Mok.noreply@github.com |
5505cd4011c837c9e22cf9e9d81addb8442e050d | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /apps/oozie/src/oozie/migrations/0005_initial.py | 2688a433ed8dcc89995fc5f9b23a9defb2088449 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 1,402 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-06 18:55
from __future__ import unicode_literals
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
depen... | [
"romain.rigaux@gmail.com"
] | romain.rigaux@gmail.com |
609e132e00c44ec7d44b98d5322c72c6ba7dd196 | db5952a4ecb74177d8acdcc1440af65a540ba07e | /abbrev.py | 6df1f73e9d1fc70481055894247005d7c95acf5a | [] | no_license | dividedmind/moviesorter | a39aaf03f5ac0984d4a57cce2fcf87b320a59bdf | f2d57d184d63ccc35bd0d1b10dde7de803da5aae | refs/heads/master | 2021-01-23T15:42:35.272179 | 2011-08-22T11:55:10 | 2011-08-22T11:55:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # -*- coding: utf-8 -*-
from google.appengine.ext import webapp
register = webapp.template.create_template_register()
@register.filter
def abbrev(name):
return ''.join([word[0] for word in name.split()])
| [
"divided.mind@gmail.com"
] | divided.mind@gmail.com |
06d58311b1ea626d1a63e334daea32050b9d3781 | 0c06237432abf0ebbcde87bb1c05d290e1400da6 | /app/graph/views.py | 6a26b0596deaa5ed12a913553ee8dc693b17d488 | [] | no_license | stevefusaro/timelight | a03e7bda9d3e4977998a460a2fc277d9f1d00648 | 67783e373dcd549b856b03db37b09fd8d297ad67 | refs/heads/master | 2021-01-11T02:58:56.550641 | 2017-07-07T20:12:37 | 2017-07-07T20:12:37 | 70,871,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | from rest_framework import authentication
from rest_framework.viewsets import ViewSet
from rest_framework.decorators import list_route
from rest_framework.response import Response
from neo4j.v1 import GraphDatabase, basic_auth
driver = GraphDatabase.driver("bolt://localhost:7687", auth=basic_auth("neo4j", "ezpass"), ... | [
"sfusaro1@gmail.com"
] | sfusaro1@gmail.com |
0acfd5a67da2070d576a8fb6eb33f195f4b5c0d5 | 1debf486be97ea914c49f69208ab56b4a4d3c013 | /lab.py | 894ef26c5241bbbd05400b303fb2abde0df3dc23 | [] | no_license | XingyuHe/Monopoly | ee483387a723dc8ce2511d75ba86021db6a5acde | 00e9d7e963af29501daac988b966bc03ab276353 | refs/heads/master | 2021-08-16T16:35:46.013197 | 2017-11-20T04:22:24 | 2017-11-20T04:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import json
from cs110graphics import *
monopoly_data = json.load(open("monopoly.json"))
print (monopoly_data)
options = monopoly_data['CHANCE']['options']
print(options)
print(len(options))
print(options[str(2)])
# def program(win):
# win.set_height(1600)
# win.set_width(1600)
# rect1 = Rectangle(win)
# ... | [
"32248504+PeterWiIIiam@users.noreply.github.com"
] | 32248504+PeterWiIIiam@users.noreply.github.com |
3fce7e6e7ffee44c337a0c83125d2ce5f09a5280 | 49e5c03d59b9b7671f6be1780444cccd6ef14e7e | /maple/utils.py | a2c13c7246640f7c79516edfb77a8839724b6d00 | [] | no_license | isled/backups | e2dd176adaed63d3c41e9a4e9377a012d192976f | 94568f9582dfea2aff9898ef834c8fb583deec87 | refs/heads/master | 2021-07-10T20:15:56.087030 | 2017-10-12T11:02:58 | 2017-10-12T11:02:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import typing
class MapleError(Exception):
"""
maple 基础错误类。
所有错误类均基于此类。
"""
pass
def ensure_bytes(value: typing.Any) -> bytes:
"""
确保传入变量是字节对象
:param value: 任意类型
:return: bytes
"""
if isinstance(value, bytes):
return value
if isinstance(value, bytearray):
... | [
"ymkwfn1688@qq.com"
] | ymkwfn1688@qq.com |
bf4537cf065e4166235f72754c003c22dff1f73a | 7740035c7af9b8dcf1a82f0c1b46a7c6dd18f8f4 | /blog_project/blogs/migrations/0001_initial.py | 39215dc6daab96b05125b0c07573cf9e2c715387 | [] | no_license | Arijit1303/Django-Projects | 2df930d84ace7637eeaa4d5e3bba161fbce9a4f4 | 2125894e126b5f7089abf7d6d020fb1a82940463 | refs/heads/master | 2021-05-01T17:02:26.912653 | 2018-02-10T07:31:01 | 2018-02-10T07:31:01 | 120,993,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # Generated by Django 2.0.1 on 2018-01-15 10:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"noreply@github.com"
] | Arijit1303.noreply@github.com |
c2a62a2b0eee72815aacb4a39fe389383b1c3109 | d7980f818fa101ca7c1e86df3b5dd39c75a58daf | /swmif/urls.py | c301bff1c785b94101ce3555c727b91927290941 | [] | no_license | HarshSonawane/SmartIF | dbe39e35b3d6ac1e45d1255e1080c9a1dd80f929 | ba91f421e28dad7372c7db503e109cba8c193518 | refs/heads/master | 2022-12-19T01:24:35.082665 | 2020-09-20T06:11:18 | 2020-09-20T06:11:18 | 227,466,838 | 0 | 1 | null | 2020-10-01T06:00:51 | 2019-12-11T21:49:23 | JavaScript | UTF-8 | Python | false | false | 1,257 | py | """swmif URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"sonawaneharshwardhan@gmail.com"
] | sonawaneharshwardhan@gmail.com |
0099c7138f3d1228d6bced756f44e3f4ed25ed66 | 975e63eb3d9fd2617699a8dd447ed281a5225f27 | /simulation_utils.py | 0f2b84cac2fc73955902888e3297994687a5d916 | [
"MIT"
] | permissive | meirelon/baseball-season-simulation | 06813be8021105e388b28412f7a3313a3568500e | 835283029844023ee528b4a52b771f10a4b622b5 | refs/heads/master | 2022-07-22T03:13:22.404375 | 2022-07-19T05:15:47 | 2022-07-19T05:15:47 | 175,287,540 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | SCHEDULE_COLUMNS = [
"date",
"number_of_games",
"day_of_week",
"visiting_team",
"away_league",
"away_game_number",
"home_team",
"home_league",
"home_game_number",
"game_time",
]
# DISTRIBUTIONS = ["beta", "normal", "lognormal", "gamma", "weibull"]
DISTRIBUTIONS = ["normal", "lo... | [
"nestelm@gmail.com"
] | nestelm@gmail.com |
b2f8bcc16221469eed37b0ab56a7404cf8dc0a34 | 3d709e8a007a8c46c8ece0b63407551a06a47bf1 | /app/accounts/__init__.py | 9bbf50c3aafc7efb11440d6c8e8559e6b65cab46 | [] | no_license | lassilaiho/recipe-book | 4f74422790ed9bb7d810d1fdff1ebf2c0610a6c9 | 379dd7b52ef15272dfdba24e668f4ddc7fc896b3 | refs/heads/master | 2023-06-21T22:37:29.983415 | 2021-07-24T13:24:24 | 2021-07-24T13:24:24 | 233,632,351 | 0 | 0 | null | 2021-03-20T02:44:35 | 2020-01-13T15:49:03 | HTML | UTF-8 | Python | false | false | 172 | py | from app.main import login_manager
from app.accounts.models import Account
@login_manager.user_loader
def load_user(account_id):
return Account.query.get(account_id)
| [
"lassi.laiho0@gmail.com"
] | lassi.laiho0@gmail.com |
afd0e272f53f664ee3b9139fa436e06067281f3b | fe8da1d3efa5bcc5b9833bd1358275fb517f1060 | /facenet-pytorch/models/tensorflow2pytorch.py | 359e6d245ca30b8a48d0f5f7db120f22cd4d1dd8 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | permissive | juliagong/sketch2face | d57a95a4eea9bcdafff88f801cee7b0bb740049e | 40b7f1ee129dc0ff14c4d3a4e3479a7ee5439296 | refs/heads/master | 2023-05-27T08:22:12.110124 | 2020-06-30T02:51:15 | 2020-06-30T02:51:15 | 192,847,872 | 13 | 2 | NOASSERTION | 2023-05-22T22:16:07 | 2019-06-20T04:22:22 | Jupyter Notebook | UTF-8 | Python | false | false | 11,619 | py | from dependencies.facenet.src import facenet
from dependencies.facenet.src.models import inception_resnet_v1 as tf_mdl
import tensorflow as tf
import torch
import json
import os
from models.inception_resnet_v1 import InceptionResNetV1
def import_tf_params(tf_mdl_dir, sess):
"""Import tensorflow model from save d... | [
"juliaxgong@gmail.com"
] | juliaxgong@gmail.com |
e400e3f7cfee1b0808a278fe8e94120ceb12437e | 692b907d07eee8ce3ee32a1fda74b6d92fd6c548 | /tests/models/validators/v1_3_0/jsd_d9bdb9034df99dba.py | 4f3ce36a7f1b34bd26fe19e07e1dc62094323ae1 | [
"MIT"
] | permissive | AltusConsulting/dnacentercli | 04c9c7d00b25753a26c643994388dd4e23bf4c54 | 26ea46fdbd40fc30649ea1d8803158655aa545aa | refs/heads/master | 2022-12-16T04:50:30.076420 | 2020-07-17T22:12:39 | 2020-07-17T22:12:39 | 212,206,213 | 0 | 0 | MIT | 2022-12-08T06:39:49 | 2019-10-01T21:50:42 | Python | UTF-8 | Python | false | false | 2,451 | py | # -*- coding: utf-8 -*-
"""DNA Center Get Site Count data model.
Copyright (c) 2019 Cisco and/or its affiliates.
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 wit... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
66e3f4caa9591de9d0af524ee3a95b967482a74a | 0a9e171dbce02947a88290ee16e0fb90e796428a | /Linear_Regression/multi_linreg.py | e9f2773099fcceb018b319c0c3abbda27822ce9d | [] | no_license | sanjmohan/MLExercises | e3416990215a0c101f44093ddaf42816ea8d742c | a71698c794a858496d250ea5a4f9dc6ff55cf171 | refs/heads/master | 2021-01-12T05:32:42.817911 | 2020-04-21T22:09:32 | 2020-04-21T22:09:32 | 77,121,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | # Multiple Linear Regression on Housing Price given 13 attributes
# First time using theano!
import numpy as np
import theano
from theano import tensor as T
from theano import function
import matplotlib.pyplot as plt
def load_data():
# Features separated by space, examples separated by line breaks
# Load fir... | [
"sam2mohan@gmail.com"
] | sam2mohan@gmail.com |
c61b3a1fac58f75d6fca03e86ed4fb7ac6661149 | 63b6c1ff3827055d05a92aaf9c6cfb5c5617bccc | /compositionDuMahal/admin.py | bc70c0c1f2c6aeef1f0c5e2eee5b48c98b9a5bda | [] | no_license | Slam0810/django | 990deb8f615036ead078304c3298f246a8e5002e | d81923534c1eb0e330de91433fed72a42b922ee6 | refs/heads/master | 2023-03-27T05:32:24.776629 | 2021-03-23T08:59:34 | 2021-03-23T08:59:34 | 345,477,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | from django.contrib import admin
from .models import Produit, Contact, Reservation, Presentation
# Register your models here.
#admin.site.register(Produit)
admin.site.register(Contact)
class ReservationAdmin(admin.ModelAdmin):
list_display = ('created_at', 'contacted')
readonly_fields = ('created_at', 'contac... | [
"birama.tour@gmail.com"
] | birama.tour@gmail.com |
0628946d4e9a280e8355cd0413d75bd4a43845dc | 84e5297e214dd94105df7bbe627a506773d70224 | /Assignment2/dnn_tf.py | 478f858ded57e45f0034d15cb734f6130922bf28 | [] | no_license | toannguyen1904/VietAI-ML-Foundation-5 | b02b1463d0b820088fa7400112d41d4291357172 | 5adcd49c88e4c886b15973254d56c07c15a8660d | refs/heads/master | 2022-05-16T10:27:27.570181 | 2020-03-16T05:37:58 | 2020-03-16T05:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,419 | py | """dnn_tf_sol.py
Solution of deep neural network implementation using tensorflow
Author: Kien Huynh
"""
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from util import *
from dnn_np import test
import pdb
def bat_classification():
# Load data from file
# Make sure... | [
"47108512+ChrisZangNam@users.noreply.github.com"
] | 47108512+ChrisZangNam@users.noreply.github.com |
beaa4c42310beb20c73ad1cf96be7aa287176ab4 | b1d90fa399c2f4cb1f5eba0846d60d72044fc4b9 | /wASmaster/configure_was/configure_servers_and_cluster.py | c1bbfa285f3c144a3c45f9b43aa241d97a38b4e4 | [] | no_license | igmatovina/webSphere-automatization | a497b0ec70b1bee833082c58410ed4409e1ae84b | c4ec7fdba9d57ce176b7186dfd6697c95ebd6214 | refs/heads/main | 2023-01-02T00:34:02.523424 | 2020-10-19T11:10:29 | 2020-10-19T11:10:29 | 305,355,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# exit()
from java.lang import System as jvm
import sys
sys.modules['AdminConfig'] = AdminConfig
sys.modules['AdminControl'] = AdminControl
sys.modules['AdminApp'] = AdminApp
sys.modules['AdminTask'] = AdminTask
sys.modules['Help'] = Help
import myfunctions as fl
import xml.e... | [
"noreply@github.com"
] | igmatovina.noreply@github.com |
a5b8f6d17d44bb21c75ef0b3d113fa8cb8f0dfdc | 90be82216cd48b95e8ebfd0054a048ea91707872 | /organisations/migrations/0002_auto_20200828_1740.py | c9a44789b14b923443120b8e9961778cd8f797de | [
"MIT"
] | permissive | rubberducklive/tcm_api | 9c774e50e1e04f4c4c5735871ef38d35b013a5e0 | 53d2b533e3f9251cce49bd4c1b8e9e65a03eaf04 | refs/heads/main | 2022-12-06T17:30:29.807552 | 2020-08-28T17:49:19 | 2020-08-28T17:49:19 | 290,266,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # Generated by Django 3.0.9 on 2020-08-28 17:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organisations', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='organisation',
name='name',
... | [
"ulhas.sm@gmail.com"
] | ulhas.sm@gmail.com |
038769006e9dcbff4aa1248ab9f5b7c86a38959a | 5cd04ee165edb98c80fdfab4ca2ceaf3352f3a60 | /cflearn/models/ddr/loss.py | 4ae8915ad1fab6995fceed631a5eb62fe2106b0f | [
"MIT"
] | permissive | adbmd/carefree-learn | f99e620ead71e15d7e91c0a74bb564e05afa8ba5 | 10970de9e9b96673f56104bf410bbd4927e86334 | refs/heads/master | 2022-12-21T07:48:28.780174 | 2020-08-01T02:37:23 | 2020-08-01T02:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,539 | py | import torch
import logging
import torch.nn as nn
from typing import *
from cftool.ml import Anneal
from cftool.misc import LoggingMixin
from ...misc.toolkit import tensor_dict_type
from ...modules.auxiliary import MTL
class DDRLoss(nn.Module, LoggingMixin):
def __init__(self,
config: Dict[str... | [
"syameimaru_kurumi@pku.edu.cn"
] | syameimaru_kurumi@pku.edu.cn |
de48c66359d85fb9300d2d9bf9851a4d1a883f0d | 034adbabe1f0243452e19a8313b23cc6950b4ed1 | /check_version.py | faff1a4f08a8bd052d0bd50e437c484f88a96ca1 | [] | no_license | MrLiuYS/JSONFormat4Flutter | e2204b136b7165400dffd8605277f87d80194d7a | aeb265abba99ddd74f65c354f436b2d0ab83f1be | refs/heads/master | 2020-09-26T15:03:51.973447 | 2019-12-11T02:19:09 | 2019-12-11T02:19:09 | 226,279,167 | 0 | 0 | null | 2019-12-06T08:17:14 | 2019-12-06T08:17:13 | null | UTF-8 | Python | false | false | 2,812 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Filename : check_version.py
# @Date : 18-8-20 上午1:52
# @Author : DebuggerX
import configparser
import os
import ssl
import sys
from urllib import request
from json import loads
from PyQt5 import QtGui, QtCore
from PyQt5.QtCore import QThread, pyqtSignal
from... | [
"dx8917312@163.com"
] | dx8917312@163.com |
6612f576f17ed5f3dd743c78d2b75c72608b9c56 | 5722f0056c3066fcfe71eabb66d1830c714626c3 | /Week 3/ex29.py | cdf29f241855439e36a5a90a9ceedc58a5a2c418 | [] | no_license | Leorodr501/idh3034leo | e14928d7126a9a946c61d2083b3bb43de833afbe | 38596ca48bf945c5a8891fb9aa258d6b40edd9ca | refs/heads/master | 2020-04-02T05:28:16.132218 | 2018-12-09T01:25:23 | 2018-12-09T01:25:23 | 154,079,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | people = 20
cats = 30
dogs = 15
if people < cats:
print("Too many cats! The world is doomed!")
if people > cats:
print("Not many cats! The world is saved!")
if people < dogs:
print("The world is drooled on!")
if people > dogs:
print("The world is dry!")
dogs += 5
if people >= dogs:
print("... | [
"root@instance-2.us-east4-c.c.mad-libs-221518.internal"
] | root@instance-2.us-east4-c.c.mad-libs-221518.internal |
96da18240353d57e20908d2a0b7b3f23721bc1cd | 89148623fc5a85684da41c8a8d7c04543f21e93e | /designer/formWindow.py | 0f7729ba9b5bdeb96c35f445ab9262093931bf11 | [] | no_license | lllllllai27/PyQt5_GUI | e2d9151fbac21b066e31d1f509740123411ec13c | 0f858bbf058f975fb5db925c277fad73ecbef54f | refs/heads/master | 2020-08-02T19:53:59.705009 | 2019-09-29T14:03:19 | 2019-09-29T14:03:19 | 211,487,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'formWindow.ui'
#
# Created by: PyQt5 UI code generator 5.13.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Mai... | [
"31854329+lllllllai27@users.noreply.github.com"
] | 31854329+lllllllai27@users.noreply.github.com |
dd3c8aa9ff1f411e97b2efef7666a067449b8770 | cee089aebd43dabcdc073fc4c1f3ec38bccd2a91 | /Decison-Tree/Naive Decision Tree/decisionTree.py | 9882f7f79be1f2bffea793117203b790748e8306 | [] | no_license | ramarvab/DataMining_FinalProject | 73f82438c87becfbbf5b5a21734dc6dc2b475873 | 28880b696a154fa0e263d04ac2c07436c118af96 | refs/heads/master | 2020-09-16T04:56:09.843205 | 2016-09-07T19:19:58 | 2016-09-07T19:19:58 | 67,636,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | import numpy
import math
class tree_node(object):
def __init__(self):
self.leaf = 0
self.category = -1
self.feature = 0
self.value = -1
self.right = None
self.left = None
def get_entropy(catlist, categories):
l_cat = len(catlist)
if l_cat == 0:
return 0
catlist = map(int, catlist)
major = 0.0
... | [
"ramarvab@149-161-153-43.dhcp-bl.indiana.edu"
] | ramarvab@149-161-153-43.dhcp-bl.indiana.edu |
c3c372e355b0b1fee36defc54ab53ac4f7d61fc6 | dda2f6f4f823ec3571f0a8474a51a3498166b1f9 | /rolle/migrations/0002_auto_20190920_1650.py | d2c3ede126b44ad962435e1f8736da9c4f8bd889 | [] | no_license | prauscher/thwin | 3761eef2e779491d52c5093ca0ce9841d218e743 | bab06bc5659d3778e81b92995e46b826da9cbd68 | refs/heads/master | 2020-07-30T08:31:45.522366 | 2019-09-22T21:07:08 | 2019-09-22T21:07:08 | 210,156,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | # Generated by Django 2.2.5 on 2019-09-20 16:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rolle', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='freigabe',
... | [
"prauscher@prauscher.de"
] | prauscher@prauscher.de |
5f6a1e686ceb5a0fd3ce59392ce011e48b736289 | e427906785f3076ea7cf5f0bc87ba2edffb926b6 | /Bakhteev2019/projects/Bakhteev2017Hypergrad/code/pyfos/hyperoptimizers/hoag_optimize.py | b606cc4e8b1163da2cca8fdc76fe02847bda54d1 | [] | no_license | rigof80/PhDThesis | d9e03b84b8118f8c9fd677622126bef88ea2eda8 | 0dfc331608059427ab2bc6fe61ac127b5dbd0fe3 | refs/heads/master | 2022-01-09T04:32:09.310722 | 2019-05-01T17:59:45 | 2019-05-01T17:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,817 | py | import sys
sys.path.append('.')
import theano
import theano.tensor as T
import numpy as np
import random
from structures import HyperparameterOptimization
import random
import time
from scipy.optimize import minimize
import gc
def hoag_optimize(trainig_criterion, model_constructor, param_optimizer, trial_num , batch... | [
"bakhteev@phystech.edu"
] | bakhteev@phystech.edu |
2b8904d38acfeffb87691cb317edd7a9494fbc11 | 21f05b45dbb43667007f3063d1a33082e122bec6 | /src/NIMSU_Modules/DataType_Results.py | 1073a7061d10b06d877ccfdcc43e4b35d6fd655b | [] | no_license | DanAyres/NIMSU | 6f328f4b98a5eb34277be347fa1a2bb331bd87f0 | 6fe378c73d25aa58951de75d50841864268d389b | refs/heads/master | 2020-05-02T11:18:06.087070 | 2015-05-27T09:27:17 | 2015-05-27T09:27:17 | 34,388,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | '''
Created on 14 Apr 2015
@author: daiel
'''
class Data():
def __init__(self,val,listt=[],hdf5='none'):
self.val=val
self.list=listt
self.hdf5=hdf5
def __add__(self,other):
pass
def __sub__(self,other):
pass
def __mul__(self,other):
pas... | [
"daiel@daiel-XPS-L421X"
] | daiel@daiel-XPS-L421X |
d510a984109e30d272424766c0f4ceedc20d77e2 | ec5c35ac5163c4e81262a81a6a6c46667c01733d | /server/api.py | dfdfa338713c8c53b8fe3fb180871a407ed32b13 | [] | no_license | kotawiw/bytedance-exercise-2 | 27b32d81aa7e8040c1c8448acbe9c4ff20ff5b26 | 8db190487a6490ec852d8418d93ba62251a5437f | refs/heads/master | 2022-12-24T00:04:53.047395 | 2020-09-23T11:48:13 | 2020-09-23T11:48:13 | 297,948,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | from flask import Blueprint, request, abort, jsonify
from flask import g
from server.auth import login_required
from server.models.users import User
from server.models.events import Event
from server.models.events import EventRegistration
bp = Blueprint("api", __name__, url_prefix="/api")
@bp.route("/events", metho... | [
"you@example.com"
] | you@example.com |
1591371310314083e2b8c2848fe393223b425cc9 | b50d4539a08d18839f7260dd5283eced8a40f932 | /project/urls.py | 29be03a36c2098adf0b01931dddd988f236ccb3f | [] | no_license | walid-brahim/django-class | 6b8739b1c370489182e2662d8f06e5c750ab65e5 | 80ad2264c09adb3fec287806be7b79a109abe9e2 | refs/heads/master | 2022-11-17T05:51:00.875416 | 2020-07-15T11:43:41 | 2020-07-15T11:43:41 | 279,705,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"wbrahim1899@gmail.com"
] | wbrahim1899@gmail.com |
33889b44e80246dbdece176c1b56e7f53f3baae2 | f64a580208cfd7fa332dc1df9cb9e776f9581216 | /jobportal/views.py | df0025f809db53e36768749963ad5a71e1de3618 | [] | no_license | pravsp/job-portal | 66f0bb3051643da6af73a5ea3328cd61ad22254a | 84c2a18a1ce54374b107de18d73f2184565f1658 | refs/heads/master | 2022-12-23T09:09:38.763835 | 2020-10-01T16:45:32 | 2020-10-01T16:45:32 | 299,570,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from jobportal import app
from flask import jsonify
@app.route('/')
def home():
return jsonify({'message': 'Welcome to rusteez!!!'}) | [
"praveen.kumar.sp@gmail.com"
] | praveen.kumar.sp@gmail.com |
8dda7acc6045272a3c4408b6132cc59c2ad575dc | 97b5e5caedf0931b00fdce1df7bbdbad692bdd0b | /pyscf/cc/ec_ccsd_t.py | add7818fc1ad1071e15d9c022971f6ae9c6e6573 | [
"Apache-2.0"
] | permissive | seunghoonlee89/pyscf-ecCC-TCC | c08cd333d7bf9accfb340ad3c1397b5d8a354b26 | 2091566fb83c1474e40bf74f271be2ce4611f60c | refs/heads/main | 2023-08-21T08:22:12.188933 | 2021-10-21T17:54:50 | 2021-10-21T17:54:50 | 326,832,474 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,463 | py | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | [
"slee89@caltech.edu"
] | slee89@caltech.edu |
6e8f312ce8d26da7d371c9bd295ee0598f010704 | 5cc1296f10af0d65691fd01a23221d6d85f4deff | /cotizacion/migrations/0009_auto_20150805_1400.py | f213b7ccb1a13cf363c1195baf3b10f04e54fea3 | [] | no_license | yusnelvy/mtvmcotizacion | e52b58fe8c50d3921d36490084de328c52e4e9ea | 07d2bd5f36350b149c16a0aa514bb610b0cd3e18 | refs/heads/master | 2016-09-05T23:31:15.800940 | 2015-11-07T13:12:30 | 2015-11-07T13:12:30 | 35,440,629 | 0 | 0 | null | 2015-12-18T16:16:23 | 2015-05-11T18:01:47 | JavaScript | UTF-8 | Python | false | false | 1,033 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cotizacion', '0008_auto_20150727_1207'),
]
operations = [
migrations.AlterField(
model_name='tiempo_carga',
... | [
"yusnelvy@gmail.com"
] | yusnelvy@gmail.com |
0f606882ce06c84c1d476970b5e536632bad59e4 | b5aea44506bd21fcd7b259abb372d93cca5837a4 | /income_classification.py | 167d494b05429e52f77aec7108da545266c93fff | [] | no_license | programmingknowledege/MachineLearning | b5135c996c6c103852023a6a33f01d5d930baa17 | 37c523a3dd107fa8a22ef268a9ee9f64c90afaca | refs/heads/master | 2022-11-10T08:48:15.519752 | 2020-06-24T17:23:05 | 2020-06-24T17:23:05 | 274,725,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | import pandas as pd
from sklearn.preprocessing import LabelEncoder
data=pd.read_csv("C:\\Users\\kunal\\Downloads\\income-classification\\income_evaluation.csv")
print(data.columns)
le_income=LabelEncoder()
data[" income"]=le_income.fit_transform(data[" income"])
print(data[" income"].unique()) | [
"bafnakunal1998@gmail.com"
] | bafnakunal1998@gmail.com |
b9950dd4f6bb688de78a9a92c88f0ae70755ed6e | 8f6a9ff4c63fd24d145088077d5da1c3e4caaa3a | /programming trade/easyhistory - download 备份修改/easyhistroy/history.py | ea5e4c058c768ff89e5b70d20e111adb96f0d2fc | [] | no_license | liaofuwei/pythoncoding | 6fd2afba0d27c4a4bbb4b2d321b3fa402a60d6fe | 966bd99459be933cf48287412a40e0c7a3d0b8e5 | refs/heads/master | 2021-07-15T10:34:57.701528 | 2017-10-10T05:27:13 | 2017-10-10T05:27:13 | 107,651,470 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | # coding:utf-8
import os
import pandas as pd
import talib
class Indicator(object):
def __init__(self, stock_code, history):
self.stock_code = stock_code
self.history = history
def load_csv_files(self, path):
file_list = [f for f in os.listdir(path) if f.endswith('.csv')]
for ... | [
"459193023@qq.com"
] | 459193023@qq.com |
c02a678107f5e807bc54b95fb1bc038e46931756 | f338eb32c45d8d5d002a84798a7df7bb0403b3c4 | /DQM/DTMonitorModule/test/DTkFactValidation_1_TEMPL_cfg.py | 28873b4aebd3900356c5f720350f92f2c2e3d464 | [] | permissive | wouf/cmssw | 0a8a8016e6bebc611f1277379e12bef130464afb | 60da16aec83a0fc016cca9e2a5ed0768ba3b161c | refs/heads/CMSSW_7_3_X | 2022-06-30T04:35:45.380754 | 2015-05-08T17:40:17 | 2015-05-08T17:40:17 | 463,028,972 | 0 | 0 | Apache-2.0 | 2022-02-24T06:05:30 | 2022-02-24T06:05:26 | null | UTF-8 | Python | false | false | 3,607 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PROD")
process.MessageLogger = cms.Service("MessageLogger",
debugModules = cms.untracked.vstring('resolutionTest_step1',
'resolutionTest_step2',
'resolutionTest_step3'),
cout = cms.untracked.PSet(
threshold = cms.untracked... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
ca2ae996f994c2921230d0d35c9f69c38a27eabf | 877c8c11143be609c3105d6f29a18f992cca5cfc | /0064_20190415_204400.py | 096608f9dc3ad2ee5fa514fd243a57b9cbb9e5c6 | [] | no_license | IvanaGyro/LeetCode-Answer | 8a0b0c56d7d751002f430f676280f6ee9dba1939 | aab9b4e6fda821763ce54e4f580a39c622971349 | refs/heads/master | 2020-05-01T17:53:15.651545 | 2020-04-18T11:49:20 | 2020-04-18T11:49:20 | 177,611,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | class Solution:
def minPathSum(self, grid: List[List[int]]) -> int:
if not grid or not grid[0]:
return 0
if len(grid) > 1:
for i in range(1, len(grid)):
grid[i][0] += grid[i - 1][0]
if len(grid[0]) > 1:
for j in range(1, le... | [
"iven00000000@gmail.com"
] | iven00000000@gmail.com |
1a24d817c3f129cc65696bef11cd602b33c56141 | edde0db6d7df34dce6b68b64bd88b382300d5661 | /021.py | 1a4a7697905445a6524d39963a4f8134345e59b0 | [] | no_license | Trietptm-on-Coding-Algorithms/eulerproject | 2af378c2464130e097e410ca981d11e8de743d7b | c794ae2528a516bd62069d59f9375210e4376969 | refs/heads/master | 2021-01-14T02:29:38.582949 | 2013-04-05T05:03:44 | 2013-04-05T05:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | #! /usr/bin/env python
def memo(func):
cache={}
def f(*arg):
if arg not in cache:
cache[arg] = func(*arg)
return cache[arg]
return f
@memo
def divisors(n):
return [x for x in range(1,n//2+1) if n%x == 0]
def d(n):
return sum(divisors(n))
#print d(284),d(220) #220,284
... | [
"kennel209@gmail.com"
] | kennel209@gmail.com |
5f90d9616705b9653e695c4d316f9a93a74866bd | 080ed9d2b5ff76c5613d8dd42cb4f33bd9b3a82e | /code/sheet_cleaner/sheet_processor.py | f41e8a41c99357f2914903acd8abb13763aa675a | [
"MIT"
] | permissive | garain/nCoV2019 | 2114b9031baa13a52a93c30e92995ccfb01ea075 | 9cd6829ada1fd193908b213e4716f536253dbbe4 | refs/heads/master | 2022-12-12T01:21:18.883025 | 2020-09-09T05:01:52 | 2020-09-09T05:01:52 | 260,449,278 | 2 | 0 | MIT | 2020-05-01T12:03:27 | 2020-05-01T12:03:26 | null | UTF-8 | Python | false | false | 6,509 | py | import logging
import os
from datetime import datetime
from typing import List
import configparser
import pandas as pd
from geocoding import csv_geocoder
from spreadsheet import GoogleSheet
from functions import (duplicate_rows_per_column, fix_na, fix_sex,
generate_error_tables, trim_df, value... | [
"thomas.brewer@childrens.harvard.edu"
] | thomas.brewer@childrens.harvard.edu |
fa46caa1f1f3f3becac7ffa22defea3a911bab75 | ade138f110f2a311a6d2b425be33b5691fe8bd11 | /src/regex/patterns.py | f07bf814760ef45cc07ba4723857880fd075dde6 | [] | no_license | colinbazzano/learning-python | 68f6c7435691834b7c6e2dd6ac43872b76c94aee | 118c51d8b4a16c571584457bbadf97041c23953d | refs/heads/master | 2022-12-10T12:59:52.122819 | 2020-03-22T17:26:29 | 2020-03-22T17:26:29 | 247,514,583 | 1 | 0 | null | 2022-12-08T03:51:47 | 2020-03-15T17:21:34 | Python | UTF-8 | Python | false | false | 543 | py | """patterns
patterns are a powerful way to use Regex
to learn more
regex101.com
to practice
https://regexone.com/
email validation r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"
"""
import re
pattern = re.compile(r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)")
string = 'fake_email@email.org'
pattern2... | [
"colinbazzano@Colins-MacBook-Pro.local"
] | colinbazzano@Colins-MacBook-Pro.local |
ff4ddb936b2b3872ee557d4c51e532d34037b10d | 38b5dff792caa9246b9cb0a92c74c713878f1a19 | /Python/0804_UniqueMorseCodeWords/uniqueMorseRepresentations.py | 3cfca6e6817a9ceae5e7bbc481b0cf325ad0971f | [] | no_license | mtmmy/Leetcode | 12b108f81a3b3cee4f2801353e8fc8e9ec5e791e | 75aef2f6c42aeb51261b9450a24099957a084d51 | refs/heads/master | 2020-12-02T06:43:22.419495 | 2019-04-07T18:30:45 | 2019-04-07T18:30:45 | 96,882,649 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import string
class Solution:
def uniqueMorseRepresentations(self, words):
"""
:type words: List[str]
:rtype: int
"""
morseCode = [".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-"... | [
"mtmmy@users.noreply.github.com"
] | mtmmy@users.noreply.github.com |
d3169a5021ad5997b3bd8cbd3b310c67d027bb0e | 53356576265cd15a98837e0f7ba60ce2b6a8d687 | /getemails/pipelines.py | 8cc50f657318fe68120fd1b906966134090cffa1 | [] | no_license | cnoott/getemails | 87abd44533d315f8929b00dc55ee23f5d328e424 | 2465a01f058ff4d47b57bf5184537023d54fe834 | refs/heads/master | 2022-11-28T15:37:36.620549 | 2020-08-11T16:37:55 | 2020-08-11T16:37:55 | 286,796,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
class GetemailsPipeline:
def process_ite... | [
"liamamadio@gmail.com"
] | liamamadio@gmail.com |
77e0b14f23eeea5597c04077de558897a24bc4d1 | d62ab6cb9243e790ac9537274f5bfa424b154d45 | /04-Flappy_bird_single/Brid_DQN.py | 7c1eec3fe592b3fdb4acf78eb6e18efab6b481d3 | [] | no_license | HeatedMajin/RL_experiment_note | cd06916b296f8ffcce96ebfe8250d14cf81ecf0b | 445a76c9c85895fe5bcda83cd0d37d7cbfd0107f | refs/heads/master | 2022-11-29T23:56:45.188342 | 2020-08-10T12:52:56 | 2020-08-10T12:52:56 | 278,829,649 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,562 | py | from collections import deque
import numpy as np
import torch
from torch import nn
from torch.autograd import Variable
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
class Bird_DQN(nn.Module):
''''
Deep Q network for flapping bird:
Given image , the network will output what the... | [
"a145926@163.com"
] | a145926@163.com |
a03b1ddee9bd276eb940bb87b27069497c127011 | b5c33e768a9845ae242026cb2a85ec4f073c4aa4 | /2_create-topic-model/sparkutils.py | ea2bc40e68ad0e69fe65c29a9bff4ba918b2b465 | [] | no_license | htrc/ACS-samayoa | 560e292db3d90fa1f4c1228d3239a7933863e4fb | 3a4652eef53e86e5ac6e566a6fdf62da88525854 | refs/heads/master | 2023-05-14T20:07:16.282745 | 2021-06-03T20:01:43 | 2021-06-03T20:01:43 | 362,940,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import sys
from typing import Union
from pyspark import SparkConf, SparkContext
from pyspark.sql import SparkSession
def config_spark(app_name: str, num_cores: int = None) -> SparkSession:
spark_conf = SparkConf().setAppName(app_name)
if num_cores is not None:
spark_conf.setMaster(f"local[{num_cores}... | [
"capitanu@illinois.edu"
] | capitanu@illinois.edu |
0282347967f78e46d8770816ad02f6e2e4a5cc3d | 1f2494e856352873edba6dd24dcd5736a6c05351 | /pystart/pystart/spiders/Hue.py | 530c13f5d2cf578f79eadaa8e8868f7c8f2b2221 | [] | no_license | namvh145/Nam-Scott | c0f5ae4b2e0e9cabe7b7896d5a2153ac2b5e7cbc | a9c7c84f85bb3cecd622ec07f44e05efdf955c50 | refs/heads/master | 2021-07-04T06:54:24.790942 | 2021-05-11T09:36:02 | 2021-05-11T09:36:02 | 234,663,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | import re
import scrapy
class QuangTri(scrapy.Spider):
name = "Hue"
start_urls = [
"https://toplist.vn/top-list/diem-du-lich-noi-tieng-xu-hue-382.htm"
]
def parse(self, response, **kwargs):
address = ".media-body li::text , .media-body p::text , strong::text , .item_dsp_row .media-hea... | [
"noreply@github.com"
] | namvh145.noreply@github.com |
269ba1cfc40017b082ebff0bdbc3320c353476f2 | febd53417e07f52dc4a717cf241967be6e977913 | /DataRendering/structures.py | de84e5e948b5a1f2fe43f99a24c790b2bebcbaad | [] | no_license | DynamicsAndNeuralSystems/DevelopingMouse | 1d2d9d1e14fcee22f1032876e37fdd09334fd64f | 551d68ade7e522a62534293d004e24dc05ccb804 | refs/heads/master | 2023-03-21T09:25:22.200676 | 2021-03-19T02:24:54 | 2021-03-19T02:24:54 | 93,137,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,026 | py | # import sys
# print('\n'.join(sys.path))
from allensdk.api.queries.rma_api import RmaApi
import pandas as pd
import os
api = RmaApi()
MOUSE_GRAPH_ID = 17
def getStructureInfo(structure_level, other_criteria):
STRUCTURE_LEVEL=structure_level
OTHER_CRITERIA=other_criteria
structures = pd.DataFrame(
... | [
"lauhoiyangladys@gmail.com"
] | lauhoiyangladys@gmail.com |
339cf3d15e438d86c084c9aa0f60c0b938831e58 | 3a910ca48f778e57cb0ab9a42f3e57ba2f527e6b | /reduceDimension/plotMethods.py | 1d0c4ca6a23a62cb52ac8e19fcea7b522952998d | [] | no_license | DaveGeneral/tensorflow_manage_nets | d7daec9f6fbe466b5257ad2add5de8733df35ef0 | 1ed8e657a593ffd37eb15b1ec2dfb1c9e7dff4ea | refs/heads/master | 2021-06-19T11:41:14.760786 | 2017-07-18T01:14:38 | 2017-07-18T01:14:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,554 | py | import sys, os
import numpy as np
import matplotlib.pyplot as plt
from itertools import cycle
switch_server = True
testdir = os.path.dirname('__file__')
srcdir = '..'
sys.path.insert(0, os.path.abspath(os.path.join(testdir, srcdir)))
if switch_server is True:
from tools import utils
from nets import net_aenc... | [
"rikardo.corp@gmail.com"
] | rikardo.corp@gmail.com |
f0c5be2e54cfd6b4c05e9c5ed5ce3fd666c97b30 | ce2feffb3b8c3433eefb596aacbb9b73ff8bb3bb | /Desktop/TAGTOSHOP/Chatbot/qrcode-bot/fb_chatbot/models.py | e932d9c0e6e0c6d56aa0984ccaa6a386132d3f42 | [] | no_license | RamonRR93/MicrocontrollerPrisonProject | a6fe0fa8de6b05a490514bec3857918639afe138 | 3f7e65e29440744fa37e178737e18edc157c7f70 | refs/heads/master | 2020-12-24T09:56:22.248517 | 2017-09-29T14:50:38 | 2017-09-29T14:50:38 | 73,256,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class FacebookUser(models.Model):
fb_id = models.IntegerField(primary_key=True)
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
profile_pic = models.CharField(max_... | [
"rr3088@columbia.edu"
] | rr3088@columbia.edu |
bc4df46eb7872b86c36c55931baed6b9e64e0e68 | 0b2590e8c6783a0ba9d811d4467e59241b037767 | /python3_programming_tricks/ch09/9-4.py | 7d550afaa409e34ca6df96184d15899b3b21c182 | [] | no_license | tuxnotes/python_notes | f070dffb46f34eefd341c47fdb2e414e4f85261c | f031490b3a208898a45fec67d83bf75f6ad91b8e | refs/heads/master | 2020-05-20T20:39:29.239620 | 2019-12-04T06:34:35 | 2019-12-04T06:34:35 | 185,746,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | import time
import logging
import random
def warn_timeout(timeout):
# 既然是带参数的,那么就是一个生产装饰器的工厂
# 定义装饰器
def decorator(func):
def wrap(*args, **kwargs):
t0 = timem.time()
res = func(*args, **kwargs)
used = time.time() - t0
if used > timeout:
... | [
"vodaka@126.com"
] | vodaka@126.com |
ead64974c7f331db8bd57afaac4d4c6e4eb8d533 | 98a288ad0496c484a777d31ffaaa0cd8678e6452 | /plusfriend/urls.py | afa16ed72fcced5aec68292880dc2565ef9d9d58 | [] | no_license | WHWH10/Askbot_ex | 24224b78cfb3f5e5d8b15987075ff675396f3690 | 4bc0fb3f7c81470010617ffb927eaa886496a4b1 | refs/heads/master | 2021-06-26T06:46:26.077884 | 2017-09-11T07:47:35 | 2017-09-11T07:47:35 | 103,101,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^keyboard$', views.on_init),
url(r'^friend$', views.on_added),
url(r'^friend/(?P<user_key>[\w-]+)$', views.on_block),
url(r'^chat_room/(?P<user_key>[\w-]+)$', views.on_leave),
url(r'^message$', views.on_message),
]
| [
"eyet010@gmail.com"
] | eyet010@gmail.com |
5d009ec1750156835ab05bd369cef58aeaed239e | b4c93bad8ccc9007a7d3e7e1d1d4eb8388f6e988 | /farmercoupon/migrations/0048_auto_20210322_1046.py | 45f4e7b616e00e32a923afc76da686935d36cabb | [] | no_license | flashdreiv/fis | 39b60c010d0d989a34c01b39ea88f7fc3be0a87d | b93277785d6ad113a90a011f7c43b1e3e9209ec5 | refs/heads/main | 2023-04-02T12:46:32.249800 | 2021-03-31T00:27:29 | 2021-03-31T00:27:29 | 343,431,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | # Generated by Django 3.1.7 on 2021-03-22 02:46
from django.db import migrations, models
import multiselectfield.db.fields
class Migration(migrations.Migration):
dependencies = [
('farmercoupon', '0047_auto_20210321_1524'),
]
operations = [
migrations.AddField(
model_name='f... | [
"dreivan.orprecio@gmail.com"
] | dreivan.orprecio@gmail.com |
ff6271a955e1cb503a3d11d4da07cb233f75e69b | 897e63cc3e19882e50e76fc4abb3b1e7c5408001 | /manage.py | 7ded26bba34bfae49570ed0facc1d25773c241ff | [] | no_license | sasirekha3/molecular-search-system | 277d67330532401bdb886845430f4dca3623fad4 | eccb7722034bcbe1fa1d173ae91bdf1a98dba83b | refs/heads/master | 2020-12-04T14:10:09.412422 | 2020-01-04T17:24:02 | 2020-01-04T17:24:02 | 231,795,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DjangoProj.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [
"ksasirekha@gmail.com"
] | ksasirekha@gmail.com |
b84f468a68c639807ccd982bd0207469b605c051 | d0571268b8b7fa8e6621d138217f6a98a418ca93 | /_1327/main/migrations/0005_add_anonymous_group.py | c8edc82430a8a8a4e4e7e3ee4d329e6563f138d4 | [
"MIT"
] | permissive | xasetl/1327 | 743a4a8b7c9b1984d3b8b434c4db4b6799a5ddb7 | 71a9d3adac0f01fb87612c24bb8d0f1b945cc703 | refs/heads/master | 2020-04-05T11:44:44.422539 | 2017-08-21T16:11:34 | 2017-08-21T16:11:34 | 35,056,504 | 2 | 0 | null | 2015-05-04T20:04:55 | 2015-05-04T20:04:55 | null | UTF-8 | Python | false | false | 596 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
from django.contrib.auth.models import Group
from guardian.management import create_anonymous_user
from guardian.utils import get_anonymous_user
def add_anonymous_group(apps, schema_editor):
create_anonymous_user(None)
... | [
"steffen.koette@gmail.com"
] | steffen.koette@gmail.com |
4869b01a3ceb8a2fe7ccd3a7f8289efc0306cd9a | 4b8100df8c29a3676f3ed3f9cf4ce19f83fac6d5 | /images/urls.py | 038957d622f8315d93fcfe38b4d4c39f1b274bb3 | [] | no_license | mtali/bookmark | bc96818764e18865ef18142ab075d512cd028cfa | f568e2463599b7d4333074d4dc0de28ca67f76ce | refs/heads/master | 2021-04-12T01:45:48.934820 | 2018-03-18T19:43:34 | 2018-03-18T19:43:34 | 125,758,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from django.urls import path
from . import views
app_name = 'images'
urlpatterns = [
path('', views.image_list, name='list'),
path('create/', views.image_create, name='images'),
path('detail/<int:id>/<slug:slug>/', views.image_detail, name='detail'),
path('like/', views.image_like, name='like'),
p... | [
"emmanuelmtali@yahoo.com"
] | emmanuelmtali@yahoo.com |
38ec4f2c3c29b218a061ec89a9850e93af9664f6 | c0057c0bfa216ec991894352700c8e7bca52ad4a | /test2.py | 9638768a9f5438f8d5af7319ec5bf987a0ec0be7 | [] | no_license | syurituu/exercise | f040150d2a734fbc458038de2834b84585c5adaa | c7d4f5e16b79305c513c6576d9edf3da4b051974 | refs/heads/master | 2020-12-13T18:45:07.937811 | 2020-01-17T07:48:50 | 2020-01-17T07:48:50 | 234,498,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | import jieba
def splitfile(inputFile, outputFile):
fin=open(inputFile,'r',errors='ignore')
fout=open(outputFile,'w',errors='ignore')
for line in fin:
line = line.strip()
line = jieba.cut(line)
outstr = " ".join(line)
fout.write(outstr + '\n')
fin.close()
fout.close()... | [
"zhutom1996@gmail.com"
] | zhutom1996@gmail.com |
60860eacc8024b7eec8832f1bace9276b752943b | 9af43f9f52ab8726caacdd594980d5e0bf462c40 | /flask_transmute/decorators.py | 29e4c8463f456ffad3e1540e4880e4cebb3c4467 | [] | no_license | elindell/flask-transmute | 3b28509fee071e606be0021bfdc63bff85b51a38 | bd3c103c5eca9a5e4071f71be4a12460acddfd26 | refs/heads/master | 2021-01-22T09:16:45.945064 | 2016-04-04T08:49:08 | 2016-04-04T08:49:08 | 67,669,319 | 0 | 0 | null | 2016-09-08T04:48:59 | 2016-09-08T04:48:59 | null | UTF-8 | Python | false | false | 769 | py | def updates(f):
"""
this labels a function as one that updates data.
"""
f.updates = True
return f
def creates(f):
"""
this labels a function as one that creates data.
"""
f.creates = True
return f
def deletes(f):
"""
this labels a function as one that deletes data.
... | [
"tsutsumi.yusuke@gmail.com"
] | tsutsumi.yusuke@gmail.com |
17b8933019a86e9c2ffbcdaa3cb4a887f9d66940 | 7411152e1618fe463d170e78fc8df594de9ce88e | /web_scrapper.py | b22663f1377bfd8bab6de148fe86b01a03892fbe | [] | no_license | neramas1221/Bird_web_scrapper | 31aa7f92df2223966359d9235feb452ea3f0d78a | 11fb372932b5443f5586e0af7eb5ce88afbc25ce | refs/heads/master | 2020-04-01T14:54:06.181993 | 2019-03-19T13:43:48 | 2019-03-19T13:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | import requests
from bs4 import BeautifulSoup
import time
import numpy as np
import pandas as pd
import re
page_counter = 8040 #8575
page_url = "https://www.xeno-canto.org/explore?dir=0&order=xc&pg="
download_url = "https://www.xeno-canto.org"
folder = "/media/neramas1221/Maxtor/sounds/"
row_Data = []
c... | [
"connorwheeler1997@gmail.com"
] | connorwheeler1997@gmail.com |
fb6f67a97a02f948ad2aa2760275229fce44c0f1 | 1abe01b916df738f6597fd3d754e0caf5bba82db | /Books/contact/views.py | 486198a07c7f7a2686fb8f898ce2ddaa145b8fda | [] | no_license | alegoriyas/Books | 58cb711b3b35ca9069802e0437f7a28a4e8db8f0 | b8fc2e0a5db88b921bd1b22965e95012feaadffd | refs/heads/master | 2022-12-24T10:08:09.362715 | 2020-10-08T08:31:06 | 2020-10-08T08:31:06 | 273,240,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | from django.shortcuts import render
from django.core.mail import send_mail
def index(request):
send_mail('Hello from SteblinaEE',
'Hello there. This is an automated message.',
'steblinaee@gmail.com',
['egorinkas@gmail.com'],
fail_silently=False)
retur... | [
"alegoriyass@yandex.ru"
] | alegoriyass@yandex.ru |
1a4bb46bd52734b636a9289f60533e348c0cd036 | 6a7e2db41319fc6a4470a06258bf487234055021 | /venv/Scripts/pip3.8-script.py | fa9e30e2c16968d373a28069a08af45f14f409f1 | [] | no_license | AthanasiosChaloudis/Data-Science-for-Web-Applications | 4cd448f4b9dd4d5df01be3ef12a4c00591a100e0 | a99bfd0fad92c6b6238ee48b10d7543fa32de92f | refs/heads/main | 2023-01-30T00:33:36.762972 | 2020-12-13T10:37:19 | 2020-12-13T10:37:19 | 308,966,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\Thanos\PycharmProjects\test1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"61148755+thanosuhh@users.noreply.github.com"
] | 61148755+thanosuhh@users.noreply.github.com |
cba48a755863db9c8468e5ef1df1f3d89d1a79df | 06cb3c450c322f6b01ee44c1f4de0a883a5a785e | /Echoo/__init__.py | 09fa2ddd18cdb10f827e8356184c130e6e0f7acb | [
"MIT"
] | permissive | Lyken17/Echoo | 239077c1791e61745e3dda97ca6661a5e9eca962 | ae604ee42ee3cae9afe9d3583ede568567c7dbe8 | refs/heads/master | 2023-06-22T01:48:22.873260 | 2023-06-15T15:30:38 | 2023-06-15T15:30:38 | 205,288,960 | 5 | 2 | MIT | 2019-08-30T02:59:53 | 2019-08-30T02:26:11 | Python | UTF-8 | Python | false | false | 24 | py | from .echoo import Echoo | [
"ligeng@mit.edu"
] | ligeng@mit.edu |
468c319fce38acce24ace0e88fc5325e3bdc9b49 | 4b56e86b33a52d2d1808d6b80f13a169f3f6159a | /ImproveDeepNN/OptimizationMethods/Momentum.py | c93deca6fb6eb05c5f1e573354eb5b638d4451d0 | [] | no_license | vandeppce/DeepLearning | d922d4780afab5b733cc7a87b0c167bc4b2cfc81 | 5e2d4a34b8a5a1c81e132a1a70e2b503859b1f7d | refs/heads/master | 2021-04-03T04:13:07.250159 | 2018-05-24T04:49:51 | 2018-05-24T04:49:51 | 124,764,156 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.io
import math
import sklearn
import sklearn.datasets
from ImproveDeepNN.OptimizationMethods.opt_utils import *
from ImproveDeepNN.OptimizationMethods.testCases import *
def initialize_velocity(parameters):
"""
Initializes the velocity as a pytho... | [
"sdtczyj@163.com"
] | sdtczyj@163.com |
1262b3cda999d37cac7c4fdb37305365b0c404ab | 38df8849ad0b43594dafb94008fd0036951dde85 | /regexquerytool/regexquerytool/wsgi.py | 505c9396070827e73bb9d9157051f0d3b84ff44c | [] | no_license | yasminhillis/regex_query_tool | ffebdcfeb312e9ec164f4ca429aa23c14a58823d | 10e713755a9b35350ab467f515cbb541af891f0d | refs/heads/main | 2023-01-05T00:03:23.064281 | 2020-11-08T09:33:21 | 2020-11-08T09:33:21 | 306,550,614 | 1 | 0 | null | 2020-11-08T09:33:22 | 2020-10-23T06:40:27 | JavaScript | UTF-8 | Python | false | false | 683 | py | """
WSGI config for regexquerytool project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
import sys
# from pathlib import Path
# path = 'regexquerytool.settings'
from d... | [
"jasminehillis94@gmail.com"
] | jasminehillis94@gmail.com |
cccbb148040f217b8a624f39a07f85f4fb552de4 | 433ada0b349e8a68dd85a5af047b90d23aee44c9 | /include/ClientCaches.py | f4a6eb45028de815aa1b2763dfac4061d03724d5 | [
"WTFPL"
] | permissive | 3wayHimself/hydrus | 7ddfe3507ad2b3e9dc4ab69cb9c6e25efc06c5aa | 804ffe8cecfe01bdb9518070d31dbf826b72e8ef | refs/heads/master | 2020-03-23T04:37:53.849078 | 2018-07-11T20:23:51 | 2018-07-11T20:23:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106,375 | py | import ClientDefaults
import ClientDownloading
import ClientParsing
import ClientPaths
import ClientRendering
import ClientSearch
import ClientServices
import ClientThreading
import HydrusConstants as HC
import HydrusExceptions
import HydrusFileHandling
import HydrusPaths
import HydrusSerialisable
import HydrusSessions... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
e0e32be403a6963887949ef4f1269a652f11e196 | 89e6c3548fbdd06178aae712de1ff19004bc2faa | /my_django/contrib/localflavor/sk/forms.py | f5428d879572000d4ed3f57df9882da6f007f378 | [] | no_license | bhgv/ublog_git.hg.repo-django.python-engine | a3f3cdcbacc95ec98f022f9719d3b300dd6541d4 | 74cdae100bff5e8ab8fb9c3e8ba95623333c2d43 | refs/heads/master | 2020-03-23T01:04:07.431749 | 2018-07-25T12:59:21 | 2018-07-25T12:59:21 | 140,899,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | """
Slovak-specific form helpers
"""
from __future__ import absolute_import
from my_django.contrib.localflavor.sk.sk_districts import DISTRICT_CHOICES
from my_django.contrib.localflavor.sk.sk_regions import REGION_CHOICES
from my_django.forms.fields import Select, RegexField
from my_django.utils.translation import ug... | [
"bhgv.empire@gmail.com"
] | bhgv.empire@gmail.com |
a6cb5f2f4b102661f20b0783836f1b11b3805ee9 | 3ebe732756194704043bb353c768ebb26cfed22e | /enbuyuksayi.py | e0d3d117bb893497f93897df0bc0708ec1b5cef0 | [] | no_license | BarisKamis/CLARUSWAY | 68ddf303d992d91268e0b5ef472fab13d1bdd554 | 63b2e0b3e119fdcbc27c956b436226134bec57b7 | refs/heads/main | 2023-06-09T16:18:25.579005 | 2021-07-01T20:48:01 | 2021-07-01T20:48:01 | 382,150,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | sayilar=[]
for i in range(1,6):
print ("bir sayi girin")
x=input()
sayilar.append(int(x))
i=i+1
enbuyuk=sayilar[1]
for i in sayilar:
if i > enbuyuk:
enbuyuk=i
i=i+1
print ("en buyuk sayi:", enbuyuk) | [
"noreply@github.com"
] | BarisKamis.noreply@github.com |
03eb716acba6ddc2f77eb15d4d74e33f46e68cc5 | a9bbcbb4d6142c0b290ad7177d29085354d3a1b1 | /upstream/python-bitstring/test/test_bitstream.py | ebd92078b09f342167699b6492d4421e71d5e798 | [
"MIT"
] | permissive | nssllc/carver | 44caf9181824215e3c317485d93ad1ed92e0d2f6 | 89ce21ee8df216ce8485adb5f0b413050a4b3cce | refs/heads/master | 2021-01-13T01:41:23.561399 | 2011-10-26T13:03:22 | 2011-10-26T13:03:22 | 2,506,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135,708 | py | #!/usr/bin/env python
import unittest
import sys
sys.path.insert(0, '..')
import bitstring
import copy
import os
import collections
from bitstring import BitStream, ConstBitStream, pack
from bitstring.bitstore import ByteStore, offsetcopy
class FlexibleInitialisation(unittest.TestCase):
def testFlexibleInitialis... | [
"dwindsor@networksecurityservicesllc.com"
] | dwindsor@networksecurityservicesllc.com |
a29090ef119e51b024e2fc4af969d65ecaef476a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/1805.py | f216188bcb5e778686fc1da1297901988727a426 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py |
def get_min_members(smax, audience):
standing = 0
friends = 0
i = 1
standing += audience[0]
while i <= smax:
if standing < i:
new_friends = i - standing
standing += new_friends
friends += new_friends
standing += audience[i]
i += 1
retu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7c818c5e714842a6d73b7c92f35e9830888d1a26 | c6a37df4e40530dd87f89de5c8f6d98b10173c63 | /concolic.py | b182cfc1bac7d0fa89b9d437352d1a084534721a | [] | no_license | KevinBender/AutomatedConcolic | ed88fc7cbe122d76679093b6945214c0ecd4a0b6 | 7c5e50f434bff0d3e25c4f346790915a55397d7a | refs/heads/master | 2023-05-01T04:42:08.827665 | 2021-05-18T14:50:42 | 2021-05-18T14:50:42 | 361,894,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,125 | py | import z3
import traceback
from inspect import currentframe, signature
from dataclasses import dataclass
"""
This file implements a concolic execution engine. It assumes that
a program under test is instrumented and will use the API
concolic.guard() to collect path constraints, and the API
concolic.set() and ... | [
"theguykevin@gmail.com"
] | theguykevin@gmail.com |
be7efb58da4aaf5477a500e8e99560403997a417 | f8200c79eeddbf64f39ca21ac0afcaa1c235703a | /debug.py | dc93da203b599c61812c22b41857c85bd4143eb9 | [] | no_license | glanton/robocritic | dbe98eb2ec7d8f79fa482f547f480e780b0688db | afd9545dfa158957e7ca9d40fcf59b410d192dcb | refs/heads/master | 2016-08-05T03:52:24.779438 | 2015-05-01T20:57:25 | 2015-05-01T20:57:25 | 34,097,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # functions and data used for debugging purposes
# holds all counts kept when running the program
_count_dict = {}
# creates a new counter with the specified name when first called; increments counter on future calls
# also prints the current count based on the specified frequency
def run_counter(name, frequency):
... | [
"classay@gmail.com"
] | classay@gmail.com |
5fc9f33ad9117e2363e5ed12f9e8c613c93c79bf | 3ac9007691cacf0620530baf04dda9dd85fee556 | /usr/bin/gooroom-update | db947198d61acf88ab08e6d71ed22d8f717e9f75 | [] | no_license | ozun215/gooroom-update | 406cec20414486113d04867ad8f5ec9fc455378d | 1b69e58b001c36569557f51767310f33fa1a2dc8 | refs/heads/master | 2022-12-01T11:36:19.672171 | 2020-07-08T11:10:11 | 2020-07-08T11:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | #!/usr/bin/python
import os
import commands
command="/usr/lib/gooroom/gooroomUpdate/gooroomUpdate.py show &"
os.system(command)
| [
"gooroom@gooroom.kr"
] | gooroom@gooroom.kr | |
94cb36fc55af1eb504fcbf88f2c20c31038bd4dc | 917b85156ddfb653592b3b0994e7e7e9802a9eed | /ejerXML.py | c8789ca346bf35fd1f02bff24c1534fdec3609d4 | [] | no_license | antoniogomezvarela/XML | 3d2f2e8e1949b4a7f335a0b7c6ea229544d816a4 | c6dfeed3d782c4a28e56c7992414accf9fdcc660 | refs/heads/master | 2021-01-22T03:25:47.441160 | 2015-03-06T07:28:34 | 2015-03-06T07:28:34 | 31,011,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,135 | py | # -*- coding: utf-8 -*-
from lxml import etree
from datetime import date
tree = etree.parse('becas_premios.xml')
documento = tree.getroot()
#MENU
print "1- Buscar beca o premio por teclado"
print "2- Mostrar becas y enlaces"
print "3- Buscar las becas y premios que su fecha de publicación este entre febrero y abril"
... | [
"root@debian"
] | root@debian |
e784cfeb07b1b4b44de67e5f78c4e17cfbf1338b | 1d717c797e93b451f7da7c810a0fb4075b1050d5 | /src/data/dataset/basic_dataset.py | bc875ea6516703ea40caa5028c2b7984ad5dd2fa | [] | no_license | jessie0624/nlp-task | 32338b08051a3ea192db2bf74c9c969bdff1f6ad | aaeeed86341356d9fd061664f6f7bccf2ac353d0 | refs/heads/master | 2023-01-24T12:06:13.323646 | 2020-12-10T08:38:23 | 2020-12-10T08:38:23 | 292,151,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py |
import numpy as np
from src.base import BaseDataset
class BasicDataset(BaseDataset):
def __init__(self, x: list, y: list, callbacks=None):
super().__init__(callbacks=callbacks)
self.x = x
self.y = y
self.sample() # 先获取候选的索引池(index pool)
def get_index_pool(self):
'''
... | [
"jessie_lijie@126.com"
] | jessie_lijie@126.com |
41ad7dfb509fba61890e0aea60cd3b110cef1c09 | 01362c32c4f28774d35eb040fce84e1bdc1dbe36 | /programming/migrations/0006_auto__add_field_film_picture__add_field_festival_picture__add_field_gi.py | f9215083aa7020ad553feb308aef4229099fee4b | [] | no_license | marcusvalentine/starandshadow | 90c434e04829248a69c6a4d9cf6b32eb395d42c9 | 93a74542bc5d949238232632ee85de66438f78bb | refs/heads/master | 2020-03-29T16:24:36.163141 | 2018-05-10T13:32:08 | 2018-05-10T13:32:08 | 150,112,777 | 0 | 0 | null | 2018-09-24T14:10:08 | 2018-09-24T14:10:07 | null | UTF-8 | Python | false | false | 17,082 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Film.picture'
db.add_column('programming_film', 'picture', self.gf('django.db.m... | [
"sjk@psimonkey.org.uk"
] | sjk@psimonkey.org.uk |
321d28bf716d6a7c7adbd903db11e67dbdfd4a8b | 743be419d9af6be760a4c9754a9fb946b84827ec | /manage.py | 55a16d5a5082fbd03c4d4c1723d5af460278aaa9 | [] | no_license | mathbeal/videomembership-django | f76c9debaef1b00171d79e8fd1e9409e24705f68 | 3fa779458197a245aacb82d00ff0e7102a3cb831 | refs/heads/master | 2021-06-04T20:13:38.457946 | 2016-09-13T13:37:05 | 2016-09-13T13:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "videomembership.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"leo.maltrait@gmail.com"
] | leo.maltrait@gmail.com |
7ceee000b032290546e28faeaac57035bee55b29 | 9a65ca76a29102c3a74433a0d11a29e7d369b1b3 | /Assignment03/single_layer_nn.py | 1e93e03133650f348f4b4d9a593a02a3946dcb27 | [
"MIT"
] | permissive | Ericbrod10/Deep-Learning | bd8ffe7d17f2275c885f7550b3394a8969f5c705 | 5b0a01597ce19f2da5bf45b76023b898c494f46a | refs/heads/main | 2023-02-05T11:52:12.677261 | 2020-12-26T23:01:50 | 2020-12-26T23:01:50 | 324,647,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,253 | py | #Eric Broderick
#eab37
#Assignment 3
import numpy as np
import sys
# Command: python single_layer_nn.py <train> <test> <n>
# sys.argv[1] = <train> = training data
# sys.argv[2] = <test> = test data
# sys.argv[3] = <n> = number of nodes
## Read in data ##
f = open(sys.argv[1])
data = np.loadtxt(f)
train = data[:,... | [
"56181235+Ericbrod10@users.noreply.github.com"
] | 56181235+Ericbrod10@users.noreply.github.com |
1c54602c168cdfc90d1c47fa582a445c1da70afa | 730d9b6251cfb911250626b21c8476c30f5729c0 | /day04/code/4-xpath-language.py | 87de8b71941e2a1cc8923144e991fd9861a31ac6 | [] | no_license | Wuhuaxing2017/spider_notes | 7b6d6e9e26e97d9b67dda85fd4833f82ef793f58 | 69cb18e38f54c839e4d0ebaa7199f984dfbcf5da | refs/heads/master | 2020-03-19T08:09:51.723802 | 2018-06-05T14:32:46 | 2018-06-05T14:32:46 | 136,180,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | from lxml import etree
html = '''<div>
<ul>
<li class="item-0"><a href="link1.html">first item</a></li>
<li class="item-1"><a href="link2.html">second item</a></li>
<li class="item-inactive"><a href="link3.html" class="linkjfdlsfjls">third item</a></li>
<li class="shfs-in... | [
"Wuhuaxing2017@qq.com"
] | Wuhuaxing2017@qq.com |
c3469d4c16126daa8fbccf787da1442ae647afdf | 450021885a28d498f309b656973f1afd2ae538ef | /Mnist_UseNN.py | c232b0a1668431936e280db93cbd467d5cdeb590 | [] | no_license | kimwoojoo/DeepLearningStudy | 5f1f2e859b4f926c461847fafab02c855646ed71 | 521816261a2538cb6cb51b9b1019d27ca7e9a0b8 | refs/heads/master | 2020-04-27T11:57:33.578479 | 2019-03-08T01:59:53 | 2019-03-08T01:59:53 | 174,315,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | # Lab 7 Learning rate and Evaluation
import tensorflow as tf
import matplotlib.pyplot as plt
import random
from PIL import Image
tf.set_random_seed(777) # for reproducibility
from tensorflow.examples.tutorials.mnist import input_data
# Check out https://www.tensorflow.org/get_started/mnist/beginners for
# more infor... | [
"kwj1217@gmail.com"
] | kwj1217@gmail.com |
3ebc4805f20af93c3c9a5846bf9c7185e1c7a7c0 | f2852e75af2c15d59cb962d7d5c81fa1e5cbe374 | /home/migrations/0015_contactpage_map_address.py | b413c8f57fffec09fcecc85728e290124f5f5250 | [
"Unlicense"
] | permissive | jesuispaulbonnet/technic-alu | 27f4cb95a736894de7588d8d5a42efaa42a0ddb8 | 697b948108bdda3c2f538f88d747b5cd50e21254 | refs/heads/master | 2021-05-11T11:05:54.110018 | 2019-01-20T14:23:26 | 2019-01-20T14:23:26 | 118,121,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-02-23 12:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0014_auto_20180223_1254'),
]
operations = [
migrations.AddField(
... | [
"paul.bonnet@tuware.com"
] | paul.bonnet@tuware.com |
3baa1450535e83cf7f724f6e11344aa79973106c | 18f5ea1689c88eac0a8e68f1697d04b9f4028e19 | /manuel-ortiz-fortis-leonardo-Jimenez-miguel-rodriguez.py | 66b9c13a76ea9db5d44f53949579900476c2621e | [] | no_license | MiguelAngelR95/programas-automatas | 44dc69ff4fee2a807417de18e6cbdb946193ed2f | 60881b805c01b09850691c4741e3ea6456d866c2 | refs/heads/master | 2021-01-18T22:55:27.817884 | 2016-08-05T03:47:27 | 2016-08-05T03:47:27 | 62,854,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py |
mensaje = "ingrese los arreglos"
print mensaje
t = raw_input()
lista = []
for i in range(0, int(t)):
lista.append(raw_input("Ingrese elemento -> "))
print "A^0 = E"
#---------------------------------------------------------------
a = "{"
for i in range(0, len(lista)):
a = a + lista[i]+","
a = a + "}"
print "A^1 = ... | [
"noreply@github.com"
] | MiguelAngelR95.noreply@github.com |
3df5d2864b2526594da536cb97351fd21b615766 | f8ee3224c99732805a09bd2cb4af787c47d6bc5f | /src/map/Menu.py | 46c1d1c2cc713c69b77073a5d18d639b1ca0b9fc | [] | no_license | q3226257/FreeFantasy_v2 | b57b2e5b4431f8d730ef7d4e6dafb1bf535be138 | d1b5ba206b03a4b57a28a539618772c19f91169e | refs/heads/master | 2020-04-13T15:50:52.044653 | 2019-01-01T15:36:39 | 2019-01-01T15:36:39 | 163,303,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | import pygame
import thorpy
from info.App import AppInfo
from main.Constant import *
from info.Items import *
import main.Main
from interface.EventDeal import Update
a = [Big(), Big(), Big()]
class Menu(Update):
def __init__(self, screen: pygame.Surface):
self.screen = screen
rect = pygame.Rect(s... | [
"616784622@qq.com"
] | 616784622@qq.com |
fc286ee99bce63c3cf6dad314ec4c1925f581e0f | 7a98fb6d68f06f7926ed4a27e58ea0721d03e008 | /utils/utils.py | a81cc75cb506506a3f3fc833b1e91252bbd44802 | [] | no_license | d-c-a-i/DualVar | 6ae0515e1ec2a35f27aab33cea008a74bb614f0d | 244b19e29b9a8f67db94c41faeb50b91ec5f45f9 | refs/heads/master | 2023-08-31T13:02:07.917998 | 2021-10-22T17:09:44 | 2021-10-22T17:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,824 | py | import os
import glob
import math
import pickle
import numpy as np
import torch
from torchvision import transforms
import torch.distributed as dist
from datetime import datetime
from collections import deque
import time
from numba import jit
from shutil import copyfile
from dataloader import KVReader
def save_checkp... | [
"bytedance@c02dw62hml85.sso.bytedance.com"
] | bytedance@c02dw62hml85.sso.bytedance.com |
971dd6b3cb304f9c7d87eacd5e07e92e1786bc2e | f8d181f293ce950f1a70bef1d023139d9e70a2c7 | /tests/contrib/operators/test_gcp_vision_operator_system.py | 2b75642d6f3a3c93aab282d82e823a4a09d01087 | [
"Apache-2.0",
"BSD-3-Clause",
"Python-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | Piboonsak/airflow | d242f79561d893111ad73b9e3481b9180adecfd4 | dce92a54190155898c75c0f3392d42fb28f1884a | refs/heads/master | 2020-04-29T15:16:06.779329 | 2019-03-18T05:16:14 | 2019-03-18T05:16:14 | 176,222,528 | 1 | 0 | Apache-2.0 | 2019-03-18T06:57:38 | 2019-03-18T06:57:38 | null | UTF-8 | Python | false | false | 1,397 | py | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | [
"kaxilnaik@gmail.com"
] | kaxilnaik@gmail.com |
0b5713449027037d0ab2ad412af79684d0153c48 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/aio/operations/_vpn_site_links_operations.py | 5637893f1b1e6e52468412705bc4b471675b3407 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 8,712 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
467dc99e87a1d24ba74fc20773404fbbbbab9966 | 828e541b8c218db557da35b9d9d7a66fae68485a | /answer5.py | e67977dadcd32fbf0c9906928ea5d8f8e7163257 | [] | no_license | arsh1807/Assignment-2 | 57b177e25dda5b41ce28382621c18c8731e71448 | 586c61138c4667ca651c53052170e9f2ea34edf8 | refs/heads/master | 2020-03-26T17:03:49.923704 | 2018-08-17T16:43:26 | 2018-08-17T16:43:26 | 145,139,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | #5
s="Acadview"
course="Python"
fees=5000
print ('%s' %(s))
print ('%s' %(course))
print ('%d' %(fees))
| [
"arshi.1807@gmail.com"
] | arshi.1807@gmail.com |
063873b31a1e996e64f6e6dbfa4b16583a381395 | 50784449f366b224f9e652ab49789fe7c148b4f5 | /environments/Env_RoleChangingZeroSum.py | ccd1da607ae956d4e8fe7fe91d0421252e6a3270 | [
"BSD-2-Clause"
] | permissive | wbarfuss/POLD | 655c5e3a499ed2b338d8826c52314a749f2d3175 | 0c12d3f937831770efa83e20d72c37df60c96882 | refs/heads/main | 2023-04-16T22:37:04.126714 | 2022-04-11T08:52:38 | 2022-04-11T08:52:38 | 470,242,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,230 | py | """
The 2-state Matching Pennies according to HennesEtAl2010
"""
# import sys
# from pathlib import Path
# base_dir = Path(__file__).resolve().parent.parent.parent
# sys.path.append(str(base_dir))
# from LearningDynamics.Envs.Env_Null import NullEnv
from .Env_Null import NullEnv
import numpy as np
class RoleChangingZe... | [
"noreply@github.com"
] | wbarfuss.noreply@github.com |
54375b15c50675fc6a4c8d7cd3c9ca6202d57faa | 07cd7d98765ffd3a11342155fb21fd1f209a4c9a | /examples/simple_user_interface.py | c25bfe062f4299ae0c71dd2229b4935b49fe2214 | [
"Apache-2.0"
] | permissive | fooelisa/network_traffic_modeler_py3 | 1ce439b938289c02bfb4c0950b8fee9fefda8fde | 9c5151c066331536b6864f7c5e152de3c352282f | refs/heads/master | 2020-05-07T09:46:29.567195 | 2019-07-24T15:41:31 | 2019-07-24T15:41:31 | 180,391,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,910 | py | """Simple, menu-driven UI for network_modeling module.
Allows users to interact with and relate between associated
demands, interfaces, and nodes."""
from pyNTM import Model
from pyNTM import ModelException
from pyNTM import Interface
from pyNTM import Demand
from pyNTM import Node
from graph_network import graph_net... | [
"elisa@jasinska.de"
] | elisa@jasinska.de |
1c8145007edb09d77a3b15de5c34d0bc86c0ba97 | f3f38df4c88ab9818bf9c8ef1fe4f7d2533d023c | /libwyag.py | b52610c487ba19ad0f1185c2d04c72475b8b4807 | [] | no_license | dipam7/own_git | 1c2c275f7873e2c09e04b5f8ca7f9ba12e82cd38 | 9c0598bd79cae02d3bb76c1d481593774f3ac1a1 | refs/heads/master | 2022-04-25T03:07:36.082607 | 2020-04-28T01:44:56 | 2020-04-28T01:44:56 | 258,418,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py | import argparse # for handling command line arguments
import collections # for container types like OrderedDict
import configparser
import hashlib # for SHA-1
import os
import re
import sys
import zlib # git compresses everything using zlib
argparser = argparse.ArgumentParser(description="The stupid content tracker")
... | [
"dipam44@gmail.com"
] | dipam44@gmail.com |
cfb58a7a49bde127229470f43e7c101d5f9d7168 | ba1ddbc6b364dc2fd55f83ea807b50bf45ce3d1a | /PageObject/VivaVideo/home.py | 23b61b58c20490654f07d632cf8e5bfc9c4414a4 | [] | no_license | zlmone/ATX-UI | 81c58fa722586fe6fb20cd39e3a85afa6057db93 | 44bfa67ed2274c2eeb36f905d5bd482fd96a6707 | refs/heads/master | 2022-05-28T09:03:40.380824 | 2020-05-06T11:39:39 | 2020-05-06T11:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,770 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from Public.Decorator import *
from Public.Test_data import *
log = Log()
class home_Page(BasePage):
'''创作页首页'''
# @teststep
# def wait_page(self):
# try:
# if self.d(resourceId="com.quvideo.xiaoying:id/iv_vip_home8_cut").wait(timeout=10)... | [
"lixin.zhu@quvideo.com"
] | lixin.zhu@quvideo.com |
13b67511127b138050e2016acbbbb75feb3e8ca5 | f153a36b5e211690ded1af00c0160eebd2add1ca | /PROGRAMMERS/Level 1/두 정수 사이의 합.py | 70d41e935d84b333409311cfd37d198781261bca | [] | no_license | KyungHoon0126/Algorithm | 47551bbe22c70eac04ed518c2c9c1f65d48ee5b9 | 8369f0e1103d282cdc138666add65dd0ca926e70 | refs/heads/master | 2021-08-17T08:32:09.970502 | 2021-06-22T12:52:22 | 2021-06-22T12:52:22 | 214,456,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | def solution(a, b):
answer = 0
first = 0
second = 0
first = a if a < b else b
second = b if b > a else a
print(first, second)
for i in range(first, second + 1):
answer += i
return answer | [
"kidi052812@gmail.com"
] | kidi052812@gmail.com |
21f87cfc4e94213f0943b398cd2ea89c8f3719cd | 268a5ff900334afe5a3201391857663cdda9b854 | /VectoElem.py | 5250eb381bfd722154c6b4d417290df90b45bda6 | [] | no_license | Albertillo/Mecanica-Orbital | b065f297bd84421f1e5b1471c53e45ef32060026 | 0185a2614805be0ad39a22aa19439798a4c8b3d1 | refs/heads/master | 2020-03-28T07:06:43.501474 | 2018-09-07T22:50:51 | 2018-09-07T22:50:51 | 147,881,512 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | ###############################################################################################################################################################
# VectoElem.py: Esta función se ha desarrollado para uso académico. No se recomienda que se utilice con otros propósitos. #... | [
"noreply@github.com"
] | Albertillo.noreply@github.com |
04047ac8d8a9f25d66d99cc2fac1fb7c0d56021c | f8054fae8e496cb9859a363d2571b4ac94c1d7a2 | /Python/LineGrapg.py | c23e0235ad9bd49ab90ff0f8844f609f92732e79 | [] | no_license | 22aishwaryagoyal/Python | 54f5d394a88c64496291de6de8dfa6c36d87b5f0 | 1daa508a664af423ce28d92dc7e837a68312fdf1 | refs/heads/main | 2023-07-03T20:18:00.729924 | 2021-08-19T12:15:45 | 2021-08-19T12:15:45 | 397,931,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | import pandas as pd
data={'year':[1971,1981,1991,2001,2011],'pop':[50,73,81,98,111]}
df=pd.DataFrame(data,columns=['year','pop'])
df.plot(x='year',y='pop',kind='line')
| [
"noreply@github.com"
] | 22aishwaryagoyal.noreply@github.com |
f00c3e6b4362f9f605b96e38965bde24e43788d5 | eb10fc180021d020b0bf1ef73a37b96661270a25 | /dbms_submissions/dbms_assignment_006/query.py | be7bc1956e3a11e80d86453f463bcfe51ec1559c | [] | no_license | Venkataramana228/dbms | efdffc66433476d69117aaf26143a87b851ac330 | 94f70053014c6f79170ae8c05b8a03f2ec315e0c | refs/heads/master | 2022-09-08T16:42:57.615502 | 2020-05-28T09:19:12 | 2020-05-28T09:19:12 | 263,019,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | #Q1="SELECT fname,lname FROM Actor a INNER JOIN Cast c on a.id==c.pid WHERE c.mid==12148;"
Q1="SELECT fname,lname FROM Actor INNER JOIN Cast on id==pid WHERE mid==12148;"
Q2="SELECT COUNT(mid) FROM Actor a INNER JOIN Cast c on a.id=c.pid WHERE fname='Harrison (I)' and lname='Ford';"
Q3="SELECT DISTINCT(pid) FROM Mov... | [
"ec2-user@ip-172-31-24-189.ap-southeast-1.compute.internal"
] | ec2-user@ip-172-31-24-189.ap-southeast-1.compute.internal |
f1a64d7a84c54f957d4f22b4840665e842377b13 | 5c052790b46d7b8e22dcf980c52bb3044b55a18f | /CSC308 Examples/Examples/Exceptions/UniversalExcept.py | ef4798f933a46e0471c8c6f950c2d51d5bbf2896 | [] | no_license | raarnoldy23/pythonExamples | 84ae05a20d962ae6f9ef3f2048260ce654e2baaa | 3f50625198fdc51315810ffd7ff6647fbba9fd8a | refs/heads/master | 2022-06-20T04:27:11.293644 | 2020-05-11T18:08:06 | 2020-05-11T18:08:06 | 263,116,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py |
def main():
total = 0.0
try:
infile = open('text'.txt,'r')
for line in infile:
amount = float(line)
total += amount
infile.close()
print(format(total, ".2f"))
except:
print("AN ERROR OCCURED!!!")
... | [
"ARN0644@calu.edu"
] | ARN0644@calu.edu |
00fb40dc657af4f71f40f6e500abe5ae5e629c29 | 66c8b9ee95b951a60847cfabad08250e65289812 | /src/stringMatching.py | 3d448a7161cd94aaf929827be219ed63195eda51 | [] | no_license | sampanayak/ccfl-elastic | 707206c2c08cc63d67bd9846fc38fce078b3b091 | c717cce1855de0dce6d4b9c3b709a94331db55c6 | refs/heads/master | 2021-07-24T15:14:29.855623 | 2020-04-28T19:10:01 | 2020-04-28T19:10:01 | 157,615,068 | 0 | 0 | null | 2018-11-14T21:44:36 | 2018-11-14T21:44:35 | null | UTF-8 | Python | false | false | 529 | py | #contents = []
import re
#i = 0
with open('gene.txt') as f:
lines = f.readlines()
i = 1
sizeOflines = len(lines)
while i < sizeOflines:
# print(lines[i])
fullString = lines[i]
i += 1
sub = lines[i]
print(fullString)
print(sub)
i += 1
for ma... | [
"31867379+sampanayak@users.noreply.github.com"
] | 31867379+sampanayak@users.noreply.github.com |
2d9c96d214896f6dc2b7daa6ac2d6b09a83c5fe6 | 00acd54857f007df1ab2cacfaf48954d7d8a1cd2 | /cp_2/sporysh_fb-95_cp2/lab2_encrypt.py | 1d270d92d444d9f042abce5c435ab6df7901af6e | [] | no_license | Zhek0nBek0n/fb-labs-2021 | 2cc4a20680148a6e6e296f3c37034da8d23d8d5e | 2c14c112ee23cc617227db41283799c3fb9271ad | refs/heads/master | 2023-09-05T20:27:27.289457 | 2021-11-03T15:25:26 | 2021-11-03T15:25:26 | 413,180,574 | 0 | 0 | null | 2021-10-03T19:46:06 | 2021-10-03T19:46:05 | null | UTF-8 | Python | false | false | 965 | py | import numpy as np
import time
import matplotlib.pyplot as plt
import os
from Decryptor import lab_2_Decryptor as L2D
from Cryptor import lab_2_Cryptor as L2C
if __name__ == '__main__':
start_time = time.time()
cryptor = L2C("./voina_i_mir_small.txt")
keys = "да нет киви жалко " \
"приветкиви " \
"приветж... | [
"sporyshzhenya@gmail.com"
] | sporyshzhenya@gmail.com |
31475d7e6cd976e2ad2ea6c3ecd3f56b4ae48fbc | 326a026bcc6bad962159677110d78d3d836532ed | /markote/api/notebook.py | e05023873ff40b79701ec2540061e8c2d53ca0e2 | [
"MIT"
] | permissive | Frederick-S/markote | f63a5007fd0a70ce4b3ae9d03425ae9f9c8b54f3 | 095dabe3da83b5d8809593758661eb78fa527f49 | refs/heads/master | 2023-03-04T16:50:30.541147 | 2022-08-12T01:24:43 | 2022-08-12T01:24:43 | 110,396,888 | 9 | 2 | MIT | 2023-03-04T13:11:38 | 2017-11-12T02:04:32 | Vue | UTF-8 | Python | false | false | 870 | py | from flask import jsonify, request
from markote.api.api_blueprint import api_blueprint
from markote.oauth import oauth
@api_blueprint.route('/notebooks', methods=['GET'])
def get_notebooks():
oauth_client = oauth.microsoft_graph
response = oauth_client.get(
'me/onenote/notebooks?$select=id,displayName... | [
"mao_xiaodan@hotmail.com"
] | mao_xiaodan@hotmail.com |
54a1edcce616c00b9f5f2d3535a386ba07406025 | 4b9d121c8df2d1a9985bec2315aa639976889b81 | /Test de la manette.py | 84a21e43250fb8d5b77ed31b4d06307649601b5f | [] | no_license | totowarx/proberXY | 5d5d833a81b0e96b2e732922b6ede7f7ebcb4f0a | d0b40121d2795d413893b31a39ab2879ae1af980 | refs/heads/main | 2023-06-19T18:04:12.988081 | 2021-07-20T09:30:10 | 2021-07-20T09:30:10 | 360,071,861 | 1 | 0 | null | 2021-06-25T13:21:02 | 2021-04-21T07:28:07 | G-code | UTF-8 | Python | false | false | 1,480 | py | from __future__ import print_function
import xbox
# from xbox import Joystick
# change le nombre à virgule flottante au format de chaîne -x.xxx
def fmtFloat(n):
return '{:6.3f}'.format(n)
def show(*args):
for arg in args:
print(arg, end="")
def showIf(boolean, ifTrue, ifFalse=" "):
if boolean:
... | [
"noreply@github.com"
] | totowarx.noreply@github.com |
882b8ffb7a237ed542db1f3b35ec88de5b26db07 | 223a8859b801df7603f239a0ea3bdda0446591ce | /Corrector.py | 081999aa39ec3369043fa86d70f3a53a69e3a36b | [] | no_license | nthuepl/On-Pen-handwritten-Word-Recognition-Using-Long-Short-Term-Memory-Model | bc3db0cb254b818efbac543314f4e6175bf69766 | 7cb597aa4dc749c03115421570472e43865a1583 | refs/heads/master | 2020-03-27T13:27:53.992505 | 2018-09-10T10:30:54 | 2018-09-10T10:30:54 | 146,611,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,681 | py | from spell import correction
from Levenshtein import levenshtein, index
import numpy as np
class Lexicon():
def __init__(self):
vocab_list = []
# load from file
fp = open('20k.txt', 'r')
for line in fp.readlines():
word = line[:-1]
vocab_list.append(word)
fp.close()
self.word_list = []
self.pa... | [
"gn02336853@gmail.com"
] | gn02336853@gmail.com |
2e21fbc4566ec48ec6d3e36c44da1af16c81e5ea | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc101/A/4927211.py | 4e4246f50058560e91aa73a6173b4e550e2b0b90 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | s = list(input())
print(s.count('+')-s.count('-')) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
4b9a62611c764cd8d705fcf54fd46f2a5624deae | d9e26e516ab3863b6e7d00c4e3cdecf1af7028eb | /src/oaklib/io/rollup_report_writer.py | e4644c058309aeb0aeae82b0c4cc2fa52f2b5e04 | [
"Apache-2.0"
] | permissive | INCATools/ontology-access-kit | 2f08a64b7308e8307d1aaac2a81764e7d98b5928 | 8d2a124f7af66fe2e796f9e0ece55585438796a5 | refs/heads/main | 2023-08-30T14:28:57.201198 | 2023-08-29T17:40:19 | 2023-08-29T17:40:19 | 475,072,415 | 67 | 15 | Apache-2.0 | 2023-09-07T01:06:04 | 2022-03-28T15:50:45 | Jupyter Notebook | UTF-8 | Python | false | false | 3,444 | py | from typing import Dict, List, TextIO
from airium import Airium
from linkml_runtime.dumpers import json_dumper, yaml_dumper
def format_object(curie, label):
if label:
return f"{label} [{curie}]"
else:
return curie
def add_association_group(doc: Airium, associations: List[Dict], subject: str... | [
"noreply@github.com"
] | INCATools.noreply@github.com |
fe1cc4e8b6b8201c08c79ccc09f50d705606c468 | 69e7dca194ab7b190e1a72928e28aa3821b47cfb | /Concepts/Strings/49.py | 579955f18e9b68d977d8b50ba8f8ff8b211b3947 | [] | no_license | Dinesh94Singh/PythonArchivedSolutions | a392891b431d47de0d5f606f7342a11b3127df4d | 80cca595dc688ca67c1ebb45b339e724ec09c374 | refs/heads/master | 2023-06-14T14:56:44.470466 | 2021-07-11T06:07:38 | 2021-07-11T06:07:38 | 384,871,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | """
49. Group Anagrams
Given an array of strings, group anagrams together.
Example:
Input: ["eat", "tea", "tan", "ate", "nat", "bat"],
Output:
[
["ate","eat","tea"],
["nat","tan"],
["bat"]
]
Note:
All inputs will be in lowercase.
The order of your output does not matter.
"""
import collections
def group_... | [
"dinesh94singh@gmail.com"
] | dinesh94singh@gmail.com |
aa2a3f50015d27ba5e13535865c82d7ddc196297 | 6a200b3c86329d501c9c8082fb69a512fa69228b | /tasksupervisor/endpoint/fiware_orion/orion_interface.py | de408a5dc5b0878f8f6a886bb523c3fd1e473f09 | [
"Apache-2.0"
] | permissive | iml130/mod.sw.tp.ts | 09792a33e4ec4e53ac89d59aa19cb4dae7762b90 | 4cda3ef0d3791eb204d5510631fdb9ec7ec57aab | refs/heads/develop | 2023-04-17T04:07:15.909996 | 2021-04-26T22:00:14 | 2021-04-26T22:00:14 | 335,564,272 | 0 | 1 | Apache-2.0 | 2021-04-26T22:00:15 | 2021-02-03T09:00:35 | Python | UTF-8 | Python | false | false | 6,795 | py | """ Contains OrionInterface class """
import threading
import logging
# import local libs
import tasksupervisor.my_globals as my_globals
from tasksupervisor.helpers import servercheck
from tasksupervisor.helpers.config_reader import ConfigReader
from tasksupervisor.endpoint.fiware_orion.flask.flask_setup import cre... | [
"noreply@github.com"
] | iml130.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.