seed
stringlengths
1
14k
source
stringclasses
2 values
public interface IProjectsService { Task<IList<ProjectDto>> GetProjectsAsync();
ise-uiuc/Magicoder-OSS-Instruct-75K
# secret with the same name exists, remove it docker secret rm $f fi
ise-uiuc/Magicoder-OSS-Instruct-75K
return crop_id def regex_find_frame_id(filename): regex = re.compile(r'/f\d+_c')
ise-uiuc/Magicoder-OSS-Instruct-75K
// demourl display Service Cases knowledge // // Created by Igor Androsov on 9/10/18. // Copyright © 2018 Salesforce. All rights reserved. // import UIKit import ServiceCore import ServiceChat import ServiceCases import ServiceKnowledge
ise-uiuc/Magicoder-OSS-Instruct-75K
if touches.count == 1 { let touch = touches.first if touch?.tapCount == 1 {
ise-uiuc/Magicoder-OSS-Instruct-75K
Taken from bitbucket.org/schinckel/django-timedelta-field. """ string = string.strip() if not string: raise TypeError(f'{string!r} is not a valid time interval') # This is the format we get from sometimes PostgreSQL, sqlite, # and from serialization. d = re.match( r'^((?P<days>[-+]?\d+) days?,? )?(?P<sign>[-+]?)(?P<hours>\d+):' r'(?P<minutes>\d+)(:(?P<seconds>\d+(\.\d+)?))?$', string ) if d: d = d.groupdict(0)
ise-uiuc/Magicoder-OSS-Instruct-75K
from neutron_lib import exceptions as n_exc from vmware_nsx.plugins.common.housekeeper import base_job from vmware_nsx.plugins.common.housekeeper import housekeeper class TestJob1(base_job.BaseJob): def __init__(self, global_readonly, readonly_jobs): super(TestJob1, self).__init__(global_readonly, readonly_jobs) def get_name(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
for sparsity in `seq 0.10 0.10 0.90` do set_sparse ${model_file} ${sparsity} out_sparse_model_file=${net}_float16_dense_1batch-${sparsity}.prototxt.sparse mv ${net}_float16_dense_1batch.prototxt.sparse ${out_sparse_model_file} sed -i "23s/sparse_mode: true/\#sparse_mode: true/" ${out_sparse_model_file} convert_caffemodel.bin proto -model ${out_sparse_model_file} -weights ${weight_file} out_sparse_weight_file=${net}_float16_dense-${sparsity}.cnml.caffemodel mv ${net}_float16_dense.cnml.caffemodel ${out_sparse_weight_file} done
ise-uiuc/Magicoder-OSS-Instruct-75K
//----------------------------------------------------------------------------- // Headers //----------------------------------------------------------------------------- #include <SMLib/Video/VideoMode.h> #include <tuple> namespace sml {
ise-uiuc/Magicoder-OSS-Instruct-75K
SendSerializedProto(push, req, 1, 9); zmq::message_t msg; (void)pull.recv(msg);
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, vehicle_mass, fuel_capacity, brake_deadband, decel_limit, accel_limit, wheel_radius, wheel_base, steer_ratio, max_lat_accel, max_steer_angle): self.yaw_controller = YawController(wheel_base, steer_ratio, 0.1, max_lat_accel, max_steer_angle) kp = 0.3 ki = 0.1 kd = 0 mn = 0. # mimnimum throttle value mx = 0.2 # maximum throttle value self.throttle_controller = PID(kp, ki, kd, mn, mx)
ise-uiuc/Magicoder-OSS-Instruct-75K
pub enum Event<CustomEvent: crate::CustomEvent> { /// A keyboard event. Key(KeyEvent), /// An action event. Standard(StandardEvent), /// A mouse event. Mouse(MouseEvent), /// An empty event. None, /// A terminal resize event. Resize(u16, u16),
ise-uiuc/Magicoder-OSS-Instruct-75K
fn y(this: &JsPoint) -> f64;
ise-uiuc/Magicoder-OSS-Instruct-75K
requires = ( 'flask', 'flask-sqlalchemy', 'python-dotenv', 'mysqlclient', 'flask-testing'
ise-uiuc/Magicoder-OSS-Instruct-75K
def main(): # main_path is the path where original dataset that is used for summarization is located. main_path = input('Please enter path of original dataset: ') # destin_path is the directory where you intended to store summaries for evaluation. destin_path = input("Please enter your destination path: ") # source_path is the directory where generated summaries are there now. In other word, # we want to copy summaries from source_path to destin_path and organize summaries. source_path = input("Please enter source path of summaries: ") for folder in listdir(main_path): if isdir(join(main_path, folder)): path = join(destin_path, folder) if not exists(path): makedirs(path)
ise-uiuc/Magicoder-OSS-Instruct-75K
--TEST-- Test for bug #422: Segfaults when using code coverage with a parse error in the script --INI-- xdebug.default_enable=1
ise-uiuc/Magicoder-OSS-Instruct-75K
class case , { (
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": http_service = HTTPServer(("0.0.0.0", 8000), Handler) print(f"Starting http service on 0.0.0.0:8000") http_service.serve_forever()
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 """ Undirected graph data type and procedures for its manipulation. """ from graph.graph import Graph, DepthFirstSearch, BreadthFirstSearch, ConnectedComponents
ise-uiuc/Magicoder-OSS-Instruct-75K
# https://download.blender.org/demo/test/pabellon_barcelona_v1.scene_.zip
ise-uiuc/Magicoder-OSS-Instruct-75K
# TAG sudo docker tag $1 944222683591.dkr.ecr.eu-west-1.amazonaws.com/d2d-backend-stage # PUSH sudo docker push 944222683591.dkr.ecr.eu-west-1.amazonaws.com/d2d-backend-stage
ise-uiuc/Magicoder-OSS-Instruct-75K
rel = IR.BE("+", 4, A, A) IR.TuneExpr(rel)
ise-uiuc/Magicoder-OSS-Instruct-75K
} $this->db->order_by('user.id', 'DESC'); $this->db->select('user.id, user.login_status, user.date_n_time, user.full_name, user.mobile_number, user.state_row_id, user.city_row_id, user.pincode, city.city_name, city.district_name, city.state_name'); $this->db->join('tbl_cities as city', 'user.city_row_id=city.id'); $query = $this->db->get('tbl_users as user')->result_array(); return $query; } public function user_individual_details($request_row_id) { $this->db->order_by('id', 'ASC'); $this->db->limit(1); $this->db->where('id',$request_row_id); $query = $this->db->get('tbl_users')->row_array(); $city_row_id = $query['city_row_id'];
ise-uiuc/Magicoder-OSS-Instruct-75K
length = len(points) result_points = [] for i in range(length - 1): p1 = points[i] p2 = points[i+1] dist = p1.distance_2d(p2)
ise-uiuc/Magicoder-OSS-Instruct-75K
def new_str_with_value(self, value: int) -> str: if value <= 100: for _ in range(5): self.nstr += str(randint(0, value)) return self.nstr return None def new_str_random(self, basic: int, value: int) -> str: if basic <= 20 and value <= 100: for _ in range(basic):
ise-uiuc/Magicoder-OSS-Instruct-75K
override func tearDown() { graphVizGenerator = nil manifestLoader = nil subject = nil super.tearDown() } func test_run_whenDot() throws { // Given let temporaryPath = try self.temporaryPath() let graphPath = temporaryPath.appending(component: "graph.dot")
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Constructs a new runtime exception with the specified detail message and cause. <p>Note that the detail message associated with * {@code cause} is <i>not</i> automatically incorporated in this runtime exception's detail message. * * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method). * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method). (A <tt>null</tt> value is * permitted, and indicates that the cause is nonexistent or unknown.) * @since 1.4 */ public SkyWalkerException(String message, Throwable cause, ResultCodeEnum resultCode) { super(message, cause); this.resultCode = resultCode;
ise-uiuc/Magicoder-OSS-Instruct-75K
mass: string }
ise-uiuc/Magicoder-OSS-Instruct-75K
worksheet.write(0, 0, 'hello world') worksheet.write(0, 1, '你好') workbook.save('first.xls') # 保存表为students.xls
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ areaChart, /** * Box plot. */ boxPlot, /** * Up/down chart. */ upDownChart, /**
ise-uiuc/Magicoder-OSS-Instruct-75K
arrows.glyph.glyph.scale_factor = scale data = arrows.parent.parent data.name = coordinate_system.name glyph_scale = arrows.glyph.glyph.scale_factor * 1.1 label_col = [(1, 0, 0), (0, 1, 0), (0, 0, 1)] labels = []
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public enum DataFormat {
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.apache.myfaces.trinidadinternal.validator.ByteLengthValidator; /**
ise-uiuc/Magicoder-OSS-Instruct-75K
FileName("data/models/hero-red/hero-red.md3xml"), FileName("data/models/hero-blue/hero-blue.md3xml"), FileName("data/models/hero-yellow/hero-yellow.md3xml"), FileName("data/models/theryn/theryn.md3xml") }; ActionSetModel m(playerModels[event->playerNumber % NUM_MODELS]); sendAction(&m); }
ise-uiuc/Magicoder-OSS-Instruct-75K
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
ise-uiuc/Magicoder-OSS-Instruct-75K
COUNTER=$((COUNTER+1)) if [[ $COUNTER -gt $LOGIN_TIMEOUT ]]; then echo -e "Login timeout!!" echo -e "Please check your username/password or internet connection." pkill -f HitLeap-Viewer fi
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>amaork/raspi-peri<filename>raspi_peri/version.py version = '0.01'
ise-uiuc/Magicoder-OSS-Instruct-75K
XCTAssertThrowsError(try enrichedAirCalculator.bestBlend(for: 25, fractionOxygen: -1.4)) XCTAssertThrowsError(try enrichedAirCalculator.bestBlend(for: -25, fractionOxygen: 1.4)) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def tokenize_parallel(documents, tokenizer, max_tokens, n_jobs=-1): slices = get_parallel_slices(n_tasks=len(documents), n_jobs=n_jobs) tokens = Parallel(n_jobs=n_jobs)( delayed(tokenize_job)( documents[slice_i], tokenizer, max_tokens, job )
ise-uiuc/Magicoder-OSS-Instruct-75K
help = 'color image baseroot') parser.add_argument('--crop_size_w', type = int, default = 256, help = 'single patch size') parser.add_argument('--crop_size_h', type = int, default = 256, help = 'single patch size') opt = parser.parse_args() print(opt)
ise-uiuc/Magicoder-OSS-Instruct-75K
echo 960000 > /sys/devices/system/cpu/cpu${lcore}/cpufreq/interactive/hispeed_freq echo "80 960000:95 1248000:99" > /sys/devices/system/cpu/cpu${lcore}/cpufreq/interactive/target_loads echo 1 > /sys/devices/system/cpu/cpu${lcore}/cpufreq/interactive/use_sched_load break
ise-uiuc/Magicoder-OSS-Instruct-75K
if (empty($img) === false) { $oneImgStr = $img[0]['img']; if (preg_match('/^http(.*?)/i', $oneImgStr) === 0) { $oneImgStr = 'http:' . $oneImgStr; } $imgStr .= '<p><img src="' . $oneImgStr . '"/></p>'; } } // dd($imgStr); //更新数据库 $rest = DB::table('dong_gather')->where('id', $value->id)->update(['body' => $imgStr, 'is_con' => 0]); if ($rest) { $this->info('this aid is ' . $value->id . ' content save success');
ise-uiuc/Magicoder-OSS-Instruct-75K
import muttlib.utils as utils from muttlib.dbconn.base import BaseClient logger = logging.getLogger(__name__)
ise-uiuc/Magicoder-OSS-Instruct-75K
ErrorMessage, WarningMessage, InfoMessage }
ise-uiuc/Magicoder-OSS-Instruct-75K
@login_required def create_post(request):
ise-uiuc/Magicoder-OSS-Instruct-75K
# See the License for the specific language governing permissions and # limitations under the License. # from commands.model.common import format_workflow_description, get_list_of_workflows, EXPORT_WORKFLOWS_LOCATION from unittest.mock import patch, mock_open
ise-uiuc/Magicoder-OSS-Instruct-75K
star.right(144)
ise-uiuc/Magicoder-OSS-Instruct-75K
keys: A string `Tensor` of shape [batch_size] or [batch_size, max_sequence_length] where an empty string would be mapped to an all zero embedding. config: A DynamicEmbeddingConfig proto that configures the embedding. var_name: A unique name for the given embedding. service_address: The address of a knowledge bank service. If empty, the value passed from --kbs_address flag will be used instead. skip_gradient_update: A boolean indicating if gradient update is needed. timeout_ms: Timeout millseconds for the connection. If negative, never timout.
ise-uiuc/Magicoder-OSS-Instruct-75K
# print("\nEnter MS Password: ") MSID_password = <PASSWORD>("\nEnter MS Password: ")
ise-uiuc/Magicoder-OSS-Instruct-75K
self.module_blocklist_str, module, shape, "1", lvl=self.hier_lvl ) return self.genlist([(mxg, rt), (1, mod), rt, mxg]) # def to_clip ( self, module=None, flip=False): # m = self.dut if not module else module # to_clip(self.interface_diagram_gen(m,flip)) # def to_clip_two_side ( self, module =None ):
ise-uiuc/Magicoder-OSS-Instruct-75K
public GameObject navigation; public AudioClip loopA; public AudioSource music; public AudioSource engine; public GameManager gameManager; // ------------------------------------------------------------------------------------- // Stop the time during loading. // -------------------------------------------------------------------------------------
ise-uiuc/Magicoder-OSS-Instruct-75K
# Function to connect the socket # Input : sock - socket that was created before def connect(self, sock): server_address = (self.HOST, self.PORT) print('connecting to {} port {}'.format(*server_address)) sock.connect(server_address) # Connect to a remote socket at address # Function to send packet # Input : message - data bytes # sock - socket that was created before def sendPacket(self, message, sock): print('sending {!r}'.format(message)) sock.sendall(message) # Send data to the socket that socket must be connected to the remote socket # Function to close the socket
ise-uiuc/Magicoder-OSS-Instruct-75K
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND ,detail=f"post with id {id} not found") post_query.update(updated_list.dict(),synchronize_session=False) db.commit() return post_query.first() @router.delete("/{id}" ,status_code=status.HTTP_204_NO_CONTENT) def delete_list(id:int ,db:Session=Depends(get_db), current_user: int =Depends(oauth2.get_current_user)): post_query=db.query(models.Post).filter(models.Post.id == id)
ise-uiuc/Magicoder-OSS-Instruct-75K
'status' => [ '0' => 'منتظر بررسی', '1' => 'تائید شده', '2' => 'عدم تائید' ], 'color' => [ '0' => '#D3A600', '1' => 'green', '2' => 'red' ]
ise-uiuc/Magicoder-OSS-Instruct-75K
vc.delegate = self } } // Obey the user defined delegate and figurate the func from that delegate
ise-uiuc/Magicoder-OSS-Instruct-75K
.map(|(source_id, target_id)| Event::Fav { user_id: source_id, twete_id: target_id } ), "unfavorite" => Event::get_source_target_ids(structure) .map(|(source_id, target_id)| Event::Unfav { user_id: source_id, twete_id: target_id
ise-uiuc/Magicoder-OSS-Instruct-75K
from src.utility.timeit import timeit root = os.path.dirname(os.getcwd()) train_data_path = os.path.join(root, 'data', 'training') preprocess_data_path = os.path.join(root, 'data', 'preprocess')
ise-uiuc/Magicoder-OSS-Instruct-75K
self.transport.reset()
ise-uiuc/Magicoder-OSS-Instruct-75K
from flask import Blueprint blueprint = Blueprint('board', __name__)
ise-uiuc/Magicoder-OSS-Instruct-75K
loss.backward() # add stuff to the gradients model.opt.step() # update the weights with the gradients and the learning rate epoch_loss.append(loss_item) avg_loss = np.mean(epoch_loss) print(f"Epoch: {e} - Epoch Loss: {avg_loss}", end="")
ise-uiuc/Magicoder-OSS-Instruct-75K
print(s[0]) print(s[:3]) print(s[s > s.median()]) print(s[[4, 3, 1]]) # 打印 e 的幂次方, e 是一个常数为 2.71828
ise-uiuc/Magicoder-OSS-Instruct-75K
// ---------------------------------------------------------------------------------- // IndexBufferBase // ----------------------------------------------------------------------------------
ise-uiuc/Magicoder-OSS-Instruct-75K
state_victoryorlose = 'defeat' elif player_choice == 'scissor': if ia_choice == 'rock': state_victoryorlose = 'defeat' elif ia_choice == 'scissor': state_victoryorlose = 'draw' elif ia_choice == 'paper': state_victoryorlose = 'victory' elif player_choice == 'paper': if ia_choice == 'rock': state_victoryorlose = 'victory' elif ia_choice == 'scissor': state_victoryorlose = 'defeat'
ise-uiuc/Magicoder-OSS-Instruct-75K
this.Name = "DocumentOptionsEditForm"; this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.nudLineWidth)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion
ise-uiuc/Magicoder-OSS-Instruct-75K
impl Default for Options { fn default() -> Self { Self { is_initiator: false, noise: true, encrypted: true, keepalive_ms: Some(DEFAULT_KEEPALIVE),
ise-uiuc/Magicoder-OSS-Instruct-75K
self.rval = parent.makeVariable(target_ssa, origin=self)
ise-uiuc/Magicoder-OSS-Instruct-75K
@init_model_state_from_kwargs class GithubBuildRunSource(BuildRunSource): """ Specifies details of build run through GitHub. """ def __init__(self, **kwargs): """ Initializes a new GithubBuildRunSource object with values from keyword arguments. The default value of the :py:attr:`~oci.devops.models.GithubBuildRunSource.source_type` attribute of this class is ``GITHUB`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):
ise-uiuc/Magicoder-OSS-Instruct-75K
% (axis, m.ndim)) return m[tuple(sl)]
ise-uiuc/Magicoder-OSS-Instruct-75K
mbleu = mbleu.replace("\n","") mbleu = mbleu.strip() lr = mbleu.split(".") mbleu = float(lr[0]+"."+lr[1][0:2]) if line.startswith("RESULT: baseline: METEOR: AVG:"): mmeteor = line.split(":")[4]
ise-uiuc/Magicoder-OSS-Instruct-75K
event_data = { 'event_type': { 'name': event_name }, 'field_type': field_list }
ise-uiuc/Magicoder-OSS-Instruct-75K
const c3 = c2.environment({ fooenv: 'two' }); const c4 = c3.environment({ env: 'hello', fooenv: 'two' });
ise-uiuc/Magicoder-OSS-Instruct-75K
Ok(()) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_buildpack(self, app, check_call): app.buildpack('some-fake-buildpack') check_call.assert_called_once_with( ["heroku", "buildpacks:add", "some-fake-buildpack", "--app", app.name], stdout=None ) def test_clock_is_on_checks_psscale(self, app, check_output): app.clock_is_on check_output.assert_called_once_with(
ise-uiuc/Magicoder-OSS-Instruct-75K
class OfficialDocumentsCollectionConfig(AppConfig): name = 'official_documents_collection'
ise-uiuc/Magicoder-OSS-Instruct-75K
if provides_enabled: targets = await Get[Targets](Addresses, addresses) addresses_with_provide_artifacts = { tgt.address: tgt[ProvidesField].value for tgt in targets if tgt.get(ProvidesField).value is not None } extractor_funcs = { "address": lambda address, _: address.spec, "artifact_id": lambda _, artifact: str(artifact), "repo_name": lambda _, artifact: artifact.repo.name, "repo_url": lambda _, artifact: artifact.repo.url, "push_db_basedir": lambda _, artifact: artifact.repo.push_db_basedir, } try:
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public class StartUp {
ise-uiuc/Magicoder-OSS-Instruct-75K
userId: string; @Column('timestamp', { default: () => 'timezone(\'utc\', now()) + interval \'2 days\'' }) validUntil: string; // ISO Date }
ise-uiuc/Magicoder-OSS-Instruct-75K
import UIKit import RealmSwift class Bookmark: Object { dynamic var id: String = "" dynamic var name: String?
ise-uiuc/Magicoder-OSS-Instruct-75K
fi ######################################## #These are php-pear config commands Seen in the 2.9.4.0 install guide for Debian. print_status "Configuring php via php-pear.." pear config-set preferred_state alpha &>> $base_logfile pear channel-update pear.php.net &>> $base_logfile pear install --alldeps Image_Color Image_Canvas Image_Graph &>> $base_logfile if [ $? != 0 ];then
ise-uiuc/Magicoder-OSS-Instruct-75K
if not self.__bitarray.check_bit(self.__get_hash(key, i)): return False i += 1 return True def print(self): return self.__bitarray.print() bloom_filter = 0 while True:
ise-uiuc/Magicoder-OSS-Instruct-75K
import desktop_window
ise-uiuc/Magicoder-OSS-Instruct-75K
cv2.imwrite(str(output_file) + str(idx) + Path(filename).suffix, resized_image) self.faces_detected = self.faces_detected + 1 except Exception as e: print('Failed to extract from image: {}. Reason: {}'.format(filename, e))
ise-uiuc/Magicoder-OSS-Instruct-75K
return serversync(context); case "cookiesync": return cookiesync(context); case "storagesync": return storagesync(context); default: throw new Error(`Unknown mechanism: ${context.mechanism}`); } };
ise-uiuc/Magicoder-OSS-Instruct-75K
packages=['elasticsearch_raven'], scripts=['bin/elasticsearch-raven.py', 'bin/update_ids.py', 'bin/udp_to_amqp.py', 'bin/amqp_to_elasticsearch.py'], license='MIT', description='Proxy that allows to send logs from Raven to Elasticsearch.', long_description=open('README.rst').read(), install_requires=['elasticsearch', 'kombu'],
ise-uiuc/Magicoder-OSS-Instruct-75K
:type password: ``str`` :param email: The email associated with the backup unit. Bear in mind that this email does not be the same email as of the user. :type email: ``str`` """ self.name = name self.password = password self.email = email
ise-uiuc/Magicoder-OSS-Instruct-75K
# Import modules you need #----------------------------------------------------- from mpl_toolkits.basemap import Basemap, cm import matplotlib.pyplot as plt import numpy as np ###################################################### ### Python fuction to build a map using a specific projection #----------------------------------------------------- def map_RegCMdomain(ax, lat_start, lat_end, lon_start, lon_end, lon0, lat0, fontsize, dparall, dmerid): """ How to call the function in a script to create a basemap object : 1. Import function to create the domain from module_RegCM_domain import basemap_RegCMdomain
ise-uiuc/Magicoder-OSS-Instruct-75K
body_type = [request.args.get('body_type', '')] mileage = [int(request.args.get('mileage', ''))] mileage_unit = [request.args.get('mileage_unit', '')]
ise-uiuc/Magicoder-OSS-Instruct-75K
{ if (polyIndices.Length < 3) return; int startIndex = vertices.Count; for (int i = 0; i < polyIndices.Length; i++) { vertices.Add(polyVertices[polyIndices[i]]); }
ise-uiuc/Magicoder-OSS-Instruct-75K
using Spring.Context.Support; using Vji.Bob; namespace aws { public class Main { public string filecontents = ""; public bool readline = false;
ise-uiuc/Magicoder-OSS-Instruct-75K
class ViewModel: NSObject { let disposeBag = DisposeBag()
ise-uiuc/Magicoder-OSS-Instruct-75K
b.place(x=30, y=100) label2 = tk.Label(window, text="授权许可证:", height=4) label2.place(x=30, y=130) t = tk.Text(window, height=4, width=30) t.place(x=30, y=150) window.mainloop()
ise-uiuc/Magicoder-OSS-Instruct-75K
try: # Parse the parameters ref_des = request.args['ref_des'] date = request.args['date'] # Expecting ISO format <yyyy-mm-dd> # Build the URL data_url = "/".join([app.config['SERVICES_URL'], 'uframe/get_large_format_files_by_rd', ref_des, date])
ise-uiuc/Magicoder-OSS-Instruct-75K
{ protected $table = 'isapalurtradingdb.toko00'; }
ise-uiuc/Magicoder-OSS-Instruct-75K
use uapi::*;
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual(0, se.getIndices().shape[0])
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Prefixes stub URLs like 'user@hostname:user/repo.git' with 'ssh://'. That's required because although they use SSH they sometimes don't work with a ssh:// scheme (e.g. GitHub). But we need a scheme for parsing. Hence we remove it again afterwards and return it as a stub. """ # Works around an apparent Git bug # (see https://article.gmane.org/gmane.comp.version-control.git/146500)
ise-uiuc/Magicoder-OSS-Instruct-75K
CFANode endNode = new CFANode(function); BlankEdge endEdge = new BlankEdge("null-deref", FileLocation.DUMMY, startNode, endNode, "null-deref"); CFACreationUtils.addEdgeUnconditionallyToCFA(endEdge); BlankEdge loopEdge = new BlankEdge("", FileLocation.DUMMY, endNode, endNode, ""); CFACreationUtils.addEdgeUnconditionallyToCFA(loopEdge); cfa.addNode(startNode); cfa.addNode(endNode);
ise-uiuc/Magicoder-OSS-Instruct-75K
class BaseFFITest(BaseTopazTest): def ask(self, space, question): w_answer = space.execute(question) return self.unwrap(space, w_answer)
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/Bibliotheca.Client.Web/src/app/entities/filter.ts export class Filter { public constructor() { this.selectedTags = []; this.selectedGroup = ""; }
ise-uiuc/Magicoder-OSS-Instruct-75K
->setActionColumn(['wrapper' => function ($value, $row) { $returnVal = ' <a class="btn btn-sm btn-warning" href="' . route('article.view', [$row->forum, $row->id]) . '" title="View"><i class="fa fa-eye">&nbsp;</i>View</a>
ise-uiuc/Magicoder-OSS-Instruct-75K